var b7=Object.defineProperty;var IR=Ut=>{throw TypeError(Ut)};var v7=(Ut,Yt,ce)=>Yt in Ut?b7(Ut,Yt,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Ut[Yt]=ce;var ne=(Ut,Yt,ce)=>v7(Ut,typeof Yt!="symbol"?Yt+"":Yt,ce),z0=(Ut,Yt,ce)=>Yt.has(Ut)||IR("Cannot "+ce);var A=(Ut,Yt,ce)=>(z0(Ut,Yt,"read from private field"),ce?ce.call(Ut):Yt.get(Ut)),bt=(Ut,Yt,ce)=>Yt.has(Ut)?IR("Cannot add the same private member more than once"):Yt instanceof WeakSet?Yt.add(Ut):Yt.set(Ut,ce),ut=(Ut,Yt,ce,ls)=>(z0(Ut,Yt,"write to private field"),ls?ls.call(Ut,ce):Yt.set(Ut,ce),ce),It=(Ut,Yt,ce)=>(z0(Ut,Yt,"access private method"),ce);var Ld=(Ut,Yt,ce,ls)=>({set _(jd){ut(Ut,Yt,jd,ce)},get _(){return A(Ut,Yt,ls)}});try{(function(){var Ut=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},Yt=new Ut.Error().stack;Yt&&(Ut._sentryDebugIds=Ut._sentryDebugIds||{},Ut._sentryDebugIds[Yt]="b80e28dd-404d-4a59-ac18-e1c3488efb65",Ut._sentryDebugIdIdentifier="sentry-dbid-b80e28dd-404d-4a59-ac18-e1c3488efb65")})()}catch{}(function(){"use strict";var _i,vg,kC,Ns,Ai,Ha,DC,Ga,Oi,Ya,NC,Ms,MC,Ls,Ka,Hn,zs,Ue,Kl,js,sr,di,LC,pn,Ht,$l,rn,Is,$a,Fr,Ri,Ql,Qa,Xa,Bs,Us,ki,Za,Zt,Yu,j0,I0,B0,U0,P0,q0,F0,BR,zC,Xl,Tr,sn,Ps,Cr,os,jC,Vr,ar,Zl,IC,Hr,Di,mn,Gr,Yr,zd,V0,BC,_r,UC,xe,Ni,Mi,Ja,Wa,Li,to,eo,PC,Ar,Or,or,zi,qs,no,ji;function Ut(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yt={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 jd(){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 H0;function PR(){return H0||(H0=1,Yt.exports=jd()),Yt.exports}var L=PR(),Id={exports:{}},Go={},Bd={exports:{}},Ud={};/**
 * @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 G0;function qR(){return G0||(G0=1,(function(t){function e(Z,G){var q=Z.length;Z.push(G);t:for(;0<q;){var vt=q-1>>>1,O=Z[vt];if(0<a(O,G))Z[vt]=G,Z[q]=O,q=vt;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],q=Z.pop();if(q!==G){Z[0]=q;t:for(var vt=0,O=Z.length,dt=O>>>1;vt<dt;){var k=2*(vt+1)-1,T=Z[k],nt=k+1,lt=Z[nt];if(0>a(T,q))nt<O&&0>a(lt,T)?(Z[vt]=lt,Z[nt]=q,vt=nt):(Z[vt]=T,Z[k]=q,vt=k);else if(nt<O&&0>a(lt,q))Z[vt]=lt,Z[nt]=q,vt=nt;else break t}}return G}function a(Z,G){var q=Z.sortIndex-G.sortIndex;return q!==0?q: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,M=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 Y(Z){if(w=!1,B(Z),!S)if(n(d)!==null)S=!0,z||(z=!0,at());else{var G=n(h);G!==null&&it(Y,G.startTime-Z)}}var z=!1,F=-1,N=5,P=-1;function K(){return C?!0:!(t.unstable_now()-P<N)}function et(){if(C=!1,z){var Z=t.unstable_now();P=Z;var G=!0;try{t:{S=!1,w&&(w=!1,M(F),F=-1),v=!0;var q=b;try{e:{for(B(Z),y=n(d);y!==null&&!(y.expirationTime>Z&&K());){var vt=y.callback;if(typeof vt=="function"){y.callback=null,b=y.priorityLevel;var O=vt(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 dt=n(h);dt!==null&&it(Y,dt.startTime-Z),G=!1}}break t}finally{y=null,b=q,v=!1}G=void 0}}finally{G?at():z=!1}}}var at;if(typeof R=="function")at=function(){R(et)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,st=ft.port2;ft.port1.onmessage=et,at=function(){st.postMessage(null)}}else at=function(){_(et,0)};function it(Z,G){F=_(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 q=b;b=G;try{return Z()}finally{b=q}},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 q=b;b=Z;try{return G()}finally{b=q}},t.unstable_scheduleCallback=function(Z,G,q){var vt=t.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?vt+q:vt):q=vt,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=q+O,Z={id:m++,callback:G,priorityLevel:Z,startTime:q,expirationTime:O,sortIndex:-1},q>vt?(Z.sortIndex=q,e(h,Z),n(d)===null&&Z===n(h)&&(w?(M(F),F=-1):w=!0,it(Y,q-vt))):(Z.sortIndex=O,e(d,Z),S||v||(S=!0,z||(z=!0,at()))),Z},t.unstable_shouldYield=K,t.unstable_wrapCallback=function(Z){var G=b;return function(){var q=b;b=G;try{return Z.apply(this,arguments)}finally{b=q}}}})(Ud)),Ud}var Y0;function FR(){return Y0||(Y0=1,Bd.exports=qR()),Bd.exports}var Pd={exports:{}},Rt={},K0;function VR(){if(K0)return Rt;K0=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(k){return k===null||typeof k!="object"?null:(k=v&&k[v]||k["@@iterator"],typeof k=="function"?k:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function M(k,T,nt){this.props=k,this.context=T,this.refs=_,this.updater=nt||w}M.prototype.isReactComponent={},M.prototype.setState=function(k,T){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,T,"setState")},M.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function R(){}R.prototype=M.prototype;function B(k,T,nt){this.props=k,this.context=T,this.refs=_,this.updater=nt||w}var Y=B.prototype=new R;Y.constructor=B,C(Y,M.prototype),Y.isPureReactComponent=!0;var z=Array.isArray;function F(){}var N={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function K(k,T,nt){var lt=nt.ref;return{$$typeof:e,type:k,key:T,ref:lt!==void 0?lt:null,props:nt}}function et(k,T){return K(k.type,T,k.props)}function at(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function ft(k){var T={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(nt){return T[nt]})}var st=/\/+/g;function it(k,T){return typeof k=="object"&&k!==null&&k.key!=null?ft(""+k.key):T.toString(36)}function Z(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(F,F):(k.status="pending",k.then(function(T){k.status==="pending"&&(k.status="fulfilled",k.value=T)},function(T){k.status==="pending"&&(k.status="rejected",k.reason=T)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function G(k,T,nt,lt,ht){var pt=typeof k;(pt==="undefined"||pt==="boolean")&&(k=null);var Ot=!1;if(k===null)Ot=!0;else switch(pt){case"bigint":case"string":case"number":Ot=!0;break;case"object":switch(k.$$typeof){case e:case n:Ot=!0;break;case y:return Ot=k._init,G(Ot(k._payload),T,nt,lt,ht)}}if(Ot)return ht=ht(k),Ot=lt===""?"."+it(k,0):lt,z(ht)?(nt="",Ot!=null&&(nt=Ot.replace(st,"$&/")+"/"),G(ht,T,nt,"",function(pe){return pe})):ht!=null&&(at(ht)&&(ht=et(ht,nt+(ht.key==null||k&&k.key===ht.key?"":(""+ht.key).replace(st,"$&/")+"/")+Ot)),T.push(ht)),1;Ot=0;var Jt=lt===""?".":lt+":";if(z(k))for(var kt=0;kt<k.length;kt++)lt=k[kt],pt=Jt+it(lt,kt),Ot+=G(lt,T,nt,pt,ht);else if(kt=S(k),typeof kt=="function")for(k=kt.call(k),kt=0;!(lt=k.next()).done;)lt=lt.value,pt=Jt+it(lt,kt++),Ot+=G(lt,T,nt,pt,ht);else if(pt==="object"){if(typeof k.then=="function")return G(Z(k),T,nt,lt,ht);throw T=String(k),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.")}return Ot}function q(k,T,nt){if(k==null)return k;var lt=[],ht=0;return G(k,lt,"","",function(pt){return T.call(nt,pt,ht++)}),lt}function vt(k){if(k._status===-1){var T=k._result;T=T(),T.then(function(nt){(k._status===0||k._status===-1)&&(k._status=1,k._result=nt)},function(nt){(k._status===0||k._status===-1)&&(k._status=2,k._result=nt)}),k._status===-1&&(k._status=0,k._result=T)}if(k._status===1)return k._result.default;throw k._result}var O=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var T=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(T))return}else if(typeof t=="object"&&typeof t.emit=="function"){t.emit("uncaughtException",k);return}console.error(k)},dt={map:q,forEach:function(k,T,nt){q(k,function(){T.apply(this,arguments)},nt)},count:function(k){var T=0;return q(k,function(){T++}),T},toArray:function(k){return q(k,function(T){return T})||[]},only:function(k){if(!at(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Rt.Activity=b,Rt.Children=dt,Rt.Component=M,Rt.Fragment=i,Rt.Profiler=l,Rt.PureComponent=B,Rt.StrictMode=a,Rt.Suspense=h,Rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Rt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return N.H.useMemoCache(k)}},Rt.cache=function(k){return function(){return k.apply(null,arguments)}},Rt.cacheSignal=function(){return null},Rt.cloneElement=function(k,T,nt){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var lt=C({},k.props),ht=k.key;if(T!=null)for(pt in T.key!==void 0&&(ht=""+T.key),T)!P.call(T,pt)||pt==="key"||pt==="__self"||pt==="__source"||pt==="ref"&&T.ref===void 0||(lt[pt]=T[pt]);var pt=arguments.length-2;if(pt===1)lt.children=nt;else if(1<pt){for(var Ot=Array(pt),Jt=0;Jt<pt;Jt++)Ot[Jt]=arguments[Jt+2];lt.children=Ot}return K(k.type,ht,lt)},Rt.createContext=function(k){return k={$$typeof:f,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:u,_context:k},k},Rt.createElement=function(k,T,nt){var lt,ht={},pt=null;if(T!=null)for(lt in T.key!==void 0&&(pt=""+T.key),T)P.call(T,lt)&&lt!=="key"&&lt!=="__self"&&lt!=="__source"&&(ht[lt]=T[lt]);var Ot=arguments.length-2;if(Ot===1)ht.children=nt;else if(1<Ot){for(var Jt=Array(Ot),kt=0;kt<Ot;kt++)Jt[kt]=arguments[kt+2];ht.children=Jt}if(k&&k.defaultProps)for(lt in Ot=k.defaultProps,Ot)ht[lt]===void 0&&(ht[lt]=Ot[lt]);return K(k,pt,ht)},Rt.createRef=function(){return{current:null}},Rt.forwardRef=function(k){return{$$typeof:d,render:k}},Rt.isValidElement=at,Rt.lazy=function(k){return{$$typeof:y,_payload:{_status:-1,_result:k},_init:vt}},Rt.memo=function(k,T){return{$$typeof:m,type:k,compare:T===void 0?null:T}},Rt.startTransition=function(k){var T=N.T,nt={};N.T=nt;try{var lt=k(),ht=N.S;ht!==null&&ht(nt,lt),typeof lt=="object"&&lt!==null&&typeof lt.then=="function"&&lt.then(F,O)}catch(pt){O(pt)}finally{T!==null&&nt.types!==null&&(T.types=nt.types),N.T=T}},Rt.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Rt.use=function(k){return N.H.use(k)},Rt.useActionState=function(k,T,nt){return N.H.useActionState(k,T,nt)},Rt.useCallback=function(k,T){return N.H.useCallback(k,T)},Rt.useContext=function(k){return N.H.useContext(k)},Rt.useDebugValue=function(){},Rt.useDeferredValue=function(k,T){return N.H.useDeferredValue(k,T)},Rt.useEffect=function(k,T){return N.H.useEffect(k,T)},Rt.useEffectEvent=function(k){return N.H.useEffectEvent(k)},Rt.useId=function(){return N.H.useId()},Rt.useImperativeHandle=function(k,T,nt){return N.H.useImperativeHandle(k,T,nt)},Rt.useInsertionEffect=function(k,T){return N.H.useInsertionEffect(k,T)},Rt.useLayoutEffect=function(k,T){return N.H.useLayoutEffect(k,T)},Rt.useMemo=function(k,T){return N.H.useMemo(k,T)},Rt.useOptimistic=function(k,T){return N.H.useOptimistic(k,T)},Rt.useReducer=function(k,T,nt){return N.H.useReducer(k,T,nt)},Rt.useRef=function(k){return N.H.useRef(k)},Rt.useState=function(k){return N.H.useState(k)},Rt.useSyncExternalStore=function(k,T,nt){return N.H.useSyncExternalStore(k,T,nt)},Rt.useTransition=function(){return N.H.useTransition()},Rt.version="19.2.0",Rt}var $0;function qd(){return $0||($0=1,Pd.exports=VR()),Pd.exports}var Fd={exports:{}},Qe={};/**
 * @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 Q0;function HR(){if(Q0)return Qe;Q0=1;var t=qd();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 Qe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Qe.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)},Qe.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()}},Qe.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))},Qe.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},Qe.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})}},Qe.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)},Qe.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})}},Qe.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)},Qe.requestFormReset=function(d){i.d.r(d)},Qe.unstable_batchedUpdates=function(d,h){return d(h)},Qe.useFormState=function(d,h,m){return u.H.useFormState(d,h,m)},Qe.useFormStatus=function(){return u.H.useHostTransitionStatus()},Qe.version="19.2.0",Qe}var X0;function Z0(){if(X0)return Fd.exports;X0=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(),Fd.exports=HR(),Fd.exports}var J0;function GR(){if(J0)return Go;J0=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=FR(),n=qd(),i=Z0();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,E=p.child;E;){if(E===o){x=!0,o=p,c=g;break}if(E===c){x=!0,c=p,o=g;break}E=E.sibling}if(!x){for(E=g.child;E;){if(E===o){x=!0,o=g,c=p;break}if(E===c){x=!0,c=g,o=p;break}E=E.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"),M=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),et=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 M:return"Profiler";case _:return"StrictMode";case z:return"Suspense";case F:return"SuspenseList";case K: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 Y: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 P: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,q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vt={pending:!1,data:null,method:null,action:null},O=[],dt=-1;function k(r){return{current:r}}function T(r){0>dt||(r.current=O[dt],O[dt]=null,dt--)}function nt(r,s){dt++,O[dt]=r.current,r.current=s}var lt=k(null),ht=k(null),pt=k(null),Ot=k(null);function Jt(r,s){switch(nt(pt,s),nt(ht,r),nt(lt,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?aR(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=aR(s),r=oR(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}T(lt),nt(lt,r)}function kt(){T(lt),T(ht),T(pt)}function pe(r){r.memoizedState!==null&&nt(Ot,r);var s=lt.current,o=oR(s,r.type);s!==o&&(nt(ht,r),nt(lt,o))}function An(r){ht.current===r&&(T(lt),T(ht)),Ot.current===r&&(T(Ot),Fu._currentValue=vt)}var Fs,yf;function Rr(r){if(Fs===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);Fs=s&&s[1]||"",yf=-1<o.stack.indexOf(`
    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Fs+r+yf}var ro=!1;function io(r,s){if(!r||ro)return"";ro=!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(X){var $=X}Reflect.construct(r,[],rt)}else{try{rt.call()}catch(X){$=X}r.call(rt.prototype)}}else{try{throw Error()}catch(X){$=X}(rt=r())&&typeof rt.catch=="function"&&rt.catch(function(){})}}catch(X){if(X&&$&&typeof X.stack=="string")return[X.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],E=g[1];if(x&&E){var D=x.split(`
`),H=E.split(`
`);for(p=c=0;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;for(;p<H.length&&!H[p].includes("DetermineComponentFrameRoot");)p++;if(c===D.length||p===H.length)for(c=D.length-1,p=H.length-1;1<=c&&0<=p&&D[c]!==H[p];)p--;for(;1<=c&&0<=p;c--,p--)if(D[c]!==H[p]){if(c!==1||p!==1)do if(c--,p--,0>p||D[c]!==H[p]){var J=`
`+D[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{ro=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Rr(o):""}function xg(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 io(r.type,!1);case 11:return io(r.type.render,!1);case 1:return io(r.type,!0);case 31:return Rr("Activity");default:return""}}function Jl(r){try{var s="",o=null;do s+=xg(r,o),o=r,r=r.return;while(r);return s}catch(c){return`
Error generating stack: `+c.message+`
`+c.stack}}var so=Object.prototype.hasOwnProperty,Wl=e.unstable_scheduleCallback,tu=e.unstable_cancelCallback,Sg=e.unstable_shouldYield,wg=e.unstable_requestPaint,an=e.unstable_now,W=e.unstable_getCurrentPriorityLevel,ct=e.unstable_ImmediatePriority,At=e.unstable_UserBlockingPriority,jt=e.unstable_NormalPriority,Wt=e.unstable_LowPriority,gn=e.unstable_IdlePriority,Kr=e.log,lr=e.unstable_setDisableYieldValue,ur=null,Ie=null;function Se(r){if(typeof Kr=="function"&&lr(r),Ie&&typeof Ie.setStrictMode=="function")try{Ie.setStrictMode(ur,r)}catch{}}var ke=Math.clz32?Math.clz32:i8,cr=Math.log,r8=Math.LN2;function i8(r){return r>>>=0,r===0?32:31-(cr(r)/r8|0)|0}var bf=256,vf=262144,xf=4194304;function Vs(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 Sf(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 E=c&134217727;return E!==0?(c=E&~g,c!==0?p=Vs(c):(x&=E,x!==0?p=Vs(x):o||(o=E&~r,o!==0&&(p=Vs(o))))):(E=c&~g,E!==0?p=Vs(E):x!==0?p=Vs(x):o||(o=c&~r,o!==0&&(p=Vs(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 eu(r,s){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&s)===0}function s8(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 qC(){var r=xf;return xf<<=1,(xf&62914560)===0&&(xf=4194304),r}function Eg(r){for(var s=[],o=0;31>o;o++)s.push(r);return s}function nu(r,s){r.pendingLanes|=s,s!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function a8(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 E=r.entanglements,D=r.expirationTimes,H=r.hiddenUpdates;for(o=x&~o;0<o;){var J=31-ke(o),rt=1<<J;E[J]=0,D[J]=-1;var $=H[J];if($!==null)for(H[J]=null,J=0;J<$.length;J++){var X=$[J];X!==null&&(X.lane&=-536870913)}o&=~rt}c!==0&&FC(r,c,0),g!==0&&p===0&&r.tag!==0&&(r.suspendedLanes|=g&~(x&~s))}function FC(r,s,o){r.pendingLanes|=s,r.suspendedLanes&=~s;var c=31-ke(s);r.entangledLanes|=s,r.entanglements[c]=r.entanglements[c]|1073741824|o&261930}function VC(r,s){var o=r.entangledLanes|=s;for(r=r.entanglements;o;){var c=31-ke(o),p=1<<c;p&s|r[c]&s&&(r[c]|=s),o&=~p}}function HC(r,s){var o=s&-s;return o=(o&42)!==0?1:Tg(o),(o&(r.suspendedLanes|s))!==0?0:o}function Tg(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 Cg(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function GC(){var r=q.p;return r!==0?r:(r=window.event,r===void 0?32:kR(r.type))}function YC(r,s){var o=q.p;try{return q.p=r,s()}finally{q.p=o}}var Ii=Math.random().toString(36).slice(2),He="__reactFiber$"+Ii,yn="__reactProps$"+Ii,ao="__reactContainer$"+Ii,_g="__reactEvents$"+Ii,o8="__reactListeners$"+Ii,l8="__reactHandles$"+Ii,KC="__reactResources$"+Ii,ru="__reactMarker$"+Ii;function Ag(r){delete r[He],delete r[yn],delete r[_g],delete r[o8],delete r[l8]}function oo(r){var s=r[He];if(s)return s;for(var o=r.parentNode;o;){if(s=o[ao]||o[He]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(r=pR(r);r!==null;){if(o=r[He])return o;r=pR(r)}return s}r=o,o=r.parentNode}return null}function lo(r){if(r=r[He]||r[ao]){var s=r.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return r}return null}function iu(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r.stateNode;throw Error(a(33))}function uo(r){var s=r[KC];return s||(s=r[KC]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Pe(r){r[ru]=!0}var $C=new Set,QC={};function Hs(r,s){co(r,s),co(r+"Capture",s)}function co(r,s){for(QC[r]=s,r=0;r<s.length;r++)$C.add(s[r])}var u8=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]*$"),XC={},ZC={};function c8(r){return so.call(ZC,r)?!0:so.call(XC,r)?!1:u8.test(r)?ZC[r]=!0:(XC[r]=!0,!1)}function wf(r,s,o){if(c8(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 Ef(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 Gn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function JC(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function f8(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 Og(r){if(!r._valueTracker){var s=JC(r)?"checked":"value";r._valueTracker=f8(r,s,""+r[s])}}function WC(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var o=s.getValue(),c="";return r&&(c=JC(r)?r.checked?"true":"false":r.value),r=c,r!==o?(s.setValue(r),!0):!1}function Tf(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 d8=/[\n"\\]/g;function Yn(r){return r.replace(d8,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Rg(r,s,o,c,p,g,x,E){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=""+Gn(s)):r.value!==""+Gn(s)&&(r.value=""+Gn(s)):x!=="submit"&&x!=="reset"||r.removeAttribute("value"),s!=null?kg(r,x,Gn(s)):o!=null?kg(r,x,Gn(o)):c!=null&&r.removeAttribute("value"),p==null&&g!=null&&(r.defaultChecked=!!g),p!=null&&(r.checked=p&&typeof p!="function"&&typeof p!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?r.name=""+Gn(E):r.removeAttribute("name")}function t_(r,s,o,c,p,g,x,E){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)){Og(r);return}o=o!=null?""+Gn(o):"",s=s!=null?""+Gn(s):o,E||s===r.value||(r.value=s),r.defaultValue=s}c=c??p,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=E?r.checked:!!c,r.defaultChecked=!!c,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(r.name=x),Og(r)}function kg(r,s,o){s==="number"&&Tf(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function fo(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=""+Gn(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 e_(r,s,o){if(s!=null&&(s=""+Gn(s),s!==r.value&&(r.value=s),o==null)){r.defaultValue!==s&&(r.defaultValue=s);return}r.defaultValue=o!=null?""+Gn(o):""}function n_(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=Gn(s),r.defaultValue=o,c=r.textContent,c===o&&c!==""&&c!==null&&(r.value=c),Og(r)}function ho(r,s){if(s){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=s;return}}r.textContent=s}var h8=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 r_(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||h8.has(s)?s==="float"?r.cssFloat=o:r[s]=(""+o).trim():r[s]=o+"px"}function i_(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&&r_(r,p,c)}else for(var g in s)s.hasOwnProperty(g)&&r_(r,g,s[g])}function Dg(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 p8=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"]]),m8=/^[\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 Cf(r){return m8.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Qr(){}var Ng=null;function Mg(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var po=null,mo=null;function s_(r){var s=lo(r);if(s&&(r=s.stateNode)){var o=r[yn]||null;t:switch(r=s.stateNode,s.type){case"input":if(Rg(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="'+Yn(""+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));Rg(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&&WC(c)}break t;case"textarea":e_(r,o.value,o.defaultValue);break t;case"select":s=o.value,s!=null&&fo(r,!!o.multiple,s,!1)}}}var Lg=!1;function a_(r,s,o){if(Lg)return r(s,o);Lg=!0;try{var c=r(s);return c}finally{if(Lg=!1,(po!==null||mo!==null)&&(dd(),po&&(s=po,r=mo,mo=po=null,s_(s),r)))for(s=0;s<r.length;s++)s_(r[s])}}function su(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 Xr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zg=!1;if(Xr)try{var au={};Object.defineProperty(au,"passive",{get:function(){zg=!0}}),window.addEventListener("test",au,au),window.removeEventListener("test",au,au)}catch{zg=!1}var Bi=null,jg=null,_f=null;function o_(){if(_f)return _f;var r,s=jg,o=s.length,c,p="value"in Bi?Bi.value:Bi.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 _f=p.slice(r,1<c?1-c:void 0)}function Af(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 Of(){return!0}function l_(){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 E in r)r.hasOwnProperty(E)&&(o=r[E],this[E]=o?o(g):g[E]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Of:l_,this.isPropagationStopped=l_,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=Of)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Of)},persist:function(){},isPersistent:Of}),s}var Gs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rf=bn(Gs),ou=b({},Gs,{view:0,detail:0}),g8=bn(ou),Ig,Bg,lu,kf=b({},ou,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pg,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!==lu&&(lu&&r.type==="mousemove"?(Ig=r.screenX-lu.screenX,Bg=r.screenY-lu.screenY):Bg=Ig=0,lu=r),Ig)},movementY:function(r){return"movementY"in r?r.movementY:Bg}}),u_=bn(kf),y8=b({},kf,{dataTransfer:0}),b8=bn(y8),v8=b({},ou,{relatedTarget:0}),Ug=bn(v8),x8=b({},Gs,{animationName:0,elapsedTime:0,pseudoElement:0}),S8=bn(x8),w8=b({},Gs,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),E8=bn(w8),T8=b({},Gs,{data:0}),c_=bn(T8),C8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_8={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},A8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function O8(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=A8[r])?!!s[r]:!1}function Pg(){return O8}var R8=b({},ou,{key:function(r){if(r.key){var s=C8[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Af(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?_8[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pg,charCode:function(r){return r.type==="keypress"?Af(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Af(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),k8=bn(R8),D8=b({},kf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),f_=bn(D8),N8=b({},ou,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pg}),M8=bn(N8),L8=b({},Gs,{propertyName:0,elapsedTime:0,pseudoElement:0}),z8=bn(L8),j8=b({},kf,{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}),I8=bn(j8),B8=b({},Gs,{newState:0,oldState:0}),U8=bn(B8),P8=[9,13,27,32],qg=Xr&&"CompositionEvent"in window,uu=null;Xr&&"documentMode"in document&&(uu=document.documentMode);var q8=Xr&&"TextEvent"in window&&!uu,d_=Xr&&(!qg||uu&&8<uu&&11>=uu),h_=" ",p_=!1;function m_(r,s){switch(r){case"keyup":return P8.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g_(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var go=!1;function F8(r,s){switch(r){case"compositionend":return g_(s);case"keypress":return s.which!==32?null:(p_=!0,h_);case"textInput":return r=s.data,r===h_&&p_?null:r;default:return null}}function V8(r,s){if(go)return r==="compositionend"||!qg&&m_(r,s)?(r=o_(),_f=jg=Bi=null,go=!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 d_&&s.locale!=="ko"?null:s.data;default:return null}}var H8={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function y_(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!H8[r.type]:s==="textarea"}function b_(r,s,o,c){po?mo?mo.push(c):mo=[c]:po=c,s=vd(s,"onChange"),0<s.length&&(o=new Rf("onChange","change",null,o,c),r.push({event:o,listeners:s}))}var cu=null,fu=null;function G8(r){tR(r,0)}function Df(r){var s=iu(r);if(WC(s))return r}function v_(r,s){if(r==="change")return s}var x_=!1;if(Xr){var Fg;if(Xr){var Vg="oninput"in document;if(!Vg){var S_=document.createElement("div");S_.setAttribute("oninput","return;"),Vg=typeof S_.oninput=="function"}Fg=Vg}else Fg=!1;x_=Fg&&(!document.documentMode||9<document.documentMode)}function w_(){cu&&(cu.detachEvent("onpropertychange",E_),fu=cu=null)}function E_(r){if(r.propertyName==="value"&&Df(fu)){var s=[];b_(s,fu,r,Mg(r)),a_(G8,s)}}function Y8(r,s,o){r==="focusin"?(w_(),cu=s,fu=o,cu.attachEvent("onpropertychange",E_)):r==="focusout"&&w_()}function K8(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Df(fu)}function $8(r,s){if(r==="click")return Df(s)}function Q8(r,s){if(r==="input"||r==="change")return Df(s)}function X8(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var On=typeof Object.is=="function"?Object.is:X8;function du(r,s){if(On(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(!so.call(s,p)||!On(r[p],s[p]))return!1}return!0}function T_(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function C_(r,s){var o=T_(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=T_(o)}}function __(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?__(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function A_(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var s=Tf(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=Tf(r.document)}return s}function Hg(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 Z8=Xr&&"documentMode"in document&&11>=document.documentMode,yo=null,Gg=null,hu=null,Yg=!1;function O_(r,s,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Yg||yo==null||yo!==Tf(c)||(c=yo,"selectionStart"in c&&Hg(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}),hu&&du(hu,c)||(hu=c,c=vd(Gg,"onSelect"),0<c.length&&(s=new Rf("onSelect","select",null,s,o),r.push({event:s,listeners:c}),s.target=yo)))}function Ys(r,s){var o={};return o[r.toLowerCase()]=s.toLowerCase(),o["Webkit"+r]="webkit"+s,o["Moz"+r]="moz"+s,o}var bo={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionrun:Ys("Transition","TransitionRun"),transitionstart:Ys("Transition","TransitionStart"),transitioncancel:Ys("Transition","TransitionCancel"),transitionend:Ys("Transition","TransitionEnd")},Kg={},R_={};Xr&&(R_=document.createElement("div").style,"AnimationEvent"in window||(delete bo.animationend.animation,delete bo.animationiteration.animation,delete bo.animationstart.animation),"TransitionEvent"in window||delete bo.transitionend.transition);function Ks(r){if(Kg[r])return Kg[r];if(!bo[r])return r;var s=bo[r],o;for(o in s)if(s.hasOwnProperty(o)&&o in R_)return Kg[r]=s[o];return r}var k_=Ks("animationend"),D_=Ks("animationiteration"),N_=Ks("animationstart"),J8=Ks("transitionrun"),W8=Ks("transitionstart"),t9=Ks("transitioncancel"),M_=Ks("transitionend"),L_=new Map,$g="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(" ");$g.push("scrollEnd");function fr(r,s){L_.set(r,s),Hs(s,[r])}var Nf=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)},Kn=[],vo=0,Qg=0;function Mf(){for(var r=vo,s=Qg=vo=0;s<r;){var o=Kn[s];Kn[s++]=null;var c=Kn[s];Kn[s++]=null;var p=Kn[s];Kn[s++]=null;var g=Kn[s];if(Kn[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&&z_(o,p,g)}}function Lf(r,s,o,c){Kn[vo++]=r,Kn[vo++]=s,Kn[vo++]=o,Kn[vo++]=c,Qg|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function Xg(r,s,o,c){return Lf(r,s,o,c),zf(r)}function $s(r,s){return Lf(r,null,null,s),zf(r)}function z_(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-ke(o),r=g.hiddenUpdates,c=r[p],c===null?r[p]=[s]:c.push(s),s.lane=o|536870912),g):null}function zf(r){if(50<zu)throw zu=0,s0=null,Error(a(185));for(var s=r.return;s!==null;)r=s,s=r.return;return r.tag===3?r.stateNode:null}var xo={};function e9(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 Rn(r,s,o,c){return new e9(r,s,o,c)}function Zg(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Zr(r,s){var o=r.alternate;return o===null?(o=Rn(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 j_(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 jf(r,s,o,c,p,g){var x=0;if(c=r,typeof r=="function")Zg(r)&&(x=1);else if(typeof r=="string")x=a7(r,o,lt.current)?26:r==="html"||r==="head"||r==="body"?27:5;else t:switch(r){case K:return r=Rn(31,o,s,p),r.elementType=K,r.lanes=g,r;case C:return Qs(o.children,p,g,s);case _:x=8,p|=24;break;case M:return r=Rn(12,o,s,p|2),r.elementType=M,r.lanes=g,r;case z:return r=Rn(13,o,s,p),r.elementType=z,r.lanes=g,r;case F:return r=Rn(19,o,s,p),r.elementType=F,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 Y:x=11;break t;case N:x=14;break t;case P:x=16,c=null;break t}x=29,o=Error(a(130,r===null?"null":typeof r,"")),c=null}return s=Rn(x,o,s,p),s.elementType=r,s.type=c,s.lanes=g,s}function Qs(r,s,o,c){return r=Rn(7,r,c,s),r.lanes=o,r}function Jg(r,s,o){return r=Rn(6,r,null,s),r.lanes=o,r}function I_(r){var s=Rn(18,null,null,0);return s.stateNode=r,s}function Wg(r,s,o){return s=Rn(4,r.children!==null?r.children:[],r.key,s),s.lanes=o,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}var B_=new WeakMap;function $n(r,s){if(typeof r=="object"&&r!==null){var o=B_.get(r);return o!==void 0?o:(s={value:r,source:s,stack:Jl(s)},B_.set(r,s),s)}return{value:r,source:s,stack:Jl(s)}}var So=[],wo=0,If=null,pu=0,Qn=[],Xn=0,Ui=null,kr=1,Dr="";function Jr(r,s){So[wo++]=pu,So[wo++]=If,If=r,pu=s}function U_(r,s,o){Qn[Xn++]=kr,Qn[Xn++]=Dr,Qn[Xn++]=Ui,Ui=r;var c=kr;r=Dr;var p=32-ke(c)-1;c&=~(1<<p),o+=1;var g=32-ke(s)+p;if(30<g){var x=p-p%5;g=(c&(1<<x)-1).toString(32),c>>=x,p-=x,kr=1<<32-ke(s)+p|o<<p|c,Dr=g+r}else kr=1<<g|o<<p|c,Dr=r}function ty(r){r.return!==null&&(Jr(r,1),U_(r,1,0))}function ey(r){for(;r===If;)If=So[--wo],So[wo]=null,pu=So[--wo],So[wo]=null;for(;r===Ui;)Ui=Qn[--Xn],Qn[Xn]=null,Dr=Qn[--Xn],Qn[Xn]=null,kr=Qn[--Xn],Qn[Xn]=null}function P_(r,s){Qn[Xn++]=kr,Qn[Xn++]=Dr,Qn[Xn++]=Ui,kr=s.id,Dr=s.overflow,Ui=r}var Ge=null,fe=null,Gt=!1,Pi=null,Zn=!1,ny=Error(a(519));function qi(r){var s=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw mu($n(s,r)),ny}function q_(r){var s=r.stateNode,o=r.type,c=r.memoizedProps;switch(s[He]=r,s[yn]=c,o){case"dialog":qt("cancel",s),qt("close",s);break;case"iframe":case"object":case"embed":qt("load",s);break;case"video":case"audio":for(o=0;o<Iu.length;o++)qt(Iu[o],s);break;case"source":qt("error",s);break;case"img":case"image":case"link":qt("error",s),qt("load",s);break;case"details":qt("toggle",s);break;case"input":qt("invalid",s),t_(s,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":qt("invalid",s);break;case"textarea":qt("invalid",s),n_(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||iR(s.textContent,o)?(c.popover!=null&&(qt("beforetoggle",s),qt("toggle",s)),c.onScroll!=null&&qt("scroll",s),c.onScrollEnd!=null&&qt("scrollend",s),c.onClick!=null&&(s.onclick=Qr),s=!0):s=!1,s||qi(r,!0)}function F_(r){for(Ge=r.return;Ge;)switch(Ge.tag){case 5:case 31:case 13:Zn=!1;return;case 27:case 3:Zn=!0;return;default:Ge=Ge.return}}function Eo(r){if(r!==Ge)return!1;if(!Gt)return F_(r),Gt=!0,!1;var s=r.tag,o;if((o=s!==3&&s!==27)&&((o=s===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||x0(r.type,r.memoizedProps)),o=!o),o&&fe&&qi(r),F_(r),s===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));fe=hR(r)}else if(s===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));fe=hR(r)}else s===27?(s=fe,es(r.type)?(r=C0,C0=null,fe=r):fe=s):fe=Ge?Wn(r.stateNode.nextSibling):null;return!0}function Xs(){fe=Ge=null,Gt=!1}function ry(){var r=Pi;return r!==null&&(wn===null?wn=r:wn.push.apply(wn,r),Pi=null),r}function mu(r){Pi===null?Pi=[r]:Pi.push(r)}var iy=k(null),Zs=null,Wr=null;function Fi(r,s,o){nt(iy,s._currentValue),s._currentValue=o}function ti(r){r._currentValue=iy.current,T(iy)}function sy(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 ay(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 E=g;g=p;for(var D=0;D<s.length;D++)if(E.context===s[D]){g.lanes|=o,E=g.alternate,E!==null&&(E.lanes|=o),sy(g.return,o,r),c||(x=null);break t}g=E.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),sy(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 To(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 E=p.type;On(p.pendingProps.value,x.value)||(r!==null?r.push(E):r=[E])}}else if(p===Ot.current){if(x=p.alternate,x===null)throw Error(a(387));x.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(r!==null?r.push(Fu):r=[Fu])}p=p.return}r!==null&&ay(s,r,o,c),s.flags|=262144}function Bf(r){for(r=r.firstContext;r!==null;){if(!On(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Js(r){Zs=r,Wr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ye(r){return V_(Zs,r)}function Uf(r,s){return Zs===null&&Js(r),V_(r,s)}function V_(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 n9=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()})}},r9=e.unstable_scheduleCallback,i9=e.unstable_NormalPriority,De={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oy(){return{controller:new n9,data:new Map,refCount:0}}function gu(r){r.refCount--,r.refCount===0&&r9(i9,function(){r.controller.abort()})}var yu=null,ly=0,Co=0,_o=null;function s9(r,s){if(yu===null){var o=yu=[];ly=0,Co=f0(),_o={status:"pending",value:void 0,then:function(c){o.push(c)}}}return ly++,s.then(H_,H_),s}function H_(){if(--ly===0&&yu!==null){_o!==null&&(_o.status="fulfilled");var r=yu;yu=null,Co=0,_o=null;for(var s=0;s<r.length;s++)(0,r[s])()}}function a9(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 G_=G.S;G.S=function(r,s){OO=an(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s9(r,s),G_!==null&&G_(r,s)};var Ws=k(null);function uy(){var r=Ws.current;return r!==null?r:oe.pooledCache}function Pf(r,s){s===null?nt(Ws,Ws.current):nt(Ws,s.pool)}function Y_(){var r=uy();return r===null?null:{parent:De._currentValue,pool:r}}var Ao=Error(a(460)),cy=Error(a(474)),qf=Error(a(542)),Ff={then:function(){}};function K_(r){return r=r.status,r==="fulfilled"||r==="rejected"}function $_(r,s,o){switch(o=r[o],o===void 0?r.push(s):o!==s&&(s.then(Qr,Qr),s=o),s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,X_(r),r;default:if(typeof s.status=="string")s.then(Qr,Qr);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,X_(r),r}throw ea=s,Ao}}function ta(r){try{var s=r._init;return s(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(ea=o,Ao):o}}var ea=null;function Q_(){if(ea===null)throw Error(a(459));var r=ea;return ea=null,r}function X_(r){if(r===Ao||r===qf)throw Error(a(483))}var Oo=null,bu=0;function Vf(r){var s=bu;return bu+=1,Oo===null&&(Oo=[]),$_(Oo,r,s)}function vu(r,s){s=s.props.ref,r.ref=s!==void 0?s:null}function Hf(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 Z_(r){function s(U,j){if(r){var V=U.deletions;V===null?(U.deletions=[j],U.flags|=16):V.push(j)}}function o(U,j){if(!r)return null;for(;j!==null;)s(U,j),j=j.sibling;return null}function c(U){for(var j=new Map;U!==null;)U.key!==null?j.set(U.key,U):j.set(U.index,U),U=U.sibling;return j}function p(U,j){return U=Zr(U,j),U.index=0,U.sibling=null,U}function g(U,j,V){return U.index=V,r?(V=U.alternate,V!==null?(V=V.index,V<j?(U.flags|=67108866,j):V):(U.flags|=67108866,j)):(U.flags|=1048576,j)}function x(U){return r&&U.alternate===null&&(U.flags|=67108866),U}function E(U,j,V,tt){return j===null||j.tag!==6?(j=Jg(V,U.mode,tt),j.return=U,j):(j=p(j,V),j.return=U,j)}function D(U,j,V,tt){var St=V.type;return St===C?J(U,j,V.props.children,tt,V.key):j!==null&&(j.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===P&&ta(St)===j.type)?(j=p(j,V.props),vu(j,V),j.return=U,j):(j=jf(V.type,V.key,V.props,null,U.mode,tt),vu(j,V),j.return=U,j)}function H(U,j,V,tt){return j===null||j.tag!==4||j.stateNode.containerInfo!==V.containerInfo||j.stateNode.implementation!==V.implementation?(j=Wg(V,U.mode,tt),j.return=U,j):(j=p(j,V.children||[]),j.return=U,j)}function J(U,j,V,tt,St){return j===null||j.tag!==7?(j=Qs(V,U.mode,tt,St),j.return=U,j):(j=p(j,V),j.return=U,j)}function rt(U,j,V){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Jg(""+j,U.mode,V),j.return=U,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case S:return V=jf(j.type,j.key,j.props,null,U.mode,V),vu(V,j),V.return=U,V;case w:return j=Wg(j,U.mode,V),j.return=U,j;case P:return j=ta(j),rt(U,j,V)}if(Z(j)||ft(j))return j=Qs(j,U.mode,V,null),j.return=U,j;if(typeof j.then=="function")return rt(U,Vf(j),V);if(j.$$typeof===B)return rt(U,Uf(U,j),V);Hf(U,j)}return null}function $(U,j,V,tt){var St=j!==null?j.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return St!==null?null:E(U,j,""+V,tt);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return V.key===St?D(U,j,V,tt):null;case w:return V.key===St?H(U,j,V,tt):null;case P:return V=ta(V),$(U,j,V,tt)}if(Z(V)||ft(V))return St!==null?null:J(U,j,V,tt,null);if(typeof V.then=="function")return $(U,j,Vf(V),tt);if(V.$$typeof===B)return $(U,j,Uf(U,V),tt);Hf(U,V)}return null}function X(U,j,V,tt,St){if(typeof tt=="string"&&tt!==""||typeof tt=="number"||typeof tt=="bigint")return U=U.get(V)||null,E(j,U,""+tt,St);if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case S:return U=U.get(tt.key===null?V:tt.key)||null,D(j,U,tt,St);case w:return U=U.get(tt.key===null?V:tt.key)||null,H(j,U,tt,St);case P:return tt=ta(tt),X(U,j,V,tt,St)}if(Z(tt)||ft(tt))return U=U.get(V)||null,J(j,U,tt,St,null);if(typeof tt.then=="function")return X(U,j,V,Vf(tt),St);if(tt.$$typeof===B)return X(U,j,V,Uf(j,tt),St);Hf(j,tt)}return null}function mt(U,j,V,tt){for(var St=null,Kt=null,xt=j,zt=j=0,Vt=null;xt!==null&&zt<V.length;zt++){xt.index>zt?(Vt=xt,xt=null):Vt=xt.sibling;var $t=$(U,xt,V[zt],tt);if($t===null){xt===null&&(xt=Vt);break}r&&xt&&$t.alternate===null&&s(U,xt),j=g($t,j,zt),Kt===null?St=$t:Kt.sibling=$t,Kt=$t,xt=Vt}if(zt===V.length)return o(U,xt),Gt&&Jr(U,zt),St;if(xt===null){for(;zt<V.length;zt++)xt=rt(U,V[zt],tt),xt!==null&&(j=g(xt,j,zt),Kt===null?St=xt:Kt.sibling=xt,Kt=xt);return Gt&&Jr(U,zt),St}for(xt=c(xt);zt<V.length;zt++)Vt=X(xt,U,zt,V[zt],tt),Vt!==null&&(r&&Vt.alternate!==null&&xt.delete(Vt.key===null?zt:Vt.key),j=g(Vt,j,zt),Kt===null?St=Vt:Kt.sibling=Vt,Kt=Vt);return r&&xt.forEach(function(as){return s(U,as)}),Gt&&Jr(U,zt),St}function wt(U,j,V,tt){if(V==null)throw Error(a(151));for(var St=null,Kt=null,xt=j,zt=j=0,Vt=null,$t=V.next();xt!==null&&!$t.done;zt++,$t=V.next()){xt.index>zt?(Vt=xt,xt=null):Vt=xt.sibling;var as=$(U,xt,$t.value,tt);if(as===null){xt===null&&(xt=Vt);break}r&&xt&&as.alternate===null&&s(U,xt),j=g(as,j,zt),Kt===null?St=as:Kt.sibling=as,Kt=as,xt=Vt}if($t.done)return o(U,xt),Gt&&Jr(U,zt),St;if(xt===null){for(;!$t.done;zt++,$t=V.next())$t=rt(U,$t.value,tt),$t!==null&&(j=g($t,j,zt),Kt===null?St=$t:Kt.sibling=$t,Kt=$t);return Gt&&Jr(U,zt),St}for(xt=c(xt);!$t.done;zt++,$t=V.next())$t=X(xt,U,zt,$t.value,tt),$t!==null&&(r&&$t.alternate!==null&&xt.delete($t.key===null?zt:$t.key),j=g($t,j,zt),Kt===null?St=$t:Kt.sibling=$t,Kt=$t);return r&&xt.forEach(function(y7){return s(U,y7)}),Gt&&Jr(U,zt),St}function ae(U,j,V,tt){if(typeof V=="object"&&V!==null&&V.type===C&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case S:t:{for(var St=V.key;j!==null;){if(j.key===St){if(St=V.type,St===C){if(j.tag===7){o(U,j.sibling),tt=p(j,V.props.children),tt.return=U,U=tt;break t}}else if(j.elementType===St||typeof St=="object"&&St!==null&&St.$$typeof===P&&ta(St)===j.type){o(U,j.sibling),tt=p(j,V.props),vu(tt,V),tt.return=U,U=tt;break t}o(U,j);break}else s(U,j);j=j.sibling}V.type===C?(tt=Qs(V.props.children,U.mode,tt,V.key),tt.return=U,U=tt):(tt=jf(V.type,V.key,V.props,null,U.mode,tt),vu(tt,V),tt.return=U,U=tt)}return x(U);case w:t:{for(St=V.key;j!==null;){if(j.key===St)if(j.tag===4&&j.stateNode.containerInfo===V.containerInfo&&j.stateNode.implementation===V.implementation){o(U,j.sibling),tt=p(j,V.children||[]),tt.return=U,U=tt;break t}else{o(U,j);break}else s(U,j);j=j.sibling}tt=Wg(V,U.mode,tt),tt.return=U,U=tt}return x(U);case P:return V=ta(V),ae(U,j,V,tt)}if(Z(V))return mt(U,j,V,tt);if(ft(V)){if(St=ft(V),typeof St!="function")throw Error(a(150));return V=St.call(V),wt(U,j,V,tt)}if(typeof V.then=="function")return ae(U,j,Vf(V),tt);if(V.$$typeof===B)return ae(U,j,Uf(U,V),tt);Hf(U,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,j!==null&&j.tag===6?(o(U,j.sibling),tt=p(j,V),tt.return=U,U=tt):(o(U,j),tt=Jg(V,U.mode,tt),tt.return=U,U=tt),x(U)):o(U,j)}return function(U,j,V,tt){try{bu=0;var St=ae(U,j,V,tt);return Oo=null,St}catch(xt){if(xt===Ao||xt===qf)throw xt;var Kt=Rn(29,xt,null,U.mode);return Kt.lanes=tt,Kt.return=U,Kt}finally{}}}var na=Z_(!0),J_=Z_(!1),Vi=!1;function fy(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dy(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,(Xt&2)!==0){var p=c.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),c.pending=s,s=zf(r),z_(r,null,o),s}return Lf(r,c,s,o),zf(r)}function xu(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,VC(r,o)}}function hy(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 py=!1;function Su(){if(py){var r=_o;if(r!==null)throw r}}function wu(r,s,o,c){py=!1;var p=r.updateQueue;Vi=!1;var g=p.firstBaseUpdate,x=p.lastBaseUpdate,E=p.shared.pending;if(E!==null){p.shared.pending=null;var D=E,H=D.next;D.next=null,x===null?g=H:x.next=H,x=D;var J=r.alternate;J!==null&&(J=J.updateQueue,E=J.lastBaseUpdate,E!==x&&(E===null?J.firstBaseUpdate=H:E.next=H,J.lastBaseUpdate=D))}if(g!==null){var rt=p.baseState;x=0,J=H=D=null,E=g;do{var $=E.lane&-536870913,X=$!==E.lane;if(X?(Ft&$)===$:(c&$)===$){$!==0&&$===Co&&(py=!0),J!==null&&(J=J.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});t:{var mt=r,wt=E;$=s;var ae=o;switch(wt.tag){case 1:if(mt=wt.payload,typeof mt=="function"){rt=mt.call(ae,rt,$);break t}rt=mt;break t;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=wt.payload,$=typeof mt=="function"?mt.call(ae,rt,$):mt,$==null)break t;rt=b({},rt,$);break t;case 2:Vi=!0}}$=E.callback,$!==null&&(r.flags|=64,X&&(r.flags|=8192),X=p.callbacks,X===null?p.callbacks=[$]:X.push($))}else X={lane:$,tag:E.tag,payload:E.payload,callback:E.callback,next:null},J===null?(H=J=X,D=rt):J=J.next=X,x|=$;if(E=E.next,E===null){if(E=p.shared.pending,E===null)break;X=E,E=X.next,X.next=null,p.lastBaseUpdate=X,p.shared.pending=null}}while(!0);J===null&&(D=rt),p.baseState=D,p.firstBaseUpdate=H,p.lastBaseUpdate=J,g===null&&(p.shared.lanes=0),Xi|=x,r.lanes=x,r.memoizedState=rt}}function W_(r,s){if(typeof r!="function")throw Error(a(191,r));r.call(s)}function tA(r,s){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)W_(o[r],s)}var Ro=k(null),Gf=k(0);function eA(r,s){r=ui,nt(Gf,r),nt(Ro,s),ui=r|s.baseLanes}function my(){nt(Gf,ui),nt(Ro,Ro.current)}function gy(){ui=Gf.current,T(Ro),T(Gf)}var kn=k(null),Jn=null;function Yi(r){var s=r.alternate;nt(_e,_e.current&1),nt(kn,r),Jn===null&&(s===null||Ro.current!==null||s.memoizedState!==null)&&(Jn=r)}function yy(r){nt(_e,_e.current),nt(kn,r),Jn===null&&(Jn=r)}function nA(r){r.tag===22?(nt(_e,_e.current),nt(kn,r),Jn===null&&(Jn=r)):Ki()}function Ki(){nt(_e,_e.current),nt(kn,kn.current)}function Dn(r){T(kn),Jn===r&&(Jn=null),T(_e)}var _e=k(0);function Yf(r){for(var s=r;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||E0(o)||T0(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,Nt=null,ie=null,Ne=null,Kf=!1,ko=!1,ra=!1,$f=0,Eu=0,Do=null,o9=0;function we(){throw Error(a(321))}function by(r,s){if(s===null)return!1;for(var o=0;o<s.length&&o<r.length;o++)if(!On(r[o],s[o]))return!1;return!0}function vy(r,s,o,c,p,g){return ei=g,Nt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,G.H=r===null||r.memoizedState===null?UA:Ly,ra=!1,g=o(c,p),ra=!1,ko&&(g=iA(s,o,c,p)),rA(r),g}function rA(r){G.H=_u;var s=ie!==null&&ie.next!==null;if(ei=0,Ne=ie=Nt=null,Kf=!1,Eu=0,Do=null,s)throw Error(a(300));r===null||Me||(r=r.dependencies,r!==null&&Bf(r)&&(Me=!0))}function iA(r,s,o,c){Nt=r;var p=0;do{if(ko&&(Do=null),Eu=0,ko=!1,25<=p)throw Error(a(301));if(p+=1,Ne=ie=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=PA,g=s(o,c)}while(ko);return g}function l9(){var r=G.H,s=r.useState()[0];return s=typeof s.then=="function"?Tu(s):s,r=r.useState()[0],(ie!==null?ie.memoizedState:null)!==r&&(Nt.flags|=1024),s}function xy(){var r=$f!==0;return $f=0,r}function Sy(r,s,o){s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~o}function wy(r){if(Kf){for(r=r.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Kf=!1}ei=0,Ne=ie=Nt=null,ko=!1,Eu=$f=0,Do=null}function on(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ne===null?Nt.memoizedState=Ne=r:Ne=Ne.next=r,Ne}function Ae(){if(ie===null){var r=Nt.alternate;r=r!==null?r.memoizedState:null}else r=ie.next;var s=Ne===null?Nt.memoizedState:Ne.next;if(s!==null)Ne=s,ie=r;else{if(r===null)throw Nt.alternate===null?Error(a(467)):Error(a(310));ie=r,r={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},Ne===null?Nt.memoizedState=Ne=r:Ne=Ne.next=r}return Ne}function Qf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tu(r){var s=Eu;return Eu+=1,Do===null&&(Do=[]),r=$_(Do,r,s),s=Nt,(Ne===null?s.memoizedState:Ne.next)===null&&(s=s.alternate,G.H=s===null||s.memoizedState===null?UA:Ly),r}function Xf(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Tu(r);if(r.$$typeof===B)return Ye(r)}throw Error(a(438,String(r)))}function Ey(r){var s=null,o=Nt.updateQueue;if(o!==null&&(s=o.memoCache),s==null){var c=Nt.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=Qf(),Nt.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]=et;return s.index++,o}function ni(r,s){return typeof s=="function"?s(r):s}function Zf(r){var s=Ae();return Ty(s,ie,r)}function Ty(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 E=x=null,D=null,H=s,J=!1;do{var rt=H.lane&-536870913;if(rt!==H.lane?(Ft&rt)===rt:(ei&rt)===rt){var $=H.revertLane;if($===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),rt===Co&&(J=!0);else if((ei&$)===$){H=H.next,$===Co&&(J=!0);continue}else rt={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},D===null?(E=D=rt,x=g):D=D.next=rt,Nt.lanes|=$,Xi|=$;rt=H.action,ra&&o(g,rt),g=H.hasEagerState?H.eagerState:o(g,rt)}else $={lane:rt,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},D===null?(E=D=$,x=g):D=D.next=$,Nt.lanes|=rt,Xi|=rt;H=H.next}while(H!==null&&H!==s);if(D===null?x=g:D.next=E,!On(g,r.memoizedState)&&(Me=!0,J&&(o=_o,o!==null)))throw o;r.memoizedState=g,r.baseState=x,r.baseQueue=D,c.lastRenderedState=g}return p===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Cy(r){var s=Ae(),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);On(g,s.memoizedState)||(Me=!0),s.memoizedState=g,s.baseQueue===null&&(s.baseState=g),o.lastRenderedState=g}return[g,c]}function sA(r,s,o){var c=Nt,p=Ae(),g=Gt;if(g){if(o===void 0)throw Error(a(407));o=o()}else o=s();var x=!On((ie||p).memoizedState,o);if(x&&(p.memoizedState=o,Me=!0),p=p.queue,Oy(lA.bind(null,c,p,r),[r]),p.getSnapshot!==s||x||Ne!==null&&Ne.memoizedState.tag&1){if(c.flags|=2048,No(9,{destroy:void 0},oA.bind(null,c,p,o,s),null),oe===null)throw Error(a(349));g||(ei&127)!==0||aA(c,s,o)}return o}function aA(r,s,o){r.flags|=16384,r={getSnapshot:s,value:o},s=Nt.updateQueue,s===null?(s=Qf(),Nt.updateQueue=s,s.stores=[r]):(o=s.stores,o===null?s.stores=[r]:o.push(r))}function oA(r,s,o,c){s.value=o,s.getSnapshot=c,uA(s)&&cA(r)}function lA(r,s,o){return o(function(){uA(s)&&cA(r)})}function uA(r){var s=r.getSnapshot;r=r.value;try{var o=s();return!On(r,o)}catch{return!0}}function cA(r){var s=$s(r,2);s!==null&&En(s,r,2)}function _y(r){var s=on();if(typeof r=="function"){var o=r;if(r=o(),ra){Se(!0);try{o()}finally{Se(!1)}}}return s.memoizedState=s.baseState=r,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:r},s}function fA(r,s,o,c){return r.baseState=o,Ty(r,ie,typeof c=="function"?c:ni)}function u9(r,s,o,c,p){if(td(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,dA(s,g)):(g.next=o.next,s.pending=o.next=g)}}function dA(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 E=o(p,c),D=G.S;D!==null&&D(x,E),hA(r,s,E)}catch(H){Ay(r,s,H)}finally{g!==null&&x.types!==null&&(g.types=x.types),G.T=g}}else try{g=o(p,c),hA(r,s,g)}catch(H){Ay(r,s,H)}}function hA(r,s,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){pA(r,s,c)},function(c){return Ay(r,s,c)}):pA(r,s,o)}function pA(r,s,o){s.status="fulfilled",s.value=o,mA(s),r.state=o,s=r.pending,s!==null&&(o=s.next,o===s?r.pending=null:(o=o.next,s.next=o,dA(r,o)))}function Ay(r,s,o){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do s.status="rejected",s.reason=o,mA(s),s=s.next;while(s!==c)}r.action=null}function mA(r){r=r.listeners;for(var s=0;s<r.length;s++)(0,r[s])()}function gA(r,s){return s}function yA(r,s){if(Gt){var o=oe.formState;if(o!==null){t:{var c=Nt;if(Gt){if(fe){e:{for(var p=fe,g=Zn;p.nodeType!==8;){if(!g){p=null;break e}if(p=Wn(p.nextSibling),p===null){p=null;break e}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){fe=Wn(p.nextSibling),c=p.data==="F!";break t}}qi(c)}c=!1}c&&(s=o[0])}}return o=on(),o.memoizedState=o.baseState=s,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gA,lastRenderedState:s},o.queue=c,o=jA.bind(null,Nt,c),c.dispatch=o,c=_y(!1),g=My.bind(null,Nt,!1,c.queue),c=on(),p={state:s,dispatch:null,action:r,pending:null},c.queue=p,o=u9.bind(null,Nt,p,g,o),p.dispatch=o,c.memoizedState=r,[s,o,!1]}function bA(r){var s=Ae();return vA(s,ie,r)}function vA(r,s,o){if(s=Ty(r,s,gA)[0],r=Zf(ni)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var c=Tu(s)}catch(x){throw x===Ao?qf:x}else c=s;s=Ae();var p=s.queue,g=p.dispatch;return o!==s.memoizedState&&(Nt.flags|=2048,No(9,{destroy:void 0},c9.bind(null,p,o),null)),[c,g,r]}function c9(r,s){r.action=s}function xA(r){var s=Ae(),o=ie;if(o!==null)return vA(s,o,r);Ae(),s=s.memoizedState,o=Ae();var c=o.queue.dispatch;return o.memoizedState=r,[s,c,!1]}function No(r,s,o,c){return r={tag:r,create:o,deps:c,inst:s,next:null},s=Nt.updateQueue,s===null&&(s=Qf(),Nt.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 SA(){return Ae().memoizedState}function Jf(r,s,o,c){var p=on();Nt.flags|=r,p.memoizedState=No(1|s,{destroy:void 0},o,c===void 0?null:c)}function Wf(r,s,o,c){var p=Ae();c=c===void 0?null:c;var g=p.memoizedState.inst;ie!==null&&c!==null&&by(c,ie.memoizedState.deps)?p.memoizedState=No(s,g,o,c):(Nt.flags|=r,p.memoizedState=No(1|s,g,o,c))}function wA(r,s){Jf(8390656,8,r,s)}function Oy(r,s){Wf(2048,8,r,s)}function f9(r){Nt.flags|=4;var s=Nt.updateQueue;if(s===null)s=Qf(),Nt.updateQueue=s,s.events=[r];else{var o=s.events;o===null?s.events=[r]:o.push(r)}}function EA(r){var s=Ae().memoizedState;return f9({ref:s,nextImpl:r}),function(){if((Xt&2)!==0)throw Error(a(440));return s.impl.apply(void 0,arguments)}}function TA(r,s){return Wf(4,2,r,s)}function CA(r,s){return Wf(4,4,r,s)}function _A(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 AA(r,s,o){o=o!=null?o.concat([r]):null,Wf(4,4,_A.bind(null,s,r),o)}function Ry(){}function OA(r,s){var o=Ae();s=s===void 0?null:s;var c=o.memoizedState;return s!==null&&by(s,c[1])?c[0]:(o.memoizedState=[r,s],r)}function RA(r,s){var o=Ae();s=s===void 0?null:s;var c=o.memoizedState;if(s!==null&&by(s,c[1]))return c[0];if(c=r(),ra){Se(!0);try{r()}finally{Se(!1)}}return o.memoizedState=[c,s],c}function ky(r,s,o){return o===void 0||(ei&1073741824)!==0&&(Ft&261930)===0?r.memoizedState=s:(r.memoizedState=o,r=kO(),Nt.lanes|=r,Xi|=r,o)}function kA(r,s,o,c){return On(o,s)?o:Ro.current!==null?(r=ky(r,o,c),On(r,s)||(Me=!0),r):(ei&42)===0||(ei&1073741824)!==0&&(Ft&261930)===0?(Me=!0,r.memoizedState=o):(r=kO(),Nt.lanes|=r,Xi|=r,s)}function DA(r,s,o,c,p){var g=q.p;q.p=g!==0&&8>g?g:8;var x=G.T,E={};G.T=E,My(r,!1,s,o);try{var D=p(),H=G.S;if(H!==null&&H(E,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var J=a9(D,c);Cu(r,s,J,Ln(r))}else Cu(r,s,c,Ln(r))}catch(rt){Cu(r,s,{then:function(){},status:"rejected",reason:rt},Ln())}finally{q.p=g,x!==null&&E.types!==null&&(x.types=E.types),G.T=x}}function d9(){}function Dy(r,s,o,c){if(r.tag!==5)throw Error(a(476));var p=NA(r).queue;DA(r,p,s,vt,o===null?d9:function(){return MA(r),o(c)})}function NA(r){var s=r.memoizedState;if(s!==null)return s;s={memoizedState:vt,baseState:vt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:vt},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 MA(r){var s=NA(r);s.next===null&&(s=r.alternate.memoizedState),Cu(r,s.next.queue,{},Ln())}function Ny(){return Ye(Fu)}function LA(){return Ae().memoizedState}function zA(){return Ae().memoizedState}function h9(r){for(var s=r.return;s!==null;){switch(s.tag){case 24:case 3:var o=Ln();r=Hi(o);var c=Gi(s,r,o);c!==null&&(En(c,s,o),xu(c,s,o)),s={cache:oy()},r.payload=s;return}s=s.return}}function p9(r,s,o){var c=Ln();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},td(r)?IA(s,o):(o=Xg(r,s,o,c),o!==null&&(En(o,r,c),BA(o,s,c)))}function jA(r,s,o){var c=Ln();Cu(r,s,o,c)}function Cu(r,s,o,c){var p={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(td(r))IA(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,E=g(x,o);if(p.hasEagerState=!0,p.eagerState=E,On(E,x))return Lf(r,s,p,0),oe===null&&Mf(),!1}catch{}finally{}if(o=Xg(r,s,p,c),o!==null)return En(o,r,c),BA(o,s,c),!0}return!1}function My(r,s,o,c){if(c={lane:2,revertLane:f0(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},td(r)){if(s)throw Error(a(479))}else s=Xg(r,o,c,2),s!==null&&En(s,r,2)}function td(r){var s=r.alternate;return r===Nt||s!==null&&s===Nt}function IA(r,s){ko=Kf=!0;var o=r.pending;o===null?s.next=s:(s.next=o.next,o.next=s),r.pending=s}function BA(r,s,o){if((o&4194048)!==0){var c=s.lanes;c&=r.pendingLanes,o|=c,s.lanes=o,VC(r,o)}}var _u={readContext:Ye,use:Xf,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useLayoutEffect:we,useInsertionEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useSyncExternalStore:we,useId:we,useHostTransitionStatus:we,useFormState:we,useActionState:we,useOptimistic:we,useMemoCache:we,useCacheRefresh:we};_u.useEffectEvent=we;var UA={readContext:Ye,use:Xf,useCallback:function(r,s){return on().memoizedState=[r,s===void 0?null:s],r},useContext:Ye,useEffect:wA,useImperativeHandle:function(r,s,o){o=o!=null?o.concat([r]):null,Jf(4194308,4,_A.bind(null,s,r),o)},useLayoutEffect:function(r,s){return Jf(4194308,4,r,s)},useInsertionEffect:function(r,s){Jf(4,2,r,s)},useMemo:function(r,s){var o=on();s=s===void 0?null:s;var c=r();if(ra){Se(!0);try{r()}finally{Se(!1)}}return o.memoizedState=[c,s],c},useReducer:function(r,s,o){var c=on();if(o!==void 0){var p=o(s);if(ra){Se(!0);try{o(s)}finally{Se(!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=p9.bind(null,Nt,r),[c.memoizedState,r]},useRef:function(r){var s=on();return r={current:r},s.memoizedState=r},useState:function(r){r=_y(r);var s=r.queue,o=jA.bind(null,Nt,s);return s.dispatch=o,[r.memoizedState,o]},useDebugValue:Ry,useDeferredValue:function(r,s){var o=on();return ky(o,r,s)},useTransition:function(){var r=_y(!1);return r=DA.bind(null,Nt,r.queue,!0,!1),on().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,s,o){var c=Nt,p=on();if(Gt){if(o===void 0)throw Error(a(407));o=o()}else{if(o=s(),oe===null)throw Error(a(349));(Ft&127)!==0||aA(c,s,o)}p.memoizedState=o;var g={value:o,getSnapshot:s};return p.queue=g,wA(lA.bind(null,c,g,r),[r]),c.flags|=2048,No(9,{destroy:void 0},oA.bind(null,c,g,o,s),null),o},useId:function(){var r=on(),s=oe.identifierPrefix;if(Gt){var o=Dr,c=kr;o=(c&~(1<<32-ke(c)-1)).toString(32)+o,s="_"+s+"R_"+o,o=$f++,0<o&&(s+="H"+o.toString(32)),s+="_"}else o=o9++,s="_"+s+"r_"+o.toString(32)+"_";return r.memoizedState=s},useHostTransitionStatus:Ny,useFormState:yA,useActionState:yA,useOptimistic:function(r){var s=on();s.memoizedState=s.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=o,s=My.bind(null,Nt,!0,o),o.dispatch=s,[r,s]},useMemoCache:Ey,useCacheRefresh:function(){return on().memoizedState=h9.bind(null,Nt)},useEffectEvent:function(r){var s=on(),o={impl:r};return s.memoizedState=o,function(){if((Xt&2)!==0)throw Error(a(440));return o.impl.apply(void 0,arguments)}}},Ly={readContext:Ye,use:Xf,useCallback:OA,useContext:Ye,useEffect:Oy,useImperativeHandle:AA,useInsertionEffect:TA,useLayoutEffect:CA,useMemo:RA,useReducer:Zf,useRef:SA,useState:function(){return Zf(ni)},useDebugValue:Ry,useDeferredValue:function(r,s){var o=Ae();return kA(o,ie.memoizedState,r,s)},useTransition:function(){var r=Zf(ni)[0],s=Ae().memoizedState;return[typeof r=="boolean"?r:Tu(r),s]},useSyncExternalStore:sA,useId:LA,useHostTransitionStatus:Ny,useFormState:bA,useActionState:bA,useOptimistic:function(r,s){var o=Ae();return fA(o,ie,r,s)},useMemoCache:Ey,useCacheRefresh:zA};Ly.useEffectEvent=EA;var PA={readContext:Ye,use:Xf,useCallback:OA,useContext:Ye,useEffect:Oy,useImperativeHandle:AA,useInsertionEffect:TA,useLayoutEffect:CA,useMemo:RA,useReducer:Cy,useRef:SA,useState:function(){return Cy(ni)},useDebugValue:Ry,useDeferredValue:function(r,s){var o=Ae();return ie===null?ky(o,r,s):kA(o,ie.memoizedState,r,s)},useTransition:function(){var r=Cy(ni)[0],s=Ae().memoizedState;return[typeof r=="boolean"?r:Tu(r),s]},useSyncExternalStore:sA,useId:LA,useHostTransitionStatus:Ny,useFormState:xA,useActionState:xA,useOptimistic:function(r,s){var o=Ae();return ie!==null?fA(o,ie,r,s):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:Ey,useCacheRefresh:zA};PA.useEffectEvent=EA;function zy(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 jy={enqueueSetState:function(r,s,o){r=r._reactInternals;var c=Ln(),p=Hi(c);p.payload=s,o!=null&&(p.callback=o),s=Gi(r,p,c),s!==null&&(En(s,r,c),xu(s,r,c))},enqueueReplaceState:function(r,s,o){r=r._reactInternals;var c=Ln(),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),xu(s,r,c))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var o=Ln(),c=Hi(o);c.tag=2,s!=null&&(c.callback=s),s=Gi(r,c,o),s!==null&&(En(s,r,o),xu(s,r,o))}};function qA(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?!du(o,c)||!du(p,g):!0}function FA(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&&jy.enqueueReplaceState(s,s.state,null)}function ia(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 VA(r){Nf(r)}function HA(r){console.error(r)}function GA(r){Nf(r)}function ed(r,s){try{var o=r.onUncaughtError;o(s.value,{componentStack:s.stack})}catch(c){setTimeout(function(){throw c})}}function YA(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 Iy(r,s,o){return o=Hi(o),o.tag=3,o.payload={element:null},o.callback=function(){ed(r,s)},o}function KA(r){return r=Hi(r),r.tag=3,r}function $A(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(){YA(s,o,c)}}var x=o.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(r.callback=function(){YA(s,o,c),typeof p!="function"&&(Zi===null?Zi=new Set([this]):Zi.add(this));var E=c.stack;this.componentDidCatch(c.value,{componentStack:E!==null?E:""})})}function m9(r,s,o,c,p){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(s=o.alternate,s!==null&&To(s,o,p,!0),o=kn.current,o!==null){switch(o.tag){case 31:case 13:return Jn===null?hd():o.alternate===null&&Ee===0&&(Ee=3),o.flags&=-257,o.flags|=65536,o.lanes=p,c===Ff?o.flags|=16384:(s=o.updateQueue,s===null?o.updateQueue=new Set([c]):s.add(c),l0(r,c,p)),!1;case 22:return o.flags|=65536,c===Ff?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)),l0(r,c,p)),!1}throw Error(a(435,o.tag))}return l0(r,c,p),hd(),!1}if(Gt)return s=kn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,c!==ny&&(r=Error(a(422),{cause:c}),mu($n(r,o)))):(c!==ny&&(s=Error(a(423),{cause:c}),mu($n(s,o))),r=r.current.alternate,r.flags|=65536,p&=-p,r.lanes|=p,c=$n(c,o),p=Iy(r.stateNode,c,p),hy(r,p),Ee!==4&&(Ee=2)),!1;var g=Error(a(520),{cause:c});if(g=$n(g,o),Lu===null?Lu=[g]:Lu.push(g),Ee!==4&&(Ee=2),s===null)return!0;c=$n(c,o),o=s;do{switch(o.tag){case 3:return o.flags|=65536,r=p&-p,o.lanes|=r,r=Iy(o.stateNode,c,r),hy(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=KA(p),$A(p,r,o,c),hy(o,p),!1}o=o.return}while(o!==null);return!1}var By=Error(a(461)),Me=!1;function Ke(r,s,o,c){s.child=r===null?J_(s,null,o,c):na(s,r.child,o,c)}function QA(r,s,o,c,p){o=o.render;var g=s.ref;if("ref"in c){var x={};for(var E in c)E!=="ref"&&(x[E]=c[E])}else x=c;return Js(s),c=vy(r,s,o,x,g,p),E=xy(),r!==null&&!Me?(Sy(r,s,p),ri(r,s,p)):(Gt&&E&&ty(s),s.flags|=1,Ke(r,s,c,p),s.child)}function XA(r,s,o,c,p){if(r===null){var g=o.type;return typeof g=="function"&&!Zg(g)&&g.defaultProps===void 0&&o.compare===null?(s.tag=15,s.type=g,ZA(r,s,g,c,p)):(r=jf(o.type,null,c,s,s.mode,p),r.ref=s.ref,r.return=s,s.child=r)}if(g=r.child,!Yy(r,p)){var x=g.memoizedProps;if(o=o.compare,o=o!==null?o:du,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 ZA(r,s,o,c,p){if(r!==null){var g=r.memoizedProps;if(du(g,c)&&r.ref===s.ref)if(Me=!1,s.pendingProps=c=g,Yy(r,p))(r.flags&131072)!==0&&(Me=!0);else return s.lanes=r.lanes,ri(r,s,p)}return Uy(r,s,o,c,p)}function JA(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 WA(r,s,g,o,c)}if((o&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},r!==null&&Pf(s,g!==null?g.cachePool:null),g!==null?eA(s,g):my(),nA(s);else return c=s.lanes=536870912,WA(r,s,g!==null?g.baseLanes|o:o,o,c)}else g!==null?(Pf(s,g.cachePool),eA(s,g),Ki(),s.memoizedState=null):(r!==null&&Pf(s,null),my(),Ki());return Ke(r,s,p,o),s.child}function Au(r,s){return r!==null&&r.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function WA(r,s,o,c,p){var g=uy();return g=g===null?null:{parent:De._currentValue,pool:g},s.memoizedState={baseLanes:o,cachePool:g},r!==null&&Pf(s,null),my(),nA(s),r!==null&&To(r,s,c,!0),s.childLanes=p,null}function nd(r,s){return s=id({mode:s.mode,children:s.children},r.mode),s.ref=r.ref,r.child=s,s.return=r,s}function tO(r,s,o){return na(s,r.child,null,o),r=nd(s,s.pendingProps),r.flags|=2,Dn(s),s.memoizedState=null,r}function g9(r,s,o){var c=s.pendingProps,p=(s.flags&128)!==0;if(s.flags&=-129,r===null){if(Gt){if(c.mode==="hidden")return r=nd(s,c),s.lanes=536870912,Au(null,r);if(yy(s),(r=fe)?(r=dR(r,Zn),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=I_(r),o.return=s,s.child=o,Ge=s,fe=null)):r=null,r===null)throw qi(s);return s.lanes=536870912,null}return nd(s,c)}var g=r.memoizedState;if(g!==null){var x=g.dehydrated;if(yy(s),p)if(s.flags&256)s.flags&=-257,s=tO(r,s,o);else if(s.memoizedState!==null)s.child=r.child,s.flags|=128,s=null;else throw Error(a(558));else if(Me||To(r,s,o,!1),p=(o&r.childLanes)!==0,Me||p){if(c=oe,c!==null&&(x=HC(c,o),x!==0&&x!==g.retryLane))throw g.retryLane=x,$s(r,x),En(c,r,x),By;hd(),s=tO(r,s,o)}else r=g.treeContext,fe=Wn(x.nextSibling),Ge=s,Gt=!0,Pi=null,Zn=!1,r!==null&&P_(s,r),s=nd(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 rd(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 Uy(r,s,o,c,p){return Js(s),o=vy(r,s,o,c,void 0,p),c=xy(),r!==null&&!Me?(Sy(r,s,p),ri(r,s,p)):(Gt&&c&&ty(s),s.flags|=1,Ke(r,s,o,p),s.child)}function eO(r,s,o,c,p,g){return Js(s),s.updateQueue=null,o=iA(s,c,o,p),rA(r),c=xy(),r!==null&&!Me?(Sy(r,s,g),ri(r,s,g)):(Gt&&c&&ty(s),s.flags|=1,Ke(r,s,o,g),s.child)}function nO(r,s,o,c,p){if(Js(s),s.stateNode===null){var g=xo,x=o.contextType;typeof x=="object"&&x!==null&&(g=Ye(x)),g=new o(c,g),s.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=jy,s.stateNode=g,g._reactInternals=s,g=s.stateNode,g.props=c,g.state=s.memoizedState,g.refs={},fy(s),x=o.contextType,g.context=typeof x=="object"&&x!==null?Ye(x):xo,g.state=s.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(zy(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&&jy.enqueueReplaceState(g,g.state,null),wu(s,c,g,p),Su(),g.state=s.memoizedState),typeof g.componentDidMount=="function"&&(s.flags|=4194308),c=!0}else if(r===null){g=s.stateNode;var E=s.memoizedProps,D=ia(o,E);g.props=D;var H=g.context,J=o.contextType;x=xo,typeof J=="object"&&J!==null&&(x=Ye(J));var rt=o.getDerivedStateFromProps;J=typeof rt=="function"||typeof g.getSnapshotBeforeUpdate=="function",E=s.pendingProps!==E,J||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(E||H!==x)&&FA(s,g,c,x),Vi=!1;var $=s.memoizedState;g.state=$,wu(s,c,g,p),Su(),H=s.memoizedState,E||$!==H||Vi?(typeof rt=="function"&&(zy(s,o,rt,c),H=s.memoizedState),(D=Vi||qA(s,o,D,c,$,H,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=H),g.props=c,g.state=H,g.context=x,c=D):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{g=s.stateNode,dy(r,s),x=s.memoizedProps,J=ia(o,x),g.props=J,rt=s.pendingProps,$=g.context,H=o.contextType,D=xo,typeof H=="object"&&H!==null&&(D=Ye(H)),E=o.getDerivedStateFromProps,(H=typeof E=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(x!==rt||$!==D)&&FA(s,g,c,D),Vi=!1,$=s.memoizedState,g.state=$,wu(s,c,g,p),Su();var X=s.memoizedState;x!==rt||$!==X||Vi||r!==null&&r.dependencies!==null&&Bf(r.dependencies)?(typeof E=="function"&&(zy(s,o,E,c),X=s.memoizedState),(J=Vi||qA(s,o,J,c,$,X,D)||r!==null&&r.dependencies!==null&&Bf(r.dependencies))?(H||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,X,D),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,X,D)),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=X),g.props=c,g.state=X,g.context=D,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,rd(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=na(s,r.child,null,p),s.child=na(s,null,o,p)):Ke(r,s,o,p),s.memoizedState=g.state,r=s.child):r=ri(r,s,p),r}function rO(r,s,o,c){return Xs(),s.flags|=256,Ke(r,s,o,c),s.child}var Py={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qy(r){return{baseLanes:r,cachePool:Y_()}}function Fy(r,s,o){return r=r!==null?r.childLanes&~o:0,s&&(r|=Mn),r}function iO(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:(_e.current&2)!==0),x&&(p=!0,s.flags&=-129),x=(s.flags&32)!==0,s.flags&=-33,r===null){if(Gt){if(p?Yi(s):Ki(),(r=fe)?(r=dR(r,Zn),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=I_(r),o.return=s,s.child=o,Ge=s,fe=null)):r=null,r===null)throw qi(s);return T0(r)?s.lanes=32:s.lanes=536870912,null}var E=c.children;return c=c.fallback,p?(Ki(),p=s.mode,E=id({mode:"hidden",children:E},p),c=Qs(c,p,o,null),E.return=s,c.return=s,E.sibling=c,s.child=E,c=s.child,c.memoizedState=qy(o),c.childLanes=Fy(r,x,o),s.memoizedState=Py,Au(null,c)):(Yi(s),Vy(s,E))}var D=r.memoizedState;if(D!==null&&(E=D.dehydrated,E!==null)){if(g)s.flags&256?(Yi(s),s.flags&=-257,s=Hy(r,s,o)):s.memoizedState!==null?(Ki(),s.child=r.child,s.flags|=128,s=null):(Ki(),E=c.fallback,p=s.mode,c=id({mode:"visible",children:c.children},p),E=Qs(E,p,o,null),E.flags|=2,c.return=s,E.return=s,c.sibling=E,s.child=c,na(s,r.child,null,o),c=s.child,c.memoizedState=qy(o),c.childLanes=Fy(r,x,o),s.memoizedState=Py,s=Au(null,c));else if(Yi(s),T0(E)){if(x=E.nextSibling&&E.nextSibling.dataset,x)var H=x.dgst;x=H,c=Error(a(419)),c.stack="",c.digest=x,mu({value:c,source:null,stack:null}),s=Hy(r,s,o)}else if(Me||To(r,s,o,!1),x=(o&r.childLanes)!==0,Me||x){if(x=oe,x!==null&&(c=HC(x,o),c!==0&&c!==D.retryLane))throw D.retryLane=c,$s(r,c),En(x,r,c),By;E0(E)||hd(),s=Hy(r,s,o)}else E0(E)?(s.flags|=192,s.child=r.child,s=null):(r=D.treeContext,fe=Wn(E.nextSibling),Ge=s,Gt=!0,Pi=null,Zn=!1,r!==null&&P_(s,r),s=Vy(s,c.children),s.flags|=4096);return s}return p?(Ki(),E=c.fallback,p=s.mode,D=r.child,H=D.sibling,c=Zr(D,{mode:"hidden",children:c.children}),c.subtreeFlags=D.subtreeFlags&65011712,H!==null?E=Zr(H,E):(E=Qs(E,p,o,null),E.flags|=2),E.return=s,c.return=s,c.sibling=E,s.child=c,Au(null,c),c=s.child,E=r.child.memoizedState,E===null?E=qy(o):(p=E.cachePool,p!==null?(D=De._currentValue,p=p.parent!==D?{parent:D,pool:D}:p):p=Y_(),E={baseLanes:E.baseLanes|o,cachePool:p}),c.memoizedState=E,c.childLanes=Fy(r,x,o),s.memoizedState=Py,Au(r.child,c)):(Yi(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 Vy(r,s){return s=id({mode:"visible",children:s},r.mode),s.return=r,r.child=s}function id(r,s){return r=Rn(22,r,null,s),r.lanes=0,r}function Hy(r,s,o){return na(s,r.child,null,o),r=Vy(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function sO(r,s,o){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),sy(r.return,s,o)}function Gy(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 aO(r,s,o){var c=s.pendingProps,p=c.revealOrder,g=c.tail;c=c.children;var x=_e.current,E=(x&2)!==0;if(E?(x=x&1|2,s.flags|=128):x&=1,nt(_e,x),Ke(r,s,c,o),c=Gt?pu:0,!E&&r!==null&&(r.flags&128)!==0)t:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&sO(r,o,s);else if(r.tag===19)sO(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&&Yf(r)===null&&(p=o),o=o.sibling;o=p,o===null?(p=s.child,s.child=null):(p=o.sibling,o.sibling=null),Gy(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&&Yf(r)===null){s.child=p;break}r=p.sibling,p.sibling=o,o=p,p=r}Gy(s,!0,o,null,g,c);break;case"together":Gy(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),Xi|=s.lanes,(o&s.childLanes)===0)if(r!==null){if(To(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 Yy(r,s){return(r.lanes&s)!==0?!0:(r=r.dependencies,!!(r!==null&&Bf(r)))}function y9(r,s,o){switch(s.tag){case 3:Jt(s,s.stateNode.containerInfo),Fi(s,De,r.memoizedState.cache),Xs();break;case 27:case 5:pe(s);break;case 4:Jt(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,yy(s),null;break;case 13:var c=s.memoizedState;if(c!==null)return c.dehydrated!==null?(Yi(s),s.flags|=128,null):(o&s.child.childLanes)!==0?iO(r,s,o):(Yi(s),r=ri(r,s,o),r!==null?r.sibling:null);Yi(s);break;case 19:var p=(r.flags&128)!==0;if(c=(o&s.childLanes)!==0,c||(To(r,s,o,!1),c=(o&s.childLanes)!==0),p){if(c)return aO(r,s,o);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),nt(_e,_e.current),c)break;return null;case 22:return s.lanes=0,JA(r,s,o,s.pendingProps);case 24:Fi(s,De,r.memoizedState.cache)}return ri(r,s,o)}function oO(r,s,o){if(r!==null)if(r.memoizedProps!==s.pendingProps)Me=!0;else{if(!Yy(r,o)&&(s.flags&128)===0)return Me=!1,y9(r,s,o);Me=(r.flags&131072)!==0}else Me=!1,Gt&&(s.flags&1048576)!==0&&U_(s,pu,s.index);switch(s.lanes=0,s.tag){case 16:t:{var c=s.pendingProps;if(r=ta(s.elementType),s.type=r,typeof r=="function")Zg(r)?(c=ia(r,c),s.tag=1,s=nO(null,s,r,c,o)):(s.tag=0,s=Uy(null,s,r,c,o));else{if(r!=null){var p=r.$$typeof;if(p===Y){s.tag=11,s=QA(null,s,r,c,o);break t}else if(p===N){s.tag=14,s=XA(null,s,r,c,o);break t}}throw s=it(r)||r,Error(a(306,s,""))}}return s;case 0:return Uy(r,s,s.type,s.pendingProps,o);case 1:return c=s.type,p=ia(c,s.pendingProps),nO(r,s,c,p,o);case 3:t:{if(Jt(s,s.stateNode.containerInfo),r===null)throw Error(a(387));c=s.pendingProps;var g=s.memoizedState;p=g.element,dy(r,s),wu(s,c,null,o);var x=s.memoizedState;if(c=x.cache,Fi(s,De,c),c!==g.cache&&ay(s,[De],o,!0),Su(),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=rO(r,s,c,o);break t}else if(c!==p){p=$n(Error(a(424)),s),mu(p),s=rO(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=Wn(r.firstChild),Ge=s,Gt=!0,Pi=null,Zn=!0,o=J_(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 rd(r,s),r===null?(o=bR(s.type,null,s.pendingProps,null))?s.memoizedState=o:Gt||(o=s.type,r=s.pendingProps,c=xd(pt.current).createElement(o),c[He]=s,c[yn]=r,$e(c,o,r),Pe(c),s.stateNode=c):s.memoizedState=bR(s.type,r.memoizedProps,s.pendingProps,r.memoizedState),null;case 27:return pe(s),r===null&&Gt&&(c=s.stateNode=mR(s.type,s.pendingProps,pt.current),Ge=s,Zn=!0,p=fe,es(s.type)?(C0=p,fe=Wn(c.firstChild)):fe=p),Ke(r,s,s.pendingProps.children,o),rd(r,s),r===null&&(s.flags|=4194304),s.child;case 5:return r===null&&Gt&&((p=c=fe)&&(c=K9(c,s.type,s.pendingProps,Zn),c!==null?(s.stateNode=c,Ge=s,fe=Wn(c.firstChild),Zn=!1,p=!0):p=!1),p||qi(s)),pe(s),p=s.type,g=s.pendingProps,x=r!==null?r.memoizedProps:null,c=g.children,x0(p,g)?c=null:x!==null&&x0(p,x)&&(s.flags|=32),s.memoizedState!==null&&(p=vy(r,s,l9,null,null,o),Fu._currentValue=p),rd(r,s),Ke(r,s,c,o),s.child;case 6:return r===null&&Gt&&((r=o=fe)&&(o=$9(o,s.pendingProps,Zn),o!==null?(s.stateNode=o,Ge=s,fe=null,r=!0):r=!1),r||qi(s)),null;case 13:return iO(r,s,o);case 4:return Jt(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=na(s,null,c,o):Ke(r,s,c,o),s.child;case 11:return QA(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,Js(s),p=Ye(p),c=c(p),s.flags|=1,Ke(r,s,c,o),s.child;case 14:return XA(r,s,s.type,s.pendingProps,o);case 15:return ZA(r,s,s.type,s.pendingProps,o);case 19:return aO(r,s,o);case 31:return g9(r,s,o);case 22:return JA(r,s,o,s.pendingProps);case 24:return Js(s),c=Ye(De),r===null?(p=uy(),p===null&&(p=oe,g=oy(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=o),p=g),s.memoizedState={parent:c,cache:p},fy(s),Fi(s,De,p)):((r.lanes&o)!==0&&(dy(r,s),wu(s,null,null,o),Su()),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,De,c)):(c=g.cache,Fi(s,De,c),c!==p.cache&&ay(s,[De],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 Ky(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(LO())r.flags|=8192;else throw ea=Ff,cy}else r.flags&=-16777217}function lO(r,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!ER(s))if(LO())r.flags|=8192;else throw ea=Ff,cy}function sd(r,s){s!==null&&(r.flags|=4),r.flags&16384&&(s=r.tag!==22?qC():536870912,r.lanes|=s,jo|=s)}function Ou(r,s){if(!Gt)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 b9(r,s,o){var c=s.pendingProps;switch(ey(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(De),kt(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(Eo(s)?ii(s):r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,ry())),de(s),null;case 26:var p=s.type,g=s.memoizedState;return r===null?(ii(s),g!==null?(de(s),lO(s,g)):(de(s),Ky(s,p,null,c,o))):g?g!==r.memoizedState?(ii(s),de(s),lO(s,g)):(de(s),s.flags&=-16777217):(r=r.memoizedProps,r!==c&&ii(s),de(s),Ky(s,p,r,c,o)),null;case 27:if(An(s),o=pt.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=lt.current,Eo(s)?q_(s):(r=mR(p,c,o),s.stateNode=r,ii(s))}return de(s),null;case 5:if(An(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=lt.current,Eo(s))q_(s);else{var x=xd(pt.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[He]=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($e(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),Ky(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=pt.current,Eo(s)){if(r=s.stateNode,o=s.memoizedProps,c=null,p=Ge,p!==null)switch(p.tag){case 27:case 5:c=p.memoizedProps}r[He]=s,r=!!(r.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||iR(r.nodeValue,o)),r||qi(s,!0)}else r=xd(r).createTextNode(c),r[He]=s,s.stateNode=r}return de(s),null;case 31:if(o=s.memoizedState,r===null||r.memoizedState!==null){if(c=Eo(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[He]=s}else Xs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;de(s),r=!1}else o=ry(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return s.flags&256?(Dn(s),s):(Dn(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=Eo(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[He]=s}else Xs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;de(s),p=!1}else p=ry(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=p),p=!0;if(!p)return s.flags&256?(Dn(s),s):(Dn(s),null)}return Dn(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),sd(s,s.updateQueue),de(s),null);case 4:return kt(),r===null&&m0(s.stateNode.containerInfo),de(s),null;case 10:return ti(s.type),de(s),null;case 19:if(T(_e),c=s.memoizedState,c===null)return de(s),null;if(p=(s.flags&128)!==0,g=c.rendering,g===null)if(p)Ou(c,!1);else{if(Ee!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(g=Yf(r),g!==null){for(s.flags|=128,Ou(c,!1),r=g.updateQueue,s.updateQueue=r,sd(s,r),s.subtreeFlags=0,r=o,o=s.child;o!==null;)j_(o,r),o=o.sibling;return nt(_e,_e.current&1|2),Gt&&Jr(s,c.treeForkCount),s.child}r=r.sibling}c.tail!==null&&an()>cd&&(s.flags|=128,p=!0,Ou(c,!1),s.lanes=4194304)}else{if(!p)if(r=Yf(g),r!==null){if(s.flags|=128,p=!0,r=r.updateQueue,s.updateQueue=r,sd(s,r),Ou(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Gt)return de(s),null}else 2*an()-c.renderingStartTime>cd&&o!==536870912&&(s.flags|=128,p=!0,Ou(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=an(),r.sibling=null,o=_e.current,nt(_e,p?o&1|2:o&1),Gt&&Jr(s,c.treeForkCount),r):(de(s),null);case 22:case 23:return Dn(s),gy(),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&&sd(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&&T(Ws),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),s.memoizedState.cache!==o&&(s.flags|=2048),ti(De),de(s),null;case 25:return null;case 30:return null}throw Error(a(156,s.tag))}function v9(r,s){switch(ey(s),s.tag){case 1:return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return ti(De),kt(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 26:case 27:case 5:return An(s),null;case 31:if(s.memoizedState!==null){if(Dn(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(Dn(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 T(_e),null;case 4:return kt(),null;case 10:return ti(s.type),null;case 22:case 23:return Dn(s),gy(),r!==null&&T(Ws),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 24:return ti(De),null;case 25:return null;default:return null}}function uO(r,s){switch(ey(s),s.tag){case 3:ti(De),kt();break;case 26:case 27:case 5:An(s);break;case 4:kt();break;case 31:s.memoizedState!==null&&Dn(s);break;case 13:Dn(s);break;case 19:T(_e);break;case 10:ti(s.type);break;case 22:case 23:Dn(s),gy(),r!==null&&T(Ws);break;case 24:ti(De)}}function Ru(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(E){ee(s,s.return,E)}}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,E=x.destroy;if(E!==void 0){x.destroy=void 0,p=s;var D=o,H=E;try{H()}catch(J){ee(p,D,J)}}}c=c.next}while(c!==g)}}catch(J){ee(s,s.return,J)}}function cO(r){var s=r.updateQueue;if(s!==null){var o=r.stateNode;try{tA(s,o)}catch(c){ee(r,r.return,c)}}}function fO(r,s,o){o.props=ia(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(c){ee(r,s,c)}}function ku(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 dO(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 $y(r,s,o){try{var c=r.stateNode;q9(c,r.type,o,s),c[yn]=s}catch(p){ee(r,r.return,p)}}function hO(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&es(r.type)||r.tag===4}function Qy(r){t:for(;;){for(;r.sibling===null;){if(r.return===null||hO(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 Xy(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=Qr));else if(c!==4&&(c===27&&es(r.type)&&(o=r.stateNode,s=null),r=r.child,r!==null))for(Xy(r,s,o),r=r.sibling;r!==null;)Xy(r,s,o),r=r.sibling}function ad(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(ad(r,s,o),r=r.sibling;r!==null;)ad(r,s,o),r=r.sibling}function pO(r){var s=r.stateNode,o=r.memoizedProps;try{for(var c=r.type,p=s.attributes;p.length;)s.removeAttributeNode(p[0]);$e(s,c,o),s[He]=r,s[yn]=o}catch(g){ee(r,r.return,g)}}var si=!1,Le=!1,Zy=!1,mO=typeof WeakSet=="function"?WeakSet:Set,qe=null;function x9(r,s){if(r=r.containerInfo,b0=Ad,r=A_(r),Hg(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,E=-1,D=-1,H=0,J=0,rt=r,$=null;e:for(;;){for(var X;rt!==o||p!==0&&rt.nodeType!==3||(E=x+p),rt!==g||c!==0&&rt.nodeType!==3||(D=x+c),rt.nodeType===3&&(x+=rt.nodeValue.length),(X=rt.firstChild)!==null;)$=rt,rt=X;for(;;){if(rt===r)break e;if($===o&&++H===p&&(E=x),$===g&&++J===c&&(D=x),(X=rt.nextSibling)!==null)break;rt=$,$=rt.parentNode}rt=X}o=E===-1||D===-1?null:{start:E,end:D}}else o=null}o=o||{start:0,end:0}}else o=null;for(v0={focusedElem:r,selectionRange:o},Ad=!1,qe=s;qe!==null;)if(s=qe,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,qe=r;else for(;qe!==null;){switch(s=qe,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 mt=ia(o.type,p);r=c.getSnapshotBeforeUpdate(mt,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)w0(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":w0(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,qe=r;break}qe=s.return}}function gO(r,s,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:oi(r,o),c&4&&Ru(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=ia(o.type,s.memoizedProps);s=s.memoizedState;try{r.componentDidUpdate(p,s,r.__reactInternalSnapshotBeforeUpdate)}catch(x){ee(o,o.return,x)}}c&64&&cO(o),c&512&&ku(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{tA(r,s)}catch(x){ee(o,o.return,x)}}break;case 27:s===null&&c&4&&pO(o);case 26:case 5:oi(r,o),s===null&&c&4&&dO(o),c&512&&ku(o,o.return);break;case 12:oi(r,o);break;case 31:oi(r,o),c&4&&vO(r,o);break;case 13:oi(r,o),c&4&&xO(r,o),c&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=R9.bind(null,o),Q9(r,o))));break;case 22:if(c=o.memoizedState!==null||si,!c){s=s!==null&&s.memoizedState!==null||Le,p=si;var g=Le;si=c,(Le=s)&&!g?li(r,o,(o.subtreeFlags&8772)!==0):oi(r,o),si=p,Le=g}break;case 30:break;default:oi(r,o)}}function yO(r){var s=r.alternate;s!==null&&(r.alternate=null,yO(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&Ag(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 me=null,vn=!1;function ai(r,s,o){for(o=o.child;o!==null;)bO(r,s,o),o=o.sibling}function bO(r,s,o){if(Ie&&typeof Ie.onCommitFiberUnmount=="function")try{Ie.onCommitFiberUnmount(ur,o)}catch{}switch(o.tag){case 26:Le||Nr(o,s),ai(r,s,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Le||Nr(o,s);var c=me,p=vn;es(o.type)&&(me=o.stateNode,vn=!1),ai(r,s,o),Uu(o.stateNode),me=c,vn=p;break;case 5:Le||Nr(o,s);case 6:if(c=me,p=vn,me=null,ai(r,s,o),me=c,vn=p,me!==null)if(vn)try{(me.nodeType===9?me.body:me.nodeName==="HTML"?me.ownerDocument.body:me).removeChild(o.stateNode)}catch(g){ee(o,s,g)}else try{me.removeChild(o.stateNode)}catch(g){ee(o,s,g)}break;case 18:me!==null&&(vn?(r=me,cR(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Ho(r)):cR(me,o.stateNode));break;case 4:c=me,p=vn,me=o.stateNode.containerInfo,vn=!0,ai(r,s,o),me=c,vn=p;break;case 0:case 11:case 14:case 15:$i(2,o,s),Le||$i(4,o,s),ai(r,s,o);break;case 1:Le||(Nr(o,s),c=o.stateNode,typeof c.componentWillUnmount=="function"&&fO(o,s,c)),ai(r,s,o);break;case 21:ai(r,s,o);break;case 22:Le=(c=Le)||o.memoizedState!==null,ai(r,s,o),Le=c;break;default:ai(r,s,o)}}function vO(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Ho(r)}catch(o){ee(s,s.return,o)}}}function xO(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Ho(r)}catch(o){ee(s,s.return,o)}}function S9(r){switch(r.tag){case 31:case 13:case 19:var s=r.stateNode;return s===null&&(s=r.stateNode=new mO),s;case 22:return r=r.stateNode,s=r._retryCache,s===null&&(s=r._retryCache=new mO),s;default:throw Error(a(435,r.tag))}}function od(r,s){var o=S9(r);s.forEach(function(c){if(!o.has(c)){o.add(c);var p=k9.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,E=x;t:for(;E!==null;){switch(E.tag){case 27:if(es(E.type)){me=E.stateNode,vn=!1;break t}break;case 5:me=E.stateNode,vn=!1;break t;case 3:case 4:me=E.stateNode.containerInfo,vn=!0;break t}E=E.return}if(me===null)throw Error(a(160));bO(g,x,p),me=null,vn=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)SO(s,r),s=s.sibling}var dr=null;function SO(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),Ru(3,r),$i(5,r,r.return));break;case 1:xn(s,r),Sn(r),c&512&&(Le||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&&(Le||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[ru]||g[He]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(c),p.head.insertBefore(g,p.querySelector("head > title"))),$e(g,c,o),g[He]=r,Pe(g),c=g;break t;case"link":var x=SR("link","href",p).get(c+(o.href||""));if(x){for(var E=0;E<x.length;E++)if(g=x[E],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(E,1);break e}}g=p.createElement(c),$e(g,c,o),p.head.appendChild(g);break;case"meta":if(x=SR("meta","content",p).get(c+(o.content||""))){for(E=0;E<x.length;E++)if(g=x[E],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(E,1);break e}}g=p.createElement(c),$e(g,c,o),p.head.appendChild(g);break;default:throw Error(a(468,c))}g[He]=r,Pe(g),c=g}r.stateNode=c}else wR(p,r.type,r.stateNode);else r.stateNode=xR(p,c,r.memoizedProps);else g!==c?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,c===null?wR(p,r.type,r.stateNode):xR(p,c,r.memoizedProps)):c===null&&r.stateNode!==null&&$y(r,r.memoizedProps,o.memoizedProps)}break;case 27:xn(s,r),Sn(r),c&512&&(Le||o===null||Nr(o,o.return)),o!==null&&c&4&&$y(r,r.memoizedProps,o.memoizedProps);break;case 5:if(xn(s,r),Sn(r),c&512&&(Le||o===null||Nr(o,o.return)),r.flags&32){p=r.stateNode;try{ho(p,"")}catch(mt){ee(r,r.return,mt)}}c&4&&r.stateNode!=null&&(p=r.memoizedProps,$y(r,p,o!==null?o.memoizedProps:p)),c&1024&&(Zy=!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(mt){ee(r,r.return,mt)}}break;case 3:if(Ed=null,p=dr,dr=Sd(s.containerInfo),xn(s,r),dr=p,Sn(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Ho(s.containerInfo)}catch(mt){ee(r,r.return,mt)}Zy&&(Zy=!1,wO(r));break;case 4:c=dr,dr=Sd(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,od(r,c)));break;case 13:xn(s,r),Sn(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(ud=an()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,od(r,c)));break;case 22:p=r.memoizedState!==null;var D=o!==null&&o.memoizedState!==null,H=si,J=Le;if(si=H||p,Le=J||D,xn(s,r),Le=J,si=H,Sn(r),c&8192)t:for(s=r.stateNode,s._visibility=p?s._visibility&-2:s._visibility|1,p&&(o===null||D||si||Le||sa(r)),o=null,s=r;;){if(s.tag===5||s.tag===26){if(o===null){D=o=s;try{if(g=D.stateNode,p)x=g.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{E=D.stateNode;var rt=D.memoizedProps.style,$=rt!=null&&rt.hasOwnProperty("display")?rt.display:null;E.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(mt){ee(D,D.return,mt)}}}else if(s.tag===6){if(o===null){D=s;try{D.stateNode.nodeValue=p?"":D.memoizedProps}catch(mt){ee(D,D.return,mt)}}}else if(s.tag===18){if(o===null){D=s;try{var X=D.stateNode;p?fR(X,!0):fR(D.stateNode,!1)}catch(mt){ee(D,D.return,mt)}}}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,od(r,o))));break;case 19:xn(s,r),Sn(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,od(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(hO(c)){o=c;break}c=c.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var p=o.stateNode,g=Qy(r);ad(r,g,p);break;case 5:var x=o.stateNode;o.flags&32&&(ho(x,""),o.flags&=-33);var E=Qy(r);ad(r,E,x);break;case 3:case 4:var D=o.stateNode.containerInfo,H=Qy(r);Xy(r,H,D);break;default:throw Error(a(161))}}catch(J){ee(r,r.return,J)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function wO(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var s=r;wO(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;)gO(r,s.alternate,s),s=s.sibling}function sa(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),sa(s);break;case 1:Nr(s,s.return);var o=s.stateNode;typeof o.componentWillUnmount=="function"&&fO(s,s.return,o),sa(s);break;case 27:Uu(s.stateNode);case 26:case 5:Nr(s,s.return),sa(s);break;case 22:s.memoizedState===null&&sa(s);break;case 30:sa(s);break;default:sa(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),Ru(4,g);break;case 1:if(li(p,g,o),c=g,p=c.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(H){ee(c,c.return,H)}if(c=g,p=c.updateQueue,p!==null){var E=c.stateNode;try{var D=p.shared.hiddenCallbacks;if(D!==null)for(p.shared.hiddenCallbacks=null,p=0;p<D.length;p++)W_(D[p],E)}catch(H){ee(c,c.return,H)}}o&&x&64&&cO(g),ku(g,g.return);break;case 27:pO(g);case 26:case 5:li(p,g,o),o&&c===null&&x&4&&dO(g),ku(g,g.return);break;case 12:li(p,g,o);break;case 31:li(p,g,o),o&&x&4&&vO(p,g);break;case 13:li(p,g,o),o&&x&4&&xO(p,g);break;case 22:g.memoizedState===null&&li(p,g,o),ku(g,g.return);break;case 30:break;default:li(p,g,o)}s=s.sibling}}function Jy(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&&gu(o))}function Wy(r,s){r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&gu(r))}function hr(r,s,o,c){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)EO(r,s,o,c),s=s.sibling}function EO(r,s,o,c){var p=s.flags;switch(s.tag){case 0:case 11:case 15:hr(r,s,o,c),p&2048&&Ru(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&&gu(r)));break;case 12:if(p&2048){hr(r,s,o,c),r=s.stateNode;try{var g=s.memoizedProps,x=g.id,E=g.onPostCommit;typeof E=="function"&&E(x,s.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(D){ee(s,s.return,D)}}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):Du(r,s):g._visibility&2?hr(r,s,o,c):(g._visibility|=2,Mo(r,s,o,c,(s.subtreeFlags&10256)!==0||!1)),p&2048&&Jy(x,s);break;case 24:hr(r,s,o,c),p&2048&&Wy(s.alternate,s);break;default:hr(r,s,o,c)}}function Mo(r,s,o,c,p){for(p=p&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var g=r,x=s,E=o,D=c,H=x.flags;switch(x.tag){case 0:case 11:case 15:Mo(g,x,E,D,p),Ru(8,x);break;case 23:break;case 22:var J=x.stateNode;x.memoizedState!==null?J._visibility&2?Mo(g,x,E,D,p):Du(g,x):(J._visibility|=2,Mo(g,x,E,D,p)),p&&H&2048&&Jy(x.alternate,x);break;case 24:Mo(g,x,E,D,p),p&&H&2048&&Wy(x.alternate,x);break;default:Mo(g,x,E,D,p)}s=s.sibling}}function Du(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:Du(o,c),p&2048&&Jy(c.alternate,c);break;case 24:Du(o,c),p&2048&&Wy(c.alternate,c);break;default:Du(o,c)}s=s.sibling}}var Nu=8192;function Lo(r,s,o){if(r.subtreeFlags&Nu)for(r=r.child;r!==null;)TO(r,s,o),r=r.sibling}function TO(r,s,o){switch(r.tag){case 26:Lo(r,s,o),r.flags&Nu&&r.memoizedState!==null&&o7(o,dr,r.memoizedState,r.memoizedProps);break;case 5:Lo(r,s,o);break;case 3:case 4:var c=dr;dr=Sd(r.stateNode.containerInfo),Lo(r,s,o),dr=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=Nu,Nu=16777216,Lo(r,s,o),Nu=c):Lo(r,s,o));break;default:Lo(r,s,o)}}function CO(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 Mu(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];qe=c,AO(c,r)}CO(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)_O(r),r=r.sibling}function _O(r){switch(r.tag){case 0:case 11:case 15:Mu(r),r.flags&2048&&$i(9,r,r.return);break;case 3:Mu(r);break;case 12:Mu(r);break;case 22:var s=r.stateNode;r.memoizedState!==null&&s._visibility&2&&(r.return===null||r.return.tag!==13)?(s._visibility&=-3,ld(r)):Mu(r);break;default:Mu(r)}}function ld(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];qe=c,AO(c,r)}CO(r)}for(r=r.child;r!==null;){switch(s=r,s.tag){case 0:case 11:case 15:$i(8,s,s.return),ld(s);break;case 22:o=s.stateNode,o._visibility&2&&(o._visibility&=-3,ld(s));break;default:ld(s)}r=r.sibling}}function AO(r,s){for(;qe!==null;){var o=qe;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:gu(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,qe=c;else t:for(o=r;qe!==null;){c=qe;var p=c.sibling,g=c.return;if(yO(c),c===o){qe=null;break t}if(p!==null){p.return=g,qe=p;break t}qe=g}}}var w9={getCacheForType:function(r){var s=Ye(De),o=s.data.get(r);return o===void 0&&(o=r(),s.data.set(r,o)),o},cacheSignal:function(){return Ye(De).controller.signal}},E9=typeof WeakMap=="function"?WeakMap:Map,Xt=0,oe=null,Pt=null,Ft=0,te=0,Nn=null,Qi=!1,zo=!1,t0=!1,ui=0,Ee=0,Xi=0,aa=0,e0=0,Mn=0,jo=0,Lu=null,wn=null,n0=!1,ud=0,OO=0,cd=1/0,fd=null,Zi=null,Be=0,Ji=null,Io=null,ci=0,r0=0,i0=null,RO=null,zu=0,s0=null;function Ln(){return(Xt&2)!==0&&Ft!==0?Ft&-Ft:G.T!==null?f0():GC()}function kO(){if(Mn===0)if((Ft&536870912)===0||Gt){var r=vf;vf<<=1,(vf&3932160)===0&&(vf=262144),Mn=r}else Mn=536870912;return r=kn.current,r!==null&&(r.flags|=32),Mn}function En(r,s,o){(r===oe&&(te===2||te===9)||r.cancelPendingCommit!==null)&&(Bo(r,0),Wi(r,Ft,Mn,!1)),nu(r,o),((Xt&2)===0||r!==oe)&&(r===oe&&((Xt&2)===0&&(aa|=o),Ee===4&&Wi(r,Ft,Mn,!1)),Mr(r))}function DO(r,s,o){if((Xt&6)!==0)throw Error(a(327));var c=!o&&(s&127)===0&&(s&r.expiredLanes)===0||eu(r,s),p=c?_9(r,s):o0(r,s,!0),g=c;do{if(p===0){zo&&!c&&Wi(r,s,0,!1);break}else{if(o=r.current.alternate,g&&!T9(o)){p=o0(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 E=r;p=Lu;var D=E.current.memoizedState.isDehydrated;if(D&&(Bo(E,x).flags|=256),x=o0(E,x,!1),x!==2){if(t0&&!D){E.errorRecoveryDisabledLanes|=g,aa|=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,Mn,!Qi);break t;case 2:wn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((s&62914560)===s&&(p=ud+300-an(),10<p)){if(Wi(c,s,Mn,!Qi),Sf(c,0,!0)!==0)break t;ci=s,c.timeoutHandle=lR(NO.bind(null,c,o,wn,fd,n0,s,Mn,aa,jo,Qi,g,"Throttled",-0,0),p);break t}NO(c,o,wn,fd,n0,s,Mn,aa,jo,Qi,g,null,-0,0)}}break}while(!0);Mr(r)}function NO(r,s,o,c,p,g,x,E,D,H,J,rt,$,X){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:Qr},TO(s,g,rt);var mt=(g&62914560)===g?ud-an():(g&4194048)===g?OO-an():0;if(mt=l7(rt,mt),mt!==null){ci=g,r.cancelPendingCommit=mt(PO.bind(null,r,s,g,o,c,p,x,E,D,J,rt,null,$,X)),Wi(r,g,x,!H);return}}PO(r,s,g,o,c,p,x,E,D)}function T9(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(!On(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&=~e0,s&=~aa,r.suspendedLanes|=s,r.pingedLanes&=~s,c&&(r.warmLanes|=s),c=r.expirationTimes;for(var p=s;0<p;){var g=31-ke(p),x=1<<g;c[g]=-1,p&=~x}o!==0&&FC(r,o,s)}function dd(){return(Xt&6)===0?(ju(0),!1):!0}function a0(){if(Pt!==null){if(te===0)var r=Pt.return;else r=Pt,Wr=Zs=null,wy(r),Oo=null,bu=0,r=Pt;for(;r!==null;)uO(r.alternate,r),r=r.return;Pt=null}}function Bo(r,s){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,H9(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),ci=0,a0(),oe=r,Pt=o=Zr(r.current,null),Ft=s,te=0,Nn=null,Qi=!1,zo=eu(r,s),t0=!1,jo=Mn=e0=aa=Xi=Ee=0,wn=Lu=null,n0=!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-ke(c),g=1<<p;s|=r[p],c&=~g}return ui=s,Mf(),o}function MO(r,s){Nt=null,G.H=_u,s===Ao||s===qf?(s=Q_(),te=3):s===cy?(s=Q_(),te=4):te=s===By?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Nn=s,Pt===null&&(Ee=1,ed(r,$n(s,r.current)))}function LO(){var r=kn.current;return r===null?!0:(Ft&4194048)===Ft?Jn===null:(Ft&62914560)===Ft||(Ft&536870912)!==0?r===Jn:!1}function zO(){var r=G.H;return G.H=_u,r===null?_u:r}function jO(){var r=G.A;return G.A=w9,r}function hd(){Ee=4,Qi||(Ft&4194048)!==Ft&&kn.current!==null||(zo=!0),(Xi&134217727)===0&&(aa&134217727)===0||oe===null||Wi(oe,Ft,Mn,!1)}function o0(r,s,o){var c=Xt;Xt|=2;var p=zO(),g=jO();(oe!==r||Ft!==s)&&(fd=null,Bo(r,s)),s=!1;var x=Ee;t:do try{if(te!==0&&Pt!==null){var E=Pt,D=Nn;switch(te){case 8:a0(),x=6;break t;case 3:case 2:case 9:case 6:kn.current===null&&(s=!0);var H=te;if(te=0,Nn=null,Uo(r,E,D,H),o&&zo){x=0;break t}break;default:H=te,te=0,Nn=null,Uo(r,E,D,H)}}C9(),x=Ee;break}catch(J){MO(r,J)}while(!0);return s&&r.shellSuspendCounter++,Wr=Zs=null,Xt=c,G.H=p,G.A=g,Pt===null&&(oe=null,Ft=0,Mf()),x}function C9(){for(;Pt!==null;)IO(Pt)}function _9(r,s){var o=Xt;Xt|=2;var c=zO(),p=jO();oe!==r||Ft!==s?(fd=null,cd=an()+500,Bo(r,s)):zo=eu(r,s);t:do try{if(te!==0&&Pt!==null){s=Pt;var g=Nn;e:switch(te){case 1:te=0,Nn=null,Uo(r,s,g,1);break;case 2:case 9:if(K_(g)){te=0,Nn=null,BO(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:K_(g)?(te=0,Nn=null,BO(s)):(te=0,Nn=null,Uo(r,s,g,7));break;case 5:var x=null;switch(Pt.tag){case 26:x=Pt.memoizedState;case 5:case 27:var E=Pt;if(x?ER(x):E.stateNode.complete){te=0,Nn=null;var D=E.sibling;if(D!==null)Pt=D;else{var H=E.return;H!==null?(Pt=H,pd(H)):Pt=null}break e}}te=0,Nn=null,Uo(r,s,g,5);break;case 6:te=0,Nn=null,Uo(r,s,g,6);break;case 8:a0(),Ee=6;break t;default:throw Error(a(462))}}A9();break}catch(J){MO(r,J)}while(!0);return Wr=Zs=null,G.H=c,G.A=p,Xt=o,Pt!==null?0:(oe=null,Ft=0,Mf(),Ee)}function A9(){for(;Pt!==null&&!Sg();)IO(Pt)}function IO(r){var s=oO(r.alternate,r,ui);r.memoizedProps=r.pendingProps,s===null?pd(r):Pt=s}function BO(r){var s=r,o=s.alternate;switch(s.tag){case 15:case 0:s=eO(o,s,s.pendingProps,s.type,void 0,Ft);break;case 11:s=eO(o,s,s.pendingProps,s.type.render,s.ref,Ft);break;case 5:wy(s);default:uO(o,s),s=Pt=j_(s,ui),s=oO(o,s,ui)}r.memoizedProps=r.pendingProps,s===null?pd(r):Pt=s}function Uo(r,s,o,c){Wr=Zs=null,wy(s),Oo=null,bu=0;var p=s.return;try{if(m9(r,p,s,o,Ft)){Ee=1,ed(r,$n(o,r.current)),Pt=null;return}}catch(g){if(p!==null)throw Pt=p,g;Ee=1,ed(r,$n(o,r.current)),Pt=null;return}s.flags&32768?(Gt||c===1?r=!0:zo||(Ft&536870912)!==0?r=!1:(Qi=r=!0,(c===2||c===9||c===3||c===6)&&(c=kn.current,c!==null&&c.tag===13&&(c.flags|=16384))),UO(s,r)):pd(s)}function pd(r){var s=r;do{if((s.flags&32768)!==0){UO(s,Qi);return}r=s.return;var o=b9(s.alternate,s,ui);if(o!==null){Pt=o;return}if(s=s.sibling,s!==null){Pt=s;return}Pt=s=r}while(s!==null);Ee===0&&(Ee=5)}function UO(r,s){do{var o=v9(r.alternate,r);if(o!==null){o.flags&=32767,Pt=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!s&&(r=r.sibling,r!==null)){Pt=r;return}Pt=r=o}while(r!==null);Ee=6,Pt=null}function PO(r,s,o,c,p,g,x,E,D){r.cancelPendingCommit=null;do md();while(Be!==0);if((Xt&6)!==0)throw Error(a(327));if(s!==null){if(s===r.current)throw Error(a(177));if(g=s.lanes|s.childLanes,g|=Qg,a8(r,o,g,x,E,D),r===oe&&(Pt=oe=null,Ft=0),Io=s,Ji=r,ci=o,r0=g,i0=p,RO=c,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,D9(jt,function(){return GO(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||c){c=G.T,G.T=null,p=q.p,q.p=2,x=Xt,Xt|=4;try{x9(r,s,o)}finally{Xt=x,q.p=p,G.T=c}}Be=1,qO(),FO(),VO()}}function qO(){if(Be===1){Be=0;var r=Ji,s=Io,o=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var c=q.p;q.p=2;var p=Xt;Xt|=4;try{SO(s,r);var g=v0,x=A_(r.containerInfo),E=g.focusedElem,D=g.selectionRange;if(x!==E&&E&&E.ownerDocument&&__(E.ownerDocument.documentElement,E)){if(D!==null&&Hg(E)){var H=D.start,J=D.end;if(J===void 0&&(J=H),"selectionStart"in E)E.selectionStart=H,E.selectionEnd=Math.min(J,E.value.length);else{var rt=E.ownerDocument||document,$=rt&&rt.defaultView||window;if($.getSelection){var X=$.getSelection(),mt=E.textContent.length,wt=Math.min(D.start,mt),ae=D.end===void 0?wt:Math.min(D.end,mt);!X.extend&&wt>ae&&(x=ae,ae=wt,wt=x);var U=C_(E,wt),j=C_(E,ae);if(U&&j&&(X.rangeCount!==1||X.anchorNode!==U.node||X.anchorOffset!==U.offset||X.focusNode!==j.node||X.focusOffset!==j.offset)){var V=rt.createRange();V.setStart(U.node,U.offset),X.removeAllRanges(),wt>ae?(X.addRange(V),X.extend(j.node,j.offset)):(V.setEnd(j.node,j.offset),X.addRange(V))}}}}for(rt=[],X=E;X=X.parentNode;)X.nodeType===1&&rt.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<rt.length;E++){var tt=rt[E];tt.element.scrollLeft=tt.left,tt.element.scrollTop=tt.top}}Ad=!!b0,v0=b0=null}finally{Xt=p,q.p=c,G.T=o}}r.current=s,Be=2}}function FO(){if(Be===2){Be=0;var r=Ji,s=Io,o=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var c=q.p;q.p=2;var p=Xt;Xt|=4;try{gO(r,s.alternate,s)}finally{Xt=p,q.p=c,G.T=o}}Be=3}}function VO(){if(Be===4||Be===3){Be=0,wg();var r=Ji,s=Io,o=ci,c=RO;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Be=5:(Be=0,Io=Ji=null,HO(r,r.pendingLanes));var p=r.pendingLanes;if(p===0&&(Zi=null),Cg(o),s=s.stateNode,Ie&&typeof Ie.onCommitFiberRoot=="function")try{Ie.onCommitFiberRoot(ur,s,void 0,(s.current.flags&128)===128)}catch{}if(c!==null){s=G.T,p=q.p,q.p=2,G.T=null;try{for(var g=r.onRecoverableError,x=0;x<c.length;x++){var E=c[x];g(E.value,{componentStack:E.stack})}}finally{G.T=s,q.p=p}}(ci&3)!==0&&md(),Mr(r),p=r.pendingLanes,(o&261930)!==0&&(p&42)!==0?r===s0?zu++:(zu=0,s0=r):zu=0,ju(0)}}function HO(r,s){(r.pooledCacheLanes&=s)===0&&(s=r.pooledCache,s!=null&&(r.pooledCache=null,gu(s)))}function md(){return qO(),FO(),VO(),GO()}function GO(){if(Be!==5)return!1;var r=Ji,s=r0;r0=0;var o=Cg(ci),c=G.T,p=q.p;try{q.p=32>o?32:o,G.T=null,o=i0,i0=null;var g=Ji,x=ci;if(Be=0,Io=Ji=null,ci=0,(Xt&6)!==0)throw Error(a(331));var E=Xt;if(Xt|=4,_O(g.current),EO(g,g.current,x,o),Xt=E,ju(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot=="function")try{Ie.onPostCommitFiberRoot(ur,g)}catch{}return!0}finally{q.p=p,G.T=c,HO(r,s)}}function YO(r,s,o){s=$n(o,s),s=Iy(r.stateNode,s,2),r=Gi(r,s,2),r!==null&&(nu(r,2),Mr(r))}function ee(r,s,o){if(r.tag===3)YO(r,r,o);else for(;s!==null;){if(s.tag===3){YO(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=$n(o,r),o=KA(2),c=Gi(s,o,2),c!==null&&($A(o,c,s,r),nu(c,2),Mr(c));break}}s=s.return}}function l0(r,s,o){var c=r.pingCache;if(c===null){c=r.pingCache=new E9;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)||(t0=!0,p.add(o),r=O9.bind(null,r,s,o),s.then(r,r))}function O9(r,s,o){var c=r.pingCache;c!==null&&c.delete(s),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,oe===r&&(Ft&o)===o&&(Ee===4||Ee===3&&(Ft&62914560)===Ft&&300>an()-ud?(Xt&2)===0&&Bo(r,0):e0|=o,jo===Ft&&(jo=0)),Mr(r)}function KO(r,s){s===0&&(s=qC()),r=$s(r,s),r!==null&&(nu(r,s),Mr(r))}function R9(r){var s=r.memoizedState,o=0;s!==null&&(o=s.retryLane),KO(r,o)}function k9(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),KO(r,o)}function D9(r,s){return Wl(r,s)}var gd=null,Po=null,u0=!1,yd=!1,c0=!1,ts=0;function Mr(r){r!==Po&&r.next===null&&(Po===null?gd=Po=r:Po=Po.next=r),yd=!0,u0||(u0=!0,M9())}function ju(r,s){if(!c0&&yd){c0=!0;do for(var o=!1,c=gd;c!==null;){if(r!==0){var p=c.pendingLanes;if(p===0)var g=0;else{var x=c.suspendedLanes,E=c.pingedLanes;g=(1<<31-ke(42|r)+1)-1,g&=p&~(x&~E),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,ZO(c,g))}else g=Ft,g=Sf(c,c===oe?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||eu(c,g)||(o=!0,ZO(c,g));c=c.next}while(o);c0=!1}}function N9(){$O()}function $O(){yd=u0=!1;var r=0;ts!==0&&V9()&&(r=ts);for(var s=an(),o=null,c=gd;c!==null;){var p=c.next,g=QO(c,s);g===0?(c.next=null,o===null?gd=p:o.next=p,p===null&&(Po=o)):(o=c,(r!==0||(g&3)!==0)&&(yd=!0)),c=p}Be!==0&&Be!==5||ju(r),ts!==0&&(ts=0)}function QO(r,s){for(var o=r.suspendedLanes,c=r.pingedLanes,p=r.expirationTimes,g=r.pendingLanes&-62914561;0<g;){var x=31-ke(g),E=1<<x,D=p[x];D===-1?((E&o)===0||(E&c)!==0)&&(p[x]=s8(E,s)):D<=s&&(r.expiredLanes|=E),g&=~E}if(s=oe,o=Ft,o=Sf(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&&tu(c),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||eu(r,o)){if(s=o&-o,s===r.callbackPriority)return s;switch(c!==null&&tu(c),Cg(o)){case 2:case 8:o=At;break;case 32:o=jt;break;case 268435456:o=gn;break;default:o=jt}return c=XO.bind(null,r),o=Wl(o,c),r.callbackPriority=s,r.callbackNode=o,s}return c!==null&&c!==null&&tu(c),r.callbackPriority=2,r.callbackNode=null,2}function XO(r,s){if(Be!==0&&Be!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(md()&&r.callbackNode!==o)return null;var c=Ft;return c=Sf(r,r===oe?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(DO(r,c,s),QO(r,an()),r.callbackNode!=null&&r.callbackNode===o?XO.bind(null,r):null)}function ZO(r,s){if(md())return null;DO(r,s,!0)}function M9(){G9(function(){(Xt&6)!==0?Wl(ct,N9):$O()})}function f0(){if(ts===0){var r=Co;r===0&&(r=bf,bf<<=1,(bf&261888)===0&&(bf=256)),ts=r}return ts}function JO(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Cf(""+r)}function WO(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 L9(r,s,o,c,p){if(s==="submit"&&o&&o.stateNode===p){var g=JO((p[yn]||null).action),x=c.submitter;x&&(s=(s=x[yn]||null)?JO(s.formAction):x.getAttribute("formAction"),s!==null&&(g=s,x=null));var E=new Rf("action","action",null,c,p);r.push({event:E,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(ts!==0){var D=x?WO(p,x):new FormData(p);Dy(o,{pending:!0,data:D,method:p.method,action:g},null,D)}}else typeof g=="function"&&(E.preventDefault(),D=x?WO(p,x):new FormData(p),Dy(o,{pending:!0,data:D,method:p.method,action:g},g,D))},currentTarget:p}]})}}for(var d0=0;d0<$g.length;d0++){var h0=$g[d0],z9=h0.toLowerCase(),j9=h0[0].toUpperCase()+h0.slice(1);fr(z9,"on"+j9)}fr(k_,"onAnimationEnd"),fr(D_,"onAnimationIteration"),fr(N_,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(J8,"onTransitionRun"),fr(W8,"onTransitionStart"),fr(t9,"onTransitionCancel"),fr(M_,"onTransitionEnd"),co("onMouseEnter",["mouseout","mouseover"]),co("onMouseLeave",["mouseout","mouseover"]),co("onPointerEnter",["pointerout","pointerover"]),co("onPointerLeave",["pointerout","pointerover"]),Hs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Iu="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(" "),I9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Iu));function tR(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 E=c[x],D=E.instance,H=E.currentTarget;if(E=E.listener,D!==g&&p.isPropagationStopped())break t;g=E,p.currentTarget=H;try{g(p)}catch(J){Nf(J)}p.currentTarget=null,g=D}else for(x=0;x<c.length;x++){if(E=c[x],D=E.instance,H=E.currentTarget,E=E.listener,D!==g&&p.isPropagationStopped())break t;g=E,p.currentTarget=H;try{g(p)}catch(J){Nf(J)}p.currentTarget=null,g=D}}}}function qt(r,s){var o=s[_g];o===void 0&&(o=s[_g]=new Set);var c=r+"__bubble";o.has(c)||(eR(s,r,2,!1),o.add(c))}function p0(r,s,o){var c=0;s&&(c|=4),eR(o,r,c,s)}var bd="_reactListening"+Math.random().toString(36).slice(2);function m0(r){if(!r[bd]){r[bd]=!0,$C.forEach(function(o){o!=="selectionchange"&&(I9.has(o)||p0(o,!1,r),p0(o,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[bd]||(s[bd]=!0,p0("selectionchange",!1,s))}}function eR(r,s,o,c){switch(kR(s)){case 2:var p=f7;break;case 8:p=d7;break;default:p=k0}o=p.bind(null,s,o,r),p=void 0,!zg||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 g0(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 E=c.stateNode.containerInfo;if(E===p)break;if(x===4)for(x=c.return;x!==null;){var D=x.tag;if((D===3||D===4)&&x.stateNode.containerInfo===p)return;x=x.return}for(;E!==null;){if(x=oo(E),x===null)return;if(D=x.tag,D===5||D===6||D===26||D===27){c=g=x;continue t}E=E.parentNode}}c=c.return}a_(function(){var H=g,J=Mg(o),rt=[];t:{var $=L_.get(r);if($!==void 0){var X=Rf,mt=r;switch(r){case"keypress":if(Af(o)===0)break t;case"keydown":case"keyup":X=k8;break;case"focusin":mt="focus",X=Ug;break;case"focusout":mt="blur",X=Ug;break;case"beforeblur":case"afterblur":X=Ug;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":X=u_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=b8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=M8;break;case k_:case D_:case N_:X=S8;break;case M_:X=z8;break;case"scroll":case"scrollend":X=g8;break;case"wheel":X=I8;break;case"copy":case"cut":case"paste":X=E8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=f_;break;case"toggle":case"beforetoggle":X=U8}var wt=(s&4)!==0,ae=!wt&&(r==="scroll"||r==="scrollend"),U=wt?$!==null?$+"Capture":null:$;wt=[];for(var j=H,V;j!==null;){var tt=j;if(V=tt.stateNode,tt=tt.tag,tt!==5&&tt!==26&&tt!==27||V===null||U===null||(tt=su(j,U),tt!=null&&wt.push(Bu(j,tt,V))),ae)break;j=j.return}0<wt.length&&($=new X($,mt,null,o,J),rt.push({event:$,listeners:wt}))}}if((s&7)===0){t:{if($=r==="mouseover"||r==="pointerover",X=r==="mouseout"||r==="pointerout",$&&o!==Ng&&(mt=o.relatedTarget||o.fromElement)&&(oo(mt)||mt[ao]))break t;if((X||$)&&($=J.window===J?J:($=J.ownerDocument)?$.defaultView||$.parentWindow:window,X?(mt=o.relatedTarget||o.toElement,X=H,mt=mt?oo(mt):null,mt!==null&&(ae=u(mt),wt=mt.tag,mt!==ae||wt!==5&&wt!==27&&wt!==6)&&(mt=null)):(X=null,mt=H),X!==mt)){if(wt=u_,tt="onMouseLeave",U="onMouseEnter",j="mouse",(r==="pointerout"||r==="pointerover")&&(wt=f_,tt="onPointerLeave",U="onPointerEnter",j="pointer"),ae=X==null?$:iu(X),V=mt==null?$:iu(mt),$=new wt(tt,j+"leave",X,o,J),$.target=ae,$.relatedTarget=V,tt=null,oo(J)===H&&(wt=new wt(U,j+"enter",mt,o,J),wt.target=V,wt.relatedTarget=ae,tt=wt),ae=tt,X&&mt)e:{for(wt=B9,U=X,j=mt,V=0,tt=U;tt;tt=wt(tt))V++;tt=0;for(var St=j;St;St=wt(St))tt++;for(;0<V-tt;)U=wt(U),V--;for(;0<tt-V;)j=wt(j),tt--;for(;V--;){if(U===j||j!==null&&U===j.alternate){wt=U;break e}U=wt(U),j=wt(j)}wt=null}else wt=null;X!==null&&nR(rt,$,X,wt,!1),mt!==null&&ae!==null&&nR(rt,ae,mt,wt,!0)}}t:{if($=H?iu(H):window,X=$.nodeName&&$.nodeName.toLowerCase(),X==="select"||X==="input"&&$.type==="file")var Kt=v_;else if(y_($))if(x_)Kt=Q8;else{Kt=K8;var xt=Y8}else X=$.nodeName,!X||X.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?H&&Dg(H.elementType)&&(Kt=v_):Kt=$8;if(Kt&&(Kt=Kt(r,H))){b_(rt,Kt,o,J);break t}xt&&xt(r,$,H),r==="focusout"&&H&&$.type==="number"&&H.memoizedProps.value!=null&&kg($,"number",$.value)}switch(xt=H?iu(H):window,r){case"focusin":(y_(xt)||xt.contentEditable==="true")&&(yo=xt,Gg=H,hu=null);break;case"focusout":hu=Gg=yo=null;break;case"mousedown":Yg=!0;break;case"contextmenu":case"mouseup":case"dragend":Yg=!1,O_(rt,o,J);break;case"selectionchange":if(Z8)break;case"keydown":case"keyup":O_(rt,o,J)}var zt;if(qg)t:{switch(r){case"compositionstart":var Vt="onCompositionStart";break t;case"compositionend":Vt="onCompositionEnd";break t;case"compositionupdate":Vt="onCompositionUpdate";break t}Vt=void 0}else go?m_(r,o)&&(Vt="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(Vt="onCompositionStart");Vt&&(d_&&o.locale!=="ko"&&(go||Vt!=="onCompositionStart"?Vt==="onCompositionEnd"&&go&&(zt=o_()):(Bi=J,jg="value"in Bi?Bi.value:Bi.textContent,go=!0)),xt=vd(H,Vt),0<xt.length&&(Vt=new c_(Vt,r,null,o,J),rt.push({event:Vt,listeners:xt}),zt?Vt.data=zt:(zt=g_(o),zt!==null&&(Vt.data=zt)))),(zt=q8?F8(r,o):V8(r,o))&&(Vt=vd(H,"onBeforeInput"),0<Vt.length&&(xt=new c_("onBeforeInput","beforeinput",null,o,J),rt.push({event:xt,listeners:Vt}),xt.data=zt)),L9(rt,r,H,o,J)}tR(rt,s)})}function Bu(r,s,o){return{instance:r,listener:s,currentTarget:o}}function vd(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=su(r,o),p!=null&&c.unshift(Bu(r,p,g)),p=su(r,s),p!=null&&c.push(Bu(r,p,g))),r.tag===3)return c;r=r.return}return[]}function B9(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function nR(r,s,o,c,p){for(var g=s._reactName,x=[];o!==null&&o!==c;){var E=o,D=E.alternate,H=E.stateNode;if(E=E.tag,D!==null&&D===c)break;E!==5&&E!==26&&E!==27||H===null||(D=H,p?(H=su(o,g),H!=null&&x.unshift(Bu(o,H,D))):p||(H=su(o,g),H!=null&&x.push(Bu(o,H,D)))),o=o.return}x.length!==0&&r.push({event:s,listeners:x})}var U9=/\r\n?/g,P9=/\u0000|\uFFFD/g;function rR(r){return(typeof r=="string"?r:""+r).replace(U9,`
`).replace(P9,"")}function iR(r,s){return s=rR(s),rR(r)===s}function se(r,s,o,c,p,g){switch(o){case"children":typeof c=="string"?s==="body"||s==="textarea"&&c===""||ho(r,c):(typeof c=="number"||typeof c=="bigint")&&s!=="body"&&ho(r,""+c);break;case"className":Ef(r,"class",c);break;case"tabIndex":Ef(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Ef(r,o,c);break;case"style":i_(r,c,g);break;case"data":if(s!=="object"){Ef(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=Cf(""+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"&&se(r,s,"name",p.name,p,null),se(r,s,"formEncType",p.formEncType,p,null),se(r,s,"formMethod",p.formMethod,p,null),se(r,s,"formTarget",p.formTarget,p,null)):(se(r,s,"encType",p.encType,p,null),se(r,s,"method",p.method,p,null),se(r,s,"target",p.target,p,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=Cf(""+c),r.setAttribute(o,c);break;case"onClick":c!=null&&(r.onclick=Qr);break;case"onScroll":c!=null&&qt("scroll",r);break;case"onScrollEnd":c!=null&&qt("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=Cf(""+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":qt("beforetoggle",r),qt("toggle",r),wf(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":wf(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=p8.get(o)||o,wf(r,o,c))}}function y0(r,s,o,c,p,g){switch(o){case"style":i_(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"?ho(r,c):(typeof c=="number"||typeof c=="bigint")&&ho(r,""+c);break;case"onScroll":c!=null&&qt("scroll",r);break;case"onScrollEnd":c!=null&&qt("scrollend",r);break;case"onClick":c!=null&&(r.onclick=Qr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!QC.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,""):wf(r,o,c)}}}function $e(r,s,o){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qt("error",r),qt("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:se(r,s,g,x,o,null)}}p&&se(r,s,"srcSet",o.srcSet,o,null),c&&se(r,s,"src",o.src,o,null);return;case"input":qt("invalid",r);var E=g=x=p=null,D=null,H=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":D=J;break;case"defaultChecked":H=J;break;case"value":g=J;break;case"defaultValue":E=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,s));break;default:se(r,s,c,J,o,null)}}t_(r,g,E,D,H,x,p,!1);return;case"select":qt("invalid",r),c=x=g=null;for(p in o)if(o.hasOwnProperty(p)&&(E=o[p],E!=null))switch(p){case"value":g=E;break;case"defaultValue":x=E;break;case"multiple":c=E;default:se(r,s,p,E,o,null)}s=g,o=x,r.multiple=!!c,s!=null?fo(r,!!c,s,!1):o!=null&&fo(r,!!c,o,!0);return;case"textarea":qt("invalid",r),g=p=c=null;for(x in o)if(o.hasOwnProperty(x)&&(E=o[x],E!=null))switch(x){case"value":c=E;break;case"defaultValue":p=E;break;case"children":g=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(a(91));break;default:se(r,s,x,E,o,null)}n_(r,c,p,g);return;case"option":for(D in o)if(o.hasOwnProperty(D)&&(c=o[D],c!=null))switch(D){case"selected":r.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:se(r,s,D,c,o,null)}return;case"dialog":qt("beforetoggle",r),qt("toggle",r),qt("cancel",r),qt("close",r);break;case"iframe":case"object":qt("load",r);break;case"video":case"audio":for(c=0;c<Iu.length;c++)qt(Iu[c],r);break;case"image":qt("error",r),qt("load",r);break;case"details":qt("toggle",r);break;case"embed":case"source":case"link":qt("error",r),qt("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(H in o)if(o.hasOwnProperty(H)&&(c=o[H],c!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,s));default:se(r,s,H,c,o,null)}return;default:if(Dg(s)){for(J in o)o.hasOwnProperty(J)&&(c=o[J],c!==void 0&&y0(r,s,J,c,o,void 0));return}}for(E in o)o.hasOwnProperty(E)&&(c=o[E],c!=null&&se(r,s,E,c,o,null))}function q9(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,E=null,D=null,H=null,J=null;for(X in o){var rt=o[X];if(o.hasOwnProperty(X)&&rt!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":D=rt;default:c.hasOwnProperty(X)||se(r,s,X,null,c,rt)}}for(var $ in c){var X=c[$];if(rt=o[$],c.hasOwnProperty($)&&(X!=null||rt!=null))switch($){case"type":g=X;break;case"name":p=X;break;case"checked":H=X;break;case"defaultChecked":J=X;break;case"value":x=X;break;case"defaultValue":E=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(a(137,s));break;default:X!==rt&&se(r,s,$,X,c,rt)}}Rg(r,x,E,D,H,J,g,p);return;case"select":X=x=E=$=null;for(g in o)if(D=o[g],o.hasOwnProperty(g)&&D!=null)switch(g){case"value":break;case"multiple":X=D;default:c.hasOwnProperty(g)||se(r,s,g,null,c,D)}for(p in c)if(g=c[p],D=o[p],c.hasOwnProperty(p)&&(g!=null||D!=null))switch(p){case"value":$=g;break;case"defaultValue":E=g;break;case"multiple":x=g;default:g!==D&&se(r,s,p,g,c,D)}s=E,o=x,c=X,$!=null?fo(r,!!o,$,!1):!!c!=!!o&&(s!=null?fo(r,!!o,s,!0):fo(r,!!o,o?[]:"",!1));return;case"textarea":X=$=null;for(E in o)if(p=o[E],o.hasOwnProperty(E)&&p!=null&&!c.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:se(r,s,E,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":X=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(a(91));break;default:p!==g&&se(r,s,x,p,c,g)}e_(r,$,X);return;case"option":for(var mt in o)if($=o[mt],o.hasOwnProperty(mt)&&$!=null&&!c.hasOwnProperty(mt))switch(mt){case"selected":r.selected=!1;break;default:se(r,s,mt,null,c,$)}for(D in c)if($=c[D],X=o[D],c.hasOwnProperty(D)&&$!==X&&($!=null||X!=null))switch(D){case"selected":r.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:se(r,s,D,$,c,X)}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)&&se(r,s,wt,null,c,$);for(H in c)if($=c[H],X=o[H],c.hasOwnProperty(H)&&$!==X&&($!=null||X!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,s));break;default:se(r,s,H,$,c,X)}return;default:if(Dg(s)){for(var ae in o)$=o[ae],o.hasOwnProperty(ae)&&$!==void 0&&!c.hasOwnProperty(ae)&&y0(r,s,ae,void 0,c,$);for(J in c)$=c[J],X=o[J],!c.hasOwnProperty(J)||$===X||$===void 0&&X===void 0||y0(r,s,J,$,c,X);return}}for(var U in o)$=o[U],o.hasOwnProperty(U)&&$!=null&&!c.hasOwnProperty(U)&&se(r,s,U,null,c,$);for(rt in c)$=c[rt],X=o[rt],!c.hasOwnProperty(rt)||$===X||$==null&&X==null||se(r,s,rt,$,c,X)}function sR(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function F9(){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,E=p.duration;if(g&&E&&sR(x)){for(x=0,E=p.responseEnd,c+=1;c<o.length;c++){var D=o[c],H=D.startTime;if(H>E)break;var J=D.transferSize,rt=D.initiatorType;J&&sR(rt)&&(D=D.responseEnd,x+=J*(D<E?1:(E-H)/(D-H)))}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 b0=null,v0=null;function xd(r){return r.nodeType===9?r:r.ownerDocument}function aR(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 oR(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 x0(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 S0=null;function V9(){var r=window.event;return r&&r.type==="popstate"?r===S0?!1:(S0=r,!0):(S0=null,!1)}var lR=typeof setTimeout=="function"?setTimeout:void 0,H9=typeof clearTimeout=="function"?clearTimeout:void 0,uR=typeof Promise=="function"?Promise:void 0,G9=typeof queueMicrotask=="function"?queueMicrotask:typeof uR<"u"?function(r){return uR.resolve(null).then(r).catch(Y9)}:lR;function Y9(r){setTimeout(function(){throw r})}function es(r){return r==="head"}function cR(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),Ho(s);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")Uu(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,Uu(o);for(var g=o.firstChild;g;){var x=g.nextSibling,E=g.nodeName;g[ru]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&g.rel.toLowerCase()==="stylesheet"||o.removeChild(g),g=x}}else o==="body"&&Uu(r.ownerDocument.body);o=p}while(o);Ho(s)}function fR(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 w0(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":w0(o),Ag(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function K9(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[ru])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=Wn(r.nextSibling),r===null)break}return null}function $9(r,s,o){if(s==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=Wn(r.nextSibling),r===null))return null;return r}function dR(r,s){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=Wn(r.nextSibling),r===null))return null;return r}function E0(r){return r.data==="$?"||r.data==="$~"}function T0(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Q9(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 Wn(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 C0=null;function hR(r){r=r.nextSibling;for(var s=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(s===0)return Wn(r.nextSibling);s--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||s++}r=r.nextSibling}return null}function pR(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 mR(r,s,o){switch(s=xd(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 Uu(r){for(var s=r.attributes;s.length;)r.removeAttributeNode(s[0]);Ag(r)}var tr=new Map,gR=new Set;function Sd(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var fi=q.d;q.d={f:X9,r:Z9,D:J9,C:W9,L:t7,m:e7,X:r7,S:n7,M:i7};function X9(){var r=fi.f(),s=dd();return r||s}function Z9(r){var s=lo(r);s!==null&&s.tag===5&&s.type==="form"?MA(s):fi.r(r)}var qo=typeof document>"u"?null:document;function yR(r,s,o){var c=qo;if(c&&typeof s=="string"&&s){var p=Yn(s);p='link[rel="'+r+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),gR.has(p)||(gR.add(p),r={rel:r,crossOrigin:o,href:s},c.querySelector(p)===null&&(s=c.createElement("link"),$e(s,"link",r),Pe(s),c.head.appendChild(s)))}}function J9(r){fi.D(r),yR("dns-prefetch",r,null)}function W9(r,s){fi.C(r,s),yR("preconnect",r,s)}function t7(r,s,o){fi.L(r,s,o);var c=qo;if(c&&r&&s){var p='link[rel="preload"][as="'+Yn(s)+'"]';s==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Yn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Yn(o.imageSizes)+'"]')):p+='[href="'+Yn(r)+'"]';var g=p;switch(s){case"style":g=Fo(r);break;case"script":g=Vo(r)}tr.has(g)||(r=b({rel:"preload",href:s==="image"&&o&&o.imageSrcSet?void 0:r,as:s},o),tr.set(g,r),c.querySelector(p)!==null||s==="style"&&c.querySelector(Pu(g))||s==="script"&&c.querySelector(qu(g))||(s=c.createElement("link"),$e(s,"link",r),Pe(s),c.head.appendChild(s)))}}function e7(r,s){fi.m(r,s);var o=qo;if(o&&r){var c=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+Yn(c)+'"][href="'+Yn(r)+'"]',g=p;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Vo(r)}if(!tr.has(g)&&(r=b({rel:"modulepreload",href:r},s),tr.set(g,r),o.querySelector(p)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(qu(g)))return}c=o.createElement("link"),$e(c,"link",r),Pe(c),o.head.appendChild(c)}}}function n7(r,s,o){fi.S(r,s,o);var c=qo;if(c&&r){var p=uo(c).hoistableStyles,g=Fo(r);s=s||"default";var x=p.get(g);if(!x){var E={loading:0,preload:null};if(x=c.querySelector(Pu(g)))E.loading=5;else{r=b({rel:"stylesheet",href:r,"data-precedence":s},o),(o=tr.get(g))&&_0(r,o);var D=x=c.createElement("link");Pe(D),$e(D,"link",r),D._p=new Promise(function(H,J){D.onload=H,D.onerror=J}),D.addEventListener("load",function(){E.loading|=1}),D.addEventListener("error",function(){E.loading|=2}),E.loading|=4,wd(x,s,c)}x={type:"stylesheet",instance:x,count:1,state:E},p.set(g,x)}}}function r7(r,s){fi.X(r,s);var o=qo;if(o&&r){var c=uo(o).hoistableScripts,p=Vo(r),g=c.get(p);g||(g=o.querySelector(qu(p)),g||(r=b({src:r,async:!0},s),(s=tr.get(p))&&A0(r,s),g=o.createElement("script"),Pe(g),$e(g,"link",r),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}}function i7(r,s){fi.M(r,s);var o=qo;if(o&&r){var c=uo(o).hoistableScripts,p=Vo(r),g=c.get(p);g||(g=o.querySelector(qu(p)),g||(r=b({src:r,async:!0,type:"module"},s),(s=tr.get(p))&&A0(r,s),g=o.createElement("script"),Pe(g),$e(g,"link",r),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}}function bR(r,s,o,c){var p=(p=pt.current)?Sd(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=Fo(o.href),o=uo(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=Fo(o.href);var g=uo(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(Pu(r)))&&!g._p&&(x.instance=g,x.state.loading=5),tr.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},tr.set(r,o),g||s7(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=Vo(o),o=uo(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 Fo(r){return'href="'+Yn(r)+'"'}function Pu(r){return'link[rel="stylesheet"]['+r+"]"}function vR(r){return b({},r,{"data-precedence":r.precedence,precedence:null})}function s7(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}),$e(s,"link",o),Pe(s),r.head.appendChild(s))}function Vo(r){return'[src="'+Yn(r)+'"]'}function qu(r){return"script[async]"+r}function xR(r,s,o){if(s.count++,s.instance===null)switch(s.type){case"style":var c=r.querySelector('style[data-href~="'+Yn(o.href)+'"]');if(c)return s.instance=c,Pe(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"),Pe(c),$e(c,"style",p),wd(c,o.precedence,r),s.instance=c;case"stylesheet":p=Fo(o.href);var g=r.querySelector(Pu(p));if(g)return s.state.loading|=4,s.instance=g,Pe(g),g;c=vR(o),(p=tr.get(p))&&_0(c,p),g=(r.ownerDocument||r).createElement("link"),Pe(g);var x=g;return x._p=new Promise(function(E,D){x.onload=E,x.onerror=D}),$e(g,"link",c),s.state.loading|=4,wd(g,o.precedence,r),s.instance=g;case"script":return g=Vo(o.src),(p=r.querySelector(qu(g)))?(s.instance=p,Pe(p),p):(c=o,(p=tr.get(g))&&(c=b({},o),A0(c,p)),r=r.ownerDocument||r,p=r.createElement("script"),Pe(p),$e(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,wd(c,o.precedence,r));return s.instance}function wd(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 E=c[x];if(E.dataset.precedence===s)g=E;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 _0(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.title==null&&(r.title=s.title)}function A0(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.integrity==null&&(r.integrity=s.integrity)}var Ed=null;function SR(r,s,o){if(Ed===null){var c=new Map,p=Ed=new Map;p.set(o,c)}else p=Ed,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[ru]||g[He]||r==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var x=g.getAttribute(s)||"";x=r+x;var E=c.get(x);E?E.push(g):c.set(x,[g])}}return c}function wR(r,s,o){r=r.ownerDocument||r,r.head.insertBefore(o,s==="title"?r.querySelector("head > title"):null)}function a7(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 ER(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function o7(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=Fo(c.href),g=s.querySelector(Pu(p));if(g){s=g._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(r.count++,r=Td.bind(r),s.then(r,r)),o.state.loading|=4,o.instance=g,Pe(g);return}g=s.ownerDocument||s,c=vR(c),(p=tr.get(p))&&_0(c,p),g=g.createElement("link"),Pe(g);var x=g;x._p=new Promise(function(E,D){x.onload=E,x.onerror=D}),$e(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=Td.bind(r),s.addEventListener("load",o),s.addEventListener("error",o))}}var O0=0;function l7(r,s){return r.stylesheets&&r.count===0&&_d(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var c=setTimeout(function(){if(r.stylesheets&&_d(r,r.stylesheets),r.unsuspend){var g=r.unsuspend;r.unsuspend=null,g()}},6e4+s);0<r.imgBytes&&O0===0&&(O0=62500*F9());var p=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&_d(r,r.stylesheets),r.unsuspend)){var g=r.unsuspend;r.unsuspend=null,g()}},(r.imgBytes>O0?50:800)+s);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(p)}}:null}function Td(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_d(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Cd=null;function _d(r,s){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Cd=new Map,s.forEach(u7,r),Cd=null,Td.call(r))}function u7(r,s){if(!(s.state.loading&4)){var o=Cd.get(r);if(o)var c=o.get(null);else{o=new Map,Cd.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=Td.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 Fu={$$typeof:B,Provider:null,Consumer:null,_currentValue:vt,_currentValue2:vt,_threadCount:0};function c7(r,s,o,c,p,g,x,E,D){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=Eg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eg(0),this.hiddenUpdates=Eg(null),this.identifierPrefix=c,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function TR(r,s,o,c,p,g,x,E,D,H,J,rt){return r=new c7(r,s,o,x,D,H,J,rt,E),s=1,g===!0&&(s|=24),g=Rn(3,null,null,s),r.current=g,g.stateNode=r,s=oy(),s.refCount++,r.pooledCache=s,s.refCount++,g.memoizedState={element:c,isDehydrated:o,cache:s},fy(g),r}function CR(r){return r?(r=xo,r):xo}function _R(r,s,o,c,p,g){p=CR(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),xu(o,r,s))}function AR(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<s?o:s}}function R0(r,s){AR(r,s),(r=r.alternate)&&AR(r,s)}function OR(r){if(r.tag===13||r.tag===31){var s=$s(r,67108864);s!==null&&En(s,r,67108864),R0(r,67108864)}}function RR(r){if(r.tag===13||r.tag===31){var s=Ln();s=Tg(s);var o=$s(r,s);o!==null&&En(o,r,s),R0(r,s)}}var Ad=!0;function f7(r,s,o,c){var p=G.T;G.T=null;var g=q.p;try{q.p=2,k0(r,s,o,c)}finally{q.p=g,G.T=p}}function d7(r,s,o,c){var p=G.T;G.T=null;var g=q.p;try{q.p=8,k0(r,s,o,c)}finally{q.p=g,G.T=p}}function k0(r,s,o,c){if(Ad){var p=D0(c);if(p===null)g0(r,s,c,Od,o),DR(r,c);else if(p7(p,r,s,o,c))c.stopPropagation();else if(DR(r,c),s&4&&-1<h7.indexOf(r)){for(;p!==null;){var g=lo(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var x=Vs(g.pendingLanes);if(x!==0){var E=g;for(E.pendingLanes|=2,E.entangledLanes|=2;x;){var D=1<<31-ke(x);E.entanglements[1]|=D,x&=~D}Mr(g),(Xt&6)===0&&(cd=an()+500,ju(0))}}break;case 31:case 13:E=$s(g,2),E!==null&&En(E,g,2),dd(),R0(g,2)}if(g=D0(c),g===null&&g0(r,s,c,Od,o),g===p)break;p=g}p!==null&&c.stopPropagation()}else g0(r,s,c,null,o)}}function D0(r){return r=Mg(r),N0(r)}var Od=null;function N0(r){if(Od=null,r=oo(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 Od=r,null}function kR(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(W()){case ct:return 2;case At:return 8;case jt:case Wt:return 32;case gn:return 268435456;default:return 32}default:return 32}}var M0=!1,ns=null,rs=null,is=null,Vu=new Map,Hu=new Map,ss=[],h7="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 DR(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":Vu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hu.delete(s.pointerId)}}function Gu(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=lo(s),s!==null&&OR(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),r)}function p7(r,s,o,c,p){switch(s){case"focusin":return ns=Gu(ns,r,s,o,c,p),!0;case"dragenter":return rs=Gu(rs,r,s,o,c,p),!0;case"mouseover":return is=Gu(is,r,s,o,c,p),!0;case"pointerover":var g=p.pointerId;return Vu.set(g,Gu(Vu.get(g)||null,r,s,o,c,p)),!0;case"gotpointercapture":return g=p.pointerId,Hu.set(g,Gu(Hu.get(g)||null,r,s,o,c,p)),!0}return!1}function NR(r){var s=oo(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,YC(r.priority,function(){RR(o)});return}}else if(s===31){if(s=d(o),s!==null){r.blockedOn=s,YC(r.priority,function(){RR(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 Rd(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var o=D0(r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);Ng=c,o.target.dispatchEvent(c),Ng=null}else return s=lo(o),s!==null&&OR(s),r.blockedOn=o,!1;s.shift()}return!0}function MR(r,s,o){Rd(r)&&o.delete(s)}function m7(){M0=!1,ns!==null&&Rd(ns)&&(ns=null),rs!==null&&Rd(rs)&&(rs=null),is!==null&&Rd(is)&&(is=null),Vu.forEach(MR),Hu.forEach(MR)}function kd(r,s){r.blockedOn===s&&(r.blockedOn=null,M0||(M0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,m7)))}var Dd=null;function LR(r){Dd!==r&&(Dd=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Dd===r&&(Dd=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(N0(c||o)===null)continue;break}var g=lo(o);g!==null&&(r.splice(s,3),s-=3,Dy(g,{pending:!0,data:p,method:o.method,action:c},c,p))}}))}function Ho(r){function s(D){return kd(D,r)}ns!==null&&kd(ns,r),rs!==null&&kd(rs,r),is!==null&&kd(is,r),Vu.forEach(s),Hu.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);)NR(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||LR(o);else if(x){var E=null;if(g&&g.hasAttribute("formAction")){if(p=g,x=g[yn]||null)E=x.formAction;else if(N0(p)!==null)continue}else E=x.action;typeof E=="function"?o[c+1]=E:(o.splice(c,3),c-=3),LR(o)}}}function zR(){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 L0(r){this._internalRoot=r}Nd.prototype.render=L0.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(a(409));var o=s.current,c=Ln();_R(o,c,r,s,null,null)},Nd.prototype.unmount=L0.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;_R(r.current,2,null,r,null,null),dd(),s[ao]=null}};function Nd(r){this._internalRoot=r}Nd.prototype.unstable_scheduleHydration=function(r){if(r){var s=GC();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&&NR(r)}};var jR=n.version;if(jR!=="19.2.0")throw Error(a(527,jR,"19.2.0"));q.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 g7={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Md=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Md.isDisabled&&Md.supportsFiber)try{ur=Md.inject(g7),Ie=Md}catch{}}return Go.createRoot=function(r,s){if(!l(r))throw Error(a(299));var o=!1,c="",p=VA,g=HA,x=GA;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=TR(r,1,!1,null,null,o,c,null,p,g,x,zR),r[ao]=s.current,m0(r),new L0(s)},Go.hydrateRoot=function(r,s,o){if(!l(r))throw Error(a(299));var c=!1,p="",g=VA,x=HA,E=GA,D=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&&(E=o.onRecoverableError),o.formState!==void 0&&(D=o.formState)),s=TR(r,1,!0,s,o??null,c,p,D,g,x,E,zR),s.context=CR(null),o=s.current,c=Ln(),c=Tg(c),p=Hi(c),p.callback=null,Gi(o,p,c),o=c,s.current.lanes=o,nu(s,o),Mr(s),r[ao]=s.current,m0(r),new Nd(s)},Go.version="19.2.0",Go}var W0;function YR(){if(W0)return Id.exports;W0=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(),Id.exports=GR(),Id.exports}var KR=YR();const _t=t=>typeof t=="string",Yo=()=>{let t,e;const n=new Promise((i,a)=>{t=i,e=a});return n.resolve=t,n.reject=e,n},tb=t=>t==null?"":""+t,$R=(t,e,n)=>{t.forEach(i=>{e[i]&&(n[i]=e[i])})},QR=/###/g,eb=t=>t&&t.indexOf("###")>-1?t.replace(QR,"."):t,nb=t=>!t||_t(t),Ko=(t,e,n)=>{const i=_t(e)?e.split("."):e;let a=0;for(;a<i.length-1;){if(nb(t))return{};const l=eb(i[a]);!t[l]&&n&&(t[l]=new n),Object.prototype.hasOwnProperty.call(t,l)?t=t[l]:t={},++a}return nb(t)?{}:{obj:t,k:eb(i[a])}},rb=(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},XR=(t,e,n,i)=>{const{obj:a,k:l}=Ko(t,e,Object);a[l]=a[l]||[],a[l].push(n)},Ku=(t,e)=>{const{obj:n,k:i}=Ko(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},ZR=(t,e,n)=>{const i=Ku(t,n);return i!==void 0?i:Ku(e,n)},ib=(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]):ib(t[i],e[i],n):t[i]=e[i]);return t},oa=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var JR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const WR=t=>_t(t)?t.replace(/[&<>"'\/]/g,e=>JR[e]):t;class tk{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 ek=[" ",",","?","!",";"],nk=new tk(20),rk=(t,e,n)=>{e=e||"",n=n||"";const i=ek.filter(u=>e.indexOf(u)<0&&n.indexOf(u)<0);if(i.length===0)return!0;const a=nk.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},Vd=(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},$o=t=>t==null?void 0:t.replace("_","-"),ik={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 $u{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||ik,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 $u(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new $u(this.logger,e)}}var pr=new $u;class Qu{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 sb extends Qu{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=Ku(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:Vd((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),rb(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=Ku(this.data,f)||{};u.skipCopy||(i=JSON.parse(JSON.stringify(i))),a?ib(d,i,l):d={...d,...i},rb(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 ab={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 ob=Symbol("i18next/PATH_KEY");function sk(){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===ob?t:(t.push(a),n=Proxy.revocable(i,e),n.proxy)},Proxy.revocable(Object.create(null),e).proxy}function Hd(t,e){const{[ob]:n}=t(sk());return n.join((e==null?void 0:e.keySeparator)??".")}const lb={},Gd=t=>!_t(t)&&typeof t!="boolean"&&typeof t!="number";class Xu extends Qu{constructor(e,n={}){super(),$R(["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=Gd(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&&!rk(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=Hd(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]"],M=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,B=a.count!==void 0&&!_t(a.count),Y=Xu.hasDefaultValue(a),z=B?this.pluralResolver.getSuffix(y,a.count,a):"",F=a.ordinal&&B?this.pluralResolver.getSuffix(y,a.count,{ordinal:!1}):"",N=B&&!a.ordinal&&a.count===0,P=N&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${z}`]||a[`defaultValue${F}`]||a.defaultValue;let K=S;R&&!S&&Y&&(K=P);const et=Gd(K),at=Object.prototype.toString.apply(K);if(R&&K&&et&&_.indexOf(at)<0&&!(_t(M)&&Array.isArray(K))){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,K,{...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(K),st=ft?[]:{},it=ft?C:w;for(const Z in K)if(Object.prototype.hasOwnProperty.call(K,Z)){const G=`${it}${u}${Z}`;Y&&!S?st[Z]=this.translate(G,{...a,defaultValue:Gd(P)?P[Z]:void 0,joinArrays:!1,ns:d}):st[Z]=this.translate(G,{...a,joinArrays:!1,ns:d}),st[Z]===G&&(st[Z]=K[Z])}S=st}}else if(R&&_t(M)&&Array.isArray(S))S=S.join(M),S&&(S=this.extendTranslation(S,e,a,i));else{let ft=!1,st=!1;!this.isValidLookup(S)&&Y&&(ft=!0,S=P),this.isValidLookup(S)||(st=!0,S=f);const Z=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&st?void 0:S,G=Y&&P!==S&&this.options.updateMissing;if(st||ft||G){if(this.logger.log(G?"updateKey":"missingKey",y,h,f,G?P:S),u){const dt=this.resolve(f,{...a,keySeparator:!1});dt&&dt.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 q=[];const vt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&vt&&vt[0])for(let dt=0;dt<vt.length;dt++)q.push(vt[dt]);else this.options.saveMissingTo==="all"?q=this.languageUtils.toResolveHierarchy(a.lng||this.language):q.push(a.lng||this.language);const O=(dt,k,T)=>{var lt;const nt=Y&&T!==S?T:Z;this.options.missingKeyHandler?this.options.missingKeyHandler(dt,h,k,nt,G,a):(lt=this.backendConnector)!=null&&lt.saveMissing&&this.backendConnector.saveMissing(dt,h,k,nt,G,a),this.emit("missingKey",dt,h,k,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?q.forEach(dt=>{const k=this.pluralResolver.getSuffixes(dt,a);N&&a[`defaultValue${this.options.pluralSeparator}zero`]&&k.indexOf(`${this.options.pluralSeparator}zero`)<0&&k.push(`${this.options.pluralSeparator}zero`),k.forEach(T=>{O([dt],f+T,a[`defaultValue${T}`]||P)})}):O(q,f,P))}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=ab.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 _,M;this.isValidLookup(i)||(f=C,!lb[`${w[0]}-${C}`]&&((_=this.utils)!=null&&_.hasLoadedNamespace)&&!((M=this.utils)!=null&&M.hasLoadedNamespace(f))&&(lb[`${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 z;if(this.isValidLookup(i))return;u=R;const B=[m];if((z=this.i18nFormat)!=null&&z.addLookupKeys)this.i18nFormat.addLookupKeys(B,m,R,C,n);else{let F;b&&(F=this.pluralResolver.getSuffix(R,n.count,n));const N=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(b&&(n.ordinal&&F.indexOf(P)===0&&B.push(m+F.replace(P,this.options.pluralSeparator)),B.push(m+F),v&&B.push(m+N)),S){const K=`${m}${this.options.contextSeparator||"_"}${n.context}`;B.push(K),b&&(n.ordinal&&F.indexOf(P)===0&&B.push(K+F.replace(P,this.options.pluralSeparator)),B.push(K+F),v&&B.push(K+N))}}let Y;for(;Y=B.pop();)this.isValidLookup(i)||(l=Y,i=this.getResource(R,C,Y,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 ub{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pr.create("languageUtils")}getScriptPartFromCode(e){if(e=$o(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=$o(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 cb={zero:0,one:1,two:2,few:3,many:4,other:5},fb={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ak{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=$o(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!"),fb;if(!e.match(/-|_/))return fb;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)=>cb[a]-cb[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 db=(t,e,n,i=".",a=!0)=>{let l=ZR(t,e,n);return!l&&a&&_t(n)&&(l=Vd(t,n,i),l===void 0&&(l=Vd(e,n,i))),l},Yd=t=>t.replace(/\$/g,"$$$$");class ok{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:M}=e.interpolation;this.escape=n!==void 0?n:WR,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=l?oa(l):u||"{{",this.suffix=f?oa(f):d||"}}",this.formatSeparator=h||",",this.unescapePrefix=m?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=b?oa(b):v||oa("$t("),this.nestingSuffix=S?oa(S):w||oa(")"),this.nestingOptionsSeparator=C||",",this.maxReplaces=_||1e3,this.alwaysFormat=M!==void 0?M:!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 M=db(n,d,S,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,i,{...a,...n,interpolationkey:S}):M}const w=S.split(this.formatSeparator),C=w.shift().trim(),_=w.join(this.formatSeparator).trim();return this.format(db(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=>Yd(S)},{regex:this.regexp,safeValue:S=>this.escapeValue?Yd(this.escape(S)):Yd(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=tb(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=tb(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 lk=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}},hb=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($o(i),a),e[u]=f),f(n)}},uk=t=>(e,n,i)=>t($o(n),i)(e);class ck{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?hb:uk;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()]=hb(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}=lk(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 fk=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class dk extends Qu{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=>{XR(d.loaded,[l],u),fk(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 pb=()=>({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}),mb=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},Zu=()=>{},hk=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Qo extends Qu{constructor(e={},n){if(super(),this.options=mb(e),this.services={},this.logger=pr,this.modules={external:[]},hk(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=pb();this.options={...i,...this.options,...mb(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=ck;const m=new ub(this.options);this.store=new sb(this.options.resources,this.options);const y=this.services;y.logger=pr,y.resourceStore=this.store,y.languageUtils=m,y.pluralResolver=new ak(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 ok(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new dk(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 Xu(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=Zu),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=Yo(),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=Zu){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=Yo();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=Zu),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"&&ab.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=Yo();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=Hd(y,{...this.options,...u})),`${d.keyPrefix}${h}${y}`)):(typeof l=="function"&&(l=Hd(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=Yo();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=Yo();_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 ub(pb());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 Qo(e,n);return i.createInstance=Qo.createInstance,i}cloneInstance(e={},n=Zu){const i=e.forkResourceStore;i&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},l=new Qo(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 sb(f,a),l.services.resourceStore=l.store}return l.translator=new Xu(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 Fe=Qo.createInstance();Fe.createInstance,Fe.dir,Fe.init,Fe.loadResources,Fe.reloadResources,Fe.use,Fe.changeLanguage,Fe.getFixedT,Fe.t,Fe.exists,Fe.setDefaultNamespace,Fe.hasLoadedNamespace,Fe.loadNamespaces,Fe.loadLanguages;/*! js-cookie v3.0.5 | MIT */function Ju(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 pk={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 Kd(t,e){function n(a,l,u){if(!(typeof document>"u")){u=Ju({},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,"",Ju({},l,{expires:-1}))},withAttributes:function(a){return Kd(this.converter,Ju({},this.attributes,a))},withConverter:function(a){return Kd(Ju({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var gb=Kd(pk,{path:"/"}),I=qd();const Xo=Ut(I),mk=(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)},yb={},$d=(t,e,n,i)=>{us(n)&&yb[n]||(us(n)&&(yb[n]=new Date),mk(t,e,n,i))},bb=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},Qd=(t,e,n)=>{t.loadNamespaces(e,bb(t,n))},vb=(t,e,n,i)=>{if(us(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return Qd(t,n,i);n.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,bb(t,i))},gk=(t,e,n={})=>!e.languages||!e.languages.length?($d(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",yk=t=>typeof t=="object"&&t!==null,bk=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,vk={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},xk=t=>vk[t];let Xd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(bk,xk)};const Sk=(t={})=>{Xd={...Xd,...t}},wk=()=>Xd;let xb;const Ek=t=>{xb=t},Tk=()=>xb,Ck={type:"3rdParty",init(t){Sk(t.options.react),Ek(t)}},_k=I.createContext();class Ak{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Ok=(t,e)=>{const n=I.useRef();return I.useEffect(()=>{n.current=t},[t,e]),n.current},Sb=(t,e,n,i)=>t.getFixedT(e,n,i),Rk=(t,e,n,i)=>I.useCallback(Sb(t,e,n,i),[t,e,n,i]),mr=(t,e={})=>{var B,Y,z,F;const{i18n:n}=e,{i18n:i,defaultNS:a}=I.useContext(_k)||{},l=n||i||Tk();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new Ak),!l){$d(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const N=(K,et)=>us(et)?et:yk(et)&&us(et.defaultValue)?et.defaultValue:Array.isArray(K)?K[K.length-1]:K,P=[N,{},!1];return P.t=N,P.i18n={},P.ready=!1,P}(B=l.options.react)!=null&&B.wait&&$d(l,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...wk(),...l.options.react,...e},{useSuspense:f,keyPrefix:d}=u;let h=a||((Y=l.options)==null?void 0:Y.defaultNS);h=us(h)?[h]:h||["translation"],(F=(z=l.reportNamespaces).addUsedNamespaces)==null||F.call(z,h);const m=(l.isInitialized||l.initializedStoreOnce)&&h.every(N=>gk(N,l,u)),y=Rk(l,e.lng||null,u.nsMode==="fallback"?h:h[0],d),b=()=>y,v=()=>Sb(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 _=Ok(C),M=I.useRef(!0);I.useEffect(()=>{const{bindI18n:N,bindI18nStore:P}=u;M.current=!0,!m&&!f&&(e.lng?vb(l,e.lng,h,()=>{M.current&&w(v)}):Qd(l,h,()=>{M.current&&w(v)})),m&&_&&_!==C&&M.current&&w(v);const K=()=>{M.current&&w(v)};return N&&(l==null||l.on(N,K)),P&&(l==null||l.store.on(P,K)),()=>{M.current=!1,l&&N&&(N==null||N.split(" ").forEach(et=>l.off(et,K))),P&&l&&P.split(" ").forEach(et=>l.store.off(et,K))}},[l,C]),I.useEffect(()=>{M.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?vb(l,e.lng,h,()=>N()):Qd(l,h,()=>N())})},kk={bezvabot:{headerDropdown:{reloadChat:"Nový chat"},chatMessageInputForm:{placeholder:"Napište 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",chatSessionClosed:"Konverzace byla ukončena",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…"}}},wb="bezvabot-language",Dk=["cs","en"],Nk="cs",Mk="bezvabot",Lk=gb.get(wb)||"cs";Fe.use(Ck).init({lng:Lk,fallbackNS:Mk,supportedLngs:Dk,fallbackLng:Nk,debug:!0,interpolation:{escapeValue:!1},resources:{cs:{...kk}}}),Fe.on("languageChanged",()=>{gb.set(wb,Fe.language)});var la=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(){}},zk={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},jk=(kC=class{constructor(){bt(this,_i,zk);bt(this,vg,!1)}setTimeoutProvider(t){ut(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,vg=new WeakMap,kC),cs=new jk;function Ik(t){setTimeout(t,0)}var fs=typeof window>"u"||"Deno"in globalThis;function We(){}function Bk(t,e){return typeof t=="function"?t(e):t}function Zd(t){return typeof t=="number"&&t>=0&&t!==1/0}function Eb(t,e){return Math.max(t+(e||0)-Date.now(),0)}function hi(t,e){return typeof t=="function"?t(e):t}function zn(t,e){return typeof t=="function"?t(e):t}function Tb(t,e){const{type:n="all",exact:i,fetchStatus:a,predicate:l,queryKey:u,stale:f}=t;if(u){if(i){if(e.queryHash!==Jd(u,e.options))return!1}else if(!Zo(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 Cb(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(!Zo(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||a&&!a(e))}function Jd(t,e){return((e==null?void 0:e.queryKeyHashFn)||ds)(t)}function ds(t){return JSON.stringify(t,(e,n)=>Wd(n)?Object.keys(n).sort().reduce((i,a)=>(i[a]=n[a],i),{}):n)}function Zo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Zo(t[n],e[n])):!1}var Uk=Object.prototype.hasOwnProperty;function _b(t,e){if(t===e)return t;const n=Ab(t)&&Ab(e);if(!n&&!(Wd(t)&&Wd(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:Uk.call(t,m))&&d++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){f[m]=b;continue}const v=_b(y,b);f[m]=v,v===y&&d++}return a===u&&d===a?t:f}function Wu(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 Ab(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Wd(t){if(!Ob(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Ob(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Ob(t){return Object.prototype.toString.call(t)==="[object Object]"}function Pk(t){return new Promise(e=>{cs.setTimeout(e,t)})}function th(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?_b(t,e):e}function qk(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function Fk(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var eh=Symbol();function Rb(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===eh?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function kb(t,e){return typeof t=="function"?t(...e):!!t}var Vk=(DC=class extends la{constructor(){super();bt(this,Ns);bt(this,Ai);bt(this,Ha);ut(this,Ha,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,Ha))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Ai))==null||e.call(this),ut(this,Ai,void 0))}setEventListener(e){var n;ut(this,Ha,e),(n=A(this,Ai))==null||n.call(this),ut(this,Ai,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){A(this,Ns)!==e&&(ut(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,Ha=new WeakMap,DC),nh=new Vk;function rh(){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 Hk=Ik;function Gk(){let t=[],e=0,n=f=>{f()},i=f=>{f()},a=Hk;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 ze=Gk(),Yk=(NC=class extends la{constructor(){super();bt(this,Ga,!0);bt(this,Oi);bt(this,Ya);ut(this,Ya,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,Ya))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Oi))==null||e.call(this),ut(this,Oi,void 0))}setEventListener(e){var n;ut(this,Ya,e),(n=A(this,Oi))==null||n.call(this),ut(this,Oi,e(this.setOnline.bind(this)))}setOnline(e){A(this,Ga)!==e&&(ut(this,Ga,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return A(this,Ga)}},Ga=new WeakMap,Oi=new WeakMap,Ya=new WeakMap,NC),tc=new Yk;function Kk(t){return Math.min(1e3*2**t,3e4)}function Db(t){return(t??"online")==="online"?tc.isOnline():!0}var ih=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Nb(t){let e=!1,n=0,i;const a=rh(),l=()=>a.status!=="pending",u=w=>{var C;if(!l()){const _=new ih(w);b(_),(C=t.onCancel)==null||C.call(t,_)}},f=()=>{e=!0},d=()=>{e=!1},h=()=>nh.isFocused()&&(t.networkMode==="always"||tc.isOnline())&&t.canRun(),m=()=>Db(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 z;if(l())return;const M=t.retry??(fs?0:3),R=t.retryDelay??Kk,B=typeof R=="function"?R(n,_):R,Y=M===!0||typeof M=="number"&&n<M||typeof M=="function"&&M(n,_);if(e||!Y){b(_);return}n++,(z=t.onFail)==null||z.call(t,n,_),Pk(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 Mb=(MC=class{constructor(){bt(this,Ms)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zd(this.gcTime)&&ut(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)),ut(this,Ms,void 0))}},Ms=new WeakMap,MC),$k=(LC=class extends Mb{constructor(e){super();bt(this,sr);bt(this,Ls);bt(this,Ka);bt(this,Hn);bt(this,zs);bt(this,Ue);bt(this,Kl);bt(this,js);ut(this,js,!1),ut(this,Kl,e.defaultOptions),this.setOptions(e.options),this.observers=[],ut(this,zs,e.client),ut(this,Hn,A(this,zs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,ut(this,Ls,jb(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,Ue))==null?void 0:e.promise}setOptions(e){if(this.options={...A(this,Kl),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=jb(this.options);n.data!==void 0&&(this.setState(zb(n.data,n.dataUpdatedAt)),ut(this,Ls,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,Hn).remove(this)}setData(e,n){const i=th(this.state.data,e,this.options);return It(this,sr,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){It(this,sr,di).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i,a;const n=(i=A(this,Ue))==null?void 0:i.promise;return(a=A(this,Ue))==null||a.cancel(e),n?n.then(We).catch(We):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,Ls))}isActive(){return this.observers.some(e=>zn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===eh||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:!Eb(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,Ue))==null||n.continue()}onOnline(){var n;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,Ue))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),A(this,Hn).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,Ue)&&(A(this,js)?A(this,Ue).cancel({revert:!0}):A(this,Ue).cancelRetry()),this.scheduleGc()),A(this,Hn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||It(this,sr,di).call(this,{type:"invalidate"})}async fetch(e,n){var d,h,m,y,b,v,S,w,C,_,M,R;if(this.state.fetchStatus!=="idle"&&((d=A(this,Ue))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,Ue))return A(this,Ue).continueRetry(),A(this,Ue).promise}if(e&&this.setOptions(e),!this.options.queryFn){const B=this.observers.find(Y=>Y.options.queryFn);B&&this.setOptions(B.options)}const i=new AbortController,a=B=>{Object.defineProperty(B,"signal",{enumerable:!0,get:()=>(ut(this,js,!0),i.signal)})},l=()=>{const B=Rb(this.options,n),z=(()=>{const F={client:A(this,zs),queryKey:this.queryKey,meta:this.meta};return a(F),F})();return ut(this,js,!1),this.options.persister?this.options.persister(B,z,this):B(z)},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),ut(this,Ka,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=f.fetchOptions)==null?void 0:m.meta))&&It(this,sr,di).call(this,{type:"fetch",meta:(y=f.fetchOptions)==null?void 0:y.meta}),ut(this,Ue,Nb({initialPromise:n==null?void 0:n.initialPromise,fn:f.fetchFn,onCancel:B=>{B instanceof ih&&B.revert&&this.setState({...A(this,Ka),fetchStatus:"idle"}),i.abort()},onFail:(B,Y)=>{It(this,sr,di).call(this,{type:"failed",failureCount:B,error:Y})},onPause:()=>{It(this,sr,di).call(this,{type:"pause"})},onContinue:()=>{It(this,sr,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,Ue).start();if(B===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(B),(v=(b=A(this,Hn).config).onSuccess)==null||v.call(b,B,this),(w=(S=A(this,Hn).config).onSettled)==null||w.call(S,B,this.state.error,this),B}catch(B){if(B instanceof ih){if(B.silent)return A(this,Ue).promise;if(B.revert){if(this.state.data===void 0)throw B;return this.state.data}}throw It(this,sr,di).call(this,{type:"error",error:B}),(_=(C=A(this,Hn).config).onError)==null||_.call(C,B,this),(R=(M=A(this,Hn).config).onSettled)==null||R.call(M,this.state.data,B,this),B}finally{this.scheduleGc()}}},Ls=new WeakMap,Ka=new WeakMap,Hn=new WeakMap,zs=new WeakMap,Ue=new WeakMap,Kl=new WeakMap,js=new WeakMap,sr=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,...Lb(i.data,this.options),fetchMeta:e.meta??null};case"success":const a={...i,...zb(e.data,e.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ut(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),ze.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),A(this,Hn).notify({query:this,type:"updated",action:e})})},LC);function Lb(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Db(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function zb(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function jb(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 Qk=(zC=class extends la{constructor(e,n){super();bt(this,Zt);bt(this,pn);bt(this,Ht);bt(this,$l);bt(this,rn);bt(this,Is);bt(this,$a);bt(this,Fr);bt(this,Ri);bt(this,Ql);bt(this,Qa);bt(this,Xa);bt(this,Bs);bt(this,Us);bt(this,ki);bt(this,Za,new Set);this.options=n,ut(this,pn,e),ut(this,Ri,null),ut(this,Fr,rh()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(A(this,Ht).addObserver(this),Ib(A(this,Ht),this.options)?It(this,Zt,Yu).call(this):this.updateResult(),It(this,Zt,U0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sh(A(this,Ht),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sh(A(this,Ht),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,It(this,Zt,P0).call(this),It(this,Zt,q0).call(this),A(this,Ht).removeObserver(this)}setOptions(e){const n=this.options,i=A(this,Ht);if(this.options=A(this,pn).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof zn(this.options.enabled,A(this,Ht))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");It(this,Zt,F0).call(this),A(this,Ht).setOptions(this.options),n._defaulted&&!Wu(this.options,n)&&A(this,pn).getQueryCache().notify({type:"observerOptionsUpdated",query:A(this,Ht),observer:this});const a=this.hasListeners();a&&Bb(A(this,Ht),i,this.options,n)&&It(this,Zt,Yu).call(this),this.updateResult(),a&&(A(this,Ht)!==i||zn(this.options.enabled,A(this,Ht))!==zn(n.enabled,A(this,Ht))||hi(this.options.staleTime,A(this,Ht))!==hi(n.staleTime,A(this,Ht)))&&It(this,Zt,j0).call(this);const l=It(this,Zt,I0).call(this);a&&(A(this,Ht)!==i||zn(this.options.enabled,A(this,Ht))!==zn(n.enabled,A(this,Ht))||l!==A(this,ki))&&It(this,Zt,B0).call(this,l)}getOptimisticResult(e){const n=A(this,pn).getQueryCache().build(A(this,pn),e),i=this.createResult(n,e);return Zk(this,i)&&(ut(this,rn,i),ut(this,$a,this.options),ut(this,Is,A(this,Ht).state)),i}getCurrentResult(){return A(this,rn)}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,Za).add(e)}getCurrentQuery(){return A(this,Ht)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=A(this,pn).defaultQueryOptions(e),i=A(this,pn).getQueryCache().build(A(this,pn),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(e){return It(this,Zt,Yu).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),A(this,rn)))}createResult(e,n){var P;const i=A(this,Ht),a=this.options,l=A(this,rn),u=A(this,Is),f=A(this,$a),h=e!==i?e.state:A(this,$l),{state:m}=e;let y={...m},b=!1,v;if(n._optimisticResults){const K=this.hasListeners(),et=!K&&Ib(e,n),at=K&&Bb(e,i,n,a);(et||at)&&(y={...y,...Lb(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 K;l!=null&&l.isPlaceholderData&&n.placeholderData===(f==null?void 0:f.placeholderData)?(K=l.data,_=!0):K=typeof n.placeholderData=="function"?n.placeholderData((P=A(this,Xa))==null?void 0:P.state.data,A(this,Xa)):n.placeholderData,K!==void 0&&(C="success",v=th(l==null?void 0:l.data,K,n),b=!0)}if(n.select&&v!==void 0&&!_)if(l&&v===(u==null?void 0:u.data)&&n.select===A(this,Ql))v=A(this,Qa);else try{ut(this,Ql,n.select),v=n.select(v),v=th(l==null?void 0:l.data,v,n),ut(this,Qa,v),ut(this,Ri,null)}catch(K){ut(this,Ri,K)}A(this,Ri)&&(S=A(this,Ri),v=A(this,Qa),w=Date.now(),C="error");const M=y.fetchStatus==="fetching",R=C==="pending",B=C==="error",Y=R&&M,z=v!==void 0,N={status:C,fetchStatus:y.fetchStatus,isPending:R,isSuccess:C==="success",isError:B,isInitialLoading:Y,isLoading:Y,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:M,isRefetching:M&&!R,isLoadingError:B&&!z,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:B&&z,isStale:ah(e,n),refetch:this.refetch,promise:A(this,Fr),isEnabled:zn(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const K=ft=>{N.status==="error"?ft.reject(N.error):N.data!==void 0&&ft.resolve(N.data)},et=()=>{const ft=ut(this,Fr,N.promise=rh());K(ft)},at=A(this,Fr);switch(at.status){case"pending":e.queryHash===i.queryHash&&K(at);break;case"fulfilled":(N.status==="error"||N.data!==at.value)&&et();break;case"rejected":(N.status!=="error"||N.error!==at.reason)&&et();break}}return N}updateResult(){const e=A(this,rn),n=this.createResult(A(this,Ht),this.options);if(ut(this,Is,A(this,Ht).state),ut(this,$a,this.options),A(this,Is).data!==void 0&&ut(this,Xa,A(this,Ht)),Wu(n,e))return;ut(this,rn,n);const i=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!A(this,Za).size)return!0;const u=new Set(l??A(this,Za));return this.options.throwOnError&&u.add("error"),Object.keys(A(this,rn)).some(f=>{const d=f;return A(this,rn)[d]!==e[d]&&u.has(d)})};It(this,Zt,BR).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&It(this,Zt,U0).call(this)}},pn=new WeakMap,Ht=new WeakMap,$l=new WeakMap,rn=new WeakMap,Is=new WeakMap,$a=new WeakMap,Fr=new WeakMap,Ri=new WeakMap,Ql=new WeakMap,Qa=new WeakMap,Xa=new WeakMap,Bs=new WeakMap,Us=new WeakMap,ki=new WeakMap,Za=new WeakMap,Zt=new WeakSet,Yu=function(e){It(this,Zt,F0).call(this);let n=A(this,Ht).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(We)),n},j0=function(){It(this,Zt,P0).call(this);const e=hi(this.options.staleTime,A(this,Ht));if(fs||A(this,rn).isStale||!Zd(e))return;const i=Eb(A(this,rn).dataUpdatedAt,e)+1;ut(this,Bs,cs.setTimeout(()=>{A(this,rn).isStale||this.updateResult()},i))},I0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(A(this,Ht)):this.options.refetchInterval)??!1},B0=function(e){It(this,Zt,q0).call(this),ut(this,ki,e),!(fs||zn(this.options.enabled,A(this,Ht))===!1||!Zd(A(this,ki))||A(this,ki)===0)&&ut(this,Us,cs.setInterval(()=>{(this.options.refetchIntervalInBackground||nh.isFocused())&&It(this,Zt,Yu).call(this)},A(this,ki)))},U0=function(){It(this,Zt,j0).call(this),It(this,Zt,B0).call(this,It(this,Zt,I0).call(this))},P0=function(){A(this,Bs)&&(cs.clearTimeout(A(this,Bs)),ut(this,Bs,void 0))},q0=function(){A(this,Us)&&(cs.clearInterval(A(this,Us)),ut(this,Us,void 0))},F0=function(){const e=A(this,pn).getQueryCache().build(A(this,pn),this.options);if(e===A(this,Ht))return;const n=A(this,Ht);ut(this,Ht,e),ut(this,$l,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},BR=function(e){ze.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(A(this,rn))}),A(this,pn).getQueryCache().notify({query:A(this,Ht),type:"observerResultsUpdated"})})},zC);function Xk(t,e){return zn(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Ib(t,e){return Xk(t,e)||t.state.data!==void 0&&sh(t,e,e.refetchOnMount)}function sh(t,e,n){if(zn(e.enabled,t)!==!1&&hi(e.staleTime,t)!=="static"){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&ah(t,e)}return!1}function Bb(t,e,n,i){return(t!==e||zn(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&ah(t,n)}function ah(t,e){return zn(e.enabled,t)!==!1&&t.isStaleByTime(hi(e.staleTime,t))}function Zk(t,e){return!Wu(t.getCurrentResult(),e)}function Ub(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)})},_=Rb(e.options,e.fetchOptions),M=async(R,B,Y)=>{if(w)return Promise.reject();if(B==null&&R.pages.length)return Promise.resolve(R);const F=(()=>{const et={client:e.client,queryKey:e.queryKey,pageParam:B,direction:Y?"backward":"forward",meta:e.options.meta};return C(et),et})(),N=await _(F),{maxPages:P}=e.options,K=Y?Fk:qk;return{pages:K(R.pages,N,P),pageParams:K(R.pageParams,B,P)}};if(a&&l.length){const R=a==="backward",B=R?Jk:Pb,Y={pages:l,pageParams:u},z=B(i,Y);f=await M(Y,z,R)}else{const R=t??l.length;do{const B=d===0?u[0]??i.initialPageParam:Pb(i,f);if(d>0&&B==null)break;f=await M(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 Pb(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 Jk(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 Wk=(jC=class extends Mb{constructor(e){super();bt(this,Cr);bt(this,Xl);bt(this,Tr);bt(this,sn);bt(this,Ps);ut(this,Xl,e.client),this.mutationId=e.mutationId,ut(this,sn,e.mutationCache),ut(this,Tr,[]),this.state=e.state||qb(),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,sn).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ut(this,Tr,A(this,Tr).filter(n=>n!==e)),this.scheduleGc(),A(this,sn).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){A(this,Tr).length||(this.state.status==="pending"?this.scheduleGc():A(this,sn).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,_,M,R,B,Y,z,F,N,P;const n=()=>{It(this,Cr,os).call(this,{type:"continue"})},i={client:A(this,Xl),meta:this.options.meta,mutationKey:this.options.mutationKey};ut(this,Ps,Nb({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(new Error("No mutationFn found")),onFail:(K,et)=>{It(this,Cr,os).call(this,{type:"failed",failureCount:K,error:et})},onPause:()=>{It(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,sn).canRun(this)}));const a=this.state.status==="pending",l=!A(this,Ps).canStart();try{if(a)n();else{It(this,Cr,os).call(this,{type:"pending",variables:e,isPaused:l}),await((f=(u=A(this,sn).config).onMutate)==null?void 0:f.call(u,e,this,i));const et=await((h=(d=this.options).onMutate)==null?void 0:h.call(d,e,i));et!==this.state.context&&It(this,Cr,os).call(this,{type:"pending",context:et,variables:e,isPaused:l})}const K=await A(this,Ps).start();return await((y=(m=A(this,sn).config).onSuccess)==null?void 0:y.call(m,K,e,this.state.context,this,i)),await((v=(b=this.options).onSuccess)==null?void 0:v.call(b,K,e,this.state.context,i)),await((w=(S=A(this,sn).config).onSettled)==null?void 0:w.call(S,K,null,this.state.variables,this.state.context,this,i)),await((_=(C=this.options).onSettled)==null?void 0:_.call(C,K,null,e,this.state.context,i)),It(this,Cr,os).call(this,{type:"success",data:K}),K}catch(K){try{throw await((R=(M=A(this,sn).config).onError)==null?void 0:R.call(M,K,e,this.state.context,this,i)),await((Y=(B=this.options).onError)==null?void 0:Y.call(B,K,e,this.state.context,i)),await((F=(z=A(this,sn).config).onSettled)==null?void 0:F.call(z,void 0,K,this.state.variables,this.state.context,this,i)),await((P=(N=this.options).onSettled)==null?void 0:P.call(N,void 0,K,e,this.state.context,i)),K}finally{It(this,Cr,os).call(this,{type:"error",error:K})}}finally{A(this,sn).runNext(this)}}},Xl=new WeakMap,Tr=new WeakMap,sn=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),ze.batch(()=>{A(this,Tr).forEach(i=>{i.onMutationUpdate(e)}),A(this,sn).notify({mutation:this,type:"updated",action:e})})},jC);function qb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tD=(IC=class extends la{constructor(e={}){super();bt(this,Vr);bt(this,ar);bt(this,Zl);this.config=e,ut(this,Vr,new Set),ut(this,ar,new Map),ut(this,Zl,0)}build(e,n,i){const a=new Wk({client:e,mutationCache:this,mutationId:++Ld(this,Zl)._,options:e.defaultMutationOptions(n),state:i});return this.add(a),a}add(e){A(this,Vr).add(e);const n=ec(e);if(typeof n=="string"){const i=A(this,ar).get(n);i?i.push(e):A(this,ar).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(A(this,Vr).delete(e)){const n=ec(e);if(typeof n=="string"){const i=A(this,ar).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,ar).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=ec(e);if(typeof n=="string"){const i=A(this,ar).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=ec(e);if(typeof n=="string"){const a=(i=A(this,ar).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(){ze.batch(()=>{A(this,Vr).forEach(e=>{this.notify({type:"removed",mutation:e})}),A(this,Vr).clear(),A(this,ar).clear()})}getAll(){return Array.from(A(this,Vr))}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Cb(n,i))}findAll(e={}){return this.getAll().filter(n=>Cb(e,n))}notify(e){ze.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return ze.batch(()=>Promise.all(e.map(n=>n.continue().catch(We))))}},Vr=new WeakMap,ar=new WeakMap,Zl=new WeakMap,IC);function ec(t){var e;return(e=t.options.scope)==null?void 0:e.id}var eD=(BC=class extends la{constructor(e,n){super();bt(this,Yr);bt(this,Hr);bt(this,Di);bt(this,mn);bt(this,Gr);ut(this,Hr,e),this.setOptions(n),this.bindMethods(),It(this,Yr,zd).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),Wu(this.options,n)||A(this,Hr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:A(this,mn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&ds(n.mutationKey)!==ds(this.options.mutationKey)?this.reset():((i=A(this,mn))==null?void 0:i.state.status)==="pending"&&A(this,mn).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=A(this,mn))==null||e.removeObserver(this)}onMutationUpdate(e){It(this,Yr,zd).call(this),It(this,Yr,V0).call(this,e)}getCurrentResult(){return A(this,Di)}reset(){var e;(e=A(this,mn))==null||e.removeObserver(this),ut(this,mn,void 0),It(this,Yr,zd).call(this),It(this,Yr,V0).call(this)}mutate(e,n){var i;return ut(this,Gr,n),(i=A(this,mn))==null||i.removeObserver(this),ut(this,mn,A(this,Hr).getMutationCache().build(A(this,Hr),this.options)),A(this,mn).addObserver(this),A(this,mn).execute(e)}},Hr=new WeakMap,Di=new WeakMap,mn=new WeakMap,Gr=new WeakMap,Yr=new WeakSet,zd=function(){var n;const e=((n=A(this,mn))==null?void 0:n.state)??qb();ut(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})},V0=function(e){ze.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))})})},BC),nD=(UC=class extends la{constructor(e={}){super();bt(this,_r);this.config=e,ut(this,_r,new Map)}build(e,n,i){const a=n.queryKey,l=n.queryHash??Jd(a,n);let u=this.get(l);return u||(u=new $k({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(){ze.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=>Tb(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>Tb(e,i)):n}notify(e){ze.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){ze.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ze.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_r=new WeakMap,UC),rD=(PC=class{constructor(t={}){bt(this,xe);bt(this,Ni);bt(this,Mi);bt(this,Ja);bt(this,Wa);bt(this,Li);bt(this,to);bt(this,eo);ut(this,xe,t.queryCache||new nD),ut(this,Ni,t.mutationCache||new tD),ut(this,Mi,t.defaultOptions||{}),ut(this,Ja,new Map),ut(this,Wa,new Map),ut(this,Li,0)}mount(){Ld(this,Li)._++,A(this,Li)===1&&(ut(this,to,nh.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,xe).onFocus())})),ut(this,eo,tc.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,xe).onOnline())})))}unmount(){var t,e;Ld(this,Li)._--,A(this,Li)===0&&((t=A(this,to))==null||t.call(this),ut(this,to,void 0),(e=A(this,eo))==null||e.call(this),ut(this,eo,void 0))}isFetching(t){return A(this,xe).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,xe).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=A(this,xe).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,xe).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,xe).get(i.queryHash),l=a==null?void 0:a.state.data,u=Bk(e,l);if(u!==void 0)return A(this,xe).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return ze.batch(()=>A(this,xe).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,xe).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=A(this,xe);ze.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=A(this,xe);return ze.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},i=ze.batch(()=>A(this,xe).findAll(t).map(a=>a.cancel(n)));return Promise.all(i).then(We).catch(We)}invalidateQueries(t,e={}){return ze.batch(()=>(A(this,xe).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=ze.batch(()=>A(this,xe).findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(We)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(We)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=A(this,xe).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(We).catch(We)}fetchInfiniteQuery(t){return t.behavior=Ub(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(We).catch(We)}ensureInfiniteQueryData(t){return t.behavior=Ub(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return tc.isOnline()?A(this,Ni).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,xe)}getMutationCache(){return A(this,Ni)}getDefaultOptions(){return A(this,Mi)}setDefaultOptions(t){ut(this,Mi,t)}setQueryDefaults(t,e){A(this,Ja).set(ds(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...A(this,Ja).values()],n={};return e.forEach(i=>{Zo(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,e){A(this,Wa).set(ds(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...A(this,Wa).values()],n={};return e.forEach(i=>{Zo(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=Jd(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===eh&&(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,xe).clear(),A(this,Ni).clear()}},xe=new WeakMap,Ni=new WeakMap,Mi=new WeakMap,Ja=new WeakMap,Wa=new WeakMap,Li=new WeakMap,to=new WeakMap,eo=new WeakMap,PC),Fb=I.createContext(void 0),ua=t=>{const e=I.useContext(Fb);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},iD=({client:t,children:e})=>(I.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),L.jsx(Fb.Provider,{value:t,children:e})),Vb=I.createContext(!1),sD=()=>I.useContext(Vb);Vb.Provider;function aD(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var oD=I.createContext(aD()),Hb=()=>I.useContext(oD),lD=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},uD=t=>{I.useEffect(()=>{t.clearReset()},[t])},cD=({result:t,errorResetBoundary:e,throwOnError:n,query:i,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(a&&t.data===void 0||kb(n,[t.error,i])),fD=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))}},dD=(t,e)=>t.isLoading&&t.isFetching&&!e,hD=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Gb=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function pD(t,e,n){var y,b,v,S,w;const i=sD(),a=Hb(),l=ua(),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",fD(u),lD(u,a),uD(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(ze.batchCalls(C)):We;return d.updateResult(),_},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),I.useEffect(()=>{d.setOptions(u)},[u,d]),hD(u,h))throw Gb(u,d,a);if(cD({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&&dD(h,i)){const C=f?Gb(u,d,a):(w=l.getQueryCache().get(u.queryHash))==null?void 0:w.promise;C==null||C.catch(We).finally(()=>{d.updateResult()})}return u.notifyOnChangeProps?h:d.trackResult(h)}function nc(t,e){return pD(t,Qk)}function rc(t,e){const n=ua(),[i]=I.useState(()=>new eD(n,t));I.useEffect(()=>{i.setOptions(t)},[i,t]);const a=I.useSyncExternalStore(I.useCallback(u=>i.subscribe(ze.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=I.useCallback((u,f)=>{i.mutate(u,f).catch(We)},[i]);if(a.error&&kb(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}class Yb{constructor(e){this.config=e}}function Kb(t,e){return function(){return t.apply(e,arguments)}}var $b={};const{toString:mD}=Object.prototype,{getPrototypeOf:oh}=Object,{iterator:ic,toStringTag:Qb}=Symbol,sc=(t=>e=>{const n=mD.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),er=t=>(t=t.toLowerCase(),e=>sc(e)===t),ac=t=>e=>typeof e===t,{isArray:ca}=Array,fa=ac("undefined");function Jo(t){return t!==null&&!fa(t)&&t.constructor!==null&&!fa(t.constructor)&&ln(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Xb=er("ArrayBuffer");function gD(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Xb(t.buffer),e}const yD=ac("string"),ln=ac("function"),Zb=ac("number"),Wo=t=>t!==null&&typeof t=="object",bD=t=>t===!0||t===!1,oc=t=>{if(sc(t)!=="object")return!1;const e=oh(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Qb in t)&&!(ic in t)},vD=t=>{if(!Wo(t)||Jo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},xD=er("Date"),SD=er("File"),wD=er("Blob"),ED=er("FileList"),TD=t=>Wo(t)&&ln(t.pipe),CD=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ln(t.append)&&((e=sc(t))==="formdata"||e==="object"&&ln(t.toString)&&t.toString()==="[object FormData]"))},_D=er("URLSearchParams"),[AD,OD,RD,kD]=["ReadableStream","Request","Response","Headers"].map(er),DD=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tl(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,a;if(typeof t!="object"&&(t=[t]),ca(t))for(i=0,a=t.length;i<a;i++)e.call(null,t[i],i,t);else{if(Jo(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 Jb(t,e){if(Jo(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,Wb=t=>!fa(t)&&t!==hs;function lh(){const{caseless:t,skipUndefined:e}=Wb(this)&&this||{},n={},i=(a,l)=>{const u=t&&Jb(n,l)||l;oc(n[u])&&oc(a)?n[u]=lh(n[u],a):oc(a)?n[u]=lh({},a):ca(a)?n[u]=a.slice():(!e||!fa(a))&&(n[u]=a)};for(let a=0,l=arguments.length;a<l;a++)arguments[a]&&tl(arguments[a],i);return n}const ND=(t,e,n,{allOwnKeys:i}={})=>(tl(e,(a,l)=>{n&&ln(a)?t[l]=Kb(a,n):t[l]=a},{allOwnKeys:i}),t),MD=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),LD=(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)},zD=(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&&oh(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},jD=(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},ID=t=>{if(!t)return null;if(ca(t))return t;let e=t.length;if(!Zb(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},BD=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&oh(Uint8Array)),UD=(t,e)=>{const i=(t&&t[ic]).call(t);let a;for(;(a=i.next())&&!a.done;){const l=a.value;e.call(t,l[0],l[1])}},PD=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},qD=er("HTMLFormElement"),FD=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),tv=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),VD=er("RegExp"),ev=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};tl(n,(a,l)=>{let u;(u=e(a,l,t))!==!1&&(i[l]=u||a)}),Object.defineProperties(t,i)},HD=t=>{ev(t,(e,n)=>{if(ln(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(ln(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+"'")})}})},GD=(t,e)=>{const n={},i=a=>{a.forEach(l=>{n[l]=!0})};return ca(t)?i(t):i(String(t).split(e)),n},YD=()=>{},KD=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function $D(t){return!!(t&&ln(t.append)&&t[Qb]==="FormData"&&t[ic])}const QD=t=>{const e=new Array(10),n=(i,a)=>{if(Wo(i)){if(e.indexOf(i)>=0)return;if(Jo(i))return i;if(!("toJSON"in i)){e[a]=i;const l=ca(i)?[]:{};return tl(i,(u,f)=>{const d=n(u,a+1);!fa(d)&&(l[f]=d)}),e[a]=void 0,l}}return i};return n(t,0)},XD=er("AsyncFunction"),ZD=t=>t&&(Wo(t)||ln(t))&&ln(t.then)&&ln(t.catch),nv=((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",ln(hs.postMessage)),JD=typeof queueMicrotask<"u"?queueMicrotask.bind(hs):typeof $b<"u"&&$b.nextTick||nv,Q={isArray:ca,isArrayBuffer:Xb,isBuffer:Jo,isFormData:CD,isArrayBufferView:gD,isString:yD,isNumber:Zb,isBoolean:bD,isObject:Wo,isPlainObject:oc,isEmptyObject:vD,isReadableStream:AD,isRequest:OD,isResponse:RD,isHeaders:kD,isUndefined:fa,isDate:xD,isFile:SD,isBlob:wD,isRegExp:VD,isFunction:ln,isStream:TD,isURLSearchParams:_D,isTypedArray:BD,isFileList:ED,forEach:tl,merge:lh,extend:ND,trim:DD,stripBOM:MD,inherits:LD,toFlatObject:zD,kindOf:sc,kindOfTest:er,endsWith:jD,toArray:ID,forEachEntry:UD,matchAll:PD,isHTMLForm:qD,hasOwnProperty:tv,hasOwnProp:tv,reduceDescriptors:ev,freezeMethods:HD,toObjectSet:GD,toCamelCase:FD,noop:YD,toFiniteNumber:KD,findKey:Jb,global:hs,isContextDefined:Wb,isSpecCompliantForm:$D,toJSONObject:QD,isAsyncFn:XD,isThenable:ZD,setImmediate:nv,asap:JD,isIterable:t=>t!=null&&ln(t[ic])};function Dt(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)}Q.inherits(Dt,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:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const rv=Dt.prototype,iv={};["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=>{iv[t]={value:t}}),Object.defineProperties(Dt,iv),Object.defineProperty(rv,"isAxiosError",{value:!0}),Dt.from=(t,e,n,i,a,l)=>{const u=Object.create(rv);Q.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 Dt.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 WD=null;function uh(t){return Q.isPlainObject(t)||Q.isArray(t)}function sv(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function av(t,e,n){return t?t.concat(e).map(function(a,l){return a=sv(a),!n&&l?"["+a+"]":a}).join(n?".":""):e}function tN(t){return Q.isArray(t)&&!t.some(uh)}const eN=Q.toFlatObject(Q,{},null,function(e){return/^is[A-Z]/.test(e)});function lc(t,e,n){if(!Q.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,C){return!Q.isUndefined(C[w])});const i=n.metaTokens,a=n.visitor||m,l=n.dots,u=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(e);if(!Q.isFunction(a))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(Q.isDate(S))return S.toISOString();if(Q.isBoolean(S))return S.toString();if(!d&&Q.isBlob(S))throw new Dt("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(S)||Q.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(Q.endsWith(w,"{}"))w=i?w:w.slice(0,-2),S=JSON.stringify(S);else if(Q.isArray(S)&&tN(S)||(Q.isFileList(S)||Q.endsWith(w,"[]"))&&(_=Q.toArray(S)))return w=sv(w),_.forEach(function(R,B){!(Q.isUndefined(R)||R===null)&&e.append(u===!0?av([w],B,l):u===null?w:w+"[]",h(R))}),!1}return uh(S)?!0:(e.append(av(C,w,l),h(S)),!1)}const y=[],b=Object.assign(eN,{defaultVisitor:m,convertValue:h,isVisitable:uh});function v(S,w){if(!Q.isUndefined(S)){if(y.indexOf(S)!==-1)throw Error("Circular reference detected in "+w.join("."));y.push(S),Q.forEach(S,function(_,M){(!(Q.isUndefined(_)||_===null)&&a.call(e,_,Q.isString(M)?M.trim():M,w,b))===!0&&v(_,w?w.concat(M):[M])}),y.pop()}}if(!Q.isObject(t))throw new TypeError("data must be an object");return v(t),e}function ov(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function ch(t,e){this._pairs=[],t&&lc(t,this,e)}const lv=ch.prototype;lv.append=function(e,n){this._pairs.push([e,n])},lv.toString=function(e){const n=e?function(i){return e.call(this,i,ov)}:ov;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function nN(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function uv(t,e,n){if(!e)return t;const i=n&&n.encode||nN;Q.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let l;if(a?l=a(e,n):l=Q.isURLSearchParams(e)?e.toString():new ch(e,n).toString(i),l){const u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class cv{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){Q.forEach(this.handlers,function(i){i!==null&&e(i)})}}const fv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rN={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ch,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},fh=typeof window<"u"&&typeof document<"u",dh=typeof navigator=="object"&&navigator||void 0,iN=fh&&(!dh||["ReactNative","NativeScript","NS"].indexOf(dh.product)<0),sN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aN=fh&&window.location.href||"http://localhost",Xe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fh,hasStandardBrowserEnv:iN,hasStandardBrowserWebWorkerEnv:sN,navigator:dh,origin:aN},Symbol.toStringTag,{value:"Module"})),...rN};function oN(t,e){return lc(t,new Xe.classes.URLSearchParams,{visitor:function(n,i,a,l){return Xe.isNode&&Q.isBuffer(n)?(this.append(i,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}function lN(t){return Q.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function uN(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 dv(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&&Q.isArray(a)?a.length:u,d?(Q.hasOwnProp(a,u)?a[u]=[a[u],i]:a[u]=i,!f):((!a[u]||!Q.isObject(a[u]))&&(a[u]=[]),e(n,i,a[u],l)&&Q.isArray(a[u])&&(a[u]=uN(a[u])),!f)}if(Q.isFormData(t)&&Q.isFunction(t.entries)){const n={};return Q.forEachEntry(t,(i,a)=>{e(lN(i),a,n,0)}),n}return null}function cN(t,e,n){if(Q.isString(t))try{return(e||JSON.parse)(t),Q.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const el={transitional:fv,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,l=Q.isObject(e);if(l&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return a?JSON.stringify(dv(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e)||Q.isReadableStream(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.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 oN(e,this.formSerializer).toString();if((f=Q.isFileList(e))||i.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return lc(f?{"files[]":e}:e,d&&new d,this.formSerializer)}}return l||a?(n.setContentType("application/json",!1),cN(e)):e}],transformResponse:[function(e){const n=this.transitional||el.transitional,i=n&&n.forcedJSONParsing,a=this.responseType==="json";if(Q.isResponse(e)||Q.isReadableStream(e))return e;if(e&&Q.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"?Dt.from(f,Dt.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}}};Q.forEach(["delete","get","head","post","put","patch"],t=>{el.headers[t]={}});const fN=Q.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"]),dN=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]&&fN[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},hv=Symbol("internals");function nl(t){return t&&String(t).trim().toLowerCase()}function uc(t){return t===!1||t==null?t:Q.isArray(t)?t.map(uc):String(t)}function hN(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 pN=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function hh(t,e,n,i,a){if(Q.isFunction(i))return i.call(this,e,n);if(a&&(e=n),!!Q.isString(e)){if(Q.isString(i))return e.indexOf(i)!==-1;if(Q.isRegExp(i))return i.test(e)}}function mN(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function gN(t,e){const n=Q.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 un=class{constructor(e){e&&this.set(e)}set(e,n,i){const a=this;function l(f,d,h){const m=nl(d);if(!m)throw new Error("header name must be a non-empty string");const y=Q.findKey(a,m);(!y||a[y]===void 0||h===!0||h===void 0&&a[y]!==!1)&&(a[y||d]=uc(f))}const u=(f,d)=>Q.forEach(f,(h,m)=>l(h,m,d));if(Q.isPlainObject(e)||e instanceof this.constructor)u(e,n);else if(Q.isString(e)&&(e=e.trim())&&!pN(e))u(dN(e),n);else if(Q.isObject(e)&&Q.isIterable(e)){let f={},d,h;for(const m of e){if(!Q.isArray(m))throw TypeError("Object iterator must return a key-value pair");f[h=m[0]]=(d=f[h])?Q.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=nl(e),e){const i=Q.findKey(this,e);if(i){const a=this[i];if(!n)return a;if(n===!0)return hN(a);if(Q.isFunction(n))return n.call(this,a,i);if(Q.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=nl(e),e){const i=Q.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||hh(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let a=!1;function l(u){if(u=nl(u),u){const f=Q.findKey(i,u);f&&(!n||hh(i,i[f],f,n))&&(delete i[f],a=!0)}}return Q.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||hh(this,this[l],l,e,!0))&&(delete this[l],a=!0)}return a}normalize(e){const n=this,i={};return Q.forEach(this,(a,l)=>{const u=Q.findKey(i,l);if(u){n[u]=uc(a),delete n[l];return}const f=e?mN(l):String(l).trim();f!==l&&delete n[l],n[f]=uc(a),i[f]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Q.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=e&&Q.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[hv]=this[hv]={accessors:{}}).accessors,a=this.prototype;function l(u){const f=nl(u);i[f]||(gN(a,u),i[f]=!0)}return Q.isArray(e)?e.forEach(l):l(e),this}};un.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(un.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),Q.freezeMethods(un);function ph(t,e){const n=this||el,i=e||n,a=un.from(i.headers);let l=i.data;return Q.forEach(t,function(f){l=f.call(n,l,a.normalize(),e?e.status:void 0)}),a.normalize(),l}function pv(t){return!!(t&&t.__CANCEL__)}function da(t,e,n){Dt.call(this,t??"canceled",Dt.ERR_CANCELED,e,n),this.name="CanceledError"}Q.inherits(da,Dt,{__CANCEL__:!0});function mv(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new Dt("Request failed with status code "+n.status,[Dt.ERR_BAD_REQUEST,Dt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function yN(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function bN(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 vN(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 cc=(t,e,n=3)=>{let i=0;const a=bN(50,250);return vN(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)},gv=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},yv=t=>(...e)=>Q.asap(()=>t(...e)),xN=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,SN=Xe.hasStandardBrowserEnv?{write(t,e,n,i,a,l,u){if(typeof document>"u")return;const f=[`${t}=${encodeURIComponent(e)}`];Q.isNumber(n)&&f.push(`expires=${new Date(n).toUTCString()}`),Q.isString(i)&&f.push(`path=${i}`),Q.isString(a)&&f.push(`domain=${a}`),l===!0&&f.push("secure"),Q.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 wN(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function EN(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function bv(t,e,n){let i=!wN(e);return t&&(i||n==!1)?EN(t,e):e}const vv=t=>t instanceof un?{...t}:t;function ps(t,e){e=e||{};const n={};function i(h,m,y,b){return Q.isPlainObject(h)&&Q.isPlainObject(m)?Q.merge.call({caseless:b},h,m):Q.isPlainObject(m)?Q.merge({},m):Q.isArray(m)?m.slice():m}function a(h,m,y,b){if(Q.isUndefined(m)){if(!Q.isUndefined(h))return i(void 0,h,y,b)}else return i(h,m,y,b)}function l(h,m){if(!Q.isUndefined(m))return i(void 0,m)}function u(h,m){if(Q.isUndefined(m)){if(!Q.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(vv(h),vv(m),y,!0)};return Q.forEach(Object.keys({...t,...e}),function(m){const y=d[m]||a,b=y(t[m],e[m],m);Q.isUndefined(b)&&y!==f||(n[m]=b)}),n}const xv=t=>{const e=ps({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:l,headers:u,auth:f}=e;if(e.headers=u=un.from(u),e.url=uv(bv(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),Q.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(Q.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&&Q.isFunction(i)&&(i=i(e)),i||i!==!1&&xN(e.url))){const d=a&&l&&SN.read(l);d&&u.set(a,d)}return e},TN=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,i){const a=xv(t);let l=a.data;const u=un.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=un.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),Y={data:!f||f==="text"||f==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:R,config:t,request:C};mv(function(F){n(F),w()},function(F){i(F),w()},Y),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 Dt("Request aborted",Dt.ECONNABORTED,t,C)),C=null)},C.onerror=function(B){const Y=B&&B.message?B.message:"Network Error",z=new Dt(Y,Dt.ERR_NETWORK,t,C);z.event=B||null,i(z),C=null},C.ontimeout=function(){let B=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const Y=a.transitional||fv;a.timeoutErrorMessage&&(B=a.timeoutErrorMessage),i(new Dt(B,Y.clarifyTimeoutError?Dt.ETIMEDOUT:Dt.ECONNABORTED,t,C)),C=null},l===void 0&&u.setContentType(null),"setRequestHeader"in C&&Q.forEach(u.toJSON(),function(B,Y){C.setRequestHeader(Y,B)}),Q.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),f&&f!=="json"&&(C.responseType=a.responseType),h&&([b,S]=cc(h,!0),C.addEventListener("progress",b)),d&&C.upload&&([y,v]=cc(d),C.upload.addEventListener("progress",y),C.upload.addEventListener("loadend",v)),(a.cancelToken||a.signal)&&(m=R=>{C&&(i(!R||R.type?new da(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 M=yN(a.url);if(M&&Xe.protocols.indexOf(M)===-1){i(new Dt("Unsupported protocol "+M+":",Dt.ERR_BAD_REQUEST,t));return}C.send(l||null)})},CN=(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 Dt?m:new da(m instanceof Error?m.message:m))}};let u=e&&setTimeout(()=>{u=null,l(new Dt(`timeout ${e} of ms exceeded`,Dt.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=()=>Q.asap(f),d}},_N=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},AN=async function*(t,e){for await(const n of ON(t))yield*_N(n,e)},ON=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()}},Sv=(t,e,n,i)=>{const a=AN(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})},wv=64*1024,{isFunction:fc}=Q,RN=(({Request:t,Response:e})=>({Request:t,Response:e}))(Q.global),{ReadableStream:Ev,TextEncoder:Tv}=Q.global,Cv=(t,...e)=>{try{return!!t(...e)}catch{return!1}},kN=t=>{t=Q.merge.call({skipUndefined:!0},RN,t);const{fetch:e,Request:n,Response:i}=t,a=e?fc(e):typeof fetch=="function",l=fc(n),u=fc(i);if(!a)return!1;const f=a&&fc(Ev),d=a&&(typeof Tv=="function"?(S=>w=>S.encode(w))(new Tv):async S=>new Uint8Array(await new n(S).arrayBuffer())),h=l&&f&&Cv(()=>{let S=!1;const w=new n(Xe.origin,{body:new Ev,method:"POST",get duplex(){return S=!0,"half"}}).headers.has("Content-Type");return S&&!w}),m=u&&f&&Cv(()=>Q.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 Dt(`Response type '${S}' is not supported`,Dt.ERR_NOT_SUPPORT,C)})});const b=async S=>{if(S==null)return 0;if(Q.isBlob(S))return S.size;if(Q.isSpecCompliantForm(S))return(await new n(Xe.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(S)||Q.isArrayBuffer(S))return S.byteLength;if(Q.isURLSearchParams(S)&&(S=S+""),Q.isString(S))return(await d(S)).byteLength},v=async(S,w)=>{const C=Q.toFiniteNumber(S.getContentLength());return C??b(w)};return async S=>{let{url:w,method:C,data:_,signal:M,cancelToken:R,timeout:B,onDownloadProgress:Y,onUploadProgress:z,responseType:F,headers:N,withCredentials:P="same-origin",fetchOptions:K}=xv(S),et=e||fetch;F=F?(F+"").toLowerCase():"text";let at=CN([M,R&&R.toAbortSignal()],B),ft=null;const st=at&&at.unsubscribe&&(()=>{at.unsubscribe()});let it;try{if(z&&h&&C!=="get"&&C!=="head"&&(it=await v(N,_))!==0){let dt=new n(w,{method:"POST",body:_,duplex:"half"}),k;if(Q.isFormData(_)&&(k=dt.headers.get("content-type"))&&N.setContentType(k),dt.body){const[T,nt]=gv(it,cc(yv(z)));_=Sv(dt.body,wv,T,nt)}}Q.isString(P)||(P=P?"include":"omit");const Z=l&&"credentials"in n.prototype,G={...K,signal:at,method:C.toUpperCase(),headers:N.normalize().toJSON(),body:_,duplex:"half",credentials:Z?P:void 0};ft=l&&new n(w,G);let q=await(l?et(ft,K):et(w,G));const vt=m&&(F==="stream"||F==="response");if(m&&(Y||vt&&st)){const dt={};["status","statusText","headers"].forEach(lt=>{dt[lt]=q[lt]});const k=Q.toFiniteNumber(q.headers.get("content-length")),[T,nt]=Y&&gv(k,cc(yv(Y),!0))||[];q=new i(Sv(q.body,wv,T,()=>{nt&&nt(),st&&st()}),dt)}F=F||"text";let O=await y[Q.findKey(y,F)||"text"](q,S);return!vt&&st&&st(),await new Promise((dt,k)=>{mv(dt,k,{data:O,headers:un.from(q.headers),status:q.status,statusText:q.statusText,config:S,request:ft})})}catch(Z){throw st&&st(),Z&&Z.name==="TypeError"&&/Load failed|fetch/i.test(Z.message)?Object.assign(new Dt("Network Error",Dt.ERR_NETWORK,S,ft),{cause:Z.cause||Z}):Dt.from(Z,Z&&Z.code,S,ft)}}},DN=new Map,_v=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=DN;for(;f--;)d=l[f],h=m.get(d),h===void 0&&m.set(d,h=f?new Map:kN(e)),m=h;return h};_v();const mh={http:WD,xhr:TN,fetch:{get:_v}};Q.forEach(mh,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Av=t=>`- ${t}`,NN=t=>Q.isFunction(t)||t===null||t===!1;function MN(t,e){t=Q.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,!NN(i)&&(a=mh[(f=String(i)).toLowerCase()],a===void 0))throw new Dt(`Unknown adapter '${f}'`);if(a&&(Q.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(Av).join(`
`):" "+Av(u[0]):"as no adapter specified";throw new Dt("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return a}const Ov={getAdapter:MN,adapters:mh};function gh(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new da(null,t)}function Rv(t){return gh(t),t.headers=un.from(t.headers),t.data=ph.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ov.getAdapter(t.adapter||el.adapter,t)(t).then(function(i){return gh(t),i.data=ph.call(t,t.transformResponse,i),i.headers=un.from(i.headers),i},function(i){return pv(i)||(gh(t),i&&i.response&&(i.response.data=ph.call(t,t.transformResponse,i.response),i.response.headers=un.from(i.response.headers))),Promise.reject(i)})}const kv="1.13.2",dc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{dc[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Dv={};dc.transitional=function(e,n,i){function a(l,u){return"[Axios v"+kv+"] Transitional option '"+l+"'"+u+(i?". "+i:"")}return(l,u,f)=>{if(e===!1)throw new Dt(a(u," has been removed"+(n?" in "+n:"")),Dt.ERR_DEPRECATED);return n&&!Dv[u]&&(Dv[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}},dc.spelling=function(e){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function LN(t,e,n){if(typeof t!="object")throw new Dt("options must be an object",Dt.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 Dt("option "+l+" must be "+d,Dt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Dt("Unknown option "+l,Dt.ERR_BAD_OPTION)}}const hc={assertOptions:LN,validators:dc},gr=hc.validators;let ms=class{constructor(e){this.defaults=e||{},this.interceptors={request:new cv,response:new cv}}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&&hc.assertOptions(i,{silentJSONParsing:gr.transitional(gr.boolean),forcedJSONParsing:gr.transitional(gr.boolean),clarifyTimeoutError:gr.transitional(gr.boolean)},!1),a!=null&&(Q.isFunction(a)?n.paramsSerializer={serialize:a}:hc.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),hc.assertOptions(n,{baseUrl:gr.spelling("baseURL"),withXsrfToken:gr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&Q.merge(l.common,l[n.method]);l&&Q.forEach(["delete","get","head","post","put","patch","common"],S=>{delete l[S]}),n.headers=un.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=[Rv.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=Rv.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=bv(e.baseURL,e.url,e.allowAbsoluteUrls);return uv(n,e.params,e.paramsSerializer)}};Q.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}))}}),Q.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 zN=class UR{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 da(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 UR(function(a){e=a}),cancel:e}}};function jN(t){return function(n){return t.apply(null,n)}}function IN(t){return Q.isObject(t)&&t.isAxiosError===!0}const yh={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(yh).forEach(([t,e])=>{yh[e]=t});function Nv(t){const e=new ms(t),n=Kb(ms.prototype.request,e);return Q.extend(n,ms.prototype,e,{allOwnKeys:!0}),Q.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return Nv(ps(t,a))},n}const ge=Nv(el);ge.Axios=ms,ge.CanceledError=da,ge.CancelToken=zN,ge.isCancel=pv,ge.VERSION=kv,ge.toFormData=lc,ge.AxiosError=Dt,ge.Cancel=ge.CanceledError,ge.all=function(e){return Promise.all(e)},ge.spread=jN,ge.isAxiosError=IN,ge.mergeConfig=ps,ge.AxiosHeaders=un,ge.formToJSON=t=>dv(Q.isHTMLForm(t)?new FormData(t):t),ge.getAdapter=Ov.getAdapter,ge.HttpStatusCode=yh,ge.default=ge;const{Axios:A7,AxiosError:O7,CanceledError:R7,isCancel:k7,CancelToken:D7,VERSION:N7,all:M7,Cancel:L7,isAxiosError:z7,spread:j7,toFormData:I7,AxiosHeaders:B7,HttpStatusCode:U7,formToJSON:P7,getAdapter:q7,mergeConfig:F7}=ge;var bh,Mv;function BN(){return Mv||(Mv=1,bh=typeof self=="object"?self.FormData:window.FormData),bh}var UN=BN();const Lv=Ut(UN);class rl extends Error{constructor(n,i,a){super(a);ne(this,"url");ne(this,"status");ne(this,"statusText");ne(this,"body");ne(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 PN extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class qN{constructor(e){bt(this,Ar);bt(this,Or);bt(this,or);bt(this,zi);bt(this,qs);bt(this,no);bt(this,ji);ut(this,Ar,!1),ut(this,Or,!1),ut(this,or,!1),ut(this,zi,[]),ut(this,qs,new Promise((n,i)=>{ut(this,no,n),ut(this,ji,i);const a=f=>{A(this,Ar)||A(this,Or)||A(this,or)||(ut(this,Ar,!0),A(this,no)&&A(this,no).call(this,f))},l=f=>{A(this,Ar)||A(this,Or)||A(this,or)||(ut(this,Or,!0),A(this,ji)&&A(this,ji).call(this,f))},u=f=>{A(this,Ar)||A(this,Or)||A(this,or)||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,or)}),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,or))){if(ut(this,or,!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 PN("Request aborted"))}}get isCancelled(){return A(this,or)}}Ar=new WeakMap,Or=new WeakMap,or=new WeakMap,zi=new WeakMap,qs=new WeakMap,no=new WeakMap,ji=new WeakMap;const vh=t=>t!=null,pc=t=>typeof t=="string",xh=t=>pc(t)&&t!=="",zv=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]),FN=t=>t instanceof Lv,VN=t=>t>=200&&t<300,HN=t=>{try{return btoa(t)}catch{return Buffer.from(t).toString("base64")}},GN=t=>{const e=[],n=(a,l)=>{e.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(l))}`)},i=(a,l)=>{vh(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("&")}`:""},YN=(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}${GN(e.query)}`:a},KN=t=>{if(t.formData){const e=new Lv,n=(i,a)=>{pc(a)||zv(a)?e.append(i,a):e.append(i,JSON.stringify(a))};return Object.entries(t.formData).filter(([i,a])=>vh(a)).forEach(([i,a])=>{Array.isArray(a)?a.forEach(l=>n(i,l)):n(i,a)}),e}},mc=async(t,e)=>typeof e=="function"?e(t):e,$N=async(t,e,n)=>{const[i,a,l,u]=await Promise.all([mc(e,t.TOKEN),mc(e,t.USERNAME),mc(e,t.PASSWORD),mc(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])=>vh(m)).reduce((h,[m,y])=>({...h,[m]:String(y)}),{});if(xh(i)&&(d.Authorization=`Bearer ${i}`),xh(a)&&xh(l)){const h=HN(`${a}:${l}`);d.Authorization=`Basic ${h}`}return e.body!==void 0&&(e.mediaType?d["Content-Type"]=e.mediaType:zv(e.body)?d["Content-Type"]=e.body.type||"application/octet-stream":pc(e.body)?d["Content-Type"]="text/plain":FN(e.body)||(d["Content-Type"]="application/json")),d},QN=t=>{if(t.body)return t.body},XN=async(t,e,n,i,a,l,u,f)=>{const d=ge.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}},ZN=(t,e)=>{if(e){const n=t.headers[e];if(pc(n))return n}},JN=t=>{if(t.status!==204)return t.data},WN=(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 rl(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 rl(t,e,`Generic Error: status: ${a}; status text: ${l}; body: ${u}`)}},jv=(t,e,n=ge)=>new qN(async(i,a,l)=>{try{const u=YN(t,e),f=KN(e),d=QN(e),h=await $N(t,e,f);if(!l.isCancelled){const m=await XN(t,e,u,d,f,h,l,n),y=JN(m),b=ZN(m,e.responseHeader),v={url:u,ok:VN(m.status),status:m.status,statusText:m.statusText,body:b??y};WN(e,v),i(v.body)}}catch(u){a(u)}});class tM extends Yb{constructor(e){super(e)}request(e){return jv(this.config,e)}}class eM{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 nM{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 rM{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 iM{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 sM{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 aM{constructor(e){this.httpRequest=e}agentToolsControllerGetAvailableTools(){return this.httpRequest.request({method:"GET",url:"/agent-tools"})}}class oM{constructor(e){this.httpRequest=e}appControllerGetHello(){return this.httpRequest.request({method:"GET",url:"/"})}}class lM{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 uM{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 cM{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 fM{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 dM{constructor(e){this.httpRequest=e}flowToolsControllerListTools(){return this.httpRequest.request({method:"GET",url:"/admin/flow-tools"})}}class hM{constructor(e){this.httpRequest=e}documentControllerUploadText({tenantId:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/documents/upload-text",path:{tenantId:e},body:n,mediaType:"application/json"})}documentControllerUploadPdf({tenantId:e,formData:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/documents/upload-pdf",path:{tenantId:e},formData:n,mediaType:"multipart/form-data"})}documentControllerFindAll({tenantId:e}){return this.httpRequest.request({method:"GET",url:"/admin/tenants/{tenantId}/knowledge-base/documents",path:{tenantId:e}})}documentControllerFindOne({tenantId:e,id:n}){return this.httpRequest.request({method:"GET",url:"/admin/tenants/{tenantId}/knowledge-base/documents/{id}",path:{tenantId:e,id:n}})}documentControllerUpdate({tenantId:e,id:n,requestBody:i}){return this.httpRequest.request({method:"PATCH",url:"/admin/tenants/{tenantId}/knowledge-base/documents/{id}",path:{tenantId:e,id:n},body:i,mediaType:"application/json"})}documentControllerRemove({tenantId:e,id:n}){return this.httpRequest.request({method:"DELETE",url:"/admin/tenants/{tenantId}/knowledge-base/documents/{id}",path:{tenantId:e,id:n}})}documentControllerSyncFaq({tenantId:e}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/faq/sync",path:{tenantId:e}})}documentControllerReindex({tenantId:e,id:n}){return this.httpRequest.request({method:"POST",url:"/admin/tenants/{tenantId}/knowledge-base/documents/{id}/reindex",path:{tenantId:e,id:n}})}}class pM{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 mM{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 gM{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 yM{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 bM{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 vM{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 xM{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."}})}tenantsControllerSyncKnowledgeBase({id:e}){return this.httpRequest.request({method:"POST",url:"/tenants/admin/{id}/knowledge-base/sync",path:{id:e}})}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."}})}tenantsControllerSetDefaultFlowDefinition({id:e,requestBody:n}){return this.httpRequest.request({method:"PATCH",url:"/tenants/{id}/default-flow-definition",path:{id:e},body:n,mediaType:"application/json",errors:{401:"Unauthorized.",404:"Tenant or Flow definition not found."}})}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."}})}tenantsControllerGetCoinBalance({id:e}){return this.httpRequest.request({method:"GET",url:"/tenants/{id}/coin-balance",path:{id:e}})}tenantsControllerGetCoinTransactions({id:e,page:n=1,limit:i=10}){return this.httpRequest.request({method:"GET",url:"/tenants/{id}/coin-transactions",path:{id:e},query:{page:n,limit:i}})}tenantsControllerCreateCoinTransaction({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenants/{id}/coin-transactions",path:{id:e},body:n,mediaType:"application/json"})}tenantsControllerEnableCoinSystem({id:e,requestBody:n}){return this.httpRequest.request({method:"POST",url:"/tenants/{id}/coin-system/enable",path:{id:e},body:n,mediaType:"application/json"})}tenantsControllerDisableCoinSystem({id:e}){return this.httpRequest.request({method:"DELETE",url:"/tenants/{id}/coin-system",path:{id:e}})}}class SM{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 wM{constructor(e,n=tM){ne(this,"adminChatSessions");ne(this,"adminFlowDefinitions");ne(this,"adminTenants");ne(this,"agents");ne(this,"agentTemplates");ne(this,"agentTools");ne(this,"app");ne(this,"auth");ne(this,"chatSessions");ne(this,"externalApi");ne(this,"file");ne(this,"flowTools");ne(this,"knowledgeBase");ne(this,"products");ne(this,"promptBlocks");ne(this,"questionAnswers");ne(this,"statistics");ne(this,"tenantApiKeys");ne(this,"tenantInvitations");ne(this,"tenants");ne(this,"tenantUsers");ne(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 eM(this.request),this.adminFlowDefinitions=new nM(this.request),this.adminTenants=new rM(this.request),this.agents=new iM(this.request),this.agentTemplates=new sM(this.request),this.agentTools=new aM(this.request),this.app=new oM(this.request),this.auth=new lM(this.request),this.chatSessions=new uM(this.request),this.externalApi=new cM(this.request),this.file=new fM(this.request),this.flowTools=new dM(this.request),this.knowledgeBase=new hM(this.request),this.products=new pM(this.request),this.promptBlocks=new mM(this.request),this.questionAnswers=new gM(this.request),this.statistics=new yM(this.request),this.tenantApiKeys=new bM(this.request),this.tenantInvitations=new vM(this.request),this.tenants=new xM(this.request),this.tenantUsers=new SM(this.request)}}var Iv;(t=>{(e=>{e.STRING="string",e.VERIFICATION_CODE="verificationCode",e.DATE="date",e.CODE="code"})(t.inputType||(t.inputType={}))})(Iv||(Iv={}));var Bv;(t=>{(e=>{e.CREDIT="CREDIT",e.DEBIT="DEBIT"})(t.type||(t.type={})),(e=>{e.DOCUMENT_PROCESSING="DOCUMENT_PROCESSING",e.FAQ_SYNC="FAQ_SYNC",e.FAQ_CREATE="FAQ_CREATE",e.FAQ_UPDATE="FAQ_UPDATE",e.MANUAL_ADJUSTMENT="MANUAL_ADJUSTMENT"})(t.action||(t.action={}))})(Bv||(Bv={}));var Uv;(t=>{(e=>{e.CREDIT="CREDIT",e.DEBIT="DEBIT"})(t.type||(t.type={}))})(Uv||(Uv={}));var Pv;(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={}))})(Pv||(Pv={}));var nr=(t=>(t.USER="user",t.ASSISTANT="assistant",t))(nr||{}),qv;(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={}))})(qv||(qv={}));var Sh;(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={}))})(Sh||(Sh={}));var il=(t=>(t.FULL="FULL",t.FLOW_ONLY="FLOW_ONLY",t))(il||{}),gc=(t=>(t.STYLE1="STYLE1",t.STYLE2="STYLE2",t))(gc||{}),Fv;(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={}))})(Fv||(Fv={}));var wh=(t=>(t.NONE="NONE",t.MESSAGE_TEMPLATES="MESSAGE_TEMPLATES",t.ACTION_BUTTONS="ACTION_BUTTONS",t))(wh||{});const EM=t=>{var e;return((e=t==null?void 0:t.response)==null?void 0:e.status)||(t==null?void 0:t.status)||0},Vv=t=>![400,403,409,422,404,401].includes(EM(t)),TM=new rD({defaultOptions:{queries:{retry:!1,throwOnError:Vv},mutations:{retry:!1,throwOnError:Vv}}}),CM=I.createContext(null),Eh={didCatch:!1,error:null};class _M extends I.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Eh}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(Eh)}}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&&AM(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(Eh)}}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(CM.Provider,{value:{didCatch:l,error:u,resetErrorBoundary:this.resetErrorBoundary}},f)}}function AM(){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 Mt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,re=globalThis,gs="10.29.0";function yc(){return bc(re),re}function bc(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||gs,e[gs]=e[gs]||{}}function ha(t,e,n=re){const i=n.__SENTRY__=n.__SENTRY__||{},a=i[gs]=i[gs]||{};return a[t]||(a[t]=e())}const OM=["debug","info","warn","error","log","assert","trace"],RM="Sentry Logger ",vc={};function pa(t){if(!("console"in re))return t();const e=re.console,n={},i=Object.keys(vc);i.forEach(a=>{const l=vc[a];n[a]=e[a],e[a]=l});try{return t()}finally{i.forEach(a=>{e[a]=n[a]})}}function kM(){Ch().enabled=!0}function DM(){Ch().enabled=!1}function Hv(){return Ch().enabled}function NM(...t){Th("log",...t)}function MM(...t){Th("warn",...t)}function LM(...t){Th("error",...t)}function Th(t,...e){Mt&&Hv()&&pa(()=>{re.console[t](`${RM}[${t}]:`,...e)})}function Ch(){return Mt?ha("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Tt={enable:kM,disable:DM,isEnabled:Hv,log:NM,warn:MM,error:LM},Gv=50,ys="?",Yv=/\(error: (.*)\)/,Kv=/captureMessage|captureException/;function $v(...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=Yv.test(d)?d.replace(Yv,"$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>=Gv+a)break}}return jM(l.slice(a))}}function zM(t){return Array.isArray(t)?$v(...t):t}function jM(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(xc(e).function||"")&&e.pop(),e.reverse(),Kv.test(xc(e).function||"")&&(e.pop(),Kv.test(xc(e).function||"")&&e.pop()),e.slice(0,Gv).map(n=>({...n,filename:n.filename||xc(e).filename,function:n.function||ys}))}function xc(t){return t[t.length-1]||{}}const _h="<anonymous>";function pi(t){try{return!t||typeof t!="function"?_h:t.name||_h}catch{return _h}}function Qv(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 Xv(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const Sc={},Zv={};function bs(t,e){Sc[t]=Sc[t]||[],Sc[t].push(e)}function vs(t,e){if(!Zv[t]){Zv[t]=!0;try{e()}catch(n){Mt&&Tt.error(`Error while instrumenting ${t}`,n)}}}function rr(t,e){const n=t&&Sc[t];if(n)for(const i of n)try{i(e)}catch(a){Mt&&Tt.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${pi(i)}
Error:`,a)}}let Ah=null;function IM(t){const e="error";bs(e,t),vs(e,BM)}function BM(){Ah=re.onerror,re.onerror=function(t,e,n,i,a){return rr("error",{column:i,error:a,line:n,msg:t,url:e}),Ah?Ah.apply(this,arguments):!1},re.onerror.__SENTRY_INSTRUMENTED__=!0}let Oh=null;function UM(t){const e="unhandledrejection";bs(e,t),vs(e,PM)}function PM(){Oh=re.onunhandledrejection,re.onunhandledrejection=function(t){return rr("unhandledrejection",t),Oh?Oh.apply(this,arguments):!0},re.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Jv=Object.prototype.toString;function Rh(t){switch(Jv.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return mi(t,Error)}}function ma(t,e){return Jv.call(t)===`[object ${e}]`}function Wv(t){return ma(t,"ErrorEvent")}function tx(t){return ma(t,"DOMError")}function qM(t){return ma(t,"DOMException")}function Lr(t){return ma(t,"String")}function kh(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function wc(t){return t===null||kh(t)||typeof t!="object"&&typeof t!="function"}function sl(t){return ma(t,"Object")}function Ec(t){return typeof Event<"u"&&mi(t,Event)}function FM(t){return typeof Element<"u"&&mi(t,Element)}function VM(t){return ma(t,"RegExp")}function al(t){return!!(t!=null&&t.then&&typeof t.then=="function")}function HM(t){return sl(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function mi(t,e){try{return t instanceof e}catch{return!1}}function ex(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function GM(t){return typeof Request<"u"&&mi(t,Request)}const Dh=re,YM=80;function nx(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||YM;for(;n&&l++<i&&(h=KM(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 KM(t,e){const n=t,i=[];if(!(n!=null&&n.tagName))return"";if(Dh.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 Nh(){try{return Dh.document.location.href}catch{return""}}function $M(t){if(!Dh.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"&&rx(a,i);try{t[e]=a}catch{Mt&&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{Mt&&Tt.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function rx(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,xs(t,"__sentry_original__",e)}catch{}}function Mh(t){return t.__sentry_original__}function ix(t){if(Rh(t))return{message:t.message,name:t.name,stack:t.stack,...ax(t)};if(Ec(t)){const e={type:t.type,target:sx(t.target),currentTarget:sx(t.currentTarget),...ax(t)};return typeof CustomEvent<"u"&&mi(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function sx(t){try{return FM(t)?nx(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function ax(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 QM(t){const e=Object.keys(ix(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}function Lh(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function ox(t,e){if(!Array.isArray(t))return"";const n=[];for(let i=0;i<t.length;i++){const a=t[i];try{ex(a)?n.push(Xv(a)):n.push(String(a))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function Tc(t,e,n=!1){return Lr(t)?VM(e)?e.test(t):Lr(e)?n?t===e:t.includes(e):!1:!1}function Cc(t,e=[],n=!1){return e.some(i=>Tc(t,i,n))}function XM(){const t=re;return t.crypto||t.msCrypto}let zh;function ZM(){return Math.random()*16}function jn(t=XM()){try{if(t!=null&&t.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return zh||(zh="10000000100040008000"+1e11),zh.replace(/[018]/g,e=>(e^(ZM()&15)>>e/4).toString(16))}function lx(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=lx(t);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function jh(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 ga(t,e){const n=lx(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 ux(t){if(JM(t))return!0;try{xs(t,"__sentry_captured__",!0)}catch{}return!1}function JM(t){try{return t.__sentry_captured__}catch{}}const cx=1e3;function ol(){return Date.now()/cx}function WM(){const{performance:t}=re;if(!(t!=null&&t.now)||!t.timeOrigin)return ol;const e=t.timeOrigin;return()=>(e+t.now())/cx}let fx;function zr(){return(fx??(fx=WM()))()}function tL(t){const e=zr(),n={sid:jn(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>nL(n)};return t&&ya(n,t),n}function ya(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:jn()),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 eL(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),ya(t,n)}function nL(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 ll(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]=ll(i[a],e[a],n-1));return i}function dx(){return jn()}function hx(){return jn().substring(16)}const Ih="_sentrySpan";function px(t,e){e?xs(t,Ih,e):delete t[Ih]}function mx(t){return t[Ih]}const rL=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:dx(),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,px(e,mx(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&&ya(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():sl(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,px(this,void 0),this._attachments=[],this.setPropagationContext({traceId:dx(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){var l;const i=typeof n=="number"?n:rL;if(i<=0)return this;const a={timestamp:ol(),...e,message:e.message?Lh(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:mx(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=ll(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)||jn();if(!this._client)return Mt&&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)||jn();if(!this._client)return Mt&&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)||jn();return this._client?(this._client.captureEvent(e,{...n,event_id:i},this),i):(Mt&&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 iL(){return ha("defaultCurrentScope",()=>new yr)}function sL(){return ha("defaultIsolationScope",()=>new yr)}class aL{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 al(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 ba(){const t=yc(),e=bc(t);return e.stack=e.stack||new aL(iL(),sL())}function oL(t){return ba().withScope(t)}function lL(t,e){const n=ba();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function gx(t){return ba().withScope(()=>t(ba().getIsolationScope()))}function uL(){return{withIsolationScope:gx,withScope:oL,withSetScope:lL,withSetIsolationScope:(t,e)=>gx(e),getCurrentScope:()=>ba().getScope(),getIsolationScope:()=>ba().getIsolationScope()}}function Bh(t){const e=bc(t);return e.acs?e.acs:uL()}function gi(){const t=yc();return Bh(t).getCurrentScope()}function va(){const t=yc();return Bh(t).getIsolationScope()}function cL(){return ha("globalScope",()=>new yr)}function fL(...t){const e=yc(),n=Bh(e);if(t.length===2){const[i,a]=t;return i?n.withSetScope(i,a):n.withScope(a)}return n.withScope(t[0])}function tn(){return gi().getClient()}function dL(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:a}=e,l={trace_id:n,span_id:a||hx()};return i&&(l.parent_span_id=i),l}const hL="sentry.source",pL="sentry.sample_rate",mL="sentry.previous_trace_sample_rate",gL="sentry.op",yL="sentry.origin",yx="sentry.profile_id",bx="sentry.exclusive_time",bL=0,vL=1,xL="_sentryScope",SL="_sentryIsolationScope";function wL(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}function vx(t){const e=t;return{scope:e[xL],isolationScope:wL(e[SL])}}const EL="sentry-",TL=/^sentry-/;function CL(t){const e=_L(t);if(!e)return;const n=Object.entries(e).reduce((i,[a,l])=>{if(a.match(TL)){const u=a.slice(EL.length);i[u]=l}return i},{});if(Object.keys(n).length>0)return n}function _L(t){if(!(!t||!Lr(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const i=xx(n);return Object.entries(i).forEach(([a,l])=>{e[a]=l}),e},{}):xx(t)}function xx(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 AL=/^o(\d+)\./,OL=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function RL(t){return t==="http"||t==="https"}function ul(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 kL(t){const e=OL.exec(t);if(!e){pa(()=>{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 Sx({host:l,pass:a,path:d,projectId:h,port:u,protocol:n,publicKey:i})}function Sx(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function DL(t){if(!Mt)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+$/)?RL(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 NL(t){const e=t.match(AL);return e==null?void 0:e[1]}function ML(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let i;return e.orgId?i=String(e.orgId):n&&(i=NL(n)),i}function LL(t){const e=typeof t=="string"?kL(t):Sx(t);if(!(!e||!DL(e)))return e}function zL(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 wx=1;let Ex=!1;function jL(t){const{spanId:e,traceId:n,isRemote:i}=t.spanContext(),a=i?e:Uh(t).parent_span_id,l=vx(t).scope,u=i?(l==null?void 0:l.getPropagationContext().propagationSpanId)||hx():e;return{parent_span_id:a,span_id:u,trace_id:n}}function IL(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===wx,attributes:l,...a}))}function Tx(t){return typeof t=="number"?Cx(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Cx(t.getTime()):zr()}function Cx(t){return t>9999999999?t/1e3:t}function Uh(t){var i;if(UL(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(BL(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:Tx(l),timestamp:Tx(f)||void 0,status:qL(d),op:a[gL],origin:a[yL],links:IL(h)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function BL(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function UL(t){return typeof t.getSpanJSON=="function"}function PL(t){const{traceFlags:e}=t.spanContext();return e===wx}function qL(t){if(!(!t||t.code===bL))return t.code===vL?"ok":t.message||"internal_error"}const FL="_sentryRootSpan";function _x(t){return t[FL]||t}function Ax(){Ex||(pa(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Ex=!0)}function VL(t){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=(n=tn())==null?void 0:n.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function Ox(t){Tt.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Rx(t,e){if(!(e!=null&&e.length)||!t.description)return!1;for(const n of e){if(GL(n)){if(Tc(t.description,n))return Mt&&Ox(t),!0;continue}if(!n.name&&!n.op)continue;const i=n.name?Tc(t.description,n.name):!0,a=n.op?t.op&&Tc(t.op,n.op):!0;if(i&&a)return Mt&&Ox(t),!0}return!1}function HL(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 GL(t){return typeof t=="string"||t instanceof RegExp}const Ph="production",YL="_frozenDsc";function kx(t,e){const n=e.getOptions(),{publicKey:i}=e.getDsn()||{},a={environment:n.environment||Ph,release:n.release,public_key:i,trace_id:t,org_id:ML(e)};return e.emit("createDsc",a),a}function KL(t,e){const n=e.getPropagationContext();return n.dsc||kx(n.traceId,t)}function $L(t){var S;const e=tn();if(!e)return{};const n=_x(t),i=Uh(n),a=i.data,l=n.spanContext().traceState,u=(l==null?void 0:l.get("sentry.sample_rate"))??a[pL]??a[mL];function f(w){return(typeof u=="number"||typeof u=="string")&&(w.sample_rate=`${u}`),w}const d=n[YL];if(d)return f(d);const h=l==null?void 0:l.get("sentry.dsc"),m=h&&CL(h);if(m)return f(m);const y=kx(t.spanContext().traceId,e),b=a[hL],v=i.description;return b!=="url"&&v&&(y.transaction=v),VL()&&(y.sampled=String(PL(n)),y.sample_rand=(l==null?void 0:l.get("sentry.sample_rand"))??((S=vx(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 qh("",t,e,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function Dx(t,e=3,n=100*1024){const i=jr(t,e);return JL(i)>n?Dx(t,e-1,n):i}function qh(t,e,n=1/0,i=1/0,a=WL()){const[l,u]=a;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const f=QL(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 qh("",v,d-1,i,a)}catch{}const m=Array.isArray(e)?[]:{};let y=0;const b=ix(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]=qh(v,S,d-1,i,a),y++}return u(e),m}function QL(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(ex(e))return Xv(e);if(HM(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=XL(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function XL(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function ZL(t){return~-encodeURI(t).split(/%..|./).length}function JL(t){return ZL(JSON.stringify(t))}function WL(){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 xa(t,e=[]){return[t,e]}function t4(t,e){const[n,i]=t;return[n,[...i,e]]}function Nx(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 Fh(t){const e=bc(re);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function e4(t){const[e,n]=t;let i=JSON.stringify(e);function a(l){typeof i=="string"?i=typeof l=="string"?i+l:[Fh(i),l]:i.push(typeof l=="string"?Fh(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:n4(i)}function n4(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 r4(t){const e=typeof t.data=="string"?Fh(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const i4={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 Mx(t){return i4[t]}function Lx(t){if(!(t!=null&&t.sdk))return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function s4(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:ul(i)},...a&&{trace:a}}}function a4(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 o4(t,e,n,i){const a=Lx(n),l={sent_at:new Date().toISOString(),...a&&{sdk:a},...!!i&&e&&{dsn:ul(e)}},u="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return xa(l,[u])}function l4(t,e,n,i){const a=Lx(n),l=t.type&&t.type!=="replay_event"?t.type:"event";a4(t,n==null?void 0:n.sdk);const u=s4(t,a,i,e);return delete t.sdkProcessingMetadata,xa(u,[[{type:l},t]])}const Vh=0,zx=1,jx=2;function _c(t){return new cl(e=>{e(t)})}function Hh(t){return new cl((e,n)=>{n(t)})}class cl{constructor(e){this._state=Vh,this._handlers=[],this._runExecutor(e)}then(e,n){return new cl((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 cl((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===Vh)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===zx&&n[1](this._value),this._state===jx&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(l,u)=>{if(this._state===Vh){if(al(u)){u.then(i,a);return}this._state=l,this._value=u,this._executeHandlers()}},i=l=>{n(zx,l)},a=l=>{n(jx,l)};try{e(i,a)}catch(l){a(l)}}}function u4(t,e,n,i=0){try{const a=Gh(e,n,t,i);return al(a)?a:_c(a)}catch(a){return Hh(a)}}function Gh(t,e,n,i){const a=n[i];if(!t||!a)return t;const l=a({...t},e);return Mt&&l===null&&Tt.log(`Event processor "${a.id||"?"}" dropped event`),al(l)?l.then(u=>Gh(u,e,n,i+1)):Gh(l,e,n,i+1)}function c4(t,e){const{fingerprint:n,span:i,breadcrumbs:a,sdkProcessingMetadata:l}=e;f4(t,e),i&&p4(t,i),m4(t,n),d4(t,a),h4(t,l)}function Ix(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;Ac(t,"extra",n),Ac(t,"tags",i),Ac(t,"user",a),Ac(t,"contexts",l),t.sdkProcessingMetadata=ll(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 Ac(t,e,n){t[e]=ll(t[e],n,1)}function f4(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 d4(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function h4(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function p4(t,e){t.contexts={trace:jL(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:$L(e),...t.sdkProcessingMetadata};const n=_x(e),i=Uh(n).description;i&&!t.transaction&&t.type==="transaction"&&(t.transaction=i)}function m4(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 Ir,Bx,Ux,yi;function g4(t){const e=re._sentryDebugIds,n=re._debugIds;if(!e&&!n)return{};const i=e?Object.keys(e):[],a=n?Object.keys(n):[];if(yi&&i.length===Bx&&a.length===Ux)return yi;Bx=i.length,Ux=a.length,yi={},Ir||(Ir={});const l=(u,f)=>{for(const d of u){const h=f[d],m=Ir==null?void 0:Ir[d];if(m&&yi&&h)yi[m[0]]=h,Ir&&(Ir[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&&Ir){yi[S]=h,Ir[d]=[S,h];break}}}}};return e&&l(i,e),n&&l(a,n),yi}function y4(t,e,n,i,a,l){const{normalizeDepth:u=3,normalizeMaxBreadth:f=1e3}=t,d={...e,event_id:e.event_id||n.event_id||jn(),timestamp:e.timestamp||ol()},h=n.integrations||t.integrations.map(C=>C.name);b4(d,t),S4(d,h),a&&a.emit("applyFrameMetadata",e),e.type===void 0&&v4(d,t.stackParser);const m=E4(i,n.captureContext);n.mechanism&&ga(d,n.mechanism);const y=a?a.getEventProcessors():[],b=cL().getScopeData();if(l){const C=l.getScopeData();Ix(b,C)}if(m){const C=m.getScopeData();Ix(b,C)}const v=[...n.attachments||[],...b.attachments];v.length&&(n.attachments=v),c4(d,b);const S=[...y,...b.eventProcessors];return u4(S,d,n).then(C=>(C&&x4(C),typeof u=="number"&&u>0?w4(C,u,f):C))}function b4(t,e){var f,d;const{environment:n,release:i,dist:a,maxValueLength:l}=e;t.environment=t.environment||n||Ph,!t.release&&i&&(t.release=i),!t.dist&&a&&(t.dist=a);const u=t.request;u!=null&&u.url&&l&&(u.url=Lh(u.url,l)),l&&((d=(f=t.exception)==null?void 0:f.values)==null||d.forEach(h=>{h.value&&(h.value=Lh(h.value,l))}))}function v4(t,e){var i,a;const n=g4(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 x4(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 S4(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function w4(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 E4(t,e){if(!e)return t;const n=t?t.clone():new yr;return n.update(e),n}function T4(t){if(t)return C4(t)?{captureContext:t}:A4(t)?{captureContext:t}:t}function C4(t){return t instanceof yr||typeof t=="function"}const _4=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function A4(t){return Object.keys(t).some(e=>_4.includes(e))}function Oc(t,e){return gi().captureException(t,T4(e))}function Px(t,e){return gi().captureEvent(t,e)}function O4(t,e){va().setContext(t,e)}function qx(t){const e=va(),n=gi(),{userAgent:i}=re.navigator||{},a=tL({user:n.getUser()||e.getUser(),...i&&{userAgent:i},...t}),l=e.getSession();return(l==null?void 0:l.status)==="ok"&&ya(l,{status:"exited"}),Fx(),e.setSession(a),a}function Fx(){const t=va(),n=gi().getSession()||t.getSession();n&&eL(n),Vx(),t.setSession()}function Vx(){const t=va(),e=tn(),n=t.getSession();n&&e&&e.captureSession(n)}function Hx(t=!1){if(t){Fx();return}Vx()}const R4="7";function k4(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function D4(t){return`${k4(t)}${t.projectId}/envelope/`}function N4(t,e){const n={sentry_version:R4};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function M4(t,e,n){return e||`${D4(t)}?${N4(t,n)}`}const Gx=[];function L4(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 z4(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 L4(i)}function j4(t,e){const n={};return e.forEach(i=>{i&&Kx(t,i,n)}),n}function Yx(t,e){for(const n of e)n!=null&&n.afterAllSetup&&n.afterAllSetup(t)}function Kx(t,e,n){if(n[e.name]){Mt&&Tt.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!Gx.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),Gx.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)}Mt&&Tt.log(`Integration installed: ${e.name}`)}function V7(t){return t}function I4(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function B4(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=ul(i)),xa(a,[I4(t)])}function $x(t,e){const n=e??U4(t)??[];if(n.length===0)return;const i=t.getOptions(),a=B4(n,i._metadata,i.tunnel,t.getDsn());Qx().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(a)}function U4(t){return Qx().get(t)}function Qx(){return ha("clientToLogBufferMap",()=>new WeakMap)}function P4(t){return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:t}]}function q4(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=ul(i)),xa(a,[P4(t)])}function Xx(t,e){const n=e??F4(t)??[];if(n.length===0)return;const i=t.getOptions(),a=q4(n,i._metadata,i.tunnel,t.getDsn());Zx().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(a)}function F4(t){return Zx().get(t)}function Zx(){return ha("clientToMetricBufferMap",()=>new WeakMap)}const Yh=Symbol.for("SentryBufferFullError");function Kh(t=100){const e=new Set;function n(){return e.size<t}function i(u){e.delete(u)}function a(u){if(!n())return Hh(Yh);const f=u();return e.add(f),f.then(()=>i(f),()=>i(f)),f}function l(u){if(!e.size)return _c(!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 V4=60*1e3;function H4(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const i=Date.parse(`${t}`);return isNaN(i)?V4:i-e}function G4(t,e){return t[e]||t.all||0}function Y4(t,e,n=Date.now()){return G4(t,e)>n}function K4(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+H4(u,i):e===429&&(a.all=i+60*1e3);return a}const Jx=64;function $4(t,e,n=Kh(t.bufferSize||Jx)){let i={};const a=u=>n.drain(u);function l(u){const f=[];if(Nx(u,(y,b)=>{const v=Mx(b);Y4(i,v)?t.recordDroppedEvent("ratelimit_backoff",v):f.push(y)}),f.length===0)return Promise.resolve({});const d=xa(u[0],f),h=y=>{Nx(d,(b,v)=>{t.recordDroppedEvent(y,Mx(v))})},m=()=>e({body:e4(d)}).then(y=>(y.statusCode!==void 0&&(y.statusCode<200||y.statusCode>=300)&&Mt&&Tt.warn(`Sentry responded with status code ${y.statusCode} to sent event.`),i=K4(i,y),y),y=>{throw h("network_error"),Mt&&Tt.error("Encountered error running transport request:",y),y});return n.add(m).then(y=>y,y=>{if(y===Yh)return Mt&&Tt.error("Skipped sending event because buffer is full."),h("queue_overflow"),Promise.resolve({});throw y})}return{send:l,flush:a}}function Q4(t,e,n){const i=[{type:"client_report"},{timestamp:ol(),discarded_events:t}];return xa(e?{dsn:e}:{},[i])}function Wx(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 X4(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[yx],exclusive_time:u==null?void 0:u[bx],measurements:t.measurements,is_segment:!0}}function Z4(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&&{[yx]:t.profile_id},...t.exclusive_time&&{[bx]:t.exclusive_time}}}},measurements:t.measurements}}const tS="Not capturing exception because it's already been captured.",eS="Discarded session because of missing or non-string release",nS=Symbol.for("SentryInternalError"),rS=Symbol.for("SentryDoNotSendEventError"),J4=5e3;function Rc(t){return{message:t,[nS]:!0}}function $h(t){return{message:t,[rS]:!0}}function iS(t){return!!t&&typeof t=="object"&&nS in t}function sS(t){return!!t&&typeof t=="object"&&rS in t}function aS(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)},J4))}),t.on("flush",()=>{a(t)})}class W4{constructor(e){var i,a,l;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Kh(((i=e.transportOptions)==null?void 0:i.bufferSize)??Jx),e.dsn?this._dsn=LL(e.dsn):Mt&&Tt.warn("No DSN provided, client will not send events."),this._dsn){const u=M4(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&&aS(this,"afterCaptureLog","flushLogs",r5,$x),(this._options.enableMetrics??((l=this._options._experiments)==null?void 0:l.enableMetrics)??!0)&&aS(this,"afterCaptureMetric","flushMetrics",n5,Xx)}captureException(e,n,i){const a=jn();if(ux(e))return Mt&&Tt.log(tS),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:jn(),...i},u=kh(e)?e:String(e),f=wc(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=jn();if(n!=null&&n.originalException&&ux(n.originalException))return Mt&&Tt.log(tS),a;const l={event_id:a,...n},u=e.sdkProcessingMetadata||{},f=u.capturedSpanScope,d=u.capturedSpanIsolationScope,h=oS(e.type);return this._process(()=>this._captureEvent(e,l,f||i,d),h),l.event_id}captureSession(e){this.sendSession(e),ya(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];Kx(this,e,this._integrations),n||Yx(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let i=l4(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])i=t4(i,r4(a));this.sendEnvelope(i).then(a=>this.emit("afterSendEvent",e,a))}sendSession(e){const{release:n,environment:i=Ph}=this._options;if("aggregates"in e){const l=e.attrs||{};if(!l.release&&!n){Mt&&Tt.warn(eS);return}l.release=l.release||n,l.environment=l.environment||i,e.attrs=l}else{if(!e.release&&!n){Mt&&Tt.warn(eS);return}e.release=e.release||n,e.environment=e.environment||i}this.emit("beforeSendSession",e);const a=o4(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}`;Mt&&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 Mt&&Tt.error("Error while sending envelope:",n),{}}return Mt&&Tt.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=j4(this,e),Yx(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)&&(ya(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),y4(l,e,n,i,this,a).then(f=>{if(f===null)return f;this.emit("postprocessEvent",f,n),f.contexts={trace:dL(i),...f.contexts};const d=KL(this,i);return f.sdkProcessingMetadata={dynamicSamplingContext:d,...f.sdkProcessingMetadata},f})}_captureEvent(e,n={},i=gi(),a=va()){return Mt&&Qh(e)&&Tt.log(`Captured error event \`${Wx(e)[0]||"<unknown>"}\``),this._processEvent(e,n,i,a).then(l=>l.event_id,l=>{Mt&&(sS(l)?Tt.log(l.message):iS(l)?Tt.warn(l.message):Tt.warn(l))})}_processEvent(e,n,i,a){const l=this.getOptions(),{sampleRate:u}=l,f=lS(e),d=Qh(e),m=`before send for type \`${e.type||"error"}\``,y=typeof u>"u"?void 0:zL(u);if(d&&typeof y=="number"&&Math.random()>y)return this.recordDroppedEvent("sample_rate","error"),Hh($h(`Discarding event because it's not included in the random sample (sampling rate = ${u})`));const b=oS(e.type);return this._prepareEvent(e,n,i,a).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",b),$h("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return v;const w=e5(this,l,v,n);return t5(w,m)}).then(v=>{var C;if(v===null){if(this.recordDroppedEvent("before_send",b),f){const M=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",M)}throw $h(`${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,M=v.spans?v.spans.length:0,R=_-M;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 sS(v)||iS(v)?v:(this.captureException(v,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:v}),Rc(`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===Yh&&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(){Mt&&Tt.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){Mt&&Tt.log("No outcomes to send");return}if(!this._dsn){Mt&&Tt.log("No dsn provided, will not send outcomes");return}Mt&&Tt.log("Sending outcomes:",e);const n=Q4(e,this._options.tunnel&&ul(this._dsn));this.sendEnvelope(n)}}function oS(t){return t==="replay_event"?"replay":t||"error"}function t5(t,e){const n=`${e} must return \`null\` or a valid event.`;if(al(t))return t.then(i=>{if(!sl(i)&&i!==null)throw Rc(n);return i},i=>{throw Rc(`${e} rejected with ${i}`)});if(!sl(t)&&t!==null)throw Rc(n);return t}function e5(t,e,n,i){const{beforeSend:a,beforeSendTransaction:l,beforeSendSpan:u,ignoreSpans:f}=e;let d=n;if(Qh(d)&&a)return a(d,i);if(lS(d)){if(u||f){const h=X4(d);if(f!=null&&f.length&&Rx(h,f))return null;if(u){const m=u(h);m?d=ll(n,Z4(m)):Ax()}if(d.spans){const m=[],y=d.spans;for(const v of y){if(f!=null&&f.length&&Rx(v,f)){HL(y,v);continue}if(u){const S=u(v);S?m.push(S):(Ax(),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 Qh(t){return t.type===void 0}function lS(t){return t.type==="transaction"}function n5(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+uS(t.attributes)}function r5(t){let e=0;return t.message&&(e+=t.message.length*2),e+uS(t.attributes)}function uS(t){if(!t)return 0;let e=0;return Object.values(t).forEach(n=>{Array.isArray(n)?e+=n.length*cS(n[0]):wc(n)?e+=cS(n):e+=100}),e}function cS(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function i5(t,e){e.debug===!0&&(Mt?Tt.enable():pa(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),gi().update(e.initialScope);const i=new t(e);return s5(i),i.init(),i}function s5(t){gi().setClient(t)}function Xh(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 a5(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 fS(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 o5=100;function ws(t,e){const n=tn(),i=va();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:l=o5}=n.getOptions();if(l<=0)return;const f={timestamp:ol(),...t},d=a?pa(()=>a(f,e)):f;d!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",d,e),i.addBreadcrumb(d,l))}let dS;const l5="FunctionToString",hS=new WeakMap,u5=(()=>({name:l5,setupOnce(){dS=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Mh(this),n=hS.has(tn())&&e!==void 0?e:this;return dS.apply(n,t)}}catch{}},setup(t){hS.set(t,!0)}})),c5=[/^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$/],f5="EventFilters",d5=(t={})=>{let e;return{name:f5,setup(n){const i=n.getOptions();e=pS(t,i)},processEvent(n,i,a){if(!e){const l=a.getOptions();e=pS(t,l)}return p5(n,e)?null:n}}},h5=((t={})=>({...d5(t),name:"InboundFilters"}));function pS(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:c5],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function p5(t,e){if(t.type){if(t.type==="transaction"&&g5(t,e.ignoreTransactions))return Mt&&Tt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${Ss(t)}`),!0}else{if(m5(t,e.ignoreErrors))return Mt&&Tt.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${Ss(t)}`),!0;if(x5(t))return Mt&&Tt.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${Ss(t)}`),!0;if(y5(t,e.denyUrls))return Mt&&Tt.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${Ss(t)}.
Url: ${kc(t)}`),!0;if(!b5(t,e.allowUrls))return Mt&&Tt.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${Ss(t)}.
Url: ${kc(t)}`),!0}return!1}function m5(t,e){return e!=null&&e.length?Wx(t).some(n=>Cc(n,e)):!1}function g5(t,e){if(!(e!=null&&e.length))return!1;const n=t.transaction;return n?Cc(n,e):!1}function y5(t,e){if(!(e!=null&&e.length))return!1;const n=kc(t);return n?Cc(n,e):!1}function b5(t,e){if(!(e!=null&&e.length))return!0;const n=kc(t);return n?Cc(n,e):!0}function v5(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 kc(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?v5(a):null}catch{return Mt&&Tt.error(`Cannot extract url for event ${Ss(t)}`),null}}function x5(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 S5(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=Zh(t,e,i,l.originalException,n,a.exception.values,u,0))}function Zh(t,e,n,i,a,l,u,f){if(l.length>=n+1)return l;let d=[...l];if(mi(i[a],Error)){mS(u,f);const h=t(e,i[a]),m=d.length;gS(h,a,m,f),d=Zh(t,e,n,i[a],a,[h,...d],h,m)}return Array.isArray(i.errors)&&i.errors.forEach((h,m)=>{if(mi(h,Error)){mS(u,f);const y=t(e,h),b=d.length;gS(y,`errors[${m}]`,b,f),d=Zh(t,e,n,h,a,[y,...d],y,b)}}),d}function mS(t,e){t.mechanism={handled:!0,type:"auto.core.linked_errors",...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function gS(t,e,n,i){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:i}}function w5(t){const e="console";bs(e,t),vs(e,E5)}function E5(){"console"in re&&OM.forEach(function(t){t in re.console&&Tn(re.console,t,function(e){return vc[t]=e,function(...n){rr("console",{args:n,level:t});const a=vc[t];a==null||a.apply(re.console,n)}})})}function T5(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const C5="Dedupe",_5=(()=>{let t;return{name:C5,processEvent(e){if(e.type)return e;try{if(A5(e,t))return Mt&&Tt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}});function A5(t,e){return e?!!(O5(t,e)||R5(t,e)):!1}function O5(t,e){const n=t.message,i=e.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!bS(t,e)||!yS(t,e))}function R5(t,e){const n=vS(e),i=vS(t);return!(!n||!i||n.type!==i.type||n.value!==i.value||!bS(t,e)||!yS(t,e))}function yS(t,e){let n=Qv(t),i=Qv(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 bS(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 vS(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function xS(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const fl=re;function k5(){return"history"in fl&&!!fl.history}function D5(){if(!("fetch"in fl))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Jh(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function N5(){var n;if(typeof EdgeRuntime=="string")return!0;if(!D5())return!1;if(Jh(fl.fetch))return!0;let t=!1;const e=fl.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=Jh(i.contentWindow.fetch)),e.head.removeChild(i)}catch(i){Mt&&Tt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return t}function M5(t,e){const n="fetch";bs(n,t),vs(n,()=>L5(void 0,e))}function L5(t,e=!1){e&&!N5()||Tn(re,"fetch",function(n){return function(...i){const a=new Error,{method:l,url:u}=z5(i),f={args:i,fetchData:{method:l,url:u},startTimestamp:zr()*1e3,virtualError:a,headers:j5(i)};return rr("fetch",{...f}),n.apply(re,i).then(async d=>(rr("fetch",{...f,endTimestamp:zr()*1e3,response:d}),d),d=>{if(rr("fetch",{...f,endTimestamp:zr()*1e3,error:d}),Rh(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 Wh(t,e){return!!t&&typeof t=="object"&&!!t[e]}function SS(t){return typeof t=="string"?t:t?Wh(t,"url")?t.url:t.toString?t.toString():"":""}function z5(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,i]=t;return{url:SS(n),method:Wh(i,"method")?String(i.method).toUpperCase():"GET"}}const e=t[0];return{url:SS(e),method:Wh(e,"method")?String(e.method).toUpperCase():"GET"}}function j5(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(GM(e))return new Headers(e.headers)}catch{}}function I5(){return"npm"}const Te=re;let tp=0;function wS(){return tp>0}function B5(){tp++,setTimeout(()=>{tp--})}function Sa(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(Mh(t))return t}catch{return t}const i=function(...a){try{const l=a.map(u=>Sa(u,e));return t.apply(this,l)}catch(l){throw B5(),fL(u=>{u.addEventProcessor(f=>(e.mechanism&&(jh(f,void 0),ga(f,e.mechanism)),f.extra={...f.extra,arguments:a},f)),Oc(l)}),l}};try{for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i[a]=t[a])}catch{}rx(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 U5(){const t=Nh(),{referrer:e}=Te.document||{},{userAgent:n}=Te.navigator||{},i={...e&&{Referer:e},...n&&{"User-Agent":n}};return{url:t,headers:i}}function ep(t,e){const n=rp(t,e),i={type:H5(e),value:G5(e)};return n.length&&(i.stacktrace={frames:n}),i.type===void 0&&i.value===""&&(i.value="Unrecoverable error caught"),i}function P5(t,e,n,i){const a=tn(),l=a==null?void 0:a.getOptions().normalizeDepth,u=X5(e),f={__serialized__:Dx(e,l)};if(u)return{exception:{values:[ep(t,u)]},extra:f};const d={exception:{values:[{type:Ec(e)?e.constructor.name:i?"UnhandledRejection":"Error",value:$5(e,{isUnhandledRejection:i})}]},extra:f};if(n){const h=rp(t,n);h.length&&(d.exception.values[0].stacktrace={frames:h})}return d}function np(t,e){return{exception:{values:[ep(t,e)]}}}function rp(t,e){const n=e.stacktrace||e.stack||"",i=F5(e),a=V5(e);try{return t(n,i,a)}catch{}return[]}const q5=/Minified React error #\d+;/i;function F5(t){return t&&q5.test(t.message)?1:0}function V5(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function ES(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function H5(t){const e=t==null?void 0:t.name;return!e&&ES(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function G5(t){const e=t==null?void 0:t.message;return ES(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 Y5(t,e,n,i){const a=(n==null?void 0:n.syntheticException)||void 0,l=ip(t,e,a,i);return ga(l),l.level="error",n!=null&&n.event_id&&(l.event_id=n.event_id),_c(l)}function K5(t,e,n="info",i,a){const l=(i==null?void 0:i.syntheticException)||void 0,u=sp(t,e,l,a);return u.level=n,i!=null&&i.event_id&&(u.event_id=i.event_id),_c(u)}function ip(t,e,n,i,a){let l;if(Wv(e)&&e.error)return np(t,e.error);if(tx(e)||qM(e)){const u=e;if("stack"in e)l=np(t,e);else{const f=u.name||(tx(u)?"DOMError":"DOMException"),d=u.message?`${f}: ${u.message}`:f;l=sp(t,d,n,i),jh(l,d)}return"code"in u&&(l.tags={...l.tags,"DOMException.code":`${u.code}`}),l}return Rh(e)?np(t,e):sl(e)||Ec(e)?(l=P5(t,e,n,a),ga(l,{synthetic:!0}),l):(l=sp(t,e,n,i),jh(l,`${e}`),ga(l,{synthetic:!0}),l)}function sp(t,e,n,i){const a={};if(i&&n){const l=rp(t,n);l.length&&(a.exception={values:[{value:e,stacktrace:{frames:l}}]}),ga(a,{synthetic:!0})}if(kh(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 $5(t,{isUnhandledRejection:e}){const n=QM(t),i=e?"promise rejection":"exception";return Wv(t)?`Event \`ErrorEvent\` captured as ${i} with message \`${t.message}\``:Ec(t)?`Event \`${Q5(t)}\` (type=${t.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}function Q5(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function X5(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}class Z5 extends W4{constructor(e){var m;const n=J5(e),i=Te.SENTRY_SDK_SOURCE||I5();fS(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;Te.document&&(l||u||h)&&Te.document.addEventListener("visibilitychange",()=>{Te.document.visibilityState==="hidden"&&(l&&this._flushOutcomes(),u&&$x(this),h&&Xx(this))}),a&&this.on("beforeSendSession",a5)}eventFromException(e,n){return Y5(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",i){return K5(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 J5(t){var e;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(e=Te.SENTRY_RELEASE)==null?void 0:e.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const W5=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,en=re,tz=1e3;let TS,ap,op;function ez(t){bs("dom",t),vs("dom",nz)}function nz(){if(!en.document)return;const t=rr.bind(null,"dom"),e=CS(t,!0);en.document.addEventListener("click",e,!1),en.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{var l,u;const a=(l=en[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=CS(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 rz(t){if(t.type!==ap)return!1;try{if(!t.target||t.target._sentryId!==op)return!1}catch{}return!0}function iz(t,e){return t!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function CS(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const i=sz(n);if(iz(n.type,i))return;xs(n,"_sentryCaptured",!0),i&&!i._sentryId&&xs(i,"_sentryId",jn());const a=n.type==="keypress"?"input":n.type;rz(n)||(t({event:n,name:a,global:e}),ap=n.type,op=i?i._sentryId:void 0),clearTimeout(TS),TS=en.setTimeout(()=>{op=void 0,ap=void 0},tz)}}function sz(t){try{return t.target}catch{return null}}let Dc;function _S(t){const e="history";bs(e,t),vs(e,az)}function az(){if(en.addEventListener("popstate",()=>{const e=en.location.href,n=Dc;if(Dc=e,n===e)return;rr("history",{from:n,to:e})}),!k5())return;function t(e){return function(...n){const i=n.length>2?n[2]:void 0;if(i){const a=Dc,l=oz(String(i));if(Dc=l,a===l)return e.apply(this,n);rr("history",{from:a,to:l})}return e.apply(this,n)}}Tn(en.history,"pushState",t),Tn(en.history,"replaceState",t)}function oz(t){try{return new URL(t,en.location.origin).toString()}catch{return t}}const Nc={};function lz(t){const e=Nc[t];if(e)return e;let n=en[t];if(Jh(n))return Nc[t]=n.bind(en);const i=en.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){W5&&Tt.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,a)}return n&&(Nc[t]=n.bind(en))}function uz(t){Nc[t]=void 0}const dl="__sentry_xhr_v3__";function cz(t){bs("xhr",t),vs("xhr",fz)}function fz(){if(!en.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=dz(i[1]);if(!u||!f)return e.apply(n,i);n[dl]={method:u,url:f,request_headers:{}},u==="POST"&&f.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const d=()=>{const h=n[dl];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const m={endTimestamp:zr()*1e3,startTimestamp:l,xhr:n,virtualError:a};rr("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[dl];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[dl];if(!a)return e.apply(n,i);i[0]!==void 0&&(a.body=i[0]);const l={startTimestamp:zr()*1e3,xhr:n};return rr("xhr",l),e.apply(n,i)}})}function dz(t){if(Lr(t))return t;try{return t.toString()}catch{}}const hz=40;function pz(t,e=lz("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 uz("fetch"),d}finally{n-=u,i--}}return $4(t,a,Kh(t.bufferSize||hz))}const Mc=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,mz=30,gz=50;function lp(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 yz=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,bz=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vz=/\((\S*)(?::(\d+))(?::(\d+))\)/,xz=/at (.+?) ?\(data:(.+?),/,Sz=[mz,t=>{const e=t.match(xz);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=yz.exec(t);if(n){const[,a,l,u]=n;return lp(a,ys,+l,+u)}const i=bz.exec(t);if(i){if(i[2]&&i[2].indexOf("eval")===0){const f=vz.exec(i[2]);f&&(i[2]=f[1],i[3]=f[2],i[4]=f[3])}const[l,u]=AS(i[1]||ys,i[2]);return lp(u,l,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}}],wz=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ez=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Tz=$v(...[Sz,[gz,t=>{const e=wz.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const l=Ez.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]=AS(a,i),lp(i,a,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]]),AS=(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]},Lc=1024,Cz="Breadcrumbs",_z=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Cz,setup(n){e.console&&w5(Rz(n)),e.dom&&ez(Oz(n,e.dom)),e.xhr&&cz(kz(n)),e.fetch&&M5(Dz(n)),e.history&&_S(Nz(n)),e.sentry&&n.on("beforeSendEvent",Az(n))}}});function Az(t){return function(n){tn()===t&&ws({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ss(n)},{event:n})}}function Oz(t,e){return function(i){if(tn()!==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>Lc&&(Mc&&Tt.warn(`\`dom.maxStringLength\` cannot exceed ${Lc}, but a value of ${f} was configured. Sentry will use ${Lc} instead.`),f=Lc),typeof u=="string"&&(u=[u]);try{const h=i.event,m=Mz(h)?h.target:h;a=nx(m,{keyAttrs:u,maxStringLength:f}),l=$M(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 Rz(t){return function(n){if(tn()!==t)return;const i={category:"console",data:{arguments:n.args,logger:"console"},level:T5(n.level),message:ox(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)i.message=`Assertion failed: ${ox(n.args.slice(1)," ")||"console.assert"}`,i.data.arguments=n.args.slice(1);else return;ws(i,{input:n.args,level:n.level})}}function kz(t){return function(n){if(tn()!==t)return;const{startTimestamp:i,endTimestamp:a}=n,l=n.xhr[dl];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:xS(d)};t.emit("beforeOutgoingRequestBreadcrumb",b,y),ws(b,y)}}function Dz(t){return function(n){if(tn()!==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:xS(u.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",d,f),ws(d,f)}}}function Nz(t){return function(n){if(tn()!==t)return;let i=n.from,a=n.to;const l=Xh(Te.location.href);let u=i?Xh(i):void 0;const f=Xh(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 Mz(t){return!!t&&!!t.target}const Lz=["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"],zz="BrowserApiErrors",jz=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:zz,setupOnce(){e.setTimeout&&Tn(Te,"setTimeout",OS),e.setInterval&&Tn(Te,"setInterval",OS),e.requestAnimationFrame&&Tn(Te,"requestAnimationFrame",Iz),e.XMLHttpRequest&&"XMLHttpRequest"in Te&&Tn(XMLHttpRequest.prototype,"send",Bz);const n=e.eventTarget;n&&(Array.isArray(n)?n:Lz).forEach(a=>Uz(a,e))}}});function OS(t){return function(...e){const n=e[0];return e[0]=Sa(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${pi(t)}`}}),t.apply(this,e)}}function Iz(t){return function(e){return t.apply(this,[Sa(e,{mechanism:{data:{handler:pi(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Bz(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=Mh(l);return f&&(u.mechanism.data.handler=pi(f)),Sa(l,u)})}),t.apply(this,e)}}function Uz(t,e){var a,l;const i=(a=Te[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{Pz(d)&&(d.handleEvent=Sa(d.handleEvent,{mechanism:{data:{handler:pi(d),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&qz(this,f,d),u.apply(this,[f,Sa(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 Pz(t){return typeof t.handleEvent=="function"}function qz(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const Fz=()=>({name:"BrowserSession",setupOnce(){if(typeof Te.document>"u"){Mc&&Tt.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}qx({ignoreDuration:!0}),Hx(),_S(({from:t,to:e})=>{t!==void 0&&t!==e&&(qx({ignoreDuration:!0}),Hx())})}}),Vz="GlobalHandlers",Hz=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Vz,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(Gz(n),RS("onerror")),e.onunhandledrejection&&(Yz(n),RS("onunhandledrejection"))}}});function Gz(t){IM(e=>{const{stackParser:n,attachStacktrace:i}=kS();if(tn()!==t||wS())return;const{msg:a,url:l,line:u,column:f,error:d}=e,h=Qz(ip(n,d||a,void 0,i,!1),l,u,f);h.level="error",Px(h,{originalException:d,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Yz(t){UM(e=>{const{stackParser:n,attachStacktrace:i}=kS();if(tn()!==t||wS())return;const a=Kz(e),l=wc(a)?$z(a):ip(n,a,void 0,i,!0);l.level="error",Px(l,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Kz(t){if(wc(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 $z(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Qz(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=Xz(e)??Nh();return d.length===0&&d.push({colno:h,filename:y,function:ys,in_app:!0,lineno:m}),t}function RS(t){Mc&&Tt.log(`Global Handler attached: ${t}`)}function kS(){const t=tn();return(t==null?void 0:t.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Xz(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 Zz=()=>({name:"HttpContext",preprocessEvent(t){var i;if(!Te.navigator&&!Te.location&&!Te.document)return;const e=U5(),n={...e.headers,...(i=t.request)==null?void 0:i.headers};t.request={...e,...t.request,headers:n}}}),Jz="cause",Wz=5,tj="LinkedErrors",ej=((t={})=>{const e=t.limit||Wz,n=t.key||Jz;return{name:tj,preprocessEvent(i,a,l){const u=l.getOptions();S5(ep,u.stackParser,n,e,i,a)}}});function nj(){return rj()?(Mc&&pa(()=>{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 rj(){var l;if(typeof Te.window>"u")return!1;const t=Te;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=Nh(),i=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Te===Te.top&&i.some(u=>n.startsWith(`${u}://`)))}function ij(t){return[h5(),u5(),jz(),_z(),Hz(),ej(),_5(),Zz(),Fz()]}function sj(t={}){const e=!t.skipBrowserExtensionCheck&&nj();let n=t.defaultIntegrations==null?ij():t.defaultIntegrations;const i={...t,enabled:e?!1:t.enabled,stackParser:zM(t.stackParser||Tz),integrations:z4({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||pz};return i5(Z5,i)}function aj(t){const e={...t};return fS(e,"react"),O4("react",{version:I.version}),sj(e)}const oj=({children:t})=>{const{reset:e}=Hb();return L.jsx(_M,{onReset:e,fallback:L.jsx(L.Fragment,{}),onError:n=>{Oc(n,{tags:{embed:!0}})},children:t})},hl={APP_URL:"https://fe.chatbot.bezvabot.cz",BASE_URL:"https://be.chatbot.bezvabot.cz"},Es=ge.create({baseURL:hl.BASE_URL,withCredentials:!0});class lj extends Yb{constructor(n){super(n);ne(this,"axiosInstance",Es)}request(n){return jv(this.config,n,this.axiosInstance)}}const bi=new wM({BASE:hl.BASE_URL,WITH_CREDENTIALS:!0},lj),DS=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},uj=(t=>t?DS(t):DS),cj=t=>t;function fj(t,e=cj){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 NS=t=>{const e=uj(t),n=i=>fj(e,i);return Object.assign(n,e),n},MS=(t=>t?NS(t):NS);function LS(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 up=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(i){return up(i)(n)},catch(i){return this}}}catch(n){return{then(i){return this},catch(i){return up(i)(n)}}}},pl=MS(((t,e)=>(n,i,a)=>{let l={storage:LS(()=>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(M=>{var R;return M((R=i())!=null?R:b)});const _=((C=l.onRehydrateStorage)==null?void 0:C.call(l,(w=i())!=null?w:b))||void 0;return up(h.getItem.bind(h))(l.name).then(M=>{if(M)if(typeof M.version=="number"&&M.version!==l.version){if(l.migrate){const R=l.migrate(M.state,M.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,M.state];return[!1,void 0]}).then(M=>{var R;const[B,Y]=M;if(v=l.merge(Y,(R=i())!=null?R:b),n(v,!0),B)return m()}).then(()=>{_==null||_(v,void 0),v=i(),u=!0,d.forEach(M=>M(v))}).catch(M=>{_==null||_(void 0,M)})};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:LS(()=>localStorage),partialize:t=>{if(!t.data)return{setSession:t.setSession};const{...e}=t.data;return{data:e,setSession:t.setSession}}})),zS=MS((t,e)=>({data:void 0,actions:{setTenantCode:n=>t(()=>({tenantCode:n})),getTenantCode:()=>e().tenantCode}}));function zc(){const t=zS(n=>n.tenantCode),e=new URLSearchParams(window.location.search);return t||e.get("tenantCode")}function jS(){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 dj=()=>rc({mutationKey:["statsEventCreate"],mutationFn:async t=>bi.statistics.statisticsControllerCreate(t)}),ml=()=>{const t=zc(),{mutate:e}=dj(),{isDebugMode:n}=jS();return{fireEvent:(a,l={})=>{n||e({requestBody:{eventType:a,tenantCode:t,properties:{...l,source:window.location.href}}})}}},IS=t=>({role:nr.USER,messageBlocks:[{type:Sh.type.TEXT,content:{text:t},order:0}]}),BS=(t,e)=>{t.setQueryData(["chat"],n=>({...n,messages:[...(n==null?void 0:n.messages)??[],e]}))},US=(t,e)=>{t.setQueryData(["chat"],n=>({...n,messages:e}))},PS=(t,e)=>{e&&t.setQueryData(["chat"],e)},hj=()=>{const t=zc(),e=ua(),n=pl(l=>l.setSession),{isDebugMode:i}=jS(),{fireEvent:a}=ml();return rc({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")}})},qS=()=>{const{fireEvent:t}=ml(),e=I.useRef(!1),n=nc({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},pj=()=>{const t=ua();return rc({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 BS(t,IS(e.content)),t.setQueryData(["unused-message-templates"],(a=[])=>a.filter(l=>l.id!==e.messageTemplateId)),{previousData:n,previousTemplates:i}},onSuccess:e=>{US(t,e)},onError:(e,n,i)=>{if(PS(t,i==null?void 0:i.previousData),i!=null&&i.previousTemplates&&t.setQueryData(["unused-message-templates"],i.previousTemplates),e instanceof rl&&e.status===410){t.invalidateQueries({queryKey:["chat"]});return}Oc(e,{tags:{embed:!0}})}})},mj=()=>({...nc({queryKey:["unused-message-templates"],queryFn:async()=>bi.chatSessions.chatSessionsControllerGetUnusedMessageTemplates(),staleTime:6e4})}),gj=()=>{const t=ua();return rc({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 BS(t,IS(e.message)),{previousData:n}},onSuccess:e=>{US(t,e),t.invalidateQueries({queryKey:["chat"]})},onError:(e,n,i)=>{if(PS(t,i==null?void 0:i.previousData),e instanceof rl&&e.status===410){t.invalidateQueries({queryKey:["chat"]});return}Oc(e,{tags:{embed:!0}})}})},br=()=>{const t=zc(),{fireEvent:e}=ml();return{...nc({queryKey:["tenant",t],queryFn:async()=>{const i=await bi.tenants.tenantsControllerGetByTenantCode({tenantCode:t});return e("fe.tenant.loaded"),i},staleTime:1/0})}};function yj(){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 cp=null,fp=[];function FS(t){fp.push(t)}function VS(t){fp.forEach(e=>e(t)),fp=[]}const bj=({children:t})=>{const{mutateAsync:e}=hj(),n=pl(u=>{var f;return(f=u.data)==null?void 0:f.token}),{data:i,isLoading:a}=br(),{isLoading:l}=yj();return I.useEffect(()=>{const u=Es.interceptors.request.use(h=>{var y;const m=(y=pl.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,cp?new Promise((w,C)=>{FS(_=>{if(!_)return C(h);y.headers=y.headers||{},y.headers.Authorization=`Bearer ${_}`,w(Es(y))})}):(cp=(async()=>{var w;try{await e();const C=((w=pl.getState().data)==null?void 0:w.token)??null;VS(C)}catch(C){throw VS(null),C}finally{cp=null}})(),new Promise((w,C)=>{FS(_=>{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},vj=({tenantCode:t,children:e})=>{const n=zS(a=>a.actions.setTenantCode),i=zc();return I.useEffect(()=>{n(t)},[t,n]),i?e:null},xj=(t,e=!0)=>({...nc({queryKey:["product",t],queryFn:async()=>bi.products.productsControllerGetProductByDetailUrl(t),staleTime:1/0,enabled:!!t&&e})});function HS(){const{data:t}=br();return xj(t?{tenantId:t.id,detailUrl:window.location.href}:void 0,t==null?void 0:t.productEnabled)}function GS(t){return t<0?0:t>1?1:t}function Sj(){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:GS(e/a)}function YS({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)?GS(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 P=typeof window<"u"?window.localStorage.getItem(y):null,K=P?parseInt(P,10):NaN;return Number.isFinite(K)&&Date.now()-K<l}catch{return!1}},M=()=>{try{if(typeof window>"u")return null;const P=window.localStorage.getItem(b),K=P?parseInt(P,10):NaN;return Number.isFinite(K)?K:null}catch{return null}},R=()=>{const P=M();if(P!=null)return P;const K=Date.now();try{typeof window<"u"&&window.localStorage.setItem(b,String(K))}catch{}return K},B=()=>{try{typeof window<"u"&&(window.localStorage.setItem(y,String(Date.now())),window.localStorage.removeItem(b))}catch{}},Y=()=>{if(!(typeof n=="number"&&n>=0))return!1;const P=M();return P==null?!1:Date.now()-P>=n},z=()=>v==null?!1:Sj()>=v,F=()=>{!e||m.current||a!=null&&a.current||_()||!(Y()||z())||(m.current=!0,B(),S(),h.current())},N=()=>{if(!e||m.current||!(typeof n=="number"&&n>=0)||_())return;const P=R(),K=Math.max(0,n-(Date.now()-P));S(),d.current=setTimeout(()=>{F()},K)};return I.useEffect(()=>{if(m.current=!1,!e){C();return}return N(),F(),()=>S()},[e,t,n,l,v]),I.useEffect(()=>{if(typeof window>"u"||!e||v==null)return;let P=null;const K=()=>{P==null&&(P=window.requestAnimationFrame(()=>{P=null,F()}))};return window.addEventListener("scroll",K,{passive:!0}),window.addEventListener("resize",K),F(),()=>{P!=null&&window.cancelAnimationFrame(P),window.removeEventListener("scroll",K),window.removeEventListener("resize",K)}},[e,v,t,l,n]),I.useEffect(()=>{if(!f||typeof window>"u")return;const P=K=>{(K.key===y||K.key===b)&&(N(),F())};return window.addEventListener("storage",P),()=>window.removeEventListener("storage",P)},[e,t,n,l,v,f]),{blockForCooldown:w,clearSchedule:C,reschedule:N}}var In=(t=>(t.WELCOME_NOTIFICATION="WELCOME_NOTIFICATION",t.PRODUCT_DETAIL_NOTIFICATION="PRODUCT_DETAIL_NOTIFICATION",t.CHAT_OPENED="CHAT_OPENED",t.CHAT_CLOSED="CHAT_CLOSED",t))(In||{});const wj=1440*60*1e3,Ej="welcome_notification",Tj="product_notification",Cj=()=>{var _,M;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}=ml(),{data:h}=HS();YS({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:wj,storageKey:Ej,enabled:!(h!=null&&h.notificationSettings)}),YS({delayMs:(_=h==null?void 0:h.notificationSettings)==null?void 0:_.notificationDelayMs,scrollRatio:(M=h==null?void 0:h.notificationSettings)==null?void 0:M.notificationShowAfterScrollRatio,cancelRef:i,onFire:()=>{C("PRODUCT_DETAIL_NOTIFICATION");try{new Audio("/notification.mp3").play().catch(()=>{})}catch{}},coordinateAcrossTabs:!1,storageKey:Tj,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:Y}=R;f((Y?Y+" ":"")+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}},_j=(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},Aj=(t,e)=>({classGroupId:t,validator:e}),KS=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),jc="-",$S=[],Oj="arbitrary..",Rj=t=>{const e=Dj(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return kj(u);const f=u.split(jc),d=f[0]===""&&f.length>1?1:0;return QS(f,d,e)},getConflictingClassGroupIds:(u,f)=>{if(f){const d=i[u],h=n[u];return d?h?_j(h,d):d:h||$S}return n[u]||$S}}},QS=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const a=t[e],l=n.nextPart.get(a);if(l){const h=QS(t,e+1,l);if(h)return h}const u=n.validators;if(u===null)return;const f=e===0?t.join(jc):t.slice(e).join(jc),d=u.length;for(let h=0;h<d;h++){const m=u[h];if(m.validator(f))return m.classGroupId}},kj=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?Oj+i:void 0})(),Dj=t=>{const{theme:e,classGroups:n}=t;return Nj(n,e)},Nj=(t,e)=>{const n=KS();for(const i in t){const a=t[i];dp(a,n,i,e)}return n},dp=(t,e,n,i)=>{const a=t.length;for(let l=0;l<a;l++){const u=t[l];Mj(u,e,n,i)}},Mj=(t,e,n,i)=>{if(typeof t=="string"){Lj(t,e,n);return}if(typeof t=="function"){zj(t,e,n,i);return}jj(t,e,n,i)},Lj=(t,e,n)=>{const i=t===""?e:XS(e,t);i.classGroupId=n},zj=(t,e,n,i)=>{if(Ij(t)){dp(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(Aj(n,t))},jj=(t,e,n,i)=>{const a=Object.entries(t),l=a.length;for(let u=0;u<l;u++){const[f,d]=a[u];dp(d,XS(e,f),n,i)}},XS=(t,e)=>{let n=t;const i=e.split(jc),a=i.length;for(let l=0;l<a;l++){const u=i[l];let f=n.nextPart.get(u);f||(f=KS(),n.nextPart.set(u,f)),n=f}return n},Ij=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Bj=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)}}},hp="!",ZS=":",Uj=[],JS=(t,e,n,i,a)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:a}),Pj=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===ZS){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(hp)?(b=y.slice(0,-1),v=!0):y.startsWith(hp)&&(b=y.slice(1),v=!0);const S=h&&h>d?h-d:void 0;return JS(l,v,b,S)};if(e){const a=e+ZS,l=i;i=u=>u.startsWith(a)?l(u.slice(a.length)):JS(Uj,!1,u,void 0,!0)}if(n){const a=i;i=l=>n({className:l,parseClassName:a})}return i},qj=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}},Fj=t=>({cache:Bj(t.cacheSize),parseClassName:Pj(t),sortModifiers:qj(t),...Rj(t)}),Vj=/\s+/,Hj=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=e,u=[],f=t.trim().split(Vj);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 M=b.length===0?"":b.length===1?b[0]:l(b).join(":"),R=v?M+hp:M,B=R+_;if(u.indexOf(B)>-1)continue;u.push(B);const Y=a(_,C);for(let z=0;z<Y.length;++z){const F=Y[z];u.push(R+F)}d=m+(d.length>0?" "+d:d)}return d},Gj=(...t)=>{let e=0,n,i,a="";for(;e<t.length;)(n=t[e++])&&(i=WS(n))&&(a&&(a+=" "),a+=i);return a},WS=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=WS(t[i]))&&(n&&(n+=" "),n+=e);return n},Yj=(t,...e)=>{let n,i,a,l;const u=d=>{const h=e.reduce((m,y)=>y(m),t());return n=Fj(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=Hj(d,n);return a(d,m),m};return l=u,(...d)=>l(Gj(...d))},Kj=[],je=t=>{const e=n=>n[t]||Kj;return e.isThemeGetter=!0,e},tw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ew=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$j=/^\d+\/\d+$/,Qj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xj=/\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$/,Zj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wa=t=>$j.test(t),Bt=t=>!!t&&!Number.isNaN(Number(t)),vi=t=>!!t&&Number.isInteger(Number(t)),pp=t=>t.endsWith("%")&&Bt(t.slice(0,-1)),Br=t=>Qj.test(t),t3=()=>!0,e3=t=>Xj.test(t)&&!Zj.test(t),nw=()=>!1,n3=t=>Jj.test(t),r3=t=>Wj.test(t),i3=t=>!gt(t)&&!yt(t),s3=t=>Ea(t,ow,nw),gt=t=>tw.test(t),Ts=t=>Ea(t,lw,e3),mp=t=>Ea(t,c3,Bt),rw=t=>Ea(t,sw,nw),a3=t=>Ea(t,aw,r3),Ic=t=>Ea(t,uw,n3),yt=t=>ew.test(t),gl=t=>Ta(t,lw),o3=t=>Ta(t,f3),iw=t=>Ta(t,sw),l3=t=>Ta(t,ow),u3=t=>Ta(t,aw),Bc=t=>Ta(t,uw,!0),Ea=(t,e,n)=>{const i=tw.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},Ta=(t,e,n=!1)=>{const i=ew.exec(t);return i?i[1]?e(i[1]):n:!1},sw=t=>t==="position"||t==="percentage",aw=t=>t==="image"||t==="url",ow=t=>t==="length"||t==="size"||t==="bg-size",lw=t=>t==="length",c3=t=>t==="number",f3=t=>t==="family-name",uw=t=>t==="shadow",ye=Yj(()=>{const t=je("color"),e=je("font"),n=je("text"),i=je("font-weight"),a=je("tracking"),l=je("leading"),u=je("breakpoint"),f=je("container"),d=je("spacing"),h=je("radius"),m=je("shadow"),y=je("inset-shadow"),b=je("text-shadow"),v=je("drop-shadow"),S=je("blur"),w=je("perspective"),C=je("aspect"),_=je("ease"),M=je("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"],Y=()=>[...B(),yt,gt],z=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],N=()=>[yt,gt,d],P=()=>[wa,"full","auto",...N()],K=()=>[vi,"none","subgrid",yt,gt],et=()=>["auto",{span:["full",vi,yt,gt]},vi,yt,gt],at=()=>[vi,"auto",yt,gt],ft=()=>["auto","min","max","fr",yt,gt],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=()=>[wa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],q=()=>[t,yt,gt],vt=()=>[...B(),iw,rw,{position:[yt,gt]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],dt=()=>["auto","cover","contain",l3,s3,{size:[yt,gt]}],k=()=>[pp,gl,Ts],T=()=>["","none","full",h,yt,gt],nt=()=>["",Bt,gl,Ts],lt=()=>["solid","dashed","dotted","double"],ht=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pt=()=>[Bt,pp,iw,rw],Ot=()=>["","none",S,yt,gt],Jt=()=>["none",Bt,yt,gt],kt=()=>["none",Bt,yt,gt],pe=()=>[Bt,yt,gt],An=()=>[wa,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Br],breakpoint:[Br],color:[t3],container:[Br],"drop-shadow":[Br],ease:["in","out","in-out"],font:[i3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Br],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Br],shadow:[Br],spacing:["px",Bt],text:[Br],"text-shadow":[Br],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wa,gt,yt,C]}],container:["container"],columns:[{columns:[Bt,gt,yt,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:Y()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[vi,"auto",yt,gt]}],basis:[{basis:[wa,"full","auto",f,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Bt,wa,"auto","initial","none",gt]}],grow:[{grow:["",Bt,yt,gt]}],shrink:[{shrink:["",Bt,yt,gt]}],order:[{order:[vi,"first","last","none",yt,gt]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:et()}],"col-start":[{"col-start":at()}],"col-end":[{"col-end":at()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:et()}],"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,gl,Ts]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,yt,mp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pp,gt]}],"font-family":[{font:[o3,gt,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,yt,gt]}],"line-clamp":[{"line-clamp":[Bt,"none",yt,mp]}],leading:[{leading:[l,...N()]}],"list-image":[{"list-image":["none",yt,gt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",yt,gt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...lt(),"wavy"]}],"text-decoration-thickness":[{decoration:[Bt,"from-font","auto",yt,Ts]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[Bt,"auto",yt,gt]}],"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",yt,gt]}],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",yt,gt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:vt()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:dt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vi,yt,gt],radial:["",yt,gt],conic:[vi,yt,gt]},u3,a3]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:nt()}],"border-w-x":[{"border-x":nt()}],"border-w-y":[{"border-y":nt()}],"border-w-s":[{"border-s":nt()}],"border-w-e":[{"border-e":nt()}],"border-w-t":[{"border-t":nt()}],"border-w-r":[{"border-r":nt()}],"border-w-b":[{"border-b":nt()}],"border-w-l":[{"border-l":nt()}],"divide-x":[{"divide-x":nt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":nt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...lt(),"hidden","none"]}],"divide-style":[{divide:[...lt(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...lt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Bt,yt,gt]}],"outline-w":[{outline:["",Bt,gl,Ts]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",m,Bc,Ic]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",y,Bc,Ic]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:nt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[Bt,Ts]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":nt()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",b,Bc,Ic]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[Bt,yt,gt]}],"mix-blend":[{"mix-blend":[...ht(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ht()}],"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":pt()}],"mask-image-linear-to-pos":[{"mask-linear-to":pt()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":pt()}],"mask-image-t-to-pos":[{"mask-t-to":pt()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":pt()}],"mask-image-r-to-pos":[{"mask-r-to":pt()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":pt()}],"mask-image-b-to-pos":[{"mask-b-to":pt()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":pt()}],"mask-image-l-to-pos":[{"mask-l-to":pt()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":pt()}],"mask-image-x-to-pos":[{"mask-x-to":pt()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":pt()}],"mask-image-y-to-pos":[{"mask-y-to":pt()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[yt,gt]}],"mask-image-radial-from-pos":[{"mask-radial-from":pt()}],"mask-image-radial-to-pos":[{"mask-radial-to":pt()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"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":pt()}],"mask-image-conic-to-pos":[{"mask-conic-to":pt()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:vt()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:dt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",yt,gt]}],filter:[{filter:["","none",yt,gt]}],blur:[{blur:Ot()}],brightness:[{brightness:[Bt,yt,gt]}],contrast:[{contrast:[Bt,yt,gt]}],"drop-shadow":[{"drop-shadow":["","none",v,Bc,Ic]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",Bt,yt,gt]}],"hue-rotate":[{"hue-rotate":[Bt,yt,gt]}],invert:[{invert:["",Bt,yt,gt]}],saturate:[{saturate:[Bt,yt,gt]}],sepia:[{sepia:["",Bt,yt,gt]}],"backdrop-filter":[{"backdrop-filter":["","none",yt,gt]}],"backdrop-blur":[{"backdrop-blur":Ot()}],"backdrop-brightness":[{"backdrop-brightness":[Bt,yt,gt]}],"backdrop-contrast":[{"backdrop-contrast":[Bt,yt,gt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Bt,yt,gt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Bt,yt,gt]}],"backdrop-invert":[{"backdrop-invert":["",Bt,yt,gt]}],"backdrop-opacity":[{"backdrop-opacity":[Bt,yt,gt]}],"backdrop-saturate":[{"backdrop-saturate":[Bt,yt,gt]}],"backdrop-sepia":[{"backdrop-sepia":["",Bt,yt,gt]}],"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",yt,gt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Bt,"initial",yt,gt]}],ease:[{ease:["linear","initial",_,yt,gt]}],delay:[{delay:[Bt,yt,gt]}],animate:[{animate:["none",M,yt,gt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,yt,gt]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:Jt()}],"rotate-x":[{"rotate-x":Jt()}],"rotate-y":[{"rotate-y":Jt()}],"rotate-z":[{"rotate-z":Jt()}],scale:[{scale:kt()}],"scale-x":[{"scale-x":kt()}],"scale-y":[{"scale-y":kt()}],"scale-z":[{"scale-z":kt()}],"scale-3d":["scale-3d"],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[yt,gt,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:An()}],"translate-x":[{"translate-x":An()}],"translate-y":[{"translate-y":An()}],"translate-z":[{"translate-z":An()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"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",yt,gt]}],"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",yt,gt]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[Bt,gl,Ts,mp]}],stroke:[{stroke:["none",...q()]}],"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"]}}),d3={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"},yl=({size:t="md",isOnline:e=!1,className:n=""})=>{const{data:i}=br(),a=i!=null&&i.chatbotProfilePhoto?hl.BASE_URL+i.chatbotProfilePhoto.url:hl.APP_URL+"/avatar.jpg",l=d3[t];return L.jsxs("div",{className:ye(n),children:[L.jsx("img",{src:a,alt:"Avatar",className:ye("rounded-full border border-gray-300 bg-white object-cover",l)}),e&&L.jsx("span",{className:"absolute top-1 right-0 block h-3 w-3 rounded-full bg-green-500"})]})},Uc=({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 L.jsxs("button",{className:ye(m,y[t][e],b[n],f),disabled:u||l,...h,children:[l?L.jsx("span",{className:ye("animate-spin",v[n]),children:"🔄"}):i&&L.jsx("span",{className:ye(v[n]),children:i}),a,d&&L.jsx("span",{className:ye(v[n]),children:d})]})};function h3({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:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const p3=I.forwardRef(h3);function m3({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 cw=I.forwardRef(m3);function g3({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 Ca=I.forwardRef(g3);function y3({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 b3=I.forwardRef(y3);function v3({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 x3=I.forwardRef(v3);function S3({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 w3=I.forwardRef(S3);function E3({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 T3=I.forwardRef(E3),gp=I.createContext({});function Pc(t){const e=I.useRef(null);return e.current===null&&(e.current=t()),e.current}const yp=typeof window<"u",bp=yp?I.useLayoutEffect:I.useEffect,qc=I.createContext(null);function vp(t,e){t.indexOf(e)===-1&&t.push(e)}function xp(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 Sp=()=>{};const Pr={},fw=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function dw(t){return typeof t=="object"&&t!==null}const hw=t=>/^0[^.\s]+$/u.test(t);function wp(t){let e;return()=>(e===void 0&&(e=t()),e)}const Bn=t=>t,C3=(t,e)=>n=>e(t(n)),bl=(...t)=>t.reduce(C3),vl=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i};class Ep{constructor(){this.subscriptions=[]}add(e){return vp(this.subscriptions,e),()=>xp(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,Un=t=>t/1e3;function pw(t,e){return e?t*(1e3/e):0}const mw=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,_3=1e-7,A3=12;function O3(t,e,n,i,a){let l,u,f=0;do u=e+(n-e)/2,l=mw(u,i,a)-t,l>0?n=u:e=u;while(Math.abs(l)>_3&&++f<A3);return u}function xl(t,e,n,i){if(t===e&&n===i)return Bn;const a=l=>O3(l,0,1,t,n);return l=>l===0||l===1?l:mw(a(l),e,i)}const gw=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,yw=t=>e=>1-t(1-e),bw=xl(.33,1.53,.69,.99),Tp=yw(bw),vw=gw(Tp),xw=t=>(t*=2)<1?.5*Tp(t):.5*(2-Math.pow(2,-10*(t-1))),Cp=t=>1-Math.sin(Math.acos(t)),Sw=yw(Cp),ww=gw(Cp),R3=xl(.42,0,1,1),k3=xl(0,0,.58,1),Ew=xl(.42,0,.58,1),D3=t=>Array.isArray(t)&&typeof t[0]!="number",Tw=t=>Array.isArray(t)&&typeof t[0]=="number",N3={linear:Bn,easeIn:R3,easeInOut:Ew,easeOut:k3,circIn:Cp,circInOut:ww,circOut:Sw,backIn:Tp,backInOut:vw,backOut:bw,anticipate:xw},M3=t=>typeof t=="string",Cw=t=>{if(Tw(t)){Sp(t.length===4);const[e,n,i,a]=t;return xl(e,n,i,a)}else if(M3(t))return N3[t];return t},Fc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function L3(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 z3=40;function _w(t,e){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Fc.reduce((R,B)=>(R[B]=L3(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,z3),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:Fc.reduce((R,B)=>{const Y=u[B];return R[B]=(z,F=!1,N=!1)=>(n||C(),Y.schedule(z,F,N)),R},{}),cancel:R=>{for(let B=0;B<Fc.length;B++)u[Fc[B]].cancel(R)},state:a,steps:u}}const{schedule:he,cancel:xi,state:Ve,steps:_p}=_w(typeof requestAnimationFrame<"u"?requestAnimationFrame:Bn,!0);let Vc;function j3(){Vc=void 0}const cn={now:()=>(Vc===void 0&&cn.set(Ve.isProcessing||Pr.useManualTiming?Ve.timestamp:performance.now()),Vc),set:t=>{Vc=t,queueMicrotask(j3)}},Aw=t=>e=>typeof e=="string"&&e.startsWith(t),Ap=Aw("--"),I3=Aw("var(--"),Op=t=>I3(t)?B3.test(t.split("/*")[0].trim()):!1,B3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_a={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Sl={..._a,transform:t=>Ur(0,1,t)},Hc={..._a,default:1},wl=t=>Math.round(t*1e5)/1e5,Rp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function U3(t){return t==null}const P3=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,kp=(t,e)=>n=>!!(typeof n=="string"&&P3.test(n)&&n.startsWith(t)||e&&!U3(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ow=(t,e,n)=>i=>{if(typeof i!="string")return i;const[a,l,u,f]=i.match(Rp);return{[t]:parseFloat(a),[e]:parseFloat(l),[n]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},q3=t=>Ur(0,255,t),Dp={..._a,transform:t=>Math.round(q3(t))},Cs={test:kp("rgb","red"),parse:Ow("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Dp.transform(t)+", "+Dp.transform(e)+", "+Dp.transform(n)+", "+wl(Sl.transform(i))+")"};function F3(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 Np={test:kp("#"),parse:F3,transform:Cs.transform},El=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Si=El("deg"),xr=El("%"),Et=El("px"),V3=El("vh"),H3=El("vw"),Rw={...xr,parse:t=>xr.parse(t)/100,transform:t=>xr.transform(t*100)},Aa={test:kp("hsl","hue"),parse:Ow("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+xr.transform(wl(e))+", "+xr.transform(wl(n))+", "+wl(Sl.transform(i))+")"},Oe={test:t=>Cs.test(t)||Np.test(t)||Aa.test(t),parse:t=>Cs.test(t)?Cs.parse(t):Aa.test(t)?Aa.parse(t):Np.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Cs.transform(t):Aa.transform(t),getAnimatableNone:t=>{const e=Oe.parse(t);return e.alpha=0,Oe.transform(e)}},G3=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Y3(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Rp))==null?void 0:e.length)||0)+(((n=t.match(G3))==null?void 0:n.length)||0)>0}const kw="number",Dw="color",K3="var",$3="var(",Nw="${}",Q3=/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 Tl(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},a=[];let l=0;const f=e.replace(Q3,d=>(Oe.test(d)?(i.color.push(l),a.push(Dw),n.push(Oe.parse(d))):d.startsWith($3)?(i.var.push(l),a.push(K3),n.push(d)):(i.number.push(l),a.push(kw),n.push(parseFloat(d))),++l,Nw)).split(Nw);return{values:n,split:f,indexes:i,types:a}}function Mw(t){return Tl(t).values}function Lw(t){const{split:e,types:n}=Tl(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===kw?l+=wl(a[u]):f===Dw?l+=Oe.transform(a[u]):l+=a[u]}return l}}const X3=t=>typeof t=="number"?0:Oe.test(t)?Oe.getAnimatableNone(t):t;function Z3(t){const e=Mw(t);return Lw(t)(e.map(X3))}const wi={test:Y3,parse:Mw,createTransformer:Lw,getAnimatableNone:Z3};function Mp(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 J3({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=Mp(d,f,t+1/3),l=Mp(d,f,t),u=Mp(d,f,t-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function Gc(t,e){return n=>n>0?e:t}const be=(t,e,n)=>t+(e-t)*n,Lp=(t,e,n)=>{const i=t*t,a=n*(e*e-i)+i;return a<0?0:Math.sqrt(a)},W3=[Np,Cs,Aa],tI=t=>W3.find(e=>e.test(t));function zw(t){const e=tI(t);if(!e)return!1;let n=e.parse(t);return e===Aa&&(n=J3(n)),n}const jw=(t,e)=>{const n=zw(t),i=zw(e);if(!n||!i)return Gc(t,e);const a={...n};return l=>(a.red=Lp(n.red,i.red,l),a.green=Lp(n.green,i.green,l),a.blue=Lp(n.blue,i.blue,l),a.alpha=be(n.alpha,i.alpha,l),Cs.transform(a))},zp=new Set(["none","hidden"]);function eI(t,e){return zp.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function nI(t,e){return n=>be(t,e,n)}function jp(t){return typeof t=="number"?nI:typeof t=="string"?Op(t)?Gc:Oe.test(t)?jw:sI:Array.isArray(t)?Iw:typeof t=="object"?Oe.test(t)?jw:rI:Gc}function Iw(t,e){const n=[...t],i=n.length,a=t.map((l,u)=>jp(l)(l,e[u]));return l=>{for(let u=0;u<i;u++)n[u]=a[u](l);return n}}function rI(t,e){const n={...t,...e},i={};for(const a in n)t[a]!==void 0&&e[a]!==void 0&&(i[a]=jp(t[a])(t[a],e[a]));return a=>{for(const l in i)n[l]=i[l](a);return n}}function iI(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 sI=(t,e)=>{const n=wi.createTransformer(e),i=Tl(t),a=Tl(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?zp.has(t)&&!a.values.length||zp.has(e)&&!i.values.length?eI(t,e):bl(Iw(iI(i,a),a.values),n):Gc(t,e)};function Bw(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?be(t,e,n):jp(t)(t,e)}const aI=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>he.update(e,n),stop:()=>xi(e),now:()=>Ve.isProcessing?Ve.timestamp:cn.now()}},Uw=(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)})`},Yc=2e4;function Ip(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Yc;)e+=n,i=t.next(e);return e>=Yc?1/0:e}function oI(t,e=100,n){const i=n({...t,keyframes:[0,e]}),a=Math.min(Ip(i),Yc);return{type:"keyframes",ease:l=>i.next(a*l).value/e,duration:Un(a)}}const lI=5;function Pw(t,e,n){const i=Math.max(e-lI,0);return pw(n-t(i),e-i)}const ve={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},Bp=.001;function uI({duration:t=ve.duration,bounce:e=ve.bounce,velocity:n=ve.velocity,mass:i=ve.mass}){let a,l,u=1-e;u=Ur(ve.minDamping,ve.maxDamping,u),t=Ur(ve.minDuration,ve.maxDuration,Un(t)),u<1?(a=h=>{const m=h*u,y=m*t,b=m-n,v=Up(h,u),S=Math.exp(-y);return Bp-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=Up(Math.pow(h,2),u);return(-a(h)+Bp>0?-1:1)*((b-v)*S)/w}):(a=h=>{const m=Math.exp(-h*t),y=(h-n)*t+1;return-Bp+m*y},l=h=>{const m=Math.exp(-h*t),y=(n-h)*(t*t);return m*y});const f=5/t,d=fI(a,l,f);if(t=vr(t),isNaN(d))return{stiffness:ve.stiffness,damping:ve.damping,duration:t};{const h=Math.pow(d,2)*i;return{stiffness:h,damping:u*2*Math.sqrt(i*h),duration:t}}}const cI=12;function fI(t,e,n){let i=n;for(let a=1;a<cI;a++)i=i-t(i)/e(i);return i}function Up(t,e){return t*Math.sqrt(1-e*e)}const dI=["duration","bounce"],hI=["stiffness","damping","mass"];function qw(t,e){return e.some(n=>t[n]!==void 0)}function pI(t){let e={velocity:ve.velocity,stiffness:ve.stiffness,damping:ve.damping,mass:ve.mass,isResolvedFromDuration:!1,...t};if(!qw(t,hI)&&qw(t,dI))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:ve.mass,stiffness:a,damping:l}}else{const n=uI(t);e={...e,...n,mass:ve.mass},e.isResolvedFromDuration=!0}return e}function Kc(t=ve.visualDuration,e=ve.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}=pI({...n,velocity:-Un(n.velocity||0)}),S=b||0,w=h/(2*Math.sqrt(d*m)),C=u-l,_=Un(Math.sqrt(d/m)),M=Math.abs(C)<5;i||(i=M?ve.restSpeed.granular:ve.restSpeed.default),a||(a=M?ve.restDelta.granular:ve.restDelta.default);let R;if(w<1){const Y=Up(_,w);R=z=>{const F=Math.exp(-w*_*z);return u-F*((S+w*_*C)/Y*Math.sin(Y*z)+C*Math.cos(Y*z))}}else if(w===1)R=Y=>u-Math.exp(-_*Y)*(C+(S+_*C)*Y);else{const Y=_*Math.sqrt(w*w-1);R=z=>{const F=Math.exp(-w*_*z),N=Math.min(Y*z,300);return u-F*((S+w*_*C)*Math.sinh(N)+Y*C*Math.cosh(N))/Y}}const B={calculatedDuration:v&&y||null,next:Y=>{const z=R(Y);if(v)f.done=Y>=y;else{let F=Y===0?S:0;w<1&&(F=Y===0?vr(S):Pw(R,Y,z));const N=Math.abs(F)<=i,P=Math.abs(u-z)<=a;f.done=N&&P}return f.value=f.done?u:z,f},toString:()=>{const Y=Math.min(Ip(B),Yc),z=Uw(F=>B.next(Y*F).value,Y,30);return Y+"ms "+z},toTransition:()=>{}};return B}Kc.applyToOptions=t=>{const e=oI(t,100,Kc);return t.ease=e.ease,t.duration=vr(e.duration),t.type="keyframes",t};function Pp({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 M=N=>-w*Math.exp(-N/i),R=N=>_+M(N),B=N=>{const P=M(N),K=R(N);b.done=Math.abs(P)<=h,b.value=b.done?_:K};let Y,z;const F=N=>{v(b.value)&&(Y=N,z=Kc({keyframes:[b.value,S(b.value)],velocity:Pw(R,N,b.value),damping:a,stiffness:l,restDelta:h,restSpeed:m}))};return F(0),{calculatedDuration:null,next:N=>{let P=!1;return!z&&Y===void 0&&(P=!0,B(N),F(N)),Y!==void 0&&N>=Y?z.next(N-Y):(!P&&B(N),b)}}}function mI(t,e,n){const i=[],a=n||Pr.mix||Bw,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=bl(d,f)}i.push(f)}return i}function gI(t,e,{clamp:n=!0,ease:i,mixer:a}={}){const l=t.length;if(Sp(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=mI(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=vl(t[y],t[y+1],m);return f[y](b)};return n?m=>h(Ur(t[0],t[l-1],m)):h}function yI(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const a=vl(0,e,i);t.push(be(n,1,a))}}function bI(t){const e=[0];return yI(e,t.length-1),e}function vI(t,e){return t.map(n=>n*e)}function xI(t,e){return t.map(()=>e||Ew).splice(0,t.length-1)}function Cl({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const a=D3(i)?i.map(Cw):Cw(i),l={done:!1,value:e[0]},u=vI(n&&n.length===e.length?n:bI(e),t),f=gI(u,e,{ease:Array.isArray(a)?a:xI(e,a)});return{calculatedDuration:t,next:d=>(l.value=f(d),l.done=d>=t,l)}}const SI=t=>t!==null;function qp(t,{repeat:e,repeatType:n="loop"},i,a=1){const l=t.filter(SI),f=a<0||e&&n!=="loop"&&e%2===1?0:l.length-1;return!f||i===void 0?l[f]:i}const wI={decay:Pp,inertia:Pp,tween:Cl,keyframes:Cl,spring:Kc};function Fw(t){typeof t.type=="string"&&(t.type=wI[t.type])}class Fp{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 EI=t=>t/100;class Vp extends Fp{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!==cn.now()&&this.tick(cn.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;Fw(e);const{type:n=Cl,repeat:i=0,repeatDelay:a=0,repeatType:l,velocity:u=0}=e;let{keyframes:f}=e;const d=n||Cl;d!==Cl&&typeof f[0]!="number"&&(this.mixKeyframes=bl(EI,Bw(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=Ip(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),M=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 P=Math.floor(N),K=N%1;!K&&N>=1&&(K=1),K===1&&P--,P=Math.min(P,y+1),!!(P%2)&&(b==="reverse"?(K=1-K,v&&(K-=v/f)):b==="mirror"&&(B=u)),R=Ur(0,1,K)*f}const Y=M?{done:!1,value:m[0]}:B.next(R);l&&(Y.value=l(Y.value));let{done:z}=Y;!M&&d!==null&&(z=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return F&&S!==Pp&&(Y.value=qp(m,this.options,C,this.speed)),w&&w(Y.value),F&&this.finish(),Y}then(e,n){return this.finished.then(e,n)}get duration(){return Un(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Un(e)}get time(){return Un(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(cn.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Un(this.currentTime))}play(){var a,l;if(this.isStopped)return;const{driver:e=aI,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(cn.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 TI(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const _s=t=>t*180/Math.PI,Hp=t=>{const e=_s(Math.atan2(t[1],t[0]));return Gp(e)},CI={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Hp,rotateZ:Hp,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},Gp=t=>(t=t%360,t<0&&(t+=360),t),Vw=Hp,Hw=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Gw=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),_I={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Hw,scaleY:Gw,scale:t=>(Hw(t)+Gw(t))/2,rotateX:t=>Gp(_s(Math.atan2(t[6],t[5]))),rotateY:t=>Gp(_s(Math.atan2(-t[2],t[0]))),rotateZ:Vw,rotate:Vw,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 Yp(t){return t.includes("scale")?1:0}function Kp(t,e){if(!t||t==="none")return Yp(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,a;if(n)i=_I,a=n;else{const f=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=CI,a=f}if(!a)return Yp(e);const l=i[e],u=a[1].split(",").map(OI);return typeof l=="function"?l(u):u[l]}const AI=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Kp(n,e)};function OI(t){return parseFloat(t.trim())}const Oa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ra=new Set(Oa),Yw=t=>t===_a||t===Et,RI=new Set(["x","y","z"]),kI=Oa.filter(t=>!RI.has(t));function DI(t){const e=[];return kI.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})=>Kp(e,"x"),y:(t,{transform:e})=>Kp(e,"y")};As.translateX=As.x,As.translateY=As.y;const Os=new Set;let $p=!1,Qp=!1,Xp=!1;function Kw(){if(Qp){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=DI(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)})}Qp=!1,$p=!1,Os.forEach(t=>t.complete(Xp)),Os.clear()}function $w(){Os.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Qp=!0)})}function NI(){Xp=!0,$w(),Kw(),Xp=!1}class Zp{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),$p||($p=!0,he.read($w),he.resolveKeyframes(Kw))):(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])}TI(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 MI=t=>t.startsWith("--");function LI(t,e,n){MI(e)?t.style.setProperty(e,n):t.style[e]=n}const zI=wp(()=>window.ScrollTimeline!==void 0),jI={};function II(t,e){const n=wp(t);return()=>jI[e]??n()}const Qw=II(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_l=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Xw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_l([0,.65,.55,1]),circOut:_l([.55,0,1,.45]),backIn:_l([.31,.01,.66,-.59]),backOut:_l([.33,1.53,.69,.99])};function Zw(t,e){if(t)return typeof t=="function"?Qw()?Uw(t,e):"ease-out":Tw(t)?_l(t):Array.isArray(t)?t.map(n=>Zw(n,e)||Xw.easeOut):Xw[t]}function BI(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=Zw(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 Jw(t){return typeof t=="function"&&"applyToOptions"in t}function UI({type:t,...e}){return Jw(t)&&Qw()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class PI extends Fp{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,Sp(typeof e.type!="string");const h=UI(e);this.animation=BI(n,i,a,h,l),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const m=qp(a,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(m):LI(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 Un(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Un(e)}get time(){return Un(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&&zI()?(this.animation.timeline=e,Bn):n(this)}}const Ww={anticipate:xw,backInOut:vw,circInOut:ww};function qI(t){return t in Ww}function FI(t){typeof t.ease=="string"&&qI(t.ease)&&(t.ease=Ww[t.ease])}const t1=10;class VI extends PI{constructor(e){FI(e),Fw(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 Vp({...u,autoplay:!1}),d=vr(this.finishedTime??this.time);n.setWithVelocity(f.sample(d-t1).value,f.sample(d).value,t1),f.stop()}}const e1=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(wi.test(t)||t==="0")&&!t.startsWith("url("));function HI(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 GI(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=e1(a,e),f=e1(l,e);return!u||!f?!1:HI(t)||(n==="spring"||Jw(n))&&i}function Jp(t){t.duration=0,t.type="keyframes"}const YI=new Set(["opacity","clipPath","filter","transform"]),KI=wp(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function $I(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 KI()&&n&&YI.has(n)&&(n!=="transform"||!h)&&!d&&!i&&a!=="mirror"&&l!==0&&u!=="inertia"}const QI=40;class XI extends Fp{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=cn.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)||Zp;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=cn.now(),GI(e,l,u,f)||((Pr.instantAnimations||!d)&&(m==null||m(qp(e,i,n))),e[0]=e[e.length-1],Jp(i),i.repeat=0);const b={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>QI?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},v=!h&&$I(b)?new VI({...b,element:b.motionValue.owner.current}):new Vp(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(),NI()),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 ZI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function JI(t){const e=ZI.exec(t);if(!e)return[,];const[,n,i,a]=e;return[`--${n??i}`,a]}function n1(t,e,n=1){const[i,a]=JI(t);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const u=l.trim();return fw(u)?parseFloat(u):u}return Op(a)?n1(a,e,n+1):a}function Wp(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const r1=new Set(["width","height","top","left","right","bottom",...Oa]),WI={test:t=>t==="auto",parse:t=>t},i1=t=>e=>e.test(t),s1=[_a,Et,xr,Si,H3,V3,WI],a1=t=>s1.find(i1(t));function tB(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||hw(t):!0}const eB=new Set(["brightness","contrast","saturate","opacity"]);function nB(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Rp)||[];if(!i)return t;const a=n.replace(i,"");let l=eB.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+a+")"}const rB=/\b([a-z-]*)\(.*?\)/gu,tm={...wi,getAnimatableNone:t=>{const e=t.match(rB);return e?e.map(nB).join(" "):t}},o1={..._a,transform:Math.round},em={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:Hc,scaleX:Hc,scaleY:Hc,scaleZ:Hc,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:Sl,originX:Rw,originY:Rw,originZ:Et},zIndex:o1,fillOpacity:Sl,strokeOpacity:Sl,numOctaves:o1},iB={...em,color:Oe,backgroundColor:Oe,outlineColor:Oe,fill:Oe,stroke:Oe,borderColor:Oe,borderTopColor:Oe,borderRightColor:Oe,borderBottomColor:Oe,borderLeftColor:Oe,filter:tm,WebkitFilter:tm},l1=t=>iB[t];function u1(t,e){let n=l1(t);return n!==tm&&(n=wi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const sB=new Set(["auto","none","0"]);function aB(t,e,n){let i=0,a;for(;i<t.length&&!a;){const l=t[i];typeof l=="string"&&!sB.has(l)&&Tl(l).values.length&&(a=t[i]),i++}if(a&&n)for(const l of e)t[l]=u1(n,a)}class oB extends Zp{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(),Op(h))){const m=n1(h,n.current);m!==void 0&&(e[d]=m),d===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!r1.has(i)||e.length!==2)return;const[a,l]=e,u=a1(a),f=a1(l);if(u!==f)if(Yw(u)&&Yw(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||tB(e[a]))&&i.push(a);i.length&&aB(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 c1(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){const a=document.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t)}const f1=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function d1(t){return dw(t)&&"offsetHeight"in t}const h1=30,lB=t=>!isNaN(parseFloat(t));class uB{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var l;const a=cn.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=cn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=lB(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 Ep);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=cn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>h1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,h1);return pw(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 ka(t,e){return new uB(t,e)}const{schedule:nm}=_w(queueMicrotask,!1),ir={x:!1,y:!1};function p1(){return ir.x||ir.y}function cB(t){return t==="x"||t==="y"?ir[t]?null:(ir[t]=!0,()=>{ir[t]=!1}):ir.x||ir.y?null:(ir.x=ir.y=!0,()=>{ir.x=ir.y=!1})}function m1(t,e){const n=c1(t),i=new AbortController,a={passive:!0,...e,signal:i.signal};return[n,a,()=>i.abort()]}function g1(t){return!(t.pointerType==="touch"||p1())}function fB(t,e,n={}){const[i,a,l]=m1(t,n),u=f=>{if(!g1(f))return;const{target:d}=f,h=e(d,f);if(typeof h!="function"||!d)return;const m=y=>{g1(y)&&(h(y),d.removeEventListener("pointerleave",m))};d.addEventListener("pointerleave",m,a)};return i.forEach(f=>{f.addEventListener("pointerenter",u,a)}),l}const y1=(t,e)=>e?t===e?!0:y1(t,e.parentElement):!1,rm=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,dB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hB(t){return dB.has(t.tagName)||t.tabIndex!==-1}const $c=new WeakSet;function b1(t){return e=>{e.key==="Enter"&&t(e)}}function im(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const pB=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=b1(()=>{if($c.has(n))return;im(n,"down");const a=b1(()=>{im(n,"up")}),l=()=>im(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 v1(t){return rm(t)&&!p1()}function mB(t,e,n={}){const[i,a,l]=m1(t,n),u=f=>{const d=f.currentTarget;if(!v1(f))return;$c.add(d);const h=e(d,f),m=(v,S)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",b),$c.has(d)&&$c.delete(d),v1(v)&&typeof h=="function"&&h(v,{success:S})},y=v=>{m(v,d===window||d===document||n.useGlobalTarget||y1(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),d1(f)&&(f.addEventListener("focus",h=>pB(h,a)),!hB(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),l}function x1(t){return dw(t)&&"ownerSVGElement"in t}function gB(t){return x1(t)&&t.tagName==="svg"}const Ze=t=>!!(t&&t.getVelocity),yB=[...s1,Oe,wi],bB=t=>yB.find(i1(t)),sm=I.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function S1(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function vB(...t){return e=>{let n=!1;const i=t.map(a=>{const l=S1(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():S1(t[a],null)}}}}function xB(...t){return I.useCallback(vB(...t),t)}class SB extends I.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=n.offsetParent,a=d1(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 wB({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(sm),d=xB(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]),L.jsx(SB,{isPresent:e,childRef:l,sizeRef:u,children:I.cloneElement(t,{ref:d})})}const EB=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:l,mode:u,anchorX:f,root:d})=>{const h=Pc(TB),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=L.jsx(wB,{isPresent:n,anchorX:f,root:d,children:t})),L.jsx(qc.Provider,{value:b,children:t})};function TB(){return new Map}function w1(t=!0){const e=I.useContext(qc);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 Qc=t=>t.key||"";function E1(t){const e=[];return I.Children.forEach(t,n=>{I.isValidElement(n)&&e.push(n)}),e}const Al=({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]=w1(u),y=I.useMemo(()=>E1(t),[t]),b=u&&!h?[]:y.map(Qc),v=I.useRef(!0),S=I.useRef(y),w=Pc(()=>new Map),[C,_]=I.useState(y),[M,R]=I.useState(y);bp(()=>{v.current=!1,S.current=y;for(let z=0;z<M.length;z++){const F=Qc(M[z]);b.includes(F)?w.delete(F):w.get(F)!==!0&&w.set(F,!1)}},[M,b.length,b.join("-")]);const B=[];if(y!==C){let z=[...y];for(let F=0;F<M.length;F++){const N=M[F],P=Qc(N);b.includes(P)||(z.splice(F,0,N),B.push(N))}return l==="wait"&&B.length&&(z=B),R(E1(z)),_(y),null}const{forceRender:Y}=I.useContext(gp);return L.jsx(L.Fragment,{children:M.map(z=>{const F=Qc(z),N=u&&!h?!1:y===M||b.includes(F),P=()=>{if(w.has(F))w.set(F,!0);else return;let K=!0;w.forEach(et=>{et||(K=!1)}),K&&(Y==null||Y(),R(S.current),u&&(m==null||m()),i&&i())};return L.jsx(EB,{isPresent:N,initial:!v.current||n?void 0:!1,custom:e,presenceAffectsLayout:a,mode:l,root:d,onExitComplete:N?void 0:P,anchorX:f,children:z},F)})})},T1=I.createContext({strict:!1}),C1={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"]},Da={};for(const t in C1)Da[t]={isEnabled:e=>C1[t].some(n=>!!e[n])};function CB(t){for(const e in t)Da[e]={...Da[e],...t[e]}}const _B=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 Xc(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||_B.has(t)}let _1=t=>!Xc(t);function AB(t){typeof t=="function"&&(_1=e=>e.startsWith("on")?!Xc(e):t(e))}try{AB(require("@emotion/is-prop-valid").default)}catch{}function OB(t,e,n){const i={};for(const a in t)a==="values"&&typeof t.values=="object"||(_1(a)||n===!0&&Xc(a)||!e&&!Xc(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}const Zc=I.createContext({});function Jc(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ol(t){return typeof t=="string"||Array.isArray(t)}const am=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],om=["initial",...am];function Wc(t){return Jc(t.animate)||om.some(e=>Ol(t[e]))}function A1(t){return!!(Wc(t)||t.variants)}function RB(t,e){if(Wc(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Ol(n)?n:void 0,animate:Ol(i)?i:void 0}}return t.inherit!==!1?e:{}}function kB(t){const{initial:e,animate:n}=RB(t,I.useContext(Zc));return I.useMemo(()=>({initial:e,animate:n}),[O1(e),O1(n)])}function O1(t){return Array.isArray(t)?t.join(" "):t}const Rl={};function DB(t){for(const e in t)Rl[e]=t[e],Ap(e)&&(Rl[e].isCSSVariable=!0)}function R1(t,{layout:e,layoutId:n}){return Ra.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Rl[t]||t==="opacity")}const NB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},MB=Oa.length;function LB(t,e,n){let i="",a=!0;for(let l=0;l<MB;l++){const u=Oa[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=f1(f,em[u]);if(!d){a=!1;const m=NB[u]||u;i+=`${m}(${h}) `}n&&(e[u]=h)}}return i=i.trim(),n?i=n(e,a?"":i):a&&(i="none"),i}function lm(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(Ra.has(d)){u=!0;continue}else if(Ap(d)){a[d]=h;continue}else{const m=f1(h,em[d]);d.startsWith("origin")?(f=!0,l[d]=m):i[d]=m}}if(e.transform||(u||n?i.transform=LB(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 um=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function k1(t,e,n){for(const i in e)!Ze(e[i])&&!R1(i,n)&&(t[i]=e[i])}function zB({transformTemplate:t},e){return I.useMemo(()=>{const n=um();return lm(n,e,t),Object.assign({},n.vars,n.style)},[e])}function jB(t,e){const n=t.style||{},i={};return k1(i,n,t),Object.assign(i,zB(t,e)),i}function IB(t,e){const n={},i=jB(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 BB={offset:"stroke-dashoffset",array:"stroke-dasharray"},UB={offset:"strokeDashoffset",array:"strokeDasharray"};function PB(t,e,n=1,i=0,a=!0){t.pathLength=1;const l=a?BB:UB;t[l.offset]=Et.transform(-i);const u=Et.transform(e),f=Et.transform(n);t[l.array]=`${u} ${f}`}function D1(t,{attrX:e,attrY:n,attrScale:i,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...f},d,h,m){if(lm(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&&PB(y,a,l,u,!1)}const N1=()=>({...um(),attrs:{}}),M1=t=>typeof t=="string"&&t.toLowerCase()==="svg";function qB(t,e,n,i){const a=I.useMemo(()=>{const l=N1();return D1(l,e,M1(i),t.transformTemplate,t.style),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};k1(l,t.style,t),a.style={...l,...a.style}}return a}const FB=["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 cm(t){return typeof t!="string"||t.includes("-")?!1:!!(FB.indexOf(t)>-1||/[A-Z]/u.test(t))}function VB(t,e,n,{latestValues:i},a,l=!1){const f=(cm(t)?qB:IB)(e,i,a,t),d=OB(e,typeof t=="string",l),h=t!==I.Fragment?{...d,...f,ref:n}:{},{children:m}=e,y=I.useMemo(()=>Ze(m)?m.get():m,[m]);return I.createElement(t,{...h,children:y})}function L1(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function fm(t,e,n,i){if(typeof e=="function"){const[a,l]=L1(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]=L1(i);e=e(n!==void 0?n:t.custom,a,l)}return e}function tf(t){return Ze(t)?t.get():t}function HB({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,a){return{latestValues:GB(n,i,a,t),renderState:e()}}function GB(t,e,n,i){const a={},l=i(t,{});for(const b in l)a[b]=tf(l[b]);let{initial:u,animate:f}=t;const d=Wc(t),h=A1(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"&&!Jc(y)){const b=Array.isArray(y)?y:[y];for(let v=0;v<b.length;v++){const S=fm(t,b[v]);if(S){const{transitionEnd:w,transition:C,..._}=S;for(const M in _){let R=_[M];if(Array.isArray(R)){const B=m?R.length-1:0;R=R[B]}R!==null&&(a[M]=R)}for(const M in w)a[M]=w[M]}}}return a}const z1=t=>(e,n)=>{const i=I.useContext(Zc),a=I.useContext(qc),l=()=>HB(t,e,i,a);return n?l():Pc(l)};function dm(t,e,n){var l;const{style:i}=t,a={};for(const u in i)(Ze(i[u])||e.style&&Ze(e.style[u])||R1(u,t)||((l=n==null?void 0:n.getValue(u))==null?void 0:l.liveStyle)!==void 0)&&(a[u]=i[u]);return a}const YB=z1({scrapeMotionValuesFromProps:dm,createRenderState:um});function j1(t,e,n){const i=dm(t,e,n);for(const a in t)if(Ze(t[a])||Ze(e[a])){const l=Oa.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=t[a]}return i}const KB=z1({scrapeMotionValuesFromProps:j1,createRenderState:N1}),$B=Symbol.for("motionComponentSymbol");function Na(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function QB(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):Na(n)&&(n.current=i))},[e])}const hm=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),I1="data-"+hm("framerAppearId"),B1=I.createContext({});function XB(t,e,n,i,a){var w,C;const{visualElement:l}=I.useContext(Zc),u=I.useContext(T1),f=I.useContext(qc),d=I.useContext(sm).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(B1);m&&!m.projection&&a&&(m.type==="html"||m.type==="svg")&&ZB(h.current,n,a,y);const b=I.useRef(!1);I.useInsertionEffect(()=>{m&&b.current&&m.update(n,f)});const v=n[I1],S=I.useRef(!!v&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,v))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,v)));return bp(()=>{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 ZB(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:U1(t.parent)),t.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||f&&Na(f),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,crossfade:m,layoutScroll:d,layoutRoot:h})}function U1(t){if(t)return t.options.allowProjection!==!1?t.projection:U1(t.parent)}function pm(t,{forwardMotionProps:e=!1}={},n,i){n&&CB(n);const a=cm(t)?KB:YB;function l(f,d){let h;const m={...I.useContext(sm),...f,layoutId:JB(f)},{isStatic:y}=m,b=kB(f),v=a(f,y);if(!y&&yp){WB();const S=tU(m);h=S.MeasureLayout,b.visualElement=XB(t,v,m,i,S.ProjectionNode)}return L.jsxs(Zc.Provider,{value:b,children:[h&&b.visualElement?L.jsx(h,{visualElement:b.visualElement,...m}):null,VB(t,f,QB(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[$B]=t,u}function JB({layoutId:t}){const e=I.useContext(gp).id;return e&&t!==void 0?e+"-"+t:t}function WB(t,e){I.useContext(T1).strict}function tU(t){const{drag:e,layout:n}=Da;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 eU(t,e){if(typeof Proxy>"u")return pm;const n=new Map,i=(l,u)=>pm(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,pm(u,void 0,t,e)),n.get(u))})}function P1({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function nU({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function rU(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 mm(t){return t===void 0||t===1}function gm({scale:t,scaleX:e,scaleY:n}){return!mm(t)||!mm(e)||!mm(n)}function Rs(t){return gm(t)||q1(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function q1(t){return F1(t.x)||F1(t.y)}function F1(t){return t&&t!=="0%"}function ef(t,e,n){const i=t-n,a=e*i;return n+a}function V1(t,e,n,i,a){return a!==void 0&&(t=ef(t,a,i)),ef(t,n,i)+e}function ym(t,e=0,n=1,i,a){t.min=V1(t.min,e,n,i,a),t.max=V1(t.max,e,n,i,a)}function H1(t,{x:e,y:n}){ym(t.x,e.translate,e.scale,e.originPoint),ym(t.y,n.translate,n.scale,n.originPoint)}const G1=.999999999999,Y1=1.0000000000001;function iU(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&&La(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,H1(t,u)),i&&Rs(l.latestValues)&&La(t,l.latestValues))}e.x<Y1&&e.x>G1&&(e.x=1),e.y<Y1&&e.y>G1&&(e.y=1)}function Ma(t,e){t.min=t.min+e,t.max=t.max+e}function K1(t,e,n,i,a=.5){const l=be(t.min,t.max,a);ym(t,e,n,l,i)}function La(t,e){K1(t.x,e.x,e.scaleX,e.scale,e.originX),K1(t.y,e.y,e.scaleY,e.scale,e.originY)}function $1(t,e){return P1(rU(t.getBoundingClientRect(),e))}function sU(t,e,n){const i=$1(t,n),{scroll:a}=e;return a&&(Ma(i.x,a.offset.x),Ma(i.y,a.offset.y)),i}const Q1=()=>({translate:0,scale:1,origin:0,originPoint:0}),za=()=>({x:Q1(),y:Q1()}),X1=()=>({min:0,max:0}),Ce=()=>({x:X1(),y:X1()}),bm={current:null},Z1={current:!1};function aU(){if(Z1.current=!0,!!yp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>bm.current=t.matches;t.addEventListener("change",e),e()}else bm.current=!1}const oU=new WeakMap;function lU(t,e,n){for(const i in e){const a=e[i],l=n[i];if(Ze(a))t.addValue(i,a);else if(Ze(l))t.addValue(i,ka(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,ka(u!==void 0?u:a,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const J1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class uU{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=Zp,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=cn.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=Wc(n),this.isVariantNode=A1(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&&Ze(v)&&v.set(d[b])}}mount(e){var n;this.current=e,oU.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)),Z1.current||aU(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bm.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=Ra.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 Da){const n=Da[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):Ce()}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<J1.length;i++){const a=J1[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=lU(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=ka(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"&&(fw(i)||hw(i))?i=parseFloat(i):!bB(i)&&wi.test(n)&&(i=u1(e,n)),this.setBaseTarget(e,Ze(i)?i.get():i)),Ze(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=fm(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&&!Ze(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 Ep),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){nm.render(this.render)}}class W1 extends uU{constructor(){super(...arguments),this.KeyframeResolver=oB}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;Ze(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function tE(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 cU(t){return window.getComputedStyle(t)}class fU extends W1{constructor(){super(...arguments),this.type="html",this.renderInstance=tE}readValueFromInstance(e,n){var i;if(Ra.has(n))return(i=this.projection)!=null&&i.isProjecting?Yp(n):AI(e,n);{const a=cU(e),l=(Ap(n)?a.getPropertyValue(n):a[n])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(e,{transformPagePoint:n}){return $1(e,n)}build(e,n,i){lm(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return dm(e,n,i)}}const eE=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 dU(t,e,n,i){tE(t,e,void 0,i);for(const a in e.attrs)t.setAttribute(eE.has(a)?a:hm(a),e.attrs[a])}class hU extends W1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ce}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ra.has(n)){const i=l1(n);return i&&i.default||0}return n=eE.has(n)?n:hm(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return j1(e,n,i)}build(e,n,i){D1(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,a){dU(e,n,i,a)}mount(e){this.isSVGTag=M1(e.tagName),super.mount(e)}}const pU=(t,e)=>cm(t)?new hU(e):new fU(e,{allowProjection:t!==I.Fragment});function ja(t,e,n){const i=t.getProps();return fm(i,e,n!==void 0?n:i.custom,t)}const vm=t=>Array.isArray(t);function mU(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ka(n))}function gU(t){return vm(t)?t[t.length-1]||0:t}function xm(t,e){const n=ja(t,e);let{transitionEnd:i={},transition:a={},...l}=n||{};l={...l,...i};for(const u in l){const f=gU(l[u]);mU(t,u,f)}}function yU(t){return!!(Ze(t)&&t.add)}function Sm(t,e){const n=t.getValue("willChange");if(yU(n))return n.add(e);if(!n&&Pr.WillChange){const i=new Pr.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function nE(t){return t.props[I1]}const bU=t=>t!==null;function vU(t,{repeat:e,repeatType:n="loop"},i){const a=t.filter(bU),l=e&&n!=="loop"&&e%2===1?0:a.length-1;return a[l]}const xU={type:"spring",stiffness:500,damping:25,restSpeed:10},SU=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),wU={type:"keyframes",duration:.8},EU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},TU=(t,{keyframes:e})=>e.length>2?wU:Ra.has(t)?t.startsWith("scale")?SU(e[1]):xU:EU;function CU({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 wm=(t,e,n,i={},a,l)=>u=>{const f=Wp(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};CU(f)||Object.assign(m,TU(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)&&(Jp(m),m.delay===0&&(y=!0)),(Pr.instantAnimations||Pr.skipAnimations)&&(y=!0,Jp(m),m.delay=0),m.allowFlatten=!f.type&&!f.ease,y&&!l&&e.get()!==void 0){const b=vU(m.keyframes,f);if(b!==void 0){he.update(()=>{m.onUpdate(b),m.onComplete()});return}}return f.isSync?new Vp(m):new XI(m)};function _U({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function rE(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&&_U(h,m))continue;const v={delay:n,...Wp(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 _=nE(t);if(_){const M=window.MotionHandoffAnimation(_,m,he);M!==null&&(v.startTime=M,w=!0)}}Sm(t,m),y.start(wm(m,y,b,t.shouldReduceMotion&&r1.has(m)?{type:!1}:v,t,w));const C=y.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{he.update(()=>{u&&xm(t,u)})}),d}function iE(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 Em(t,e,n={}){var d;const i=ja(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(rE(t,i,n)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:b}=a;return AU(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 AU(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(Em(d,e,{...u,delay:n+(typeof i=="function"?0:i)+iE(t.variantChildren,d,i,a,l)}).then(()=>d.notify("AnimationComplete",e)));return Promise.all(f)}function sE(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const a=e.map(l=>Em(t,l,n));i=Promise.all(a)}else if(typeof e=="string")i=Em(t,e,n);else{const a=typeof e=="function"?ja(t,e,n.custom):e;i=Promise.all(rE(t,a,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function aE(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 OU=om.length;function oE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?oE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<OU;n++){const i=om[n],a=t.props[i];(Ol(a)||a===!1)&&(e[i]=a)}return e}const RU=[...am].reverse(),kU=am.length;function DU(t){return e=>Promise.all(e.map(({animation:n,options:i})=>sE(t,n,i)))}function NU(t){let e=DU(t),n=lE(),i=!0;const a=d=>(h,m)=>{var b;const y=ja(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=oE(t.parent)||{},y=[],b=new Set;let v={},S=1/0;for(let C=0;C<kU;C++){const _=RU[C],M=n[_],R=h[_]!==void 0?h[_]:m[_],B=Ol(R),Y=_===d?M.isActive:null;Y===!1&&(S=C);let z=R===m[_]&&R!==h[_]&&B;if(z&&i&&t.manuallyAnimateOnMount&&(z=!1),M.protectedKeys={...v},!M.isActive&&Y===null||!R&&!M.prevProp||Jc(R)||typeof R=="boolean")continue;const F=MU(M.prevProp,R);let N=F||_===d&&M.isActive&&!z&&B||C>S&&B,P=!1;const K=Array.isArray(R)?R:[R];let et=K.reduce(a(_),{});Y===!1&&(et={});const{prevResolvedValues:at={}}=M,ft={...at,...et},st=G=>{N=!0,b.has(G)&&(P=!0,b.delete(G)),M.needsAnimating[G]=!0;const q=t.getValue(G);q&&(q.liveStyle=!1)};for(const G in ft){const q=et[G],vt=at[G];if(v.hasOwnProperty(G))continue;let O=!1;vm(q)&&vm(vt)?O=!aE(q,vt):O=q!==vt,O?q!=null?st(G):b.add(G):q!==void 0&&b.has(G)?st(G):M.protectedKeys[G]=!0}M.prevProp=R,M.prevResolvedValues=et,M.isActive&&(v={...v,...et}),i&&t.blockInitialAnimation&&(N=!1);const it=z&&F;N&&(!it||P)&&y.push(...K.map(G=>{const q={type:_};if(typeof G=="string"&&i&&!it&&t.manuallyAnimateOnMount&&t.parent){const{parent:vt}=t,O=ja(vt,G);if(vt.enteringChildren&&O){const{delayChildren:dt}=O.transition||{};q.delay=iE(vt.enteringChildren,t,dt)}}return{animation:G,options:q}}))}if(b.size){const C={};if(typeof h.initial!="boolean"){const _=ja(t,Array.isArray(h.initial)?h.initial[0]:h.initial);_&&_.transition&&(C.transition=_.transition)}b.forEach(_=>{const M=t.getBaseTarget(_),R=t.getValue(_);R&&(R.liveStyle=!0),C[_]=M??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=lE()}}}function MU(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!aE(e,t):!1}function ks(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lE(){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 LU extends Ei{constructor(e){super(e),e.animationState||(e.animationState=NU(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Jc(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 zU=0;class jU extends Ei{constructor(){super(...arguments),this.id=zU++}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 IU={animation:{Feature:LU},exit:{Feature:jU}};function kl(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Dl(t){return{point:{x:t.pageX,y:t.pageY}}}const BU=t=>e=>rm(e)&&t(e,Dl(e));function Nl(t,e,n,i){return kl(t,e,BU(n),i)}const uE=1e-4,UU=1-uE,PU=1+uE,cE=.01,qU=0-cE,FU=0+cE;function nn(t){return t.max-t.min}function VU(t,e,n){return Math.abs(t-e)<=n}function fE(t,e,n,i=.5){t.origin=i,t.originPoint=be(e.min,e.max,t.origin),t.scale=nn(n)/nn(e),t.translate=be(n.min,n.max,t.origin)-t.originPoint,(t.scale>=UU&&t.scale<=PU||isNaN(t.scale))&&(t.scale=1),(t.translate>=qU&&t.translate<=FU||isNaN(t.translate))&&(t.translate=0)}function Ml(t,e,n,i){fE(t.x,e.x,n.x,i?i.originX:void 0),fE(t.y,e.y,n.y,i?i.originY:void 0)}function dE(t,e,n){t.min=n.min+e.min,t.max=t.min+nn(e)}function HU(t,e,n){dE(t.x,e.x,n.x),dE(t.y,e.y,n.y)}function hE(t,e,n){t.min=e.min-n.min,t.max=t.min+nn(e)}function Ll(t,e,n){hE(t.x,e.x,n.x),hE(t.y,e.y,n.y)}function Pn(t){return[t("x"),t("y")]}const pE=({current:t})=>t?t.ownerDocument.defaultView:null,mE=(t,e)=>Math.abs(t-e);function GU(t,e){const n=mE(t.x,e.x),i=mE(t.y,e.y);return Math.sqrt(n**2+i**2)}class gE{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=Cm(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,S=GU(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!S)return;const{point:w}=b,{timestamp:C}=Ve;this.history.push({...w,timestamp:C});const{onStart:_,onMove:M}=this.handlers;v||(_&&_(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,b)},this.handlePointerMove=(b,v)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=Tm(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 _=Cm(b.type==="pointercancel"?this.lastMoveEventInfo:Tm(v,this.transformPagePoint),this.history);this.startEvent&&S&&S(b,_),w&&w(b,_)},!rm(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=u,this.contextWindow=a||window;const f=Dl(e),d=Tm(f,this.transformPagePoint),{point:h}=d,{timestamp:m}=Ve;this.history=[{...h,timestamp:m}];const{onSessionStart:y}=n;y&&y(e,Cm(d,this.history)),this.removeListeners=bl(Nl(this.contextWindow,"pointermove",this.handlePointerMove),Nl(this.contextWindow,"pointerup",this.handlePointerUp),Nl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),xi(this.updatePoint)}}function Tm(t,e){return e?{point:e(t.point)}:t}function yE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Cm({point:t},e){return{point:t,delta:yE(t,bE(e)),offset:yE(t,YU(e)),velocity:KU(e,.1)}}function YU(t){return t[0]}function bE(t){return t[t.length-1]}function KU(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const a=bE(t);for(;n>=0&&(i=t[n],!(a.timestamp-i.timestamp>vr(e)));)n--;if(!i)return{x:0,y:0};const l=Un(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 $U(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?be(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?be(n,t,i.max):Math.min(t,n)),t}function vE(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 QU(t,{top:e,left:n,bottom:i,right:a}){return{x:vE(t.x,n,a),y:vE(t.y,e,i)}}function xE(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 XU(t,e){return{x:xE(t.x,e.x),y:xE(t.y,e.y)}}function ZU(t,e){let n=.5;const i=nn(t),a=nn(e);return a>i?n=vl(e.min,e.max-i,t.min):i>a&&(n=vl(t.min,t.max-a,e.min)),Ur(0,1,n)}function JU(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 _m=.35;function WU(t=_m){return t===!1?t=0:t===!0&&(t=_m),{x:SE(t,"left","right"),y:SE(t,"top","bottom")}}function SE(t,e,n){return{min:wE(t,e),max:wE(t,n)}}function wE(t,e){return typeof t=="number"?t:t[e]||0}const tP=new WeakMap;class eP{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=Ce(),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(Dl(y).point)},u=(y,b)=>{const{drag:v,dragPropagation:S,onDragStart:w}=this.getProps();if(v&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cB(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),Pn(_=>{let M=this.getAxisMotionValue(_).get()||0;if(xr.test(M)){const{projection:R}=this.visualElement;if(R&&R.layout){const B=R.layout.layoutBox[_];B&&(M=nn(B)*(parseFloat(M)/100))}}this.originPoint[_]=M}),w&&he.postRender(()=>w(y,b)),Sm(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=nP(_),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=()=>Pn(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 gE(e,{onSessionStart:l,onStart:u,onMove:f,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:i,contextWindow:pE(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||!nf(e,a,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(u=$U(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&&Na(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=QU(i.layoutBox,e):this.constraints=!1,this.elastic=WU(n),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Pn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=JU(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Na(e))return!1;const i=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=sU(i,a.root,this.visualElement.getTransformPagePoint());let u=XU(a.layout.layoutBox,l);if(n){const f=n(nU(u));this.hasMutatedConstraints=!!f,f&&(u=P1(f))}return u}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),d=this.constraints||{},h=Pn(m=>{if(!nf(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 Sm(this.visualElement,e),i.start(wm(e,i,0,n,this.visualElement,!1))}stopAnimation(){Pn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Pn(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){Pn(n=>{const{drag:i}=this.getProps();if(!nf(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]-be(u,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Na(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Pn(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const d=f.get();a[u]=ZU({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(),Pn(u=>{if(!nf(u,e,null))return;const f=this.getAxisMotionValue(u),{min:d,max:h}=this.constraints[u];f.set(be(d,h,a[u]))})}addListeners(){if(!this.visualElement.current)return;tP.set(this.visualElement,this);const e=this.visualElement.current,n=Nl(e,"pointerdown",d=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(d)}),i=()=>{const{dragConstraints:d}=this.getProps();Na(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=kl(window,"resize",()=>this.scalePositionWithinConstraints()),f=a.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Pn(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=_m,dragMomentum:f=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:f}}}function nf(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function nP(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class rP extends Ei{constructor(e){super(e),this.removeGroupControls=Bn,this.removeListeners=Bn,this.controls=new eP(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 EE=t=>(e,n)=>{t&&he.postRender(()=>t(e,n))};class iP extends Ei{constructor(){super(...arguments),this.removePointerDownListener=Bn}onPointerDown(e){this.session=new gE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:EE(e),onStart:EE(n),onMove:i,onEnd:(l,u)=>{delete this.session,a&&he.postRender(()=>a(l,u))}}}mount(){this.removePointerDownListener=Nl(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 rf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function TE(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const zl={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Et.test(t))t=parseFloat(t);else return t;const n=TE(t,e.target.x),i=TE(t,e.target.y);return`${n}% ${i}%`}},sP={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=be(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 Am=!1;class aP extends I.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=e;DB(oP),l&&(n.group&&n.group.add(l),i&&i.register&&a&&i.register(l),Am&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),rf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:a,isPresent:l}=this.props,{projection:u}=i;return u&&(u.isPresent=l,Am=!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(),nm.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=e;Am=!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 CE(t){const[e,n]=w1(),i=I.useContext(gp);return L.jsx(aP,{...t,layoutGroup:i,switchLayoutGroup:I.useContext(B1),isPresent:e,safeToRemove:n})}const oP={borderRadius:{...zl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zl,borderTopRightRadius:zl,borderBottomLeftRadius:zl,borderBottomRightRadius:zl,boxShadow:sP};function lP(t,e,n){const i=Ze(t)?t:ka(t);return i.start(wm("",i,e,n)),i.animation}const uP=(t,e)=>t.depth-e.depth;class cP{constructor(){this.children=[],this.isDirty=!1}add(e){vp(this.children,e),this.isDirty=!0}remove(e){xp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(uP),this.isDirty=!1,this.children.forEach(e)}}function fP(t,e){const n=cn.now(),i=({timestamp:a})=>{const l=a-n;l>=e&&(xi(i),t(l-e))};return he.setup(i,!0),()=>xi(i)}const _E=["TopLeft","TopRight","BottomLeft","BottomRight"],dP=_E.length,AE=t=>typeof t=="string"?parseFloat(t):t,OE=t=>typeof t=="number"||Et.test(t);function hP(t,e,n,i,a,l){a?(t.opacity=be(0,n.opacity??1,pP(i)),t.opacityExit=be(e.opacity??1,0,mP(i))):l&&(t.opacity=be(e.opacity??1,n.opacity??1,i));for(let u=0;u<dP;u++){const f=`border${_E[u]}Radius`;let d=RE(e,f),h=RE(n,f);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||OE(d)===OE(h)?(t[f]=Math.max(be(AE(d),AE(h),i),0),(xr.test(h)||xr.test(d))&&(t[f]+="%")):t[f]=h}(e.rotate||n.rotate)&&(t.rotate=be(e.rotate||0,n.rotate||0,i))}function RE(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const pP=kE(0,.5,Sw),mP=kE(.5,.95,Bn);function kE(t,e,n){return i=>i<t?0:i>e?1:n(vl(t,e,i))}function DE(t,e){t.min=e.min,t.max=e.max}function qn(t,e){DE(t.x,e.x),DE(t.y,e.y)}function NE(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ME(t,e,n,i,a){return t-=e,t=ef(t,1/n,i),a!==void 0&&(t=ef(t,1/a,i)),t}function gP(t,e=0,n=1,i=.5,a,l=t,u=t){if(xr.test(e)&&(e=parseFloat(e),e=be(u.min,u.max,e/100)-u.min),typeof e!="number")return;let f=be(l.min,l.max,i);t===l&&(f-=e),t.min=ME(t.min,e,n,f,a),t.max=ME(t.max,e,n,f,a)}function LE(t,e,[n,i,a],l,u){gP(t,e[n],e[i],e[a],e.scale,l,u)}const yP=["x","scaleX","originX"],bP=["y","scaleY","originY"];function zE(t,e,n,i){LE(t.x,e,yP,n?n.x:void 0,i?i.x:void 0),LE(t.y,e,bP,n?n.y:void 0,i?i.y:void 0)}function jE(t){return t.translate===0&&t.scale===1}function IE(t){return jE(t.x)&&jE(t.y)}function BE(t,e){return t.min===e.min&&t.max===e.max}function vP(t,e){return BE(t.x,e.x)&&BE(t.y,e.y)}function UE(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function PE(t,e){return UE(t.x,e.x)&&UE(t.y,e.y)}function qE(t){return nn(t.x)/nn(t.y)}function FE(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class xP{constructor(){this.members=[]}add(e){vp(this.members,e),e.scheduleRender()}remove(e){if(xp(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 SP(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 Om=["","X","Y","Z"],wP=1e3;let EP=0;function Rm(t,e,n,i){const{latestValues:a}=e;a[t]&&(n[t]=a[t],e.setStaticValue(t,0),i&&(i[t]=0))}function VE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=nE(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&&VE(i)}function HE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(u={},f=e==null?void 0:e()){this.id=EP++,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(_P),this.nodes.forEach(kP),this.nodes.forEach(DP),this.nodes.forEach(AP)},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 cP)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Ep),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=x1(u)&&!gB(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=fP(b,250),rf.hasAnimatedSinceResize&&(rf.hasAnimatedSinceResize=!1,this.nodes.forEach(KE)))})}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()||jP,{onLayoutAnimationStart:w,onLayoutAnimationComplete:C}=h.getProps(),_=!this.targetLayout||!PE(this.targetLayout,v),M=!y&&b;if(this.options.layoutRoot||this.resumeFrom||M||y&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...Wp(S,"layout"),onPlay:w,onComplete:C};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(m,M)}else y||KE(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(NP),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&&VE(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(GE);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(YE);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(RP),this.nodes.forEach(TP),this.nodes.forEach(CP)):this.nodes.forEach(YE),this.clearAllSnapshots();const f=cn.now();Ve.delta=Ur(0,1e3/60,f-Ve.timestamp),Ve.timestamp=f,Ve.isProcessing=!0,_p.update.process(Ve),_p.preRender.process(Ve),_p.render.process(Ve),Ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(OP),this.sharedNodes.forEach(MP)}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&&!nn(this.snapshot.measuredBox.x)&&!nn(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=Ce(),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&&!IE(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)),IP(d),{animationId:this.root.animationId,measuredBox:f,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:u}=this.options;if(!u)return Ce();const f=u.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(BP))){const{scroll:m}=this.root;m&&(Ma(f.x,m.offset.x),Ma(f.y,m.offset.y))}return f}removeElementScroll(u){var d;const f=Ce();if(qn(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&&qn(f,u),Ma(f.x,y.offset.x),Ma(f.y,y.offset.y))}return f}applyTransform(u,f=!1){const d=Ce();qn(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&&La(d,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Rs(m.latestValues)&&La(d,m.latestValues)}return Rs(this.latestValues)&&La(d,this.latestValues),d}removeTransform(u){const f=Ce();qn(f,u);for(let d=0;d<this.path.length;d++){const h=this.path[d];if(!h.instance||!Rs(h.latestValues))continue;gm(h.latestValues)&&h.updateSnapshot();const m=Ce(),y=h.measurePageBox();qn(m,y),zE(f,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Rs(this.latestValues)&&zE(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!==Ve.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=Ve.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ce(),this.relativeTargetOrigin=Ce(),Ll(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),qn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ce(),this.targetWithTransforms=Ce()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),HU(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):qn(this.target,this.layout.layoutBox),H1(this.target,this.targetDelta)):qn(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=Ce(),this.relativeTargetOrigin=Ce(),Ll(this.relativeTargetOrigin,this.target,v.target),qn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||gm(this.parent.latestValues)||q1(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===Ve.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;qn(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,b=this.treeScale.y;iU(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=Ce());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(NE(this.prevProjectionDelta.x,this.projectionDelta.x),NE(this.prevProjectionDelta.y,this.projectionDelta.y)),Ml(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==b||!FE(this.projectionDelta.x,this.prevProjectionDelta.x)||!FE(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=za(),this.projectionDelta=za(),this.projectionDeltaWithTransform=za()}setAnimationOrigin(u,f=!1){const d=this.snapshot,h=d?d.latestValues:{},m={...this.latestValues},y=za();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const b=Ce(),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,M=!!(w&&!_&&this.options.crossfade===!0&&!this.path.some(zP));this.animationProgress=0;let R;this.mixTargetDelta=B=>{const Y=B/1e3;$E(y.x,u.x,Y),$E(y.y,u.y,Y),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ll(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LP(this.relativeTarget,this.relativeTargetOrigin,b,Y),R&&vP(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=Ce()),qn(R,this.relativeTarget)),w&&(this.animationValues=m,hP(m,h,this.latestValues,Y,M,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Y},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(()=>{rf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ka(0)),this.currentAnimation=lP(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(wP),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&&WE(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||Ce();const y=nn(this.layout.layoutBox.x);d.x.min=u.target.x.min,d.x.max=d.x.min+y;const b=nn(this.layout.layoutBox.y);d.y.min=u.target.y.min,d.y.max=d.y.min+b}qn(f,d),La(f,m),Ml(this.projectionDeltaWithTransform,this.layoutCorrected,f,m)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new xP),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&&Rm("z",u,h,this.animationValues);for(let m=0;m<Om.length;m++)Rm(`rotate${Om[m]}`,u,h,this.animationValues),Rm(`skew${Om[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=tf(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=tf(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=SP(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 Rl){if(m[S]===void 0)continue;const{correct:w,applyTo:C,isCSSVariable:_}=Rl[S],M=y==="none"?m[S]:w(m[S],h);if(C){const R=C.length;for(let B=0;B<R;B++)u[C[B]]=M}else _?this.options.visualElement.renderState.vars[S]=M:u[S]=M}this.options.layoutId&&(u.pointerEvents=h===this?tf(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(GE),this.root.sharedNodes.clear()}}}function TP(t){t.updateLayout()}function CP(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"?Pn(y=>{const b=u?e.measuredBox[y]:e.layoutBox[y],v=nn(b);b.min=i[y].min,b.max=b.min+v}):WE(l,e.layoutBox,i)&&Pn(y=>{const b=u?e.measuredBox[y]:e.layoutBox[y],v=nn(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=za();Ml(f,i,e.layoutBox);const d=za();u?Ml(d,t.applyTransform(a,!0),e.measuredBox):Ml(d,i,e.layoutBox);const h=!IE(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=Ce();Ll(S,e.layoutBox,b.layoutBox);const w=Ce();Ll(w,i,v.layoutBox),PE(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 _P(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 AP(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function OP(t){t.clearSnapshot()}function GE(t){t.clearMeasurements()}function YE(t){t.isLayoutDirty=!1}function RP(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function KE(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function kP(t){t.resolveTargetDelta()}function DP(t){t.calcProjection()}function NP(t){t.resetSkewAndRotation()}function MP(t){t.removeLeadSnapshot()}function $E(t,e,n){t.translate=be(e.translate,0,n),t.scale=be(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function QE(t,e,n,i){t.min=be(e.min,n.min,i),t.max=be(e.max,n.max,i)}function LP(t,e,n,i){QE(t.x,e.x,n.x,i),QE(t.y,e.y,n.y,i)}function zP(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const jP={duration:.45,ease:[.4,0,.1,1]},XE=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ZE=XE("applewebkit/")&&!XE("chrome/")?Math.round:Bn;function JE(t){t.min=ZE(t.min),t.max=ZE(t.max)}function IP(t){JE(t.x),JE(t.y)}function WE(t,e,n){return t==="position"||t==="preserve-aspect"&&!VU(qE(e),qE(n),.2)}function BP(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const UP=HE({attachResizeListener:(t,e)=>kl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),km={current:void 0},tT=HE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!km.current){const t=new UP({});t.mount(window),t.setOptions({layoutScroll:!0}),km.current=t}return km.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),PP={pan:{Feature:iP},drag:{Feature:rP,ProjectionNode:tT,MeasureLayout:CE}};function eT(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,Dl(e)))}class qP extends Ei{mount(){const{current:e}=this.node;e&&(this.unmount=fB(e,(n,i)=>(eT(this.node,i,"Start"),a=>eT(this.node,a,"End"))))}unmount(){}}class FP 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=bl(kl(this.node.current,"focus",()=>this.onFocus()),kl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function nT(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,Dl(e)))}class VP extends Ei{mount(){const{current:e}=this.node;e&&(this.unmount=mB(e,(n,i)=>(nT(this.node,i,"Start"),(a,{success:l})=>nT(this.node,a,l?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Dm=new WeakMap,Nm=new WeakMap,HP=t=>{const e=Dm.get(t.target);e&&e(t)},GP=t=>{t.forEach(HP)};function YP({root:t,...e}){const n=t||document;Nm.has(n)||Nm.set(n,{});const i=Nm.get(n),a=JSON.stringify(e);return i[a]||(i[a]=new IntersectionObserver(GP,{root:t,...e})),i[a]}function KP(t,e,n){const i=YP(e);return Dm.set(t,n),i.observe(t),()=>{Dm.delete(t),i.unobserve(t)}}const $P={some:0,all:1};class QP 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:$P[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 KP(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(XP(e,n))&&this.startObserver()}unmount(){}}function XP({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ZP={...IU,...{inView:{Feature:QP},tap:{Feature:VP},focus:{Feature:FP},hover:{Feature:qP}},...PP,...{layout:{ProjectionNode:tT,MeasureLayout:CE}}},Fn=eU(ZP,pU);function JP(t){t.values.forEach(e=>e.stop())}function Mm(t,e){[...e].reverse().forEach(i=>{const a=t.getVariant(i);a&&xm(t,a),t.variantChildren&&t.variantChildren.forEach(l=>{Mm(l,e)})})}function WP(t,e){if(Array.isArray(e))return Mm(t,e);if(typeof e=="string")return Mm(t,[e]);xm(t,e)}function t6(){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(sE(l,n,{transitionOverride:i}))}),Promise.all(a)},set(n){return t.forEach(i=>{WP(i,n)})},stop(){t.forEach(n=>{JP(n)})},mount(){return()=>{e.stop()}}};return e}function e6(){const t=Pc(t6);return bp(t.mount,[]),t}const n6=e6,r6={some:0,all:1};function i6(t,e,{root:n,margin:i,amount:a="some"}={}){const l=c1(t),u=new WeakMap,f=h=>{h.forEach(m=>{const y=u.get(m.target);if(m.isIntersecting!==!!y)if(m.isIntersecting){const b=e(m.target,m);typeof b=="function"?u.set(m.target,b):d.unobserve(m.target)}else typeof y=="function"&&(y(m),u.delete(m.target))})},d=new IntersectionObserver(f,{root:n,rootMargin:i,threshold:typeof a=="number"?a:r6[a]});return l.forEach(h=>d.observe(h)),()=>d.disconnect()}function s6(t,{root:e,margin:n,amount:i,once:a=!1,initial:l=!1}={}){const[u,f]=I.useState(l);return I.useEffect(()=>{if(!t.current||a&&u)return;const d=()=>(f(!0),a?void 0:()=>f(!1)),h={root:e&&e.current||void 0,margin:n,amount:i};return i6(t.current,d,h)},[e,t,n,a,i]),u}const Ia=({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 L.jsxs("button",{className:ye(h,m[t][e],y[n],u),disabled:l||a,...d,children:[a?L.jsx("span",{className:ye("animate-spin",b[n]),children:"🔄"}):L.jsx("span",{className:ye(b[n]),children:i}),f]})};function a6({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 o6=I.forwardRef(a6);function l6({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 Lm=I.forwardRef(l6),rT=({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 L.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:t==null?void 0:t.map(l=>L.jsx("button",{className:`${i} ${a}`,onClick:()=>e==null?void 0:e(l),children:l.content},l.id))})};function oG(){}function lG(){}function u6(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const c6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,f6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,d6={};function iT(t,e){return(d6.jsx?f6:c6).test(t)}const h6=/[ \t\n\f\r]/g;function p6(t){return typeof t=="object"?t.type==="text"?sT(t.value):!1:sT(t)}function sT(t){return t.replace(h6,"")===""}class jl{constructor(e,n,i){this.normal=n,this.property=e,i&&(this.space=i)}}jl.prototype.normal={},jl.prototype.property={},jl.prototype.space=void 0;function aT(t,e){const n={},i={};for(const a of t)Object.assign(n,a.property),Object.assign(i,a.normal);return new jl(n,i,e)}function zm(t){return t.toLowerCase()}class fn{constructor(e,n){this.attribute=n,this.property=e}}fn.prototype.attribute="",fn.prototype.booleanish=!1,fn.prototype.boolean=!1,fn.prototype.commaOrSpaceSeparated=!1,fn.prototype.commaSeparated=!1,fn.prototype.defined=!1,fn.prototype.mustUseProperty=!1,fn.prototype.number=!1,fn.prototype.overloadedBoolean=!1,fn.prototype.property="",fn.prototype.spaceSeparated=!1,fn.prototype.space=void 0;let m6=0;const Lt=Ds(),Re=Ds(),jm=Ds(),ot=Ds(),le=Ds(),Ba=Ds(),Cn=Ds();function Ds(){return 2**++m6}const Im=Object.freeze(Object.defineProperty({__proto__:null,boolean:Lt,booleanish:Re,commaOrSpaceSeparated:Cn,commaSeparated:Ba,number:ot,overloadedBoolean:jm,spaceSeparated:le},Symbol.toStringTag,{value:"Module"})),Bm=Object.keys(Im);class Um extends fn{constructor(e,n,i,a){let l=-1;if(super(e,n),oT(this,"space",a),typeof i=="number")for(;++l<Bm.length;){const u=Bm[l];oT(this,Bm[l],(i&Im[u])===Im[u])}}}Um.prototype.defined=!0;function oT(t,e,n){n&&(t[e]=n)}function Ua(t){const e={},n={};for(const[i,a]of Object.entries(t.properties)){const l=new Um(i,t.transform(t.attributes||{},i),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),e[i]=l,n[zm(i)]=i,n[zm(l.attribute)]=i}return new jl(e,n,t.space)}const lT=Ua({properties:{ariaActiveDescendant:null,ariaAtomic:Re,ariaAutoComplete:null,ariaBusy:Re,ariaChecked:Re,ariaColCount:ot,ariaColIndex:ot,ariaColSpan:ot,ariaControls:le,ariaCurrent:null,ariaDescribedBy:le,ariaDetails:null,ariaDisabled:Re,ariaDropEffect:le,ariaErrorMessage:null,ariaExpanded:Re,ariaFlowTo:le,ariaGrabbed:Re,ariaHasPopup:null,ariaHidden:Re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:le,ariaLevel:ot,ariaLive:null,ariaModal:Re,ariaMultiLine:Re,ariaMultiSelectable:Re,ariaOrientation:null,ariaOwns:le,ariaPlaceholder:null,ariaPosInSet:ot,ariaPressed:Re,ariaReadOnly:Re,ariaRelevant:null,ariaRequired:Re,ariaRoleDescription:le,ariaRowCount:ot,ariaRowIndex:ot,ariaRowSpan:ot,ariaSelected:Re,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 uT(t,e){return e in t?t[e]:e}function cT(t,e){return uT(t,e.toLowerCase())}const g6=Ua({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:Lt,allowPaymentRequest:Lt,allowUserMedia:Lt,alt:null,as:null,async:Lt,autoCapitalize:null,autoComplete:le,autoFocus:Lt,autoPlay:Lt,blocking:le,capture:null,charSet:null,checked:Lt,cite:null,className:le,cols:ot,colSpan:null,content:null,contentEditable:Re,controls:Lt,controlsList:le,coords:ot|Ba,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Lt,defer:Lt,dir:null,dirName:null,disabled:Lt,download:jm,draggable:Re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Lt,formTarget:null,headers:le,height:ot,hidden:jm,high:ot,href:null,hrefLang:null,htmlFor:le,httpEquiv:le,id:null,imageSizes:null,imageSrcSet:null,inert:Lt,inputMode:null,integrity:null,is:null,isMap:Lt,itemId:null,itemProp:le,itemRef:le,itemScope:Lt,itemType:le,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Lt,low:ot,manifest:null,max:null,maxLength:ot,media:null,method:null,min:null,minLength:ot,multiple:Lt,muted:Lt,name:null,nonce:null,noModule:Lt,noValidate:Lt,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:Lt,optimum:ot,pattern:null,ping:le,placeholder:null,playsInline:Lt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Lt,referrerPolicy:null,rel:le,required:Lt,reversed:Lt,rows:ot,rowSpan:ot,sandbox:le,scope:null,scoped:Lt,seamless:Lt,selected:Lt,shadowRootClonable:Lt,shadowRootDelegatesFocus:Lt,shadowRootMode:null,shape:null,size:ot,sizes:null,slot:null,span:ot,spellCheck:Re,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:Lt,useMap:null,value:Re,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:Lt,declare:Lt,event:null,face:null,frame:null,frameBorder:null,hSpace:ot,leftMargin:ot,link:null,longDesc:null,lowSrc:null,marginHeight:ot,marginWidth:ot,noResize:Lt,noHref:Lt,noShade:Lt,noWrap:Lt,object:null,profile:null,prompt:null,rev:null,rightMargin:ot,rules:null,scheme:null,scrolling:Re,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:Lt,disableRemotePlayback:Lt,prefix:null,property:null,results:ot,security:null,unselectable:null},space:"html",transform:cT}),y6=Ua({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:Lt,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:uT}),fT=Ua({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()}}),dT=Ua({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:cT}),hT=Ua({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),b6={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"},v6=/[A-Z]/g,pT=/-[a-z]/g,x6=/^data[-\w.:]+$/i;function S6(t,e){const n=zm(e);let i=e,a=fn;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&x6.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace(pT,E6);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!pT.test(l)){let u=l.replace(v6,w6);u.charAt(0)!=="-"&&(u="-"+u),e="data"+u}}a=Um}return new a(i,e)}function w6(t){return"-"+t.toLowerCase()}function E6(t){return t.charAt(1).toUpperCase()}const T6=aT([lT,g6,fT,dT,hT],"html"),Pm=aT([lT,y6,fT,dT,hT],"svg");function C6(t){return t.join(" ").trim()}var Pa={},qm,mT;function _6(){if(mT)return qm;mT=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 M=1,R=1;function B(st){var it=st.match(e);it&&(M+=it.length);var Z=st.lastIndexOf(d);R=~Z?st.length-Z:R+st.length}function Y(){var st={line:M,column:R};return function(it){return it.position=new z(st),P(),it}}function z(st){this.start=st,this.end={line:M,column:R},this.source=_.source}z.prototype.content=C;function F(st){var it=new Error(_.source+":"+M+":"+R+": "+st);if(it.reason=st,it.filename=_.source,it.line=M,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 P(){N(n)}function K(st){var it;for(st=st||[];it=et();)it!==!1&&st.push(it);return st}function et(){var st=Y();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 F("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=Y(),it=N(i);if(it){if(et(),!N(a))return F("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=[];K(st);for(var it;it=at();)it!==!1&&(st.push(it),K(st));return st}return P(),ft()}function w(C){return C?C.replace(f,y):y}return qm=S,qm}var gT;function A6(){if(gT)return Pa;gT=1;var t=Pa&&Pa.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.default=n;const e=t(_6());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 Pa}var Il={},yT;function O6(){if(yT)return Il;yT=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.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 Il.camelCase=d,Il}var Bl,bT;function R6(){if(bT)return Bl;bT=1;var t=Bl&&Bl.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},e=t(A6()),n=O6();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,Bl=i,Bl}var k6=R6();const D6=Ut(k6),vT=xT("end"),Fm=xT("start");function xT(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 N6(t){const e=Fm(t),n=vT(t);if(e&&n)return{start:e,end:n}}function Ul(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?ST(t.position):"start"in t||"end"in t?ST(t):"line"in t||"column"in t?Vm(t):""}function Vm(t){return wT(t&&t.line)+":"+wT(t&&t.column)}function ST(t){return Vm(t&&t.start)+"-"+Vm(t&&t.end)}function wT(t){return t&&typeof t=="number"?t:1}class Je 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=Ul(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}}Je.prototype.file="",Je.prototype.name="",Je.prototype.reason="",Je.prototype.message="",Je.prototype.stack="",Je.prototype.column=void 0,Je.prototype.line=void 0,Je.prototype.ancestors=void 0,Je.prototype.cause=void 0,Je.prototype.fatal=void 0,Je.prototype.place=void 0,Je.prototype.ruleId=void 0,Je.prototype.source=void 0;const Hm={}.hasOwnProperty,M6=new Map,L6=/[A-Z]/g,z6=new Set(["table","tbody","thead","tfoot","tr"]),j6=new Set(["td","th"]),ET="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function I6(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=G6(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=H6(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"?Pm:T6,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},l=TT(a,t,void 0);return l&&typeof l!="string"?l:a.create(t,a.Fragment,{children:l||void 0},void 0)}function TT(t,e,n){if(e.type==="element")return B6(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return U6(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return q6(t,e,n);if(e.type==="mdxjsEsm")return P6(t,e);if(e.type==="root")return F6(t,e,n);if(e.type==="text")return V6(t,e)}function B6(t,e,n){const i=t.schema;let a=i;e.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=Pm,t.schema=a),t.ancestors.push(e);const l=_T(t,e.tagName,!1),u=Y6(t,e);let f=Ym(t,e);return z6.has(e.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!p6(d):!0})),CT(t,u,l,e),Gm(u,f),t.ancestors.pop(),t.schema=i,t.create(e,l,u,n)}function U6(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)}Pl(t,e.position)}function P6(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Pl(t,e.position)}function q6(t,e,n){const i=t.schema;let a=i;e.name==="svg"&&i.space==="html"&&(a=Pm,t.schema=a),t.ancestors.push(e);const l=e.name===null?t.Fragment:_T(t,e.name,!0),u=K6(t,e),f=Ym(t,e);return CT(t,u,l,e),Gm(u,f),t.ancestors.pop(),t.schema=i,t.create(e,l,u,n)}function F6(t,e,n){const i={};return Gm(i,Ym(t,e)),t.create(e,t.Fragment,i,n)}function V6(t,e){return e.value}function CT(t,e,n,i){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=i)}function Gm(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function H6(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 G6(t,e){return n;function n(i,a,l,u){const f=Array.isArray(l.children),d=Fm(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 Y6(t,e){const n={};let i,a;for(a in e.properties)if(a!=="children"&&Hm.call(e.properties,a)){const l=$6(t,a,e.properties[a]);if(l){const[u,f]=l;t.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&j6.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 K6(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 Pl(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 Pl(t,e.position);else l=i.value===null?!0:i.value;n[a]=l}return n}function Ym(t,e){const n=[];let i=-1;const a=t.passKeys?new Map:M6;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=TT(t,l,u);f!==void 0&&n.push(f)}return n}function $6(t,e,n){const i=S6(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?u6(n):C6(n)),i.property==="style"){let a=typeof n=="object"?n:Q6(t,String(n));return t.stylePropertyNameCase==="css"&&(a=X6(a)),["style",a]}return[t.elementAttributeNameCase==="react"&&i.space?b6[i.property]||i.property:i.attribute,n]}}function Q6(t,e){try{return D6(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const i=n,a=new Je("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=ET+"#cannot-parse-style-attribute",a}}function _T(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=iT(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=iT(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(i.type==="Literal"){const a=i.value;return Hm.call(t.components,a)?t.components[a]:a}if(t.evaluater)return t.evaluater.evaluateExpression(i);Pl(t)}function Pl(t,e){const n=new Je("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=ET+"#cannot-handle-mdx-estrees-without-createevaluater",n}function X6(t){const e={};let n;for(n in t)Hm.call(t,n)&&(e[Z6(n)]=t[n]);return e}function Z6(t){let e=t.replace(L6,J6);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function J6(t){return"-"+t.toLowerCase()}const Km={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"]},W6={};function tq(t,e){const n=W6,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return AT(t,i,a)}function AT(t,e,n){if(eq(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 OT(t.children,e,n)}return Array.isArray(t)?OT(t,e,n):""}function OT(t,e,n){const i=[];let a=-1;for(;++a<t.length;)i[a]=AT(t[a],e,n);return i.join("")}function eq(t){return!!(t&&typeof t=="object")}const RT=document.createElement("i");function $m(t){const e="&"+t+";";RT.innerHTML=e;const n=RT.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 Vn(t,e){return t.length>0?(Sr(t,t.length,0,e),t):e}const kT={}.hasOwnProperty;function nq(t){const e={};let n=-1;for(;++n<t.length;)rq(e,t[n]);return e}function rq(t,e){let n;for(n in e){const a=(kT.call(t,n)?t[n]:void 0)||(t[n]={}),l=e[n];let u;if(l)for(u in l){kT.call(a,u)||(a[u]=[]);const f=l[u];iq(a[u],Array.isArray(f)?f:f?[f]:[])}}}function iq(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 DT(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 qa(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const wr=Ti(/[A-Za-z]/),_n=Ti(/[\dA-Za-z]/),sq=Ti(/[#-'*+\--9=?A-Z^-~]/);function Qm(t){return t!==null&&(t<32||t===127)}const Xm=Ti(/\d/),aq=Ti(/[\dA-Fa-f]/),oq=Ti(/[!-/:-@[-`{-~]/);function Ct(t){return t!==null&&t<-2}function dn(t){return t!==null&&(t<0||t===32)}function Qt(t){return t===-2||t===-1||t===32}const lq=Ti(new RegExp("\\p{P}|\\p{S}","u")),uq=Ti(/\s/);function Ti(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Fa(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 Qt(d)?(t.enter(n),f(d)):e(d)}function f(d){return Qt(d)&&l++<a?(t.consume(d),f):(t.exit(n),e(d))}}const cq={tokenize:fq};function fq(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 dq={tokenize:hq},NT={tokenize:pq};function hq(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&&M();const B=e.events.length;let Y=B,z;for(;Y--;)if(e.events[Y][0]==="exit"&&e.events[Y][1].type==="chunkFlow"){z=e.events[Y][1].end;break}_(i);let F=B;for(;F<e.events.length;)e.events[F][1].end={...z},F++;return Sr(e.events,Y+1,0,e.events.slice(B)),e.events.length=F,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(NT,m,y)(R)}function m(R){return a&&M(),_(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(NT,v,S)(R)}function v(R){return i++,n.push([e.currentConstruct,e.containerState]),b(R)}function S(R){if(R===null){a&&M(),_(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 Y=e.sliceStream(R);if(B&&Y.push(null),R.previous=l,l&&(l.next=R),l=R,a.defineSkip(R.start),a.write(Y),e.parser.lazy[R.start.line]){let z=a.events.length;for(;z--;)if(a.events[z][1].start.offset<u&&(!a.events[z][1].end||a.events[z][1].end.offset>u))return;const F=e.events.length;let N=F,P,K;for(;N--;)if(e.events[N][0]==="exit"&&e.events[N][1].type==="chunkFlow"){if(P){K=e.events[N][1].end;break}P=!0}for(_(i),z=F;z<e.events.length;)e.events[z][1].end={...K},z++;Sr(e.events,N+1,0,e.events.slice(F)),e.events.length=z}}function _(R){let B=n.length;for(;B-- >R;){const Y=n[B];e.containerState=Y[1],Y[0].exit.call(e,t)}n.length=R}function M(){a.write([null]),l=void 0,a=void 0,e.containerState._closeFlow=void 0}}function pq(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 MT(t){if(t===null||dn(t)||uq(t))return 1;if(lq(t))return 2}function Zm(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 Jm={name:"attention",resolveAll:mq,tokenize:gq};function mq(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};LT(y,-d),LT(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=Vn(h,[["enter",t[i][1],e],["exit",t[i][1],e]])),h=Vn(h,[["enter",a,e],["enter",u,e],["exit",u,e],["enter",l,e]]),h=Vn(h,Zm(e.parser.constructs.insideSpan.null,t.slice(i+1,n),e)),h=Vn(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=Vn(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 gq(t,e){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,a=MT(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=MT(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 LT(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const yq={name:"autolink",tokenize:bq};function bq(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||Qm(v)?n(v):(t.consume(v),d)}function h(v){return v===64?(t.consume(v),m):sq(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 sf={partial:!0,tokenize:vq};function vq(t,e,n){return i;function i(l){return Qt(l)?ue(t,a,"linePrefix")(l):a(l)}function a(l){return l===null||Ct(l)?e(l):n(l)}}const zT={continuation:{tokenize:Sq},exit:wq,name:"blockQuote",tokenize:xq};function xq(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 Qt(u)?(t.enter("blockQuotePrefixWhitespace"),t.consume(u),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(u))}}function Sq(t,e,n){const i=this;return a;function a(u){return Qt(u)?ue(t,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return t.attempt(zT,e,n)(u)}}function wq(t){t.exit("blockQuote")}const jT={name:"characterEscape",tokenize:Eq};function Eq(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 oq(l)?(t.enter("characterEscapeValue"),t.consume(l),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(l)}}const IT={name:"characterReference",tokenize:Tq};function Tq(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=aq,m):(t.enter("characterReferenceValue"),l=7,u=Xm,m(y))}function m(y){if(y===59&&a){const b=t.exit("characterReferenceValue");return u===_n&&!$m(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 BT={partial:!0,tokenize:_q},UT={concrete:!0,name:"codeFenced",tokenize:Cq};function Cq(t,e,n){const i=this,a={partial:!0,tokenize:Y};let l=0,u=0,f;return d;function d(z){return h(z)}function h(z){const F=i.events[i.events.length-1];return l=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,f=z,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),m(z)}function m(z){return z===f?(u++,t.consume(z),m):u<3?n(z):(t.exit("codeFencedFenceSequence"),Qt(z)?ue(t,y,"whitespace")(z):y(z))}function y(z){return z===null||Ct(z)?(t.exit("codeFencedFence"),i.interrupt?e(z):t.check(BT,w,B)(z)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),b(z))}function b(z){return z===null||Ct(z)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),y(z)):Qt(z)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ue(t,v,"whitespace")(z)):z===96&&z===f?n(z):(t.consume(z),b)}function v(z){return z===null||Ct(z)?y(z):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),S(z))}function S(z){return z===null||Ct(z)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),y(z)):z===96&&z===f?n(z):(t.consume(z),S)}function w(z){return t.attempt(a,B,C)(z)}function C(z){return t.enter("lineEnding"),t.consume(z),t.exit("lineEnding"),_}function _(z){return l>0&&Qt(z)?ue(t,M,"linePrefix",l+1)(z):M(z)}function M(z){return z===null||Ct(z)?t.check(BT,w,B)(z):(t.enter("codeFlowValue"),R(z))}function R(z){return z===null||Ct(z)?(t.exit("codeFlowValue"),M(z)):(t.consume(z),R)}function B(z){return t.exit("codeFenced"),e(z)}function Y(z,F,N){let P=0;return K;function K(it){return z.enter("lineEnding"),z.consume(it),z.exit("lineEnding"),et}function et(it){return z.enter("codeFencedFence"),Qt(it)?ue(z,at,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(it):at(it)}function at(it){return it===f?(z.enter("codeFencedFenceSequence"),ft(it)):N(it)}function ft(it){return it===f?(P++,z.consume(it),ft):P>=u?(z.exit("codeFencedFenceSequence"),Qt(it)?ue(z,st,"whitespace")(it):st(it)):N(it)}function st(it){return it===null||Ct(it)?(z.exit("codeFencedFence"),F(it)):N(it)}}}function _q(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 Wm={name:"codeIndented",tokenize:Oq},Aq={partial:!0,tokenize:Rq};function Oq(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(Aq,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 Rq(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 kq={name:"codeText",previous:Nq,resolve:Dq,tokenize:Mq};function Dq(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 Nq(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Mq(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 Lq{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&&ql(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),ql(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ql(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);ql(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ql(this.left,n.reverse())}}}function ql(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 PT(t){const e={};let n=-1,i,a,l,u,f,d,h;const m=new Lq(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,zq(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 zq(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]),M=l.pop();d.push([M,M+_.length-1]),t.splice(M,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 jq={resolve:Bq,tokenize:Uq},Iq={partial:!0,tokenize:Pq};function Bq(t){return PT(t),t}function Uq(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(Iq,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 Pq(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 qT(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||Qm(_)?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||dn(_))?(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||Qm(_)?n(_):(t.consume(_),_===92?C:w)}function C(_){return _===40||_===41||_===92?(t.consume(_),w):w(_)}}function FT(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=!Qt(v)),v===92?b:y)}function b(v){return v===91||v===92||v===93?(t.consume(v),f++,y):y(v)}}function VT(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 Fl(t,e){let n;return i;function i(a){return Ct(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),n=!0,i):Qt(a)?ue(t,i,n?"linePrefix":"lineSuffix")(a):e(a)}}const qq={name:"definition",tokenize:Vq},Fq={partial:!0,tokenize:Hq};function Vq(t,e,n){const i=this;let a;return l;function l(v){return t.enter("definition"),u(v)}function u(v){return FT.call(i,t,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function f(v){return a=qa(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 dn(v)?Fl(t,h)(v):h(v)}function h(v){return qT(t,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function m(v){return t.attempt(Fq,y,y)(v)}function y(v){return Qt(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 Hq(t,e,n){return i;function i(f){return dn(f)?Fl(t,a)(f):n(f)}function a(f){return VT(t,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function l(f){return Qt(f)?ue(t,u,"whitespace")(f):u(f)}function u(f){return f===null||Ct(f)?e(f):n(f)}}const Gq={name:"hardBreakEscape",tokenize:Yq};function Yq(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 Kq={name:"headingAtx",resolve:$q,tokenize:Qq};function $q(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 Qq(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||dn(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)):Qt(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||dn(m)?(t.exit("atxHeadingText"),f(m)):(t.consume(m),h)}}const Xq=["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"],HT=["pre","script","style","textarea"],Zq={concrete:!0,name:"htmlFlow",resolveTo:tF,tokenize:eF},Jq={partial:!0,tokenize:rF},Wq={partial:!0,tokenize:nF};function tF(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 eF(t,e,n){const i=this;let a,l,u,f,d;return h;function h(T){return m(T)}function m(T){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(T),y}function y(T){return T===33?(t.consume(T),b):T===47?(t.consume(T),l=!0,w):T===63?(t.consume(T),a=3,i.interrupt?e:O):wr(T)?(t.consume(T),u=String.fromCharCode(T),C):n(T)}function b(T){return T===45?(t.consume(T),a=2,v):T===91?(t.consume(T),a=5,f=0,S):wr(T)?(t.consume(T),a=4,i.interrupt?e:O):n(T)}function v(T){return T===45?(t.consume(T),i.interrupt?e:O):n(T)}function S(T){const nt="CDATA[";return T===nt.charCodeAt(f++)?(t.consume(T),f===nt.length?i.interrupt?e:at:S):n(T)}function w(T){return wr(T)?(t.consume(T),u=String.fromCharCode(T),C):n(T)}function C(T){if(T===null||T===47||T===62||dn(T)){const nt=T===47,lt=u.toLowerCase();return!nt&&!l&&HT.includes(lt)?(a=1,i.interrupt?e(T):at(T)):Xq.includes(u.toLowerCase())?(a=6,nt?(t.consume(T),_):i.interrupt?e(T):at(T)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(T):l?M(T):R(T))}return T===45||_n(T)?(t.consume(T),u+=String.fromCharCode(T),C):n(T)}function _(T){return T===62?(t.consume(T),i.interrupt?e:at):n(T)}function M(T){return Qt(T)?(t.consume(T),M):K(T)}function R(T){return T===47?(t.consume(T),K):T===58||T===95||wr(T)?(t.consume(T),B):Qt(T)?(t.consume(T),R):K(T)}function B(T){return T===45||T===46||T===58||T===95||_n(T)?(t.consume(T),B):Y(T)}function Y(T){return T===61?(t.consume(T),z):Qt(T)?(t.consume(T),Y):R(T)}function z(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(t.consume(T),d=T,F):Qt(T)?(t.consume(T),z):N(T)}function F(T){return T===d?(t.consume(T),d=null,P):T===null||Ct(T)?n(T):(t.consume(T),F)}function N(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||dn(T)?Y(T):(t.consume(T),N)}function P(T){return T===47||T===62||Qt(T)?R(T):n(T)}function K(T){return T===62?(t.consume(T),et):n(T)}function et(T){return T===null||Ct(T)?at(T):Qt(T)?(t.consume(T),et):n(T)}function at(T){return T===45&&a===2?(t.consume(T),Z):T===60&&a===1?(t.consume(T),G):T===62&&a===4?(t.consume(T),dt):T===63&&a===3?(t.consume(T),O):T===93&&a===5?(t.consume(T),vt):Ct(T)&&(a===6||a===7)?(t.exit("htmlFlowData"),t.check(Jq,k,ft)(T)):T===null||Ct(T)?(t.exit("htmlFlowData"),ft(T)):(t.consume(T),at)}function ft(T){return t.check(Wq,st,k)(T)}function st(T){return t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),it}function it(T){return T===null||Ct(T)?ft(T):(t.enter("htmlFlowData"),at(T))}function Z(T){return T===45?(t.consume(T),O):at(T)}function G(T){return T===47?(t.consume(T),u="",q):at(T)}function q(T){if(T===62){const nt=u.toLowerCase();return HT.includes(nt)?(t.consume(T),dt):at(T)}return wr(T)&&u.length<8?(t.consume(T),u+=String.fromCharCode(T),q):at(T)}function vt(T){return T===93?(t.consume(T),O):at(T)}function O(T){return T===62?(t.consume(T),dt):T===45&&a===2?(t.consume(T),O):at(T)}function dt(T){return T===null||Ct(T)?(t.exit("htmlFlowData"),k(T)):(t.consume(T),dt)}function k(T){return t.exit("htmlFlow"),e(T)}}function nF(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 rF(t,e,n){return i;function i(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),t.attempt(sf,e,n)}}const iF={name:"htmlText",tokenize:sF};function sF(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),Y):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),M):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 dt="CDATA[";return O===dt.charCodeAt(l++)?(t.consume(O),l===dt.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 M(O){return O===null||O===62?Z(O):Ct(O)?(u=M,G(O)):(t.consume(O),M)}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 Y(O){return wr(O)?(t.consume(O),z):n(O)}function z(O){return O===45||_n(O)?(t.consume(O),z):F(O)}function F(O){return Ct(O)?(u=F,G(O)):Qt(O)?(t.consume(O),F):Z(O)}function N(O){return O===45||_n(O)?(t.consume(O),N):O===47||O===62||dn(O)?P(O):n(O)}function P(O){return O===47?(t.consume(O),Z):O===58||O===95||wr(O)?(t.consume(O),K):Ct(O)?(u=P,G(O)):Qt(O)?(t.consume(O),P):Z(O)}function K(O){return O===45||O===46||O===58||O===95||_n(O)?(t.consume(O),K):et(O)}function et(O){return O===61?(t.consume(O),at):Ct(O)?(u=et,G(O)):Qt(O)?(t.consume(O),et):P(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)):Qt(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||dn(O)?P(O):(t.consume(O),st)}function it(O){return O===47||O===62||dn(O)?P(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"),q}function q(O){return Qt(O)?ue(t,vt,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):vt(O)}function vt(O){return t.enter("htmlTextData"),u(O)}}const tg={name:"labelEnd",resolveAll:uF,resolveTo:cF,tokenize:fF},aF={tokenize:dF},oF={tokenize:hF},lF={tokenize:pF};function uF(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 cF(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=Vn(f,t.slice(l+1,l+i+3)),f=Vn(f,[["enter",m,e]]),f=Vn(f,Zm(e.parser.constructs.insideSpan.null,t.slice(l+i+4,u-3),e)),f=Vn(f,[["exit",m,e],t[u-2],t[u-1],["exit",h,e]]),f=Vn(f,t.slice(u+1)),f=Vn(f,[["exit",d,e]]),Sr(t,l,t.length,f),t}function fF(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(qa(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(aF,m,u?m:y)(b):b===91?t.attempt(oF,m,u?h:y)(b):u?m(b):y(b)}function h(b){return t.attempt(lF,m,y)(b)}function m(b){return e(b)}function y(b){return l._balanced=!0,n(b)}}function dF(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 dn(y)?Fl(t,l)(y):l(y)}function l(y){return y===41?m(y):qT(t,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function u(y){return dn(y)?Fl(t,d)(y):m(y)}function f(y){return n(y)}function d(y){return y===34||y===39||y===40?VT(t,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function h(y){return dn(y)?Fl(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 hF(t,e,n){const i=this;return a;function a(f){return FT.call(i,t,l,u,"reference","referenceMarker","referenceString")(f)}function l(f){return i.parser.defined.includes(qa(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?e(f):n(f)}function u(f){return n(f)}}function pF(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 mF={name:"labelStartImage",resolveAll:tg.resolveAll,tokenize:gF};function gF(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 yF={name:"labelStartLink",resolveAll:tg.resolveAll,tokenize:bF};function bF(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 eg={name:"lineEnding",tokenize:vF};function vF(t,e){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),ue(t,e,"linePrefix")}}const af={name:"thematicBreak",tokenize:xF};function xF(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"),Qt(h)?ue(t,f,"whitespace")(h):f(h))}}const hn={continuation:{tokenize:TF},exit:_F,name:"list",tokenize:EF},SF={partial:!0,tokenize:AF},wF={partial:!0,tokenize:CF};function EF(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:Xm(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(af,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 Xm(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(sf,i.interrupt?n:m,t.attempt(SF,b,y))}function m(v){return i.containerState.initialBlankLine=!0,l++,b(v)}function y(v){return Qt(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 TF(t,e,n){const i=this;return i.containerState._closeFlow=void 0,t.check(sf,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||!Qt(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(wF,e,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,ue(t,t.attempt(hn,e,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function CF(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 _F(t){t.exit(this.containerState.type)}function AF(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!Qt(l)&&u&&u[1].type==="listItemPrefixWhitespace"?e(l):n(l)}}const GT={name:"setextUnderline",resolveTo:OF,tokenize:RF};function OF(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 RF(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"),Qt(h)?ue(t,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Ct(h)?(t.exit("setextHeadingLine"),e(h)):n(h)}}const kF={tokenize:DF};function DF(t){const e=this,n=t.attempt(sf,i,t.attempt(this.parser.constructs.flowInitial,a,ue(t,t.attempt(this.parser.constructs.flow,a,t.attempt(jq,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 NF={resolveAll:KT()},MF=YT("string"),LF=YT("text");function YT(t){return{resolveAll:KT(t==="text"?zF: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 KT(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 zF(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 jF=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:qq},disable:{null:[]},document:{42:hn,43:hn,45:hn,48:hn,49:hn,50:hn,51:hn,52:hn,53:hn,54:hn,55:hn,56:hn,57:hn,62:zT},flow:{35:Kq,42:af,45:[GT,af],60:Zq,61:GT,95:af,96:UT,126:UT},flowInitial:{[-2]:Wm,[-1]:Wm,32:Wm},insideSpan:{null:[Jm,NF]},string:{38:IT,92:jT},text:{[-5]:eg,[-4]:eg,[-3]:eg,33:mF,38:IT,42:Jm,60:[yq,iF],91:yF,92:[Gq,jT],93:tg,95:Jm,96:kq}},Symbol.toStringTag,{value:"Module"}));function IF(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:F(Y),check:F(z),consume:M,enter:R,exit:B,interrupt:F(z,{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(et){return u=Vn(u,et),C(),u[u.length-1]!==null?[]:(N(e,0),h.events=Zm(l,h.events,h),h.events)}function b(et,at){return UF(v(et),at)}function v(et){return BF(u,et)}function S(){const{_bufferIndex:et,_index:at,line:ft,column:st,offset:it}=i;return{_bufferIndex:et,_index:at,line:ft,column:st,offset:it}}function w(et){a[et.line]=et.column,K()}function C(){let et;for(;i._index<u.length;){const at=u[i._index];if(typeof at=="string")for(et=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===et&&i._bufferIndex<at.length;)_(at.charCodeAt(i._bufferIndex));else _(at)}}function _(et){m=m(et)}function M(et){Ct(et)?(i.line++,i.column=1,i.offset+=et===-3?2:1,K()):et!==-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=et}function R(et,at){const ft=at||{};return ft.type=et,ft.start=S(),h.events.push(["enter",ft,h]),f.push(ft),ft}function B(et){const at=f.pop();return at.end=S(),h.events.push(["exit",at,h]),at}function Y(et,at){N(et,at.from)}function z(et,at){at.restore()}function F(et,at){return ft;function ft(st,it,Z){let G,q,vt,O;return Array.isArray(st)?k(st):"tokenize"in st?k([st]):dt(st);function dt(ht){return pt;function pt(Ot){const Jt=Ot!==null&&ht[Ot],kt=Ot!==null&&ht.null,pe=[...Array.isArray(Jt)?Jt:Jt?[Jt]:[],...Array.isArray(kt)?kt:kt?[kt]:[]];return k(pe)(Ot)}}function k(ht){return G=ht,q=0,ht.length===0?Z:T(ht[q])}function T(ht){return pt;function pt(Ot){return O=P(),vt=ht,ht.partial||(h.currentConstruct=ht),ht.name&&h.parser.constructs.disable.null.includes(ht.name)?lt():ht.tokenize.call(at?Object.assign(Object.create(h),at):h,d,nt,lt)(Ot)}}function nt(ht){return et(vt,O),it}function lt(ht){return O.restore(),++q<G.length?T(G[q]):Z}}}function N(et,at){et.resolveAll&&!l.includes(et)&&l.push(et),et.resolve&&Sr(h.events,at,h.events.length-at,et.resolve(h.events.slice(at),h)),et.resolveTo&&(h.events=et.resolveTo(h.events,h))}function P(){const et=S(),at=h.previous,ft=h.currentConstruct,st=h.events.length,it=Array.from(f);return{from:st,restore:Z};function Z(){i=et,h.previous=at,h.currentConstruct=ft,h.events.length=st,f=it,K()}}function K(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function BF(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 UF(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 PF(t){const i={constructs:nq([jF,...(t||{}).extensions||[]]),content:a(cq),defined:[],document:a(dq),flow:a(kF),lazy:{},string:a(MF),text:a(LF)};return i;function a(l){return u;function u(f){return IF(i,l,f)}}}function qF(t){for(;!PT(t););return t}const $T=/[\0\t\n\r]/g;function FF(){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($T.lastIndex=y,h=$T.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 VF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function HF(t){return t.replace(VF,GF)}function GF(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),l=a===120||a===88;return DT(n.slice(l?2:1),l?16:10)}return $m(n)||t}const QT={}.hasOwnProperty;function YF(t,e,n){return typeof e!="string"&&(n=e,e=void 0),KF(n)(qF(PF(n).document().write(FF()(t,e,!0))))}function KF(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Jl),autolinkProtocol:P,autolinkEmail:P,atxHeading:l(Rr),blockQuote:l(kt),characterEscape:P,characterReference:P,codeFenced:l(pe),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(pe,u),codeText:l(An,u),codeTextData:P,data:P,codeFlowValue:P,definition:l(Fs),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(yf),hardBreakEscape:l(ro),hardBreakTrailing:l(ro),htmlFlow:l(io,u),htmlFlowData:P,htmlText:l(io,u),htmlTextData:P,image:l(xg),label:u,link:l(Jl),listItem:l(Wl),listItemValue:b,listOrdered:l(so,y),listUnordered:l(so),paragraph:l(tu),reference:T,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(Rr),strong:l(Sg),thematicBreak:l(an)},exit:{atxHeading:d(),atxHeadingSequence:Y,autolink:d(),autolinkEmail:Jt,autolinkProtocol:Ot,blockQuote:d(),characterEscapeValue:K,characterReferenceMarkerHexadecimal:lt,characterReferenceMarkerNumeric:lt,characterReferenceValue:ht,characterReference:pt,codeFenced:d(C),codeFencedFence:w,codeFencedFenceInfo:v,codeFencedFenceMeta:S,codeFlowValue:K,codeIndented:d(_),codeText:d(it),codeTextData:K,data:K,definition:d(),definitionDestinationString:B,definitionLabelString:M,definitionTitleString:R,emphasis:d(),hardBreakEscape:d(at),hardBreakTrailing:d(at),htmlFlow:d(ft),htmlFlowData:K,htmlText:d(st),htmlTextData:K,image:d(G),label:vt,labelText:q,lineEnding:et,link:d(Z),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:nt,resourceDestinationString:O,resourceTitleString:dt,resource:k,setextHeading:d(N),setextHeadingLineSequence:F,setextHeadingText:z,strong:d(),thematicBreak:d()}};XT(e,(t||{}).mdastExtensions||[]);const n={};return i;function i(W){let ct={type:"root",children:[]};const At={stack:[ct],tokenStack:[],config:e,enter:f,exit:h,buffer:u,resume:m,data:n},jt=[];let Wt=-1;for(;++Wt<W.length;)if(W[Wt][1].type==="listOrdered"||W[Wt][1].type==="listUnordered")if(W[Wt][0]==="enter")jt.push(Wt);else{const gn=jt.pop();Wt=a(W,gn,Wt)}for(Wt=-1;++Wt<W.length;){const gn=e[W[Wt][0]];QT.call(gn,W[Wt][1].type)&&gn[W[Wt][1].type].call(Object.assign({sliceSerialize:W[Wt][2].sliceSerialize},At),W[Wt][1])}if(At.tokenStack.length>0){const gn=At.tokenStack[At.tokenStack.length-1];(gn[1]||ZT).call(At,void 0,gn[0])}for(ct.position={start:Ci(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:Ci(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},Wt=-1;++Wt<e.transforms.length;)ct=e.transforms[Wt](ct)||ct;return ct}function a(W,ct,At){let jt=ct-1,Wt=-1,gn=!1,Kr,lr,ur,Ie;for(;++jt<=At;){const Se=W[jt];switch(Se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Se[0]==="enter"?Wt++:Wt--,Ie=void 0;break}case"lineEndingBlank":{Se[0]==="enter"&&(Kr&&!Ie&&!Wt&&!ur&&(ur=jt),Ie=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ie=void 0}if(!Wt&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||Wt===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(Kr){let ke=jt;for(lr=void 0;ke--;){const cr=W[ke];if(cr[1].type==="lineEnding"||cr[1].type==="lineEndingBlank"){if(cr[0]==="exit")continue;lr&&(W[lr][1].type="lineEndingBlank",gn=!0),cr[1].type="lineEnding",lr=ke}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)&&(Kr._spread=!0),Kr.end=Object.assign({},lr?W[lr][1].start:Se[1].end),W.splice(lr||jt,0,["exit",Kr,Se[2]]),jt++,At++}if(Se[1].type==="listItemPrefix"){const ke={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};Kr=ke,W.splice(jt,0,["enter",ke,Se[2]]),jt++,At++,ur=void 0,Ie=!0}}}return W[ct][1]._spread=gn,At}function l(W,ct){return At;function At(jt){f.call(this,W(jt),jt),ct&&ct.call(this,jt)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(W,ct,At){this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([ct,At||void 0]),W.position={start:Ci(ct.start),end:void 0}}function d(W){return ct;function ct(At){W&&W.call(this,At),h.call(this,At)}}function h(W,ct){const At=this.stack.pop(),jt=this.tokenStack.pop();if(jt)jt[0].type!==W.type&&(ct?ct.call(this,W,jt[0]):(jt[1]||ZT).call(this,W,jt[0]));else throw new Error("Cannot close `"+W.type+"` ("+Ul({start:W.start,end:W.end})+"): it’s not open");At.position.end=Ci(W.end)}function m(){return tq(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(W){if(this.data.expectingFirstListItemValue){const ct=this.stack[this.stack.length-2];ct.start=Number.parseInt(this.sliceSerialize(W),10),this.data.expectingFirstListItemValue=void 0}}function v(){const W=this.resume(),ct=this.stack[this.stack.length-1];ct.lang=W}function S(){const W=this.resume(),ct=this.stack[this.stack.length-1];ct.meta=W}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const W=this.resume(),ct=this.stack[this.stack.length-1];ct.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const W=this.resume(),ct=this.stack[this.stack.length-1];ct.value=W.replace(/(\r?\n|\r)$/g,"")}function M(W){const ct=this.resume(),At=this.stack[this.stack.length-1];At.label=ct,At.identifier=qa(this.sliceSerialize(W)).toLowerCase()}function R(){const W=this.resume(),ct=this.stack[this.stack.length-1];ct.title=W}function B(){const W=this.resume(),ct=this.stack[this.stack.length-1];ct.url=W}function Y(W){const ct=this.stack[this.stack.length-1];if(!ct.depth){const At=this.sliceSerialize(W).length;ct.depth=At}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function F(W){const ct=this.stack[this.stack.length-1];ct.depth=this.sliceSerialize(W).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function P(W){const At=this.stack[this.stack.length-1].children;let jt=At[At.length-1];(!jt||jt.type!=="text")&&(jt=wg(),jt.position={start:Ci(W.start),end:void 0},At.push(jt)),this.stack.push(jt)}function K(W){const ct=this.stack.pop();ct.value+=this.sliceSerialize(W),ct.position.end=Ci(W.end)}function et(W){const ct=this.stack[this.stack.length-1];if(this.data.atHardBreak){const At=ct.children[ct.children.length-1];At.position.end=Ci(W.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(ct.type)&&(P.call(this,W),K.call(this,W))}function at(){this.data.atHardBreak=!0}function ft(){const W=this.resume(),ct=this.stack[this.stack.length-1];ct.value=W}function st(){const W=this.resume(),ct=this.stack[this.stack.length-1];ct.value=W}function it(){const W=this.resume(),ct=this.stack[this.stack.length-1];ct.value=W}function Z(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ct=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ct,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function G(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ct=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ct,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function q(W){const ct=this.sliceSerialize(W),At=this.stack[this.stack.length-2];At.label=HF(ct),At.identifier=qa(ct).toLowerCase()}function vt(){const W=this.stack[this.stack.length-1],ct=this.resume(),At=this.stack[this.stack.length-1];if(this.data.inReference=!0,At.type==="link"){const jt=W.children;At.children=jt}else At.alt=ct}function O(){const W=this.resume(),ct=this.stack[this.stack.length-1];ct.url=W}function dt(){const W=this.resume(),ct=this.stack[this.stack.length-1];ct.title=W}function k(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function nt(W){const ct=this.resume(),At=this.stack[this.stack.length-1];At.label=ct,At.identifier=qa(this.sliceSerialize(W)).toLowerCase(),this.data.referenceType="full"}function lt(W){this.data.characterReferenceType=W.type}function ht(W){const ct=this.sliceSerialize(W),At=this.data.characterReferenceType;let jt;At?(jt=DT(ct,At==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):jt=$m(ct);const Wt=this.stack[this.stack.length-1];Wt.value+=jt}function pt(W){const ct=this.stack.pop();ct.position.end=Ci(W.end)}function Ot(W){K.call(this,W);const ct=this.stack[this.stack.length-1];ct.url=this.sliceSerialize(W)}function Jt(W){K.call(this,W);const ct=this.stack[this.stack.length-1];ct.url="mailto:"+this.sliceSerialize(W)}function kt(){return{type:"blockquote",children:[]}}function pe(){return{type:"code",lang:null,meta:null,value:""}}function An(){return{type:"inlineCode",value:""}}function Fs(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yf(){return{type:"emphasis",children:[]}}function Rr(){return{type:"heading",depth:0,children:[]}}function ro(){return{type:"break"}}function io(){return{type:"html",value:""}}function xg(){return{type:"image",title:null,url:"",alt:null}}function Jl(){return{type:"link",title:null,url:"",children:[]}}function so(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function Wl(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function tu(){return{type:"paragraph",children:[]}}function Sg(){return{type:"strong",children:[]}}function wg(){return{type:"text",value:""}}function an(){return{type:"thematicBreak"}}}function Ci(t){return{line:t.line,column:t.column,offset:t.offset}}function XT(t,e){let n=-1;for(;++n<e.length;){const i=e[n];Array.isArray(i)?XT(t,i):$F(t,i)}}function $F(t,e){let n;for(n in e)if(QT.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 ZT(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Ul({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Ul({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Ul({start:e.start,end:e.end})+") is still open")}function QF(t){const e=this;e.parser=n;function n(i){return YF(i,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function XF(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 ZF(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
`}]}function JF(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 WF(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function tV(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function eV(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),a=Fa(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 nV(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 rV(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function JT(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 iV(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return JT(t,e);const a={src:Fa(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 sV(t,e){const n={src:Fa(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 aV(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 oV(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return JT(t,e);const a={href:Fa(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 lV(t,e){const n={href:Fa(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 uV(t,e,n){const i=t.all(e),a=n?cV(n):WT(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 cV(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=WT(n[i])}return e}function WT(t){const e=t.spread;return e??t.children.length>1}function fV(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 dV(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function hV(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function pV(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function mV(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=Fm(e.children[1]),d=vT(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 gV(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 yV(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const tC=9,eC=32;function bV(t){const e=String(t),n=/\r?\n|\r/g;let i=n.exec(e),a=0;const l=[];for(;i;)l.push(nC(e.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=n.exec(e);return l.push(nC(e.slice(a),a>0,!1)),l.join("")}function nC(t,e,n){let i=0,a=t.length;if(e){let l=t.codePointAt(i);for(;l===tC||l===eC;)i++,l=t.codePointAt(i)}if(n){let l=t.codePointAt(a-1);for(;l===tC||l===eC;)a--,l=t.codePointAt(a-1)}return a>i?t.slice(i,a):""}function vV(t,e){const n={type:"text",value:bV(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function xV(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const SV={blockquote:XF,break:ZF,code:JF,delete:WF,emphasis:tV,footnoteReference:eV,heading:nV,html:rV,imageReference:iV,image:sV,inlineCode:aV,linkReference:oV,link:lV,listItem:uV,list:fV,paragraph:dV,root:hV,strong:pV,table:mV,tableCell:yV,tableRow:gV,text:vV,thematicBreak:xV,toml:of,yaml:of,definition:of,footnoteDefinition:of};function of(){}const rC=-1,lf=0,Vl=1,uf=2,ng=3,rg=4,ig=5,sg=6,iC=7,sC=8,aC=typeof self=="object"?self:globalThis,wV=(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 lf:case rC:return n(u,a);case Vl:{const f=n([],a);for(const d of u)f.push(i(d));return f}case uf:{const f=n({},a);for(const[d,h]of u)f[i(d)]=i(h);return f}case ng:return n(new Date(u),a);case rg:{const{source:f,flags:d}=u;return n(new RegExp(f,d),a)}case ig:{const f=n(new Map,a);for(const[d,h]of u)f.set(i(d),i(h));return f}case sg:{const f=n(new Set,a);for(const d of u)f.add(i(d));return f}case iC:{const{name:f,message:d}=u;return n(new aC[f](d),a)}case sC: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 aC[l](u),a)};return i},oC=t=>wV(new Map,t)(0),Va="",{toString:EV}={},{keys:TV}=Object,Hl=t=>{const e=typeof t;if(e!=="object"||!t)return[lf,e];const n=EV.call(t).slice(8,-1);switch(n){case"Array":return[Vl,Va];case"Object":return[uf,Va];case"Date":return[ng,Va];case"RegExp":return[rg,Va];case"Map":return[ig,Va];case"Set":return[sg,Va];case"DataView":return[Vl,n]}return n.includes("Array")?[Vl,n]:n.includes("Error")?[iC,n]:[uf,n]},cf=([t,e])=>t===lf&&(e==="function"||e==="symbol"),CV=(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]=Hl(u);switch(f){case lf:{let m=u;switch(d){case"bigint":f=sC,m=u.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return a([rC],u)}return a([f,m],u)}case Vl:{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 uf:{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 TV(u))(t||!cf(Hl(u[b])))&&m.push([l(b),l(u[b])]);return y}case ng:return a([f,u.toISOString()],u);case rg:{const{source:m,flags:y}=u;return a([f,{source:m,flags:y}],u)}case ig:{const m=[],y=a([f,m],u);for(const[b,v]of u)(t||!(cf(Hl(b))||cf(Hl(v))))&&m.push([l(b),l(v)]);return y}case sg:{const m=[],y=a([f,m],u);for(const b of u)(t||!cf(Hl(b)))&&m.push(l(b));return y}}const{message:h}=u;return a([f,{name:d,message:h}],u)};return l},lC=(t,{json:e,lossy:n}={})=>{const i=[];return CV(!(e||n),!!e,new Map,i)(t),i},ff=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?oC(lC(t,e)):structuredClone(t):(t,e)=>oC(lC(t,e));function _V(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 AV(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function OV(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||_V,i=t.options.footnoteBackLabel||AV,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=Fa(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 M=typeof n=="string"?n:n(d,v);typeof M=="string"&&(M={type:"text",value:M}),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(M)?M:[M]})}const C=m[m.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const M=C.children[C.children.length-1];M&&M.type==="text"?M.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:{...ff(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 uC=(function(t){if(t==null)return NV;if(typeof t=="function")return df(t);if(typeof t=="object")return Array.isArray(t)?RV(t):kV(t);if(typeof t=="string")return DV(t);throw new Error("Expected function, string, or object as test")});function RV(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=uC(t[n]);return df(i);function i(...a){let l=-1;for(;++l<e.length;)if(e[l].apply(this,a))return!0;return!1}}function kV(t){const e=t;return df(n);function n(i){const a=i;let l;for(l in t)if(a[l]!==e[l])return!1;return!0}}function DV(t){return df(e);function e(n){return n&&n.type===t}}function df(t){return e;function e(n,i,a){return!!(MV(n)&&t.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function NV(){return!0}function MV(t){return t!==null&&typeof t=="object"&&"type"in t}function bG(t){return t}const cC=[],LV=!0,fC=!1,zV="skip";function jV(t,e,n,i){let a;typeof e=="function"&&typeof n!="function"?(i=n,n=e):a=e;const l=uC(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=cC,S,w,C;if((!e||l(d,h,m[m.length-1]||void 0))&&(v=IV(n(d,m)),v[0]===fC))return v;if("children"in d&&d.children){const _=d;if(_.children&&v[0]!==zV)for(w=(i?_.children.length:-1)+u,C=m.concat(_);w>-1&&w<_.children.length;){const M=_.children[w];if(S=f(M,w,C)(),S[0]===fC)return S;w=typeof S[1]=="number"?S[1]:w+u}}return v}}}function IV(t){return Array.isArray(t)?t:typeof t=="number"?[LV,t]:t==null?cC:[t]}function dC(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),jV(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 ag={}.hasOwnProperty,BV={};function UV(t,e){const n=e||BV,i=new Map,a=new Map,l=new Map,u={...SV,...n.handlers},f={all:h,applyData:qV,definitionById:i,footnoteById:a,footnoteCounts:l,footnoteOrder:[],handlers:u,one:d,options:n,patch:PV,wrap:VV};return dC(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(ag.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,_=ff(C);return _.children=f.all(m),_}return ff(m)}return(f.options.unknownHandler||FV)(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=hC(S.value)),!Array.isArray(S)&&S.type==="element")){const w=S.children[0];w&&w.type==="text"&&(w.value=hC(w.value))}Array.isArray(S)?y.push(...S):y.push(S)}}}return y}}function PV(t,e){t.position&&(e.position=N6(t))}function qV(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,ff(l)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function FV(t,e){const n=e.data||{},i="value"in e&&!(ag.call(n,"hProperties")||ag.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 VV(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 hC(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function pC(t,e){const n=UV(t,e),i=n.one(t,void 0),a=OV(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&l.children.push({type:"text",value:`
`},a),l}function HV(t,e){return t&&"run"in t?async function(n,i){const a=pC(n,{file:i,...e});await t.run(a,i)}:function(n,i){return pC(n,{file:i,...t||e})}}function mC(t){if(t)throw t}var og,gC;function GV(){if(gC)return og;gC=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 og=function d(){var h,m,y,b,v,S,w=arguments[0],C=1,_=arguments.length,M=!1;for(typeof w=="boolean"&&(M=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&&(M&&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(M,S,b)})):typeof b<"u"&&u(w,{name:m,newValue:b}));return w},og}var YV=GV();const lg=Ut(YV);function ug(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 KV(){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?$V(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 $V(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:QV,dirname:XV,extname:ZV,join:JV,sep:"/"};function QV(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Gl(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 XV(t){if(Gl(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 ZV(t){Gl(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 JV(...t){let e=-1,n;for(;++e<t.length;)Gl(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":WV(n)}function WV(t){Gl(t);const e=t.codePointAt(0)===47;let n=tH(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function tH(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 Gl(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const eH={cwd:nH};function nH(){return"/"}function cg(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function rH(t){if(typeof t=="string")t=new URL(t);else if(!cg(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 iH(t)}function iH(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 fg=["history","path","basename","stem","extname","dirname"];class yC{constructor(e){let n;e?cg(e)?n={path:e}:typeof e=="string"||sH(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":eH.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<fg.length;){const l=fg[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)fg.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Er.basename(this.path):void 0}set basename(e){hg(e,"basename"),dg(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){bC(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(dg(e,"extname"),bC(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){cg(e)&&(e=rH(e)),hg(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){hg(e,"stem"),dg(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 Je(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 dg(t,e){if(t&&t.includes(Er.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Er.sep+"`")}function hg(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function bC(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function sH(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const aH=(function(t){const i=this.constructor.prototype,a=i[t],l=function(){return a.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),oH={}.hasOwnProperty;class pg extends aH{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=KV()}copy(){const e=new pg;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];e.use(...i)}return e.data(lg(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(yg("data",this.frozen),this.namespace[e]=n,this):oH.call(this.namespace,e)&&this.namespace[e]||void 0:e?(yg("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=hf(e),i=this.parser||this.Parser;return mg("parse",i),i(String(n),n)}process(e,n){const i=this;return this.freeze(),mg("process",this.parser||this.Parser),gg("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(l,u){const f=hf(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);cH(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(),mg("processSync",this.parser||this.Parser),gg("processSync",this.compiler||this.Compiler),this.process(e,a),xC("processSync","process",n),i;function a(l,u){n=!0,mC(l),i=u}}run(e,n,i){vC(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=hf(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),xC("runSync","run",i),a;function l(u,f){mC(u),a=f,i=!0}}stringify(e,n){this.freeze();const i=hf(n),a=this.compiler||this.Compiler;return gg("stringify",a),vC(e),a(e,i)}use(e,...n){const i=this.attachers,a=this.namespace;if(yg("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=lg(!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];ug(w)&&ug(v)&&(v=lg(!0,w,v)),i[b]=[h,v,...S]}}}}const lH=new pg().freeze();function mg(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function gg(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function yg(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 vC(t){if(!ug(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function xC(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function hf(t){return uH(t)?t:new yC(t)}function uH(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function cH(t){return typeof t=="string"||fH(t)}function fH(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const dH="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",SC=[],wC={allowDangerousHtml:!0},hH=/^(https?|ircs?|mailto|xmpp)$/i,pH=[{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 EC(t){const e=mH(t),n=gH(t);return yH(e.runSync(e.parse(n),n),t)}function mH(t){const e=t.rehypePlugins||SC,n=t.remarkPlugins||SC,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...wC}:wC;return lH().use(QF).use(n).use(HV,i).use(e)}function gH(t){const e=t.children||"",n=new yC;return typeof e=="string"&&(n.value=e),n}function yH(t,e){const n=e.allowedElements,i=e.allowElement,a=e.components,l=e.disallowedElements,u=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||bH;for(const m of pH)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+dH+m.id,void 0);return dC(t,h),I6(t,{Fragment:L.Fragment,components:a,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.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 Km)if(Object.hasOwn(Km,v)&&Object.hasOwn(m.properties,v)){const S=m.properties[v],w=Km[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 bH(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||hH.test(t.slice(0,e))?t:""}const vH=({onClick:t,buttons:e})=>L.jsx("div",{className:"flex gap-2 px-1",children:e==null?void 0:e.map(n=>L.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:[L.jsx("span",{className:"flex flex-col text-3xl",children:n.icon}),L.jsx("div",{className:"font-semibold",children:n.label})]},n.id))}),xH=({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 L.jsx(Al,{children:t&&L.jsxs(Fn.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:[L.jsxs("div",{className:"flex justify-between",children:[L.jsxs("div",{className:"text-primary-600 flex items-center gap-3",children:[L.jsx(yl,{className:"transition hover:scale-[1.1]",size:"mds"}),L.jsx("span",{className:"chat-welcome-message-notification-header text-[17px] font-bold",children:l==null?void 0:l.chatbotName})]}),L.jsx(Ia,{onClick:e,icon:L.jsx(Lm,{}),variant:"plain",color:"neutral",size:"small"})]}),L.jsxs("div",{className:"relative",children:[L.jsx("div",{ref:u,onScroll:b,className:"scroll-hidden scroll-smooth-ios max-h-[150px] overflow-y-scroll pr-2",children:L.jsx(EC,{children:l==null?void 0:l.agentInitMessage})}),h&&L.jsxs(L.Fragment,{children:[L.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"}`}),L.jsx(Fn.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:L.jsx(w3,{className:"h-4 w-4"})})]})]}),(l==null?void 0:l.chatbotMode)!==il.FLOW_ONLY&&(l==null?void 0:l.messageTemplates)&&l.welcomeNotificationActionsMode===wh.MESSAGE_TEMPLATES&&L.jsx(rT,{messageTemplates:l==null?void 0:l.messageTemplates,size:"sm",onClick:n}),(l==null?void 0:l.chatbotMode)!==il.FLOW_ONLY&&(l==null?void 0:l.actionButtons)&&l.welcomeNotificationActionsMode===wh.ACTION_BUTTONS&&L.jsx(vH,{buttons:l==null?void 0:l.actionButtons,size:"sm",onClick:a}),L.jsx(Uc,{iconRight:L.jsx(Ca,{}),className:"chat-welcome-message-notification-button font-semibold",onClick:i,children:y("startChatButton")})]},"chat-welcome")})},SH={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.2}},exit:{opacity:0,y:20,transition:{duration:.1}}},wH={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.2}},exit:{opacity:0,transition:{duration:.1}}},TC={shake:{rotate:[0,-5,5,-4,4,-2,2,0],transition:{duration:.6}}},EH=({onClick:t,hideTitle:e})=>{const{data:n}=br(),i=n6();return I.useEffect(()=>{if(n!=null&&n.animateThumbnail){const a=setInterval(()=>{i.start("shake")},5e3);return()=>clearInterval(a)}},[i,n]),L.jsxs(L.Fragment,{children:[L.jsx(Al,{children:!e&&L.jsx(Fn.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:L.jsx(Fn.div,{animate:i,variants:TC,children:L.jsxs(Fn.button,{className:ye("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)===gc.STYLE2&&"text-center"),variants:wH,onClick:t,children:[(n==null?void 0:n.thumbnailStyle)===gc.STYLE1&&L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"text-xs",children:n==null?void 0:n.chatbotThumbnailTitle}),L.jsx("span",{className:"text-sm font-semibold",children:n==null?void 0:n.chatbotThumbnailSubtitle})]}),(n==null?void 0:n.thumbnailStyle)===gc.STYLE2&&L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"text-xl font-semibold",children:n==null?void 0:n.chatbotThumbnailTitle}),L.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})]})]})})})}),L.jsx(Fn.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:L.jsx(Fn.button,{className:"cursor-pointer",variants:SH,onClick:t,children:L.jsx(Fn.div,{animate:i,variants:TC,children:L.jsx(yl,{isOnline:!0,className:"transition hover:scale-[1.1]",size:"md"})})})})]})},TH={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 CH({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 L.jsxs("div",{className:"relative inline-block",ref:h,children:[L.jsx("div",{className:ye("cursor-pointer",l),onClick:y=>{y.stopPropagation(),d(b=>!b)},children:t}),f&&L.jsx("div",{className:ye("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)=>L.jsx("div",{children:y.customContent?y.customContent:L.jsxs("button",{onClick:v=>{var S;v.stopPropagation(),(S=y.onClick)==null||S.call(y),d(!1)},className:ye("group flex w-full cursor-pointer items-center gap-2 rounded-lg px-1.5 py-1.5 text-left",TH[y.variant||"default"],u),children:[y.icon&&L.jsx("span",{className:"size-4",children:y.icon}),L.jsx("span",{className:"text-sm font-medium",children:y.label}),L.jsx("span",{className:"text-sm font-medium",children:y.content}),y.shortcut&&L.jsx("kbd",{className:"ml-auto hidden font-sans text-xs text-black/50 group-hover:inline",children:y.shortcut})]})},b))})]})}const _H=({onClose:t,onNewChat:e,hideClose:n,hideContextMenuButton:i})=>{const{t:a}=mr(),{data:l}=br(),u=()=>L.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:[L.jsx(yl,{size:"xs"}),L.jsx("span",{children:l==null?void 0:l.chatbotName})]});return L.jsxs("div",{className:"flex w-full justify-between p-4",children:[L.jsx("div",{className:"flex-1 shrink-1",children:!i&&L.jsx(CH,{items:[{content:a("headerDropdown.reloadChat"),icon:L.jsx(x3,{}),onClick:e}],gap:-5,children:L.jsx(Ia,{icon:L.jsx(T3,{}),variant:"plain",color:"neutral",size:"small"})})}),u(),L.jsx("div",{className:"flex flex-1 shrink-1 justify-end",children:!n&&L.jsx(Ia,{onClick:t,icon:L.jsx(Lm,{}),variant:"plain",color:"neutral",size:"small"})})]})},AH=({className:t})=>{const{t:e}=mr();return L.jsxs("a",{className:ye("flex items-center justify-center gap-1",t),href:"https://bezvabot.cz",target:"_blank",style:{textDecoration:"none"},children:[L.jsx("span",{className:"text-xs font-bold text-gray-400",children:e("poweredByBezvabot")}),L.jsx("img",{src:`${hl.APP_URL}/bezvabot-logo.png`,alt:"Bezvabot logo",className:"h-5"})]})},OH=()=>{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},RH=({message:t,className:e})=>L.jsxs("div",{className:ye("flex w-full items-center justify-center gap-2 bg-red-400 py-1 text-center text-sm font-bold text-white",e),children:[L.jsx(cw,{className:"w-5 stroke-[3]"}),t]}),CC=t=>{const e=t.getHours().toString().padStart(2,"0"),n=t.getMinutes().toString().padStart(2,"0");return`${e}:${n}`},kH=(t,e)=>t.toLocaleDateString("cs",{day:"2-digit",month:"2-digit",year:"numeric"}).replace(/\s/g,"");function DH(t){return Date.now()-t.getTime()>864e5}const pf=({children:t,role:e,createdAt:n,hideAvatar:i})=>{const{data:a}=br(),l=I.useRef(null),u=s6(l,{once:!0}),f=I.useMemo(()=>{if(n)return DH(n)?L.jsxs(L.Fragment,{children:[kH(n)," ",CC(n)]}):CC(n)},[n]);return L.jsxs(Fn.div,{ref:l,initial:{opacity:0,y:10},animate:u?{opacity:1,y:0}:{},transition:{duration:.25,ease:"easeOut"},className:ye("flex flex-col items-start gap-1",e===nr.USER&&"items-end"),children:[!i&&L.jsx("div",{className:"text-left text-sm font-medium",children:e===nr.ASSISTANT&&(a==null?void 0:a.chatbotName)}),L.jsxs("div",{className:ye("flex w-[90%] flex-row items-start gap-2",e===nr.USER&&"justify-end"),children:[e===nr.ASSISTANT&&!i&&L.jsx(yl,{size:"sm",className:"shrink-0"}),L.jsxs("div",{className:ye("flex flex-col",i&&"ml-10"),children:[t,L.jsx("div",{className:"mt-1 text-right text-xs",children:f})]})]})]})},NH=({role:t,createdAt:e,content:n})=>n?L.jsx(pf,{role:t,createdAt:e,children:L.jsx("div",{className:ye("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===nr.USER&&"chat-text-message-user rounded-br-none bg-[#E7E7E7]",t===nr.ASSISTANT&&"rounded-tl-none"),style:{overflowWrap:"anywhere"},children:L.jsx(EC,{children:n})})}):null,MH=({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 L.jsx(pf,{role:nr.ASSISTANT,hideAvatar:!0,children:L.jsxs("div",{className:"flex flex-col gap-4",children:[L.jsx("div",{className:"grid auto-rows-fr grid-cols-3 gap-3",children:t.map(d=>{const h=i.includes(d.value);return L.jsxs("button",{className:ye("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:[L.jsx("span",{className:"flex text-3xl",children:d.emoji}),L.jsx("div",{className:"text-sm font-semibold",children:d.label})]},d.value)})}),n&&L.jsx("div",{className:"flex justify-end",children:L.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"),L.jsx(Ca,{className:"h-5 w-5"})]})})]})})},mf=t=>t.replace(/\D/g,""),LH=({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?mf(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=(F,N)=>{const P=b.split("");P[F]=N||" ";const K=P.join("");h?n==null||n(K.replace(/ /g,"")):y(K)},_=F=>{const N=v.current[F];N&&(N.focus(),N.select())},M=(F,N)=>{var ft;if(l)return;const P=N.target.value,K=mf(P);if(K.length===0){C(F," ");return}const et=K.slice(0,t-F).split("");for(let st=0;st<et.length;st++)C(F+st,et[st]);const at=Math.min(F+et.length,t-1);_(at),F+et.length>=t&&((ft=v.current[t-1])==null||ft.blur())},R=(F,N)=>{var K;if(l)return;const P=N.key;if(P==="Backspace"){N.preventDefault(),b[F]!==" "?(C(F," "),_(F)):F>0&&(C(F-1," "),_(F-1));return}if(P==="ArrowLeft"&&F>0){N.preventDefault(),_(F-1);return}if(P==="ArrowRight"&&F<t-1){N.preventDefault(),_(F+1);return}if(P.length===1){const et=mf(P);et&&(N.preventDefault(),C(F,et),F<t-1?_(F+1):(K=v.current[F])==null||K.blur())}},B=(F,N)=>{var ft;if(l)return;const P=N.clipboardData.getData("text"),K=mf(P);if(!K)return;N.preventDefault();const et=K.slice(0,t-F).split("");for(let st=0;st<et.length;st++)C(F+st,et[st]);const at=Math.min(F+et.length-1,t-1);at<t-1?_(at+1):(ft=v.current[at])==null||ft.blur()},Y=F=>N=>{v.current[F]=N},z=F=>{F.preventDefault(),!(!w||l)&&(d==null||d(S))};return L.jsxs("form",{onSubmit:z,className:`flex items-center gap-3 ${u}`,children:[L.jsx("div",{className:"flex items-center gap-2",children:Array.from({length:t}).map((F,N)=>L.jsx("input",{ref:Y(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:P=>M(N,P),onKeyDown:P=>R(N,P),onPaste:P=>B(N,P),disabled:l},N))}),w&&L.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:L.jsx(Ca,{className:"h-5 w-5"})})]})},zH=({type:t,onSubmit:e})=>L.jsx(pf,{role:nr.ASSISTANT,hideAvatar:!0,children:t==="verificationCode"&&L.jsx(LH,{onSubmit:e})}),jH=({createdAt:t})=>{const{t:e}=mr();return L.jsx(pf,{role:nr.ASSISTANT,createdAt:t,children:L.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:[L.jsx("div",{className:"rounded-full bg-green-300 p-2",children:L.jsx(o6,{className:"w-5"})}),L.jsxs("div",{className:"flex flex-col gap-1",children:[L.jsx("h2",{className:"font-medium",children:e("contactSavedWidget.title")}),L.jsx("p",{className:"text-xs font-semibold text-gray-400",children:e("contactSavedWidget.subtitle")})]})]})})},_C={chatMessage:{maxLength:300}},IH=({onSubmit:t,isLoading:e,input:n,onInputChange:i,onStop:a,autoFocus:l})=>{const{t:u}=mr(),f=d=>{d.preventDefault(),!e&&t(d)};return L.jsxs("div",{children:[L.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:f,children:[L.jsx("input",{className:"w-full resize-none overflow-y-auto transition placeholder:text-gray-400 focus:outline-none",placeholder:u("chatMessageInputForm.placeholder"),value:n,onChange:i,autoFocus:l}),e?L.jsx(Ia,{icon:L.jsx(b3,{}),variant:"plain",type:"button",onClick:d=>{d.preventDefault(),a==null||a()},size:"xs",color:"neutral"}):L.jsx(Ia,{icon:L.jsx(Ca,{}),variant:"plain",type:"submit",size:"xs",color:"neutral"})]}),L.jsx("div",{className:"mt-2 mr-2 flex justify-end",children:L.jsxs("span",{className:ye("text-xs",n.length>_C.chatMessage.maxLength&&"text-red-600"),children:[n.length,"/",_C.chatMessage.maxLength]})})]})},BH=({onReload:t,isReloadPending:e})=>{const{t:n}=mr();return L.jsx("div",{className:"absolute flex h-full w-full items-center justify-center bg-[#ffffffef]",children:L.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 text-center",children:[L.jsx(cw,{className:"text-primary-600 w-24 stroke-[1]"}),L.jsx("div",{className:"text-primary-600 text-lg font-bold",children:n("errors.general.title")}),L.jsx("div",{className:"text-primary-600 text-md max-w-[190px]",children:n("errors.general.description")}),L.jsx(Uc,{variant:"light",className:"mt-4",onClick:t,loading:e,children:n("errors.general.buttonReload")})]})})},UH=({mode:t})=>{const{data:e,error:n,isLoading:i}=qS(),a=pl(P=>P.setSession),l=ua(),[u,f]=I.useState(""),{fireEvent:d}=ml(),{mutate:h,isPending:m}=pj(),{data:y}=mj(),{mutate:b,isPending:v,error:S}=gj(),w=(e==null?void 0:e.messages)??[],C=!!(e!=null&&e.closedAt),_=v||m,M=_,R=P=>P instanceof rl&&P.status===410,B=n&&!R(n)||S&&!R(S),Y=()=>{a(void 0),l.invalidateQueries({queryKey:[]})},z=P=>{C||(w.length===1&&t===qr.PAGE&&d("fe.chat.page.first-message-sent"),b({message:P}))},F=P=>{P.preventDefault(),!C&&(z(u),d("fe.chat.message.sent"),f(""))},N=I.useCallback(P=>{C||(h({messageTemplateId:P.id,content:P.content}),d("fe.chat.message-template.sent",{messageTemplate:P}))},[h,d,C]);return{messages:w,onNewChat:Y,isSubmittingMessage:_,isError:B,isChatLoading:i,isSessionClosed:C,chatSession:e,handleSubmit:F,input:u,setInput:f,sendMessageTemplate:N,unusedMessageTemplates:y,sendMessage:z,isLoadingMessage:M}},AC=["typingIndicator.a","typingIndicator.b","typingIndicator.c","typingIndicator.d"],PH=["0ms","150ms","300ms"],qH=1e3,FH=3e3,VH=(t,e)=>{let n=t;for(;n===t;)n=Math.floor(Math.random()*e);return n},HH=({className:t})=>{const{t:e}=mr(),n=I.useMemo(()=>AC,[]),[i,a]=I.useState(()=>Math.floor(Math.random()*AC.length)),[l,u]=I.useState(!1);return I.useEffect(()=>{const f=setTimeout(()=>u(!0),qH);return()=>clearTimeout(f)},[]),I.useEffect(()=>{if(!l)return;const f=setInterval(()=>{a(d=>VH(d,n.length))},FH);return()=>clearInterval(f)},[l,n.length]),L.jsxs("div",{className:"flex items-center",children:[L.jsx(yl,{size:"xs"}),L.jsx("div",{className:ye("typing-indicator flex w-fit items-center gap-1 p-4",t),children:PH.map(f=>L.jsx("span",{className:"typing-dot",style:{animationDelay:f}},f))}),l&&L.jsx("div",{className:"relative h-5 overflow-hidden",children:L.jsx(Al,{mode:"wait",children:L.jsx(Fn.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])})})]})},GH=({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 L.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:t==null?void 0:t.map(l=>L.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 OC=I.forwardRef(({mode:t="BUBBLE",showContextMenuButton:e=!0,onClose:n,initiallySelectedMessageTemplate:i,clearInitMessageTemplateSelect:a,initUserTextMessage:l,clearInitUserTextMessage:u,setMode:f,showStartChatButton:d,hideHeader:h,hideLogo:m,autoFocusInput:y,className:b},v)=>{const S=OH(),{t:w}=mr(),{data:C}=br(),_=I.useRef(null),{messages:M,onNewChat:R,isSubmittingMessage:B,isError:Y,isChatLoading:z,input:F,handleSubmit:N,sendMessageTemplate:P,unusedMessageTemplates:K,sendMessage:et,setInput:at,isLoadingMessage:ft,isSessionClosed:st,chatSession:it}=UH({mode:t}),Z=()=>{var dt;(dt=_==null?void 0:_.current)==null||dt.scrollTo({top:0,behavior:"smooth"})};I.useEffect(()=>{i&&!z&&(P(i),a==null||a())},[i,z,P,a]),I.useEffect(()=>{l&&!z&&(et(l),u==null||u())},[l,z,et,u]),I.useEffect(()=>{Z(),setTimeout(Z,400)},[M.length]);const G=I.useMemo(()=>{const dt=M[M.length-1];return dt?dt.messageBlocks.some(k=>k.type==="OPTIONS_SELECT"||k.type==="CODE_INPUT"||k.type==="MESSAGE_TEMPLATE"):!1},[M]),q=I.useRef(!1);B||(q.current=G);const vt=(C==null?void 0:C.chatbotMode)===il.FLOW_ONLY&&(G||B&&q.current),O=I.useMemo(()=>{if(!(it!=null&&it.showMessageTemplates))return!0;const dt=M[M.length-1];return dt?dt.messageBlocks.some(k=>k.type==="OPTIONS_SELECT"||k.type==="CODE_INPUT"||k.type==="MESSAGE_TEMPLATE"):!1},[M,it]);return L.jsxs("div",{ref:v,className:ye("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",b),children:[!h&&L.jsxs("div",{children:[L.jsx(_H,{onClose:()=>{n==null||n()},onNewChat:R,hideClose:!n,hideContextMenuButton:!e}),!S&&L.jsx(RH,{message:w("errors.offline")})]}),L.jsxs("div",{className:"relative flex h-full flex-col overflow-hidden",children:[t==="PAGE"&&L.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 z-10 h-8 bg-gradient-to-b from-slate-50 to-transparent"}),L.jsx("div",{className:"scroll-hidden flex flex-1 grow flex-col-reverse overflow-hidden overflow-y-auto px-5 py-4 will-change-transform",ref:_,children:L.jsxs("div",{className:"flex grow flex-col gap-3",children:[M.map((dt,k)=>{const T=[...dt.messageBlocks].sort((lt,ht)=>lt.order-ht.order),nt=k===M.length-1;return L.jsx(Xo.Fragment,{children:T.map((lt,ht)=>{var pt,Ot,Jt;if(lt.type==="TEXT")return L.jsx(NH,{role:dt.role,content:lt.content.text},`${k}-${ht}`);if(lt.type==="OPTIONS_SELECT"&&nt){const kt=lt.content;return L.jsx(MH,{options:kt.options.map(pe=>({label:pe.label,value:pe.value,emoji:pe.emoji})),isMultiSelect:kt.multiSelect??!1,onClick:pe=>{const An=Array.isArray(pe)?pe:[pe];et(An.map(Fs=>Fs.label).join(", "))}},`${k}-${ht}`)}if(lt.type==="CODE_INPUT"&&nt){const kt=lt.content;return L.jsx(zH,{type:kt.inputType,onSubmit:pe=>et(pe)},`${k}-${ht}`)}if(lt.type==="CONTACT_SAVED_INFOBOX"){const kt=lt.content;return L.jsx(jH,{fullName:(pt=kt.contactInfo)==null?void 0:pt.fullName,email:(Ot=kt.contactInfo)==null?void 0:Ot.email,phoneNumber:(Jt=kt.contactInfo)==null?void 0:Jt.phoneNumber},`${k}-${ht}`)}if(lt.type==="MESSAGE_TEMPLATE"&&nt){const kt=lt.content;return L.jsx(GH,{options:kt.options,onClick:et},`${k}-${ht}`)}return null})},k)}),ft&&L.jsx(HH,{}),!ft&&K&&!B&&!O&&!st&&(C==null?void 0:C.chatbotMode)!==il.FLOW_ONLY&&L.jsx(rT,{messageTemplates:K,onClick:P})]})}),L.jsxs("div",{className:"flex flex-col p-4 px-4",children:[t==="PAGE"&&!st&&L.jsxs("button",{onClick:R,className:"mb-1 flex w-fit cursor-pointer items-center gap-1 text-[11px] text-gray-400 hover:text-gray-600",children:[L.jsx(p3,{className:"h-3 w-3"}),w("headerDropdown.reloadChat")]}),d&&L.jsx(Uc,{iconRight:L.jsx(Ca,{}),className:"chat-welcome-message-notification-button font-semibold",onClick:()=>f==null?void 0:f("FULLSCREEN"),children:w("startChatButton")}),!d&&!st&&!vt&&L.jsx(IH,{onSubmit:dt=>{N(dt)},input:F,onInputChange:dt=>at(dt.target.value),isLoading:B,autoFocus:y}),st&&L.jsx("div",{className:"mb-1 flex items-center justify-center rounded-full border border-gray-300 bg-white px-5 py-[13px] text-sm text-gray-400",children:w("chatSessionClosed")}),!m&&!(C!=null&&C.chatbotHideLogo)&&L.jsx(AH,{className:st?"mt-0":"-mt-3"})]}),Y&&L.jsx(BH,{onReload:R,isReloadPending:z})]})]})}),Yl={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},gf=["xs","sm","md","lg","xl","2xl"];function RC(t){return t>=Yl["2xl"]?"2xl":t>=Yl.xl?"xl":t>=Yl.lg?"lg":t>=Yl.md?"md":t>=Yl.sm?"sm":"xs"}function YH(){const[t,e]=I.useState(()=>RC(window.innerWidth));return I.useEffect(()=>{const a=()=>{e(RC(window.innerWidth))};return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]),{breakpoint:t,isAtOrAbove:a=>gf.indexOf(t)>=gf.indexOf(a),isBelow:a=>gf.indexOf(t)<gf.indexOf(a)}}const KH=({onClick:t,buttons:e})=>L.jsx("div",{className:"flex gap-2 px-1",children:e==null?void 0:e.map(n=>L.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:[L.jsx("span",{className:"flex flex-col text-3xl",children:n.icon}),L.jsx("div",{className:"font-semibold",children:n.label})]},n.label))}),$H=({isOpen:t,onClose:e,onChatStart:n,onActionButtonSelect:i})=>{var u,f;const{data:a}=HS(),{t:l}=mr();return L.jsx(Al,{children:t&&L.jsxs(Fn.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:[L.jsxs("div",{className:"flex justify-between",children:[L.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}),L.jsx(Ia,{onClick:e,icon:L.jsx(Lm,{}),variant:"plain",color:"neutral",size:"small"})]}),L.jsxs("div",{className:"overflow-hidden rounded-xl bg-white",children:[(a==null?void 0:a.productImageUrl)&&L.jsx("img",{src:a==null?void 0:a.productImageUrl,className:"h-36 w-full object-cover"}),L.jsx("div",{className:"chat-welcome-message-notification-header p-4 text-center font-bold",children:a==null?void 0:a.name})]}),L.jsx(KH,{buttons:(f=a==null?void 0:a.notificationSettings)==null?void 0:f.buttons,onClick:i,size:"sm"}),L.jsx(Uc,{iconRight:L.jsx(Ca,{}),className:"chat-welcome-message-notification-button font-semibold",onClick:n,children:l("startChatButton")})]},"chat-welcome")})},QH={hidden:{opacity:0,y:200},visible:{opacity:1,y:0,transition:{duration:.2}},exit:{opacity:0,y:20,transition:{duration:.2}}},XH=()=>{const{isBelow:t}=YH(),{onChatStateChange:e,chatState:n,onInitMessageTemplateSelect:i,selectedInitMessageTemplate:a,clearInitMessageTemplateSelect:l,onProductNotificationButtonSelect:u,onWelcomeMessageActionButtonSelect:f,initUserTextMessage:d,clearInitUserMessage:h}=Cj();return L.jsxs(L.Fragment,{children:[L.jsx(xH,{isOpen:n===In.WELCOME_NOTIFICATION,onClose:()=>e(In.CHAT_CLOSED),onMessageTemplateSelect:i,onChatStart:()=>e(In.CHAT_OPENED),onActionButtonSelect:f}),L.jsx($H,{isOpen:n===In.PRODUCT_DETAIL_NOTIFICATION,onClose:()=>e(In.CHAT_CLOSED),onChatStart:()=>e(In.CHAT_OPENED),onActionButtonSelect:u}),L.jsxs(Al,{mode:"wait",initial:!1,children:[n!==In.CHAT_OPENED&&L.jsx(EH,{onClick:()=>e(In.CHAT_OPENED),hideTitle:n!==In.CHAT_CLOSED},"thumbnail"),n===In.CHAT_OPENED&&L.jsx(Fn.div,{initial:"hidden",animate:"visible",exit:"exit",variants:QH,className:"fixed right-0 bottom-0 z-[100000]",children:L.jsx(OC,{onClose:()=>e(In.CHAT_CLOSED),initiallySelectedMessageTemplate:a,clearInitMessageTemplateSelect:l,initUserTextMessage:d,clearInitUserTextMessage:h,mode:t("md")?qr.FULLSCREEN:qr.BUBBLE},"chat")})]})]})};var ZH=Z0();const JH=350,WH=()=>{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<JH&&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]),L.jsx(OC,{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})},t8=({children:t})=>{const{data:e}=qS();return e?t:null};function e8({tenantCode:t,externalMountEl:e}){return L.jsx(oj,{children:L.jsx(vj,{tenantCode:t,children:L.jsx(iD,{client:TM,children:L.jsx(bj,{children:L.jsxs(t8,{children:[L.jsx(XH,{}),e?ZH.createPortal(L.jsx(WH,{}),e):null]})})})})})}const bg='@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-slate-50:oklch(98.4% .003 247.858);--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;--container-2xl:42rem;--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}.inset-0{inset:var(--spacing-0)}.inset-x-0{inset-inline:var(--spacing-0)}.start-50{inset-inline-start:calc(var(--spacing)*50)}.top-0{top:var(--spacing-0)}.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-10{z-index:-10}.z-10{z-index:10}.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-0{margin-top:var(--spacing-0)}.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\\],.h-dvh{height:100dvh}.h-fit{height:fit-content}.h-full{height:100%}.max-h-\\[150px\\]{max-height:150px}.min-h-0{min-height:var(--spacing-0)}.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-2xl{max-width:var(--container-2xl)}.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-slate-50{background-color:var(--color-slate-50)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.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))}.from-slate-50{--tw-gradient-from:var(--color-slate-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-1{padding-bottom:var(--spacing-1)}.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-\\[11px\\]{font-size:11px}.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-gray-600:hover{color:var(--color-gray-600)}.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}@media(min-width:40rem){.sm\\:block{display:block}.sm\\:h-16{height:var(--spacing-16)}.sm\\:px-4{padding-inline:var(--spacing-4)}.sm\\:py-2{padding-block:var(--spacing-2)}.sm\\:py-4{padding-block:var(--spacing-4)}.sm\\:py-6{padding-block:var(--spacing-6)}.sm\\:pb-4{padding-bottom:var(--spacing-4)}}}*{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));color:var(--message-template-text-hover,var(--color-primary-600))}.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)}}';aj({dsn:"https://0a3c25c0b2fc31d86dc455e092b4b019@o4510499205218304.ingest.de.sentry.io/4510499206332496",sendDefaultPii:!0,beforeSend(t){return(t.tags||{}).embed?t:null}});function n8(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=bg,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=bg,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=bg,f.appendChild(y);const b=document.createElement("div");f.appendChild(b),u=b}}KR.createRoot(l).render(L.jsx(e8,{tenantCode:t.tenantCode,externalMountEl:u}))}window.ChatbotWidget={init:n8}})();
