Files
worldmonitor/public/pro/assets/index-DpkIQTUK.js
Elie Habib bbe6a828f1 feat(pro): harden enterprise form with mandatory fields and lead qualification (#1382)
* feat(pro): harden enterprise contact form with mandatory fields and lead qualification

- Add mandatory phone number and company fields (client + server validation)
- Block free email domains (gmail, yahoo, hotmail, etc.) with 422 response and inline error
- Include phone (clickable tel: link) and email domain (clickable company link) in sales notification
- Add i18n translations for phone placeholder and work email error across all 21 locales
- Tighten phone regex to require start/end with digit, rejecting junk input

* fix(pro): rebuild static assets and fix contact handler tests

- Rebuild public/pro/ bundle to include new phone/company/email validation fields
- Add phone field to test validBody() fixture
- Add tests for free email domain rejection (422), missing org, missing/invalid phone
2026-03-10 17:25:09 +04:00

230 lines
447 KiB
JavaScript

(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function l(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(u){if(u.ep)return;u.ep=!0;const f=l(u);fetch(u.href,f)}})();var Qu={exports:{}},ys={};/**
* @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 Ep;function P1(){if(Ep)return ys;Ep=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(r,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:i,type:r,key:d,ref:u!==void 0?u:null,props:f}}return ys.Fragment=a,ys.jsx=l,ys.jsxs=l,ys}var jp;function F1(){return jp||(jp=1,Qu.exports=P1()),Qu.exports}var g=F1(),Zu={exports:{}},re={};/**
* @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 Np;function Q1(){if(Np)return re;Np=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function j(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,B={};function q(A,_,K){this.props=A,this.context=_,this.refs=B,this.updater=K||E}q.prototype.isReactComponent={},q.prototype.setState=function(A,_){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,_,"setState")},q.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function Y(){}Y.prototype=q.prototype;function H(A,_,K){this.props=A,this.context=_,this.refs=B,this.updater=K||E}var X=H.prototype=new Y;X.constructor=H,V(X,q.prototype),X.isPureReactComponent=!0;var P=Array.isArray;function ae(){}var Q={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function ce(A,_,K){var Z=K.ref;return{$$typeof:i,type:A,key:_,ref:Z!==void 0?Z:null,props:K}}function ye(A,_){return ce(A.type,_,A.props)}function ot(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}function Ve(A){var _={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(K){return _[K]})}var He=/\/+/g;function Le(A,_){return typeof A=="object"&&A!==null&&A.key!=null?Ve(""+A.key):_.toString(36)}function tt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ae,ae):(A.status="pending",A.then(function(_){A.status==="pending"&&(A.status="fulfilled",A.value=_)},function(_){A.status==="pending"&&(A.status="rejected",A.reason=_)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function z(A,_,K,Z,le){var de=typeof A;(de==="undefined"||de==="boolean")&&(A=null);var Te=!1;if(A===null)Te=!0;else switch(de){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(A.$$typeof){case i:case a:Te=!0;break;case v:return Te=A._init,z(Te(A._payload),_,K,Z,le)}}if(Te)return le=le(A),Te=Z===""?"."+Le(A,0):Z,P(le)?(K="",Te!=null&&(K=Te.replace(He,"$&/")+"/"),z(le,_,K,"",function(Ai){return Ai})):le!=null&&(ot(le)&&(le=ye(le,K+(le.key==null||A&&A.key===le.key?"":(""+le.key).replace(He,"$&/")+"/")+Te)),_.push(le)),1;Te=0;var ft=Z===""?".":Z+":";if(P(A))for(var qe=0;qe<A.length;qe++)Z=A[qe],de=ft+Le(Z,qe),Te+=z(Z,_,K,de,le);else if(qe=j(A),typeof qe=="function")for(A=qe.call(A),qe=0;!(Z=A.next()).done;)Z=Z.value,de=ft+Le(Z,qe++),Te+=z(Z,_,K,de,le);else if(de==="object"){if(typeof A.then=="function")return z(tt(A),_,K,Z,le);throw _=String(A),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return Te}function G(A,_,K){if(A==null)return A;var Z=[],le=0;return z(A,Z,"","",function(de){return _.call(K,de,le++)}),Z}function F(A){if(A._status===-1){var _=A._result;_=_(),_.then(function(K){(A._status===0||A._status===-1)&&(A._status=1,A._result=K)},function(K){(A._status===0||A._status===-1)&&(A._status=2,A._result=K)}),A._status===-1&&(A._status=0,A._result=_)}if(A._status===1)return A._result.default;throw A._result}var ie=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},fe={map:G,forEach:function(A,_,K){G(A,function(){_.apply(this,arguments)},K)},count:function(A){var _=0;return G(A,function(){_++}),_},toArray:function(A){return G(A,function(_){return _})||[]},only:function(A){if(!ot(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return re.Activity=b,re.Children=fe,re.Component=q,re.Fragment=l,re.Profiler=u,re.PureComponent=H,re.StrictMode=r,re.Suspense=y,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,re.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Q.H.useMemoCache(A)}},re.cache=function(A){return function(){return A.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(A,_,K){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var Z=V({},A.props),le=A.key;if(_!=null)for(de in _.key!==void 0&&(le=""+_.key),_)!I.call(_,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&_.ref===void 0||(Z[de]=_[de]);var de=arguments.length-2;if(de===1)Z.children=K;else if(1<de){for(var Te=Array(de),ft=0;ft<de;ft++)Te[ft]=arguments[ft+2];Z.children=Te}return ce(A.type,le,Z)},re.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},re.createElement=function(A,_,K){var Z,le={},de=null;if(_!=null)for(Z in _.key!==void 0&&(de=""+_.key),_)I.call(_,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(le[Z]=_[Z]);var Te=arguments.length-2;if(Te===1)le.children=K;else if(1<Te){for(var ft=Array(Te),qe=0;qe<Te;qe++)ft[qe]=arguments[qe+2];le.children=ft}if(A&&A.defaultProps)for(Z in Te=A.defaultProps,Te)le[Z]===void 0&&(le[Z]=Te[Z]);return ce(A,de,le)},re.createRef=function(){return{current:null}},re.forwardRef=function(A){return{$$typeof:h,render:A}},re.isValidElement=ot,re.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:F}},re.memo=function(A,_){return{$$typeof:m,type:A,compare:_===void 0?null:_}},re.startTransition=function(A){var _=Q.T,K={};Q.T=K;try{var Z=A(),le=Q.S;le!==null&&le(K,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(ae,ie)}catch(de){ie(de)}finally{_!==null&&K.types!==null&&(_.types=K.types),Q.T=_}},re.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},re.use=function(A){return Q.H.use(A)},re.useActionState=function(A,_,K){return Q.H.useActionState(A,_,K)},re.useCallback=function(A,_){return Q.H.useCallback(A,_)},re.useContext=function(A){return Q.H.useContext(A)},re.useDebugValue=function(){},re.useDeferredValue=function(A,_){return Q.H.useDeferredValue(A,_)},re.useEffect=function(A,_){return Q.H.useEffect(A,_)},re.useEffectEvent=function(A){return Q.H.useEffectEvent(A)},re.useId=function(){return Q.H.useId()},re.useImperativeHandle=function(A,_,K){return Q.H.useImperativeHandle(A,_,K)},re.useInsertionEffect=function(A,_){return Q.H.useInsertionEffect(A,_)},re.useLayoutEffect=function(A,_){return Q.H.useLayoutEffect(A,_)},re.useMemo=function(A,_){return Q.H.useMemo(A,_)},re.useOptimistic=function(A,_){return Q.H.useOptimistic(A,_)},re.useReducer=function(A,_,K){return Q.H.useReducer(A,_,K)},re.useRef=function(A){return Q.H.useRef(A)},re.useState=function(A){return Q.H.useState(A)},re.useSyncExternalStore=function(A,_,K){return Q.H.useSyncExternalStore(A,_,K)},re.useTransition=function(){return Q.H.useTransition()},re.version="19.2.4",re}var Dp;function Xc(){return Dp||(Dp=1,Zu.exports=Q1()),Zu.exports}var te=Xc(),Ju={exports:{}},vs={},$u={exports:{}},Wu={};/**
* @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 Mp;function Z1(){return Mp||(Mp=1,(function(i){function a(z,G){var F=z.length;z.push(G);e:for(;0<F;){var ie=F-1>>>1,fe=z[ie];if(0<u(fe,G))z[ie]=G,z[F]=fe,F=ie;else break e}}function l(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var G=z[0],F=z.pop();if(F!==G){z[0]=F;e:for(var ie=0,fe=z.length,A=fe>>>1;ie<A;){var _=2*(ie+1)-1,K=z[_],Z=_+1,le=z[Z];if(0>u(K,F))Z<fe&&0>u(le,K)?(z[ie]=le,z[Z]=F,ie=Z):(z[ie]=K,z[_]=F,ie=_);else if(Z<fe&&0>u(le,F))z[ie]=le,z[Z]=F,ie=Z;else break e}}return G}function u(z,G){var F=z.sortIndex-G.sortIndex;return F!==0?F:z.id-G.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();i.unstable_now=function(){return d.now()-h}}var y=[],m=[],v=1,b=null,w=3,j=!1,E=!1,V=!1,B=!1,q=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function X(z){for(var G=l(m);G!==null;){if(G.callback===null)r(m);else if(G.startTime<=z)r(m),G.sortIndex=G.expirationTime,a(y,G);else break;G=l(m)}}function P(z){if(V=!1,X(z),!E)if(l(y)!==null)E=!0,ae||(ae=!0,Ve());else{var G=l(m);G!==null&&tt(P,G.startTime-z)}}var ae=!1,Q=-1,I=5,ce=-1;function ye(){return B?!0:!(i.unstable_now()-ce<I)}function ot(){if(B=!1,ae){var z=i.unstable_now();ce=z;var G=!0;try{e:{E=!1,V&&(V=!1,Y(Q),Q=-1),j=!0;var F=w;try{t:{for(X(z),b=l(y);b!==null&&!(b.expirationTime>z&&ye());){var ie=b.callback;if(typeof ie=="function"){b.callback=null,w=b.priorityLevel;var fe=ie(b.expirationTime<=z);if(z=i.unstable_now(),typeof fe=="function"){b.callback=fe,X(z),G=!0;break t}b===l(y)&&r(y),X(z)}else r(y);b=l(y)}if(b!==null)G=!0;else{var A=l(m);A!==null&&tt(P,A.startTime-z),G=!1}}break e}finally{b=null,w=F,j=!1}G=void 0}}finally{G?Ve():ae=!1}}}var Ve;if(typeof H=="function")Ve=function(){H(ot)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,Le=He.port2;He.port1.onmessage=ot,Ve=function(){Le.postMessage(null)}}else Ve=function(){q(ot,0)};function tt(z,G){Q=q(function(){z(i.unstable_now())},G)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(z){z.callback=null},i.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"):I=0<z?Math.floor(1e3/z):5},i.unstable_getCurrentPriorityLevel=function(){return w},i.unstable_next=function(z){switch(w){case 1:case 2:case 3:var G=3;break;default:G=w}var F=w;w=G;try{return z()}finally{w=F}},i.unstable_requestPaint=function(){B=!0},i.unstable_runWithPriority=function(z,G){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var F=w;w=z;try{return G()}finally{w=F}},i.unstable_scheduleCallback=function(z,G,F){var ie=i.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ie+F:ie):F=ie,z){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=F+fe,z={id:v++,callback:G,priorityLevel:z,startTime:F,expirationTime:fe,sortIndex:-1},F>ie?(z.sortIndex=F,a(m,z),l(y)===null&&z===l(m)&&(V?(Y(Q),Q=-1):V=!0,tt(P,F-ie))):(z.sortIndex=fe,a(y,z),E||j||(E=!0,ae||(ae=!0,Ve()))),z},i.unstable_shouldYield=ye,i.unstable_wrapCallback=function(z){var G=w;return function(){var F=w;w=G;try{return z.apply(this,arguments)}finally{w=F}}}})(Wu)),Wu}var Cp;function J1(){return Cp||(Cp=1,$u.exports=Z1()),$u.exports}var Iu={exports:{}},ut={};/**
* @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 Op;function $1(){if(Op)return ut;Op=1;var i=Xc();function a(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var r={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(y,m,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:y,containerInfo:m,implementation:v}}var d=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ut.createPortal=function(y,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return f(y,m,null,v)},ut.flushSync=function(y){var m=d.T,v=r.p;try{if(d.T=null,r.p=2,y)return y()}finally{d.T=m,r.p=v,r.d.f()}},ut.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(y,m))},ut.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},ut.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var v=m.as,b=h(v,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,j=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:j}):v==="script"&&r.d.X(y,{crossOrigin:b,integrity:w,fetchPriority:j,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ut.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=h(m.as,m.crossOrigin);r.d.M(y,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(y)},ut.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,b=h(v,m.crossOrigin);r.d.L(y,v,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ut.preloadModule=function(y,m){if(typeof y=="string")if(m){var v=h(m.as,m.crossOrigin);r.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(y)},ut.requestFormReset=function(y){r.d.r(y)},ut.unstable_batchedUpdates=function(y,m){return y(m)},ut.useFormState=function(y,m,v){return d.H.useFormState(y,m,v)},ut.useFormStatus=function(){return d.H.useHostTransitionStatus()},ut.version="19.2.4",ut}var Rp;function W1(){if(Rp)return Iu.exports;Rp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Iu.exports=$1(),Iu.exports}/**
* @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 zp;function I1(){if(zp)return vs;zp=1;var i=J1(),a=Xc(),l=W1();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(f(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,s=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(s=o.return,s!==null){n=s;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return y(o),e;if(c===s)return y(o),t;c=c.sibling}throw Error(r(188))}if(n.return!==s.return)n=o,s=c;else{for(var p=!1,x=o.child;x;){if(x===n){p=!0,n=o,s=c;break}if(x===s){p=!0,s=o,n=c;break}x=x.sibling}if(!p){for(x=c.child;x;){if(x===n){p=!0,n=c,s=o;break}if(x===s){p=!0,s=c,n=o;break}x=x.sibling}if(!p)throw Error(r(189))}}if(n.alternate!==s)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,w=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),H=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),ye=Symbol.for("react.memo_cache_sentinel"),ot=Symbol.iterator;function Ve(e){return e===null||typeof e!="object"?null:(e=ot&&e[ot]||e["@@iterator"],typeof e=="function"?e:null)}var He=Symbol.for("react.client.reference");function Le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===He?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case V:return"Fragment";case q:return"Profiler";case B:return"StrictMode";case P:return"Suspense";case ae:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case H:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:Le(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return Le(e(t))}catch{}}return null}var tt=Array.isArray,z=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ie=[],fe=-1;function A(e){return{current:e}}function _(e){0>fe||(e.current=ie[fe],ie[fe]=null,fe--)}function K(e,t){fe++,ie[fe]=e.current,e.current=t}var Z=A(null),le=A(null),de=A(null),Te=A(null);function ft(e,t){switch(K(de,t),K(le,e),K(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qm(t),e=Zm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_(Z),K(Z,e)}function qe(){_(Z),_(le),_(de)}function Ai(e){e.memoizedState!==null&&K(Te,e);var t=Z.current,n=Zm(t,e.type);t!==n&&(K(le,e),K(Z,n))}function Us(e){le.current===e&&(_(Z),_(le)),Te.current===e&&(_(Te),hs._currentValue=F)}var Mr,Af;function ta(e){if(Mr===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Mr=t&&t[1]||"",Af=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Mr+e+Af}var Cr=!1;function Or(e,t){if(!e||Cr)return"";Cr=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(R){var O=R}Reflect.construct(e,[],U)}else{try{U.call()}catch(R){O=R}e.call(U.prototype)}}else{try{throw Error()}catch(R){O=R}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(R){if(R&&O&&typeof R.stack=="string")return[R.stack,O.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=s.DetermineComponentFrameRoot(),p=c[0],x=c[1];if(p&&x){var T=p.split(`
`),C=x.split(`
`);for(o=s=0;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;for(;o<C.length&&!C[o].includes("DetermineComponentFrameRoot");)o++;if(s===T.length||o===C.length)for(s=T.length-1,o=C.length-1;1<=s&&0<=o&&T[s]!==C[o];)o--;for(;1<=s&&0<=o;s--,o--)if(T[s]!==C[o]){if(s!==1||o!==1)do if(s--,o--,0>o||T[s]!==C[o]){var L=`
`+T[s].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=s&&0<=o);break}}}finally{Cr=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ta(n):""}function Tv(e,t){switch(e.tag){case 26:case 27:case 5:return ta(e.type);case 16:return ta("Lazy");case 13:return e.child!==t&&t!==null?ta("Suspense Fallback"):ta("Suspense");case 19:return ta("SuspenseList");case 0:case 15:return Or(e.type,!1);case 11:return Or(e.type.render,!1);case 1:return Or(e.type,!0);case 31:return ta("Activity");default:return""}}function Ef(e){try{var t="",n=null;do t+=Tv(e,n),n=e,e=e.return;while(e);return t}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}var Rr=Object.prototype.hasOwnProperty,zr=i.unstable_scheduleCallback,Lr=i.unstable_cancelCallback,Av=i.unstable_shouldYield,Ev=i.unstable_requestPaint,wt=i.unstable_now,jv=i.unstable_getCurrentPriorityLevel,jf=i.unstable_ImmediatePriority,Nf=i.unstable_UserBlockingPriority,Bs=i.unstable_NormalPriority,Nv=i.unstable_LowPriority,Df=i.unstable_IdlePriority,Dv=i.log,Mv=i.unstable_setDisableYieldValue,Ei=null,Tt=null;function En(e){if(typeof Dv=="function"&&Mv(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(Ei,e)}catch{}}var At=Math.clz32?Math.clz32:Rv,Cv=Math.log,Ov=Math.LN2;function Rv(e){return e>>>=0,e===0?32:31-(Cv(e)/Ov|0)|0}var Hs=256,qs=262144,Gs=4194304;function na(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ys(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var x=s&134217727;return x!==0?(s=x&~c,s!==0?o=na(s):(p&=x,p!==0?o=na(p):n||(n=x&~e,n!==0&&(o=na(n))))):(x=s&~c,x!==0?o=na(x):p!==0?o=na(p):n||(n=s&~e,n!==0&&(o=na(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function ji(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Mf(){var e=Gs;return Gs<<=1,(Gs&62914560)===0&&(Gs=4194304),e}function _r(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ni(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Lv(e,t,n,s,o,c){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,T=e.expirationTimes,C=e.hiddenUpdates;for(n=p&~n;0<n;){var L=31-At(n),U=1<<L;x[L]=0,T[L]=-1;var O=C[L];if(O!==null)for(C[L]=null,L=0;L<O.length;L++){var R=O[L];R!==null&&(R.lane&=-536870913)}n&=~U}s!==0&&Cf(e,s,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function Cf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-At(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&261930}function Of(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-At(n),o=1<<s;o&t|e[s]&t&&(e[s]|=t),n&=~o}}function Rf(e,t){var n=t&-t;return n=(n&42)!==0?1:Vr(n),(n&(e.suspendedLanes|t))!==0?0:n}function Vr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function kr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zf(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:vp(e.type))}function Lf(e,t){var n=G.p;try{return G.p=e,t()}finally{G.p=n}}var jn=Math.random().toString(36).slice(2),nt="__reactFiber$"+jn,pt="__reactProps$"+jn,ja="__reactContainer$"+jn,Ur="__reactEvents$"+jn,_v="__reactListeners$"+jn,Vv="__reactHandles$"+jn,_f="__reactResources$"+jn,Di="__reactMarker$"+jn;function Br(e){delete e[nt],delete e[pt],delete e[Ur],delete e[_v],delete e[Vv]}function Na(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ja]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=np(e);e!==null;){if(n=e[nt])return n;e=np(e)}return t}e=n,n=e.parentNode}return null}function Da(e){if(e=e[nt]||e[ja]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Mi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ma(e){var t=e[_f];return t||(t=e[_f]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Di]=!0}var Vf=new Set,kf={};function aa(e,t){Ca(e,t),Ca(e+"Capture",t)}function Ca(e,t){for(kf[e]=t,e=0;e<t.length;e++)Vf.add(t[e])}var kv=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]*$"),Uf={},Bf={};function Uv(e){return Rr.call(Bf,e)?!0:Rr.call(Uf,e)?!1:kv.test(e)?Bf[e]=!0:(Uf[e]=!0,!1)}function Ks(e,t,n){if(Uv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Xs(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ln(e,t,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+s)}}function Rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bv(e,t,n){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,c=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){n=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hr(e){if(!e._valueTracker){var t=Hf(e)?"checked":"value";e._valueTracker=Bv(e,t,""+e[t])}}function qf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Hf(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Ps(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Hv=/[\n"\\]/g;function zt(e){return e.replace(Hv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function qr(e,t,n,s,o,c,p,x){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Rt(t)):e.value!==""+Rt(t)&&(e.value=""+Rt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Gr(e,p,Rt(t)):n!=null?Gr(e,p,Rt(n)):s!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Rt(x):e.removeAttribute("name")}function Gf(e,t,n,s,o,c,p,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Hr(e);return}n=n!=null?""+Rt(n):"",t=t!=null?""+Rt(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=x?e.checked:!!s,e.defaultChecked=!!s,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Hr(e)}function Gr(e,t,n){t==="number"&&Ps(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Oa(e,t,n,s){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Rt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Yf(e,t,n){if(t!=null&&(t=""+Rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Rt(n):""}function Kf(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error(r(92));if(tt(s)){if(1<s.length)throw Error(r(93));s=s[0]}n=s}n==null&&(n=""),t=n}n=Rt(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s),Hr(e)}function Ra(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qv=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 Xf(e,t,n){var s=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||qv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Pf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var o in t)s=t[o],t.hasOwnProperty(o)&&n[o]!==s&&Xf(e,o,s)}else for(var c in t)t.hasOwnProperty(c)&&Xf(e,c,t[c])}function Yr(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Gv=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"]]),Yv=/^[\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 Fs(e){return Yv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function rn(){}var Kr=null;function Xr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var za=null,La=null;function Ff(e){var t=Da(e);if(t&&(e=t.stateNode)){var n=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(qr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var o=s[pt]||null;if(!o)throw Error(r(90));qr(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&qf(s)}break e;case"textarea":Yf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Oa(e,!!n.multiple,t,!1)}}}var Pr=!1;function Qf(e,t,n){if(Pr)return e(t,n);Pr=!0;try{var s=e(t);return s}finally{if(Pr=!1,(za!==null||La!==null)&&(Ll(),za&&(t=za,e=La,La=za=null,Ff(t),e)))for(t=0;t<e.length;t++)Ff(e[t])}}function Ci(e,t){var n=e.stateNode;if(n===null)return null;var s=n[pt]||null;if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fr=!1;if(on)try{var Oi={};Object.defineProperty(Oi,"passive",{get:function(){Fr=!0}}),window.addEventListener("test",Oi,Oi),window.removeEventListener("test",Oi,Oi)}catch{Fr=!1}var Nn=null,Qr=null,Qs=null;function Zf(){if(Qs)return Qs;var e,t=Qr,n=t.length,s,o="value"in Nn?Nn.value:Nn.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var p=n-e;for(s=1;s<=p&&t[n-s]===o[c-s];s++);return Qs=o.slice(e,1<s?1-s:void 0)}function Zs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Js(){return!0}function Jf(){return!1}function gt(e){function t(n,s,o,c,p){this._reactName=n,this._targetInst=o,this.type=s,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Js:Jf,this.isPropagationStopped=Jf,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Js)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Js)},persist:function(){},isPersistent:Js}),t}var ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$s=gt(ia),Ri=b({},ia,{view:0,detail:0}),Kv=gt(Ri),Zr,Jr,zi,Ws=b({},Ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zi&&(zi&&e.type==="mousemove"?(Zr=e.screenX-zi.screenX,Jr=e.screenY-zi.screenY):Jr=Zr=0,zi=e),Zr)},movementY:function(e){return"movementY"in e?e.movementY:Jr}}),$f=gt(Ws),Xv=b({},Ws,{dataTransfer:0}),Pv=gt(Xv),Fv=b({},Ri,{relatedTarget:0}),$r=gt(Fv),Qv=b({},ia,{animationName:0,elapsedTime:0,pseudoElement:0}),Zv=gt(Qv),Jv=b({},ia,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$v=gt(Jv),Wv=b({},ia,{data:0}),Wf=gt(Wv),Iv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ex={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"},tx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tx[e])?!!t[e]:!1}function Wr(){return nx}var ax=b({},Ri,{key:function(e){if(e.key){var t=Iv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ex[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wr,charCode:function(e){return e.type==="keypress"?Zs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ix=gt(ax),sx=b({},Ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),If=gt(sx),lx=b({},Ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wr}),rx=gt(lx),ox=b({},ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),ux=gt(ox),cx=b({},Ws,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fx=gt(cx),dx=b({},ia,{newState:0,oldState:0}),hx=gt(dx),mx=[9,13,27,32],Ir=on&&"CompositionEvent"in window,Li=null;on&&"documentMode"in document&&(Li=document.documentMode);var px=on&&"TextEvent"in window&&!Li,ed=on&&(!Ir||Li&&8<Li&&11>=Li),td=" ",nd=!1;function ad(e,t){switch(e){case"keyup":return mx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function id(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _a=!1;function gx(e,t){switch(e){case"compositionend":return id(t);case"keypress":return t.which!==32?null:(nd=!0,td);case"textInput":return e=t.data,e===td&&nd?null:e;default:return null}}function yx(e,t){if(_a)return e==="compositionend"||!Ir&&ad(e,t)?(e=Zf(),Qs=Qr=Nn=null,_a=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ed&&t.locale!=="ko"?null:t.data;default:return null}}var vx={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 sd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vx[e.type]:t==="textarea"}function ld(e,t,n,s){za?La?La.push(s):La=[s]:za=s,t=ql(t,"onChange"),0<t.length&&(n=new $s("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var _i=null,Vi=null;function xx(e){Gm(e,0)}function Is(e){var t=Mi(e);if(qf(t))return e}function rd(e,t){if(e==="change")return t}var od=!1;if(on){var eo;if(on){var to="oninput"in document;if(!to){var ud=document.createElement("div");ud.setAttribute("oninput","return;"),to=typeof ud.oninput=="function"}eo=to}else eo=!1;od=eo&&(!document.documentMode||9<document.documentMode)}function cd(){_i&&(_i.detachEvent("onpropertychange",fd),Vi=_i=null)}function fd(e){if(e.propertyName==="value"&&Is(Vi)){var t=[];ld(t,Vi,e,Xr(e)),Qf(xx,t)}}function bx(e,t,n){e==="focusin"?(cd(),_i=t,Vi=n,_i.attachEvent("onpropertychange",fd)):e==="focusout"&&cd()}function Sx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Is(Vi)}function wx(e,t){if(e==="click")return Is(t)}function Tx(e,t){if(e==="input"||e==="change")return Is(t)}function Ax(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:Ax;function ki(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var o=n[s];if(!Rr.call(t,o)||!Et(e[o],t[o]))return!1}return!0}function dd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hd(e,t){var n=dd(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dd(n)}}function md(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?md(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ps(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ps(e.document)}return t}function no(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Ex=on&&"documentMode"in document&&11>=document.documentMode,Va=null,ao=null,Ui=null,io=!1;function gd(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;io||Va==null||Va!==Ps(s)||(s=Va,"selectionStart"in s&&no(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ui&&ki(Ui,s)||(Ui=s,s=ql(ao,"onSelect"),0<s.length&&(t=new $s("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Va)))}function sa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ka={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionrun:sa("Transition","TransitionRun"),transitionstart:sa("Transition","TransitionStart"),transitioncancel:sa("Transition","TransitionCancel"),transitionend:sa("Transition","TransitionEnd")},so={},yd={};on&&(yd=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function la(e){if(so[e])return so[e];if(!ka[e])return e;var t=ka[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yd)return so[e]=t[n];return e}var vd=la("animationend"),xd=la("animationiteration"),bd=la("animationstart"),jx=la("transitionrun"),Nx=la("transitionstart"),Dx=la("transitioncancel"),Sd=la("transitionend"),wd=new Map,lo="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(" ");lo.push("scrollEnd");function Kt(e,t){wd.set(e,t),aa(t,[e])}var el=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Lt=[],Ua=0,ro=0;function tl(){for(var e=Ua,t=ro=Ua=0;t<e;){var n=Lt[t];Lt[t++]=null;var s=Lt[t];Lt[t++]=null;var o=Lt[t];Lt[t++]=null;var c=Lt[t];if(Lt[t++]=null,s!==null&&o!==null){var p=s.pending;p===null?o.next=o:(o.next=p.next,p.next=o),s.pending=o}c!==0&&Td(n,o,c)}}function nl(e,t,n,s){Lt[Ua++]=e,Lt[Ua++]=t,Lt[Ua++]=n,Lt[Ua++]=s,ro|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function oo(e,t,n,s){return nl(e,t,n,s),al(e)}function ra(e,t){return nl(e,null,null,t),al(e)}function Td(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,s=c.alternate,s!==null&&(s.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-At(n),e=c.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=n|536870912),c):null}function al(e){if(50<ls)throw ls=0,vu=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ba={};function Mx(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jt(e,t,n,s){return new Mx(e,t,n,s)}function uo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function un(e,t){var n=e.alternate;return n===null?(n=jt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ad(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function il(e,t,n,s,o,c){var p=0;if(s=e,typeof e=="function")uo(e)&&(p=1);else if(typeof e=="string")p=L1(e,n,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=jt(31,n,t,o),e.elementType=ce,e.lanes=c,e;case V:return oa(n.children,o,c,t);case B:p=8,o|=24;break;case q:return e=jt(12,n,t,o|2),e.elementType=q,e.lanes=c,e;case P:return e=jt(13,n,t,o),e.elementType=P,e.lanes=c,e;case ae:return e=jt(19,n,t,o),e.elementType=ae,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:p=10;break e;case Y:p=9;break e;case X:p=11;break e;case Q:p=14;break e;case I:p=16,s=null;break e}p=29,n=Error(r(130,e===null?"null":typeof e,"")),s=null}return t=jt(p,n,t,o),t.elementType=e,t.type=s,t.lanes=c,t}function oa(e,t,n,s){return e=jt(7,e,s,t),e.lanes=n,e}function co(e,t,n){return e=jt(6,e,null,t),e.lanes=n,e}function Ed(e){var t=jt(18,null,null,0);return t.stateNode=e,t}function fo(e,t,n){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var jd=new WeakMap;function _t(e,t){if(typeof e=="object"&&e!==null){var n=jd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ef(t)},jd.set(e,t),t)}return{value:e,source:t,stack:Ef(t)}}var Ha=[],qa=0,sl=null,Bi=0,Vt=[],kt=0,Dn=null,$t=1,Wt="";function cn(e,t){Ha[qa++]=Bi,Ha[qa++]=sl,sl=e,Bi=t}function Nd(e,t,n){Vt[kt++]=$t,Vt[kt++]=Wt,Vt[kt++]=Dn,Dn=e;var s=$t;e=Wt;var o=32-At(s)-1;s&=~(1<<o),n+=1;var c=32-At(t)+o;if(30<c){var p=o-o%5;c=(s&(1<<p)-1).toString(32),s>>=p,o-=p,$t=1<<32-At(t)+o|n<<o|s,Wt=c+e}else $t=1<<c|n<<o|s,Wt=e}function ho(e){e.return!==null&&(cn(e,1),Nd(e,1,0))}function mo(e){for(;e===sl;)sl=Ha[--qa],Ha[qa]=null,Bi=Ha[--qa],Ha[qa]=null;for(;e===Dn;)Dn=Vt[--kt],Vt[kt]=null,Wt=Vt[--kt],Vt[kt]=null,$t=Vt[--kt],Vt[kt]=null}function Dd(e,t){Vt[kt++]=$t,Vt[kt++]=Wt,Vt[kt++]=Dn,$t=t.id,Wt=t.overflow,Dn=e}var at=null,Oe=null,ve=!1,Mn=null,Ut=!1,po=Error(r(519));function Cn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hi(_t(t,e)),po}function Md(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[nt]=e,t[pt]=s,n){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(n=0;n<os.length;n++)me(os[n],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),Gf(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),Kf(t,s.value,s.defaultValue,s.children)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||s.suppressHydrationWarning===!0||Pm(t.textContent,n)?(s.popover!=null&&(me("beforetoggle",t),me("toggle",t)),s.onScroll!=null&&me("scroll",t),s.onScrollEnd!=null&&me("scrollend",t),s.onClick!=null&&(t.onclick=rn),t=!0):t=!1,t||Cn(e,!0)}function Cd(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:at=at.return}}function Ga(e){if(e!==at)return!1;if(!ve)return Cd(e),ve=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||zu(e.type,e.memoizedProps)),n=!n),n&&Oe&&Cn(e),Cd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Oe=tp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Oe=tp(e)}else t===27?(t=Oe,Kn(e.type)?(e=Uu,Uu=null,Oe=e):Oe=t):Oe=at?Ht(e.stateNode.nextSibling):null;return!0}function ua(){Oe=at=null,ve=!1}function go(){var e=Mn;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),Mn=null),e}function Hi(e){Mn===null?Mn=[e]:Mn.push(e)}var yo=A(null),ca=null,fn=null;function On(e,t,n){K(yo,t._currentValue),t._currentValue=n}function dn(e){e._currentValue=yo.current,_(yo)}function vo(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function xo(e,t,n,s){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var x=c;c=o;for(var T=0;T<t.length;T++)if(x.context===t[T]){c.lanes|=n,x=c.alternate,x!==null&&(x.lanes|=n),vo(c.return,n,e),s||(p=null);break e}c=x.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(r(341));p.lanes|=n,c=p.alternate,c!==null&&(c.lanes|=n),vo(p,n,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function Ya(e,t,n,s){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(r(387));if(p=p.memoizedProps,p!==null){var x=o.type;Et(o.pendingProps.value,p.value)||(e!==null?e.push(x):e=[x])}}else if(o===Te.current){if(p=o.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(hs):e=[hs])}o=o.return}e!==null&&xo(t,e,n,s),t.flags|=262144}function ll(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function fa(e){ca=e,fn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function it(e){return Od(ca,e)}function rl(e,t){return ca===null&&fa(e),Od(e,t)}function Od(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fn===null){if(e===null)throw Error(r(308));fn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fn=fn.next=t;return n}var Cx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Ox=i.unstable_scheduleCallback,Rx=i.unstable_NormalPriority,Xe={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bo(){return{controller:new Cx,data:new Map,refCount:0}}function qi(e){e.refCount--,e.refCount===0&&Ox(Rx,function(){e.controller.abort()})}var Gi=null,So=0,Ka=0,Xa=null;function zx(e,t){if(Gi===null){var n=Gi=[];So=0,Ka=Au(),Xa={status:"pending",value:void 0,then:function(s){n.push(s)}}}return So++,t.then(Rd,Rd),t}function Rd(){if(--So===0&&Gi!==null){Xa!==null&&(Xa.status="fulfilled");var e=Gi;Gi=null,Ka=0,Xa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Lx(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(s.status="rejected",s.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),s}var zd=z.S;z.S=function(e,t){gm=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&zx(e,t),zd!==null&&zd(e,t)};var da=A(null);function wo(){var e=da.current;return e!==null?e:Me.pooledCache}function ol(e,t){t===null?K(da,da.current):K(da,t.pool)}function Ld(){var e=wo();return e===null?null:{parent:Xe._currentValue,pool:e}}var Pa=Error(r(460)),To=Error(r(474)),ul=Error(r(542)),cl={then:function(){}};function _d(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(rn,rn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ud(e),e;default:if(typeof t.status=="string")t.then(rn,rn);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=s}},function(s){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ud(e),e}throw ma=t,Pa}}function ha(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ma=n,Pa):n}}var ma=null;function kd(){if(ma===null)throw Error(r(459));var e=ma;return ma=null,e}function Ud(e){if(e===Pa||e===ul)throw Error(r(483))}var Fa=null,Yi=0;function fl(e){var t=Yi;return Yi+=1,Fa===null&&(Fa=[]),Vd(Fa,e,t)}function Ki(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function dl(e,t){throw t.$$typeof===w?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Bd(e){function t(D,N){if(e){var M=D.deletions;M===null?(D.deletions=[N],D.flags|=16):M.push(N)}}function n(D,N){if(!e)return null;for(;N!==null;)t(D,N),N=N.sibling;return null}function s(D){for(var N=new Map;D!==null;)D.key!==null?N.set(D.key,D):N.set(D.index,D),D=D.sibling;return N}function o(D,N){return D=un(D,N),D.index=0,D.sibling=null,D}function c(D,N,M){return D.index=M,e?(M=D.alternate,M!==null?(M=M.index,M<N?(D.flags|=67108866,N):M):(D.flags|=67108866,N)):(D.flags|=1048576,N)}function p(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function x(D,N,M,k){return N===null||N.tag!==6?(N=co(M,D.mode,k),N.return=D,N):(N=o(N,M),N.return=D,N)}function T(D,N,M,k){var ee=M.type;return ee===V?L(D,N,M.props.children,k,M.key):N!==null&&(N.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===I&&ha(ee)===N.type)?(N=o(N,M.props),Ki(N,M),N.return=D,N):(N=il(M.type,M.key,M.props,null,D.mode,k),Ki(N,M),N.return=D,N)}function C(D,N,M,k){return N===null||N.tag!==4||N.stateNode.containerInfo!==M.containerInfo||N.stateNode.implementation!==M.implementation?(N=fo(M,D.mode,k),N.return=D,N):(N=o(N,M.children||[]),N.return=D,N)}function L(D,N,M,k,ee){return N===null||N.tag!==7?(N=oa(M,D.mode,k,ee),N.return=D,N):(N=o(N,M),N.return=D,N)}function U(D,N,M){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=co(""+N,D.mode,M),N.return=D,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case j:return M=il(N.type,N.key,N.props,null,D.mode,M),Ki(M,N),M.return=D,M;case E:return N=fo(N,D.mode,M),N.return=D,N;case I:return N=ha(N),U(D,N,M)}if(tt(N)||Ve(N))return N=oa(N,D.mode,M,null),N.return=D,N;if(typeof N.then=="function")return U(D,fl(N),M);if(N.$$typeof===H)return U(D,rl(D,N),M);dl(D,N)}return null}function O(D,N,M,k){var ee=N!==null?N.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ee!==null?null:x(D,N,""+M,k);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case j:return M.key===ee?T(D,N,M,k):null;case E:return M.key===ee?C(D,N,M,k):null;case I:return M=ha(M),O(D,N,M,k)}if(tt(M)||Ve(M))return ee!==null?null:L(D,N,M,k,null);if(typeof M.then=="function")return O(D,N,fl(M),k);if(M.$$typeof===H)return O(D,N,rl(D,M),k);dl(D,M)}return null}function R(D,N,M,k,ee){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return D=D.get(M)||null,x(N,D,""+k,ee);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case j:return D=D.get(k.key===null?M:k.key)||null,T(N,D,k,ee);case E:return D=D.get(k.key===null?M:k.key)||null,C(N,D,k,ee);case I:return k=ha(k),R(D,N,M,k,ee)}if(tt(k)||Ve(k))return D=D.get(M)||null,L(N,D,k,ee,null);if(typeof k.then=="function")return R(D,N,M,fl(k),ee);if(k.$$typeof===H)return R(D,N,M,rl(N,k),ee);dl(N,k)}return null}function J(D,N,M,k){for(var ee=null,xe=null,W=N,ue=N=0,ge=null;W!==null&&ue<M.length;ue++){W.index>ue?(ge=W,W=null):ge=W.sibling;var be=O(D,W,M[ue],k);if(be===null){W===null&&(W=ge);break}e&&W&&be.alternate===null&&t(D,W),N=c(be,N,ue),xe===null?ee=be:xe.sibling=be,xe=be,W=ge}if(ue===M.length)return n(D,W),ve&&cn(D,ue),ee;if(W===null){for(;ue<M.length;ue++)W=U(D,M[ue],k),W!==null&&(N=c(W,N,ue),xe===null?ee=W:xe.sibling=W,xe=W);return ve&&cn(D,ue),ee}for(W=s(W);ue<M.length;ue++)ge=R(W,D,ue,M[ue],k),ge!==null&&(e&&ge.alternate!==null&&W.delete(ge.key===null?ue:ge.key),N=c(ge,N,ue),xe===null?ee=ge:xe.sibling=ge,xe=ge);return e&&W.forEach(function(Zn){return t(D,Zn)}),ve&&cn(D,ue),ee}function ne(D,N,M,k){if(M==null)throw Error(r(151));for(var ee=null,xe=null,W=N,ue=N=0,ge=null,be=M.next();W!==null&&!be.done;ue++,be=M.next()){W.index>ue?(ge=W,W=null):ge=W.sibling;var Zn=O(D,W,be.value,k);if(Zn===null){W===null&&(W=ge);break}e&&W&&Zn.alternate===null&&t(D,W),N=c(Zn,N,ue),xe===null?ee=Zn:xe.sibling=Zn,xe=Zn,W=ge}if(be.done)return n(D,W),ve&&cn(D,ue),ee;if(W===null){for(;!be.done;ue++,be=M.next())be=U(D,be.value,k),be!==null&&(N=c(be,N,ue),xe===null?ee=be:xe.sibling=be,xe=be);return ve&&cn(D,ue),ee}for(W=s(W);!be.done;ue++,be=M.next())be=R(W,D,ue,be.value,k),be!==null&&(e&&be.alternate!==null&&W.delete(be.key===null?ue:be.key),N=c(be,N,ue),xe===null?ee=be:xe.sibling=be,xe=be);return e&&W.forEach(function(X1){return t(D,X1)}),ve&&cn(D,ue),ee}function De(D,N,M,k){if(typeof M=="object"&&M!==null&&M.type===V&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case j:e:{for(var ee=M.key;N!==null;){if(N.key===ee){if(ee=M.type,ee===V){if(N.tag===7){n(D,N.sibling),k=o(N,M.props.children),k.return=D,D=k;break e}}else if(N.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===I&&ha(ee)===N.type){n(D,N.sibling),k=o(N,M.props),Ki(k,M),k.return=D,D=k;break e}n(D,N);break}else t(D,N);N=N.sibling}M.type===V?(k=oa(M.props.children,D.mode,k,M.key),k.return=D,D=k):(k=il(M.type,M.key,M.props,null,D.mode,k),Ki(k,M),k.return=D,D=k)}return p(D);case E:e:{for(ee=M.key;N!==null;){if(N.key===ee)if(N.tag===4&&N.stateNode.containerInfo===M.containerInfo&&N.stateNode.implementation===M.implementation){n(D,N.sibling),k=o(N,M.children||[]),k.return=D,D=k;break e}else{n(D,N);break}else t(D,N);N=N.sibling}k=fo(M,D.mode,k),k.return=D,D=k}return p(D);case I:return M=ha(M),De(D,N,M,k)}if(tt(M))return J(D,N,M,k);if(Ve(M)){if(ee=Ve(M),typeof ee!="function")throw Error(r(150));return M=ee.call(M),ne(D,N,M,k)}if(typeof M.then=="function")return De(D,N,fl(M),k);if(M.$$typeof===H)return De(D,N,rl(D,M),k);dl(D,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,N!==null&&N.tag===6?(n(D,N.sibling),k=o(N,M),k.return=D,D=k):(n(D,N),k=co(M,D.mode,k),k.return=D,D=k),p(D)):n(D,N)}return function(D,N,M,k){try{Yi=0;var ee=De(D,N,M,k);return Fa=null,ee}catch(W){if(W===Pa||W===ul)throw W;var xe=jt(29,W,null,D.mode);return xe.lanes=k,xe.return=D,xe}finally{}}}var pa=Bd(!0),Hd=Bd(!1),Rn=!1;function Ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function zn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(we&2)!==0){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,t=al(e),Td(e,null,n),t}return nl(e,s,t,n),al(e)}function Xi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Of(e,n)}}function jo(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var No=!1;function Pi(){if(No){var e=Xa;if(e!==null)throw e}}function Fi(e,t,n,s){No=!1;var o=e.updateQueue;Rn=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var T=x,C=T.next;T.next=null,p===null?c=C:p.next=C,p=T;var L=e.alternate;L!==null&&(L=L.updateQueue,x=L.lastBaseUpdate,x!==p&&(x===null?L.firstBaseUpdate=C:x.next=C,L.lastBaseUpdate=T))}if(c!==null){var U=o.baseState;p=0,L=C=T=null,x=c;do{var O=x.lane&-536870913,R=O!==x.lane;if(R?(pe&O)===O:(s&O)===O){O!==0&&O===Ka&&(No=!0),L!==null&&(L=L.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var J=e,ne=x;O=t;var De=n;switch(ne.tag){case 1:if(J=ne.payload,typeof J=="function"){U=J.call(De,U,O);break e}U=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ne.payload,O=typeof J=="function"?J.call(De,U,O):J,O==null)break e;U=b({},U,O);break e;case 2:Rn=!0}}O=x.callback,O!==null&&(e.flags|=64,R&&(e.flags|=8192),R=o.callbacks,R===null?o.callbacks=[O]:R.push(O))}else R={lane:O,tag:x.tag,payload:x.payload,callback:x.callback,next:null},L===null?(C=L=R,T=U):L=L.next=R,p|=O;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;R=x,x=R.next,R.next=null,o.lastBaseUpdate=R,o.shared.pending=null}}while(!0);L===null&&(T=U),o.baseState=T,o.firstBaseUpdate=C,o.lastBaseUpdate=L,c===null&&(o.shared.lanes=0),Bn|=p,e.lanes=p,e.memoizedState=U}}function qd(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Gd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qd(n[e],t)}var Qa=A(null),hl=A(0);function Yd(e,t){e=Sn,K(hl,e),K(Qa,t),Sn=e|t.baseLanes}function Do(){K(hl,Sn),K(Qa,Qa.current)}function Mo(){Sn=hl.current,_(Qa),_(hl)}var Nt=A(null),Bt=null;function _n(e){var t=e.alternate;K(Ge,Ge.current&1),K(Nt,e),Bt===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(Bt=e)}function Co(e){K(Ge,Ge.current),K(Nt,e),Bt===null&&(Bt=e)}function Kd(e){e.tag===22?(K(Ge,Ge.current),K(Nt,e),Bt===null&&(Bt=e)):Vn()}function Vn(){K(Ge,Ge.current),K(Nt,Nt.current)}function Dt(e){_(Nt),Bt===e&&(Bt=null),_(Ge)}var Ge=A(0);function ml(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Vu(n)||ku(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hn=0,oe=null,je=null,Pe=null,pl=!1,Za=!1,ga=!1,gl=0,Qi=0,Ja=null,_x=0;function ke(){throw Error(r(321))}function Oo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Et(e[n],t[n]))return!1;return!0}function Ro(e,t,n,s,o,c){return hn=c,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Nh:Fo,ga=!1,c=n(s,o),ga=!1,Za&&(c=Pd(t,n,s,o)),Xd(e),c}function Xd(e){z.H=$i;var t=je!==null&&je.next!==null;if(hn=0,Pe=je=oe=null,pl=!1,Qi=0,Ja=null,t)throw Error(r(300));e===null||Fe||(e=e.dependencies,e!==null&&ll(e)&&(Fe=!0))}function Pd(e,t,n,s){oe=e;var o=0;do{if(Za&&(Ja=null),Qi=0,Za=!1,25<=o)throw Error(r(301));if(o+=1,Pe=je=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=Dh,c=t(n,s)}while(Za);return c}function Vx(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Zi(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(oe.flags|=1024),t}function zo(){var e=gl!==0;return gl=0,e}function Lo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function _o(e){if(pl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pl=!1}hn=0,Pe=je=oe=null,Za=!1,Qi=gl=0,Ja=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?oe.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function Ye(){if(je===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Pe===null?oe.memoizedState:Pe.next;if(t!==null)Pe=t,je=e;else{if(e===null)throw oe.alternate===null?Error(r(467)):Error(r(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Pe===null?oe.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function yl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zi(e){var t=Qi;return Qi+=1,Ja===null&&(Ja=[]),e=Vd(Ja,e,t),t=oe,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Nh:Fo),e}function vl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Zi(e);if(e.$$typeof===H)return it(e)}throw Error(r(438,String(e)))}function Vo(e){var t=null,n=oe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var s=oe.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=yl(),oe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),s=0;s<e;s++)n[s]=ye;return t.index++,n}function mn(e,t){return typeof t=="function"?t(e):t}function xl(e){var t=Ye();return ko(t,je,e)}function ko(e,t,n){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var o=e.baseQueue,c=s.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,s.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var x=p=null,T=null,C=t,L=!1;do{var U=C.lane&-536870913;if(U!==C.lane?(pe&U)===U:(hn&U)===U){var O=C.revertLane;if(O===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),U===Ka&&(L=!0);else if((hn&O)===O){C=C.next,O===Ka&&(L=!0);continue}else U={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},T===null?(x=T=U,p=c):T=T.next=U,oe.lanes|=O,Bn|=O;U=C.action,ga&&n(c,U),c=C.hasEagerState?C.eagerState:n(c,U)}else O={lane:U,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},T===null?(x=T=O,p=c):T=T.next=O,oe.lanes|=U,Bn|=U;C=C.next}while(C!==null&&C!==t);if(T===null?p=c:T.next=x,!Et(c,e.memoizedState)&&(Fe=!0,L&&(n=Xa,n!==null)))throw n;e.memoizedState=c,e.baseState=p,e.baseQueue=T,s.lastRenderedState=c}return o===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Uo(e){var t=Ye(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var s=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);Et(c,t.memoizedState)||(Fe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,s]}function Fd(e,t,n){var s=oe,o=Ye(),c=ve;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var p=!Et((je||o).memoizedState,n);if(p&&(o.memoizedState=n,Fe=!0),o=o.queue,qo(Jd.bind(null,s,o,e),[e]),o.getSnapshot!==t||p||Pe!==null&&Pe.memoizedState.tag&1){if(s.flags|=2048,$a(9,{destroy:void 0},Zd.bind(null,s,o,n,t),null),Me===null)throw Error(r(349));c||(hn&127)!==0||Qd(s,t,n)}return n}function Qd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t=yl(),oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Zd(e,t,n,s){t.value=n,t.getSnapshot=s,$d(t)&&Wd(e)}function Jd(e,t,n){return n(function(){$d(t)&&Wd(e)})}function $d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Et(e,n)}catch{return!0}}function Wd(e){var t=ra(e,2);t!==null&&St(t,e,2)}function Bo(e){var t=dt();if(typeof e=="function"){var n=e;if(e=n(),ga){En(!0);try{n()}finally{En(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:e},t}function Id(e,t,n,s){return e.baseState=n,ko(e,je,typeof s=="function"?s:mn)}function kx(e,t,n,s,o){if(wl(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};z.T!==null?n(!0):c.isTransition=!1,s(c),n=t.pending,n===null?(c.next=t.pending=c,eh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function eh(e,t){var n=t.action,s=t.payload,o=e.state;if(t.isTransition){var c=z.T,p={};z.T=p;try{var x=n(o,s),T=z.S;T!==null&&T(p,x),th(e,t,x)}catch(C){Ho(e,t,C)}finally{c!==null&&p.types!==null&&(c.types=p.types),z.T=c}}else try{c=n(o,s),th(e,t,c)}catch(C){Ho(e,t,C)}}function th(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){nh(e,t,s)},function(s){return Ho(e,t,s)}):nh(e,t,n)}function nh(e,t,n){t.status="fulfilled",t.value=n,ah(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,eh(e,n)))}function Ho(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,ah(t),t=t.next;while(t!==s)}e.action=null}function ah(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ih(e,t){return t}function sh(e,t){if(ve){var n=Me.formState;if(n!==null){e:{var s=oe;if(ve){if(Oe){t:{for(var o=Oe,c=Ut;o.nodeType!==8;){if(!c){o=null;break t}if(o=Ht(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Oe=Ht(o.nextSibling),s=o.data==="F!";break e}}Cn(s)}s=!1}s&&(t=n[0])}}return n=dt(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ih,lastRenderedState:t},n.queue=s,n=Ah.bind(null,oe,s),s.dispatch=n,s=Bo(!1),c=Po.bind(null,oe,!1,s.queue),s=dt(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,n=kx.bind(null,oe,o,c,n),o.dispatch=n,s.memoizedState=e,[t,n,!1]}function lh(e){var t=Ye();return rh(t,je,e)}function rh(e,t,n){if(t=ko(e,t,ih)[0],e=xl(mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=Zi(t)}catch(p){throw p===Pa?ul:p}else s=t;t=Ye();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(oe.flags|=2048,$a(9,{destroy:void 0},Ux.bind(null,o,n),null)),[s,c,e]}function Ux(e,t){e.action=t}function oh(e){var t=Ye(),n=je;if(n!==null)return rh(t,n,e);Ye(),t=t.memoizedState,n=Ye();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function $a(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=oe.updateQueue,t===null&&(t=yl(),oe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function uh(){return Ye().memoizedState}function bl(e,t,n,s){var o=dt();oe.flags|=e,o.memoizedState=$a(1|t,{destroy:void 0},n,s===void 0?null:s)}function Sl(e,t,n,s){var o=Ye();s=s===void 0?null:s;var c=o.memoizedState.inst;je!==null&&s!==null&&Oo(s,je.memoizedState.deps)?o.memoizedState=$a(t,c,n,s):(oe.flags|=e,o.memoizedState=$a(1|t,c,n,s))}function ch(e,t){bl(8390656,8,e,t)}function qo(e,t){Sl(2048,8,e,t)}function Bx(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=yl(),oe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fh(e){var t=Ye().memoizedState;return Bx({ref:t,nextImpl:e}),function(){if((we&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function dh(e,t){return Sl(4,2,e,t)}function hh(e,t){return Sl(4,4,e,t)}function mh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ph(e,t,n){n=n!=null?n.concat([e]):null,Sl(4,4,mh.bind(null,t,e),n)}function Go(){}function gh(e,t){var n=Ye();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&Oo(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function yh(e,t){var n=Ye();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&Oo(t,s[1]))return s[0];if(s=e(),ga){En(!0);try{e()}finally{En(!1)}}return n.memoizedState=[s,t],s}function Yo(e,t,n){return n===void 0||(hn&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=vm(),oe.lanes|=e,Bn|=e,n)}function vh(e,t,n,s){return Et(n,t)?n:Qa.current!==null?(e=Yo(e,n,s),Et(e,t)||(Fe=!0),e):(hn&42)===0||(hn&1073741824)!==0&&(pe&261930)===0?(Fe=!0,e.memoizedState=n):(e=vm(),oe.lanes|=e,Bn|=e,t)}function xh(e,t,n,s,o){var c=G.p;G.p=c!==0&&8>c?c:8;var p=z.T,x={};z.T=x,Po(e,!1,t,n);try{var T=o(),C=z.S;if(C!==null&&C(x,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var L=Lx(T,s);Ji(e,t,L,Ot(e))}else Ji(e,t,s,Ot(e))}catch(U){Ji(e,t,{then:function(){},status:"rejected",reason:U},Ot())}finally{G.p=c,p!==null&&x.types!==null&&(p.types=x.types),z.T=p}}function Hx(){}function Ko(e,t,n,s){if(e.tag!==5)throw Error(r(476));var o=bh(e).queue;xh(e,o,t,F,n===null?Hx:function(){return Sh(e),n(s)})}function bh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:F},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sh(e){var t=bh(e);t.next===null&&(t=e.alternate.memoizedState),Ji(e,t.next.queue,{},Ot())}function Xo(){return it(hs)}function wh(){return Ye().memoizedState}function Th(){return Ye().memoizedState}function qx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ot();e=zn(n);var s=Ln(t,e,n);s!==null&&(St(s,t,n),Xi(s,t,n)),t={cache:bo()},e.payload=t;return}t=t.return}}function Gx(e,t,n){var s=Ot();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},wl(e)?Eh(t,n):(n=oo(e,t,n,s),n!==null&&(St(n,e,s),jh(n,t,s)))}function Ah(e,t,n){var s=Ot();Ji(e,t,n,s)}function Ji(e,t,n,s){var o={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(wl(e))Eh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,x=c(p,n);if(o.hasEagerState=!0,o.eagerState=x,Et(x,p))return nl(e,t,o,0),Me===null&&tl(),!1}catch{}finally{}if(n=oo(e,t,o,s),n!==null)return St(n,e,s),jh(n,t,s),!0}return!1}function Po(e,t,n,s){if(s={lane:2,revertLane:Au(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},wl(e)){if(t)throw Error(r(479))}else t=oo(e,n,s,2),t!==null&&St(t,e,2)}function wl(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Eh(e,t){Za=pl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jh(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Of(e,n)}}var $i={readContext:it,use:vl,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useInsertionEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useSyncExternalStore:ke,useId:ke,useHostTransitionStatus:ke,useFormState:ke,useActionState:ke,useOptimistic:ke,useMemoCache:ke,useCacheRefresh:ke};$i.useEffectEvent=ke;var Nh={readContext:it,use:vl,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:ch,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,bl(4194308,4,mh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bl(4194308,4,e,t)},useInsertionEffect:function(e,t){bl(4,2,e,t)},useMemo:function(e,t){var n=dt();t=t===void 0?null:t;var s=e();if(ga){En(!0);try{e()}finally{En(!1)}}return n.memoizedState=[s,t],s},useReducer:function(e,t,n){var s=dt();if(n!==void 0){var o=n(t);if(ga){En(!0);try{n(t)}finally{En(!1)}}}else o=t;return s.memoizedState=s.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},s.queue=e,e=e.dispatch=Gx.bind(null,oe,e),[s.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=Bo(e);var t=e.queue,n=Ah.bind(null,oe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Go,useDeferredValue:function(e,t){var n=dt();return Yo(n,e,t)},useTransition:function(){var e=Bo(!1);return e=xh.bind(null,oe,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=oe,o=dt();if(ve){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Me===null)throw Error(r(349));(pe&127)!==0||Qd(s,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,ch(Jd.bind(null,s,c,e),[e]),s.flags|=2048,$a(9,{destroy:void 0},Zd.bind(null,s,c,n,t),null),n},useId:function(){var e=dt(),t=Me.identifierPrefix;if(ve){var n=Wt,s=$t;n=(s&~(1<<32-At(s)-1)).toString(32)+n,t="_"+t+"R_"+n,n=gl++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=_x++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Xo,useFormState:sh,useActionState:sh,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Po.bind(null,oe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vo,useCacheRefresh:function(){return dt().memoizedState=qx.bind(null,oe)},useEffectEvent:function(e){var t=dt(),n={impl:e};return t.memoizedState=n,function(){if((we&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Fo={readContext:it,use:vl,useCallback:gh,useContext:it,useEffect:qo,useImperativeHandle:ph,useInsertionEffect:dh,useLayoutEffect:hh,useMemo:yh,useReducer:xl,useRef:uh,useState:function(){return xl(mn)},useDebugValue:Go,useDeferredValue:function(e,t){var n=Ye();return vh(n,je.memoizedState,e,t)},useTransition:function(){var e=xl(mn)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Zi(e),t]},useSyncExternalStore:Fd,useId:wh,useHostTransitionStatus:Xo,useFormState:lh,useActionState:lh,useOptimistic:function(e,t){var n=Ye();return Id(n,je,e,t)},useMemoCache:Vo,useCacheRefresh:Th};Fo.useEffectEvent=fh;var Dh={readContext:it,use:vl,useCallback:gh,useContext:it,useEffect:qo,useImperativeHandle:ph,useInsertionEffect:dh,useLayoutEffect:hh,useMemo:yh,useReducer:Uo,useRef:uh,useState:function(){return Uo(mn)},useDebugValue:Go,useDeferredValue:function(e,t){var n=Ye();return je===null?Yo(n,e,t):vh(n,je.memoizedState,e,t)},useTransition:function(){var e=Uo(mn)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Zi(e),t]},useSyncExternalStore:Fd,useId:wh,useHostTransitionStatus:Xo,useFormState:oh,useActionState:oh,useOptimistic:function(e,t){var n=Ye();return je!==null?Id(n,je,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Vo,useCacheRefresh:Th};Dh.useEffectEvent=fh;function Qo(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zo={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Ot(),o=zn(s);o.payload=t,n!=null&&(o.callback=n),t=Ln(e,o,s),t!==null&&(St(t,e,s),Xi(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Ot(),o=zn(s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ln(e,o,s),t!==null&&(St(t,e,s),Xi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ot(),s=zn(n);s.tag=2,t!=null&&(s.callback=t),t=Ln(e,s,n),t!==null&&(St(t,e,n),Xi(t,e,n))}};function Mh(e,t,n,s,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,p):t.prototype&&t.prototype.isPureReactComponent?!ki(n,s)||!ki(o,c):!0}function Ch(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&Zo.enqueueReplaceState(t,t.state,null)}function ya(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Oh(e){el(e)}function Rh(e){console.error(e)}function zh(e){el(e)}function Tl(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Lh(e,t,n){try{var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Jo(e,t,n){return n=zn(n),n.tag=3,n.payload={element:null},n.callback=function(){Tl(e,t)},n}function _h(e){return e=zn(e),e.tag=3,e}function Vh(e,t,n,s){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=s.value;e.payload=function(){return o(c)},e.callback=function(){Lh(t,n,s)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Lh(t,n,s),typeof o!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function Yx(e,t,n,s,o){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&Ya(t,n,o,!0),n=Nt.current,n!==null){switch(n.tag){case 31:case 13:return Bt===null?_l():n.alternate===null&&Ue===0&&(Ue=3),n.flags&=-257,n.flags|=65536,n.lanes=o,s===cl?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),Su(e,s,o)),!1;case 22:return n.flags|=65536,s===cl?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),Su(e,s,o)),!1}throw Error(r(435,n.tag))}return Su(e,s,o),_l(),!1}if(ve)return t=Nt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==po&&(e=Error(r(422),{cause:s}),Hi(_t(e,n)))):(s!==po&&(t=Error(r(423),{cause:s}),Hi(_t(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=_t(s,n),o=Jo(e.stateNode,s,o),jo(e,o),Ue!==4&&(Ue=2)),!1;var c=Error(r(520),{cause:s});if(c=_t(c,n),ss===null?ss=[c]:ss.push(c),Ue!==4&&(Ue=2),t===null)return!0;s=_t(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Jo(n.stateNode,s,e),jo(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Hn===null||!Hn.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=_h(o),Vh(o,e,n,s),jo(n,o),!1}n=n.return}while(n!==null);return!1}var $o=Error(r(461)),Fe=!1;function st(e,t,n,s){t.child=e===null?Hd(t,null,n,s):pa(t,e.child,n,s)}function kh(e,t,n,s,o){n=n.render;var c=t.ref;if("ref"in s){var p={};for(var x in s)x!=="ref"&&(p[x]=s[x])}else p=s;return fa(t),s=Ro(e,t,n,p,c,o),x=zo(),e!==null&&!Fe?(Lo(e,t,o),pn(e,t,o)):(ve&&x&&ho(t),t.flags|=1,st(e,t,s,o),t.child)}function Uh(e,t,n,s,o){if(e===null){var c=n.type;return typeof c=="function"&&!uo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Bh(e,t,c,s,o)):(e=il(n.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!su(e,o)){var p=c.memoizedProps;if(n=n.compare,n=n!==null?n:ki,n(p,s)&&e.ref===t.ref)return pn(e,t,o)}return t.flags|=1,e=un(c,s),e.ref=t.ref,e.return=t,t.child=e}function Bh(e,t,n,s,o){if(e!==null){var c=e.memoizedProps;if(ki(c,s)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=s=c,su(e,o))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,pn(e,t,o)}return Wo(e,t,n,s,o)}function Hh(e,t,n,s){var o=s.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(s=t.child=e.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;s=o&~c}else s=0,t.child=null;return qh(e,t,c,n,s)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ol(t,c!==null?c.cachePool:null),c!==null?Yd(t,c):Do(),Kd(t);else return s=t.lanes=536870912,qh(e,t,c!==null?c.baseLanes|n:n,n,s)}else c!==null?(ol(t,c.cachePool),Yd(t,c),Vn(),t.memoizedState=null):(e!==null&&ol(t,null),Do(),Vn());return st(e,t,o,n),t.child}function Wi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qh(e,t,n,s,o){var c=wo();return c=c===null?null:{parent:Xe._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ol(t,null),Do(),Kd(t),e!==null&&Ya(e,t,s,!0),t.childLanes=o,null}function Al(e,t){return t=jl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gh(e,t,n){return pa(t,e.child,null,n),e=Al(t,t.pendingProps),e.flags|=2,Dt(t),t.memoizedState=null,e}function Kx(e,t,n){var s=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(s.mode==="hidden")return e=Al(t,s),t.lanes=536870912,Wi(null,e);if(Co(t),(e=Oe)?(e=ep(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Dn!==null?{id:$t,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},n=Ed(e),n.return=t,t.child=n,at=t,Oe=null)):e=null,e===null)throw Cn(t);return t.lanes=536870912,null}return Al(t,s)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Co(t),o)if(t.flags&256)t.flags&=-257,t=Gh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Fe||Ya(e,t,n,!1),o=(n&e.childLanes)!==0,Fe||o){if(s=Me,s!==null&&(p=Rf(s,n),p!==0&&p!==c.retryLane))throw c.retryLane=p,ra(e,p),St(s,e,p),$o;_l(),t=Gh(e,t,n)}else e=c.treeContext,Oe=Ht(p.nextSibling),at=t,ve=!0,Mn=null,Ut=!1,e!==null&&Dd(t,e),t=Al(t,s),t.flags|=4096;return t}return e=un(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function El(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wo(e,t,n,s,o){return fa(t),n=Ro(e,t,n,s,void 0,o),s=zo(),e!==null&&!Fe?(Lo(e,t,o),pn(e,t,o)):(ve&&s&&ho(t),t.flags|=1,st(e,t,n,o),t.child)}function Yh(e,t,n,s,o,c){return fa(t),t.updateQueue=null,n=Pd(t,s,n,o),Xd(e),s=zo(),e!==null&&!Fe?(Lo(e,t,c),pn(e,t,c)):(ve&&s&&ho(t),t.flags|=1,st(e,t,n,c),t.child)}function Kh(e,t,n,s,o){if(fa(t),t.stateNode===null){var c=Ba,p=n.contextType;typeof p=="object"&&p!==null&&(c=it(p)),c=new n(s,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Zo,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=s,c.state=t.memoizedState,c.refs={},Ao(t),p=n.contextType,c.context=typeof p=="object"&&p!==null?it(p):Ba,c.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Qo(t,n,p,s),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Zo.enqueueReplaceState(c,c.state,null),Fi(t,s,c,o),Pi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){c=t.stateNode;var x=t.memoizedProps,T=ya(n,x);c.props=T;var C=c.context,L=n.contextType;p=Ba,typeof L=="object"&&L!==null&&(p=it(L));var U=n.getDerivedStateFromProps;L=typeof U=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||C!==p)&&Ch(t,c,s,p),Rn=!1;var O=t.memoizedState;c.state=O,Fi(t,s,c,o),Pi(),C=t.memoizedState,x||O!==C||Rn?(typeof U=="function"&&(Qo(t,n,U,s),C=t.memoizedState),(T=Rn||Mh(t,n,T,s,O,C,p))?(L||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=C),c.props=s,c.state=C,c.context=p,s=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{c=t.stateNode,Eo(e,t),p=t.memoizedProps,L=ya(n,p),c.props=L,U=t.pendingProps,O=c.context,C=n.contextType,T=Ba,typeof C=="object"&&C!==null&&(T=it(C)),x=n.getDerivedStateFromProps,(C=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==U||O!==T)&&Ch(t,c,s,T),Rn=!1,O=t.memoizedState,c.state=O,Fi(t,s,c,o),Pi();var R=t.memoizedState;p!==U||O!==R||Rn||e!==null&&e.dependencies!==null&&ll(e.dependencies)?(typeof x=="function"&&(Qo(t,n,x,s),R=t.memoizedState),(L=Rn||Mh(t,n,L,s,O,R,T)||e!==null&&e.dependencies!==null&&ll(e.dependencies))?(C||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,R,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,R,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=R),c.props=s,c.state=R,c.context=T,s=L):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),s=!1)}return c=s,El(e,t),s=(t.flags&128)!==0,c||s?(c=t.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&s?(t.child=pa(t,e.child,null,o),t.child=pa(t,null,n,o)):st(e,t,n,o),t.memoizedState=c.state,e=t.child):e=pn(e,t,o),e}function Xh(e,t,n,s){return ua(),t.flags|=256,st(e,t,n,s),t.child}var Io={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function eu(e){return{baseLanes:e,cachePool:Ld()}}function tu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ct),e}function Ph(e,t,n){var s=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(o?_n(t):Vn(),(e=Oe)?(e=ep(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Dn!==null?{id:$t,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},n=Ed(e),n.return=t,t.child=n,at=t,Oe=null)):e=null,e===null)throw Cn(t);return ku(e)?t.lanes=32:t.lanes=536870912,null}var x=s.children;return s=s.fallback,o?(Vn(),o=t.mode,x=jl({mode:"hidden",children:x},o),s=oa(s,o,n,null),x.return=t,s.return=t,x.sibling=s,t.child=x,s=t.child,s.memoizedState=eu(n),s.childLanes=tu(e,p,n),t.memoizedState=Io,Wi(null,s)):(_n(t),nu(t,x))}var T=e.memoizedState;if(T!==null&&(x=T.dehydrated,x!==null)){if(c)t.flags&256?(_n(t),t.flags&=-257,t=au(e,t,n)):t.memoizedState!==null?(Vn(),t.child=e.child,t.flags|=128,t=null):(Vn(),x=s.fallback,o=t.mode,s=jl({mode:"visible",children:s.children},o),x=oa(x,o,n,null),x.flags|=2,s.return=t,x.return=t,s.sibling=x,t.child=s,pa(t,e.child,null,n),s=t.child,s.memoizedState=eu(n),s.childLanes=tu(e,p,n),t.memoizedState=Io,t=Wi(null,s));else if(_n(t),ku(x)){if(p=x.nextSibling&&x.nextSibling.dataset,p)var C=p.dgst;p=C,s=Error(r(419)),s.stack="",s.digest=p,Hi({value:s,source:null,stack:null}),t=au(e,t,n)}else if(Fe||Ya(e,t,n,!1),p=(n&e.childLanes)!==0,Fe||p){if(p=Me,p!==null&&(s=Rf(p,n),s!==0&&s!==T.retryLane))throw T.retryLane=s,ra(e,s),St(p,e,s),$o;Vu(x)||_l(),t=au(e,t,n)}else Vu(x)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Oe=Ht(x.nextSibling),at=t,ve=!0,Mn=null,Ut=!1,e!==null&&Dd(t,e),t=nu(t,s.children),t.flags|=4096);return t}return o?(Vn(),x=s.fallback,o=t.mode,T=e.child,C=T.sibling,s=un(T,{mode:"hidden",children:s.children}),s.subtreeFlags=T.subtreeFlags&65011712,C!==null?x=un(C,x):(x=oa(x,o,n,null),x.flags|=2),x.return=t,s.return=t,s.sibling=x,t.child=s,Wi(null,s),s=t.child,x=e.child.memoizedState,x===null?x=eu(n):(o=x.cachePool,o!==null?(T=Xe._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Ld(),x={baseLanes:x.baseLanes|n,cachePool:o}),s.memoizedState=x,s.childLanes=tu(e,p,n),t.memoizedState=Io,Wi(e.child,s)):(_n(t),n=e.child,e=n.sibling,n=un(n,{mode:"visible",children:s.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function nu(e,t){return t=jl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function jl(e,t){return e=jt(22,e,null,t),e.lanes=0,e}function au(e,t,n){return pa(t,e.child,null,n),e=nu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fh(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),vo(e.return,t,n)}function iu(e,t,n,s,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=s,p.tail=n,p.tailMode=o,p.treeForkCount=c)}function Qh(e,t,n){var s=t.pendingProps,o=s.revealOrder,c=s.tail;s=s.children;var p=Ge.current,x=(p&2)!==0;if(x?(p=p&1|2,t.flags|=128):p&=1,K(Ge,p),st(e,t,s,n),s=ve?Bi:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fh(e,n,t);else if(e.tag===19)Fh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ml(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),iu(t,!1,o,n,c,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ml(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}iu(t,!0,n,null,c,s);break;case"together":iu(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function pn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ya(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function su(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ll(e)))}function Xx(e,t,n){switch(t.tag){case 3:ft(t,t.stateNode.containerInfo),On(t,Xe,e.memoizedState.cache),ua();break;case 27:case 5:Ai(t);break;case 4:ft(t,t.stateNode.containerInfo);break;case 10:On(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Co(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(_n(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Ph(e,t,n):(_n(t),e=pn(e,t,n),e!==null?e.sibling:null);_n(t);break;case 19:var o=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(Ya(e,t,n,!1),s=(n&t.childLanes)!==0),o){if(s)return Qh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(Ge,Ge.current),s)break;return null;case 22:return t.lanes=0,Hh(e,t,n,t.pendingProps);case 24:On(t,Xe,e.memoizedState.cache)}return pn(e,t,n)}function Zh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!su(e,n)&&(t.flags&128)===0)return Fe=!1,Xx(e,t,n);Fe=(e.flags&131072)!==0}else Fe=!1,ve&&(t.flags&1048576)!==0&&Nd(t,Bi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=ha(t.elementType),t.type=e,typeof e=="function")uo(e)?(s=ya(e,s),t.tag=1,t=Kh(null,t,e,s,n)):(t.tag=0,t=Wo(null,t,e,s,n));else{if(e!=null){var o=e.$$typeof;if(o===X){t.tag=11,t=kh(null,t,e,s,n);break e}else if(o===Q){t.tag=14,t=Uh(null,t,e,s,n);break e}}throw t=Le(e)||e,Error(r(306,t,""))}}return t;case 0:return Wo(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,o=ya(s,t.pendingProps),Kh(e,t,s,o,n);case 3:e:{if(ft(t,t.stateNode.containerInfo),e===null)throw Error(r(387));s=t.pendingProps;var c=t.memoizedState;o=c.element,Eo(e,t),Fi(t,s,null,n);var p=t.memoizedState;if(s=p.cache,On(t,Xe,s),s!==c.cache&&xo(t,[Xe],n,!0),Pi(),s=p.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Xh(e,t,s,n);break e}else if(s!==o){o=_t(Error(r(424)),t),Hi(o),t=Xh(e,t,s,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Oe=Ht(e.firstChild),at=t,ve=!0,Mn=null,Ut=!0,n=Hd(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ua(),s===o){t=pn(e,t,n);break e}st(e,t,s,n)}t=t.child}return t;case 26:return El(e,t),e===null?(n=lp(t.type,null,t.pendingProps,null))?t.memoizedState=n:ve||(n=t.type,e=t.pendingProps,s=Gl(de.current).createElement(n),s[nt]=t,s[pt]=e,lt(s,n,e),Ie(s),t.stateNode=s):t.memoizedState=lp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ai(t),e===null&&ve&&(s=t.stateNode=ap(t.type,t.pendingProps,de.current),at=t,Ut=!0,o=Oe,Kn(t.type)?(Uu=o,Oe=Ht(s.firstChild)):Oe=o),st(e,t,t.pendingProps.children,n),El(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((o=s=Oe)&&(s=S1(s,t.type,t.pendingProps,Ut),s!==null?(t.stateNode=s,at=t,Oe=Ht(s.firstChild),Ut=!1,o=!0):o=!1),o||Cn(t)),Ai(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,s=c.children,zu(o,c)?s=null:p!==null&&zu(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Ro(e,t,Vx,null,null,n),hs._currentValue=o),El(e,t),st(e,t,s,n),t.child;case 6:return e===null&&ve&&((e=n=Oe)&&(n=w1(n,t.pendingProps,Ut),n!==null?(t.stateNode=n,at=t,Oe=null,e=!0):e=!1),e||Cn(t)),null;case 13:return Ph(e,t,n);case 4:return ft(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=pa(t,null,s,n):st(e,t,s,n),t.child;case 11:return kh(e,t,t.type,t.pendingProps,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.pendingProps,On(t,t.type,s.value),st(e,t,s.children,n),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,fa(t),o=it(o),s=s(o),t.flags|=1,st(e,t,s,n),t.child;case 14:return Uh(e,t,t.type,t.pendingProps,n);case 15:return Bh(e,t,t.type,t.pendingProps,n);case 19:return Qh(e,t,n);case 31:return Kx(e,t,n);case 22:return Hh(e,t,n,t.pendingProps);case 24:return fa(t),s=it(Xe),e===null?(o=wo(),o===null&&(o=Me,c=bo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:s,cache:o},Ao(t),On(t,Xe,o)):((e.lanes&n)!==0&&(Eo(e,t),Fi(t,null,null,n),Pi()),o=e.memoizedState,c=t.memoizedState,o.parent!==s?(o={parent:s,cache:s},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),On(t,Xe,s)):(s=c.cache,On(t,Xe,s),s!==o.cache&&xo(t,[Xe],n,!0))),st(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function gn(e){e.flags|=4}function lu(e,t,n,s,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(wm())e.flags|=8192;else throw ma=cl,To}else e.flags&=-16777217}function Jh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fp(t))if(wm())e.flags|=8192;else throw ma=cl,To}function Nl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mf():536870912,e.lanes|=t,ti|=t)}function Ii(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Px(e,t,n){var s=t.pendingProps;switch(mo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return Re(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),dn(Xe),qe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ga(t)?gn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,go())),Re(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(gn(t),c!==null?(Re(t),Jh(t,c)):(Re(t),lu(t,o,null,s,n))):c?c!==e.memoizedState?(gn(t),Re(t),Jh(t,c)):(Re(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&gn(t),Re(t),lu(t,o,e,s,n)),null;case 27:if(Us(t),n=de.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&gn(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return Re(t),null}e=Z.current,Ga(t)?Md(t):(e=ap(o,s,n),t.stateNode=e,gn(t))}return Re(t),null;case 5:if(Us(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&gn(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return Re(t),null}if(c=Z.current,Ga(t))Md(t);else{var p=Gl(de.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof s.is=="string"?p.createElement("select",{is:s.is}):p.createElement("select"),s.multiple?c.multiple=!0:s.size&&(c.size=s.size);break;default:c=typeof s.is=="string"?p.createElement(o,{is:s.is}):p.createElement(o)}}c[nt]=t,c[pt]=s;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(lt(c,o,s),o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&gn(t)}}return Re(t),lu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&gn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(r(166));if(e=de.current,Ga(t)){if(e=t.stateNode,n=t.memoizedProps,s=null,o=at,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||Pm(e.nodeValue,n)),e||Cn(t,!0)}else e=Gl(e).createTextNode(s),e[nt]=t,t.stateNode=e}return Re(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(s=Ga(t),n!==null){if(e===null){if(!s)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[nt]=t}else ua(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),e=!1}else n=go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Re(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ga(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[nt]=t}else ua(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),o=!1}else o=go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==o&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Nl(t,t.updateQueue),Re(t),null);case 4:return qe(),e===null&&Du(t.stateNode.containerInfo),Re(t),null;case 10:return dn(t.type),Re(t),null;case 19:if(_(Ge),s=t.memoizedState,s===null)return Re(t),null;if(o=(t.flags&128)!==0,c=s.rendering,c===null)if(o)Ii(s,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=ml(e),c!==null){for(t.flags|=128,Ii(s,!1),e=c.updateQueue,t.updateQueue=e,Nl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ad(n,e),n=n.sibling;return K(Ge,Ge.current&1|2),ve&&cn(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&wt()>Rl&&(t.flags|=128,o=!0,Ii(s,!1),t.lanes=4194304)}else{if(!o)if(e=ml(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Nl(t,e),Ii(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!ve)return Re(t),null}else 2*wt()-s.renderingStartTime>Rl&&n!==536870912&&(t.flags|=128,o=!0,Ii(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(e=s.last,e!==null?e.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=wt(),e.sibling=null,n=Ge.current,K(Ge,o?n&1|2:n&1),ve&&cn(t,s.treeForkCount),e):(Re(t),null);case 22:case 23:return Dt(t),Mo(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),n=t.updateQueue,n!==null&&Nl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&_(da),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),dn(Xe),Re(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Fx(e,t){switch(mo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dn(Xe),qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Us(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(r(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _(Ge),null;case 4:return qe(),null;case 10:return dn(t.type),null;case 22:case 23:return Dt(t),Mo(),e!==null&&_(da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return dn(Xe),null;case 25:return null;default:return null}}function $h(e,t){switch(mo(t),t.tag){case 3:dn(Xe),qe();break;case 26:case 27:case 5:Us(t);break;case 4:qe();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:_(Ge);break;case 10:dn(t.type);break;case 22:case 23:Dt(t),Mo(),e!==null&&_(da);break;case 24:dn(Xe)}}function es(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var o=s.next;n=o;do{if((n.tag&e)===e){s=void 0;var c=n.create,p=n.inst;s=c(),p.destroy=s}n=n.next}while(n!==o)}}catch(x){Ee(t,t.return,x)}}function kn(e,t,n){try{var s=t.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var c=o.next;s=c;do{if((s.tag&e)===e){var p=s.inst,x=p.destroy;if(x!==void 0){p.destroy=void 0,o=t;var T=n,C=x;try{C()}catch(L){Ee(o,T,L)}}}s=s.next}while(s!==c)}}catch(L){Ee(t,t.return,L)}}function Wh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Gd(t,n)}catch(s){Ee(e,e.return,s)}}}function Ih(e,t,n){n.props=ya(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(s){Ee(e,t,s)}}function ts(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof n=="function"?e.refCleanup=n(s):n.current=s}}catch(o){Ee(e,t,o)}}function It(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(o){Ee(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Ee(e,t,o)}else n.current=null}function em(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break e;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(o){Ee(e,e.return,o)}}function ru(e,t,n){try{var s=e.stateNode;p1(s,e.type,n,t),s[pt]=t}catch(o){Ee(e,e.return,o)}}function tm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kn(e.type)||e.tag===4}function ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Kn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uu(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=rn));else if(s!==4&&(s===27&&Kn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(uu(e,t,n),e=e.sibling;e!==null;)uu(e,t,n),e=e.sibling}function Dl(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&Kn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Dl(e,t,n),e=e.sibling;e!==null;)Dl(e,t,n),e=e.sibling}function nm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);lt(t,s,n),t[nt]=e,t[pt]=n}catch(c){Ee(e,e.return,c)}}var yn=!1,Qe=!1,cu=!1,am=typeof WeakSet=="function"?WeakSet:Set,et=null;function Qx(e,t){if(e=e.containerInfo,Ou=Zl,e=pd(e),no(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var o=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var p=0,x=-1,T=-1,C=0,L=0,U=e,O=null;t:for(;;){for(var R;U!==n||o!==0&&U.nodeType!==3||(x=p+o),U!==c||s!==0&&U.nodeType!==3||(T=p+s),U.nodeType===3&&(p+=U.nodeValue.length),(R=U.firstChild)!==null;)O=U,U=R;for(;;){if(U===e)break t;if(O===n&&++C===o&&(x=p),O===c&&++L===s&&(T=p),(R=U.nextSibling)!==null)break;U=O,O=U.parentNode}U=R}n=x===-1||T===-1?null:{start:x,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ru={focusedElem:e,selectionRange:n},Zl=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,s=n.stateNode;try{var J=ya(n.type,o);e=s.getSnapshotBeforeUpdate(J,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(ne){Ee(n,n.return,ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)_u(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_u(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function im(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:xn(e,n),s&4&&es(5,n);break;case 1:if(xn(e,n),s&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Ee(n,n.return,p)}else{var o=ya(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Ee(n,n.return,p)}}s&64&&Wh(n),s&512&&ts(n,n.return);break;case 3:if(xn(e,n),s&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Gd(e,t)}catch(p){Ee(n,n.return,p)}}break;case 27:t===null&&s&4&&nm(n);case 26:case 5:xn(e,n),t===null&&s&4&&em(n),s&512&&ts(n,n.return);break;case 12:xn(e,n);break;case 31:xn(e,n),s&4&&rm(e,n);break;case 13:xn(e,n),s&4&&om(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=a1.bind(null,n),T1(e,n))));break;case 22:if(s=n.memoizedState!==null||yn,!s){t=t!==null&&t.memoizedState!==null||Qe,o=yn;var c=Qe;yn=s,(Qe=t)&&!c?bn(e,n,(n.subtreeFlags&8772)!==0):xn(e,n),yn=o,Qe=c}break;case 30:break;default:xn(e,n)}}function sm(e){var t=e.alternate;t!==null&&(e.alternate=null,sm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Br(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ze=null,yt=!1;function vn(e,t,n){for(n=n.child;n!==null;)lm(e,t,n),n=n.sibling}function lm(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(Ei,n)}catch{}switch(n.tag){case 26:Qe||It(n,t),vn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qe||It(n,t);var s=ze,o=yt;Kn(n.type)&&(ze=n.stateNode,yt=!1),vn(e,t,n),cs(n.stateNode),ze=s,yt=o;break;case 5:Qe||It(n,t);case 6:if(s=ze,o=yt,ze=null,vn(e,t,n),ze=s,yt=o,ze!==null)if(yt)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(n.stateNode)}catch(c){Ee(n,t,c)}else try{ze.removeChild(n.stateNode)}catch(c){Ee(n,t,c)}break;case 18:ze!==null&&(yt?(e=ze,Wm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ui(e)):Wm(ze,n.stateNode));break;case 4:s=ze,o=yt,ze=n.stateNode.containerInfo,yt=!0,vn(e,t,n),ze=s,yt=o;break;case 0:case 11:case 14:case 15:kn(2,n,t),Qe||kn(4,n,t),vn(e,t,n);break;case 1:Qe||(It(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&Ih(n,t,s)),vn(e,t,n);break;case 21:vn(e,t,n);break;case 22:Qe=(s=Qe)||n.memoizedState!==null,vn(e,t,n),Qe=s;break;default:vn(e,t,n)}}function rm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ui(e)}catch(n){Ee(t,t.return,n)}}}function om(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ui(e)}catch(n){Ee(t,t.return,n)}}function Zx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new am),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new am),t;default:throw Error(r(435,e.tag))}}function Ml(e,t){var n=Zx(e);t.forEach(function(s){if(!n.has(s)){n.add(s);var o=i1.bind(null,e,s);s.then(o,o)}})}function vt(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var o=n[s],c=e,p=t,x=p;e:for(;x!==null;){switch(x.tag){case 27:if(Kn(x.type)){ze=x.stateNode,yt=!1;break e}break;case 5:ze=x.stateNode,yt=!1;break e;case 3:case 4:ze=x.stateNode.containerInfo,yt=!0;break e}x=x.return}if(ze===null)throw Error(r(160));lm(c,p,o),ze=null,yt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)um(t,e),t=t.sibling}var Xt=null;function um(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),xt(e),s&4&&(kn(3,e,e.return),es(3,e),kn(5,e,e.return));break;case 1:vt(t,e),xt(e),s&512&&(Qe||n===null||It(n,n.return)),s&64&&yn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var o=Xt;if(vt(t,e),xt(e),s&512&&(Qe||n===null||It(n,n.return)),s&4){var c=n!==null?n.memoizedState:null;if(s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(s){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Di]||c[nt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(s),o.head.insertBefore(c,o.querySelector("head > title"))),lt(c,s,n),c[nt]=e,Ie(c),s=c;break e;case"link":var p=up("link","href",o).get(s+(n.href||""));if(p){for(var x=0;x<p.length;x++)if(c=p[x],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(x,1);break t}}c=o.createElement(s),lt(c,s,n),o.head.appendChild(c);break;case"meta":if(p=up("meta","content",o).get(s+(n.content||""))){for(x=0;x<p.length;x++)if(c=p[x],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(x,1);break t}}c=o.createElement(s),lt(c,s,n),o.head.appendChild(c);break;default:throw Error(r(468,s))}c[nt]=e,Ie(c),s=c}e.stateNode=s}else cp(o,e.type,e.stateNode);else e.stateNode=op(o,s,e.memoizedProps);else c!==s?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,s===null?cp(o,e.type,e.stateNode):op(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&ru(e,e.memoizedProps,n.memoizedProps)}break;case 27:vt(t,e),xt(e),s&512&&(Qe||n===null||It(n,n.return)),n!==null&&s&4&&ru(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vt(t,e),xt(e),s&512&&(Qe||n===null||It(n,n.return)),e.flags&32){o=e.stateNode;try{Ra(o,"")}catch(J){Ee(e,e.return,J)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,ru(e,o,n!==null?n.memoizedProps:o)),s&1024&&(cu=!0);break;case 6:if(vt(t,e),xt(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,n=e.stateNode;try{n.nodeValue=s}catch(J){Ee(e,e.return,J)}}break;case 3:if(Xl=null,o=Xt,Xt=Yl(t.containerInfo),vt(t,e),Xt=o,xt(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ui(t.containerInfo)}catch(J){Ee(e,e.return,J)}cu&&(cu=!1,cm(e));break;case 4:s=Xt,Xt=Yl(e.stateNode.containerInfo),vt(t,e),xt(e),Xt=s;break;case 12:vt(t,e),xt(e);break;case 31:vt(t,e),xt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ml(e,s)));break;case 13:vt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ol=wt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ml(e,s)));break;case 22:o=e.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,C=yn,L=Qe;if(yn=C||o,Qe=L||T,vt(t,e),Qe=L,yn=C,xt(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||T||yn||Qe||va(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){T=n=t;try{if(c=T.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{x=T.stateNode;var U=T.memoizedProps.style,O=U!=null&&U.hasOwnProperty("display")?U.display:null;x.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(J){Ee(T,T.return,J)}}}else if(t.tag===6){if(n===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(J){Ee(T,T.return,J)}}}else if(t.tag===18){if(n===null){T=t;try{var R=T.stateNode;o?Im(R,!0):Im(T.stateNode,!1)}catch(J){Ee(T,T.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,Ml(e,n))));break;case 19:vt(t,e),xt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Ml(e,s)));break;case 30:break;case 21:break;default:vt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var n,s=e.return;s!==null;){if(tm(s)){n=s;break}s=s.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,c=ou(e);Dl(e,c,o);break;case 5:var p=n.stateNode;n.flags&32&&(Ra(p,""),n.flags&=-33);var x=ou(e);Dl(e,x,p);break;case 3:case 4:var T=n.stateNode.containerInfo,C=ou(e);uu(e,C,T);break;default:throw Error(r(161))}}catch(L){Ee(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;cm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)im(e,t.alternate,t),t=t.sibling}function va(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:kn(4,t,t.return),va(t);break;case 1:It(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Ih(t,t.return,n),va(t);break;case 27:cs(t.stateNode);case 26:case 5:It(t,t.return),va(t);break;case 22:t.memoizedState===null&&va(t);break;case 30:va(t);break;default:va(t)}e=e.sibling}}function bn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:bn(o,c,n),es(4,c);break;case 1:if(bn(o,c,n),s=c,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(C){Ee(s,s.return,C)}if(s=c,o=s.updateQueue,o!==null){var x=s.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)qd(T[o],x)}catch(C){Ee(s,s.return,C)}}n&&p&64&&Wh(c),ts(c,c.return);break;case 27:nm(c);case 26:case 5:bn(o,c,n),n&&s===null&&p&4&&em(c),ts(c,c.return);break;case 12:bn(o,c,n);break;case 31:bn(o,c,n),n&&p&4&&rm(o,c);break;case 13:bn(o,c,n),n&&p&4&&om(o,c);break;case 22:c.memoizedState===null&&bn(o,c,n),ts(c,c.return);break;case 30:break;default:bn(o,c,n)}t=t.sibling}}function fu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&qi(n))}function du(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qi(e))}function Pt(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fm(e,t,n,s),t=t.sibling}function fm(e,t,n,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Pt(e,t,n,s),o&2048&&es(9,t);break;case 1:Pt(e,t,n,s);break;case 3:Pt(e,t,n,s),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qi(e)));break;case 12:if(o&2048){Pt(e,t,n,s),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,x=c.onPostCommit;typeof x=="function"&&x(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Ee(t,t.return,T)}}else Pt(e,t,n,s);break;case 31:Pt(e,t,n,s);break;case 13:Pt(e,t,n,s);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?Pt(e,t,n,s):ns(e,t):c._visibility&2?Pt(e,t,n,s):(c._visibility|=2,Wa(e,t,n,s,(t.subtreeFlags&10256)!==0||!1)),o&2048&&fu(p,t);break;case 24:Pt(e,t,n,s),o&2048&&du(t.alternate,t);break;default:Pt(e,t,n,s)}}function Wa(e,t,n,s,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,x=n,T=s,C=p.flags;switch(p.tag){case 0:case 11:case 15:Wa(c,p,x,T,o),es(8,p);break;case 23:break;case 22:var L=p.stateNode;p.memoizedState!==null?L._visibility&2?Wa(c,p,x,T,o):ns(c,p):(L._visibility|=2,Wa(c,p,x,T,o)),o&&C&2048&&fu(p.alternate,p);break;case 24:Wa(c,p,x,T,o),o&&C&2048&&du(p.alternate,p);break;default:Wa(c,p,x,T,o)}t=t.sibling}}function ns(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,o=s.flags;switch(s.tag){case 22:ns(n,s),o&2048&&fu(s.alternate,s);break;case 24:ns(n,s),o&2048&&du(s.alternate,s);break;default:ns(n,s)}t=t.sibling}}var as=8192;function Ia(e,t,n){if(e.subtreeFlags&as)for(e=e.child;e!==null;)dm(e,t,n),e=e.sibling}function dm(e,t,n){switch(e.tag){case 26:Ia(e,t,n),e.flags&as&&e.memoizedState!==null&&_1(n,Xt,e.memoizedState,e.memoizedProps);break;case 5:Ia(e,t,n);break;case 3:case 4:var s=Xt;Xt=Yl(e.stateNode.containerInfo),Ia(e,t,n),Xt=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=as,as=16777216,Ia(e,t,n),as=s):Ia(e,t,n));break;default:Ia(e,t,n)}}function hm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function is(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];et=s,pm(s,e)}hm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mm(e),e=e.sibling}function mm(e){switch(e.tag){case 0:case 11:case 15:is(e),e.flags&2048&&kn(9,e,e.return);break;case 3:is(e);break;case 12:is(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Cl(e)):is(e);break;default:is(e)}}function Cl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];et=s,pm(s,e)}hm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:kn(8,t,t.return),Cl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Cl(t));break;default:Cl(t)}e=e.sibling}}function pm(e,t){for(;et!==null;){var n=et;switch(n.tag){case 0:case 11:case 15:kn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:qi(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,et=s;else e:for(n=e;et!==null;){s=et;var o=s.sibling,c=s.return;if(sm(s),s===n){et=null;break e}if(o!==null){o.return=c,et=o;break e}et=c}}}var Jx={getCacheForType:function(e){var t=it(Xe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return it(Xe).controller.signal}},$x=typeof WeakMap=="function"?WeakMap:Map,we=0,Me=null,he=null,pe=0,Ae=0,Mt=null,Un=!1,ei=!1,hu=!1,Sn=0,Ue=0,Bn=0,xa=0,mu=0,Ct=0,ti=0,ss=null,bt=null,pu=!1,Ol=0,gm=0,Rl=1/0,zl=null,Hn=null,$e=0,qn=null,ni=null,wn=0,gu=0,yu=null,ym=null,ls=0,vu=null;function Ot(){return(we&2)!==0&&pe!==0?pe&-pe:z.T!==null?Au():zf()}function vm(){if(Ct===0)if((pe&536870912)===0||ve){var e=qs;qs<<=1,(qs&3932160)===0&&(qs=262144),Ct=e}else Ct=536870912;return e=Nt.current,e!==null&&(e.flags|=32),Ct}function St(e,t,n){(e===Me&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)&&(ai(e,0),Gn(e,pe,Ct,!1)),Ni(e,n),((we&2)===0||e!==Me)&&(e===Me&&((we&2)===0&&(xa|=n),Ue===4&&Gn(e,pe,Ct,!1)),en(e))}function xm(e,t,n){if((we&6)!==0)throw Error(r(327));var s=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ji(e,t),o=s?e1(e,t):bu(e,t,!0),c=s;do{if(o===0){ei&&!s&&Gn(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Wx(n)){o=bu(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var x=e;o=ss;var T=x.current.memoizedState.isDehydrated;if(T&&(ai(x,p).flags|=256),p=bu(x,p,!1),p!==2){if(hu&&!T){x.errorRecoveryDisabledLanes|=c,xa|=c,o=4;break e}c=bt,bt=o,c!==null&&(bt===null?bt=c:bt.push.apply(bt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){ai(e,0),Gn(e,t,0,!0);break}e:{switch(s=e,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Gn(s,t,Ct,!Un);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=Ol+300-wt(),10<o)){if(Gn(s,t,Ct,!Un),Ys(s,0,!0)!==0)break e;wn=t,s.timeoutHandle=Jm(bm.bind(null,s,n,bt,zl,pu,t,Ct,xa,ti,Un,c,"Throttled",-0,0),o);break e}bm(s,n,bt,zl,pu,t,Ct,xa,ti,Un,c,null,-0,0)}}break}while(!0);en(e)}function bm(e,t,n,s,o,c,p,x,T,C,L,U,O,R){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},dm(t,c,U);var J=(c&62914560)===c?Ol-wt():(c&4194048)===c?gm-wt():0;if(J=V1(U,J),J!==null){wn=c,e.cancelPendingCommit=J(Dm.bind(null,e,t,c,n,s,o,p,x,T,L,U,null,O,R)),Gn(e,c,p,!C);return}}Dm(e,t,c,n,s,o,p,x,T)}function Wx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var s=0;s<n.length;s++){var o=n[s],c=o.getSnapshot;o=o.value;try{if(!Et(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Gn(e,t,n,s){t&=~mu,t&=~xa,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var c=31-At(o),p=1<<c;s[c]=-1,o&=~p}n!==0&&Cf(e,n,t)}function Ll(){return(we&6)===0?(rs(0),!1):!0}function xu(){if(he!==null){if(Ae===0)var e=he.return;else e=he,fn=ca=null,_o(e),Fa=null,Yi=0,e=he;for(;e!==null;)$h(e.alternate,e),e=e.return;he=null}}function ai(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,v1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),wn=0,xu(),Me=e,he=n=un(e.current,null),pe=t,Ae=0,Mt=null,Un=!1,ei=ji(e,t),hu=!1,ti=Ct=mu=xa=Bn=Ue=0,bt=ss=null,pu=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var o=31-At(s),c=1<<o;t|=e[o],s&=~c}return Sn=t,tl(),n}function Sm(e,t){oe=null,z.H=$i,t===Pa||t===ul?(t=kd(),Ae=3):t===To?(t=kd(),Ae=4):Ae=t===$o?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,he===null&&(Ue=1,Tl(e,_t(t,e.current)))}function wm(){var e=Nt.current;return e===null?!0:(pe&4194048)===pe?Bt===null:(pe&62914560)===pe||(pe&536870912)!==0?e===Bt:!1}function Tm(){var e=z.H;return z.H=$i,e===null?$i:e}function Am(){var e=z.A;return z.A=Jx,e}function _l(){Ue=4,Un||(pe&4194048)!==pe&&Nt.current!==null||(ei=!0),(Bn&134217727)===0&&(xa&134217727)===0||Me===null||Gn(Me,pe,Ct,!1)}function bu(e,t,n){var s=we;we|=2;var o=Tm(),c=Am();(Me!==e||pe!==t)&&(zl=null,ai(e,t)),t=!1;var p=Ue;e:do try{if(Ae!==0&&he!==null){var x=he,T=Mt;switch(Ae){case 8:xu(),p=6;break e;case 3:case 2:case 9:case 6:Nt.current===null&&(t=!0);var C=Ae;if(Ae=0,Mt=null,ii(e,x,T,C),n&&ei){p=0;break e}break;default:C=Ae,Ae=0,Mt=null,ii(e,x,T,C)}}Ix(),p=Ue;break}catch(L){Sm(e,L)}while(!0);return t&&e.shellSuspendCounter++,fn=ca=null,we=s,z.H=o,z.A=c,he===null&&(Me=null,pe=0,tl()),p}function Ix(){for(;he!==null;)Em(he)}function e1(e,t){var n=we;we|=2;var s=Tm(),o=Am();Me!==e||pe!==t?(zl=null,Rl=wt()+500,ai(e,t)):ei=ji(e,t);e:do try{if(Ae!==0&&he!==null){t=he;var c=Mt;t:switch(Ae){case 1:Ae=0,Mt=null,ii(e,t,c,1);break;case 2:case 9:if(_d(c)){Ae=0,Mt=null,jm(t);break}t=function(){Ae!==2&&Ae!==9||Me!==e||(Ae=7),en(e)},c.then(t,t);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:_d(c)?(Ae=0,Mt=null,jm(t)):(Ae=0,Mt=null,ii(e,t,c,7));break;case 5:var p=null;switch(he.tag){case 26:p=he.memoizedState;case 5:case 27:var x=he;if(p?fp(p):x.stateNode.complete){Ae=0,Mt=null;var T=x.sibling;if(T!==null)he=T;else{var C=x.return;C!==null?(he=C,Vl(C)):he=null}break t}}Ae=0,Mt=null,ii(e,t,c,5);break;case 6:Ae=0,Mt=null,ii(e,t,c,6);break;case 8:xu(),Ue=6;break e;default:throw Error(r(462))}}t1();break}catch(L){Sm(e,L)}while(!0);return fn=ca=null,z.H=s,z.A=o,we=n,he!==null?0:(Me=null,pe=0,tl(),Ue)}function t1(){for(;he!==null&&!Av();)Em(he)}function Em(e){var t=Zh(e.alternate,e,Sn);e.memoizedProps=e.pendingProps,t===null?Vl(e):he=t}function jm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Yh(n,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=Yh(n,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:_o(t);default:$h(n,t),t=he=Ad(t,Sn),t=Zh(n,t,Sn)}e.memoizedProps=e.pendingProps,t===null?Vl(e):he=t}function ii(e,t,n,s){fn=ca=null,_o(t),Fa=null,Yi=0;var o=t.return;try{if(Yx(e,o,t,n,pe)){Ue=1,Tl(e,_t(n,e.current)),he=null;return}}catch(c){if(o!==null)throw he=o,c;Ue=1,Tl(e,_t(n,e.current)),he=null;return}t.flags&32768?(ve||s===1?e=!0:ei||(pe&536870912)!==0?e=!1:(Un=e=!0,(s===2||s===9||s===3||s===6)&&(s=Nt.current,s!==null&&s.tag===13&&(s.flags|=16384))),Nm(t,e)):Vl(t)}function Vl(e){var t=e;do{if((t.flags&32768)!==0){Nm(t,Un);return}e=t.return;var n=Px(t.alternate,t,Sn);if(n!==null){he=n;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);Ue===0&&(Ue=5)}function Nm(e,t){do{var n=Fx(e.alternate,e);if(n!==null){n.flags&=32767,he=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){he=e;return}he=e=n}while(e!==null);Ue=6,he=null}function Dm(e,t,n,s,o,c,p,x,T){e.cancelPendingCommit=null;do kl();while($e!==0);if((we&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=ro,Lv(e,n,c,p,x,T),e===Me&&(he=Me=null,pe=0),ni=t,qn=e,wn=n,gu=c,yu=o,ym=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,s1(Bs,function(){return zm(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=z.T,z.T=null,o=G.p,G.p=2,p=we,we|=4;try{Qx(e,t,n)}finally{we=p,G.p=o,z.T=s}}$e=1,Mm(),Cm(),Om()}}function Mm(){if($e===1){$e=0;var e=qn,t=ni,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var s=G.p;G.p=2;var o=we;we|=4;try{um(t,e);var c=Ru,p=pd(e.containerInfo),x=c.focusedElem,T=c.selectionRange;if(p!==x&&x&&x.ownerDocument&&md(x.ownerDocument.documentElement,x)){if(T!==null&&no(x)){var C=T.start,L=T.end;if(L===void 0&&(L=C),"selectionStart"in x)x.selectionStart=C,x.selectionEnd=Math.min(L,x.value.length);else{var U=x.ownerDocument||document,O=U&&U.defaultView||window;if(O.getSelection){var R=O.getSelection(),J=x.textContent.length,ne=Math.min(T.start,J),De=T.end===void 0?ne:Math.min(T.end,J);!R.extend&&ne>De&&(p=De,De=ne,ne=p);var D=hd(x,ne),N=hd(x,De);if(D&&N&&(R.rangeCount!==1||R.anchorNode!==D.node||R.anchorOffset!==D.offset||R.focusNode!==N.node||R.focusOffset!==N.offset)){var M=U.createRange();M.setStart(D.node,D.offset),R.removeAllRanges(),ne>De?(R.addRange(M),R.extend(N.node,N.offset)):(M.setEnd(N.node,N.offset),R.addRange(M))}}}}for(U=[],R=x;R=R.parentNode;)R.nodeType===1&&U.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<U.length;x++){var k=U[x];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Zl=!!Ou,Ru=Ou=null}finally{we=o,G.p=s,z.T=n}}e.current=t,$e=2}}function Cm(){if($e===2){$e=0;var e=qn,t=ni,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var s=G.p;G.p=2;var o=we;we|=4;try{im(e,t.alternate,t)}finally{we=o,G.p=s,z.T=n}}$e=3}}function Om(){if($e===4||$e===3){$e=0,Ev();var e=qn,t=ni,n=wn,s=ym;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$e=5:($e=0,ni=qn=null,Rm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Hn=null),kr(n),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(Ei,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=z.T,o=G.p,G.p=2,z.T=null;try{for(var c=e.onRecoverableError,p=0;p<s.length;p++){var x=s[p];c(x.value,{componentStack:x.stack})}}finally{z.T=t,G.p=o}}(wn&3)!==0&&kl(),en(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===vu?ls++:(ls=0,vu=e):ls=0,rs(0)}}function Rm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qi(t)))}function kl(){return Mm(),Cm(),Om(),zm()}function zm(){if($e!==5)return!1;var e=qn,t=gu;gu=0;var n=kr(wn),s=z.T,o=G.p;try{G.p=32>n?32:n,z.T=null,n=yu,yu=null;var c=qn,p=wn;if($e=0,ni=qn=null,wn=0,(we&6)!==0)throw Error(r(331));var x=we;if(we|=4,mm(c.current),fm(c,c.current,p,n),we=x,rs(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(Ei,c)}catch{}return!0}finally{G.p=o,z.T=s,Rm(e,t)}}function Lm(e,t,n){t=_t(n,t),t=Jo(e.stateNode,t,2),e=Ln(e,t,2),e!==null&&(Ni(e,2),en(e))}function Ee(e,t,n){if(e.tag===3)Lm(e,e,n);else for(;t!==null;){if(t.tag===3){Lm(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Hn===null||!Hn.has(s))){e=_t(n,e),n=_h(2),s=Ln(t,n,2),s!==null&&(Vh(n,s,t,e),Ni(s,2),en(s));break}}t=t.return}}function Su(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new $x;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(n)||(hu=!0,o.add(n),e=n1.bind(null,e,t,n),t.then(e,e))}function n1(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Me===e&&(pe&n)===n&&(Ue===4||Ue===3&&(pe&62914560)===pe&&300>wt()-Ol?(we&2)===0&&ai(e,0):mu|=n,ti===pe&&(ti=0)),en(e)}function _m(e,t){t===0&&(t=Mf()),e=ra(e,t),e!==null&&(Ni(e,t),en(e))}function a1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_m(e,n)}function i1(e,t){var n=0;switch(e.tag){case 31:case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(t),_m(e,n)}function s1(e,t){return zr(e,t)}var Ul=null,si=null,wu=!1,Bl=!1,Tu=!1,Yn=0;function en(e){e!==si&&e.next===null&&(si===null?Ul=si=e:si=si.next=e),Bl=!0,wu||(wu=!0,r1())}function rs(e,t){if(!Tu&&Bl){Tu=!0;do for(var n=!1,s=Ul;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var c=0;else{var p=s.suspendedLanes,x=s.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=o&~(p&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Bm(s,c))}else c=pe,c=Ys(s,s===Me?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||ji(s,c)||(n=!0,Bm(s,c));s=s.next}while(n);Tu=!1}}function l1(){Vm()}function Vm(){Bl=wu=!1;var e=0;Yn!==0&&y1()&&(e=Yn);for(var t=wt(),n=null,s=Ul;s!==null;){var o=s.next,c=km(s,t);c===0?(s.next=null,n===null?Ul=o:n.next=o,o===null&&(si=n)):(n=s,(e!==0||(c&3)!==0)&&(Bl=!0)),s=o}$e!==0&&$e!==5||rs(e),Yn!==0&&(Yn=0)}function km(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-At(c),x=1<<p,T=o[p];T===-1?((x&n)===0||(x&s)!==0)&&(o[p]=zv(x,t)):T<=t&&(e.expiredLanes|=x),c&=~x}if(t=Me,n=pe,n=Ys(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,n===0||e===t&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Lr(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ji(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(s!==null&&Lr(s),kr(n)){case 2:case 8:n=Nf;break;case 32:n=Bs;break;case 268435456:n=Df;break;default:n=Bs}return s=Um.bind(null,e),n=zr(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&s!==null&&Lr(s),e.callbackPriority=2,e.callbackNode=null,2}function Um(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(kl()&&e.callbackNode!==n)return null;var s=pe;return s=Ys(e,e===Me?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(xm(e,s,t),km(e,wt()),e.callbackNode!=null&&e.callbackNode===n?Um.bind(null,e):null)}function Bm(e,t){if(kl())return null;xm(e,t,!0)}function r1(){x1(function(){(we&6)!==0?zr(jf,l1):Vm()})}function Au(){if(Yn===0){var e=Ka;e===0&&(e=Hs,Hs<<=1,(Hs&261888)===0&&(Hs=256)),Yn=e}return Yn}function Hm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fs(""+e)}function qm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function o1(e,t,n,s,o){if(t==="submit"&&n&&n.stateNode===o){var c=Hm((o[pt]||null).action),p=s.submitter;p&&(t=(t=p[pt]||null)?Hm(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var x=new $s("action","action",null,s,o);e.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Yn!==0){var T=p?qm(o,p):new FormData(o);Ko(n,{pending:!0,data:T,method:o.method,action:c},null,T)}}else typeof c=="function"&&(x.preventDefault(),T=p?qm(o,p):new FormData(o),Ko(n,{pending:!0,data:T,method:o.method,action:c},c,T))},currentTarget:o}]})}}for(var Eu=0;Eu<lo.length;Eu++){var ju=lo[Eu],u1=ju.toLowerCase(),c1=ju[0].toUpperCase()+ju.slice(1);Kt(u1,"on"+c1)}Kt(vd,"onAnimationEnd"),Kt(xd,"onAnimationIteration"),Kt(bd,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(jx,"onTransitionRun"),Kt(Nx,"onTransitionStart"),Kt(Dx,"onTransitionCancel"),Kt(Sd,"onTransitionEnd"),Ca("onMouseEnter",["mouseout","mouseover"]),Ca("onMouseLeave",["mouseout","mouseover"]),Ca("onPointerEnter",["pointerout","pointerover"]),Ca("onPointerLeave",["pointerout","pointerover"]),aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),aa("onBeforeInput",["compositionend","keypress","textInput","paste"]),aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var os="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(" "),f1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(os));function Gm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],o=s.event;s=s.listeners;e:{var c=void 0;if(t)for(var p=s.length-1;0<=p;p--){var x=s[p],T=x.instance,C=x.currentTarget;if(x=x.listener,T!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=C;try{c(o)}catch(L){el(L)}o.currentTarget=null,c=T}else for(p=0;p<s.length;p++){if(x=s[p],T=x.instance,C=x.currentTarget,x=x.listener,T!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=C;try{c(o)}catch(L){el(L)}o.currentTarget=null,c=T}}}}function me(e,t){var n=t[Ur];n===void 0&&(n=t[Ur]=new Set);var s=e+"__bubble";n.has(s)||(Ym(t,e,2,!1),n.add(s))}function Nu(e,t,n){var s=0;t&&(s|=4),Ym(n,e,s,t)}var Hl="_reactListening"+Math.random().toString(36).slice(2);function Du(e){if(!e[Hl]){e[Hl]=!0,Vf.forEach(function(n){n!=="selectionchange"&&(f1.has(n)||Nu(n,!1,e),Nu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hl]||(t[Hl]=!0,Nu("selectionchange",!1,t))}}function Ym(e,t,n,s){switch(vp(t)){case 2:var o=B1;break;case 8:o=H1;break;default:o=Yu}n=o.bind(null,t,n,e),o=void 0,!Fr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Mu(e,t,n,s,o){var c=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var p=s.tag;if(p===3||p===4){var x=s.stateNode.containerInfo;if(x===o)break;if(p===4)for(p=s.return;p!==null;){var T=p.tag;if((T===3||T===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;x!==null;){if(p=Na(x),p===null)return;if(T=p.tag,T===5||T===6||T===26||T===27){s=c=p;continue e}x=x.parentNode}}s=s.return}Qf(function(){var C=c,L=Xr(n),U=[];e:{var O=wd.get(e);if(O!==void 0){var R=$s,J=e;switch(e){case"keypress":if(Zs(n)===0)break e;case"keydown":case"keyup":R=ix;break;case"focusin":J="focus",R=$r;break;case"focusout":J="blur",R=$r;break;case"beforeblur":case"afterblur":R=$r;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=$f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=Pv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=rx;break;case vd:case xd:case bd:R=Zv;break;case Sd:R=ux;break;case"scroll":case"scrollend":R=Kv;break;case"wheel":R=fx;break;case"copy":case"cut":case"paste":R=$v;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=If;break;case"toggle":case"beforetoggle":R=hx}var ne=(t&4)!==0,De=!ne&&(e==="scroll"||e==="scrollend"),D=ne?O!==null?O+"Capture":null:O;ne=[];for(var N=C,M;N!==null;){var k=N;if(M=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||M===null||D===null||(k=Ci(N,D),k!=null&&ne.push(us(N,k,M))),De)break;N=N.return}0<ne.length&&(O=new R(O,J,null,n,L),U.push({event:O,listeners:ne}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",O&&n!==Kr&&(J=n.relatedTarget||n.fromElement)&&(Na(J)||J[ja]))break e;if((R||O)&&(O=L.window===L?L:(O=L.ownerDocument)?O.defaultView||O.parentWindow:window,R?(J=n.relatedTarget||n.toElement,R=C,J=J?Na(J):null,J!==null&&(De=f(J),ne=J.tag,J!==De||ne!==5&&ne!==27&&ne!==6)&&(J=null)):(R=null,J=C),R!==J)){if(ne=$f,k="onMouseLeave",D="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ne=If,k="onPointerLeave",D="onPointerEnter",N="pointer"),De=R==null?O:Mi(R),M=J==null?O:Mi(J),O=new ne(k,N+"leave",R,n,L),O.target=De,O.relatedTarget=M,k=null,Na(L)===C&&(ne=new ne(D,N+"enter",J,n,L),ne.target=M,ne.relatedTarget=De,k=ne),De=k,R&&J)t:{for(ne=d1,D=R,N=J,M=0,k=D;k;k=ne(k))M++;k=0;for(var ee=N;ee;ee=ne(ee))k++;for(;0<M-k;)D=ne(D),M--;for(;0<k-M;)N=ne(N),k--;for(;M--;){if(D===N||N!==null&&D===N.alternate){ne=D;break t}D=ne(D),N=ne(N)}ne=null}else ne=null;R!==null&&Km(U,O,R,ne,!1),J!==null&&De!==null&&Km(U,De,J,ne,!0)}}e:{if(O=C?Mi(C):window,R=O.nodeName&&O.nodeName.toLowerCase(),R==="select"||R==="input"&&O.type==="file")var xe=rd;else if(sd(O))if(od)xe=Tx;else{xe=Sx;var W=bx}else R=O.nodeName,!R||R.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?C&&Yr(C.elementType)&&(xe=rd):xe=wx;if(xe&&(xe=xe(e,C))){ld(U,xe,n,L);break e}W&&W(e,O,C),e==="focusout"&&C&&O.type==="number"&&C.memoizedProps.value!=null&&Gr(O,"number",O.value)}switch(W=C?Mi(C):window,e){case"focusin":(sd(W)||W.contentEditable==="true")&&(Va=W,ao=C,Ui=null);break;case"focusout":Ui=ao=Va=null;break;case"mousedown":io=!0;break;case"contextmenu":case"mouseup":case"dragend":io=!1,gd(U,n,L);break;case"selectionchange":if(Ex)break;case"keydown":case"keyup":gd(U,n,L)}var ue;if(Ir)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else _a?ad(e,n)&&(ge="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ge="onCompositionStart");ge&&(ed&&n.locale!=="ko"&&(_a||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&_a&&(ue=Zf()):(Nn=L,Qr="value"in Nn?Nn.value:Nn.textContent,_a=!0)),W=ql(C,ge),0<W.length&&(ge=new Wf(ge,e,null,n,L),U.push({event:ge,listeners:W}),ue?ge.data=ue:(ue=id(n),ue!==null&&(ge.data=ue)))),(ue=px?gx(e,n):yx(e,n))&&(ge=ql(C,"onBeforeInput"),0<ge.length&&(W=new Wf("onBeforeInput","beforeinput",null,n,L),U.push({event:W,listeners:ge}),W.data=ue)),o1(U,e,C,n,L)}Gm(U,t)})}function us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ql(e,t){for(var n=t+"Capture",s=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Ci(e,n),o!=null&&s.unshift(us(e,o,c)),o=Ci(e,t),o!=null&&s.push(us(e,o,c))),e.tag===3)return s;e=e.return}return[]}function d1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Km(e,t,n,s,o){for(var c=t._reactName,p=[];n!==null&&n!==s;){var x=n,T=x.alternate,C=x.stateNode;if(x=x.tag,T!==null&&T===s)break;x!==5&&x!==26&&x!==27||C===null||(T=C,o?(C=Ci(n,c),C!=null&&p.unshift(us(n,C,T))):o||(C=Ci(n,c),C!=null&&p.push(us(n,C,T)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var h1=/\r\n?/g,m1=/\u0000|\uFFFD/g;function Xm(e){return(typeof e=="string"?e:""+e).replace(h1,`
`).replace(m1,"")}function Pm(e,t){return t=Xm(t),Xm(e)===t}function Ne(e,t,n,s,o,c){switch(n){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Ra(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Ra(e,""+s);break;case"className":Xs(e,"class",s);break;case"tabIndex":Xs(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Xs(e,n,s);break;case"style":Pf(e,s,c);break;case"data":if(t!=="object"){Xs(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=Fs(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(n,"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 c=="function"&&(n==="formAction"?(t!=="input"&&Ne(e,t,"name",o.name,o,null),Ne(e,t,"formEncType",o.formEncType,o,null),Ne(e,t,"formMethod",o.formMethod,o,null),Ne(e,t,"formTarget",o.formTarget,o,null)):(Ne(e,t,"encType",o.encType,o,null),Ne(e,t,"method",o.method,o,null),Ne(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=Fs(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(e.onclick=rn);break;case"onScroll":s!=null&&me("scroll",e);break;case"onScrollEnd":s!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(n=s.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}n=Fs(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""+s):e.removeAttribute(n);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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,s):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(n,s):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):e.setAttribute(n,s);break;case"popover":me("beforetoggle",e),me("toggle",e),Ks(e,"popover",s);break;case"xlinkActuate":ln(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":ln(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":ln(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":ln(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":ln(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":ln(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":ln(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":ln(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":ln(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Ks(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Gv.get(n)||n,Ks(e,n,s))}}function Cu(e,t,n,s,o,c){switch(n){case"style":Pf(e,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(n=s.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof s=="string"?Ra(e,s):(typeof s=="number"||typeof s=="bigint")&&Ra(e,""+s);break;case"onScroll":s!=null&&me("scroll",e);break;case"onScrollEnd":s!=null&&me("scrollend",e);break;case"onClick":s!=null&&(e.onclick=rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[pt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof s=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,o);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):Ks(e,n,s)}}}function lt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var s=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var p=n[c];if(p!=null)switch(c){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ne(e,t,c,p,n,null)}}o&&Ne(e,t,"srcSet",n.srcSet,n,null),s&&Ne(e,t,"src",n.src,n,null);return;case"input":me("invalid",e);var x=c=p=o=null,T=null,C=null;for(s in n)if(n.hasOwnProperty(s)){var L=n[s];if(L!=null)switch(s){case"name":o=L;break;case"type":p=L;break;case"checked":T=L;break;case"defaultChecked":C=L;break;case"value":c=L;break;case"defaultValue":x=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:Ne(e,t,s,L,n,null)}}Gf(e,c,x,T,C,p,o,!1);return;case"select":me("invalid",e),s=p=c=null;for(o in n)if(n.hasOwnProperty(o)&&(x=n[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":p=x;break;case"multiple":s=x;default:Ne(e,t,o,x,n,null)}t=c,n=p,e.multiple=!!s,t!=null?Oa(e,!!s,t,!1):n!=null&&Oa(e,!!s,n,!0);return;case"textarea":me("invalid",e),c=o=s=null;for(p in n)if(n.hasOwnProperty(p)&&(x=n[p],x!=null))switch(p){case"value":s=x;break;case"defaultValue":o=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Ne(e,t,p,x,n,null)}Kf(e,s,o,c);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(s=n[T],s!=null))switch(T){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ne(e,t,T,s,n,null)}return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(s=0;s<os.length;s++)me(os[s],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in n)if(n.hasOwnProperty(C)&&(s=n[C],s!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ne(e,t,C,s,n,null)}return;default:if(Yr(t)){for(L in n)n.hasOwnProperty(L)&&(s=n[L],s!==void 0&&Cu(e,t,L,s,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(s=n[x],s!=null&&Ne(e,t,x,s,n,null))}function p1(e,t,n,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,x=null,T=null,C=null,L=null;for(R in n){var U=n[R];if(n.hasOwnProperty(R)&&U!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":T=U;default:s.hasOwnProperty(R)||Ne(e,t,R,null,s,U)}}for(var O in s){var R=s[O];if(U=n[O],s.hasOwnProperty(O)&&(R!=null||U!=null))switch(O){case"type":c=R;break;case"name":o=R;break;case"checked":C=R;break;case"defaultChecked":L=R;break;case"value":p=R;break;case"defaultValue":x=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:R!==U&&Ne(e,t,O,R,s,U)}}qr(e,p,x,T,C,L,c,o);return;case"select":R=p=x=O=null;for(c in n)if(T=n[c],n.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":R=T;default:s.hasOwnProperty(c)||Ne(e,t,c,null,s,T)}for(o in s)if(c=s[o],T=n[o],s.hasOwnProperty(o)&&(c!=null||T!=null))switch(o){case"value":O=c;break;case"defaultValue":x=c;break;case"multiple":p=c;default:c!==T&&Ne(e,t,o,c,s,T)}t=x,n=p,s=R,O!=null?Oa(e,!!n,O,!1):!!s!=!!n&&(t!=null?Oa(e,!!n,t,!0):Oa(e,!!n,n?[]:"",!1));return;case"textarea":R=O=null;for(x in n)if(o=n[x],n.hasOwnProperty(x)&&o!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ne(e,t,x,null,s,o)}for(p in s)if(o=s[p],c=n[p],s.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":O=o;break;case"defaultValue":R=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&Ne(e,t,p,o,s,c)}Yf(e,O,R);return;case"option":for(var J in n)if(O=n[J],n.hasOwnProperty(J)&&O!=null&&!s.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:Ne(e,t,J,null,s,O)}for(T in s)if(O=s[T],R=n[T],s.hasOwnProperty(T)&&O!==R&&(O!=null||R!=null))switch(T){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ne(e,t,T,O,s,R)}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 ne in n)O=n[ne],n.hasOwnProperty(ne)&&O!=null&&!s.hasOwnProperty(ne)&&Ne(e,t,ne,null,s,O);for(C in s)if(O=s[C],R=n[C],s.hasOwnProperty(C)&&O!==R&&(O!=null||R!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:Ne(e,t,C,O,s,R)}return;default:if(Yr(t)){for(var De in n)O=n[De],n.hasOwnProperty(De)&&O!==void 0&&!s.hasOwnProperty(De)&&Cu(e,t,De,void 0,s,O);for(L in s)O=s[L],R=n[L],!s.hasOwnProperty(L)||O===R||O===void 0&&R===void 0||Cu(e,t,L,O,s,R);return}}for(var D in n)O=n[D],n.hasOwnProperty(D)&&O!=null&&!s.hasOwnProperty(D)&&Ne(e,t,D,null,s,O);for(U in s)O=s[U],R=n[U],!s.hasOwnProperty(U)||O===R||O==null&&R==null||Ne(e,t,U,O,s,R)}function Fm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var o=n[s],c=o.transferSize,p=o.initiatorType,x=o.duration;if(c&&x&&Fm(p)){for(p=0,x=o.responseEnd,s+=1;s<n.length;s++){var T=n[s],C=T.startTime;if(C>x)break;var L=T.transferSize,U=T.initiatorType;L&&Fm(U)&&(T=T.responseEnd,p+=L*(T<x?1:(x-C)/(T-C)))}if(--s,t+=8*(c+p)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ou=null,Ru=null;function Gl(e){return e.nodeType===9?e:e.ownerDocument}function Qm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function zu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Lu=null;function y1(){var e=window.event;return e&&e.type==="popstate"?e===Lu?!1:(Lu=e,!0):(Lu=null,!1)}var Jm=typeof setTimeout=="function"?setTimeout:void 0,v1=typeof clearTimeout=="function"?clearTimeout:void 0,$m=typeof Promise=="function"?Promise:void 0,x1=typeof queueMicrotask=="function"?queueMicrotask:typeof $m<"u"?function(e){return $m.resolve(null).then(e).catch(b1)}:Jm;function b1(e){setTimeout(function(){throw e})}function Kn(e){return e==="head"}function Wm(e,t){var n=t,s=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(s===0){e.removeChild(o),ui(t);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")cs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,cs(n);for(var c=n.firstChild;c;){var p=c.nextSibling,x=c.nodeName;c[Di]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=p}}else n==="body"&&cs(e.ownerDocument.body);n=o}while(n);ui(t)}function Im(e,t){var n=e;e=0;do{var s=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=s}while(n)}function _u(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":_u(n),Br(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function S1(e,t,n,s){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Di])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Ht(e.nextSibling),e===null)break}return null}function w1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ht(e.nextSibling),e===null))return null;return e}function ep(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ht(e.nextSibling),e===null))return null;return e}function Vu(e){return e.data==="$?"||e.data==="$~"}function ku(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function T1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Ht(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Uu=null;function tp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Ht(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function np(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function ap(e,t,n){switch(t=Gl(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function cs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Br(e)}var qt=new Map,ip=new Set;function Yl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tn=G.d;G.d={f:A1,r:E1,D:j1,C:N1,L:D1,m:M1,X:O1,S:C1,M:R1};function A1(){var e=Tn.f(),t=Ll();return e||t}function E1(e){var t=Da(e);t!==null&&t.tag===5&&t.type==="form"?Sh(t):Tn.r(e)}var li=typeof document>"u"?null:document;function sp(e,t,n){var s=li;if(s&&typeof t=="string"&&t){var o=zt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),ip.has(o)||(ip.add(o),e={rel:e,crossOrigin:n,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),lt(t,"link",e),Ie(t),s.head.appendChild(t)))}}function j1(e){Tn.D(e),sp("dns-prefetch",e,null)}function N1(e,t){Tn.C(e,t),sp("preconnect",e,t)}function D1(e,t,n){Tn.L(e,t,n);var s=li;if(s&&e&&t){var o='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+zt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+zt(n.imageSizes)+'"]')):o+='[href="'+zt(e)+'"]';var c=o;switch(t){case"style":c=ri(e);break;case"script":c=oi(e)}qt.has(c)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),qt.set(c,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(fs(c))||t==="script"&&s.querySelector(ds(c))||(t=s.createElement("link"),lt(t,"link",e),Ie(t),s.head.appendChild(t)))}}function M1(e,t){Tn.m(e,t);var n=li;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+zt(s)+'"][href="'+zt(e)+'"]',c=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=oi(e)}if(!qt.has(c)&&(e=b({rel:"modulepreload",href:e},t),qt.set(c,e),n.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ds(c)))return}s=n.createElement("link"),lt(s,"link",e),Ie(s),n.head.appendChild(s)}}}function C1(e,t,n){Tn.S(e,t,n);var s=li;if(s&&e){var o=Ma(s).hoistableStyles,c=ri(e);t=t||"default";var p=o.get(c);if(!p){var x={loading:0,preload:null};if(p=s.querySelector(fs(c)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=qt.get(c))&&Bu(e,n);var T=p=s.createElement("link");Ie(T),lt(T,"link",e),T._p=new Promise(function(C,L){T.onload=C,T.onerror=L}),T.addEventListener("load",function(){x.loading|=1}),T.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Kl(p,t,s)}p={type:"stylesheet",instance:p,count:1,state:x},o.set(c,p)}}}function O1(e,t){Tn.X(e,t);var n=li;if(n&&e){var s=Ma(n).hoistableScripts,o=oi(e),c=s.get(o);c||(c=n.querySelector(ds(o)),c||(e=b({src:e,async:!0},t),(t=qt.get(o))&&Hu(e,t),c=n.createElement("script"),Ie(c),lt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function R1(e,t){Tn.M(e,t);var n=li;if(n&&e){var s=Ma(n).hoistableScripts,o=oi(e),c=s.get(o);c||(c=n.querySelector(ds(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=qt.get(o))&&Hu(e,t),c=n.createElement("script"),Ie(c),lt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(o,c))}}function lp(e,t,n,s){var o=(o=de.current)?Yl(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ri(n.href),n=Ma(o).hoistableStyles,s=n.get(t),s||(s={type:"style",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ri(n.href);var c=Ma(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(fs(e)))&&!c._p&&(p.instance=c,p.state.loading=5),qt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},qt.set(e,n),c||z1(o,e,n,p.state))),t&&s===null)throw Error(r(528,""));return p}if(t&&s!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=oi(n),n=Ma(o).hoistableScripts,s=n.get(t),s||(s={type:"script",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ri(e){return'href="'+zt(e)+'"'}function fs(e){return'link[rel="stylesheet"]['+e+"]"}function rp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function z1(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),lt(t,"link",n),Ie(t),e.head.appendChild(t))}function oi(e){return'[src="'+zt(e)+'"]'}function ds(e){return"script[async]"+e}function op(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+zt(n.href)+'"]');if(s)return t.instance=s,Ie(s),s;var o=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Ie(s),lt(s,"style",o),Kl(s,n.precedence,e),t.instance=s;case"stylesheet":o=ri(n.href);var c=e.querySelector(fs(o));if(c)return t.state.loading|=4,t.instance=c,Ie(c),c;s=rp(n),(o=qt.get(o))&&Bu(s,o),c=(e.ownerDocument||e).createElement("link"),Ie(c);var p=c;return p._p=new Promise(function(x,T){p.onload=x,p.onerror=T}),lt(c,"link",s),t.state.loading|=4,Kl(c,n.precedence,e),t.instance=c;case"script":return c=oi(n.src),(o=e.querySelector(ds(c)))?(t.instance=o,Ie(o),o):(s=n,(o=qt.get(c))&&(s=b({},n),Hu(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),Ie(o),lt(o,"link",s),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,Kl(s,n.precedence,e));return t.instance}function Kl(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,c=o,p=0;p<s.length;p++){var x=s[p];if(x.dataset.precedence===t)c=x;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Bu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Hu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Xl=null;function up(e,t,n){if(Xl===null){var s=new Map,o=Xl=new Map;o.set(n,s)}else o=Xl,s=o.get(n),s||(s=new Map,o.set(n,s));if(s.has(e))return s;for(s.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[Di]||c[nt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var x=s.get(p);x?x.push(c):s.set(p,[c])}}return s}function cp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function L1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function fp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _1(e,t,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=ri(s.href),c=t.querySelector(fs(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,Ie(c);return}c=t.ownerDocument||t,s=rp(s),(o=qt.get(o))&&Bu(s,o),c=c.createElement("link"),Ie(c);var p=c;p._p=new Promise(function(x,T){p.onload=x,p.onerror=T}),lt(c,"link",s),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Pl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var qu=0;function V1(e,t){return e.stylesheets&&e.count===0&&Ql(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var s=setTimeout(function(){if(e.stylesheets&&Ql(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&qu===0&&(qu=62500*g1());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ql(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>qu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(o)}}:null}function Pl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ql(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fl=null;function Ql(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fl=new Map,t.forEach(k1,e),Fl=null,Pl.call(e))}function k1(e,t){if(!(t.state.loading&4)){var n=Fl.get(e);if(n)var s=n.get(null);else{n=new Map,Fl.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),s=p)}s&&n.set(null,s)}o=t.instance,p=o.getAttribute("data-precedence"),c=n.get(p)||s,c===s&&n.set(null,o),n.set(p,o),this.count++,s=Pl.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var hs={$$typeof:H,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function U1(e,t,n,s,o,c,p,x,T){this.tag=1,this.containerInfo=e,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=_r(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_r(0),this.hiddenUpdates=_r(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function dp(e,t,n,s,o,c,p,x,T,C,L,U){return e=new U1(e,t,n,p,T,C,L,U,x),t=1,c===!0&&(t|=24),c=jt(3,null,null,t),e.current=c,c.stateNode=e,t=bo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:s,isDehydrated:n,cache:t},Ao(c),e}function hp(e){return e?(e=Ba,e):Ba}function mp(e,t,n,s,o,c){o=hp(o),s.context===null?s.context=o:s.pendingContext=o,s=zn(t),s.payload={element:n},c=c===void 0?null:c,c!==null&&(s.callback=c),n=Ln(e,s,t),n!==null&&(St(n,e,t),Xi(n,e,t))}function pp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gu(e,t){pp(e,t),(e=e.alternate)&&pp(e,t)}function gp(e){if(e.tag===13||e.tag===31){var t=ra(e,67108864);t!==null&&St(t,e,67108864),Gu(e,67108864)}}function yp(e){if(e.tag===13||e.tag===31){var t=Ot();t=Vr(t);var n=ra(e,t);n!==null&&St(n,e,t),Gu(e,t)}}var Zl=!0;function B1(e,t,n,s){var o=z.T;z.T=null;var c=G.p;try{G.p=2,Yu(e,t,n,s)}finally{G.p=c,z.T=o}}function H1(e,t,n,s){var o=z.T;z.T=null;var c=G.p;try{G.p=8,Yu(e,t,n,s)}finally{G.p=c,z.T=o}}function Yu(e,t,n,s){if(Zl){var o=Ku(s);if(o===null)Mu(e,t,s,Jl,n),xp(e,s);else if(G1(o,e,t,n,s))s.stopPropagation();else if(xp(e,s),t&4&&-1<q1.indexOf(e)){for(;o!==null;){var c=Da(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=na(c.pendingLanes);if(p!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;p;){var T=1<<31-At(p);x.entanglements[1]|=T,p&=~T}en(c),(we&6)===0&&(Rl=wt()+500,rs(0))}}break;case 31:case 13:x=ra(c,2),x!==null&&St(x,c,2),Ll(),Gu(c,2)}if(c=Ku(s),c===null&&Mu(e,t,s,Jl,n),c===o)break;o=c}o!==null&&s.stopPropagation()}else Mu(e,t,s,null,n)}}function Ku(e){return e=Xr(e),Xu(e)}var Jl=null;function Xu(e){if(Jl=null,e=Na(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=h(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Jl=e,null}function vp(e){switch(e){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(jv()){case jf:return 2;case Nf:return 8;case Bs:case Nv:return 32;case Df:return 268435456;default:return 32}default:return 32}}var Pu=!1,Xn=null,Pn=null,Fn=null,ms=new Map,ps=new Map,Qn=[],q1="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 xp(e,t){switch(e){case"focusin":case"focusout":Xn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":ms.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ps.delete(t.pointerId)}}function gs(e,t,n,s,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Da(t),t!==null&&gp(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function G1(e,t,n,s,o){switch(t){case"focusin":return Xn=gs(Xn,e,t,n,s,o),!0;case"dragenter":return Pn=gs(Pn,e,t,n,s,o),!0;case"mouseover":return Fn=gs(Fn,e,t,n,s,o),!0;case"pointerover":var c=o.pointerId;return ms.set(c,gs(ms.get(c)||null,e,t,n,s,o)),!0;case"gotpointercapture":return c=o.pointerId,ps.set(c,gs(ps.get(c)||null,e,t,n,s,o)),!0}return!1}function bp(e){var t=Na(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Lf(e.priority,function(){yp(n)});return}}else if(t===31){if(t=h(n),t!==null){e.blockedOn=t,Lf(e.priority,function(){yp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $l(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ku(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Kr=s,n.target.dispatchEvent(s),Kr=null}else return t=Da(n),t!==null&&gp(t),e.blockedOn=n,!1;t.shift()}return!0}function Sp(e,t,n){$l(e)&&n.delete(t)}function Y1(){Pu=!1,Xn!==null&&$l(Xn)&&(Xn=null),Pn!==null&&$l(Pn)&&(Pn=null),Fn!==null&&$l(Fn)&&(Fn=null),ms.forEach(Sp),ps.forEach(Sp)}function Wl(e,t){e.blockedOn===t&&(e.blockedOn=null,Pu||(Pu=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Y1)))}var Il=null;function wp(e){Il!==e&&(Il=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Il===e&&(Il=null);for(var t=0;t<e.length;t+=3){var n=e[t],s=e[t+1],o=e[t+2];if(typeof s!="function"){if(Xu(s||n)===null)continue;break}var c=Da(n);c!==null&&(e.splice(t,3),t-=3,Ko(c,{pending:!0,data:o,method:n.method,action:s},s,o))}}))}function ui(e){function t(T){return Wl(T,e)}Xn!==null&&Wl(Xn,e),Pn!==null&&Wl(Pn,e),Fn!==null&&Wl(Fn,e),ms.forEach(t),ps.forEach(t);for(var n=0;n<Qn.length;n++){var s=Qn[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Qn.length&&(n=Qn[0],n.blockedOn===null);)bp(n),n.blockedOn===null&&Qn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var o=n[s],c=n[s+1],p=o[pt]||null;if(typeof c=="function")p||wp(n);else if(p){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[pt]||null)x=p.formAction;else if(Xu(o)!==null)continue}else x=p.action;typeof x=="function"?n[s+1]=x:(n.splice(s,3),s-=3),wp(n)}}}function Tp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),s||setTimeout(n,20)}function n(){if(!s&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Fu(e){this._internalRoot=e}er.prototype.render=Fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,s=Ot();mp(n,s,e,t,null,null)},er.prototype.unmount=Fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mp(e.current,2,null,e,null,null),Ll(),t[ja]=null}};function er(e){this._internalRoot=e}er.prototype.unstable_scheduleHydration=function(e){if(e){var t=zf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qn.length&&t!==0&&t<Qn[n].priority;n++);Qn.splice(n,0,e),n===0&&bp(e)}};var Ap=a.version;if(Ap!=="19.2.4")throw Error(r(527,Ap,"19.2.4"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var K1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tr.isDisabled&&tr.supportsFiber)try{Ei=tr.inject(K1),Tt=tr}catch{}}return vs.createRoot=function(e,t){if(!u(e))throw Error(r(299));var n=!1,s="",o=Oh,c=Rh,p=zh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=dp(e,1,!1,null,null,n,s,null,o,c,p,Tp),e[ja]=t.current,Du(e),new Fu(t)},vs.hydrateRoot=function(e,t,n){if(!u(e))throw Error(r(299));var s=!1,o="",c=Oh,p=Rh,x=zh,T=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),t=dp(e,1,!0,t,n??null,s,o,T,c,p,x,Tp),t.context=hp(null),n=t.current,s=Ot(),s=Vr(s),o=zn(s),o.callback=null,Ln(n,o,s),n=s,t.current.lanes=n,Ni(t,n),en(t),e[ja]=t.current,Du(e),new er(t)},vs.version="19.2.4",vs}var Lp;function eb(){if(Lp)return Ju.exports;Lp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Ju.exports=I1(),Ju.exports}var tb=eb();const yy=te.createContext({});function nb(i){const a=te.useRef(null);return a.current===null&&(a.current=i()),a.current}const ab=typeof window<"u",ib=ab?te.useLayoutEffect:te.useEffect,Pc=te.createContext(null);function Fc(i,a){i.indexOf(a)===-1&&i.push(a)}function dr(i,a){const l=i.indexOf(a);l>-1&&i.splice(l,1)}const sn=(i,a,l)=>l>a?a:l<i?i:l;let Qc=()=>{};const An={},vy=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function xy(i){return typeof i=="object"&&i!==null}const by=i=>/^0[^.\s]+$/u.test(i);function Sy(i){let a;return()=>(a===void 0&&(a=i()),a)}const Yt=i=>i,sb=(i,a)=>l=>a(i(l)),Ls=(...i)=>i.reduce(sb),Ds=(i,a,l)=>{const r=a-i;return r===0?1:(l-i)/r};class Zc{constructor(){this.subscriptions=[]}add(a){return Fc(this.subscriptions,a),()=>dr(this.subscriptions,a)}notify(a,l,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](a,l,r);else for(let f=0;f<u;f++){const d=this.subscriptions[f];d&&d(a,l,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Zt=i=>i*1e3,Gt=i=>i/1e3;function wy(i,a){return a?i*(1e3/a):0}const Ty=(i,a,l)=>(((1-3*l+3*a)*i+(3*l-6*a))*i+3*a)*i,lb=1e-7,rb=12;function ob(i,a,l,r,u){let f,d,h=0;do d=a+(l-a)/2,f=Ty(d,r,u)-i,f>0?l=d:a=d;while(Math.abs(f)>lb&&++h<rb);return d}function _s(i,a,l,r){if(i===a&&l===r)return Yt;const u=f=>ob(f,0,1,i,l);return f=>f===0||f===1?f:Ty(u(f),a,r)}const Ay=i=>a=>a<=.5?i(2*a)/2:(2-i(2*(1-a)))/2,Ey=i=>a=>1-i(1-a),jy=_s(.33,1.53,.69,.99),Jc=Ey(jy),Ny=Ay(Jc),Dy=i=>(i*=2)<1?.5*Jc(i):.5*(2-Math.pow(2,-10*(i-1))),$c=i=>1-Math.sin(Math.acos(i)),My=Ey($c),Cy=Ay($c),ub=_s(.42,0,1,1),cb=_s(0,0,.58,1),Oy=_s(.42,0,.58,1),fb=i=>Array.isArray(i)&&typeof i[0]!="number",Ry=i=>Array.isArray(i)&&typeof i[0]=="number",db={linear:Yt,easeIn:ub,easeInOut:Oy,easeOut:cb,circIn:$c,circInOut:Cy,circOut:My,backIn:Jc,backInOut:Ny,backOut:jy,anticipate:Dy},hb=i=>typeof i=="string",_p=i=>{if(Ry(i)){Qc(i.length===4);const[a,l,r,u]=i;return _s(a,l,r,u)}else if(hb(i))return db[i];return i},nr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function mb(i,a){let l=new Set,r=new Set,u=!1,f=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function y(v){d.has(v)&&(m.schedule(v),i()),v(h)}const m={schedule:(v,b=!1,w=!1)=>{const E=w&&u?l:r;return b&&d.add(v),E.has(v)||E.add(v),v},cancel:v=>{r.delete(v),d.delete(v)},process:v=>{if(h=v,u){f=!0;return}u=!0,[l,r]=[r,l],l.forEach(y),l.clear(),u=!1,f&&(f=!1,m.process(v))}};return m}const pb=40;function zy(i,a){let l=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>l=!0,d=nr.reduce((H,X)=>(H[X]=mb(f),H),{}),{setup:h,read:y,resolveKeyframes:m,preUpdate:v,update:b,preRender:w,render:j,postRender:E}=d,V=()=>{const H=An.useManualTiming?u.timestamp:performance.now();l=!1,An.useManualTiming||(u.delta=r?1e3/60:Math.max(Math.min(H-u.timestamp,pb),1)),u.timestamp=H,u.isProcessing=!0,h.process(u),y.process(u),m.process(u),v.process(u),b.process(u),w.process(u),j.process(u),E.process(u),u.isProcessing=!1,l&&a&&(r=!1,i(V))},B=()=>{l=!0,r=!0,u.isProcessing||i(V)};return{schedule:nr.reduce((H,X)=>{const P=d[X];return H[X]=(ae,Q=!1,I=!1)=>(l||B(),P.schedule(ae,Q,I)),H},{}),cancel:H=>{for(let X=0;X<nr.length;X++)d[nr[X]].cancel(H)},state:u,steps:d}}const{schedule:Ce,cancel:In,state:rt,steps:ec}=zy(typeof requestAnimationFrame<"u"?requestAnimationFrame:Yt,!0);let lr;function gb(){lr=void 0}const ht={now:()=>(lr===void 0&&ht.set(rt.isProcessing||An.useManualTiming?rt.timestamp:performance.now()),lr),set:i=>{lr=i,queueMicrotask(gb)}},Ly=i=>a=>typeof a=="string"&&a.startsWith(i),_y=Ly("--"),yb=Ly("var(--"),Wc=i=>yb(i)?vb.test(i.split("/*")[0].trim()):!1,vb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Vp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const Si={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Ms={...Si,transform:i=>sn(0,1,i)},ar={...Si,default:1},ws=i=>Math.round(i*1e5)/1e5,Ic=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xb(i){return i==null}const bb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ef=(i,a)=>l=>!!(typeof l=="string"&&bb.test(l)&&l.startsWith(i)||a&&!xb(l)&&Object.prototype.hasOwnProperty.call(l,a)),Vy=(i,a,l)=>r=>{if(typeof r!="string")return r;const[u,f,d,h]=r.match(Ic);return{[i]:parseFloat(u),[a]:parseFloat(f),[l]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},Sb=i=>sn(0,255,i),tc={...Si,transform:i=>Math.round(Sb(i))},Ta={test:ef("rgb","red"),parse:Vy("red","green","blue"),transform:({red:i,green:a,blue:l,alpha:r=1})=>"rgba("+tc.transform(i)+", "+tc.transform(a)+", "+tc.transform(l)+", "+ws(Ms.transform(r))+")"};function wb(i){let a="",l="",r="",u="";return i.length>5?(a=i.substring(1,3),l=i.substring(3,5),r=i.substring(5,7),u=i.substring(7,9)):(a=i.substring(1,2),l=i.substring(2,3),r=i.substring(3,4),u=i.substring(4,5),a+=a,l+=l,r+=r,u+=u),{red:parseInt(a,16),green:parseInt(l,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const bc={test:ef("#"),parse:wb,transform:Ta.transform},Vs=i=>({test:a=>typeof a=="string"&&a.endsWith(i)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${i}`}),Jn=Vs("deg"),an=Vs("%"),$=Vs("px"),Tb=Vs("vh"),Ab=Vs("vw"),kp={...an,parse:i=>an.parse(i)/100,transform:i=>an.transform(i*100)},hi={test:ef("hsl","hue"),parse:Vy("hue","saturation","lightness"),transform:({hue:i,saturation:a,lightness:l,alpha:r=1})=>"hsla("+Math.round(i)+", "+an.transform(ws(a))+", "+an.transform(ws(l))+", "+ws(Ms.transform(r))+")"},Je={test:i=>Ta.test(i)||bc.test(i)||hi.test(i),parse:i=>Ta.test(i)?Ta.parse(i):hi.test(i)?hi.parse(i):bc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?Ta.transform(i):hi.transform(i),getAnimatableNone:i=>{const a=Je.parse(i);return a.alpha=0,Je.transform(a)}},Eb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function jb(i){var a,l;return isNaN(i)&&typeof i=="string"&&(((a=i.match(Ic))==null?void 0:a.length)||0)+(((l=i.match(Eb))==null?void 0:l.length)||0)>0}const ky="number",Uy="color",Nb="var",Db="var(",Up="${}",Mb=/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 Cs(i){const a=i.toString(),l=[],r={color:[],number:[],var:[]},u=[];let f=0;const h=a.replace(Mb,y=>(Je.test(y)?(r.color.push(f),u.push(Uy),l.push(Je.parse(y))):y.startsWith(Db)?(r.var.push(f),u.push(Nb),l.push(y)):(r.number.push(f),u.push(ky),l.push(parseFloat(y))),++f,Up)).split(Up);return{values:l,split:h,indexes:r,types:u}}function By(i){return Cs(i).values}function Hy(i){const{split:a,types:l}=Cs(i),r=a.length;return u=>{let f="";for(let d=0;d<r;d++)if(f+=a[d],u[d]!==void 0){const h=l[d];h===ky?f+=ws(u[d]):h===Uy?f+=Je.transform(u[d]):f+=u[d]}return f}}const Cb=i=>typeof i=="number"?0:Je.test(i)?Je.getAnimatableNone(i):i;function Ob(i){const a=By(i);return Hy(i)(a.map(Cb))}const Jt={test:jb,parse:By,createTransformer:Hy,getAnimatableNone:Ob};function nc(i,a,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?i+(a-i)*6*l:l<1/2?a:l<2/3?i+(a-i)*(2/3-l)*6:i}function Rb({hue:i,saturation:a,lightness:l,alpha:r}){i/=360,a/=100,l/=100;let u=0,f=0,d=0;if(!a)u=f=d=l;else{const h=l<.5?l*(1+a):l+a-l*a,y=2*l-h;u=nc(y,h,i+1/3),f=nc(y,h,i),d=nc(y,h,i-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function hr(i,a){return l=>l>0?a:i}const _e=(i,a,l)=>i+(a-i)*l,ac=(i,a,l)=>{const r=i*i,u=l*(a*a-r)+r;return u<0?0:Math.sqrt(u)},zb=[bc,Ta,hi],Lb=i=>zb.find(a=>a.test(i));function Bp(i){const a=Lb(i);if(!a)return!1;let l=a.parse(i);return a===hi&&(l=Rb(l)),l}const Hp=(i,a)=>{const l=Bp(i),r=Bp(a);if(!l||!r)return hr(i,a);const u={...l};return f=>(u.red=ac(l.red,r.red,f),u.green=ac(l.green,r.green,f),u.blue=ac(l.blue,r.blue,f),u.alpha=_e(l.alpha,r.alpha,f),Ta.transform(u))},Sc=new Set(["none","hidden"]);function _b(i,a){return Sc.has(i)?l=>l<=0?i:a:l=>l>=1?a:i}function Vb(i,a){return l=>_e(i,a,l)}function tf(i){return typeof i=="number"?Vb:typeof i=="string"?Wc(i)?hr:Je.test(i)?Hp:Bb:Array.isArray(i)?qy:typeof i=="object"?Je.test(i)?Hp:kb:hr}function qy(i,a){const l=[...i],r=l.length,u=i.map((f,d)=>tf(f)(f,a[d]));return f=>{for(let d=0;d<r;d++)l[d]=u[d](f);return l}}function kb(i,a){const l={...i,...a},r={};for(const u in l)i[u]!==void 0&&a[u]!==void 0&&(r[u]=tf(i[u])(i[u],a[u]));return u=>{for(const f in r)l[f]=r[f](u);return l}}function Ub(i,a){const l=[],r={color:0,var:0,number:0};for(let u=0;u<a.values.length;u++){const f=a.types[u],d=i.indexes[f][r[f]],h=i.values[d]??0;l[u]=h,r[f]++}return l}const Bb=(i,a)=>{const l=Jt.createTransformer(a),r=Cs(i),u=Cs(a);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?Sc.has(i)&&!u.values.length||Sc.has(a)&&!r.values.length?_b(i,a):Ls(qy(Ub(r,u),u.values),l):hr(i,a)};function Gy(i,a,l){return typeof i=="number"&&typeof a=="number"&&typeof l=="number"?_e(i,a,l):tf(i)(i,a)}const Hb=i=>{const a=({timestamp:l})=>i(l);return{start:(l=!0)=>Ce.update(a,l),stop:()=>In(a),now:()=>rt.isProcessing?rt.timestamp:ht.now()}},Yy=(i,a,l=10)=>{let r="";const u=Math.max(Math.round(a/l),2);for(let f=0;f<u;f++)r+=Math.round(i(f/(u-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},mr=2e4;function nf(i){let a=0;const l=50;let r=i.next(a);for(;!r.done&&a<mr;)a+=l,r=i.next(a);return a>=mr?1/0:a}function qb(i,a=100,l){const r=l({...i,keyframes:[0,a]}),u=Math.min(nf(r),mr);return{type:"keyframes",ease:f=>r.next(u*f).value/a,duration:Gt(u)}}const Gb=5;function Ky(i,a,l){const r=Math.max(a-Gb,0);return wy(l-i(r),a-r)}const Be={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ic=.001;function Yb({duration:i=Be.duration,bounce:a=Be.bounce,velocity:l=Be.velocity,mass:r=Be.mass}){let u,f,d=1-a;d=sn(Be.minDamping,Be.maxDamping,d),i=sn(Be.minDuration,Be.maxDuration,Gt(i)),d<1?(u=m=>{const v=m*d,b=v*i,w=v-l,j=wc(m,d),E=Math.exp(-b);return ic-w/j*E},f=m=>{const b=m*d*i,w=b*l+l,j=Math.pow(d,2)*Math.pow(m,2)*i,E=Math.exp(-b),V=wc(Math.pow(m,2),d);return(-u(m)+ic>0?-1:1)*((w-j)*E)/V}):(u=m=>{const v=Math.exp(-m*i),b=(m-l)*i+1;return-ic+v*b},f=m=>{const v=Math.exp(-m*i),b=(l-m)*(i*i);return v*b});const h=5/i,y=Xb(u,f,h);if(i=Zt(i),isNaN(y))return{stiffness:Be.stiffness,damping:Be.damping,duration:i};{const m=Math.pow(y,2)*r;return{stiffness:m,damping:d*2*Math.sqrt(r*m),duration:i}}}const Kb=12;function Xb(i,a,l){let r=l;for(let u=1;u<Kb;u++)r=r-i(r)/a(r);return r}function wc(i,a){return i*Math.sqrt(1-a*a)}const Pb=["duration","bounce"],Fb=["stiffness","damping","mass"];function qp(i,a){return a.some(l=>i[l]!==void 0)}function Qb(i){let a={velocity:Be.velocity,stiffness:Be.stiffness,damping:Be.damping,mass:Be.mass,isResolvedFromDuration:!1,...i};if(!qp(i,Fb)&&qp(i,Pb))if(a.velocity=0,i.visualDuration){const l=i.visualDuration,r=2*Math.PI/(l*1.2),u=r*r,f=2*sn(.05,1,1-(i.bounce||0))*Math.sqrt(u);a={...a,mass:Be.mass,stiffness:u,damping:f}}else{const l=Yb({...i,velocity:0});a={...a,...l,mass:Be.mass},a.isResolvedFromDuration=!0}return a}function pr(i=Be.visualDuration,a=Be.bounce){const l=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:a}:i;let{restSpeed:r,restDelta:u}=l;const f=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],h={done:!1,value:f},{stiffness:y,damping:m,mass:v,duration:b,velocity:w,isResolvedFromDuration:j}=Qb({...l,velocity:-Gt(l.velocity||0)}),E=w||0,V=m/(2*Math.sqrt(y*v)),B=d-f,q=Gt(Math.sqrt(y/v)),Y=Math.abs(B)<5;r||(r=Y?Be.restSpeed.granular:Be.restSpeed.default),u||(u=Y?Be.restDelta.granular:Be.restDelta.default);let H;if(V<1){const P=wc(q,V);H=ae=>{const Q=Math.exp(-V*q*ae);return d-Q*((E+V*q*B)/P*Math.sin(P*ae)+B*Math.cos(P*ae))}}else if(V===1)H=P=>d-Math.exp(-q*P)*(B+(E+q*B)*P);else{const P=q*Math.sqrt(V*V-1);H=ae=>{const Q=Math.exp(-V*q*ae),I=Math.min(P*ae,300);return d-Q*((E+V*q*B)*Math.sinh(I)+P*B*Math.cosh(I))/P}}const X={calculatedDuration:j&&b||null,next:P=>{const ae=H(P);if(j)h.done=P>=b;else{let Q=P===0?E:0;V<1&&(Q=P===0?Zt(E):Ky(H,P,ae));const I=Math.abs(Q)<=r,ce=Math.abs(d-ae)<=u;h.done=I&&ce}return h.value=h.done?d:ae,h},toString:()=>{const P=Math.min(nf(X),mr),ae=Yy(Q=>X.next(P*Q).value,P,30);return P+"ms "+ae},toTransition:()=>{}};return X}pr.applyToOptions=i=>{const a=qb(i,100,pr);return i.ease=a.ease,i.duration=Zt(a.duration),i.type="keyframes",i};function Tc({keyframes:i,velocity:a=0,power:l=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:y,restDelta:m=.5,restSpeed:v}){const b=i[0],w={done:!1,value:b},j=I=>h!==void 0&&I<h||y!==void 0&&I>y,E=I=>h===void 0?y:y===void 0||Math.abs(h-I)<Math.abs(y-I)?h:y;let V=l*a;const B=b+V,q=d===void 0?B:d(B);q!==B&&(V=q-b);const Y=I=>-V*Math.exp(-I/r),H=I=>q+Y(I),X=I=>{const ce=Y(I),ye=H(I);w.done=Math.abs(ce)<=m,w.value=w.done?q:ye};let P,ae;const Q=I=>{j(w.value)&&(P=I,ae=pr({keyframes:[w.value,E(w.value)],velocity:Ky(H,I,w.value),damping:u,stiffness:f,restDelta:m,restSpeed:v}))};return Q(0),{calculatedDuration:null,next:I=>{let ce=!1;return!ae&&P===void 0&&(ce=!0,X(I),Q(I)),P!==void 0&&I>=P?ae.next(I-P):(!ce&&X(I),w)}}}function Zb(i,a,l){const r=[],u=l||An.mix||Gy,f=i.length-1;for(let d=0;d<f;d++){let h=u(i[d],i[d+1]);if(a){const y=Array.isArray(a)?a[d]||Yt:a;h=Ls(y,h)}r.push(h)}return r}function Jb(i,a,{clamp:l=!0,ease:r,mixer:u}={}){const f=i.length;if(Qc(f===a.length),f===1)return()=>a[0];if(f===2&&a[0]===a[1])return()=>a[1];const d=i[0]===i[1];i[0]>i[f-1]&&(i=[...i].reverse(),a=[...a].reverse());const h=Zb(a,r,u),y=h.length,m=v=>{if(d&&v<i[0])return a[0];let b=0;if(y>1)for(;b<i.length-2&&!(v<i[b+1]);b++);const w=Ds(i[b],i[b+1],v);return h[b](w)};return l?v=>m(sn(i[0],i[f-1],v)):m}function $b(i,a){const l=i[i.length-1];for(let r=1;r<=a;r++){const u=Ds(0,a,r);i.push(_e(l,1,u))}}function Wb(i){const a=[0];return $b(a,i.length-1),a}function Ib(i,a){return i.map(l=>l*a)}function e2(i,a){return i.map(()=>a||Oy).splice(0,i.length-1)}function Ts({duration:i=300,keyframes:a,times:l,ease:r="easeInOut"}){const u=fb(r)?r.map(_p):_p(r),f={done:!1,value:a[0]},d=Ib(l&&l.length===a.length?l:Wb(a),i),h=Jb(d,a,{ease:Array.isArray(u)?u:e2(a,u)});return{calculatedDuration:i,next:y=>(f.value=h(y),f.done=y>=i,f)}}const t2=i=>i!==null;function af(i,{repeat:a,repeatType:l="loop"},r,u=1){const f=i.filter(t2),h=u<0||a&&l!=="loop"&&a%2===1?0:f.length-1;return!h||r===void 0?f[h]:r}const n2={decay:Tc,inertia:Tc,tween:Ts,keyframes:Ts,spring:pr};function Xy(i){typeof i.type=="string"&&(i.type=n2[i.type])}class sf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,l){return this.finished.then(a,l)}}const a2=i=>i/100;class lf extends sf{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,u;const{motionValue:l}=this.options;l&&l.updatedAt!==ht.now()&&this.tick(ht.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(r=this.options).onStop)==null||u.call(r))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;Xy(a);const{type:l=Ts,repeat:r=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=a;let{keyframes:h}=a;const y=l||Ts;y!==Ts&&typeof h[0]!="number"&&(this.mixKeyframes=Ls(a2,Gy(h[0],h[1])),h=[0,100]);const m=y({...a,keyframes:h});f==="mirror"&&(this.mirroredGenerator=y({...a,keyframes:[...h].reverse(),velocity:-d})),m.calculatedDuration===null&&(m.calculatedDuration=nf(m));const{calculatedDuration:v}=m;this.calculatedDuration=v,this.resolvedDuration=v+u,this.totalDuration=this.resolvedDuration*(r+1)-u,this.generator=m}updateTime(a){const l=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(a,l=!1){const{generator:r,totalDuration:u,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:y}=this;if(this.startTime===null)return r.next(0);const{delay:m=0,keyframes:v,repeat:b,repeatType:w,repeatDelay:j,type:E,onUpdate:V,finalKeyframe:B}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-u/this.speed,this.startTime)),l?this.currentTime=a:this.updateTime(a);const q=this.currentTime-m*(this.playbackSpeed>=0?1:-1),Y=this.playbackSpeed>=0?q<0:q>u;this.currentTime=Math.max(q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let H=this.currentTime,X=r;if(b){const I=Math.min(this.currentTime,u)/h;let ce=Math.floor(I),ye=I%1;!ye&&I>=1&&(ye=1),ye===1&&ce--,ce=Math.min(ce,b+1),!!(ce%2)&&(w==="reverse"?(ye=1-ye,j&&(ye-=j/h)):w==="mirror"&&(X=d)),H=sn(0,1,ye)*h}const P=Y?{done:!1,value:v[0]}:X.next(H);f&&(P.value=f(P.value));let{done:ae}=P;!Y&&y!==null&&(ae=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const Q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ae);return Q&&E!==Tc&&(P.value=af(v,this.options,B,this.speed)),V&&V(P.value),Q&&this.finish(),P}then(a,l){return this.finished.then(a,l)}get duration(){return Gt(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Gt(a)}get time(){return Gt(this.currentTime)}set time(a){var l;a=Zt(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),(l=this.driver)==null||l.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(ht.now());const l=this.playbackSpeed!==a;this.playbackSpeed=a,l&&(this.time=Gt(this.currentTime))}play(){var u,f;if(this.isStopped)return;const{driver:a=Hb,startTime:l}=this.options;this.driver||(this.driver=a(d=>this.tick(d))),(f=(u=this.options).onPlay)==null||f.call(u);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=l??r),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(ht.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,l;this.notifyFinished(),this.teardown(),this.state="finished",(l=(a=this.options).onComplete)==null||l.call(a)}cancel(){var a,l;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(l=(a=this.options).onCancel)==null||l.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var l;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(l=this.driver)==null||l.stop(),a.observe(this)}}function i2(i){for(let a=1;a<i.length;a++)i[a]??(i[a]=i[a-1])}const Aa=i=>i*180/Math.PI,Ac=i=>{const a=Aa(Math.atan2(i[1],i[0]));return Ec(a)},s2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:Ac,rotateZ:Ac,skewX:i=>Aa(Math.atan(i[1])),skewY:i=>Aa(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},Ec=i=>(i=i%360,i<0&&(i+=360),i),Gp=Ac,Yp=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),Kp=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),l2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yp,scaleY:Kp,scale:i=>(Yp(i)+Kp(i))/2,rotateX:i=>Ec(Aa(Math.atan2(i[6],i[5]))),rotateY:i=>Ec(Aa(Math.atan2(-i[2],i[0]))),rotateZ:Gp,rotate:Gp,skewX:i=>Aa(Math.atan(i[4])),skewY:i=>Aa(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function jc(i){return i.includes("scale")?1:0}function Nc(i,a){if(!i||i==="none")return jc(a);const l=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(l)r=l2,u=l;else{const h=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=s2,u=h}if(!u)return jc(a);const f=r[a],d=u[1].split(",").map(o2);return typeof f=="function"?f(d):d[f]}const r2=(i,a)=>{const{transform:l="none"}=getComputedStyle(i);return Nc(l,a)};function o2(i){return parseFloat(i.trim())}const wi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ti=new Set(wi),Xp=i=>i===Si||i===$,u2=new Set(["x","y","z"]),c2=wi.filter(i=>!u2.has(i));function f2(i){const a=[];return c2.forEach(l=>{const r=i.getValue(l);r!==void 0&&(a.push([l,r.get()]),r.set(l.startsWith("scale")?1:0))}),a}const Wn={width:({x:i},{paddingLeft:a="0",paddingRight:l="0"})=>i.max-i.min-parseFloat(a)-parseFloat(l),height:({y:i},{paddingTop:a="0",paddingBottom:l="0"})=>i.max-i.min-parseFloat(a)-parseFloat(l),top:(i,{top:a})=>parseFloat(a),left:(i,{left:a})=>parseFloat(a),bottom:({y:i},{top:a})=>parseFloat(a)+(i.max-i.min),right:({x:i},{left:a})=>parseFloat(a)+(i.max-i.min),x:(i,{transform:a})=>Nc(a,"x"),y:(i,{transform:a})=>Nc(a,"y")};Wn.translateX=Wn.x;Wn.translateY=Wn.y;const Ea=new Set;let Dc=!1,Mc=!1,Cc=!1;function Py(){if(Mc){const i=Array.from(Ea).filter(r=>r.needsMeasurement),a=new Set(i.map(r=>r.element)),l=new Map;a.forEach(r=>{const u=f2(r);u.length&&(l.set(r,u),r.render())}),i.forEach(r=>r.measureInitialState()),a.forEach(r=>{r.render();const u=l.get(r);u&&u.forEach(([f,d])=>{var h;(h=r.getValue(f))==null||h.set(d)})}),i.forEach(r=>r.measureEndState()),i.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Mc=!1,Dc=!1,Ea.forEach(i=>i.complete(Cc)),Ea.clear()}function Fy(){Ea.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(Mc=!0)})}function d2(){Cc=!0,Fy(),Py(),Cc=!1}class rf{constructor(a,l,r,u,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=l,this.name=r,this.motionValue=u,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Ea.add(this),Dc||(Dc=!0,Ce.read(Fy),Ce.resolveKeyframes(Py))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:l,element:r,motionValue:u}=this;if(a[0]===null){const f=u==null?void 0:u.get(),d=a[a.length-1];if(f!==void 0)a[0]=f;else if(r&&l){const h=r.readValue(l,d);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=d),u&&f===void 0&&u.set(a[0])}i2(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),Ea.delete(this)}cancel(){this.state==="scheduled"&&(Ea.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const h2=i=>i.startsWith("--");function m2(i,a,l){h2(a)?i.style.setProperty(a,l):i.style[a]=l}const p2={};function Qy(i,a){const l=Sy(i);return()=>p2[a]??l()}const g2=Qy(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Zy=Qy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ss=([i,a,l,r])=>`cubic-bezier(${i}, ${a}, ${l}, ${r})`,Pp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ss([0,.65,.55,1]),circOut:Ss([.55,0,1,.45]),backIn:Ss([.31,.01,.66,-.59]),backOut:Ss([.33,1.53,.69,.99])};function Jy(i,a){if(i)return typeof i=="function"?Zy()?Yy(i,a):"ease-out":Ry(i)?Ss(i):Array.isArray(i)?i.map(l=>Jy(l,a)||Pp.easeOut):Pp[i]}function y2(i,a,l,{delay:r=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:y}={},m=void 0){const v={[a]:l};y&&(v.offset=y);const b=Jy(h,u);Array.isArray(b)&&(v.easing=b);const w={delay:r,duration:u,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return m&&(w.pseudoElement=m),i.animate(v,w)}function $y(i){return typeof i=="function"&&"applyToOptions"in i}function v2({type:i,...a}){return $y(i)&&Zy()?i.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class Wy extends sf{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:l,name:r,keyframes:u,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:h,onComplete:y}=a;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=a,Qc(typeof a.type!="string");const m=v2(a);this.animation=y2(l,r,u,m,f),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const v=af(u,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(v),m2(l,r,v),this.animation.cancel()}y==null||y(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,l;(l=(a=this.animation).finish)==null||l.call(a)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var l,r,u;const a=(l=this.options)==null?void 0:l.element;!this.isPseudoElement&&(a!=null&&a.isConnected)&&((u=(r=this.animation).commitStyles)==null||u.call(r))}get duration(){var l,r;const a=((r=(l=this.animation.effect)==null?void 0:l.getComputedTiming)==null?void 0:r.call(l).duration)||0;return Gt(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Gt(a)}get time(){return Gt(Number(this.animation.currentTime)||0)}set time(a){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Zt(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,rangeStart:l,rangeEnd:r,observe:u}){var f;return this.allowFlatten&&((f=this.animation.effect)==null||f.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&g2()?(this.animation.timeline=a,l&&(this.animation.rangeStart=l),r&&(this.animation.rangeEnd=r),Yt):u(this)}}const Iy={anticipate:Dy,backInOut:Ny,circInOut:Cy};function x2(i){return i in Iy}function b2(i){typeof i.ease=="string"&&x2(i.ease)&&(i.ease=Iy[i.ease])}const sc=10;class S2 extends Wy{constructor(a){b2(a),Xy(a),super(a),a.startTime!==void 0&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:l,onUpdate:r,onComplete:u,element:f,...d}=this.options;if(!l)return;if(a!==void 0){l.set(a);return}const h=new lf({...d,autoplay:!1}),y=Math.max(sc,ht.now()-this.startTime),m=sn(0,sc,y-sc);l.setWithVelocity(h.sample(Math.max(0,y-m)).value,h.sample(y).value,m),h.stop()}}const Fp=(i,a)=>a==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(Jt.test(i)||i==="0")&&!i.startsWith("url("));function w2(i){const a=i[0];if(i.length===1)return!0;for(let l=0;l<i.length;l++)if(i[l]!==a)return!0}function T2(i,a,l,r){const u=i[0];if(u===null)return!1;if(a==="display"||a==="visibility")return!0;const f=i[i.length-1],d=Fp(u,a),h=Fp(f,a);return!d||!h?!1:w2(i)||(l==="spring"||$y(l))&&r}function Oc(i){i.duration=0,i.type="keyframes"}const A2=new Set(["opacity","clipPath","filter","transform"]),E2=Sy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function j2(i){var v;const{motionValue:a,name:l,repeatDelay:r,repeatType:u,damping:f,type:d}=i;if(!(((v=a==null?void 0:a.owner)==null?void 0:v.current)instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:m}=a.owner.getProps();return E2()&&l&&A2.has(l)&&(l!=="transform"||!m)&&!y&&!r&&u!=="mirror"&&f!==0&&d!=="inertia"}const N2=40;class D2 extends sf{constructor({autoplay:a=!0,delay:l=0,type:r="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:y,motionValue:m,element:v,...b}){var E;super(),this.stop=()=>{var V,B;this._animation&&(this._animation.stop(),(V=this.stopTimeline)==null||V.call(this)),(B=this.keyframeResolver)==null||B.cancel()},this.createdAt=ht.now();const w={autoplay:a,delay:l,type:r,repeat:u,repeatDelay:f,repeatType:d,name:y,motionValue:m,element:v,...b},j=(v==null?void 0:v.KeyframeResolver)||rf;this.keyframeResolver=new j(h,(V,B,q)=>this.onKeyframesResolved(V,B,w,!q),y,m,v),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(a,l,r,u){var B,q;this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:y,isHandoff:m,onUpdate:v}=r;this.resolvedAt=ht.now(),T2(a,f,d,h)||((An.instantAnimations||!y)&&(v==null||v(af(a,r,l))),a[0]=a[a.length-1],Oc(r),r.repeat=0);const w={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>N2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:a},j=!m&&j2(w),E=(q=(B=w.motionValue)==null?void 0:B.owner)==null?void 0:q.current,V=j?new S2({...w,element:E}):new lf(w);V.finished.then(()=>{this.notifyFinished()}).catch(Yt),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(a,l){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),d2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}function e0(i,a,l,r=0,u=1){const f=Array.from(i).sort((m,v)=>m.sortNodePosition(v)).indexOf(a),d=i.size,h=(d-1)*r;return typeof l=="function"?l(f,d):u===1?f*r:h-f*r}const M2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function C2(i){const a=M2.exec(i);if(!a)return[,];const[,l,r,u]=a;return[`--${l??r}`,u]}function t0(i,a,l=1){const[r,u]=C2(i);if(!r)return;const f=window.getComputedStyle(a).getPropertyValue(r);if(f){const d=f.trim();return vy(d)?parseFloat(d):d}return Wc(u)?t0(u,a,l+1):u}const O2={type:"spring",stiffness:500,damping:25,restSpeed:10},R2=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),z2={type:"keyframes",duration:.8},L2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_2=(i,{keyframes:a})=>a.length>2?z2:Ti.has(i)?i.startsWith("scale")?R2(a[1]):O2:L2,V2=i=>i!==null;function k2(i,{repeat:a,repeatType:l="loop"},r){const u=i.filter(V2),f=a&&l!=="loop"&&a%2===1?0:u.length-1;return u[f]}function n0(i,a){if(i!=null&&i.inherit&&a){const{inherit:l,...r}=i;return{...a,...r}}return i}function of(i,a){const l=(i==null?void 0:i[a])??(i==null?void 0:i.default)??i;return l!==i?n0(l,i):l}function U2({when:i,delay:a,delayChildren:l,staggerChildren:r,staggerDirection:u,repeat:f,repeatType:d,repeatDelay:h,from:y,elapsed:m,...v}){return!!Object.keys(v).length}const uf=(i,a,l,r={},u,f)=>d=>{const h=of(r,i)||{},y=h.delay||r.delay||0;let{elapsed:m=0}=r;m=m-Zt(y);const v={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-m,onUpdate:w=>{a.set(w),h.onUpdate&&h.onUpdate(w)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:i,motionValue:a,element:f?void 0:u};U2(h)||Object.assign(v,_2(i,v)),v.duration&&(v.duration=Zt(v.duration)),v.repeatDelay&&(v.repeatDelay=Zt(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Oc(v),v.delay===0&&(b=!0)),(An.instantAnimations||An.skipAnimations||u!=null&&u.shouldSkipAnimations)&&(b=!0,Oc(v),v.delay=0),v.allowFlatten=!h.type&&!h.ease,b&&!f&&a.get()!==void 0){const w=k2(v.keyframes,h);if(w!==void 0){Ce.update(()=>{v.onUpdate(w),v.onComplete()});return}}return h.isSync?new lf(v):new D2(v)};function Qp(i){const a=[{},{}];return i==null||i.values.forEach((l,r)=>{a[0][r]=l.get(),a[1][r]=l.getVelocity()}),a}function cf(i,a,l,r){if(typeof a=="function"){const[u,f]=Qp(r);a=a(l!==void 0?l:i.custom,u,f)}if(typeof a=="string"&&(a=i.variants&&i.variants[a]),typeof a=="function"){const[u,f]=Qp(r);a=a(l!==void 0?l:i.custom,u,f)}return a}function vi(i,a,l){const r=i.getProps();return cf(r,a,l!==void 0?l:r.custom,i)}const a0=new Set(["width","height","top","left","right","bottom",...wi]),Zp=30,B2=i=>!isNaN(parseFloat(i));class H2{constructor(a,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var f;const u=ht.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((f=this.events.change)==null||f.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=l.owner}setCurrent(a){this.current=a,this.updatedAt=ht.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=B2(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,l){this.events[a]||(this.events[a]=new Zc);const r=this.events[a].add(l);return a==="change"?()=>{r(),Ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,l){this.passiveEffect=a,this.stopPassiveEffect=l}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,l,r){this.set(l),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-r}jump(a,l=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;(a=this.events.change)==null||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Zp)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Zp);return wy(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(a){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=a(l),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 a,l;(a=this.dependents)==null||a.clear(),(l=this.events.destroy)==null||l.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xi(i,a){return new H2(i,a)}const Rc=i=>Array.isArray(i);function q2(i,a,l){i.hasValue(a)?i.getValue(a).set(l):i.addValue(a,xi(l))}function G2(i){return Rc(i)?i[i.length-1]||0:i}function Y2(i,a){const l=vi(i,a);let{transitionEnd:r={},transition:u={},...f}=l||{};f={...f,...r};for(const d in f){const h=G2(f[d]);q2(i,d,h)}}const ct=i=>!!(i&&i.getVelocity);function K2(i){return!!(ct(i)&&i.add)}function zc(i,a){const l=i.getValue("willChange");if(K2(l))return l.add(a);if(!l&&An.WillChange){const r=new An.WillChange("auto");i.addValue("willChange",r),r.add(a)}}function ff(i){return i.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const X2="framerAppearId",i0="data-"+ff(X2);function s0(i){return i.props[i0]}function P2({protectedKeys:i,needsAnimating:a},l){const r=i.hasOwnProperty(l)&&a[l]!==!0;return a[l]=!1,r}function l0(i,a,{delay:l=0,transitionOverride:r,type:u}={}){let{transition:f,transitionEnd:d,...h}=a;const y=i.getDefaultTransition();f=f?n0(f,y):y;const m=f==null?void 0:f.reduceMotion;r&&(f=r);const v=[],b=u&&i.animationState&&i.animationState.getState()[u];for(const w in h){const j=i.getValue(w,i.latestValues[w]??null),E=h[w];if(E===void 0||b&&P2(b,w))continue;const V={delay:l,...of(f||{},w)},B=j.get();if(B!==void 0&&!j.isAnimating&&!Array.isArray(E)&&E===B&&!V.velocity)continue;let q=!1;if(window.MotionHandoffAnimation){const X=s0(i);if(X){const P=window.MotionHandoffAnimation(X,w,Ce);P!==null&&(V.startTime=P,q=!0)}}zc(i,w);const Y=m??i.shouldReduceMotion;j.start(uf(w,j,E,Y&&a0.has(w)?{type:!1}:V,i,q));const H=j.animation;H&&v.push(H)}if(d){const w=()=>Ce.update(()=>{d&&Y2(i,d)});v.length?Promise.all(v).then(w):w()}return v}function Lc(i,a,l={}){var y;const r=vi(i,a,l.type==="exit"?(y=i.presenceContext)==null?void 0:y.custom:void 0);let{transition:u=i.getDefaultTransition()||{}}=r||{};l.transitionOverride&&(u=l.transitionOverride);const f=r?()=>Promise.all(l0(i,r,l)):()=>Promise.resolve(),d=i.variantChildren&&i.variantChildren.size?(m=0)=>{const{delayChildren:v=0,staggerChildren:b,staggerDirection:w}=u;return F2(i,a,m,v,b,w,l)}:()=>Promise.resolve(),{when:h}=u;if(h){const[m,v]=h==="beforeChildren"?[f,d]:[d,f];return m().then(()=>v())}else return Promise.all([f(),d(l.delay)])}function F2(i,a,l=0,r=0,u=0,f=1,d){const h=[];for(const y of i.variantChildren)y.notify("AnimationStart",a),h.push(Lc(y,a,{...d,delay:l+(typeof r=="function"?0:r)+e0(i.variantChildren,y,r,u,f)}).then(()=>y.notify("AnimationComplete",a)));return Promise.all(h)}function Q2(i,a,l={}){i.notify("AnimationStart",a);let r;if(Array.isArray(a)){const u=a.map(f=>Lc(i,f,l));r=Promise.all(u)}else if(typeof a=="string")r=Lc(i,a,l);else{const u=typeof a=="function"?vi(i,a,l.custom):a;r=Promise.all(l0(i,u,l))}return r.then(()=>{i.notify("AnimationComplete",a)})}const Z2={test:i=>i==="auto",parse:i=>i},r0=i=>a=>a.test(i),o0=[Si,$,an,Jn,Ab,Tb,Z2],Jp=i=>o0.find(r0(i));function J2(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||by(i):!0}const $2=new Set(["brightness","contrast","saturate","opacity"]);function W2(i){const[a,l]=i.slice(0,-1).split("(");if(a==="drop-shadow")return i;const[r]=l.match(Ic)||[];if(!r)return i;const u=l.replace(r,"");let f=$2.has(a)?1:0;return r!==l&&(f*=100),a+"("+f+u+")"}const I2=/\b([a-z-]*)\(.*?\)/gu,_c={...Jt,getAnimatableNone:i=>{const a=i.match(I2);return a?a.map(W2).join(" "):i}},Vc={...Jt,getAnimatableNone:i=>{const a=Jt.parse(i);return Jt.createTransformer(i)(a.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},$p={...Si,transform:Math.round},eS={rotate:Jn,rotateX:Jn,rotateY:Jn,rotateZ:Jn,scale:ar,scaleX:ar,scaleY:ar,scaleZ:ar,skew:Jn,skewX:Jn,skewY:Jn,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:Ms,originX:kp,originY:kp,originZ:$},df={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,fontSize:$,backgroundPositionX:$,backgroundPositionY:$,...eS,zIndex:$p,fillOpacity:Ms,strokeOpacity:Ms,numOctaves:$p},tS={...df,color:Je,backgroundColor:Je,outlineColor:Je,fill:Je,stroke:Je,borderColor:Je,borderTopColor:Je,borderRightColor:Je,borderBottomColor:Je,borderLeftColor:Je,filter:_c,WebkitFilter:_c,mask:Vc,WebkitMask:Vc},u0=i=>tS[i],nS=new Set([_c,Vc]);function c0(i,a){let l=u0(i);return nS.has(l)||(l=Jt),l.getAnimatableNone?l.getAnimatableNone(a):void 0}const aS=new Set(["auto","none","0"]);function iS(i,a,l){let r=0,u;for(;r<i.length&&!u;){const f=i[r];typeof f=="string"&&!aS.has(f)&&Cs(f).values.length&&(u=i[r]),r++}if(u&&l)for(const f of a)i[f]=c0(l,u)}class sS extends rf{constructor(a,l,r,u,f){super(a,l,r,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:l,name:r}=this;if(!l||!l.current)return;super.readKeyframes();for(let v=0;v<a.length;v++){let b=a[v];if(typeof b=="string"&&(b=b.trim(),Wc(b))){const w=t0(b,l.current);w!==void 0&&(a[v]=w),v===a.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!a0.has(r)||a.length!==2)return;const[u,f]=a,d=Jp(u),h=Jp(f),y=Vp(u),m=Vp(f);if(y!==m&&Wn[r]){this.needsMeasurement=!0;return}if(d!==h)if(Xp(d)&&Xp(h))for(let v=0;v<a.length;v++){const b=a[v];typeof b=="string"&&(a[v]=parseFloat(b))}else Wn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:l}=this,r=[];for(let u=0;u<a.length;u++)(a[u]===null||J2(a[u]))&&r.push(u);r.length&&iS(a,r,l)}measureInitialState(){const{element:a,unresolvedKeyframes:l,name:r}=this;if(!a||!a.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Wn[r](a.measureViewportBox(),window.getComputedStyle(a.current)),l[0]=this.measuredOrigin;const u=l[l.length-1];u!==void 0&&a.getValue(r,u).jump(u,!1)}measureEndState(){var h;const{element:a,name:l,unresolvedKeyframes:r}=this;if(!a||!a.current)return;const u=a.getValue(l);u&&u.jump(this.measuredOrigin,!1);const f=r.length-1,d=r[f];r[f]=Wn[l](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([y,m])=>{a.getValue(y).set(m)}),this.resolveNoneKeyframes()}}const lS=new Set(["opacity","clipPath","filter","transform"]);function f0(i,a,l){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let r=document;const u=(l==null?void 0:l[i])??r.querySelectorAll(i);return u?Array.from(u):[]}return Array.from(i).filter(r=>r!=null)}const d0=(i,a)=>a&&typeof i=="number"?a.transform(i):i;function rS(i){return xy(i)&&"offsetHeight"in i}const{schedule:hf}=zy(queueMicrotask,!1),Qt={x:!1,y:!1};function h0(){return Qt.x||Qt.y}function oS(i){return i==="x"||i==="y"?Qt[i]?null:(Qt[i]=!0,()=>{Qt[i]=!1}):Qt.x||Qt.y?null:(Qt.x=Qt.y=!0,()=>{Qt.x=Qt.y=!1})}function m0(i,a){const l=f0(i),r=new AbortController,u={passive:!0,...a,signal:r.signal};return[l,u,()=>r.abort()]}function uS(i){return!(i.pointerType==="touch"||h0())}function cS(i,a,l={}){const[r,u,f]=m0(i,l);return r.forEach(d=>{let h=!1,y=!1,m;const v=()=>{d.removeEventListener("pointerleave",E)},b=B=>{m&&(m(B),m=void 0),v()},w=B=>{h=!1,window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",w),y&&(y=!1,b(B))},j=()=>{h=!0,window.addEventListener("pointerup",w,u),window.addEventListener("pointercancel",w,u)},E=B=>{if(B.pointerType!=="touch"){if(h){y=!0;return}b(B)}},V=B=>{if(!uS(B))return;y=!1;const q=a(d,B);typeof q=="function"&&(m=q,d.addEventListener("pointerleave",E,u))};d.addEventListener("pointerenter",V,u),d.addEventListener("pointerdown",j,u)}),f}const p0=(i,a)=>a?i===a?!0:p0(i,a.parentElement):!1,mf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,fS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dS(i){return fS.has(i.tagName)||i.isContentEditable===!0}const hS=new Set(["INPUT","SELECT","TEXTAREA"]);function mS(i){return hS.has(i.tagName)||i.isContentEditable===!0}const rr=new WeakSet;function Wp(i){return a=>{a.key==="Enter"&&i(a)}}function lc(i,a){i.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const pS=(i,a)=>{const l=i.currentTarget;if(!l)return;const r=Wp(()=>{if(rr.has(l))return;lc(l,"down");const u=Wp(()=>{lc(l,"up")}),f=()=>lc(l,"cancel");l.addEventListener("keyup",u,a),l.addEventListener("blur",f,a)});l.addEventListener("keydown",r,a),l.addEventListener("blur",()=>l.removeEventListener("keydown",r),a)};function Ip(i){return mf(i)&&!h0()}const eg=new WeakSet;function gS(i,a,l={}){const[r,u,f]=m0(i,l),d=h=>{const y=h.currentTarget;if(!Ip(h)||eg.has(h))return;rr.add(y),l.stopPropagation&&eg.add(h);const m=a(y,h),v=(j,E)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",w),rr.has(y)&&rr.delete(y),Ip(j)&&typeof m=="function"&&m(j,{success:E})},b=j=>{v(j,y===window||y===document||l.useGlobalTarget||p0(y,j.target))},w=j=>{v(j,!1)};window.addEventListener("pointerup",b,u),window.addEventListener("pointercancel",w,u)};return r.forEach(h=>{(l.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),rS(h)&&(h.addEventListener("focus",m=>pS(m,u)),!dS(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function pf(i){return xy(i)&&"ownerSVGElement"in i}const or=new WeakMap;let $n;const g0=(i,a,l)=>(r,u)=>u&&u[0]?u[0][i+"Size"]:pf(r)&&"getBBox"in r?r.getBBox()[a]:r[l],yS=g0("inline","width","offsetWidth"),vS=g0("block","height","offsetHeight");function xS({target:i,borderBoxSize:a}){var l;(l=or.get(i))==null||l.forEach(r=>{r(i,{get width(){return yS(i,a)},get height(){return vS(i,a)}})})}function bS(i){i.forEach(xS)}function SS(){typeof ResizeObserver>"u"||($n=new ResizeObserver(bS))}function wS(i,a){$n||SS();const l=f0(i);return l.forEach(r=>{let u=or.get(r);u||(u=new Set,or.set(r,u)),u.add(a),$n==null||$n.observe(r)}),()=>{l.forEach(r=>{const u=or.get(r);u==null||u.delete(a),u!=null&&u.size||$n==null||$n.unobserve(r)})}}const ur=new Set;let mi;function TS(){mi=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};ur.forEach(a=>a(i))},window.addEventListener("resize",mi)}function AS(i){return ur.add(i),mi||TS(),()=>{ur.delete(i),!ur.size&&typeof mi=="function"&&(window.removeEventListener("resize",mi),mi=void 0)}}function tg(i,a){return typeof i=="function"?AS(i):wS(i,a)}function ES(i){return pf(i)&&i.tagName==="svg"}const jS=[...o0,Je,Jt],NS=i=>jS.find(r0(i)),ng=()=>({translate:0,scale:1,origin:0,originPoint:0}),pi=()=>({x:ng(),y:ng()}),ag=()=>({min:0,max:0}),We=()=>({x:ag(),y:ag()}),DS=new WeakMap;function Er(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Os(i){return typeof i=="string"||Array.isArray(i)}const gf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yf=["initial",...gf];function jr(i){return Er(i.animate)||yf.some(a=>Os(i[a]))}function y0(i){return!!(jr(i)||i.variants)}function MS(i,a,l){for(const r in a){const u=a[r],f=l[r];if(ct(u))i.addValue(r,u);else if(ct(f))i.addValue(r,xi(u,{owner:i}));else if(f!==u)if(i.hasValue(r)){const d=i.getValue(r);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=i.getStaticValue(r);i.addValue(r,xi(d!==void 0?d:u,{owner:i}))}}for(const r in l)a[r]===void 0&&i.removeValue(r);return a}const kc={current:null},v0={current:!1},CS=typeof window<"u";function OS(){if(v0.current=!0,!!CS)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),a=()=>kc.current=i.matches;i.addEventListener("change",a),a()}else kc.current=!1}const ig=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let gr={};function x0(i){gr=i}function RS(){return gr}class zS{scrapeMotionValuesFromProps(a,l,r){return{}}constructor({parent:a,props:l,presenceContext:r,reducedMotionConfig:u,skipAnimations:f,blockInitialAnimation:d,visualState:h},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=rf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 j=ht.now();this.renderScheduledAt<j&&(this.renderScheduledAt=j,Ce.render(this.render,!1,!0))};const{latestValues:m,renderState:v}=h;this.latestValues=m,this.baseTarget={...m},this.initialValues=l.initial?{...m}:{},this.renderState=v,this.parent=a,this.props=l,this.presenceContext=r,this.depth=a?a.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=f,this.options=y,this.blockInitialAnimation=!!d,this.isControllingVariants=jr(l),this.isVariantNode=y0(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:b,...w}=this.scrapeMotionValuesFromProps(l,{},this);for(const j in w){const E=w[j];m[j]!==void 0&&ct(E)&&E.set(m[j])}}mount(a){var l,r;if(this.hasBeenMounted)for(const u in this.initialValues)(l=this.values.get(u))==null||l.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=a,DS.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((u,f)=>this.bindToMotionValue(f,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(v0.current||OS(),this.shouldReduceMotion=kc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var a;this.projection&&this.projection.unmount(),In(this.notifyUpdate),In(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const r=this.features[l];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,l){if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),l.accelerate&&lS.has(a)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:y,ease:m,duration:v}=l.accelerate,b=new Wy({element:this.current,name:a,keyframes:h,times:y,ease:m,duration:Zt(v)}),w=d(b);this.valueSubscriptions.set(a,()=>{w(),b.cancel()});return}const r=Ti.has(a);r&&this.onBindTransform&&this.onBindTransform();const u=l.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,a,l)),this.valueSubscriptions.set(a,()=>{u(),f&&f(),l.owner&&l.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in gr){const l=gr[a];if(!l)continue;const{isEnabled:r,Feature:u}=l;if(!this.features[a]&&u&&r(this.props)&&(this.features[a]=new u(this)),this.features[a]){const f=this.features[a];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):We()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,l){this.latestValues[a]=l}update(a,l){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let r=0;r<ig.length;r++){const u=ig[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,d=a[f];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=MS(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(a){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(a),()=>l.variantChildren.delete(a)}addValue(a,l){const r=this.values.get(a);l!==r&&(r&&this.removeValue(a),this.bindToMotionValue(a,l),this.values.set(a,l),this.latestValues[a]=l.get())}removeValue(a){this.values.delete(a);const l=this.valueSubscriptions.get(a);l&&(l(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,l){if(this.props.values&&this.props.values[a])return this.props.values[a];let r=this.values.get(a);return r===void 0&&l!==void 0&&(r=xi(l===null?void 0:l,{owner:this}),this.addValue(a,r)),r}readValue(a,l){let r=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return r!=null&&(typeof r=="string"&&(vy(r)||by(r))?r=parseFloat(r):!NS(r)&&Jt.test(l)&&(r=c0(a,l)),this.setBaseTarget(a,ct(r)?r.get():r)),ct(r)?r.get():r}setBaseTarget(a,l){this.baseTarget[a]=l}getBaseTarget(a){var f;const{initial:l}=this.props;let r;if(typeof l=="string"||typeof l=="object"){const d=cf(this.props,l,(f=this.presenceContext)==null?void 0:f.custom);d&&(r=d[a])}if(l&&r!==void 0)return r;const u=this.getBaseTargetFromProps(this.props,a);return u!==void 0&&!ct(u)?u:this.initialValues[a]!==void 0&&r===void 0?void 0:this.baseTarget[a]}on(a,l){return this.events[a]||(this.events[a]=new Zc),this.events[a].add(l)}notify(a,...l){this.events[a]&&this.events[a].notify(...l)}scheduleRenderMicrotask(){hf.render(this.render)}}class b0 extends zS{constructor(){super(...arguments),this.KeyframeResolver=sS}sortInstanceNodePosition(a,l){return a.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(a,l){const r=a.style;return r?r[l]:void 0}removeValueFromRenderState(a,{vars:l,style:r}){delete l[a],delete r[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ct(a)&&(this.childSubscription=a.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class ea{constructor(a){this.isMounted=!1,this.node=a}update(){}}function S0({top:i,left:a,right:l,bottom:r}){return{x:{min:a,max:l},y:{min:i,max:r}}}function LS({x:i,y:a}){return{top:a.min,right:i.max,bottom:a.max,left:i.min}}function _S(i,a){if(!a)return i;const l=a({x:i.left,y:i.top}),r=a({x:i.right,y:i.bottom});return{top:l.y,left:l.x,bottom:r.y,right:r.x}}function rc(i){return i===void 0||i===1}function Uc({scale:i,scaleX:a,scaleY:l}){return!rc(i)||!rc(a)||!rc(l)}function wa(i){return Uc(i)||w0(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function w0(i){return sg(i.x)||sg(i.y)}function sg(i){return i&&i!=="0%"}function yr(i,a,l){const r=i-l,u=a*r;return l+u}function lg(i,a,l,r,u){return u!==void 0&&(i=yr(i,u,r)),yr(i,l,r)+a}function Bc(i,a=0,l=1,r,u){i.min=lg(i.min,a,l,r,u),i.max=lg(i.max,a,l,r,u)}function T0(i,{x:a,y:l}){Bc(i.x,a.translate,a.scale,a.originPoint),Bc(i.y,l.translate,l.scale,l.originPoint)}const rg=.999999999999,og=1.0000000000001;function VS(i,a,l,r=!1){const u=l.length;if(!u)return;a.x=a.y=1;let f,d;for(let h=0;h<u;h++){f=l[h],d=f.projectionDelta;const{visualElement:y}=f.options;y&&y.props.style&&y.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&yi(i,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,T0(i,d)),r&&wa(f.latestValues)&&yi(i,f.latestValues))}a.x<og&&a.x>rg&&(a.x=1),a.y<og&&a.y>rg&&(a.y=1)}function gi(i,a){i.min=i.min+a,i.max=i.max+a}function ug(i,a,l,r,u=.5){const f=_e(i.min,i.max,u);Bc(i,a,l,f,r)}function cg(i,a){return typeof i=="string"?parseFloat(i)/100*(a.max-a.min):i}function yi(i,a){ug(i.x,cg(a.x,i.x),a.scaleX,a.scale,a.originX),ug(i.y,cg(a.y,i.y),a.scaleY,a.scale,a.originY)}function A0(i,a){return S0(_S(i.getBoundingClientRect(),a))}function kS(i,a,l){const r=A0(i,l),{scroll:u}=a;return u&&(gi(r.x,u.offset.x),gi(r.y,u.offset.y)),r}const US={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},BS=wi.length;function HS(i,a,l){let r="",u=!0;for(let f=0;f<BS;f++){const d=wi[f],h=i[d];if(h===void 0)continue;let y=!0;if(typeof h=="number")y=h===(d.startsWith("scale")?1:0);else{const m=parseFloat(h);y=d.startsWith("scale")?m===1:m===0}if(!y||l){const m=d0(h,df[d]);if(!y){u=!1;const v=US[d]||d;r+=`${v}(${m}) `}l&&(a[d]=m)}}return r=r.trim(),l?r=l(a,u?"":r):u&&(r="none"),r}function vf(i,a,l){const{style:r,vars:u,transformOrigin:f}=i;let d=!1,h=!1;for(const y in a){const m=a[y];if(Ti.has(y)){d=!0;continue}else if(_y(y)){u[y]=m;continue}else{const v=d0(m,df[y]);y.startsWith("origin")?(h=!0,f[y]=v):r[y]=v}}if(a.transform||(d||l?r.transform=HS(a,i.transform,l):r.transform&&(r.transform="none")),h){const{originX:y="50%",originY:m="50%",originZ:v=0}=f;r.transformOrigin=`${y} ${m} ${v}`}}function E0(i,{style:a,vars:l},r,u){const f=i.style;let d;for(d in a)f[d]=a[d];u==null||u.applyProjectionStyles(f,r);for(d in l)f.setProperty(d,l[d])}function fg(i,a){return a.max===a.min?0:i/(a.max-a.min)*100}const xs={correct:(i,a)=>{if(!a.target)return i;if(typeof i=="string")if($.test(i))i=parseFloat(i);else return i;const l=fg(i,a.target.x),r=fg(i,a.target.y);return`${l}% ${r}%`}},qS={correct:(i,{treeScale:a,projectionDelta:l})=>{const r=i,u=Jt.parse(i);if(u.length>5)return r;const f=Jt.createTransformer(i),d=typeof u[0]!="number"?1:0,h=l.x.scale*a.x,y=l.y.scale*a.y;u[0+d]/=h,u[1+d]/=y;const m=_e(h,y,.5);return typeof u[2+d]=="number"&&(u[2+d]/=m),typeof u[3+d]=="number"&&(u[3+d]/=m),f(u)}},Hc={borderRadius:{...xs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xs,borderTopRightRadius:xs,borderBottomLeftRadius:xs,borderBottomRightRadius:xs,boxShadow:qS};function j0(i,{layout:a,layoutId:l}){return Ti.has(i)||i.startsWith("origin")||(a||l!==void 0)&&(!!Hc[i]||i==="opacity")}function xf(i,a,l){var d;const r=i.style,u=a==null?void 0:a.style,f={};if(!r)return f;for(const h in r)(ct(r[h])||u&&ct(u[h])||j0(h,i)||((d=l==null?void 0:l.getValue(h))==null?void 0:d.liveStyle)!==void 0)&&(f[h]=r[h]);return f}function GS(i){return window.getComputedStyle(i)}class YS extends b0{constructor(){super(...arguments),this.type="html",this.renderInstance=E0}readValueFromInstance(a,l){var r;if(Ti.has(l))return(r=this.projection)!=null&&r.isProjecting?jc(l):r2(a,l);{const u=GS(a),f=(_y(l)?u.getPropertyValue(l):u[l])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(a,{transformPagePoint:l}){return A0(a,l)}build(a,l,r){vf(a,l,r.transformTemplate)}scrapeMotionValuesFromProps(a,l,r){return xf(a,l,r)}}const KS={offset:"stroke-dashoffset",array:"stroke-dasharray"},XS={offset:"strokeDashoffset",array:"strokeDasharray"};function PS(i,a,l=1,r=0,u=!0){i.pathLength=1;const f=u?KS:XS;i[f.offset]=`${-r}`,i[f.array]=`${a} ${l}`}const FS=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function N0(i,{attrX:a,attrY:l,attrScale:r,pathLength:u,pathSpacing:f=1,pathOffset:d=0,...h},y,m,v){if(vf(i,h,m),y){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:b,style:w}=i;b.transform&&(w.transform=b.transform,delete b.transform),(w.transform||b.transformOrigin)&&(w.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),w.transform&&(w.transformBox=(v==null?void 0:v.transformBox)??"fill-box",delete b.transformBox);for(const j of FS)b[j]!==void 0&&(w[j]=b[j],delete b[j]);a!==void 0&&(b.x=a),l!==void 0&&(b.y=l),r!==void 0&&(b.scale=r),u!==void 0&&PS(b,u,f,d,!1)}const D0=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"]),M0=i=>typeof i=="string"&&i.toLowerCase()==="svg";function QS(i,a,l,r){E0(i,a,void 0,r);for(const u in a.attrs)i.setAttribute(D0.has(u)?u:ff(u),a.attrs[u])}function C0(i,a,l){const r=xf(i,a,l);for(const u in i)if(ct(i[u])||ct(a[u])){const f=wi.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[f]=i[u]}return r}class ZS extends b0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=We}getBaseTargetFromProps(a,l){return a[l]}readValueFromInstance(a,l){if(Ti.has(l)){const r=u0(l);return r&&r.default||0}return l=D0.has(l)?l:ff(l),a.getAttribute(l)}scrapeMotionValuesFromProps(a,l,r){return C0(a,l,r)}build(a,l,r){N0(a,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(a,l,r,u){QS(a,l,r,u)}mount(a){this.isSVGTag=M0(a.tagName),super.mount(a)}}const JS=yf.length;function O0(i){if(!i)return;if(!i.isControllingVariants){const l=i.parent?O0(i.parent)||{}:{};return i.props.initial!==void 0&&(l.initial=i.props.initial),l}const a={};for(let l=0;l<JS;l++){const r=yf[l],u=i.props[r];(Os(u)||u===!1)&&(a[r]=u)}return a}function R0(i,a){if(!Array.isArray(a))return!1;const l=a.length;if(l!==i.length)return!1;for(let r=0;r<l;r++)if(a[r]!==i[r])return!1;return!0}const $S=[...gf].reverse(),WS=gf.length;function IS(i){return a=>Promise.all(a.map(({animation:l,options:r})=>Q2(i,l,r)))}function ew(i){let a=IS(i),l=dg(),r=!0,u=!1;const f=m=>(v,b)=>{var j;const w=vi(i,b,m==="exit"?(j=i.presenceContext)==null?void 0:j.custom:void 0);if(w){const{transition:E,transitionEnd:V,...B}=w;v={...v,...B,...V}}return v};function d(m){a=m(i)}function h(m){const{props:v}=i,b=O0(i.parent)||{},w=[],j=new Set;let E={},V=1/0;for(let q=0;q<WS;q++){const Y=$S[q],H=l[Y],X=v[Y]!==void 0?v[Y]:b[Y],P=Os(X),ae=Y===m?H.isActive:null;ae===!1&&(V=q);let Q=X===b[Y]&&X!==v[Y]&&P;if(Q&&(r||u)&&i.manuallyAnimateOnMount&&(Q=!1),H.protectedKeys={...E},!H.isActive&&ae===null||!X&&!H.prevProp||Er(X)||typeof X=="boolean")continue;if(Y==="exit"&&H.isActive&&ae!==!0){H.prevResolvedValues&&(E={...E,...H.prevResolvedValues});continue}const I=tw(H.prevProp,X);let ce=I||Y===m&&H.isActive&&!Q&&P||q>V&&P,ye=!1;const ot=Array.isArray(X)?X:[X];let Ve=ot.reduce(f(Y),{});ae===!1&&(Ve={});const{prevResolvedValues:He={}}=H,Le={...He,...Ve},tt=F=>{ce=!0,j.has(F)&&(ye=!0,j.delete(F)),H.needsAnimating[F]=!0;const ie=i.getValue(F);ie&&(ie.liveStyle=!1)};for(const F in Le){const ie=Ve[F],fe=He[F];if(E.hasOwnProperty(F))continue;let A=!1;Rc(ie)&&Rc(fe)?A=!R0(ie,fe):A=ie!==fe,A?ie!=null?tt(F):j.add(F):ie!==void 0&&j.has(F)?tt(F):H.protectedKeys[F]=!0}H.prevProp=X,H.prevResolvedValues=Ve,H.isActive&&(E={...E,...Ve}),(r||u)&&i.blockInitialAnimation&&(ce=!1);const z=Q&&I;ce&&(!z||ye)&&w.push(...ot.map(F=>{const ie={type:Y};if(typeof F=="string"&&(r||u)&&!z&&i.manuallyAnimateOnMount&&i.parent){const{parent:fe}=i,A=vi(fe,F);if(fe.enteringChildren&&A){const{delayChildren:_}=A.transition||{};ie.delay=e0(fe.enteringChildren,i,_)}}return{animation:F,options:ie}}))}if(j.size){const q={};if(typeof v.initial!="boolean"){const Y=vi(i,Array.isArray(v.initial)?v.initial[0]:v.initial);Y&&Y.transition&&(q.transition=Y.transition)}j.forEach(Y=>{const H=i.getBaseTarget(Y),X=i.getValue(Y);X&&(X.liveStyle=!0),q[Y]=H??null}),w.push({animation:q})}let B=!!w.length;return r&&(v.initial===!1||v.initial===v.animate)&&!i.manuallyAnimateOnMount&&(B=!1),r=!1,u=!1,B?a(w):Promise.resolve()}function y(m,v){var w;if(l[m].isActive===v)return Promise.resolve();(w=i.variantChildren)==null||w.forEach(j=>{var E;return(E=j.animationState)==null?void 0:E.setActive(m,v)}),l[m].isActive=v;const b=h(m);for(const j in l)l[j].protectedKeys={};return b}return{animateChanges:h,setActive:y,setAnimateFunction:d,getState:()=>l,reset:()=>{l=dg(),u=!0}}}function tw(i,a){return typeof a=="string"?a!==i:Array.isArray(a)?!R0(a,i):!1}function ba(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dg(){return{animate:ba(!0),whileInView:ba(),whileHover:ba(),whileTap:ba(),whileDrag:ba(),whileFocus:ba(),exit:ba()}}function hg(i,a){i.min=a.min,i.max=a.max}function Ft(i,a){hg(i.x,a.x),hg(i.y,a.y)}function mg(i,a){i.translate=a.translate,i.scale=a.scale,i.originPoint=a.originPoint,i.origin=a.origin}const z0=1e-4,nw=1-z0,aw=1+z0,L0=.01,iw=0-L0,sw=0+L0;function mt(i){return i.max-i.min}function lw(i,a,l){return Math.abs(i-a)<=l}function pg(i,a,l,r=.5){i.origin=r,i.originPoint=_e(a.min,a.max,i.origin),i.scale=mt(l)/mt(a),i.translate=_e(l.min,l.max,i.origin)-i.originPoint,(i.scale>=nw&&i.scale<=aw||isNaN(i.scale))&&(i.scale=1),(i.translate>=iw&&i.translate<=sw||isNaN(i.translate))&&(i.translate=0)}function As(i,a,l,r){pg(i.x,a.x,l.x,r?r.originX:void 0),pg(i.y,a.y,l.y,r?r.originY:void 0)}function gg(i,a,l){i.min=l.min+a.min,i.max=i.min+mt(a)}function rw(i,a,l){gg(i.x,a.x,l.x),gg(i.y,a.y,l.y)}function yg(i,a,l){i.min=a.min-l.min,i.max=i.min+mt(a)}function vr(i,a,l){yg(i.x,a.x,l.x),yg(i.y,a.y,l.y)}function vg(i,a,l,r,u){return i-=a,i=yr(i,1/l,r),u!==void 0&&(i=yr(i,1/u,r)),i}function ow(i,a=0,l=1,r=.5,u,f=i,d=i){if(an.test(a)&&(a=parseFloat(a),a=_e(d.min,d.max,a/100)-d.min),typeof a!="number")return;let h=_e(f.min,f.max,r);i===f&&(h-=a),i.min=vg(i.min,a,l,h,u),i.max=vg(i.max,a,l,h,u)}function xg(i,a,[l,r,u],f,d){ow(i,a[l],a[r],a[u],a.scale,f,d)}const uw=["x","scaleX","originX"],cw=["y","scaleY","originY"];function bg(i,a,l,r){xg(i.x,a,uw,l?l.x:void 0,r?r.x:void 0),xg(i.y,a,cw,l?l.y:void 0,r?r.y:void 0)}function Sg(i){return i.translate===0&&i.scale===1}function _0(i){return Sg(i.x)&&Sg(i.y)}function wg(i,a){return i.min===a.min&&i.max===a.max}function fw(i,a){return wg(i.x,a.x)&&wg(i.y,a.y)}function Tg(i,a){return Math.round(i.min)===Math.round(a.min)&&Math.round(i.max)===Math.round(a.max)}function V0(i,a){return Tg(i.x,a.x)&&Tg(i.y,a.y)}function Ag(i){return mt(i.x)/mt(i.y)}function Eg(i,a){return i.translate===a.translate&&i.scale===a.scale&&i.originPoint===a.originPoint}function tn(i){return[i("x"),i("y")]}function dw(i,a,l){let r="";const u=i.x.translate/a.x,f=i.y.translate/a.y,d=(l==null?void 0:l.z)||0;if((u||f||d)&&(r=`translate3d(${u}px, ${f}px, ${d}px) `),(a.x!==1||a.y!==1)&&(r+=`scale(${1/a.x}, ${1/a.y}) `),l){const{transformPerspective:m,rotate:v,rotateX:b,rotateY:w,skewX:j,skewY:E}=l;m&&(r=`perspective(${m}px) ${r}`),v&&(r+=`rotate(${v}deg) `),b&&(r+=`rotateX(${b}deg) `),w&&(r+=`rotateY(${w}deg) `),j&&(r+=`skewX(${j}deg) `),E&&(r+=`skewY(${E}deg) `)}const h=i.x.scale*a.x,y=i.y.scale*a.y;return(h!==1||y!==1)&&(r+=`scale(${h}, ${y})`),r||"none"}const k0=["TopLeft","TopRight","BottomLeft","BottomRight"],hw=k0.length,jg=i=>typeof i=="string"?parseFloat(i):i,Ng=i=>typeof i=="number"||$.test(i);function mw(i,a,l,r,u,f){u?(i.opacity=_e(0,l.opacity??1,pw(r)),i.opacityExit=_e(a.opacity??1,0,gw(r))):f&&(i.opacity=_e(a.opacity??1,l.opacity??1,r));for(let d=0;d<hw;d++){const h=`border${k0[d]}Radius`;let y=Dg(a,h),m=Dg(l,h);if(y===void 0&&m===void 0)continue;y||(y=0),m||(m=0),y===0||m===0||Ng(y)===Ng(m)?(i[h]=Math.max(_e(jg(y),jg(m),r),0),(an.test(m)||an.test(y))&&(i[h]+="%")):i[h]=m}(a.rotate||l.rotate)&&(i.rotate=_e(a.rotate||0,l.rotate||0,r))}function Dg(i,a){return i[a]!==void 0?i[a]:i.borderRadius}const pw=U0(0,.5,My),gw=U0(.5,.95,Yt);function U0(i,a,l){return r=>r<i?0:r>a?1:l(Ds(i,a,r))}function yw(i,a,l){const r=ct(i)?i:xi(i);return r.start(uf("",r,a,l)),r.animation}function Rs(i,a,l,r={passive:!0}){return i.addEventListener(a,l,r),()=>i.removeEventListener(a,l)}const vw=(i,a)=>i.depth-a.depth;class xw{constructor(){this.children=[],this.isDirty=!1}add(a){Fc(this.children,a),this.isDirty=!0}remove(a){dr(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(vw),this.isDirty=!1,this.children.forEach(a)}}function bw(i,a){const l=ht.now(),r=({timestamp:u})=>{const f=u-l;f>=a&&(In(r),i(f-a))};return Ce.setup(r,!0),()=>In(r)}function cr(i){return ct(i)?i.get():i}class Sw{constructor(){this.members=[]}add(a){Fc(this.members,a);for(let l=this.members.length-1;l>=0;l--){const r=this.members[l];if(r===a||r===this.lead||r===this.prevLead)continue;const u=r.instance;(!u||u.isConnected===!1)&&!r.snapshot&&(dr(this.members,r),r.unmount())}a.scheduleRender()}remove(a){if(dr(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(a){var l;for(let r=this.members.indexOf(a)-1;r>=0;r--){const u=this.members[r];if(u.isPresent!==!1&&((l=u.instance)==null?void 0:l.isConnected)!==!1)return this.promote(u),!0}return!1}promote(a,l){var u;const r=this.lead;if(a!==r&&(this.prevLead=r,this.lead=a,a.show(),r)){r.updateSnapshot(),a.scheduleRender();const{layoutDependency:f}=r.options,{layoutDependency:d}=a.options;(f===void 0||f!==d)&&(a.resumeFrom=r,l&&(r.preserveOpacity=!0),r.snapshot&&(a.snapshot=r.snapshot,a.snapshot.latestValues=r.animationValues||r.latestValues),(u=a.root)!=null&&u.isUpdating&&(a.isLayoutDirty=!0)),a.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(a=>{var l,r,u,f,d;(r=(l=a.options).onExitComplete)==null||r.call(l),(d=(u=a.resumingFrom)==null?void 0:(f=u.options).onExitComplete)==null||d.call(f)})}scheduleRender(){this.members.forEach(a=>a.instance&&a.scheduleRender(!1))}removeLeadSnapshot(){var a;(a=this.lead)!=null&&a.snapshot&&(this.lead.snapshot=void 0)}}const fr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},oc=["","X","Y","Z"],ww=1e3;let Tw=0;function uc(i,a,l,r){const{latestValues:u}=a;u[i]&&(l[i]=u[i],a.setStaticValue(i,0),r&&(r[i]=0))}function B0(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:a}=i.options;if(!a)return;const l=s0(a);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:u,layoutId:f}=i.options;window.MotionCancelOptimisedAnimation(l,"transform",Ce,!(u||f))}const{parent:r}=i;r&&!r.hasCheckedOptimisedAppear&&B0(r)}function H0({attachResizeListener:i,defaultParent:a,measureScroll:l,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(d={},h=a==null?void 0:a()){this.id=Tw++,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.layoutVersion=0,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(jw),this.nodes.forEach(Cw),this.nodes.forEach(Ow),this.nodes.forEach(Nw)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new xw)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Zc),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const y=this.eventHandlers.get(d);y&&y.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=pf(d)&&!ES(d),this.instance=d;const{layoutId:h,layout:y,visualElement:m}=this.options;if(m&&!m.current&&m.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||h)&&(this.isLayoutDirty=!0),i){let v,b=0;const w=()=>this.root.updateBlockedByResize=!1;Ce.read(()=>{b=window.innerWidth}),i(d,()=>{const j=window.innerWidth;j!==b&&(b=j,this.root.updateBlockedByResize=!0,v&&v(),v=bw(w,250),fr.hasAnimatedSinceResize&&(fr.hasAnimatedSinceResize=!1,this.nodes.forEach(Og)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&m&&(h||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:w,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||m.getDefaultTransition()||Vw,{onLayoutAnimationStart:V,onLayoutAnimationComplete:B}=m.getProps(),q=!this.targetLayout||!V0(this.targetLayout,j),Y=!b&&w;if(this.options.layoutRoot||this.resumeFrom||Y||b&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const H={...of(E,"layout"),onPlay:V,onComplete:B};(m.shouldReduceMotion||this.options.layoutRoot)&&(H.delay=0,H.type=!1),this.startAnimation(H),this.setAnimationOrigin(v,Y)}else b||Og(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),In(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(Rw),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&B0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const b=this.path[v];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:h,layout:y}=this.options;if(h===void 0&&!y)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Mg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Cg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Mw),this.nodes.forEach(Aw),this.nodes.forEach(Ew)):this.nodes.forEach(Cg),this.clearAllSnapshots();const h=ht.now();rt.delta=sn(0,1e3/60,h-rt.timestamp),rt.timestamp=h,rt.isProcessing=!0,ec.update.process(rt),ec.preRender.process(rt),ec.render.process(rt),rt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,hf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Dw),this.sharedNodes.forEach(zw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ce.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!mt(this.snapshot.measuredBox.x)&&!mt(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 y=0;y<this.path.length;y++)this.path[y].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=We(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const y=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:y,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!_0(this.projectionDelta),y=this.getTransformTemplate(),m=y?y(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;d&&this.instance&&(h||wa(this.latestValues)||v)&&(u(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let y=this.removeElementScroll(h);return d&&(y=this.removeTransform(y)),kw(y),{animationId:this.root.animationId,measuredBox:h,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:d}=this.options;if(!d)return We();const h=d.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(Uw))){const{scroll:v}=this.root;v&&(gi(h.x,v.offset.x),gi(h.y,v.offset.y))}return h}removeElementScroll(d){var y;const h=We();if(Ft(h,d),(y=this.scroll)!=null&&y.wasRoot)return h;for(let m=0;m<this.path.length;m++){const v=this.path[m],{scroll:b,options:w}=v;v!==this.root&&b&&w.layoutScroll&&(b.wasRoot&&Ft(h,d),gi(h.x,b.offset.x),gi(h.y,b.offset.y))}return h}applyTransform(d,h=!1){const y=We();Ft(y,d);for(let m=0;m<this.path.length;m++){const v=this.path[m];!h&&v.options.layoutScroll&&v.scroll&&v!==v.root&&yi(y,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),wa(v.latestValues)&&yi(y,v.latestValues)}return wa(this.latestValues)&&yi(y,this.latestValues),y}removeTransform(d){const h=We();Ft(h,d);for(let y=0;y<this.path.length;y++){const m=this.path[y];if(!m.instance||!wa(m.latestValues))continue;Uc(m.latestValues)&&m.updateSnapshot();const v=We(),b=m.measurePageBox();Ft(v,b),bg(h,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,v)}return wa(this.latestValues)&&bg(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==rt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var j;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==h;if(!(d||y&&this.isSharedProjectionDirty||this.isProjectionDirty||(j=this.parent)!=null&&j.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:b}=this.options;if(!this.layout||!(v||b))return;this.resolvedRelativeTargetAt=rt.timestamp;const w=this.getClosestProjectingParent();w&&this.linkedParentVersion!==w.layoutVersion&&!w.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(w&&w.layout?this.createRelativeTarget(w,this.layout.layoutBox,w.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=We(),this.targetWithTransforms=We()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ft(this.target,this.layout.layoutBox),T0(this.target,this.targetDelta)):Ft(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?this.createRelativeTarget(w,this.target,w.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Uc(this.parent.latestValues)||w0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,h,y){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=We(),this.relativeTargetOrigin=We(),vr(this.relativeTargetOrigin,h,y),Ft(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var E;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let y=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(y=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===rt.timestamp&&(y=!1),y)return;const{layout:m,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||v))return;Ft(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,w=this.treeScale.y;VS(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=We());const{target:j}=d;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(mg(this.prevProjectionDelta.x,this.projectionDelta.x),mg(this.prevProjectionDelta.y,this.projectionDelta.y)),As(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==w||!Eg(this.projectionDelta.x,this.prevProjectionDelta.x)||!Eg(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),d){const y=this.getStack();y&&y.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=pi(),this.projectionDelta=pi(),this.projectionDeltaWithTransform=pi()}setAnimationOrigin(d,h=!1){const y=this.snapshot,m=y?y.latestValues:{},v={...this.latestValues},b=pi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const w=We(),j=y?y.source:void 0,E=this.layout?this.layout.source:void 0,V=j!==E,B=this.getStack(),q=!B||B.members.length<=1,Y=!!(V&&!q&&this.options.crossfade===!0&&!this.path.some(_w));this.animationProgress=0;let H;this.mixTargetDelta=X=>{const P=X/1e3;Rg(b.x,d.x,P),Rg(b.y,d.y,P),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vr(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Lw(this.relativeTarget,this.relativeTargetOrigin,w,P),H&&fw(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=We()),Ft(H,this.relativeTarget)),V&&(this.animationValues=v,mw(v,m,this.latestValues,P,Y,q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var h,y,m;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(m=(y=this.resumingFrom)==null?void 0:y.currentAnimation)==null||m.stop(),this.pendingAnimation&&(In(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ce.update(()=>{fr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xi(0)),this.motionValue.jump(0,!1),this.currentAnimation=yw(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:v=>{this.mixTargetDelta(v),d.onUpdate&&d.onUpdate(v)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ww),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:y,layout:m,latestValues:v}=d;if(!(!h||!y||!m)){if(this!==d&&this.layout&&m&&q0(this.options.animationType,this.layout.layoutBox,m.layoutBox)){y=this.target||We();const b=mt(this.layout.layoutBox.x);y.x.min=d.target.x.min,y.x.max=y.x.min+b;const w=mt(this.layout.layoutBox.y);y.y.min=d.target.y.min,y.y.max=y.y.min+w}Ft(h,y),yi(h,v),As(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new Sw),this.sharedNodes.get(d).add(h);const m=h.options.initialPromotionConfig;h.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var h;const{layoutId:d}=this.options;return d?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:d}=this.options;return d?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:y}={}){const m=this.getStack();m&&m.promote(this,y),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:y}=d;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(h=!0),!h)return;const m={};y.z&&uc("z",d,m,this.animationValues);for(let v=0;v<oc.length;v++)uc(`rotate${oc[v]}`,d,m,this.animationValues),uc(`skew${oc[v]}`,d,m,this.animationValues);d.render();for(const v in m)d.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=cr(h==null?void 0:h.pointerEvents)||"",d.transform=y?y(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=cr(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!wa(this.latestValues)&&(d.transform=y?y({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=m.animationValues||m.latestValues;this.applyTransformsToTarget();let b=dw(this.projectionDeltaWithTransform,this.treeScale,v);y&&(b=y(v,b)),d.transform=b;const{x:w,y:j}=this.projectionDelta;d.transformOrigin=`${w.origin*100}% ${j.origin*100}% 0`,m.animationValues?d.opacity=m===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const E in Hc){if(v[E]===void 0)continue;const{correct:V,applyTo:B,isCSSVariable:q}=Hc[E],Y=b==="none"?v[E]:V(v[E],m);if(B){const H=B.length;for(let X=0;X<H;X++)d[B[X]]=Y}else q?this.options.visualElement.renderState.vars[E]=Y:d[E]=Y}this.options.layoutId&&(d.pointerEvents=m===this?cr(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(Mg),this.root.sharedNodes.clear()}}}function Aw(i){i.updateLayout()}function Ew(i){var l;const a=((l=i.resumeFrom)==null?void 0:l.snapshot)||i.snapshot;if(i.isLead()&&i.layout&&a&&i.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:u}=i.layout,{animationType:f}=i.options,d=a.source!==i.layout.source;f==="size"?tn(b=>{const w=d?a.measuredBox[b]:a.layoutBox[b],j=mt(w);w.min=r[b].min,w.max=w.min+j}):q0(f,a.layoutBox,r)&&tn(b=>{const w=d?a.measuredBox[b]:a.layoutBox[b],j=mt(r[b]);w.max=w.min+j,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[b].max=i.relativeTarget[b].min+j)});const h=pi();As(h,r,a.layoutBox);const y=pi();d?As(y,i.applyTransform(u,!0),a.measuredBox):As(y,r,a.layoutBox);const m=!_0(h);let v=!1;if(!i.resumeFrom){const b=i.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:w,layout:j}=b;if(w&&j){const E=We();vr(E,a.layoutBox,w.layoutBox);const V=We();vr(V,r,j.layoutBox),V0(E,V)||(v=!0),b.options.layoutRoot&&(i.relativeTarget=V,i.relativeTargetOrigin=E,i.relativeParent=b)}}}i.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:y,layoutDelta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:v})}else if(i.isLead()){const{onExitComplete:r}=i.options;r&&r()}i.options.transition=void 0}function jw(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function Nw(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function Dw(i){i.clearSnapshot()}function Mg(i){i.clearMeasurements()}function Cg(i){i.isLayoutDirty=!1}function Mw(i){const{visualElement:a}=i.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),i.resetTransform()}function Og(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function Cw(i){i.resolveTargetDelta()}function Ow(i){i.calcProjection()}function Rw(i){i.resetSkewAndRotation()}function zw(i){i.removeLeadSnapshot()}function Rg(i,a,l){i.translate=_e(a.translate,0,l),i.scale=_e(a.scale,1,l),i.origin=a.origin,i.originPoint=a.originPoint}function zg(i,a,l,r){i.min=_e(a.min,l.min,r),i.max=_e(a.max,l.max,r)}function Lw(i,a,l,r){zg(i.x,a.x,l.x,r),zg(i.y,a.y,l.y,r)}function _w(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const Vw={duration:.45,ease:[.4,0,.1,1]},Lg=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),_g=Lg("applewebkit/")&&!Lg("chrome/")?Math.round:Yt;function Vg(i){i.min=_g(i.min),i.max=_g(i.max)}function kw(i){Vg(i.x),Vg(i.y)}function q0(i,a,l){return i==="position"||i==="preserve-aspect"&&!lw(Ag(a),Ag(l),.2)}function Uw(i){var a;return i!==i.root&&((a=i.scroll)==null?void 0:a.wasRoot)}const Bw=H0({attachResizeListener:(i,a)=>Rs(i,"resize",a),measureScroll:()=>{var i,a;return{x:document.documentElement.scrollLeft||((i=document.body)==null?void 0:i.scrollLeft)||0,y:document.documentElement.scrollTop||((a=document.body)==null?void 0:a.scrollTop)||0}},checkIsScrollRoot:()=>!0}),cc={current:void 0},G0=H0({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!cc.current){const i=new Bw({});i.mount(window),i.setOptions({layoutScroll:!0}),cc.current=i}return cc.current},resetTransform:(i,a)=>{i.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),Y0=te.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function Hw(i=!0){const a=te.useContext(Pc);if(a===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:u}=a,f=te.useId();te.useEffect(()=>{if(i)return u(f)},[i]);const d=te.useCallback(()=>i&&r&&r(f),[f,r,i]);return!l&&r?[!1,d]:[!0]}const K0=te.createContext({strict:!1}),kg={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"]};let Ug=!1;function qw(){if(Ug)return;const i={};for(const a in kg)i[a]={isEnabled:l=>kg[a].some(r=>!!l[r])};x0(i),Ug=!0}function X0(){return qw(),RS()}function Gw(i){const a=X0();for(const l in i)a[l]={...a[l],...i[l]};x0(a)}const Yw=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","propagate","ignoreStrict","viewport"]);function xr(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||Yw.has(i)}let P0=i=>!xr(i);function Kw(i){typeof i=="function"&&(P0=a=>a.startsWith("on")?!xr(a):i(a))}try{Kw(require("@emotion/is-prop-valid").default)}catch{}function Xw(i,a,l){const r={};for(const u in i)u==="values"&&typeof i.values=="object"||(P0(u)||l===!0&&xr(u)||!a&&!xr(u)||i.draggable&&u.startsWith("onDrag"))&&(r[u]=i[u]);return r}const Nr=te.createContext({});function Pw(i,a){if(jr(i)){const{initial:l,animate:r}=i;return{initial:l===!1||Os(l)?l:void 0,animate:Os(r)?r:void 0}}return i.inherit!==!1?a:{}}function Fw(i){const{initial:a,animate:l}=Pw(i,te.useContext(Nr));return te.useMemo(()=>({initial:a,animate:l}),[Bg(a),Bg(l)])}function Bg(i){return Array.isArray(i)?i.join(" "):i}const bf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function F0(i,a,l){for(const r in a)!ct(a[r])&&!j0(r,l)&&(i[r]=a[r])}function Qw({transformTemplate:i},a){return te.useMemo(()=>{const l=bf();return vf(l,a,i),Object.assign({},l.vars,l.style)},[a])}function Zw(i,a){const l=i.style||{},r={};return F0(r,l,i),Object.assign(r,Qw(i,a)),r}function Jw(i,a){const l={},r=Zw(i,a);return i.drag&&i.dragListener!==!1&&(l.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(l.tabIndex=0),l.style=r,l}const Q0=()=>({...bf(),attrs:{}});function $w(i,a,l,r){const u=te.useMemo(()=>{const f=Q0();return N0(f,a,M0(r),i.transformTemplate,i.style),{...f.attrs,style:{...f.style}}},[a]);if(i.style){const f={};F0(f,i.style,i),u.style={...f,...u.style}}return u}const Ww=["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 Sf(i){return typeof i!="string"||i.includes("-")?!1:!!(Ww.indexOf(i)>-1||/[A-Z]/u.test(i))}function Iw(i,a,l,{latestValues:r},u,f=!1,d){const y=(d??Sf(i)?$w:Jw)(a,r,u,i),m=Xw(a,typeof i=="string",f),v=i!==te.Fragment?{...m,...y,ref:l}:{},{children:b}=a,w=te.useMemo(()=>ct(b)?b.get():b,[b]);return te.createElement(i,{...v,children:w})}function eT({scrapeMotionValuesFromProps:i,createRenderState:a},l,r,u){return{latestValues:tT(l,r,u,i),renderState:a()}}function tT(i,a,l,r){const u={},f=r(i,{});for(const w in f)u[w]=cr(f[w]);let{initial:d,animate:h}=i;const y=jr(i),m=y0(i);a&&m&&!y&&i.inherit!==!1&&(d===void 0&&(d=a.initial),h===void 0&&(h=a.animate));let v=l?l.initial===!1:!1;v=v||d===!1;const b=v?h:d;if(b&&typeof b!="boolean"&&!Er(b)){const w=Array.isArray(b)?b:[b];for(let j=0;j<w.length;j++){const E=cf(i,w[j]);if(E){const{transitionEnd:V,transition:B,...q}=E;for(const Y in q){let H=q[Y];if(Array.isArray(H)){const X=v?H.length-1:0;H=H[X]}H!==null&&(u[Y]=H)}for(const Y in V)u[Y]=V[Y]}}}return u}const Z0=i=>(a,l)=>{const r=te.useContext(Nr),u=te.useContext(Pc),f=()=>eT(i,a,r,u);return l?f():nb(f)},nT=Z0({scrapeMotionValuesFromProps:xf,createRenderState:bf}),aT=Z0({scrapeMotionValuesFromProps:C0,createRenderState:Q0}),iT=Symbol.for("motionComponentSymbol");function sT(i,a,l){const r=te.useRef(l);te.useInsertionEffect(()=>{r.current=l});const u=te.useRef(null);return te.useCallback(f=>{var h;f&&((h=i.onMount)==null||h.call(i,f));const d=r.current;if(typeof d=="function")if(f){const y=d(f);typeof y=="function"&&(u.current=y)}else u.current?(u.current(),u.current=null):d(f);else d&&(d.current=f);a&&(f?a.mount(f):a.unmount())},[a])}const J0=te.createContext({});function di(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function lT(i,a,l,r,u,f){var H,X;const{visualElement:d}=te.useContext(Nr),h=te.useContext(K0),y=te.useContext(Pc),m=te.useContext(Y0),v=m.reducedMotion,b=m.skipAnimations,w=te.useRef(null),j=te.useRef(!1);r=r||h.renderer,!w.current&&r&&(w.current=r(i,{visualState:a,parent:d,props:l,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:v,skipAnimations:b,isSVG:f}),j.current&&w.current&&(w.current.manuallyAnimateOnMount=!0));const E=w.current,V=te.useContext(J0);E&&!E.projection&&u&&(E.type==="html"||E.type==="svg")&&rT(w.current,l,u,V);const B=te.useRef(!1);te.useInsertionEffect(()=>{E&&B.current&&E.update(l,y)});const q=l[i0],Y=te.useRef(!!q&&typeof window<"u"&&!((H=window.MotionHandoffIsComplete)!=null&&H.call(window,q))&&((X=window.MotionHasOptimisedAnimation)==null?void 0:X.call(window,q)));return ib(()=>{j.current=!0,E&&(B.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),Y.current&&E.animationState&&E.animationState.animateChanges())}),te.useEffect(()=>{E&&(!Y.current&&E.animationState&&E.animationState.animateChanges(),Y.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,q)}),Y.current=!1),E.enteringChildren=void 0)}),E}function rT(i,a,l,r){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:y,layoutRoot:m,layoutCrossfade:v}=a;i.projection=new l(i.latestValues,a["data-framer-portal-id"]?void 0:$0(i.parent)),i.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&di(h),visualElement:i,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:v,layoutScroll:y,layoutRoot:m})}function $0(i){if(i)return i.options.allowProjection!==!1?i.projection:$0(i.parent)}function fc(i,{forwardMotionProps:a=!1,type:l}={},r,u){r&&Gw(r);const f=l?l==="svg":Sf(i),d=f?aT:nT;function h(m,v){let b;const w={...te.useContext(Y0),...m,layoutId:oT(m)},{isStatic:j}=w,E=Fw(m),V=d(m,j);if(!j&&typeof window<"u"){uT();const B=cT(w);b=B.MeasureLayout,E.visualElement=lT(i,V,w,u,B.ProjectionNode,f)}return g.jsxs(Nr.Provider,{value:E,children:[b&&E.visualElement?g.jsx(b,{visualElement:E.visualElement,...w}):null,Iw(i,m,sT(V,E.visualElement,v),V,j,a,f)]})}h.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const y=te.forwardRef(h);return y[iT]=i,y}function oT({layoutId:i}){const a=te.useContext(yy).id;return a&&i!==void 0?a+"-"+i:i}function uT(i,a){te.useContext(K0).strict}function cT(i){const a=X0(),{drag:l,layout:r}=a;if(!l&&!r)return{};const u={...l,...r};return{MeasureLayout:l!=null&&l.isEnabled(i)||r!=null&&r.isEnabled(i)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function fT(i,a){if(typeof Proxy>"u")return fc;const l=new Map,r=(f,d)=>fc(f,d,i,a),u=(f,d)=>r(f,d);return new Proxy(u,{get:(f,d)=>d==="create"?r:(l.has(d)||l.set(d,fc(d,void 0,i,a)),l.get(d))})}const dT=(i,a)=>a.isSVG??Sf(i)?new ZS(a):new YS(a,{allowProjection:i!==te.Fragment});class hT extends ea{constructor(a){super(a),a.animationState||(a.animationState=ew(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();Er(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:l}=this.node.prevProps||{};a!==l&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let mT=0;class pT extends ea{constructor(){super(...arguments),this.id=mT++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:l}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===r)return;const u=this.node.animationState.setActive("exit",!a);l&&!a&&u.then(()=>{l(this.id)})}mount(){const{register:a,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const gT={animation:{Feature:hT},exit:{Feature:pT}};function ks(i){return{point:{x:i.pageX,y:i.pageY}}}const yT=i=>a=>mf(a)&&i(a,ks(a));function Es(i,a,l,r){return Rs(i,a,yT(l),r)}const W0=({current:i})=>i?i.ownerDocument.defaultView:null,Hg=(i,a)=>Math.abs(i-a);function vT(i,a){const l=Hg(i.x,a.x),r=Hg(i.y,a.y);return Math.sqrt(l**2+r**2)}const qg=new Set(["auto","scroll"]);class I0{constructor(a,l,{transformPagePoint:r,contextWindow:u=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=j=>{this.handleScroll(j.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=hc(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,V=vT(j.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!V)return;const{point:B}=j,{timestamp:q}=rt;this.history.push({...B,timestamp:q});const{onStart:Y,onMove:H}=this.handlers;E||(Y&&Y(this.lastMoveEvent,j),this.startEvent=this.lastMoveEvent),H&&H(this.lastMoveEvent,j)},this.handlePointerMove=(j,E)=>{this.lastMoveEvent=j,this.lastMoveEventInfo=dc(E,this.transformPagePoint),Ce.update(this.updatePoint,!0)},this.handlePointerUp=(j,E)=>{this.end();const{onEnd:V,onSessionEnd:B,resumeAnimation:q}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&q&&q(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Y=hc(j.type==="pointercancel"?this.lastMoveEventInfo:dc(E,this.transformPagePoint),this.history);this.startEvent&&V&&V(j,Y),B&&B(j,Y)},!mf(a))return;this.dragSnapToOrigin=f,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=u||window;const y=ks(a),m=dc(y,this.transformPagePoint),{point:v}=m,{timestamp:b}=rt;this.history=[{...v,timestamp:b}];const{onSessionStart:w}=l;w&&w(a,hc(m,this.history)),this.removeListeners=Ls(Es(this.contextWindow,"pointermove",this.handlePointerMove),Es(this.contextWindow,"pointerup",this.handlePointerUp),Es(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let l=a.parentElement;for(;l;){const r=getComputedStyle(l);(qg.has(r.overflowX)||qg.has(r.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){const l=this.scrollPositions.get(a);if(!l)return;const r=a===window,u=r?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},f={x:u.x-l.x,y:u.y-l.y};f.x===0&&f.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(a,u),Ce.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),In(this.updatePoint)}}function dc(i,a){return a?{point:a(i.point)}:i}function Gg(i,a){return{x:i.x-a.x,y:i.y-a.y}}function hc({point:i},a){return{point:i,delta:Gg(i,ev(a)),offset:Gg(i,xT(a)),velocity:bT(a,.1)}}function xT(i){return i[0]}function ev(i){return i[i.length-1]}function bT(i,a){if(i.length<2)return{x:0,y:0};let l=i.length-1,r=null;const u=ev(i);for(;l>=0&&(r=i[l],!(u.timestamp-r.timestamp>Zt(a)));)l--;if(!r)return{x:0,y:0};r===i[0]&&i.length>2&&u.timestamp-r.timestamp>Zt(a)*2&&(r=i[1]);const f=Gt(u.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const d={x:(u.x-r.x)/f,y:(u.y-r.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function ST(i,{min:a,max:l},r){return a!==void 0&&i<a?i=r?_e(a,i,r.min):Math.max(i,a):l!==void 0&&i>l&&(i=r?_e(l,i,r.max):Math.min(i,l)),i}function Yg(i,a,l){return{min:a!==void 0?i.min+a:void 0,max:l!==void 0?i.max+l-(i.max-i.min):void 0}}function wT(i,{top:a,left:l,bottom:r,right:u}){return{x:Yg(i.x,l,u),y:Yg(i.y,a,r)}}function Kg(i,a){let l=a.min-i.min,r=a.max-i.max;return a.max-a.min<i.max-i.min&&([l,r]=[r,l]),{min:l,max:r}}function TT(i,a){return{x:Kg(i.x,a.x),y:Kg(i.y,a.y)}}function AT(i,a){let l=.5;const r=mt(i),u=mt(a);return u>r?l=Ds(a.min,a.max-r,i.min):r>u&&(l=Ds(i.min,i.max-u,a.min)),sn(0,1,l)}function ET(i,a){const l={};return a.min!==void 0&&(l.min=a.min-i.min),a.max!==void 0&&(l.max=a.max-i.min),l}const qc=.35;function jT(i=qc){return i===!1?i=0:i===!0&&(i=qc),{x:Xg(i,"left","right"),y:Xg(i,"top","bottom")}}function Xg(i,a,l){return{min:Pg(i,a),max:Pg(i,l)}}function Pg(i,a){return typeof i=="number"?i:i[a]||0}const NT=new WeakMap;class DT{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=We(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:l=!1,distanceThreshold:r}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const f=b=>{l&&this.snapToCursor(ks(b).point),this.stopAnimation()},d=(b,w)=>{const{drag:j,dragPropagation:E,onDragStart:V}=this.getProps();if(j&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=oS(j),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(q=>{let Y=this.getAxisMotionValue(q).get()||0;if(an.test(Y)){const{projection:H}=this.visualElement;if(H&&H.layout){const X=H.layout.layoutBox[q];X&&(Y=mt(X)*(parseFloat(Y)/100))}}this.originPoint[q]=Y}),V&&Ce.update(()=>V(b,w),!1,!0),zc(this.visualElement,"transform");const{animationState:B}=this.visualElement;B&&B.setActive("whileDrag",!0)},h=(b,w)=>{this.latestPointerEvent=b,this.latestPanInfo=w;const{dragPropagation:j,dragDirectionLock:E,onDirectionLock:V,onDrag:B}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:q}=w;if(E&&this.currentDirection===null){this.currentDirection=CT(q),this.currentDirection!==null&&V&&V(this.currentDirection);return}this.updateAxis("x",w.point,q),this.updateAxis("y",w.point,q),this.visualElement.render(),B&&Ce.update(()=>B(b,w),!1,!0)},y=(b,w)=>{this.latestPointerEvent=b,this.latestPanInfo=w,this.stop(b,w),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new I0(a,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:y,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:W0(this.visualElement),element:this.visualElement.current})}stop(a,l){const r=a||this.latestPointerEvent,u=l||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!u||!r)return;const{velocity:d}=u;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&Ce.postRender(()=>h(r,u))}cancel(){this.isDragging=!1;const{projection:a,animationState:l}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,l,r){const{drag:u}=this.getProps();if(!r||!ir(a,u,this.currentDirection))return;const f=this.getAxisMotionValue(a);let d=this.originPoint[a]+r[a];this.constraints&&this.constraints[a]&&(d=ST(d,this.constraints[a],this.elastic[a])),f.set(d)}resolveConstraints(){var f;const{dragConstraints:a,dragElastic:l}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(f=this.visualElement.projection)==null?void 0:f.layout,u=this.constraints;a&&di(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&r?this.constraints=wT(r.layoutBox,a):this.constraints=!1,this.elastic=jT(l),u!==this.constraints&&!di(a)&&r&&this.constraints&&!this.hasMutatedConstraints&&tn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=ET(r.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:l}=this.getProps();if(!a||!di(a))return!1;const r=a.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=kS(r,u.root,this.visualElement.getTransformPagePoint());let d=TT(u.layout.layoutBox,f);if(l){const h=l(LS(d));this.hasMutatedConstraints=!!h,h&&(d=S0(h))}return d}startAnimation(a){const{drag:l,dragMomentum:r,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),y=this.constraints||{},m=tn(v=>{if(!ir(v,l,this.currentDirection))return;let b=y&&y[v]||{};d&&(b={min:0,max:0});const w=u?200:1e6,j=u?40:1e7,E={type:"inertia",velocity:r?a[v]:0,bounceStiffness:w,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10,...f,...b};return this.startAxisValueAnimation(v,E)});return Promise.all(m).then(h)}startAxisValueAnimation(a,l){const r=this.getAxisMotionValue(a);return zc(this.visualElement,a),r.start(uf(a,r,0,l,this.visualElement,!1))}stopAnimation(){tn(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){const l=`_drag${a.toUpperCase()}`,r=this.visualElement.getProps(),u=r[l];return u||this.visualElement.getValue(a,(r.initial?r.initial[a]:void 0)||0)}snapToCursor(a){tn(l=>{const{drag:r}=this.getProps();if(!ir(l,r,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(l);if(u&&u.layout){const{min:d,max:h}=u.layout.layoutBox[l],y=f.get()||0;f.set(a[l]-_e(d,h,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:l}=this.getProps(),{projection:r}=this.visualElement;if(!di(l)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};tn(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const y=h.get();u[d]=AT({min:y,max:y},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),tn(d=>{if(!ir(d,a,null))return;const h=this.getAxisMotionValue(d),{min:y,max:m}=this.constraints[d];h.set(_e(y,m,u[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;NT.set(this.visualElement,this);const a=this.visualElement.current,l=Es(a,"pointerdown",m=>{const{drag:v,dragListener:b=!0}=this.getProps(),w=m.target,j=w!==a&&mS(w);v&&b&&!j&&this.start(m)});let r;const u=()=>{const{dragConstraints:m}=this.getProps();di(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),r||(r=MT(a,m.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",u);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),Ce.read(u);const h=Rs(window,"resize",()=>this.scalePositionWithinConstraints()),y=f.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:v})=>{this.isDragging&&v&&(tn(b=>{const w=this.getAxisMotionValue(b);w&&(this.originPoint[b]+=m[b].translate,w.set(w.get()+m[b].translate))}),this.visualElement.render())}));return()=>{h(),l(),d(),y&&y(),r&&r()}}getProps(){const a=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:d=qc,dragMomentum:h=!0}=a;return{...a,drag:l,dragDirectionLock:r,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Fg(i){let a=!0;return()=>{if(a){a=!1;return}i()}}function MT(i,a,l){const r=tg(i,Fg(l)),u=tg(a,Fg(l));return()=>{r(),u()}}function ir(i,a,l){return(a===!0||a===i)&&(l===null||l===i)}function CT(i,a=10){let l=null;return Math.abs(i.y)>a?l="y":Math.abs(i.x)>a&&(l="x"),l}class OT extends ea{constructor(a){super(a),this.removeGroupControls=Yt,this.removeListeners=Yt,this.controls=new DT(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Yt}update(){const{dragControls:a}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};a!==l&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const mc=i=>(a,l)=>{i&&Ce.update(()=>i(a,l),!1,!0)};class RT extends ea{constructor(){super(...arguments),this.removePointerDownListener=Yt}onPointerDown(a){this.session=new I0(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:W0(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:l,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:mc(a),onStart:mc(l),onMove:mc(r),onEnd:(f,d)=>{delete this.session,u&&Ce.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=Es(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let pc=!1;class zT extends te.Component{componentDidMount(){const{visualElement:a,layoutGroup:l,switchLayoutGroup:r,layoutId:u}=this.props,{projection:f}=a;f&&(l.group&&l.group.add(f),r&&r.register&&u&&r.register(f),pc&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),fr.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:l,visualElement:r,drag:u,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,a.layoutDependency!==l&&d.setOptions({...d.options,layoutDependency:l}),pc=!0,u||a.layoutDependency!==l||l===void 0||a.isPresent!==f?d.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?d.promote():d.relegate()||Ce.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),hf.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:u}=a;pc=!0,u&&(u.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function tv(i){const[a,l]=Hw(),r=te.useContext(yy);return g.jsx(zT,{...i,layoutGroup:r,switchLayoutGroup:te.useContext(J0),isPresent:a,safeToRemove:l})}const LT={pan:{Feature:RT},drag:{Feature:OT,ProjectionNode:G0,MeasureLayout:tv}};function Qg(i,a,l){const{props:r}=i;i.animationState&&r.whileHover&&i.animationState.setActive("whileHover",l==="Start");const u="onHover"+l,f=r[u];f&&Ce.postRender(()=>f(a,ks(a)))}class _T extends ea{mount(){const{current:a}=this.node;a&&(this.unmount=cS(a,(l,r)=>(Qg(this.node,r,"Start"),u=>Qg(this.node,u,"End"))))}unmount(){}}class VT extends ea{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ls(Rs(this.node.current,"focus",()=>this.onFocus()),Rs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zg(i,a,l){const{props:r}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&r.whileTap&&i.animationState.setActive("whileTap",l==="Start");const u="onTap"+(l==="End"?"":l),f=r[u];f&&Ce.postRender(()=>f(a,ks(a)))}class kT extends ea{mount(){const{current:a}=this.node;if(!a)return;const{globalTapTarget:l,propagate:r}=this.node.props;this.unmount=gS(a,(u,f)=>(Zg(this.node,f,"Start"),(d,{success:h})=>Zg(this.node,d,h?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Gc=new WeakMap,gc=new WeakMap,UT=i=>{const a=Gc.get(i.target);a&&a(i)},BT=i=>{i.forEach(UT)};function HT({root:i,...a}){const l=i||document;gc.has(l)||gc.set(l,{});const r=gc.get(l),u=JSON.stringify(a);return r[u]||(r[u]=new IntersectionObserver(BT,{root:i,...a})),r[u]}function qT(i,a,l){const r=HT(a);return Gc.set(i,l),r.observe(i),()=>{Gc.delete(i),r.unobserve(i)}}const GT={some:0,all:1};class YT extends ea{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:l,margin:r,amount:u="some",once:f}=a,d={root:l?l.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:GT[u]},h=y=>{const{isIntersecting:m}=y;if(this.isInView===m||(this.isInView=m,f&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),w=m?v:b;w&&w(y)};return qT(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:l}=this.node;["amount","margin","root"].some(KT(a,l))&&this.startObserver()}unmount(){}}function KT({viewport:i={}},{viewport:a={}}={}){return l=>i[l]!==a[l]}const XT={inView:{Feature:YT},tap:{Feature:kT},focus:{Feature:VT},hover:{Feature:_T}},PT={layout:{ProjectionNode:G0,MeasureLayout:tv}},FT={...gT,...XT,...LT,...PT},nv=fT(FT,dT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QT=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ZT=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,l,r)=>r?r.toUpperCase():l.toLowerCase()),Jg=i=>{const a=ZT(i);return a.charAt(0).toUpperCase()+a.slice(1)},av=(...i)=>i.filter((a,l,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===l).join(" ").trim(),JT=i=>{for(const a in i)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var $T={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const WT=te.forwardRef(({color:i="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:u="",children:f,iconNode:d,...h},y)=>te.createElement("svg",{ref:y,...$T,width:a,height:a,stroke:i,strokeWidth:r?Number(l)*24/Number(a):l,className:av("lucide",u),...!f&&!JT(h)&&{"aria-hidden":"true"},...h},[...d.map(([m,v])=>te.createElement(m,v)),...Array.isArray(f)?f:[f]]));/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Se=(i,a)=>{const l=te.forwardRef(({className:r,...u},f)=>te.createElement(WT,{ref:f,iconNode:a,className:av(`lucide-${QT(Jg(i))}`,`lucide-${i}`,r),...u}));return l.displayName=Jg(i),l};/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const IT=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],eA=Se("activity",IT);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],bi=Se("arrow-right",tA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nA=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],aA=Se("building-2",nA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iA=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],wf=Se("chart-column",iA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sA=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],lA=Se("chart-line",sA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rA=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$g=Se("check",rA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oA=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],uA=Se("chevron-down",oA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cA=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],fA=Se("clock",cA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dA=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],iv=Se("cpu",dA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hA=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],mA=Se("database",hA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pA=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],sv=Se("external-link",pA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gA=[["path",{d:"M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5",key:"1wtuz0"}],["path",{d:"M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16",key:"e09ifn"}],["path",{d:"M2 21h13",key:"1x0fut"}],["path",{d:"M3 9h11",key:"1p7c0w"}]],yA=Se("fuel",gA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vA=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],xA=Se("funnel",vA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],br=Se("globe",bA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const SA=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],wA=Se("key",SA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const TA=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],AA=Se("landmark",TA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const EA=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],lv=Se("layers",EA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jA=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],NA=Se("lock",jA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const DA=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],MA=Se("mail",DA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const CA=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],OA=Se("message-circle",CA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const RA=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],zA=Se("message-square",RA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const LA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],rv=Se("panel-top",LA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _A=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],ov=Se("plug",_A);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const VA=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],kA=Se("search",VA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const UA=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],BA=Se("send",UA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const HA=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],qA=Se("server",HA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const GA=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Tf=Se("shield-alert",GA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YA=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],KA=Se("sliders-horizontal",YA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XA=[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]],uv=Se("telescope",XA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PA=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],FA=Se("terminal",PA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QA=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],cv=Se("trending-up",QA);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZA=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],JA=Se("users",ZA),$A="modulepreload",WA=function(i){return"/pro/"+i},Wg={},Ze=function(a,l,r){let u=Promise.resolve();if(l&&l.length>0){let d=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),y=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));u=d(l.map(m=>{if(m=WA(m),m in Wg)return;Wg[m]=!0;const v=m.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${b}`))return;const w=document.createElement("link");if(w.rel=v?"stylesheet":$A,v||(w.as="script"),w.crossOrigin="",w.href=m,y&&w.setAttribute("nonce",y),document.head.appendChild(w),v)return new Promise((j,E)=>{w.addEventListener("load",j),w.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return u.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.reason);return a().catch(f)})},se=i=>typeof i=="string",bs=()=>{let i,a;const l=new Promise((r,u)=>{i=r,a=u});return l.resolve=i,l.reject=a,l},Ig=i=>i==null?"":""+i,IA=(i,a,l)=>{i.forEach(r=>{a[r]&&(l[r]=a[r])})},e5=/###/g,ey=i=>i&&i.indexOf("###")>-1?i.replace(e5,"."):i,ty=i=>!i||se(i),js=(i,a,l)=>{const r=se(a)?a.split("."):a;let u=0;for(;u<r.length-1;){if(ty(i))return{};const f=ey(r[u]);!i[f]&&l&&(i[f]=new l),Object.prototype.hasOwnProperty.call(i,f)?i=i[f]:i={},++u}return ty(i)?{}:{obj:i,k:ey(r[u])}},ny=(i,a,l)=>{const{obj:r,k:u}=js(i,a,Object);if(r!==void 0||a.length===1){r[u]=l;return}let f=a[a.length-1],d=a.slice(0,a.length-1),h=js(i,d,Object);for(;h.obj===void 0&&d.length;)f=`${d[d.length-1]}.${f}`,d=d.slice(0,d.length-1),h=js(i,d,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${f}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=l},t5=(i,a,l,r)=>{const{obj:u,k:f}=js(i,a,Object);u[f]=u[f]||[],u[f].push(l)},Sr=(i,a)=>{const{obj:l,k:r}=js(i,a);if(l&&Object.prototype.hasOwnProperty.call(l,r))return l[r]},n5=(i,a,l)=>{const r=Sr(i,l);return r!==void 0?r:Sr(a,l)},fv=(i,a,l)=>{for(const r in a)r!=="__proto__"&&r!=="constructor"&&(r in i?se(i[r])||i[r]instanceof String||se(a[r])||a[r]instanceof String?l&&(i[r]=a[r]):fv(i[r],a[r],l):i[r]=a[r]);return i},Sa=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var a5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const i5=i=>se(i)?i.replace(/[&<>"'\/]/g,a=>a5[a]):i;class s5{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){const l=this.regExpMap.get(a);if(l!==void 0)return l;const r=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,r),this.regExpQueue.push(a),r}}const l5=[" ",",","?","!",";"],r5=new s5(20),o5=(i,a,l)=>{a=a||"",l=l||"";const r=l5.filter(d=>a.indexOf(d)<0&&l.indexOf(d)<0);if(r.length===0)return!0;const u=r5.getRegExp(`(${r.map(d=>d==="?"?"\\?":d).join("|")})`);let f=!u.test(i);if(!f){const d=i.indexOf(l);d>0&&!u.test(i.substring(0,d))&&(f=!0)}return f},Yc=(i,a,l=".")=>{if(!i)return;if(i[a])return Object.prototype.hasOwnProperty.call(i,a)?i[a]:void 0;const r=a.split(l);let u=i;for(let f=0;f<r.length;){if(!u||typeof u!="object")return;let d,h="";for(let y=f;y<r.length;++y)if(y!==f&&(h+=l),h+=r[y],d=u[h],d!==void 0){if(["string","number","boolean"].indexOf(typeof d)>-1&&y<r.length-1)continue;f+=y-f+1;break}u=d}return u},zs=i=>i==null?void 0:i.replace(/_/g,"-"),u5={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,a){var l,r;(r=(l=console==null?void 0:console[i])==null?void 0:l.apply)==null||r.call(l,console,a)}};class wr{constructor(a,l={}){this.init(a,l)}init(a,l={}){this.prefix=l.prefix||"i18next:",this.logger=a||u5,this.options=l,this.debug=l.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,l,r,u){return u&&!this.debug?null:(se(a[0])&&(a[0]=`${r}${this.prefix} ${a[0]}`),this.logger[l](a))}create(a){return new wr(this.logger,{prefix:`${this.prefix}:${a}:`,...this.options})}clone(a){return a=a||this.options,a.prefix=a.prefix||this.prefix,new wr(this.logger,a)}}var nn=new wr;class Dr{constructor(){this.observers={}}on(a,l){return a.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const u=this.observers[r].get(l)||0;this.observers[r].set(l,u+1)}),this}off(a,l){if(this.observers[a]){if(!l){delete this.observers[a];return}this.observers[a].delete(l)}}emit(a,...l){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([u,f])=>{for(let d=0;d<f;d++)u(...l)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([u,f])=>{for(let d=0;d<f;d++)u.apply(u,[a,...l])})}}class ay extends Dr{constructor(a,l={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){const l=this.options.ns.indexOf(a);l>-1&&this.options.ns.splice(l,1)}getResource(a,l,r,u={}){var m,v;const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,d=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;a.indexOf(".")>-1?h=a.split("."):(h=[a,l],r&&(Array.isArray(r)?h.push(...r):se(r)&&f?h.push(...r.split(f)):h.push(r)));const y=Sr(this.data,h);return!y&&!l&&!r&&a.indexOf(".")>-1&&(a=h[0],l=h[1],r=h.slice(2).join(".")),y||!d||!se(r)?y:Yc((v=(m=this.data)==null?void 0:m[a])==null?void 0:v[l],r,f)}addResource(a,l,r,u,f={silent:!1}){const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let h=[a,l];r&&(h=h.concat(d?r.split(d):r)),a.indexOf(".")>-1&&(h=a.split("."),u=l,l=h[1]),this.addNamespaces(l),ny(this.data,h,u),f.silent||this.emit("added",a,l,r,u)}addResources(a,l,r,u={silent:!1}){for(const f in r)(se(r[f])||Array.isArray(r[f]))&&this.addResource(a,l,f,r[f],{silent:!0});u.silent||this.emit("added",a,l,r)}addResourceBundle(a,l,r,u,f,d={silent:!1,skipCopy:!1}){let h=[a,l];a.indexOf(".")>-1&&(h=a.split("."),u=r,r=l,l=h[1]),this.addNamespaces(l);let y=Sr(this.data,h)||{};d.skipCopy||(r=JSON.parse(JSON.stringify(r))),u?fv(y,r,f):y={...y,...r},ny(this.data,h,y),d.silent||this.emit("added",a,l,r)}removeResourceBundle(a,l){this.hasResourceBundle(a,l)&&delete this.data[a][l],this.removeNamespaces(l),this.emit("removed",a,l)}hasResourceBundle(a,l){return this.getResource(a,l)!==void 0}getResourceBundle(a,l){return l||(l=this.options.defaultNS),this.getResource(a,l)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){const l=this.getDataByLanguage(a);return!!(l&&Object.keys(l)||[]).find(u=>l[u]&&Object.keys(l[u]).length>0)}toJSON(){return this.data}}var dv={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,a,l,r,u){return i.forEach(f=>{var d;a=((d=this.processors[f])==null?void 0:d.process(a,l,r,u))??a}),a}};const hv=Symbol("i18next/PATH_KEY");function c5(){const i=[],a=Object.create(null);let l;return a.get=(r,u)=>{var f;return(f=l==null?void 0:l.revoke)==null||f.call(l),u===hv?i:(i.push(u),l=Proxy.revocable(r,a),l.proxy)},Proxy.revocable(Object.create(null),a).proxy}function Kc(i,a){const{[hv]:l}=i(c5());return l.join((a==null?void 0:a.keySeparator)??".")}const iy={},yc=i=>!se(i)&&typeof i!="boolean"&&typeof i!="number";class Tr extends Dr{constructor(a,l={}){super(),IA(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nn.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,l={interpolation:{}}){const r={...l};if(a==null)return!1;const u=this.resolve(a,r);if((u==null?void 0:u.res)===void 0)return!1;const f=yc(u.res);return!(r.returnObjects===!1&&f)}extractFromKey(a,l){let r=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let f=l.ns||this.options.defaultNS||[];const d=r&&a.indexOf(r)>-1,h=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!o5(a,r,u);if(d&&!h){const y=a.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:a,namespaces:se(f)?[f]:f};const m=a.split(r);(r!==u||r===u&&this.options.ns.indexOf(m[0])>-1)&&(f=m.shift()),a=m.join(u)}return{key:a,namespaces:se(f)?[f]:f}}translate(a,l,r){let u=typeof l=="object"?{...l}:l;if(typeof u!="object"&&this.options.overloadTranslationOptionHandler&&(u=this.options.overloadTranslationOptionHandler(arguments)),typeof u=="object"&&(u={...u}),u||(u={}),a==null)return"";typeof a=="function"&&(a=Kc(a,{...this.options,...u})),Array.isArray(a)||(a=[String(a)]);const f=u.returnDetails!==void 0?u.returnDetails:this.options.returnDetails,d=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,{key:h,namespaces:y}=this.extractFromKey(a[a.length-1],u),m=y[y.length-1];let v=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const b=u.lng||this.language,w=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((b==null?void 0:b.toLowerCase())==="cimode")return w?f?{res:`${m}${v}${h}`,usedKey:h,exactUsedKey:h,usedLng:b,usedNS:m,usedParams:this.getUsedParamsDetails(u)}:`${m}${v}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:b,usedNS:m,usedParams:this.getUsedParamsDetails(u)}:h;const j=this.resolve(a,u);let E=j==null?void 0:j.res;const V=(j==null?void 0:j.usedKey)||h,B=(j==null?void 0:j.exactUsedKey)||h,q=["[object Number]","[object Function]","[object RegExp]"],Y=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,H=!this.i18nFormat||this.i18nFormat.handleAsObject,X=u.count!==void 0&&!se(u.count),P=Tr.hasDefaultValue(u),ae=X?this.pluralResolver.getSuffix(b,u.count,u):"",Q=u.ordinal&&X?this.pluralResolver.getSuffix(b,u.count,{ordinal:!1}):"",I=X&&!u.ordinal&&u.count===0,ce=I&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${ae}`]||u[`defaultValue${Q}`]||u.defaultValue;let ye=E;H&&!E&&P&&(ye=ce);const ot=yc(ye),Ve=Object.prototype.toString.apply(ye);if(H&&ye&&ot&&q.indexOf(Ve)<0&&!(se(Y)&&Array.isArray(ye))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const He=this.options.returnedObjectHandler?this.options.returnedObjectHandler(V,ye,{...u,ns:y}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(j.res=He,j.usedParams=this.getUsedParamsDetails(u),j):He}if(d){const He=Array.isArray(ye),Le=He?[]:{},tt=He?B:V;for(const z in ye)if(Object.prototype.hasOwnProperty.call(ye,z)){const G=`${tt}${d}${z}`;P&&!E?Le[z]=this.translate(G,{...u,defaultValue:yc(ce)?ce[z]:void 0,joinArrays:!1,ns:y}):Le[z]=this.translate(G,{...u,joinArrays:!1,ns:y}),Le[z]===G&&(Le[z]=ye[z])}E=Le}}else if(H&&se(Y)&&Array.isArray(E))E=E.join(Y),E&&(E=this.extendTranslation(E,a,u,r));else{let He=!1,Le=!1;!this.isValidLookup(E)&&P&&(He=!0,E=ce),this.isValidLookup(E)||(Le=!0,E=h);const z=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Le?void 0:E,G=P&&ce!==E&&this.options.updateMissing;if(Le||He||G){if(this.logger.log(G?"updateKey":"missingKey",b,m,h,G?ce:E),d){const A=this.resolve(h,{...u,keySeparator:!1});A&&A.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 F=[];const ie=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ie&&ie[0])for(let A=0;A<ie.length;A++)F.push(ie[A]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(u.lng||this.language):F.push(u.lng||this.language);const fe=(A,_,K)=>{var le;const Z=P&&K!==E?K:z;this.options.missingKeyHandler?this.options.missingKeyHandler(A,m,_,Z,G,u):(le=this.backendConnector)!=null&&le.saveMissing&&this.backendConnector.saveMissing(A,m,_,Z,G,u),this.emit("missingKey",A,m,_,E)};this.options.saveMissing&&(this.options.saveMissingPlurals&&X?F.forEach(A=>{const _=this.pluralResolver.getSuffixes(A,u);I&&u[`defaultValue${this.options.pluralSeparator}zero`]&&_.indexOf(`${this.options.pluralSeparator}zero`)<0&&_.push(`${this.options.pluralSeparator}zero`),_.forEach(K=>{fe([A],h+K,u[`defaultValue${K}`]||ce)})}):fe(F,h,ce))}E=this.extendTranslation(E,a,u,j,r),Le&&E===h&&this.options.appendNamespaceToMissingKey&&(E=`${m}${v}${h}`),(Le||He)&&this.options.parseMissingKeyHandler&&(E=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${v}${h}`:h,He?E:void 0,u))}return f?(j.res=E,j.usedParams=this.getUsedParamsDetails(u),j):E}extendTranslation(a,l,r,u,f){var y,m;if((y=this.i18nFormat)!=null&&y.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const v=se(a)&&(((m=r==null?void 0:r.interpolation)==null?void 0:m.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let b;if(v){const j=a.match(this.interpolator.nestingRegexp);b=j&&j.length}let w=r.replace&&!se(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(w={...this.options.interpolation.defaultVariables,...w}),a=this.interpolator.interpolate(a,w,r.lng||this.language||u.usedLng,r),v){const j=a.match(this.interpolator.nestingRegexp),E=j&&j.length;b<E&&(r.nest=!1)}!r.lng&&u&&u.res&&(r.lng=this.language||u.usedLng),r.nest!==!1&&(a=this.interpolator.nest(a,(...j)=>(f==null?void 0:f[0])===j[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${j[0]} in key: ${l[0]}`),null):this.translate(...j,l),r)),r.interpolation&&this.interpolator.reset()}const d=r.postProcess||this.options.postProcess,h=se(d)?[d]:d;return a!=null&&(h!=null&&h.length)&&r.applyPostProcessor!==!1&&(a=dv.handle(h,a,l,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),a}resolve(a,l={}){let r,u,f,d,h;return se(a)&&(a=[a]),a.forEach(y=>{if(this.isValidLookup(r))return;const m=this.extractFromKey(y,l),v=m.key;u=v;let b=m.namespaces;this.options.fallbackNS&&(b=b.concat(this.options.fallbackNS));const w=l.count!==void 0&&!se(l.count),j=w&&!l.ordinal&&l.count===0,E=l.context!==void 0&&(se(l.context)||typeof l.context=="number")&&l.context!=="",V=l.lngs?l.lngs:this.languageUtils.toResolveHierarchy(l.lng||this.language,l.fallbackLng);b.forEach(B=>{var q,Y;this.isValidLookup(r)||(h=B,!iy[`${V[0]}-${B}`]&&((q=this.utils)!=null&&q.hasLoadedNamespace)&&!((Y=this.utils)!=null&&Y.hasLoadedNamespace(h))&&(iy[`${V[0]}-${B}`]=!0,this.logger.warn(`key "${u}" for languages "${V.join(", ")}" won't get resolved as namespace "${h}" 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!!!")),V.forEach(H=>{var ae;if(this.isValidLookup(r))return;d=H;const X=[v];if((ae=this.i18nFormat)!=null&&ae.addLookupKeys)this.i18nFormat.addLookupKeys(X,v,H,B,l);else{let Q;w&&(Q=this.pluralResolver.getSuffix(H,l.count,l));const I=`${this.options.pluralSeparator}zero`,ce=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(l.ordinal&&Q.indexOf(ce)===0&&X.push(v+Q.replace(ce,this.options.pluralSeparator)),X.push(v+Q),j&&X.push(v+I)),E){const ye=`${v}${this.options.contextSeparator||"_"}${l.context}`;X.push(ye),w&&(l.ordinal&&Q.indexOf(ce)===0&&X.push(ye+Q.replace(ce,this.options.pluralSeparator)),X.push(ye+Q),j&&X.push(ye+I))}}let P;for(;P=X.pop();)this.isValidLookup(r)||(f=P,r=this.getResource(H,B,P,l))}))})}),{res:r,usedKey:u,exactUsedKey:f,usedLng:d,usedNS:h}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,l,r,u={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(a,l,r,u):this.resourceStore.getResource(a,l,r,u)}getUsedParamsDetails(a={}){const l=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=a.replace&&!se(a.replace);let u=r?a.replace:a;if(r&&typeof a.count<"u"&&(u.count=a.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!r){u={...u};for(const f of l)delete u[f]}return u}static hasDefaultValue(a){const l="defaultValue";for(const r in a)if(Object.prototype.hasOwnProperty.call(a,r)&&l===r.substring(0,l.length)&&a[r]!==void 0)return!0;return!1}}class sy{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nn.create("languageUtils")}getScriptPartFromCode(a){if(a=zs(a),!a||a.indexOf("-")<0)return null;const l=a.split("-");return l.length===2||(l.pop(),l[l.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(l.join("-"))}getLanguagePartFromCode(a){if(a=zs(a),!a||a.indexOf("-")<0)return a;const l=a.split("-");return this.formatLanguageCode(l[0])}formatLanguageCode(a){if(se(a)&&a.indexOf("-")>-1){let l;try{l=Intl.getCanonicalLocales(a)[0]}catch{}return l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l||(this.options.lowerCaseLng?a.toLowerCase():a)}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let l;return a.forEach(r=>{if(l)return;const u=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(u))&&(l=u)}),!l&&this.options.supportedLngs&&a.forEach(r=>{if(l)return;const u=this.getScriptPartFromCode(r);if(this.isSupportedCode(u))return l=u;const f=this.getLanguagePartFromCode(r);if(this.isSupportedCode(f))return l=f;l=this.options.supportedLngs.find(d=>{if(d===f)return d;if(!(d.indexOf("-")<0&&f.indexOf("-")<0)&&(d.indexOf("-")>0&&f.indexOf("-")<0&&d.substring(0,d.indexOf("-"))===f||d.indexOf(f)===0&&f.length>1))return d})}),l||(l=this.getFallbackCodes(this.options.fallbackLng)[0]),l}getFallbackCodes(a,l){if(!a)return[];if(typeof a=="function"&&(a=a(l)),se(a)&&(a=[a]),Array.isArray(a))return a;if(!l)return a.default||[];let r=a[l];return r||(r=a[this.getScriptPartFromCode(l)]),r||(r=a[this.formatLanguageCode(l)]),r||(r=a[this.getLanguagePartFromCode(l)]),r||(r=a.default),r||[]}toResolveHierarchy(a,l){const r=this.getFallbackCodes((l===!1?[]:l)||this.options.fallbackLng||[],a),u=[],f=d=>{d&&(this.isSupportedCode(d)?u.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return se(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(a))):se(a)&&f(this.formatLanguageCode(a)),r.forEach(d=>{u.indexOf(d)<0&&f(this.formatLanguageCode(d))}),u}}const ly={zero:0,one:1,two:2,few:3,many:4,other:5},ry={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class f5{constructor(a,l={}){this.languageUtils=a,this.options=l,this.logger=nn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(a,l={}){const r=zs(a==="dev"?"en":a),u=l.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:r,type:u});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let d;try{d=new Intl.PluralRules(r,{type:u})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),ry;if(!a.match(/-|_/))return ry;const y=this.languageUtils.getLanguagePartFromCode(a);d=this.getRule(y,l)}return this.pluralRulesCache[f]=d,d}needsPlural(a,l={}){let r=this.getRule(a,l);return r||(r=this.getRule("dev",l)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(a,l,r={}){return this.getSuffixes(a,r).map(u=>`${l}${u}`)}getSuffixes(a,l={}){let r=this.getRule(a,l);return r||(r=this.getRule("dev",l)),r?r.resolvedOptions().pluralCategories.sort((u,f)=>ly[u]-ly[f]).map(u=>`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${u}`):[]}getSuffix(a,l,r={}){const u=this.getRule(a,r);return u?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${u.select(l)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",l,r))}}const oy=(i,a,l,r=".",u=!0)=>{let f=n5(i,a,l);return!f&&u&&se(l)&&(f=Yc(i,l,r),f===void 0&&(f=Yc(a,l,r))),f},vc=i=>i.replace(/\$/g,"$$$$");class uy{constructor(a={}){var l;this.logger=nn.create("interpolator"),this.options=a,this.format=((l=a==null?void 0:a.interpolation)==null?void 0:l.format)||(r=>r),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});const{escape:l,escapeValue:r,useRawValueToEscape:u,prefix:f,prefixEscaped:d,suffix:h,suffixEscaped:y,formatSeparator:m,unescapeSuffix:v,unescapePrefix:b,nestingPrefix:w,nestingPrefixEscaped:j,nestingSuffix:E,nestingSuffixEscaped:V,nestingOptionsSeparator:B,maxReplaces:q,alwaysFormat:Y}=a.interpolation;this.escape=l!==void 0?l:i5,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=u!==void 0?u:!1,this.prefix=f?Sa(f):d||"{{",this.suffix=h?Sa(h):y||"}}",this.formatSeparator=m||",",this.unescapePrefix=v?"":b||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=w?Sa(w):j||Sa("$t("),this.nestingSuffix=E?Sa(E):V||Sa(")"),this.nestingOptionsSeparator=B||",",this.maxReplaces=q||1e3,this.alwaysFormat=Y!==void 0?Y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const a=(l,r)=>(l==null?void 0:l.source)===r?(l.lastIndex=0,l):new RegExp(r,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(a,l,r,u){var j;let f,d,h;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=E=>{if(E.indexOf(this.formatSeparator)<0){const Y=oy(l,y,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Y,void 0,r,{...u,...l,interpolationkey:E}):Y}const V=E.split(this.formatSeparator),B=V.shift().trim(),q=V.join(this.formatSeparator).trim();return this.format(oy(l,y,B,this.options.keySeparator,this.options.ignoreJSONStructure),q,r,{...u,...l,interpolationkey:B})};this.resetRegExp();const v=(u==null?void 0:u.missingInterpolationHandler)||this.options.missingInterpolationHandler,b=((j=u==null?void 0:u.interpolation)==null?void 0:j.skipOnVariables)!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:E=>vc(E)},{regex:this.regexp,safeValue:E=>this.escapeValue?vc(this.escape(E)):vc(E)}].forEach(E=>{for(h=0;f=E.regex.exec(a);){const V=f[1].trim();if(d=m(V),d===void 0)if(typeof v=="function"){const q=v(a,f,u);d=se(q)?q:""}else if(u&&Object.prototype.hasOwnProperty.call(u,V))d="";else if(b){d=f[0];continue}else this.logger.warn(`missed to pass in variable ${V} for interpolating ${a}`),d="";else!se(d)&&!this.useRawValueToEscape&&(d=Ig(d));const B=E.safeValue(d);if(a=a.replace(f[0],B),b?(E.regex.lastIndex+=d.length,E.regex.lastIndex-=f[0].length):E.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),a}nest(a,l,r={}){let u,f,d;const h=(y,m)=>{const v=this.nestingOptionsSeparator;if(y.indexOf(v)<0)return y;const b=y.split(new RegExp(`${Sa(v)}[ ]*{`));let w=`{${b[1]}`;y=b[0],w=this.interpolate(w,d);const j=w.match(/'/g),E=w.match(/"/g);(((j==null?void 0:j.length)??0)%2===0&&!E||((E==null?void 0:E.length)??0)%2!==0)&&(w=w.replace(/'/g,'"'));try{d=JSON.parse(w),m&&(d={...m,...d})}catch(V){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,V),`${y}${v}${w}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,y};for(;u=this.nestingRegexp.exec(a);){let y=[];d={...r},d=d.replace&&!se(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;const m=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(m!==-1&&(y=u[1].slice(m).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),u[1]=u[1].slice(0,m)),f=l(h.call(this,u[1].trim(),d),d),f&&u[0]===a&&!se(f))return f;se(f)||(f=Ig(f)),f||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${a}`),f=""),y.length&&(f=y.reduce((v,b)=>this.format(v,b,r.lng,{...r,interpolationkey:u[1].trim()}),f.trim())),a=a.replace(u[0],f),this.regexp.lastIndex=0}return a}}const d5=i=>{let a=i.toLowerCase().trim();const l={};if(i.indexOf("(")>-1){const r=i.split("(");a=r[0].toLowerCase().trim();const u=r[1].substring(0,r[1].length-1);a==="currency"&&u.indexOf(":")<0?l.currency||(l.currency=u.trim()):a==="relativetime"&&u.indexOf(":")<0?l.range||(l.range=u.trim()):u.split(";").forEach(d=>{if(d){const[h,...y]=d.split(":"),m=y.join(":").trim().replace(/^'+|'+$/g,""),v=h.trim();l[v]||(l[v]=m),m==="false"&&(l[v]=!1),m==="true"&&(l[v]=!0),isNaN(m)||(l[v]=parseInt(m,10))}})}return{formatName:a,formatOptions:l}},cy=i=>{const a={};return(l,r,u)=>{let f=u;u&&u.interpolationkey&&u.formatParams&&u.formatParams[u.interpolationkey]&&u[u.interpolationkey]&&(f={...f,[u.interpolationkey]:void 0});const d=r+JSON.stringify(f);let h=a[d];return h||(h=i(zs(r),u),a[d]=h),h(l)}},h5=i=>(a,l,r)=>i(zs(l),r)(a);class m5{constructor(a={}){this.logger=nn.create("formatter"),this.options=a,this.init(a)}init(a,l={interpolation:{}}){this.formatSeparator=l.interpolation.formatSeparator||",";const r=l.cacheInBuiltFormats?cy:h5;this.formats={number:r((u,f)=>{const d=new Intl.NumberFormat(u,{...f});return h=>d.format(h)}),currency:r((u,f)=>{const d=new Intl.NumberFormat(u,{...f,style:"currency"});return h=>d.format(h)}),datetime:r((u,f)=>{const d=new Intl.DateTimeFormat(u,{...f});return h=>d.format(h)}),relativetime:r((u,f)=>{const d=new Intl.RelativeTimeFormat(u,{...f});return h=>d.format(h,f.range||"day")}),list:r((u,f)=>{const d=new Intl.ListFormat(u,{...f});return h=>d.format(h)})}}add(a,l){this.formats[a.toLowerCase().trim()]=l}addCached(a,l){this.formats[a.toLowerCase().trim()]=cy(l)}format(a,l,r,u={}){const f=l.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(h=>h.indexOf(")")>-1)){const h=f.findIndex(y=>y.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,h)].join(this.formatSeparator)}return f.reduce((h,y)=>{var b;const{formatName:m,formatOptions:v}=d5(y);if(this.formats[m]){let w=h;try{const j=((b=u==null?void 0:u.formatParams)==null?void 0:b[u.interpolationkey])||{},E=j.locale||j.lng||u.locale||u.lng||r;w=this.formats[m](h,E,{...v,...u,...j})}catch(j){this.logger.warn(j)}return w}else this.logger.warn(`there was no format function for ${m}`);return h},a)}}const p5=(i,a)=>{i.pending[a]!==void 0&&(delete i.pending[a],i.pendingCount--)};class g5 extends Dr{constructor(a,l,r,u={}){var f,d;super(),this.backend=a,this.store=l,this.services=r,this.languageUtils=r.languageUtils,this.options=u,this.logger=nn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],(d=(f=this.backend)==null?void 0:f.init)==null||d.call(f,r,u.backend,u)}queueLoad(a,l,r,u){const f={},d={},h={},y={};return a.forEach(m=>{let v=!0;l.forEach(b=>{const w=`${m}|${b}`;!r.reload&&this.store.hasResourceBundle(m,b)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?d[w]===void 0&&(d[w]=!0):(this.state[w]=1,v=!1,d[w]===void 0&&(d[w]=!0),f[w]===void 0&&(f[w]=!0),y[b]===void 0&&(y[b]=!0)))}),v||(h[m]=!0)}),(Object.keys(f).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(f),pending:Object.keys(d),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(y)}}loaded(a,l,r){const u=a.split("|"),f=u[0],d=u[1];l&&this.emit("failedLoading",f,d,l),!l&&r&&this.store.addResourceBundle(f,d,r,void 0,void 0,{skipCopy:!0}),this.state[a]=l?-1:2,l&&r&&(this.state[a]=0);const h={};this.queue.forEach(y=>{t5(y.loaded,[f],d),p5(y,a),l&&y.errors.push(l),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(m=>{h[m]||(h[m]={});const v=y.loaded[m];v.length&&v.forEach(b=>{h[m][b]===void 0&&(h[m][b]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(y=>!y.done)}read(a,l,r,u=0,f=this.retryTimeout,d){if(!a.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:l,fcName:r,tried:u,wait:f,callback:d});return}this.readingCalls++;const h=(m,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const b=this.waitingReads.shift();this.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}if(m&&v&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,a,l,r,u+1,f*2,d)},f);return}d(m,v)},y=this.backend[r].bind(this.backend);if(y.length===2){try{const m=y(a,l);m&&typeof m.then=="function"?m.then(v=>h(null,v)).catch(h):h(null,m)}catch(m){h(m)}return}return y(a,l,h)}prepareLoading(a,l,r={},u){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();se(a)&&(a=this.languageUtils.toResolveHierarchy(a)),se(l)&&(l=[l]);const f=this.queueLoad(a,l,r,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(d=>{this.loadOne(d)})}load(a,l,r){this.prepareLoading(a,l,{},r)}reload(a,l,r){this.prepareLoading(a,l,{reload:!0},r)}loadOne(a,l=""){const r=a.split("|"),u=r[0],f=r[1];this.read(u,f,"read",void 0,void 0,(d,h)=>{d&&this.logger.warn(`${l}loading namespace ${f} for language ${u} failed`,d),!d&&h&&this.logger.log(`${l}loaded namespace ${f} for language ${u}`,h),this.loaded(a,d,h)})}saveMissing(a,l,r,u,f,d={},h=()=>{}){var y,m,v,b,w;if((m=(y=this.services)==null?void 0:y.utils)!=null&&m.hasLoadedNamespace&&!((b=(v=this.services)==null?void 0:v.utils)!=null&&b.hasLoadedNamespace(l))){this.logger.warn(`did not save key "${r}" as the namespace "${l}" 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(!(r==null||r==="")){if((w=this.backend)!=null&&w.create){const j={...d,isUpdate:f},E=this.backend.create.bind(this.backend);if(E.length<6)try{let V;E.length===5?V=E(a,l,r,u,j):V=E(a,l,r,u),V&&typeof V.then=="function"?V.then(B=>h(null,B)).catch(h):h(null,V)}catch(V){h(V)}else E(a,l,r,u,h,j)}!a||!a[0]||this.store.addResource(a[0],l,r,u)}}}const xc=()=>({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:i=>{let a={};if(typeof i[1]=="object"&&(a=i[1]),se(i[1])&&(a.defaultValue=i[1]),se(i[2])&&(a.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const l=i[3]||i[2];Object.keys(l).forEach(r=>{a[r]=l[r]})}return a},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),fy=i=>{var a,l;return se(i.ns)&&(i.ns=[i.ns]),se(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),se(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((l=(a=i.supportedLngs)==null?void 0:a.indexOf)==null?void 0:l.call(a,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},sr=()=>{},y5=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(l=>{typeof i[l]=="function"&&(i[l]=i[l].bind(i))})},mv="__i18next_supportNoticeShown",v5=()=>typeof globalThis<"u"&&!!globalThis[mv],x5=()=>{typeof globalThis<"u"&&(globalThis[mv]=!0)},b5=i=>{var a,l,r,u,f,d,h,y,m,v,b,w,j;return!!(((r=(l=(a=i==null?void 0:i.modules)==null?void 0:a.backend)==null?void 0:l.name)==null?void 0:r.indexOf("Locize"))>0||((h=(d=(f=(u=i==null?void 0:i.modules)==null?void 0:u.backend)==null?void 0:f.constructor)==null?void 0:d.name)==null?void 0:h.indexOf("Locize"))>0||(m=(y=i==null?void 0:i.options)==null?void 0:y.backend)!=null&&m.backends&&i.options.backend.backends.some(E=>{var V,B,q;return((V=E==null?void 0:E.name)==null?void 0:V.indexOf("Locize"))>0||((q=(B=E==null?void 0:E.constructor)==null?void 0:B.name)==null?void 0:q.indexOf("Locize"))>0})||(b=(v=i==null?void 0:i.options)==null?void 0:v.backend)!=null&&b.projectId||(j=(w=i==null?void 0:i.options)==null?void 0:w.backend)!=null&&j.backendOptions&&i.options.backend.backendOptions.some(E=>E==null?void 0:E.projectId))};class Ns extends Dr{constructor(a={},l){if(super(),this.options=fy(a),this.services={},this.logger=nn,this.modules={external:[]},y5(this),l&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,l),this;setTimeout(()=>{this.init(a,l)},0)}}init(a={},l){this.isInitializing=!0,typeof a=="function"&&(l=a,a={}),a.defaultNS==null&&a.ns&&(se(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const r=xc();this.options={...r,...this.options,...fy(a)},this.options.interpolation={...r.interpolation,...this.options.interpolation},a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!b5(this)&&!v5()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),x5());const u=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?nn.init(u(this.modules.logger),this.options):nn.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=m5;const v=new sy(this.options);this.store=new ay(this.options.resources,this.options);const b=this.services;b.logger=nn,b.resourceStore=this.store,b.languageUtils=v,b.pluralResolver=new f5(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.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"),m&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(b.formatter=u(m),b.formatter.init&&b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new uy(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new g5(u(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",(j,...E)=>{this.emit(j,...E)}),this.modules.languageDetector&&(b.languageDetector=u(this.modules.languageDetector),b.languageDetector.init&&b.languageDetector.init(b,this.options.detection,this.options)),this.modules.i18nFormat&&(b.i18nFormat=u(this.modules.i18nFormat),b.i18nFormat.init&&b.i18nFormat.init(this)),this.translator=new Tr(this.services,this.options),this.translator.on("*",(j,...E)=>{this.emit(j,...E)}),this.modules.external.forEach(j=>{j.init&&j.init(this)})}if(this.format=this.options.interpolation.format,l||(l=sr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[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(m=>{this[m]=(...v)=>this.store[m](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...v)=>(this.store[m](...v),this)});const h=bs(),y=()=>{const m=(v,b)=>{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),h.resolve(b),l(v,b)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),h}loadResources(a,l=sr){var f,d;let r=l;const u=se(a)?a:this.language;if(typeof a=="function"&&(r=a),!this.options.resources||this.options.partialBundledLanguages){if((u==null?void 0:u.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const h=[],y=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(b=>{b!=="cimode"&&h.indexOf(b)<0&&h.push(b)})};u?y(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>y(v)),(d=(f=this.options.preload)==null?void 0:f.forEach)==null||d.call(f,m=>y(m)),this.services.backendConnector.load(h,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(m)})}else r(null)}reloadResources(a,l,r){const u=bs();return typeof a=="function"&&(r=a,a=void 0),typeof l=="function"&&(r=l,l=void 0),a||(a=this.languages),l||(l=this.options.ns),r||(r=sr),this.services.backendConnector.reload(a,l,f=>{u.resolve(),r(f)}),u}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&dv.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1)){for(let l=0;l<this.languages.length;l++){const r=this.languages[l];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(a)<0&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,l){this.isLanguageChangingTo=a;const r=bs();this.emit("languageChanging",a);const u=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},f=(h,y)=>{y?this.isLanguageChangingTo===a&&(u(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,r.resolve((...m)=>this.t(...m)),l&&l(h,(...m)=>this.t(...m))},d=h=>{var v,b;!a&&!h&&this.services.languageDetector&&(h=[]);const y=se(h)?h:h&&h[0],m=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(se(h)?[h]:h);m&&(this.language||u(m),this.translator.language||this.translator.changeLanguage(m),(b=(v=this.services.languageDetector)==null?void 0:v.cacheUserLanguage)==null||b.call(v,m)),this.loadResources(m,w=>{f(w,m)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(a),r}getFixedT(a,l,r){const u=(f,d,...h)=>{let y;typeof d!="object"?y=this.options.overloadTranslationOptionHandler([f,d].concat(h)):y={...d},y.lng=y.lng||u.lng,y.lngs=y.lngs||u.lngs,y.ns=y.ns||u.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||r||u.keyPrefix);const m=this.options.keySeparator||".";let v;return y.keyPrefix&&Array.isArray(f)?v=f.map(b=>(typeof b=="function"&&(b=Kc(b,{...this.options,...d})),`${y.keyPrefix}${m}${b}`)):(typeof f=="function"&&(f=Kc(f,{...this.options,...d})),v=y.keyPrefix?`${y.keyPrefix}${m}${f}`:f),this.t(v,y)};return se(a)?u.lng=a:u.lngs=a,u.ns=l,u.keyPrefix=r,u}t(...a){var l;return(l=this.translator)==null?void 0:l.translate(...a)}exists(...a){var l;return(l=this.translator)==null?void 0:l.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,l={}){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 r=l.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const d=(h,y)=>{const m=this.services.backendConnector.state[`${h}|${y}`];return m===-1||m===0||m===2};if(l.precheck){const h=l.precheck(this,d);if(h!==void 0)return h}return!!(this.hasResourceBundle(r,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(r,a)&&(!u||d(f,a)))}loadNamespaces(a,l){const r=bs();return this.options.ns?(se(a)&&(a=[a]),a.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{r.resolve(),l&&l(u)}),r):(l&&l(),Promise.resolve())}loadLanguages(a,l){const r=bs();se(a)&&(a=[a]);const u=this.options.preload||[],f=a.filter(d=>u.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return f.length?(this.options.preload=u.concat(f),this.loadResources(d=>{r.resolve(),l&&l(d)}),r):(l&&l(),Promise.resolve())}dir(a){var u,f;if(a||(a=this.resolvedLanguage||(((u=this.languages)==null?void 0:u.length)>0?this.languages[0]:this.language)),!a)return"rtl";try{const d=new Intl.Locale(a);if(d&&d.getTextInfo){const h=d.getTextInfo();if(h&&h.direction)return h.direction}}catch{}const l=["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"],r=((f=this.services)==null?void 0:f.languageUtils)||new sy(xc());return a.toLowerCase().indexOf("-latn")>1?"ltr":l.indexOf(r.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},l){const r=new Ns(a,l);return r.createInstance=Ns.createInstance,r}cloneInstance(a={},l=sr){const r=a.forkResourceStore;r&&delete a.forkResourceStore;const u={...this.options,...a,isClone:!0},f=new Ns(u);if((a.debug!==void 0||a.prefix!==void 0)&&(f.logger=f.logger.clone(a)),["store","services","language"].forEach(h=>{f[h]=this[h]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},r){const h=Object.keys(this.store.data).reduce((y,m)=>(y[m]={...this.store.data[m]},y[m]=Object.keys(y[m]).reduce((v,b)=>(v[b]={...y[m][b]},v),y[m]),y),{});f.store=new ay(h,u),f.services.resourceStore=f.store}if(a.interpolation){const y={...xc().interpolation,...this.options.interpolation,...a.interpolation},m={...u,interpolation:y};f.services.interpolator=new uy(m)}return f.translator=new Tr(f.services,u),f.translator.on("*",(h,...y)=>{f.emit(h,...y)}),f.init(u,l),f.translator.options=u,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ke=Ns.createInstance();Ke.createInstance;Ke.dir;Ke.init;Ke.loadResources;Ke.reloadResources;Ke.use;Ke.changeLanguage;Ke.getFixedT;Ke.t;Ke.exists;Ke.setDefaultNamespace;Ke.hasLoadedNamespace;Ke.loadNamespaces;Ke.loadLanguages;const{slice:S5,forEach:w5}=[];function T5(i){return w5.call(S5.call(arguments,1),a=>{if(a)for(const l in a)i[l]===void 0&&(i[l]=a[l])}),i}function A5(i){return typeof i!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(l=>l.test(i))}const dy=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,E5=function(i,a){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},u=encodeURIComponent(a);let f=`${i}=${u}`;if(r.maxAge>0){const d=r.maxAge-0;if(Number.isNaN(d))throw new Error("maxAge should be a Number");f+=`; Max-Age=${Math.floor(d)}`}if(r.domain){if(!dy.test(r.domain))throw new TypeError("option domain is invalid");f+=`; Domain=${r.domain}`}if(r.path){if(!dy.test(r.path))throw new TypeError("option path is invalid");f+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");f+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(f+="; HttpOnly"),r.secure&&(f+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"strict":f+="; SameSite=Strict";break;case"none":f+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(f+="; Partitioned"),f},hy={create(i,a,l,r){let u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};l&&(u.expires=new Date,u.expires.setTime(u.expires.getTime()+l*60*1e3)),r&&(u.domain=r),document.cookie=E5(i,a,u)},read(i){const a=`${i}=`,l=document.cookie.split(";");for(let r=0;r<l.length;r++){let u=l[r];for(;u.charAt(0)===" ";)u=u.substring(1,u.length);if(u.indexOf(a)===0)return u.substring(a.length,u.length)}return null},remove(i,a){this.create(i,"",-1,a)}};var j5={name:"cookie",lookup(i){let{lookupCookie:a}=i;if(a&&typeof document<"u")return hy.read(a)||void 0},cacheUserLanguage(i,a){let{lookupCookie:l,cookieMinutes:r,cookieDomain:u,cookieOptions:f}=a;l&&typeof document<"u"&&hy.create(l,i,r,u,f)}},N5={name:"querystring",lookup(i){var r;let{lookupQuerystring:a}=i,l;if(typeof window<"u"){let{search:u}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(u=window.location.hash.substring(window.location.hash.indexOf("?")));const d=u.substring(1).split("&");for(let h=0;h<d.length;h++){const y=d[h].indexOf("=");y>0&&d[h].substring(0,y)===a&&(l=d[h].substring(y+1))}}return l}},D5={name:"hash",lookup(i){var u;let{lookupHash:a,lookupFromHashIndex:l}=i,r;if(typeof window<"u"){const{hash:f}=window.location;if(f&&f.length>2){const d=f.substring(1);if(a){const h=d.split("&");for(let y=0;y<h.length;y++){const m=h[y].indexOf("=");m>0&&h[y].substring(0,m)===a&&(r=h[y].substring(m+1))}}if(r)return r;if(!r&&l>-1){const h=f.match(/\/([a-zA-Z-]*)/g);return Array.isArray(h)?(u=h[typeof l=="number"?l:0])==null?void 0:u.replace("/",""):void 0}}}return r}};let ci=null;const my=()=>{if(ci!==null)return ci;try{if(ci=typeof window<"u"&&window.localStorage!==null,!ci)return!1;const i="i18next.translate.boo";window.localStorage.setItem(i,"foo"),window.localStorage.removeItem(i)}catch{ci=!1}return ci};var M5={name:"localStorage",lookup(i){let{lookupLocalStorage:a}=i;if(a&&my())return window.localStorage.getItem(a)||void 0},cacheUserLanguage(i,a){let{lookupLocalStorage:l}=a;l&&my()&&window.localStorage.setItem(l,i)}};let fi=null;const py=()=>{if(fi!==null)return fi;try{if(fi=typeof window<"u"&&window.sessionStorage!==null,!fi)return!1;const i="i18next.translate.boo";window.sessionStorage.setItem(i,"foo"),window.sessionStorage.removeItem(i)}catch{fi=!1}return fi};var C5={name:"sessionStorage",lookup(i){let{lookupSessionStorage:a}=i;if(a&&py())return window.sessionStorage.getItem(a)||void 0},cacheUserLanguage(i,a){let{lookupSessionStorage:l}=a;l&&py()&&window.sessionStorage.setItem(l,i)}},O5={name:"navigator",lookup(i){const a=[];if(typeof navigator<"u"){const{languages:l,userLanguage:r,language:u}=navigator;if(l)for(let f=0;f<l.length;f++)a.push(l[f]);r&&a.push(r),u&&a.push(u)}return a.length>0?a:void 0}},R5={name:"htmlTag",lookup(i){let{htmlTag:a}=i,l;const r=a||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(l=r.getAttribute("lang")),l}},z5={name:"path",lookup(i){var u;let{lookupFromPathIndex:a}=i;if(typeof window>"u")return;const l=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?(u=l[typeof a=="number"?a:0])==null?void 0:u.replace("/",""):void 0}},L5={name:"subdomain",lookup(i){var u,f;let{lookupFromSubdomainIndex:a}=i;const l=typeof a=="number"?a+1:1,r=typeof window<"u"&&((f=(u=window.location)==null?void 0:u.hostname)==null?void 0:f.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[l]}};let pv=!1;try{document.cookie,pv=!0}catch{}const gv=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];pv||gv.splice(1,1);const _5=()=>({order:gv,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:i=>i});class yv{constructor(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(a,l)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=a,this.options=T5(l,this.options||{},_5()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=u=>u.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(j5),this.addDetector(N5),this.addDetector(M5),this.addDetector(C5),this.addDetector(O5),this.addDetector(R5),this.addDetector(z5),this.addDetector(L5),this.addDetector(D5)}addDetector(a){return this.detectors[a.name]=a,this}detect(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,l=[];return a.forEach(r=>{if(this.detectors[r]){let u=this.detectors[r].lookup(this.options);u&&typeof u=="string"&&(u=[u]),u&&(l=l.concat(u))}}),l=l.filter(r=>r!=null&&!A5(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?l:l.length>0?l[0]:null}cacheUserLanguage(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;l&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(a)>-1||l.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(a,this.options)}))}}yv.type="languageDetector";const V5={free:"Free",pro:"Pro",api:"API",enterprise:"Enterprise",reserveAccess:"Reserve Your Early Access"},k5={noiseWord:"Noise",signalWord:"Signal",valueProps:"AI-powered equity research, geopolitical analysis, and macro intelligence — correlated in real time.",reserveEarlyAccess:"Reserve Your Early Access",launchingDate:"Launching March 2026",tryFreeDashboard:"Try the free dashboard",emailPlaceholder:"Enter your email",emailAriaLabel:"Email address for waitlist"},U5={asFeaturedIn:"As featured in"},B5={proTitle:"World Monitor Pro",proDesc:"For investors, analysts, and professionals who need stock monitoring, geopolitical analysis, and daily AI briefings.",proF1:"Equity research — global stock analysis, financials, analyst targets, valuation metrics",proF2:"Geopolitical analysis — Grand Chessboard framework, Prisoners of Geography models",proF3:"Economy analytics — GDP, inflation, interest rates, growth cycles",proF4:"AI morning briefs & flash alerts delivered to Slack, Telegram, WhatsApp, Email",proF5:"Central bank & monetary policy tracking",proF6:"Global risk monitoring & scenario analysis",proF7:"Near-real-time data (<60s refresh), 22 services, 1 key",proF8:"Saved watchlists, custom views & configurable alert rules",proF9:"Premium map layers, longer history & desktop app workflows",proCta:"Reserve Your Early Access",entTitle:"World Monitor Enterprise",entDesc:"For teams that need shared monitoring, API access, deployment options, TV apps, and direct support.",entF1:"Everything in Pro, plus:",entF2:"Live-edge + satellite imagery & SAR",entF3:"AI agents with investor personas & MCP",entF4:"50,000+ infrastructure assets mapped",entF5:"100+ data connectors (Splunk, Snowflake, Sentinel...)",entF6:"REST API + webhooks + bulk export",entF7:"Team workspaces with SSO/MFA/RBAC",entF8:"White-label & embeddable panels",entF9:"Android TV app for SOC walls & trading floors",entF10:"Cloud, on-prem, or air-gapped deployment",entF11:"Dedicated onboarding & support",entCta:"Talk to Sales"},H5={title:"Why upgrade",noiseTitle:"Less noise",noiseDesc:"Filter events, feeds, layers, and live sources around the places and signals you care about.",fasterTitle:"Market intelligence",fasterDesc:"Equity research, analyst targets, and macro analytics — correlated with geopolitical signals that move markets.",controlTitle:"More control",controlDesc:"Save watchlists, custom views, and alert setups for the events you follow most.",deeperTitle:"Deeper analysis",deeperDesc:"Grand Chessboard frameworks, Prisoners of Geography models, central bank tracking, and scenario analysis."},q5={windowTitle:"worldmonitor.app — Live Dashboard",openFullScreen:"Open full screen",tryLiveDashboard:"Try the Live Dashboard",iframeTitle:"World Monitor — Live Intelligence Dashboard",description:"3D WebGL globe · 45+ interactive map layers · Real-time market, macro, geopolitical, energy, and infrastructure data"},G5={uniqueVisitors:"Unique visitors",peakDailyUsers:"Peak daily users",countriesReached:"Countries reached",liveDataSources:"Live data sources",quote:"Markets, monetary policy, geopolitics, energy — everything moves together now. I needed something that showed me how these forces connect in real time, not just the headlines but the underlying drivers.",ceo:"CEO of",asToldTo:"as told to"},Y5={title:"Built for people who need signal fast",investorsTitle:"Investors & portfolio managers",investorsDesc:"Track global equities, analyst targets, valuation metrics, and macro indicators alongside geopolitical risk signals.",tradersTitle:"Energy & commodities traders",tradersDesc:"Track vessel movements, cargo inference, supply chain disruptions, and market-moving geopolitical signals.",researchersTitle:"Researchers & analysts",researchersDesc:"Equity research, economy analytics, and geopolitical frameworks for deeper analysis and reporting.",journalistsTitle:"Journalists & media",journalistsDesc:"Follow fast-moving developments across markets and regions without stitching sources together manually.",govTitle:"Government & institutions",govDesc:"Macro policy tracking, central bank monitoring, and situational awareness across geopolitical and infrastructure signals.",teamsTitle:"Teams & organizations",teamsDesc:"Move from individual use to shared workflows, API access, TV apps, and managed deployments."},K5={title:"What World Monitor Tracks",subtitle:"22 service domains ingested simultaneously. Markets, macro, geopolitics, energy, infrastructure — everything normalized and rendered on a WebGL globe.",markets:"Financial Markets & Equities",marketsDesc:"Global stock analysis, commodities, crypto, ETF flows, analyst targets, and FRED macro data",economy:"Economy & Central Banks",economyDesc:"GDP, inflation, interest rates, growth cycles, and monetary policy tracking across major economies",geopolitical:"Geopolitical Analysis",geopoliticalDesc:"ACLED & UCDP events with escalation scoring, risk frameworks, and trend analysis",maritime:"Maritime & Trade",maritimeDesc:"Ship movements, vessel detection, port activity, and cargo inference",aviation:"Aviation Tracking",aviationDesc:"ADS-B transponder tracking of global flight patterns",infra:"Critical Infrastructure",infraDesc:"Nuclear sites, power grids, pipelines, refineries — 50K+ mapped assets",fire:"Satellite Fire Detection",fireDesc:"NASA FIRMS near-real-time fire and hotspot data",cables:"Submarine Cables",cablesDesc:"Undersea cable routes and landing stations",internet:"Internet & GPS",internetDesc:"Outage detection, BGP anomalies, GPS jamming zones",cyber:"Cyber Threats",cyberDesc:"Ransomware feeds, BGP hijacks, DDoS detection",gdelt:"GDELT & News",gdeltDesc:"435+ RSS feeds, AI-scored GDELT events, live broadcasts",seismology:"Seismology & Natural",seismologyDesc:"USGS earthquakes, volcanic activity, severe weather"},X5={free:"Free",freeTagline:"See everything",freeDesc:"The open-source dashboard",freeF1:"5-15 min refresh",freeF2:"435+ feeds, 45 map layers",freeF3:"BYOK for AI",freeF4:"Free forever",openDashboard:"Open Dashboard",pro:"Pro",proTagline:"Markets, macro & geopolitics",proDesc:"Your AI analyst",proF1:"Equity research & stock analysis",proF2:"+ daily briefs, economy analytics",proF3:"AI included, 1 key",proF4:"Early access pricing",enterprise:"Enterprise",enterpriseTagline:"Act before anyone else",enterpriseDesc:"The intelligence platform",entF1:"Live-edge + satellite imagery",entF2:"+ AI agents, 50K+ infra, SAR",entF3:"Custom AI, investor personas",entF4:"Contact us",contactSales:"Contact Sales"},P5={proTier:"PRO TIER",title:"Your AI Analyst That Never Sleeps",subtitle:"The free dashboard shows you the world. Pro tells you what it means — stocks, macro trends, geopolitical risk, and the connections between them.",equityResearch:"Equity Research",equityResearchDesc:"Global stock analysis with financials visualization, analyst price targets, and valuation metrics. Track what moves markets.",geopoliticalAnalysis:"Geopolitical Analysis",geopoliticalAnalysisDesc:"Grand Chessboard strategic framework, Prisoners of Geography models, and central bank & monetary policy tracking.",economyAnalytics:"Economy Analytics",economyAnalyticsDesc:"GDP, inflation, interest rates, and growth cycles. Macro data correlated with market signals and geopolitical events.",riskMonitoring:"Risk Monitoring & Scenarios",riskMonitoringDesc:"Global risk scoring, scenario analysis, and geopolitical risk assessment. Convergence detection across market and political signals.",orbitalSurveillance:"Orbital Surveillance Analysis",orbitalSurveillanceDesc:"Overhead pass predictions, revisit frequency analysis, and imaging window alerts. Know when intelligence satellites are watching your areas of interest.",morningBriefs:"Daily Briefs & Flash Alerts",morningBriefsDesc:"AI-synthesized overnight developments ranked by your focus areas. Market-moving events and geopolitical shifts pushed in real-time.",oneKey:"22 Services, 1 Key",oneKeyDesc:"Finnhub, FRED, ACLED, UCDP, NASA FIRMS, AISStream, OpenSky, and more — all active, no separate registrations.",deliveryLabel:"Choose how intelligence finds you"},F5={morningBrief:"Morning Brief",markets:"Markets",marketsText:"S&P 500 futures -1.2% pre-market. Fed Chair testimony at 10am EST — rate-sensitive sectors under pressure. Analyst consensus shifting on Q2 earnings.",elevated:"Macro",elevatedText:"ECB holds rates at 3.75%. Euro area GDP revised up to 1.1%. Central bank divergence widening — USD/EUR at 3-month high.",watch:"Geopolitical",watchText:"Brent +2.3% on Hormuz AIS anomaly. 4 dark ships in 6h. Commodity supply chain risk elevated — energy sector correlations spiking."},Q5={apiTier:"API TIER",title:"Programmatic Intelligence",subtitle:"For developers, analysts, and teams building on World Monitor data. Separate from Pro — use both or either.",restApi:"REST API across all 22 service domains",authenticated:"Authenticated per-key, rate-limited per tier",structured:"Structured JSON with cache headers and OpenAPI 3.1 docs",starter:"Starter",starterReqs:"1,000 req/day",starterWebhooks:"5 webhook rules",business:"Business",businessReqs:"50,000 req/day",businessWebhooks:"Unlimited webhooks + SLA",feedData:"Feed data into your dashboards, automate alerting via Zapier/n8n/Make, build custom scoring models on CII/risk data."},Z5={enterpriseTier:"ENTERPRISE TIER",title:"Intelligence Infrastructure",subtitle:"For governments, institutions, trading desks, and organizations that need the full platform with maximum security, AI agents, TV apps, and data depth.",security:"Government-Grade Security",securityDesc:"Air-gapped deployment, on-premises Docker, dedicated cloud tenant, SOC 2 Type II path, SSO/MFA, and full audit trail.",aiAgents:"AI Agents & MCP",aiAgentsDesc:"Autonomous intelligence agents with investor personas. Connect World Monitor as a tool to Claude, GPT, or custom LLMs via MCP.",dataLayers:"Expanded Data Layers",dataLayersDesc:"Tens of thousands of infrastructure assets mapped globally. Satellite imagery integration with change detection and SAR.",connectors:"100+ Data Connectors",connectorsDesc:"PostgreSQL, Snowflake, Splunk, Sentinel, Jira, Slack, Teams, and more. Export to PDF, PowerPoint, CSV, GeoJSON.",whiteLabel:"White-Label, TV & Embeddable",whiteLabelDesc:"Your brand, your domain, your desktop app. Android TV app for SOC walls and trading floors. Embeddable iframe panels.",financial:"Financial Intelligence",financialDesc:"Earnings calendar, energy grid data, enhanced commodity tracking with cargo inference, sanctions screening with AIS correlation.",commodity:"Commodity Trading",commodityDesc:"Vessel tracking + cargo inference + supply chain graph. Know before the market moves.",government:"Government & Institutions",governmentDesc:"Air-gapped, AI agents, full situational awareness, MCP. No data leaves your network.",risk:"Risk Consultancies",riskDesc:"Scenario simulation, investor personas, branded PDF/PowerPoint reports on demand.",soc:"SOCs & CERT",socDesc:"Cyber threat layer, SIEM integration, BGP anomaly monitoring, ransomware feeds.",talkToSales:"Talk to Sales",contactFormTitle:"Talk to our team",contactFormSubtitle:"Tell us about your organization and we'll get back to you within one business day.",namePlaceholder:"Your name",emailPlaceholder:"Work email",orgPlaceholder:"Company *",phonePlaceholder:"Phone number *",messagePlaceholder:"What are you looking for?",workEmailRequired:"Please use your work email address",submitContact:"Send Message",contactSending:"Sending...",contactSent:"Message sent. We'll be in touch.",contactFailed:"Failed to send. Please email enterprise@worldmonitor.app"},J5={title:"Compare Tiers",feature:"Feature",freeHeader:"Free ($0)",proHeader:"Pro (Early Access)",apiHeader:"API (Coming Soon)",entHeader:"Enterprise (Contact)",dataRefresh:"Data refresh",dashboard:"Dashboard",ai:"AI",briefsAlerts:"Briefs & alerts",delivery:"Delivery",apiRow:"API",infraLayers:"Infrastructure layers",satellite:"Orbital Surveillance",connectorsRow:"Connectors",deployment:"Deployment",securityRow:"Security",f5_15min:"5-15 min",fLt60s:"<60 seconds",fPerRequest:"Per-request",fLiveEdge:"Live-edge",f50panels:"50+ panels",fWhiteLabel:"White-label",fBYOK:"BYOK",fIncluded:"Included",fAgentsPersonas:"Agents + personas",fDailyFlash:"Daily + flash",fTeamDist:"Team distribution",fSlackTgWa:"Slack/TG/WA/Email",fWebhook:"Webhook",fSiemMcp:"+ SIEM/MCP",fRestWebhook:"REST + webhook",fMcpBulk:"+ MCP + bulk",f45:"45",fTensOfThousands:"+ tens of thousands",fLiveTracking:"Live tracking",fPassAlerts:"Pass alerts + analysis",fImagerySar:"Imagery + SAR",f100plus:"100+",fCloud:"Cloud",fCloudOnPrem:"Cloud/on-prem/air-gap",fStandard:"Standard",fKeyAuth:"Key auth",fSsoMfa:"SSO/MFA/RBAC/audit",noteBelow:"The core platform remains free. Paid plans unlock equity research, macro analytics, AI briefings, and organizational use."},$5={title:"Frequently Asked Questions",q1:"Is World Monitor still free?",a1:"Yes. The core platform remains free. Pro adds equity research, macro analytics, and AI briefings. Enterprise adds team deployments and TV apps.",q2:"Why pay for Pro?",a2:"Pro is for investors, analysts, and professionals who want stock monitoring, geopolitical analysis, economy analytics, and AI-powered daily briefings — all under one key.",q3:"Who is Enterprise for?",a3:"Enterprise is for teams that need shared use, APIs, integrations, deployment options, and direct support.",q4:"Can I start with Pro and upgrade later?",a4:"Yes. Pro works for serious individuals. Enterprise is there when team and deployment needs grow.",q5:"Is this only for conflict monitoring?",a5:"No. World Monitor is primarily a global intelligence platform covering stock markets, macroeconomics, geopolitical analysis, energy, infrastructure, and more. Conflict tracking is one of many capabilities — not the focus.",q6:"Why keep the core platform free?",a6:"Because public access matters. Paid plans fund deeper workflows for serious users and organizations.",q7:"Can I still use my own API keys?",a7:"Yes. Bring-your-own-keys always works. Pro simply means you don't have to register for 20+ separate services.",q8:"What's MCP?",a8:"Model Context Protocol lets AI agents (Claude, GPT, or custom LLMs) use World Monitor as a tool — querying all 22 services, reading map state, and triggering analysis. Enterprise only."},W5={title:"Start with Pro. Scale to Enterprise.",subtitle:"Keep using World Monitor for free, or upgrade for equity research, macro analytics, and AI briefings. If your organization needs team access, TV apps, or API support, talk to us.",getPro:"Reserve Your Early Access",talkToSales:"Talk to Sales"},I5={beFirstInLine:"Be first in line.",lookingForEnterprise:"Looking for Enterprise?",contactUs:"Contact us",wiredArticle:"WIRED Article"},e3={submitting:"Submitting...",joinWaitlist:"Reserve Your Early Access",tooManyRequests:"Too many requests",failedTryAgain:"Failed — try again"},t3={alreadyOnList:"You're already on the list.",shareHint:"Share your link to move up the line. Each friend who joins bumps you closer to the front.",copied:"Copied!",shareOnX:"Share on X",linkedin:"LinkedIn",whatsapp:"WhatsApp",telegram:"Telegram",shareText:"I just joined the World Monitor Pro waitlist — stock monitoring, geopolitical analysis, and AI daily briefings in one platform. Join me:",joinWaitlistShare:"Join the World Monitor Pro waitlist:",youreIn:"You're in!",invitedBanner:"You've been invited — join the waitlist"},vv={nav:V5,hero:k5,wired:U5,twoPath:B5,whyUpgrade:H5,livePreview:q5,socialProof:G5,audience:Y5,dataCoverage:K5,tiers:X5,proShowcase:P5,slackMock:F5,apiSection:Q5,enterpriseShowcase:Z5,pricingTable:J5,faq:$5,finalCta:W5,footer:I5,form:e3,referral:t3},xv=["en","ar","bg","cs","de","el","es","fr","it","ja","ko","nl","pl","pt","ro","ru","sv","th","tr","vi","zh"],n3=new Set(xv),gy=new Set(["en"]),a3=new Set(["ar"]),i3=Object.assign({"./locales/ar.json":()=>Ze(()=>import("./ar-BHa0nEOe.js"),[]).then(i=>i.default),"./locales/bg.json":()=>Ze(()=>import("./bg-Ci69To5a.js"),[]).then(i=>i.default),"./locales/cs.json":()=>Ze(()=>import("./cs-CqKhwIlR.js"),[]).then(i=>i.default),"./locales/de.json":()=>Ze(()=>import("./de-B71p-f-t.js"),[]).then(i=>i.default),"./locales/el.json":()=>Ze(()=>import("./el-DJwjBufy.js"),[]).then(i=>i.default),"./locales/es.json":()=>Ze(()=>import("./es-aR_qLKIk.js"),[]).then(i=>i.default),"./locales/fr.json":()=>Ze(()=>import("./fr-BrtwTv_R.js"),[]).then(i=>i.default),"./locales/it.json":()=>Ze(()=>import("./it-DHbGtQXZ.js"),[]).then(i=>i.default),"./locales/ja.json":()=>Ze(()=>import("./ja-D8-35S3Y.js"),[]).then(i=>i.default),"./locales/ko.json":()=>Ze(()=>import("./ko-otMG-p7A.js"),[]).then(i=>i.default),"./locales/nl.json":()=>Ze(()=>import("./nl-B3DRC8p4.js"),[]).then(i=>i.default),"./locales/pl.json":()=>Ze(()=>import("./pl-DqoCbf3Z.js"),[]).then(i=>i.default),"./locales/pt.json":()=>Ze(()=>import("./pt-CqDblfWm.js"),[]).then(i=>i.default),"./locales/ro.json":()=>Ze(()=>import("./ro-DaIMP80d.js"),[]).then(i=>i.default),"./locales/ru.json":()=>Ze(()=>import("./ru-DN0TfVz-.js"),[]).then(i=>i.default),"./locales/sv.json":()=>Ze(()=>import("./sv-B8YGwHj7.js"),[]).then(i=>i.default),"./locales/th.json":()=>Ze(()=>import("./th-Dx5iTAoX.js"),[]).then(i=>i.default),"./locales/tr.json":()=>Ze(()=>import("./tr-DqKzKEKV.js"),[]).then(i=>i.default),"./locales/vi.json":()=>Ze(()=>import("./vi-ByRwBJoF.js"),[]).then(i=>i.default),"./locales/zh.json":()=>Ze(()=>import("./zh-Cf0ddDO-.js"),[]).then(i=>i.default)});function s3(i){var l;const a=((l=(i||"en").split("-")[0])==null?void 0:l.toLowerCase())||"en";return n3.has(a)?a:"en"}async function l3(i){const a=s3(i);if(gy.has(a))return a;const l=i3[`./locales/${a}.json`],r=l?await l():vv;return Ke.addResourceBundle(a,"translation",r,!0,!0),gy.add(a),a}async function r3(){if(Ke.isInitialized)return;await Ke.use(yv).init({resources:{en:{translation:vv}},supportedLngs:[...xv],nonExplicitSupportedLngs:!0,fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["querystring","localStorage","navigator"],lookupQuerystring:"lang",caches:["localStorage"]}});const i=await l3(Ke.language||"en");i!=="en"&&await Ke.changeLanguage(i);const a=(Ke.language||i).split("-")[0]||"en";document.documentElement.setAttribute("lang",a==="zh"?"zh-CN":a),a3.has(a)&&document.documentElement.setAttribute("dir","rtl")}function S(i,a){return Ke.t(i,a)}const o3="/pro/assets/worldmonitor-7-mar-2026-CtI5YvxO.jpg",u3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0.11%2010.99%20124.78%2024.98'%3e%3cpath%20d='M105.375%2014.875v17.25h8.5c2.375%200%203.75-.375%204.75-1.25%201.25-1.125%201.875-3.125%201.875-7.375s-.625-6.25-1.875-7.375c-1-.875-2.375-1.25-4.75-1.25zM117%2023.5c0%203.75-.25%204.625-1%205.125-.5.375-1.125.5-2.375.5h-4.75V17.75h4.75c1.25%200%201.875%200%202.375.5.75.625%201%201.5%201%205.25zm7.875%2012.438H99.937V11h24.938zM79.563%2017.75v-2.875h14.75v5.5h-3.126V17.75h-6v4.125h4.75v2.75h-4.75v4.625h6.126v-3h3.124v5.875H79.564V29.25h2.374v-11.5zM66.188%2027.625c0%201.875.124%203.25.374%204.375h3.376c-.126-.875-.25-2.5-.25-4.625-.126-2.5-.876-2.875-2.626-3.25%202-.375%202.876-1.25%202.876-4.375%200-2.5-.376-3.5-1.126-4.125-.5-.5-1.374-.75-2.75-.75h-10.5v17.25h3.5v-6.75h4.876c1%200%201.374.125%201.75.375s.5.625.5%201.875zm-7.126-5v-4.75h5.626c.75%200%201%20.125%201.124.25.25.25.5.625.5%202.125s-.25%202-.5%202.25c-.124.125-.374.25-1.124.25zm15.876%2013.313h-25V11h24.937v24.938zM43.438%2029.25v2.875H31.562V29.25h4.25v-11.5h-4.25v-2.875h11.875v2.875h-4.25v11.5zM23.375%2014.875h-3.25L17.75%2028.5%2015%2015.875c-.125-.875-.5-1-1.25-1H12c-.75%200-1.125.25-1.25%201L8%2028.5%205.625%2014.875h-3.5L5.5%2031.25c.125.75.375.875%201.25.875h2.375c.75%200%201-.125%201.25-.875L13%2019.375l2.625%2011.875c.125.75.375.875%201.25.875h2.25c.75%200%201.125-.125%201.25-.875zm1.75%2021.063h-25V11h24.938v24.938z'%3e%3c/path%3e%3c/svg%3e",bv=location.hostname==="localhost"?"https://api.worldmonitor.app":"/api",c3="0x4AAAAAACnaYgHIyxclu8Tj",f3="https://worldmonitor.app/pro";function d3(){if(!window.turnstile)return 0;let i=0;return document.querySelectorAll(".cf-turnstile:not([data-rendered])").forEach(a=>{const l=window.turnstile.render(a,{sitekey:c3,size:"flexible",callback:r=>{a.dataset.token=r},"expired-callback":()=>{delete a.dataset.token},"error-callback":()=>{delete a.dataset.token}});a.dataset.rendered="true",a.dataset.widgetId=String(l),i++}),i}function Sv(){return new URLSearchParams(window.location.search).get("ref")||void 0}function h3(i){return String(i??"").replace(/[&<>"']/g,a=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[a]||a)}function m3(i,a){if(a.referralCode==null&&a.status==null){const v=i.querySelector('button[type="submit"]');v&&(v.textContent=S("form.joinWaitlist"),v.disabled=!1);return}const l=h3(a.referralCode),r=`${f3}?ref=${l}`,u=encodeURIComponent(S("referral.shareText")),f=encodeURIComponent(r),d=(v,b,w)=>{const j=document.createElement(v);return j.className=b,w&&(j.textContent=w),j},h=d("div","text-center"),y=a.status==="already_registered",m=S("referral.shareHint");if(y?h.appendChild(d("p","text-lg font-display font-bold text-wm-green mb-2",S("referral.alreadyOnList"))):h.appendChild(d("p","text-lg font-display font-bold text-wm-green mb-2",S("referral.youreIn"))),h.appendChild(d("p","text-sm text-wm-muted mb-4",m)),l){const v=d("div","bg-wm-card border border-wm-border px-4 py-3 mb-4 font-mono text-xs text-wm-green break-all select-all cursor-pointer",r);v.addEventListener("click",()=>{navigator.clipboard.writeText(r).then(()=>{v.textContent=S("referral.copied"),setTimeout(()=>{v.textContent=r},2e3)})}),h.appendChild(v);const b=d("div","flex gap-3 justify-center flex-wrap"),w=[{label:S("referral.shareOnX"),href:`https://x.com/intent/tweet?text=${u}&url=${f}`},{label:S("referral.linkedin"),href:`https://www.linkedin.com/sharing/share-offsite/?url=${f}`},{label:S("referral.whatsapp"),href:`https://wa.me/?text=${u}%20${f}`},{label:S("referral.telegram"),href:`https://t.me/share/url?url=${f}&text=${encodeURIComponent(S("referral.joinWaitlistShare"))}`}];for(const j of w){const E=d("a","bg-wm-card border border-wm-border px-4 py-2 text-xs font-mono text-wm-muted hover:text-wm-text hover:border-wm-text transition-colors",j.label);E.href=j.href,E.target="_blank",E.rel="noreferrer",b.appendChild(E)}h.appendChild(b)}i.replaceWith(h)}async function wv(i,a){var y;const l=a.querySelector('button[type="submit"]'),r=l.textContent;l.disabled=!0,l.textContent=S("form.submitting");const u=((y=a.querySelector('input[name="website"]'))==null?void 0:y.value)||"",f=a.querySelector(".cf-turnstile"),d=(f==null?void 0:f.dataset.token)||"",h=Sv();try{const m=await fetch(`${bv}/register-interest`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,source:"pro-waitlist",website:u,turnstileToken:d,referredBy:h})}),v=await m.json();if(!m.ok)throw new Error(v.error||"Registration failed");m3(a,{referralCode:v.referralCode,position:v.position,status:v.status})}catch(m){l.textContent=m.message==="Too many requests"?S("form.tooManyRequests"):S("form.failedTryAgain"),l.disabled=!1,f!=null&&f.dataset.widgetId&&window.turnstile&&(window.turnstile.reset(f.dataset.widgetId),delete f.dataset.token),setTimeout(()=>{l.textContent=r},3e3)}}const p3=()=>g.jsx("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"})}),Ar=()=>g.jsxs("a",{href:"https://worldmonitor.app",className:"flex items-center gap-2 hover:opacity-80 transition-opacity","aria-label":"World Monitor — Home",children:[g.jsxs("div",{className:"relative w-8 h-8 rounded-full bg-wm-card border border-wm-border flex items-center justify-center overflow-hidden",children:[g.jsx(br,{className:"w-5 h-5 text-wm-blue opacity-50 absolute","aria-hidden":"true"}),g.jsx(eA,{className:"w-6 h-6 text-wm-green absolute z-10","aria-hidden":"true"})]}),g.jsxs("div",{className:"flex flex-col",children:[g.jsx("span",{className:"font-display font-bold text-sm leading-none tracking-tight",children:"WORLD MONITOR"}),g.jsx("span",{className:"text-[9px] text-wm-muted font-mono uppercase tracking-widest leading-none mt-1",children:"by Someone.ceo"})]})]}),g3=()=>g.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 glass-panel border-b-0 border-x-0 rounded-none","aria-label":"Main navigation",children:g.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[g.jsx(Ar,{}),g.jsxs("div",{className:"hidden md:flex items-center gap-8 text-sm font-mono text-wm-muted",children:[g.jsx("a",{href:"#tiers",className:"hover:text-wm-text transition-colors",children:S("nav.free")}),g.jsx("a",{href:"#pro",className:"hover:text-wm-green transition-colors",children:S("nav.pro")}),g.jsx("a",{href:"#api",className:"hover:text-wm-text transition-colors",children:S("nav.api")}),g.jsx("a",{href:"#enterprise",className:"hover:text-wm-text transition-colors",children:S("nav.enterprise")})]}),g.jsx("a",{href:"#waitlist",className:"bg-wm-green text-wm-bg px-4 py-2 rounded-sm font-mono text-xs uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:S("nav.reserveAccess")})]})}),y3=()=>g.jsxs("a",{href:"https://www.wired.me/story/the-music-streaming-ceo-who-built-a-global-war-map",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full border border-wm-border bg-wm-card/50 text-wm-muted text-xs font-mono hover:border-wm-green/30 hover:text-wm-text transition-colors",children:[S("wired.asFeaturedIn")," ",g.jsx("span",{className:"text-wm-text font-bold",children:"WIRED"})," ",g.jsx(sv,{className:"w-3 h-3","aria-hidden":"true"})]}),v3=()=>g.jsxs("div",{className:"relative my-4 md:my-8 -mx-6",children:[g.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:g.jsx("div",{className:"w-64 h-40 md:w-96 md:h-56 bg-wm-green/8 rounded-full blur-[80px]"})}),g.jsx("div",{className:"flex items-end justify-center gap-[3px] md:gap-1 h-28 md:h-44 relative px-4","aria-hidden":"true",children:Array.from({length:60}).map((r,u)=>{const f=Math.abs(u-30),d=f<=8,h=d?1-f/8:0,y=60+h*110,m=Math.max(8,35-f*.8);return g.jsx(nv.div,{className:`flex-1 max-w-2 md:max-w-3 rounded-sm ${d?"bg-wm-green":"bg-wm-muted/20"}`,style:d?{boxShadow:`0 0 ${6+h*12}px rgba(74,222,128,${h*.5})`}:void 0,initial:{height:d?y*.3:m*.5,opacity:d?.4:.08},animate:d?{height:[y*.5,y,y*.65,y*.9],opacity:[.6+h*.3,1,.75+h*.2,.95]}:{height:[m,m*.3,m*.7,m*.15,m*.5],opacity:[.2,.06,.15,.04,.12]},transition:{duration:d?2.5+h*.5:1+Math.random()*.6,repeat:1/0,repeatType:"reverse",delay:d?f*.07:Math.random()*.6,ease:"easeInOut"}},u)})})]}),x3=()=>g.jsxs("section",{className:"pt-28 pb-12 px-6 relative overflow-hidden",children:[g.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_50%_20%,rgba(74,222,128,0.08)_0%,transparent_50%)] pointer-events-none"}),g.jsx("div",{className:"max-w-4xl mx-auto text-center relative z-10",children:g.jsxs(nv.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[g.jsx("div",{className:"mb-4",children:g.jsx(y3,{})}),g.jsxs("h1",{className:"text-6xl md:text-8xl font-display font-bold tracking-tighter leading-[0.95]",children:[g.jsx("span",{className:"text-wm-muted/40",children:S("hero.noiseWord")}),g.jsx("span",{className:"mx-3 md:mx-5 text-wm-border/50",children:"→"}),g.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-wm-green to-emerald-300 text-glow",children:S("hero.signalWord")})]}),g.jsx(v3,{}),g.jsx("p",{className:"text-lg md:text-xl text-wm-muted max-w-xl mx-auto font-light leading-relaxed",children:S("hero.valueProps")}),Sv()&&g.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 mt-4 rounded-sm border border-wm-green/30 bg-wm-green/5 text-sm font-mono text-wm-green",children:[g.jsx(JA,{className:"w-4 h-4","aria-hidden":"true"}),S("referral.invitedBanner")]}),g.jsxs("form",{className:"flex flex-col gap-3 max-w-md mx-auto mt-8",onSubmit:i=>{i.preventDefault();const a=i.currentTarget,l=new FormData(a).get("email");wv(l,a)},children:[g.jsx("input",{type:"text",name:"website",autoComplete:"off",tabIndex:-1,"aria-hidden":"true",className:"absolute opacity-0 h-0 w-0 pointer-events-none"}),g.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[g.jsx("input",{type:"email",name:"email",placeholder:S("hero.emailPlaceholder"),className:"flex-1 bg-wm-card border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono",required:!0,"aria-label":S("hero.emailAriaLabel")}),g.jsxs("button",{type:"submit",className:"bg-wm-green text-wm-bg px-6 py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:bg-green-400 transition-colors flex items-center justify-center gap-2 whitespace-nowrap",children:[S("hero.reserveEarlyAccess")," ",g.jsx(bi,{className:"w-4 h-4","aria-hidden":"true"})]})]}),g.jsx("div",{className:"cf-turnstile mx-auto"})]}),g.jsxs("div",{className:"flex items-center justify-center gap-4 mt-4",children:[g.jsx("p",{className:"text-xs text-wm-muted font-mono",children:S("hero.launchingDate")}),g.jsx("span",{className:"text-wm-border",children:"|"}),g.jsxs("a",{href:"https://worldmonitor.app",className:"text-xs text-wm-green font-mono hover:text-green-300 transition-colors flex items-center gap-1",children:[S("hero.tryFreeDashboard")," ",g.jsx(bi,{className:"w-3 h-3","aria-hidden":"true"})]})]})]})})]}),b3=()=>g.jsx("section",{className:"border-y border-wm-border bg-wm-card/30 py-16 px-6",children:g.jsxs("div",{className:"max-w-5xl mx-auto",children:[g.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 text-center mb-12",children:[{value:"2M+",label:S("socialProof.uniqueVisitors")},{value:"421K",label:S("socialProof.peakDailyUsers")},{value:"190+",label:S("socialProof.countriesReached")},{value:"435+",label:S("socialProof.liveDataSources")}].map((i,a)=>g.jsxs("div",{children:[g.jsx("p",{className:"text-3xl md:text-4xl font-display font-bold text-wm-green",children:i.value}),g.jsx("p",{className:"text-xs font-mono text-wm-muted uppercase tracking-widest mt-1",children:i.label})]},a))}),g.jsxs("blockquote",{className:"max-w-3xl mx-auto text-center",children:[g.jsxs("p",{className:"text-lg md:text-xl text-wm-muted italic leading-relaxed",children:['"',S("socialProof.quote"),'"']}),g.jsx("footer",{className:"mt-6 flex items-center justify-center gap-3",children:g.jsx("a",{href:"https://www.wired.me/story/the-music-streaming-ceo-who-built-a-global-war-map",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 text-wm-muted hover:text-wm-text transition-colors",children:g.jsx("img",{src:u3,alt:"WIRED",className:"h-5 brightness-0 invert opacity-60 hover:opacity-100 transition-opacity"})})})]})]})}),S3=()=>g.jsxs("section",{className:"py-24 px-6 max-w-5xl mx-auto",id:"tiers",children:[g.jsx("h2",{className:"sr-only",children:"Plans"}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[g.jsxs("div",{className:"bg-wm-card border border-wm-green p-8 relative border-glow",children:[g.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-wm-green"}),g.jsx("h3",{className:"font-display text-2xl font-bold mb-2",children:S("twoPath.proTitle")}),g.jsx("p",{className:"text-sm text-wm-muted mb-6",children:S("twoPath.proDesc")}),g.jsx("ul",{className:"space-y-3 mb-8",children:[S("twoPath.proF1"),S("twoPath.proF2"),S("twoPath.proF3"),S("twoPath.proF4"),S("twoPath.proF5"),S("twoPath.proF6"),S("twoPath.proF7"),S("twoPath.proF8"),S("twoPath.proF9")].map((i,a)=>g.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[g.jsx($g,{className:"w-4 h-4 shrink-0 mt-0.5 text-wm-green","aria-hidden":"true"}),g.jsx("span",{className:"text-wm-muted",children:i})]},a))}),g.jsx("a",{href:"#waitlist",className:"block text-center py-2.5 rounded-sm font-mono text-xs uppercase tracking-wider font-bold bg-wm-green text-wm-bg hover:bg-green-400 transition-colors",children:S("twoPath.proCta")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-8",children:[g.jsx("h3",{className:"font-display text-2xl font-bold mb-2",children:S("twoPath.entTitle")}),g.jsx("p",{className:"text-sm text-wm-muted mb-6",children:S("twoPath.entDesc")}),g.jsxs("ul",{className:"space-y-3 mb-8",children:[g.jsx("li",{className:"text-xs font-mono text-wm-green uppercase tracking-wider mb-1",children:S("twoPath.entF1")}),[S("twoPath.entF2"),S("twoPath.entF3"),S("twoPath.entF4"),S("twoPath.entF5"),S("twoPath.entF6"),S("twoPath.entF7"),S("twoPath.entF8"),S("twoPath.entF9"),S("twoPath.entF10"),S("twoPath.entF11")].map((i,a)=>g.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[g.jsx($g,{className:"w-4 h-4 shrink-0 mt-0.5 text-wm-muted","aria-hidden":"true"}),g.jsx("span",{className:"text-wm-muted",children:i})]},a))]}),g.jsx("a",{href:"#enterprise",className:"block text-center py-2.5 rounded-sm font-mono text-xs uppercase tracking-wider font-bold border border-wm-border text-wm-muted hover:text-wm-text hover:border-wm-text transition-colors",children:S("twoPath.entCta")})]})]})]}),w3=()=>{const i=[{icon:g.jsx(xA,{className:"w-6 h-6","aria-hidden":"true"}),title:S("whyUpgrade.noiseTitle"),desc:S("whyUpgrade.noiseDesc")},{icon:g.jsx(cv,{className:"w-6 h-6","aria-hidden":"true"}),title:S("whyUpgrade.fasterTitle"),desc:S("whyUpgrade.fasterDesc")},{icon:g.jsx(KA,{className:"w-6 h-6","aria-hidden":"true"}),title:S("whyUpgrade.controlTitle"),desc:S("whyUpgrade.controlDesc")},{icon:g.jsx(uv,{className:"w-6 h-6","aria-hidden":"true"}),title:S("whyUpgrade.deeperTitle"),desc:S("whyUpgrade.deeperDesc")}];return g.jsx("section",{className:"py-24 px-6 border-t border-wm-border bg-wm-card/20",children:g.jsxs("div",{className:"max-w-5xl mx-auto",children:[g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-16 text-center",children:S("whyUpgrade.title")}),g.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:i.map((a,l)=>g.jsxs("div",{className:"flex gap-5",children:[g.jsx("div",{className:"text-wm-green shrink-0 mt-1",children:a.icon}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold text-lg mb-2",children:a.title}),g.jsx("p",{className:"text-sm text-wm-muted leading-relaxed",children:a.desc})]})]},l))})]})})},T3=()=>g.jsx("section",{className:"px-6 py-16",children:g.jsxs("div",{className:"max-w-6xl mx-auto",children:[g.jsxs("div",{className:"relative rounded-lg overflow-hidden border border-wm-border shadow-2xl shadow-wm-green/5",children:[g.jsxs("div",{className:"bg-wm-card px-4 py-2 border-b border-wm-border flex items-center gap-3",children:[g.jsxs("div",{className:"flex gap-1.5",children:[g.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500/70"}),g.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500/70"}),g.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500/70"})]}),g.jsx("span",{className:"font-mono text-xs text-wm-muted ml-2",children:S("livePreview.windowTitle")}),g.jsxs("a",{href:"https://worldmonitor.app",target:"_blank",rel:"noreferrer",className:"ml-auto text-xs text-wm-green font-mono hover:text-green-300 transition-colors flex items-center gap-1",children:[S("livePreview.openFullScreen")," ",g.jsx(sv,{className:"w-3 h-3","aria-hidden":"true"})]})]}),g.jsxs("div",{className:"relative aspect-[16/9] bg-black",children:[g.jsx("img",{src:o3,alt:"World Monitor Dashboard",className:"absolute inset-0 w-full h-full object-cover"}),g.jsx("iframe",{src:"https://worldmonitor.app?alert=false",title:S("livePreview.iframeTitle"),className:"relative w-full h-full border-0",loading:"lazy",sandbox:"allow-scripts allow-same-origin"}),g.jsx("div",{className:"absolute inset-0 pointer-events-none bg-gradient-to-t from-wm-bg/80 via-transparent to-transparent"}),g.jsx("div",{className:"absolute bottom-4 left-0 right-0 text-center pointer-events-auto",children:g.jsxs("a",{href:"https://worldmonitor.app",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 bg-wm-green text-wm-bg px-6 py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:[S("livePreview.tryLiveDashboard")," ",g.jsx(bi,{className:"w-4 h-4","aria-hidden":"true"})]})})]})]}),g.jsx("p",{className:"text-center text-xs text-wm-muted font-mono mt-4",children:S("livePreview.description")})]})}),A3=()=>{const a=["Finnhub","FRED","Bloomberg","CNBC","Nikkei","CoinGecko","Polymarket","Reuters","ACLED","UCDP","GDELT","NASA FIRMS","USGS","OpenSky","AISStream","Cloudflare Radar","BGPStream","GPSJam","NOAA","Copernicus","IAEA","Al Jazeera","Sky News","Euronews","DW News","France 24","OilPrice","Rigzone","Maritime Executive","Hellenic Shipping News","Defense One","Jane's","The War Zone","TechCrunch","Ars Technica","The Verge","Wired","Krebs on Security","BleepingComputer","The Record"].join(" · ");return g.jsx("section",{className:"border-y border-wm-border bg-wm-card/20 overflow-hidden py-4","aria-label":"Data sources",children:g.jsxs("div",{className:"marquee-track whitespace-nowrap font-mono text-xs text-wm-muted uppercase tracking-widest",children:[g.jsxs("span",{className:"inline-block px-4",children:[a," · "]}),g.jsxs("span",{className:"inline-block px-4",children:[a," · "]})]})})},E3=()=>g.jsx("section",{className:"py-24 px-6 border-t border-wm-border bg-wm-card/30",id:"pro",children:g.jsxs("div",{className:"max-w-7xl mx-auto grid lg:grid-cols-2 gap-16 items-start",children:[g.jsxs("div",{children:[g.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-wm-green/30 bg-wm-green/10 text-wm-green text-xs font-mono mb-6",children:S("proShowcase.proTier")}),g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-6",children:S("proShowcase.title")}),g.jsx("p",{className:"text-wm-muted mb-8",children:S("proShowcase.subtitle")}),g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"flex gap-4",children:[g.jsx(cv,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:S("proShowcase.equityResearch")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("proShowcase.equityResearchDesc")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(br,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:S("proShowcase.geopoliticalAnalysis")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("proShowcase.geopoliticalAnalysisDesc")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(wf,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:S("proShowcase.economyAnalytics")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("proShowcase.economyAnalyticsDesc")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(Tf,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:S("proShowcase.riskMonitoring")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("proShowcase.riskMonitoringDesc")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(uv,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h4",{className:"font-bold mb-1",children:S("proShowcase.orbitalSurveillance")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("proShowcase.orbitalSurveillanceDesc")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(fA,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:S("proShowcase.morningBriefs")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("proShowcase.morningBriefsDesc")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(wA,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:S("proShowcase.oneKey")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("proShowcase.oneKeyDesc")})]})]})]}),g.jsxs("div",{className:"mt-10 pt-8 border-t border-wm-border",children:[g.jsx("p",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-4",children:S("proShowcase.deliveryLabel")}),g.jsx("div",{className:"flex gap-6",children:[{icon:g.jsx(p3,{}),label:"Slack"},{icon:g.jsx(BA,{className:"w-5 h-5","aria-hidden":"true"}),label:"Telegram"},{icon:g.jsx(OA,{className:"w-5 h-5","aria-hidden":"true"}),label:"WhatsApp"},{icon:g.jsx(MA,{className:"w-5 h-5","aria-hidden":"true"}),label:"Email"},{icon:g.jsx(zA,{className:"w-5 h-5","aria-hidden":"true"}),label:"Discord"}].map((i,a)=>g.jsxs("div",{className:"flex flex-col items-center gap-1.5 text-wm-muted hover:text-wm-text transition-colors cursor-pointer",children:[i.icon,g.jsx("span",{className:"text-[10px] font-mono",children:i.label})]},a))})]})]}),g.jsxs("div",{className:"bg-[#1a1d21] rounded-lg border border-[#35373b] overflow-hidden shadow-2xl sticky top-24",children:[g.jsxs("div",{className:"bg-[#222529] px-4 py-3 border-b border-[#35373b] flex items-center gap-3",children:[g.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),g.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),g.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"}),g.jsx("span",{className:"ml-2 font-mono text-xs text-gray-400",children:"#world-monitor-alerts"})]}),g.jsx("div",{className:"p-6 space-y-6 font-sans text-sm",children:g.jsxs("div",{className:"flex gap-4",children:[g.jsx("div",{className:"w-10 h-10 rounded bg-wm-green/20 flex items-center justify-center shrink-0",children:g.jsx(br,{className:"w-6 h-6 text-wm-green","aria-hidden":"true"})}),g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2 mb-1",children:[g.jsx("span",{className:"font-bold text-gray-200",children:"World Monitor"}),g.jsx("span",{className:"text-xs text-gray-500 bg-gray-800 px-1 rounded",children:"APP"}),g.jsx("span",{className:"text-xs text-gray-500",children:"8:00 AM"})]}),g.jsxs("p",{className:"text-gray-300 font-bold mb-3",children:[S("slackMock.morningBrief")," · Mar 6"]}),g.jsxs("div",{className:"space-y-3",children:[g.jsxs("div",{className:"pl-3 border-l-2 border-blue-500",children:[g.jsx("span",{className:"text-blue-400 font-bold text-xs uppercase tracking-wider",children:S("slackMock.markets")}),g.jsx("p",{className:"text-gray-300 mt-1",children:S("slackMock.marketsText")})]}),g.jsxs("div",{className:"pl-3 border-l-2 border-orange-500",children:[g.jsx("span",{className:"text-orange-400 font-bold text-xs uppercase tracking-wider",children:S("slackMock.elevated")}),g.jsx("p",{className:"text-gray-300 mt-1",children:S("slackMock.elevatedText")})]}),g.jsxs("div",{className:"pl-3 border-l-2 border-yellow-500",children:[g.jsx("span",{className:"text-yellow-400 font-bold text-xs uppercase tracking-wider",children:S("slackMock.watch")}),g.jsx("p",{className:"text-gray-300 mt-1",children:S("slackMock.watchText")})]})]})]})]})})]})]})}),j3=()=>{const i=[{icon:g.jsx(lA,{className:"w-6 h-6","aria-hidden":"true"}),title:S("audience.investorsTitle"),desc:S("audience.investorsDesc")},{icon:g.jsx(yA,{className:"w-6 h-6","aria-hidden":"true"}),title:S("audience.tradersTitle"),desc:S("audience.tradersDesc")},{icon:g.jsx(kA,{className:"w-6 h-6","aria-hidden":"true"}),title:S("audience.researchersTitle"),desc:S("audience.researchersDesc")},{icon:g.jsx(br,{className:"w-6 h-6","aria-hidden":"true"}),title:S("audience.journalistsTitle"),desc:S("audience.journalistsDesc")},{icon:g.jsx(AA,{className:"w-6 h-6","aria-hidden":"true"}),title:S("audience.govTitle"),desc:S("audience.govDesc")},{icon:g.jsx(aA,{className:"w-6 h-6","aria-hidden":"true"}),title:S("audience.teamsTitle"),desc:S("audience.teamsDesc")}];return g.jsx("section",{className:"py-24 px-6",children:g.jsxs("div",{className:"max-w-5xl mx-auto",children:[g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-16 text-center",children:S("audience.title")}),g.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:i.map((a,l)=>g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6 hover:border-wm-green/30 transition-colors",children:[g.jsx("div",{className:"text-wm-green mb-4",children:a.icon}),g.jsx("h3",{className:"font-bold mb-2",children:a.title}),g.jsx("p",{className:"text-sm text-wm-muted",children:a.desc})]},l))})]})})},N3=()=>g.jsx("section",{className:"py-24 px-6 border-y border-wm-border bg-[#0a0a0a]",id:"api",children:g.jsxs("div",{className:"max-w-7xl mx-auto grid lg:grid-cols-2 gap-16 items-center",children:[g.jsx("div",{className:"order-2 lg:order-1",children:g.jsxs("div",{className:"bg-black border border-wm-border rounded-lg overflow-hidden font-mono text-sm",children:[g.jsxs("div",{className:"bg-wm-card px-4 py-2 border-b border-wm-border flex items-center gap-2",children:[g.jsx(FA,{className:"w-4 h-4 text-wm-muted","aria-hidden":"true"}),g.jsx("span",{className:"text-wm-muted text-xs",children:"api.worldmonitor.app"})]}),g.jsx("div",{className:"p-6 text-gray-300 overflow-x-auto",children:g.jsx("pre",{children:g.jsxs("code",{children:[g.jsx("span",{className:"text-wm-blue",children:"curl"})," \\",g.jsx("br",{}),g.jsx("span",{className:"text-wm-green",children:'"https://api.worldmonitor.app/v1/intelligence/convergence?region=MENA&time_window=6h"'})," \\",g.jsx("br",{}),"-H ",g.jsx("span",{className:"text-wm-green",children:'"Authorization: Bearer wm_live_xxx"'}),g.jsx("br",{}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-muted",children:"{"}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"status"'}),": ",g.jsx("span",{className:"text-wm-green",children:'"success"'}),",",g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"data"'}),": ",g.jsx("span",{className:"text-wm-muted",children:"["}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-muted",children:"{"}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"type"'}),": ",g.jsx("span",{className:"text-wm-green",children:'"multi_signal_convergence"'}),",",g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"signals"'}),": ",g.jsx("span",{className:"text-wm-muted",children:'["military_flights", "ais_dark_ships", "oref_sirens"]'}),",",g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"confidence"'}),": ",g.jsx("span",{className:"text-orange-400",children:"0.92"}),",",g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"location"'}),": ",g.jsx("span",{className:"text-wm-muted",children:"{"})," ",g.jsx("span",{className:"text-wm-blue",children:'"lat"'}),": ",g.jsx("span",{className:"text-orange-400",children:"34.05"}),", ",g.jsx("span",{className:"text-wm-blue",children:'"lng"'}),": ",g.jsx("span",{className:"text-orange-400",children:"35.12"})," ",g.jsx("span",{className:"text-wm-muted",children:"}"}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-muted",children:"}"}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-muted",children:"]"}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-muted",children:"}"})]})})})]})}),g.jsxs("div",{className:"order-1 lg:order-2",children:[g.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-wm-border bg-wm-card text-wm-muted text-xs font-mono mb-6",children:S("apiSection.apiTier")}),g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-6",children:S("apiSection.title")}),g.jsx("p",{className:"text-wm-muted mb-8",children:S("apiSection.subtitle")}),g.jsxs("ul",{className:"space-y-4 mb-8",children:[g.jsxs("li",{className:"flex items-start gap-3",children:[g.jsx(qA,{className:"w-5 h-5 text-wm-muted shrink-0","aria-hidden":"true"}),g.jsx("span",{className:"text-sm",children:S("apiSection.restApi")})]}),g.jsxs("li",{className:"flex items-start gap-3",children:[g.jsx(NA,{className:"w-5 h-5 text-wm-muted shrink-0","aria-hidden":"true"}),g.jsx("span",{className:"text-sm",children:S("apiSection.authenticated")})]}),g.jsxs("li",{className:"flex items-start gap-3",children:[g.jsx(mA,{className:"w-5 h-5 text-wm-muted shrink-0","aria-hidden":"true"}),g.jsx("span",{className:"text-sm",children:S("apiSection.structured")})]})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-8 p-4 bg-wm-card border border-wm-border rounded-sm",children:[g.jsxs("div",{children:[g.jsx("p",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:S("apiSection.starter")}),g.jsx("p",{className:"text-sm font-bold",children:S("apiSection.starterReqs")}),g.jsx("p",{className:"text-xs text-wm-muted",children:S("apiSection.starterWebhooks")})]}),g.jsxs("div",{children:[g.jsx("p",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:S("apiSection.business")}),g.jsx("p",{className:"text-sm font-bold",children:S("apiSection.businessReqs")}),g.jsx("p",{className:"text-xs text-wm-muted",children:S("apiSection.businessWebhooks")})]})]}),g.jsx("p",{className:"text-sm text-wm-muted border-l-2 border-wm-border pl-4",children:S("apiSection.feedData")})]})]})}),D3=()=>g.jsx("section",{className:"py-24 px-6",id:"enterprise",children:g.jsxs("div",{className:"max-w-7xl mx-auto",children:[g.jsxs("div",{className:"text-center mb-16",children:[g.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-wm-border bg-wm-card text-wm-muted text-xs font-mono mb-6",children:S("enterpriseShowcase.enterpriseTier")}),g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-6",children:S("enterpriseShowcase.title")}),g.jsx("p",{className:"text-wm-muted max-w-2xl mx-auto",children:S("enterpriseShowcase.subtitle")})]}),g.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-6",children:[g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(Tf,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.security")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.securityDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(iv,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.aiAgents")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.aiAgentsDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(lv,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.dataLayers")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.dataLayersDesc")})]})]}),g.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-12",children:[g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(ov,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.connectors")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.connectorsDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(rv,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.whiteLabel")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.whiteLabelDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(wf,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.financial")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.financialDesc")})]})]}),g.jsxs("div",{className:"data-grid mb-12",children:[g.jsxs("div",{className:"data-cell",children:[g.jsx("h4",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:S("enterpriseShowcase.commodity")}),g.jsx("p",{className:"text-sm",children:S("enterpriseShowcase.commodityDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h4",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:S("enterpriseShowcase.government")}),g.jsx("p",{className:"text-sm",children:S("enterpriseShowcase.governmentDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h4",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:S("enterpriseShowcase.risk")}),g.jsx("p",{className:"text-sm",children:S("enterpriseShowcase.riskDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h4",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:S("enterpriseShowcase.soc")}),g.jsx("p",{className:"text-sm",children:S("enterpriseShowcase.socDesc")})]})]}),g.jsx("div",{className:"text-center mt-12",children:g.jsxs("a",{href:"#enterprise-contact","aria-label":"Talk to sales about Enterprise plans",className:"inline-flex items-center gap-2 bg-wm-green text-wm-bg px-8 py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:[S("enterpriseShowcase.talkToSales")," ",g.jsx(bi,{className:"w-4 h-4","aria-hidden":"true"})]})})]})}),M3=()=>{const i=[{feature:S("pricingTable.dataRefresh"),free:S("pricingTable.f5_15min"),pro:S("pricingTable.fLt60s"),api:S("pricingTable.fPerRequest"),ent:S("pricingTable.fLiveEdge")},{feature:S("pricingTable.dashboard"),free:S("pricingTable.f50panels"),pro:S("pricingTable.f50panels"),api:"—",ent:S("pricingTable.fWhiteLabel")},{feature:S("pricingTable.ai"),free:S("pricingTable.fBYOK"),pro:S("pricingTable.fIncluded"),api:"—",ent:S("pricingTable.fAgentsPersonas")},{feature:S("pricingTable.briefsAlerts"),free:"—",pro:S("pricingTable.fDailyFlash"),api:"—",ent:S("pricingTable.fTeamDist")},{feature:S("pricingTable.delivery"),free:"—",pro:S("pricingTable.fSlackTgWa"),api:S("pricingTable.fWebhook"),ent:S("pricingTable.fSiemMcp")},{feature:S("pricingTable.apiRow"),free:"—",pro:"—",api:S("pricingTable.fRestWebhook"),ent:S("pricingTable.fMcpBulk")},{feature:S("pricingTable.infraLayers"),free:S("pricingTable.f45"),pro:S("pricingTable.f45"),api:"—",ent:S("pricingTable.fTensOfThousands")},{feature:S("pricingTable.satellite"),free:S("pricingTable.fLiveTracking"),pro:S("pricingTable.fPassAlerts"),api:"—",ent:S("pricingTable.fImagerySar")},{feature:S("pricingTable.connectorsRow"),free:"—",pro:"—",api:"—",ent:S("pricingTable.f100plus")},{feature:S("pricingTable.deployment"),free:S("pricingTable.fCloud"),pro:S("pricingTable.fCloud"),api:S("pricingTable.fCloud"),ent:S("pricingTable.fCloudOnPrem")},{feature:S("pricingTable.securityRow"),free:S("pricingTable.fStandard"),pro:S("pricingTable.fStandard"),api:S("pricingTable.fKeyAuth"),ent:S("pricingTable.fSsoMfa")}];return g.jsxs("section",{className:"py-24 px-6 max-w-7xl mx-auto",children:[g.jsx("div",{className:"text-center mb-16",children:g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-6",children:S("pricingTable.title")})}),g.jsxs("div",{className:"hidden md:block",children:[g.jsxs("div",{className:"grid grid-cols-5 gap-4 mb-4 pb-4 border-b border-wm-border font-mono text-xs uppercase tracking-widest text-wm-muted",children:[g.jsx("div",{children:S("pricingTable.feature")}),g.jsx("div",{children:S("pricingTable.freeHeader")}),g.jsx("div",{className:"text-wm-green",children:S("pricingTable.proHeader")}),g.jsx("div",{children:S("pricingTable.apiHeader")}),g.jsx("div",{children:S("pricingTable.entHeader")})]}),i.map((a,l)=>g.jsxs("div",{className:"grid grid-cols-5 gap-4 py-4 border-b border-wm-border/50 text-sm hover:bg-wm-card/50 transition-colors",children:[g.jsx("div",{className:"font-medium",children:a.feature}),g.jsx("div",{className:"text-wm-muted",children:a.free}),g.jsx("div",{className:"text-wm-green",children:a.pro}),g.jsx("div",{className:"text-wm-muted",children:a.api}),g.jsx("div",{className:"text-wm-muted",children:a.ent})]},l))]}),g.jsx("div",{className:"md:hidden space-y-4",children:i.map((a,l)=>g.jsxs("div",{className:"bg-wm-card border border-wm-border p-4 rounded-sm",children:[g.jsx("p",{className:"font-medium text-sm mb-3",children:a.feature}),g.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[g.jsxs("div",{children:[g.jsxs("span",{className:"text-wm-muted",children:[S("tiers.free"),":"]})," ",a.free]}),g.jsxs("div",{children:[g.jsxs("span",{className:"text-wm-green",children:[S("tiers.pro"),":"]})," ",g.jsx("span",{className:"text-wm-green",children:a.pro})]}),g.jsxs("div",{children:[g.jsxs("span",{className:"text-wm-muted",children:[S("nav.api"),":"]})," ",a.api]}),g.jsxs("div",{children:[g.jsxs("span",{className:"text-wm-muted",children:[S("tiers.enterprise"),":"]})," ",a.ent]})]})]},l))}),g.jsx("p",{className:"text-center text-sm text-wm-muted mt-8",children:S("pricingTable.noteBelow")})]})},C3=()=>{const i=[{q:S("faq.q1"),a:S("faq.a1"),open:!0},{q:S("faq.q2"),a:S("faq.a2")},{q:S("faq.q3"),a:S("faq.a3")},{q:S("faq.q4"),a:S("faq.a4")},{q:S("faq.q5"),a:S("faq.a5")},{q:S("faq.q6"),a:S("faq.a6")},{q:S("faq.q7"),a:S("faq.a7")},{q:S("faq.q8"),a:S("faq.a8")}];return g.jsxs("section",{className:"py-24 px-6 max-w-3xl mx-auto",children:[g.jsx("h2",{className:"text-3xl font-display font-bold mb-12 text-center",children:S("faq.title")}),g.jsx("div",{className:"space-y-4",children:i.map((a,l)=>g.jsxs("details",{open:a.open,className:"group bg-wm-card border border-wm-border rounded-sm [&_summary::-webkit-details-marker]:hidden",children:[g.jsxs("summary",{className:"flex items-center justify-between p-6 cursor-pointer font-medium",children:[a.q,g.jsx(uA,{className:"w-5 h-5 text-wm-muted group-open:rotate-180 transition-transform","aria-hidden":"true"})]}),g.jsx("div",{className:"px-6 pb-6 text-wm-muted text-sm border-t border-wm-border pt-4 mt-2",children:a.a})]},l))})]})},O3=()=>g.jsxs("footer",{className:"border-t border-wm-border bg-[#020202] pt-24 pb-12 px-6 text-center",id:"waitlist",children:[g.jsxs("div",{className:"max-w-2xl mx-auto mb-16",children:[g.jsx("h2",{className:"text-4xl font-display font-bold mb-4",children:S("finalCta.title")}),g.jsx("p",{className:"text-wm-muted mb-8",children:S("finalCta.subtitle")}),g.jsxs("form",{className:"flex flex-col gap-3 max-w-md mx-auto mb-6",onSubmit:i=>{i.preventDefault();const a=i.currentTarget,l=new FormData(a).get("email");wv(l,a)},children:[g.jsx("input",{type:"text",name:"website",autoComplete:"off",tabIndex:-1,"aria-hidden":"true",className:"absolute opacity-0 h-0 w-0 pointer-events-none"}),g.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[g.jsx("input",{type:"email",name:"email",placeholder:S("hero.emailPlaceholder"),className:"flex-1 bg-wm-card border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono",required:!0,"aria-label":S("hero.emailAriaLabel")}),g.jsx("button",{type:"submit",className:"bg-wm-green text-wm-bg px-6 py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:bg-green-400 transition-colors whitespace-nowrap",children:S("finalCta.getPro")})]}),g.jsx("div",{className:"cf-turnstile mx-auto"})]}),g.jsxs("a",{href:"#enterprise-contact",className:"inline-flex items-center gap-2 text-sm text-wm-muted hover:text-wm-text transition-colors font-mono",children:[S("finalCta.talkToSales")," ",g.jsx(bi,{className:"w-3 h-3","aria-hidden":"true"})]})]}),g.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between max-w-7xl mx-auto pt-8 border-t border-wm-border/50 text-xs text-wm-muted font-mono",children:[g.jsx("div",{className:"flex items-center gap-4 mb-4 md:mb-0",children:g.jsx(Ar,{})}),g.jsxs("div",{className:"flex gap-6",children:[g.jsx("a",{href:"https://x.com/worldmonitorai",target:"_blank",rel:"noreferrer","aria-label":"Follow World Monitor on X",className:"hover:text-wm-text transition-colors",children:"X"}),g.jsx("a",{href:"https://github.com/koala73/worldmonitor",target:"_blank",rel:"noreferrer","aria-label":"World Monitor on GitHub",className:"hover:text-wm-text transition-colors",children:"GitHub"}),g.jsx("a",{href:"https://www.wired.me/story/the-music-streaming-ceo-who-built-a-global-war-map",target:"_blank",rel:"noreferrer","aria-label":"Read the WIRED article about World Monitor",className:"hover:text-wm-text transition-colors",children:S("footer.wiredArticle")})]})]})]}),R3=()=>g.jsxs("div",{className:"min-h-screen selection:bg-wm-green/30 selection:text-wm-green",children:[g.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 glass-panel border-b-0 border-x-0 rounded-none","aria-label":"Main navigation",children:g.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[g.jsx("a",{href:"#",onClick:i=>{i.preventDefault(),window.location.hash=""},children:g.jsx(Ar,{})}),g.jsxs("div",{className:"hidden md:flex items-center gap-8 text-sm font-mono text-wm-muted",children:[g.jsx("a",{href:"#",onClick:i=>{i.preventDefault(),window.location.hash=""},className:"hover:text-wm-text transition-colors",children:S("nav.pro")}),g.jsx("a",{href:"#enterprise",onClick:i=>{var a;i.preventDefault(),(a=document.getElementById("features"))==null||a.scrollIntoView({behavior:"smooth"})},className:"hover:text-wm-text transition-colors",children:S("nav.enterprise")}),g.jsx("a",{href:"#enterprise-contact",onClick:i=>{var a;i.preventDefault(),(a=document.getElementById("contact"))==null||a.scrollIntoView({behavior:"smooth"})},className:"hover:text-wm-green transition-colors",children:S("enterpriseShowcase.talkToSales")})]}),g.jsx("a",{href:"#enterprise-contact",onClick:i=>{var a;i.preventDefault(),(a=document.getElementById("contact"))==null||a.scrollIntoView({behavior:"smooth"})},className:"bg-wm-green text-wm-bg px-4 py-2 rounded-sm font-mono text-xs uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:S("enterpriseShowcase.talkToSales")})]})}),g.jsxs("main",{className:"pt-24",children:[g.jsx("section",{className:"py-24 px-6 text-center",children:g.jsxs("div",{className:"max-w-4xl mx-auto",children:[g.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-wm-border bg-wm-card text-wm-muted text-xs font-mono mb-6",children:S("enterpriseShowcase.enterpriseTier")}),g.jsx("h2",{className:"text-4xl md:text-6xl font-display font-bold mb-6",children:S("enterpriseShowcase.title")}),g.jsx("p",{className:"text-lg text-wm-muted max-w-2xl mx-auto mb-10",children:S("enterpriseShowcase.subtitle")}),g.jsxs("a",{href:"#enterprise-contact",onClick:i=>{var a;i.preventDefault(),(a=document.getElementById("contact"))==null||a.scrollIntoView({behavior:"smooth"})},className:"inline-flex items-center gap-2 bg-wm-green text-wm-bg px-8 py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:[S("enterpriseShowcase.talkToSales")," ",g.jsx(bi,{className:"w-4 h-4","aria-hidden":"true"})]})]})}),g.jsx("section",{className:"py-24 px-6",id:"features",children:g.jsxs("div",{className:"max-w-7xl mx-auto",children:[g.jsx("h2",{className:"sr-only",children:"Enterprise Features"}),g.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-6",children:[g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(Tf,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.security")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.securityDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(iv,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.aiAgents")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.aiAgentsDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(lv,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.dataLayers")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.dataLayersDesc")})]})]}),g.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-12",children:[g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(ov,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.connectors")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.connectorsDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(rv,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.whiteLabel")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.whiteLabelDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(wf,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:S("enterpriseShowcase.financial")}),g.jsx("p",{className:"text-sm text-wm-muted",children:S("enterpriseShowcase.financialDesc")})]})]})]})}),g.jsx("section",{className:"py-24 px-6 border-t border-wm-border",children:g.jsxs("div",{className:"max-w-7xl mx-auto",children:[g.jsx("h2",{className:"text-3xl font-display font-bold mb-12 text-center",children:S("enterpriseShowcase.title")}),g.jsxs("div",{className:"data-grid",children:[g.jsxs("div",{className:"data-cell",children:[g.jsx("h3",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:S("enterpriseShowcase.commodity")}),g.jsx("p",{className:"text-sm",children:S("enterpriseShowcase.commodityDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h3",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:S("enterpriseShowcase.government")}),g.jsx("p",{className:"text-sm",children:S("enterpriseShowcase.governmentDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h3",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:S("enterpriseShowcase.risk")}),g.jsx("p",{className:"text-sm",children:S("enterpriseShowcase.riskDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h3",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:S("enterpriseShowcase.soc")}),g.jsx("p",{className:"text-sm",children:S("enterpriseShowcase.socDesc")})]})]})]})}),g.jsx("section",{className:"py-24 px-6 border-t border-wm-border",id:"contact",children:g.jsxs("div",{className:"max-w-xl mx-auto",children:[g.jsx("h2",{className:"font-display text-3xl font-bold mb-2 text-center",children:S("enterpriseShowcase.contactFormTitle")}),g.jsx("p",{className:"text-sm text-wm-muted mb-10 text-center",children:S("enterpriseShowcase.contactFormSubtitle")}),g.jsxs("form",{className:"space-y-4",onSubmit:async i=>{var y;i.preventDefault();const a=i.currentTarget,l=a.querySelector('button[type="submit"]'),r=l.textContent;l.disabled=!0,l.textContent=S("enterpriseShowcase.contactSending");const u=new FormData(a),f=((y=a.querySelector('input[name="website"]'))==null?void 0:y.value)||"",d=a.querySelector(".cf-turnstile"),h=(d==null?void 0:d.dataset.token)||"";try{const m=await fetch(`${bv}/contact`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u.get("email"),name:u.get("name"),organization:u.get("organization"),phone:u.get("phone"),message:u.get("message"),source:"enterprise-contact",website:f,turnstileToken:h})}),v=a.querySelector("[data-form-error]");if(!m.ok){const b=await m.json().catch(()=>({}));if(m.status===422&&v){v.textContent=b.error||S("enterpriseShowcase.workEmailRequired"),v.classList.remove("hidden"),l.textContent=r,l.disabled=!1;return}throw new Error}v&&v.classList.add("hidden"),l.textContent=S("enterpriseShowcase.contactSent"),l.className=l.className.replace("bg-wm-green","bg-wm-card border border-wm-green text-wm-green")}catch{l.textContent=S("enterpriseShowcase.contactFailed"),l.disabled=!1,d!=null&&d.dataset.widgetId&&window.turnstile&&(window.turnstile.reset(d.dataset.widgetId),delete d.dataset.token),setTimeout(()=>{l.textContent=r},4e3)}},children:[g.jsx("input",{type:"text",name:"website",autoComplete:"off",tabIndex:-1,"aria-hidden":"true",className:"absolute opacity-0 h-0 w-0 pointer-events-none"}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsx("input",{type:"text",name:"name",placeholder:S("enterpriseShowcase.namePlaceholder"),required:!0,className:"bg-wm-bg border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono"}),g.jsx("input",{type:"email",name:"email",placeholder:S("enterpriseShowcase.emailPlaceholder"),required:!0,className:"bg-wm-bg border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono"})]}),g.jsx("span",{"data-form-error":!0,className:"hidden text-red-400 text-xs font-mono block"}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsx("input",{type:"text",name:"organization",placeholder:S("enterpriseShowcase.orgPlaceholder"),required:!0,className:"bg-wm-bg border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono"}),g.jsx("input",{type:"tel",name:"phone",placeholder:S("enterpriseShowcase.phonePlaceholder"),required:!0,className:"bg-wm-bg border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono"})]}),g.jsx("textarea",{name:"message",placeholder:S("enterpriseShowcase.messagePlaceholder"),rows:4,className:"w-full bg-wm-bg border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono resize-none"}),g.jsx("div",{className:"cf-turnstile mx-auto"}),g.jsx("button",{type:"submit",className:"w-full bg-wm-green text-wm-bg py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:S("enterpriseShowcase.submitContact")})]})]})})]}),g.jsx("footer",{className:"border-t border-wm-border bg-[#020202] py-8 px-6 text-center",children:g.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between max-w-7xl mx-auto text-xs text-wm-muted font-mono",children:[g.jsx("div",{className:"flex items-center gap-4 mb-4 md:mb-0",children:g.jsx(Ar,{})}),g.jsxs("div",{className:"flex gap-6",children:[g.jsx("a",{href:"#",onClick:i=>{i.preventDefault(),window.location.hash=""},className:"hover:text-wm-text transition-colors",children:S("nav.pro")}),g.jsx("a",{href:"https://x.com/worldmonitorai",target:"_blank",rel:"noreferrer","aria-label":"Follow World Monitor on X",className:"hover:text-wm-text transition-colors",children:"X"}),g.jsx("a",{href:"https://github.com/koala73/worldmonitor",target:"_blank",rel:"noreferrer",className:"hover:text-wm-text transition-colors",children:"GitHub"})]})]})})]});function z3(){const[i,a]=te.useState(()=>window.location.hash.startsWith("#enterprise")?"enterprise":"home");return te.useEffect(()=>{const l=()=>{const r=window.location.hash,u=r.startsWith("#enterprise")?"enterprise":"home",f=i==="enterprise";a(u),u==="enterprise"&&!f&&window.scrollTo(0,0),r==="#enterprise-contact"&&setTimeout(()=>{var d;(d=document.getElementById("contact"))==null||d.scrollIntoView({behavior:"smooth"})},f?0:100)};return window.addEventListener("hashchange",l),()=>window.removeEventListener("hashchange",l)},[i]),te.useEffect(()=>{i==="enterprise"&&window.location.hash==="#enterprise-contact"&&setTimeout(()=>{var l;(l=document.getElementById("contact"))==null||l.scrollIntoView({behavior:"smooth"})},100)},[]),i==="enterprise"?g.jsx(R3,{}):g.jsxs("div",{className:"min-h-screen selection:bg-wm-green/30 selection:text-wm-green",children:[g.jsx(g3,{}),g.jsxs("main",{children:[g.jsx(x3,{}),g.jsx(b3,{}),g.jsx(S3,{}),g.jsx(j3,{}),g.jsx(w3,{}),g.jsx(T3,{}),g.jsx(A3,{}),g.jsx(E3,{}),g.jsx(N3,{}),g.jsx(D3,{}),g.jsx(M3,{}),g.jsx(C3,{})]}),g.jsx(O3,{})]})}const L3='script[src^="https://challenges.cloudflare.com/turnstile/v0/api.js"]';r3().then(()=>{tb.createRoot(document.getElementById("root")).render(g.jsx(te.StrictMode,{children:g.jsx(z3,{})}));const i=()=>window.turnstile?d3()>0:!1,a=document.querySelector(L3);if(a==null||a.addEventListener("load",()=>{i()},{once:!0}),!i()){let l=0;const r=window.setInterval(()=>{(i()||++l>=20)&&window.clearInterval(r)},500)}window.addEventListener("hashchange",()=>{let l=0;const r=()=>{i()||++l>=10||setTimeout(r,200)};setTimeout(r,100)})});