1609 lines
677 KiB
JavaScript
1609 lines
677 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(o){if(o.ep)return;o.ep=!0;const u=i(o);fetch(o.href,u)}})();function em(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xd={exports:{}},Ks={};/**
|
||
* @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 r0;function JA(){if(r0)return Ks;r0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var d in o)d!=="key"&&(u[d]=o[d])}else u=o;return o=u.ref,{$$typeof:e,type:a,key:c,ref:o!==void 0?o:null,props:u}}return Ks.Fragment=t,Ks.jsx=i,Ks.jsxs=i,Ks}var a0;function e_(){return a0||(a0=1,xd.exports=JA()),xd.exports}var T=e_(),Sd={exports:{}},Ae={};/**
|
||
* @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 s0;function t_(){if(s0)return Ae;s0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),v=Symbol.iterator;function x(k){return k===null||typeof k!="object"?null:(k=v&&k[v]||k["@@iterator"],typeof k=="function"?k:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,N={};function C(k,q,E){this.props=k,this.context=q,this.refs=N,this.updater=E||A}C.prototype.isReactComponent={},C.prototype.setState=function(k,q){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,q,"setState")},C.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function V(){}V.prototype=C.prototype;function L(k,q,E){this.props=k,this.context=q,this.refs=N,this.updater=E||A}var Y=L.prototype=new V;Y.constructor=L,M(Y,C.prototype),Y.isPureReactComponent=!0;var Z=Array.isArray;function z(){}var K={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function ee(k,q,E){var P=E.ref;return{$$typeof:e,type:k,key:q,ref:P!==void 0?P:null,props:E}}function ie(k,q){return ee(k.type,q,k.props)}function $(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function ne(k){var q={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(E){return q[E]})}var ge=/\/+/g;function le(k,q){return typeof k=="object"&&k!==null&&k.key!=null?ne(""+k.key):q.toString(36)}function J(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(z,z):(k.status="pending",k.then(function(q){k.status==="pending"&&(k.status="fulfilled",k.value=q)},function(q){k.status==="pending"&&(k.status="rejected",k.reason=q)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function R(k,q,E,P,re){var ae=typeof k;(ae==="undefined"||ae==="boolean")&&(k=null);var ve=!1;if(k===null)ve=!0;else switch(ae){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(k.$$typeof){case e:case t:ve=!0;break;case g:return ve=k._init,R(ve(k._payload),q,E,P,re)}}if(ve)return re=re(k),ve=P===""?"."+le(k,0):P,Z(re)?(E="",ve!=null&&(E=ve.replace(ge,"$&/")+"/"),R(re,q,E,"",function(Dt){return Dt})):re!=null&&($(re)&&(re=ie(re,E+(re.key==null||k&&k.key===re.key?"":(""+re.key).replace(ge,"$&/")+"/")+ve)),q.push(re)),1;ve=0;var Ee=P===""?".":P+":";if(Z(k))for(var Se=0;Se<k.length;Se++)P=k[Se],ae=Ee+le(P,Se),ve+=R(P,q,E,ae,re);else if(Se=x(k),typeof Se=="function")for(k=Se.call(k),Se=0;!(P=k.next()).done;)P=P.value,ae=Ee+le(P,Se++),ve+=R(P,q,E,ae,re);else if(ae==="object"){if(typeof k.then=="function")return R(J(k),q,E,P,re);throw q=String(k),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ve}function W(k,q,E){if(k==null)return k;var P=[],re=0;return R(k,P,"","",function(ae){return q.call(E,ae,re++)}),P}function oe(k){if(k._status===-1){var q=k._result;q=q(),q.then(function(E){(k._status===0||k._status===-1)&&(k._status=1,k._result=E)},function(E){(k._status===0||k._status===-1)&&(k._status=2,k._result=E)}),k._status===-1&&(k._status=0,k._result=q)}if(k._status===1)return k._result.default;throw k._result}var he=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},w={map:W,forEach:function(k,q,E){W(k,function(){q.apply(this,arguments)},E)},count:function(k){var q=0;return W(k,function(){q++}),q},toArray:function(k){return W(k,function(q){return q})||[]},only:function(k){if(!$(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Ae.Activity=y,Ae.Children=w,Ae.Component=C,Ae.Fragment=i,Ae.Profiler=o,Ae.PureComponent=L,Ae.StrictMode=a,Ae.Suspense=p,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(k){return K.H.useMemoCache(k)}},Ae.cache=function(k){return function(){return k.apply(null,arguments)}},Ae.cacheSignal=function(){return null},Ae.cloneElement=function(k,q,E){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var P=M({},k.props),re=k.key;if(q!=null)for(ae in q.key!==void 0&&(re=""+q.key),q)!B.call(q,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&q.ref===void 0||(P[ae]=q[ae]);var ae=arguments.length-2;if(ae===1)P.children=E;else if(1<ae){for(var ve=Array(ae),Ee=0;Ee<ae;Ee++)ve[Ee]=arguments[Ee+2];P.children=ve}return ee(k.type,re,P)},Ae.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:u,_context:k},k},Ae.createElement=function(k,q,E){var P,re={},ae=null;if(q!=null)for(P in q.key!==void 0&&(ae=""+q.key),q)B.call(q,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(re[P]=q[P]);var ve=arguments.length-2;if(ve===1)re.children=E;else if(1<ve){for(var Ee=Array(ve),Se=0;Se<ve;Se++)Ee[Se]=arguments[Se+2];re.children=Ee}if(k&&k.defaultProps)for(P in ve=k.defaultProps,ve)re[P]===void 0&&(re[P]=ve[P]);return ee(k,ae,re)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(k){return{$$typeof:d,render:k}},Ae.isValidElement=$,Ae.lazy=function(k){return{$$typeof:g,_payload:{_status:-1,_result:k},_init:oe}},Ae.memo=function(k,q){return{$$typeof:m,type:k,compare:q===void 0?null:q}},Ae.startTransition=function(k){var q=K.T,E={};K.T=E;try{var P=k(),re=K.S;re!==null&&re(E,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(z,he)}catch(ae){he(ae)}finally{q!==null&&E.types!==null&&(q.types=E.types),K.T=q}},Ae.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},Ae.use=function(k){return K.H.use(k)},Ae.useActionState=function(k,q,E){return K.H.useActionState(k,q,E)},Ae.useCallback=function(k,q){return K.H.useCallback(k,q)},Ae.useContext=function(k){return K.H.useContext(k)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(k,q){return K.H.useDeferredValue(k,q)},Ae.useEffect=function(k,q){return K.H.useEffect(k,q)},Ae.useEffectEvent=function(k){return K.H.useEffectEvent(k)},Ae.useId=function(){return K.H.useId()},Ae.useImperativeHandle=function(k,q,E){return K.H.useImperativeHandle(k,q,E)},Ae.useInsertionEffect=function(k,q){return K.H.useInsertionEffect(k,q)},Ae.useLayoutEffect=function(k,q){return K.H.useLayoutEffect(k,q)},Ae.useMemo=function(k,q){return K.H.useMemo(k,q)},Ae.useOptimistic=function(k,q){return K.H.useOptimistic(k,q)},Ae.useReducer=function(k,q,E){return K.H.useReducer(k,q,E)},Ae.useRef=function(k){return K.H.useRef(k)},Ae.useState=function(k){return K.H.useState(k)},Ae.useSyncExternalStore=function(k,q,E){return K.H.useSyncExternalStore(k,q,E)},Ae.useTransition=function(){return K.H.useTransition()},Ae.version="19.2.4",Ae}var o0;function tm(){return o0||(o0=1,Sd.exports=t_()),Sd.exports}var te=tm();const wd=em(te);var Td={exports:{}},Qs={},Ed={exports:{}},Ad={};/**
|
||
* @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 l0;function n_(){return l0||(l0=1,(function(e){function t(R,W){var oe=R.length;R.push(W);e:for(;0<oe;){var he=oe-1>>>1,w=R[he];if(0<o(w,W))R[he]=W,R[oe]=w,oe=he;else break e}}function i(R){return R.length===0?null:R[0]}function a(R){if(R.length===0)return null;var W=R[0],oe=R.pop();if(oe!==W){R[0]=oe;e:for(var he=0,w=R.length,k=w>>>1;he<k;){var q=2*(he+1)-1,E=R[q],P=q+1,re=R[P];if(0>o(E,oe))P<w&&0>o(re,E)?(R[he]=re,R[P]=oe,he=P):(R[he]=E,R[q]=oe,he=q);else if(P<w&&0>o(re,oe))R[he]=re,R[P]=oe,he=P;else break e}}return W}function o(R,W){var oe=R.sortIndex-W.sortIndex;return oe!==0?oe:R.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],m=[],g=1,y=null,v=3,x=!1,A=!1,M=!1,N=!1,C=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function Y(R){for(var W=i(m);W!==null;){if(W.callback===null)a(m);else if(W.startTime<=R)a(m),W.sortIndex=W.expirationTime,t(p,W);else break;W=i(m)}}function Z(R){if(M=!1,Y(R),!A)if(i(p)!==null)A=!0,z||(z=!0,ne());else{var W=i(m);W!==null&&J(Z,W.startTime-R)}}var z=!1,K=-1,B=5,ee=-1;function ie(){return N?!0:!(e.unstable_now()-ee<B)}function $(){if(N=!1,z){var R=e.unstable_now();ee=R;var W=!0;try{e:{A=!1,M&&(M=!1,V(K),K=-1),x=!0;var oe=v;try{t:{for(Y(R),y=i(p);y!==null&&!(y.expirationTime>R&&ie());){var he=y.callback;if(typeof he=="function"){y.callback=null,v=y.priorityLevel;var w=he(y.expirationTime<=R);if(R=e.unstable_now(),typeof w=="function"){y.callback=w,Y(R),W=!0;break t}y===i(p)&&a(p),Y(R)}else a(p);y=i(p)}if(y!==null)W=!0;else{var k=i(m);k!==null&&J(Z,k.startTime-R),W=!1}}break e}finally{y=null,v=oe,x=!1}W=void 0}}finally{W?ne():z=!1}}}var ne;if(typeof L=="function")ne=function(){L($)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,le=ge.port2;ge.port1.onmessage=$,ne=function(){le.postMessage(null)}}else ne=function(){C($,0)};function J(R,W){K=C(function(){R(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(R){switch(v){case 1:case 2:case 3:var W=3;break;default:W=v}var oe=v;v=W;try{return R()}finally{v=oe}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(R,W){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var oe=v;v=R;try{return W()}finally{v=oe}},e.unstable_scheduleCallback=function(R,W,oe){var he=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?he+oe:he):oe=he,R){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=oe+w,R={id:g++,callback:W,priorityLevel:R,startTime:oe,expirationTime:w,sortIndex:-1},oe>he?(R.sortIndex=oe,t(m,R),i(p)===null&&R===i(m)&&(M?(V(K),K=-1):M=!0,J(Z,oe-he))):(R.sortIndex=w,t(p,R),A||x||(A=!0,z||(z=!0,ne()))),R},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(R){var W=v;return function(){var oe=v;v=W;try{return R.apply(this,arguments)}finally{v=oe}}}})(Ad)),Ad}var u0;function i_(){return u0||(u0=1,Ed.exports=n_()),Ed.exports}var _d={exports:{}},kt={};/**
|
||
* @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 c0;function r_(){if(c0)return kt;c0=1;var e=tm();function t(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(p,m,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:p,containerInfo:m,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,kt.createPortal=function(p,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return u(p,m,null,g)},kt.flushSync=function(p){var m=c.T,g=a.p;try{if(c.T=null,a.p=2,p)return p()}finally{c.T=m,a.p=g,a.d.f()}},kt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,a.d.C(p,m))},kt.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},kt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var g=m.as,y=d(g,m.crossOrigin),v=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?a.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:x}):g==="script"&&a.d.X(p,{crossOrigin:y,integrity:v,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},kt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=d(m.as,m.crossOrigin);a.d.M(p,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&a.d.M(p)},kt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,y=d(g,m.crossOrigin);a.d.L(p,g,{crossOrigin:y,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})}},kt.preloadModule=function(p,m){if(typeof p=="string")if(m){var g=d(m.as,m.crossOrigin);a.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else a.d.m(p)},kt.requestFormReset=function(p){a.d.r(p)},kt.unstable_batchedUpdates=function(p,m){return p(m)},kt.useFormState=function(p,m,g){return c.H.useFormState(p,m,g)},kt.useFormStatus=function(){return c.H.useHostTransitionStatus()},kt.version="19.2.4",kt}var f0;function a_(){if(f0)return _d.exports;f0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_d.exports=r_(),_d.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 d0;function s_(){if(d0)return Qs;d0=1;var e=i_(),t=tm(),i=a_();function a(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)r+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function u(n){var r=n,s=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(s=r.return),n=r.return;while(n)}return r.tag===3?s:null}function c(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function d(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function p(n){if(u(n)!==n)throw Error(a(188))}function m(n){var r=n.alternate;if(!r){if(r=u(n),r===null)throw Error(a(188));return r!==n?null:n}for(var s=n,l=r;;){var f=s.return;if(f===null)break;var h=f.alternate;if(h===null){if(l=f.return,l!==null){s=l;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===s)return p(f),n;if(h===l)return p(f),r;h=h.sibling}throw Error(a(188))}if(s.return!==l.return)s=f,l=h;else{for(var b=!1,S=f.child;S;){if(S===s){b=!0,s=f,l=h;break}if(S===l){b=!0,l=f,s=h;break}S=S.sibling}if(!b){for(S=h.child;S;){if(S===s){b=!0,s=h,l=f;break}if(S===l){b=!0,l=h,s=f;break}S=S.sibling}if(!b)throw Error(a(189))}}if(s.alternate!==l)throw Error(a(190))}if(s.tag!==3)throw Error(a(188));return s.stateNode.current===s?n:r}function g(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=g(n),r!==null)return r;n=n.sibling}return null}var y=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),L=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function ne(n){return n===null||typeof n!="object"?null:(n=$&&n[$]||n["@@iterator"],typeof n=="function"?n:null)}var ge=Symbol.for("react.client.reference");function le(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ge?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case M:return"Fragment";case C:return"Profiler";case N:return"StrictMode";case Z:return"Suspense";case z:return"SuspenseList";case ee:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case A:return"Portal";case L:return n.displayName||"Context";case V:return(n._context.displayName||"Context")+".Consumer";case Y:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case K:return r=n.displayName||null,r!==null?r:le(n.type)||"Memo";case B:r=n._payload,n=n._init;try{return le(n(r))}catch{}}return null}var J=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},he=[],w=-1;function k(n){return{current:n}}function q(n){0>w||(n.current=he[w],he[w]=null,w--)}function E(n,r){w++,he[w]=n.current,n.current=r}var P=k(null),re=k(null),ae=k(null),ve=k(null);function Ee(n,r){switch(E(ae,r),E(re,n),E(P,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Cb(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Cb(r),n=kb(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(P),E(P,n)}function Se(){q(P),q(re),q(ae)}function Dt(n){n.memoizedState!==null&&E(ve,n);var r=P.current,s=kb(r,n.type);r!==s&&(E(re,n),E(P,s))}function Ut(n){re.current===n&&(q(P),q(re)),ve.current===n&&(q(ve),Fs._currentValue=oe)}var Rn,bi;function Bt(n){if(Rn===void 0)try{throw Error()}catch(s){var r=s.stack.trim().match(/\n( *(at )?)/);Rn=r&&r[1]||"",bi=-1<s.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+Rn+n+bi}var qr=!1;function Fr(n,r){if(!n||qr)return"";qr=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(r){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(H){var U=H}Reflect.construct(n,[],Q)}else{try{Q.call()}catch(H){U=H}n.call(Q.prototype)}}else{try{throw Error()}catch(H){U=H}(Q=n())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),b=h[0],S=h[1];if(b&&S){var _=b.split(`
|
||
`),I=S.split(`
|
||
`);for(f=l=0;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;for(;f<I.length&&!I[f].includes("DetermineComponentFrameRoot");)f++;if(l===_.length||f===I.length)for(l=_.length-1,f=I.length-1;1<=l&&0<=f&&_[l]!==I[f];)f--;for(;1<=l&&0<=f;l--,f--)if(_[l]!==I[f]){if(l!==1||f!==1)do if(l--,f--,0>f||_[l]!==I[f]){var F=`
|
||
`+_[l].replace(" at new "," at ");return n.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",n.displayName)),F}while(1<=l&&0<=f);break}}}finally{qr=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?Bt(s):""}function Lo(n,r){switch(n.tag){case 26:case 27:case 5:return Bt(n.type);case 16:return Bt("Lazy");case 13:return n.child!==r&&r!==null?Bt("Suspense Fallback"):Bt("Suspense");case 19:return Bt("SuspenseList");case 0:case 15:return Fr(n.type,!1);case 11:return Fr(n.type.render,!1);case 1:return Fr(n.type,!0);case 31:return Bt("Activity");default:return""}}function jo(n){try{var r="",s=null;do r+=Lo(n,s),s=n,n=n.return;while(n);return r}catch(l){return`
|
||
Error generating stack: `+l.message+`
|
||
`+l.stack}}var Gr=Object.prototype.hasOwnProperty,Yr=e.unstable_scheduleCallback,ns=e.unstable_cancelCallback,rc=e.unstable_shouldYield,ac=e.unstable_requestPaint,Nt=e.unstable_now,sc=e.unstable_getCurrentPriorityLevel,G=e.unstable_ImmediatePriority,ue=e.unstable_UserBlockingPriority,xe=e.unstable_NormalPriority,De=e.unstable_LowPriority,Pe=e.unstable_IdlePriority,Zt=e.log,Xn=e.unstable_setDisableYieldValue,Rt=null,pt=null;function Pt(n){if(typeof Zt=="function"&&Xn(n),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Rt,n)}catch{}}var Xe=Math.clz32?Math.clz32:BT,vi=Math.log,wn=Math.LN2;function BT(n){return n>>>=0,n===0?32:31-(vi(n)/wn|0)|0}var Io=256,Uo=262144,Bo=4194304;function fr(n){var r=n&42;if(r!==0)return r;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Po(n,r,s){var l=n.pendingLanes;if(l===0)return 0;var f=0,h=n.suspendedLanes,b=n.pingedLanes;n=n.warmLanes;var S=l&134217727;return S!==0?(l=S&~h,l!==0?f=fr(l):(b&=S,b!==0?f=fr(b):s||(s=S&~n,s!==0&&(f=fr(s))))):(S=l&~h,S!==0?f=fr(S):b!==0?f=fr(b):s||(s=l&~n,s!==0&&(f=fr(s)))),f===0?0:r!==0&&r!==f&&(r&h)===0&&(h=f&-f,s=r&-r,h>=s||h===32&&(s&4194048)!==0)?r:f}function is(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function PT(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 lp(){var n=Bo;return Bo<<=1,(Bo&62914560)===0&&(Bo=4194304),n}function oc(n){for(var r=[],s=0;31>s;s++)r.push(n);return r}function rs(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function VT(n,r,s,l,f,h){var b=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var S=n.entanglements,_=n.expirationTimes,I=n.hiddenUpdates;for(s=b&~s;0<s;){var F=31-Xe(s),Q=1<<F;S[F]=0,_[F]=-1;var U=I[F];if(U!==null)for(I[F]=null,F=0;F<U.length;F++){var H=U[F];H!==null&&(H.lane&=-536870913)}s&=~Q}l!==0&&up(n,l,0),h!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=h&~(b&~r))}function up(n,r,s){n.pendingLanes|=r,n.suspendedLanes&=~r;var l=31-Xe(r);n.entangledLanes|=r,n.entanglements[l]=n.entanglements[l]|1073741824|s&261930}function cp(n,r){var s=n.entangledLanes|=r;for(n=n.entanglements;s;){var l=31-Xe(s),f=1<<l;f&r|n[l]&r&&(n[l]|=r),s&=~f}}function fp(n,r){var s=r&-r;return s=(s&42)!==0?1:lc(s),(s&(n.suspendedLanes|r))!==0?0:s}function lc(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function uc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function dp(){var n=W.p;return n!==0?n:(n=window.event,n===void 0?32:Zb(n.type))}function hp(n,r){var s=W.p;try{return W.p=n,r()}finally{W.p=s}}var xi=Math.random().toString(36).slice(2),St="__reactFiber$"+xi,Vt="__reactProps$"+xi,Xr="__reactContainer$"+xi,cc="__reactEvents$"+xi,HT="__reactListeners$"+xi,qT="__reactHandles$"+xi,mp="__reactResources$"+xi,as="__reactMarker$"+xi;function fc(n){delete n[St],delete n[Vt],delete n[cc],delete n[HT],delete n[qT]}function Kr(n){var r=n[St];if(r)return r;for(var s=n.parentNode;s;){if(r=s[Xr]||s[St]){if(s=r.alternate,r.child!==null||s!==null&&s.child!==null)for(n=Lb(n);n!==null;){if(s=n[St])return s;n=Lb(n)}return r}n=s,s=n.parentNode}return null}function Qr(n){if(n=n[St]||n[Xr]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function ss(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(a(33))}function Wr(n){var r=n[mp];return r||(r=n[mp]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function vt(n){n[as]=!0}var pp=new Set,gp={};function dr(n,r){Zr(n,r),Zr(n+"Capture",r)}function Zr(n,r){for(gp[n]=r,n=0;n<r.length;n++)pp.add(r[n])}var FT=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]*$"),yp={},bp={};function GT(n){return Gr.call(bp,n)?!0:Gr.call(yp,n)?!1:FT.test(n)?bp[n]=!0:(yp[n]=!0,!1)}function Vo(n,r,s){if(GT(r))if(s===null)n.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var l=r.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+s)}}function Ho(n,r,s){if(s===null)n.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+s)}}function Kn(n,r,s,l){if(l===null)n.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(r,s,""+l)}}function un(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function vp(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function YT(n,r,s){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,h=l.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return f.call(this)},set:function(b){s=""+b,h.call(this,b)}}),Object.defineProperty(n,r,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(b){s=""+b},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function dc(n){if(!n._valueTracker){var r=vp(n)?"checked":"value";n._valueTracker=YT(n,r,""+n[r])}}function xp(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var s=r.getValue(),l="";return n&&(l=vp(n)?n.checked?"true":"false":n.value),n=l,n!==s?(r.setValue(n),!0):!1}function qo(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var XT=/[\n"\\]/g;function cn(n){return n.replace(XT,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function hc(n,r,s,l,f,h,b,S){n.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?n.type=b:n.removeAttribute("type"),r!=null?b==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+un(r)):n.value!==""+un(r)&&(n.value=""+un(r)):b!=="submit"&&b!=="reset"||n.removeAttribute("value"),r!=null?mc(n,b,un(r)):s!=null?mc(n,b,un(s)):l!=null&&n.removeAttribute("value"),f==null&&h!=null&&(n.defaultChecked=!!h),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.name=""+un(S):n.removeAttribute("name")}function Sp(n,r,s,l,f,h,b,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),r!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||r!=null)){dc(n);return}s=s!=null?""+un(s):"",r=r!=null?""+un(r):s,S||r===n.value||(n.value=r),n.defaultValue=r}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=S?n.checked:!!l,n.defaultChecked=!!l,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(n.name=b),dc(n)}function mc(n,r,s){r==="number"&&qo(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function $r(n,r,s,l){if(n=n.options,r){r={};for(var f=0;f<s.length;f++)r["$"+s[f]]=!0;for(s=0;s<n.length;s++)f=r.hasOwnProperty("$"+n[s].value),n[s].selected!==f&&(n[s].selected=f),f&&l&&(n[s].defaultSelected=!0)}else{for(s=""+un(s),r=null,f=0;f<n.length;f++){if(n[f].value===s){n[f].selected=!0,l&&(n[f].defaultSelected=!0);return}r!==null||n[f].disabled||(r=n[f])}r!==null&&(r.selected=!0)}}function wp(n,r,s){if(r!=null&&(r=""+un(r),r!==n.value&&(n.value=r),s==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=s!=null?""+un(s):""}function Tp(n,r,s,l){if(r==null){if(l!=null){if(s!=null)throw Error(a(92));if(J(l)){if(1<l.length)throw Error(a(93));l=l[0]}s=l}s==null&&(s=""),r=s}s=un(r),n.defaultValue=s,l=n.textContent,l===s&&l!==""&&l!==null&&(n.value=l),dc(n)}function Jr(n,r){if(r){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=r;return}}n.textContent=r}var KT=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 Ep(n,r,s){var l=r.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":l?n.setProperty(r,s):typeof s!="number"||s===0||KT.has(r)?r==="float"?n.cssFloat=s:n[r]=(""+s).trim():n[r]=s+"px"}function Ap(n,r,s){if(r!=null&&typeof r!="object")throw Error(a(62));if(n=n.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||r!=null&&r.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var f in r)l=r[f],r.hasOwnProperty(f)&&s[f]!==l&&Ep(n,f,l)}else for(var h in r)r.hasOwnProperty(h)&&Ep(n,h,r[h])}function pc(n){if(n.indexOf("-")===-1)return!1;switch(n){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 QT=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"]]),WT=/^[\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 Fo(n){return WT.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Qn(){}var gc=null;function yc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ea=null,ta=null;function _p(n){var r=Qr(n);if(r&&(n=r.stateNode)){var s=n[Vt]||null;e:switch(n=r.stateNode,r.type){case"input":if(hc(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),r=s.name,s.type==="radio"&&r!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+cn(""+r)+'"][type="radio"]'),r=0;r<s.length;r++){var l=s[r];if(l!==n&&l.form===n.form){var f=l[Vt]||null;if(!f)throw Error(a(90));hc(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(r=0;r<s.length;r++)l=s[r],l.form===n.form&&xp(l)}break e;case"textarea":wp(n,s.value,s.defaultValue);break e;case"select":r=s.value,r!=null&&$r(n,!!s.multiple,r,!1)}}}var bc=!1;function Cp(n,r,s){if(bc)return n(r,s);bc=!0;try{var l=n(r);return l}finally{if(bc=!1,(ea!==null||ta!==null)&&(Nl(),ea&&(r=ea,n=ta,ta=ea=null,_p(r),n)))for(r=0;r<n.length;r++)_p(n[r])}}function os(n,r){var s=n.stateNode;if(s===null)return null;var l=s[Vt]||null;if(l===null)return null;s=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(a(231,r,typeof s));return s}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vc=!1;if(Wn)try{var ls={};Object.defineProperty(ls,"passive",{get:function(){vc=!0}}),window.addEventListener("test",ls,ls),window.removeEventListener("test",ls,ls)}catch{vc=!1}var Si=null,xc=null,Go=null;function kp(){if(Go)return Go;var n,r=xc,s=r.length,l,f="value"in Si?Si.value:Si.textContent,h=f.length;for(n=0;n<s&&r[n]===f[n];n++);var b=s-n;for(l=1;l<=b&&r[s-l]===f[h-l];l++);return Go=f.slice(n,1<l?1-l:void 0)}function Yo(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function Xo(){return!0}function Mp(){return!1}function Ht(n){function r(s,l,f,h,b){this._reactName=s,this._targetInst=f,this.type=l,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var S in n)n.hasOwnProperty(S)&&(s=n[S],this[S]=s?s(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Xo:Mp,this.isPropagationStopped=Mp,this}return y(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Xo)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Xo)},persist:function(){},isPersistent:Xo}),r}var hr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ko=Ht(hr),us=y({},hr,{view:0,detail:0}),ZT=Ht(us),Sc,wc,cs,Qo=y({},us,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ec,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==cs&&(cs&&n.type==="mousemove"?(Sc=n.screenX-cs.screenX,wc=n.screenY-cs.screenY):wc=Sc=0,cs=n),Sc)},movementY:function(n){return"movementY"in n?n.movementY:wc}}),Dp=Ht(Qo),$T=y({},Qo,{dataTransfer:0}),JT=Ht($T),eE=y({},us,{relatedTarget:0}),Tc=Ht(eE),tE=y({},hr,{animationName:0,elapsedTime:0,pseudoElement:0}),nE=Ht(tE),iE=y({},hr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),rE=Ht(iE),aE=y({},hr,{data:0}),Np=Ht(aE),sE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oE={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"},lE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uE(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=lE[n])?!!r[n]:!1}function Ec(){return uE}var cE=y({},us,{key:function(n){if(n.key){var r=sE[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=Yo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?oE[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ec,charCode:function(n){return n.type==="keypress"?Yo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Yo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),fE=Ht(cE),dE=y({},Qo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rp=Ht(dE),hE=y({},us,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ec}),mE=Ht(hE),pE=y({},hr,{propertyName:0,elapsedTime:0,pseudoElement:0}),gE=Ht(pE),yE=y({},Qo,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),bE=Ht(yE),vE=y({},hr,{newState:0,oldState:0}),xE=Ht(vE),SE=[9,13,27,32],Ac=Wn&&"CompositionEvent"in window,fs=null;Wn&&"documentMode"in document&&(fs=document.documentMode);var wE=Wn&&"TextEvent"in window&&!fs,Op=Wn&&(!Ac||fs&&8<fs&&11>=fs),zp=" ",Lp=!1;function jp(n,r){switch(n){case"keyup":return SE.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ip(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var na=!1;function TE(n,r){switch(n){case"compositionend":return Ip(r);case"keypress":return r.which!==32?null:(Lp=!0,zp);case"textInput":return n=r.data,n===zp&&Lp?null:n;default:return null}}function EE(n,r){if(na)return n==="compositionend"||!Ac&&jp(n,r)?(n=kp(),Go=xc=Si=null,na=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Op&&r.locale!=="ko"?null:r.data;default:return null}}var AE={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 Up(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!AE[n.type]:r==="textarea"}function Bp(n,r,s,l){ea?ta?ta.push(l):ta=[l]:ea=l,r=Ul(r,"onChange"),0<r.length&&(s=new Ko("onChange","change",null,s,l),n.push({event:s,listeners:r}))}var ds=null,hs=null;function _E(n){Sb(n,0)}function Wo(n){var r=ss(n);if(xp(r))return n}function Pp(n,r){if(n==="change")return r}var Vp=!1;if(Wn){var _c;if(Wn){var Cc="oninput"in document;if(!Cc){var Hp=document.createElement("div");Hp.setAttribute("oninput","return;"),Cc=typeof Hp.oninput=="function"}_c=Cc}else _c=!1;Vp=_c&&(!document.documentMode||9<document.documentMode)}function qp(){ds&&(ds.detachEvent("onpropertychange",Fp),hs=ds=null)}function Fp(n){if(n.propertyName==="value"&&Wo(hs)){var r=[];Bp(r,hs,n,yc(n)),Cp(_E,r)}}function CE(n,r,s){n==="focusin"?(qp(),ds=r,hs=s,ds.attachEvent("onpropertychange",Fp)):n==="focusout"&&qp()}function kE(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Wo(hs)}function ME(n,r){if(n==="click")return Wo(r)}function DE(n,r){if(n==="input"||n==="change")return Wo(r)}function NE(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var $t=typeof Object.is=="function"?Object.is:NE;function ms(n,r){if($t(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var s=Object.keys(n),l=Object.keys(r);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var f=s[l];if(!Gr.call(r,f)||!$t(n[f],r[f]))return!1}return!0}function Gp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Yp(n,r){var s=Gp(n);n=0;for(var l;s;){if(s.nodeType===3){if(l=n+s.textContent.length,n<=r&&l>=r)return{node:s,offset:r-n};n=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Gp(s)}}function Xp(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?Xp(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function Kp(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=qo(n.document);r instanceof n.HTMLIFrameElement;){try{var s=typeof r.contentWindow.location.href=="string"}catch{s=!1}if(s)n=r.contentWindow;else break;r=qo(n.document)}return r}function kc(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var RE=Wn&&"documentMode"in document&&11>=document.documentMode,ia=null,Mc=null,ps=null,Dc=!1;function Qp(n,r,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Dc||ia==null||ia!==qo(l)||(l=ia,"selectionStart"in l&&kc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ps&&ms(ps,l)||(ps=l,l=Ul(Mc,"onSelect"),0<l.length&&(r=new Ko("onSelect","select",null,r,s),n.push({event:r,listeners:l}),r.target=ia)))}function mr(n,r){var s={};return s[n.toLowerCase()]=r.toLowerCase(),s["Webkit"+n]="webkit"+r,s["Moz"+n]="moz"+r,s}var ra={animationend:mr("Animation","AnimationEnd"),animationiteration:mr("Animation","AnimationIteration"),animationstart:mr("Animation","AnimationStart"),transitionrun:mr("Transition","TransitionRun"),transitionstart:mr("Transition","TransitionStart"),transitioncancel:mr("Transition","TransitionCancel"),transitionend:mr("Transition","TransitionEnd")},Nc={},Wp={};Wn&&(Wp=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function pr(n){if(Nc[n])return Nc[n];if(!ra[n])return n;var r=ra[n],s;for(s in r)if(r.hasOwnProperty(s)&&s in Wp)return Nc[n]=r[s];return n}var Zp=pr("animationend"),$p=pr("animationiteration"),Jp=pr("animationstart"),OE=pr("transitionrun"),zE=pr("transitionstart"),LE=pr("transitioncancel"),eg=pr("transitionend"),tg=new Map,Rc="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(" ");Rc.push("scrollEnd");function Tn(n,r){tg.set(n,r),dr(r,[n])}var Zo=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},fn=[],aa=0,Oc=0;function $o(){for(var n=aa,r=Oc=aa=0;r<n;){var s=fn[r];fn[r++]=null;var l=fn[r];fn[r++]=null;var f=fn[r];fn[r++]=null;var h=fn[r];if(fn[r++]=null,l!==null&&f!==null){var b=l.pending;b===null?f.next=f:(f.next=b.next,b.next=f),l.pending=f}h!==0&&ng(s,f,h)}}function Jo(n,r,s,l){fn[aa++]=n,fn[aa++]=r,fn[aa++]=s,fn[aa++]=l,Oc|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function zc(n,r,s,l){return Jo(n,r,s,l),el(n)}function gr(n,r){return Jo(n,null,null,r),el(n)}function ng(n,r,s){n.lanes|=s;var l=n.alternate;l!==null&&(l.lanes|=s);for(var f=!1,h=n.return;h!==null;)h.childLanes|=s,l=h.alternate,l!==null&&(l.childLanes|=s),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(f=!0)),n=h,h=h.return;return n.tag===3?(h=n.stateNode,f&&r!==null&&(f=31-Xe(s),n=h.hiddenUpdates,l=n[f],l===null?n[f]=[r]:l.push(r),r.lane=s|536870912),h):null}function el(n){if(50<Is)throw Is=0,Ff=null,Error(a(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var sa={};function jE(n,r,s,l){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(n,r,s,l){return new jE(n,r,s,l)}function Lc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Zn(n,r){var s=n.alternate;return s===null?(s=Jt(n.tag,r,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=r,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,r=n.dependencies,s.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function ig(n,r){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,r=s.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function tl(n,r,s,l,f,h){var b=0;if(l=n,typeof n=="function")Lc(n)&&(b=1);else if(typeof n=="string")b=VA(n,s,P.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case ee:return n=Jt(31,s,r,f),n.elementType=ee,n.lanes=h,n;case M:return yr(s.children,f,h,r);case N:b=8,f|=24;break;case C:return n=Jt(12,s,r,f|2),n.elementType=C,n.lanes=h,n;case Z:return n=Jt(13,s,r,f),n.elementType=Z,n.lanes=h,n;case z:return n=Jt(19,s,r,f),n.elementType=z,n.lanes=h,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case L:b=10;break e;case V:b=9;break e;case Y:b=11;break e;case K:b=14;break e;case B:b=16,l=null;break e}b=29,s=Error(a(130,n===null?"null":typeof n,"")),l=null}return r=Jt(b,s,r,f),r.elementType=n,r.type=l,r.lanes=h,r}function yr(n,r,s,l){return n=Jt(7,n,l,r),n.lanes=s,n}function jc(n,r,s){return n=Jt(6,n,null,r),n.lanes=s,n}function rg(n){var r=Jt(18,null,null,0);return r.stateNode=n,r}function Ic(n,r,s){return r=Jt(4,n.children!==null?n.children:[],n.key,r),r.lanes=s,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var ag=new WeakMap;function dn(n,r){if(typeof n=="object"&&n!==null){var s=ag.get(n);return s!==void 0?s:(r={value:n,source:r,stack:jo(r)},ag.set(n,r),r)}return{value:n,source:r,stack:jo(r)}}var oa=[],la=0,nl=null,gs=0,hn=[],mn=0,wi=null,On=1,zn="";function $n(n,r){oa[la++]=gs,oa[la++]=nl,nl=n,gs=r}function sg(n,r,s){hn[mn++]=On,hn[mn++]=zn,hn[mn++]=wi,wi=n;var l=On;n=zn;var f=32-Xe(l)-1;l&=~(1<<f),s+=1;var h=32-Xe(r)+f;if(30<h){var b=f-f%5;h=(l&(1<<b)-1).toString(32),l>>=b,f-=b,On=1<<32-Xe(r)+f|s<<f|l,zn=h+n}else On=1<<h|s<<f|l,zn=n}function Uc(n){n.return!==null&&($n(n,1),sg(n,1,0))}function Bc(n){for(;n===nl;)nl=oa[--la],oa[la]=null,gs=oa[--la],oa[la]=null;for(;n===wi;)wi=hn[--mn],hn[mn]=null,zn=hn[--mn],hn[mn]=null,On=hn[--mn],hn[mn]=null}function og(n,r){hn[mn++]=On,hn[mn++]=zn,hn[mn++]=wi,On=r.id,zn=r.overflow,wi=n}var wt=null,Je=null,Le=!1,Ti=null,pn=!1,Pc=Error(a(519));function Ei(n){var r=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ys(dn(r,n)),Pc}function lg(n){var r=n.stateNode,s=n.type,l=n.memoizedProps;switch(r[St]=n,r[Vt]=l,s){case"dialog":Re("cancel",r),Re("close",r);break;case"iframe":case"object":case"embed":Re("load",r);break;case"video":case"audio":for(s=0;s<Bs.length;s++)Re(Bs[s],r);break;case"source":Re("error",r);break;case"img":case"image":case"link":Re("error",r),Re("load",r);break;case"details":Re("toggle",r);break;case"input":Re("invalid",r),Sp(r,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Re("invalid",r);break;case"textarea":Re("invalid",r),Tp(r,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||r.textContent===""+s||l.suppressHydrationWarning===!0||Ab(r.textContent,s)?(l.popover!=null&&(Re("beforetoggle",r),Re("toggle",r)),l.onScroll!=null&&Re("scroll",r),l.onScrollEnd!=null&&Re("scrollend",r),l.onClick!=null&&(r.onclick=Qn),r=!0):r=!1,r||Ei(n,!0)}function ug(n){for(wt=n.return;wt;)switch(wt.tag){case 5:case 31:case 13:pn=!1;return;case 27:case 3:pn=!0;return;default:wt=wt.return}}function ua(n){if(n!==wt)return!1;if(!Le)return ug(n),Le=!0,!1;var r=n.tag,s;if((s=r!==3&&r!==27)&&((s=r===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||ad(n.type,n.memoizedProps)),s=!s),s&&Je&&Ei(n),ug(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));Je=zb(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));Je=zb(n)}else r===27?(r=Je,Ui(n.type)?(n=cd,cd=null,Je=n):Je=r):Je=wt?yn(n.stateNode.nextSibling):null;return!0}function br(){Je=wt=null,Le=!1}function Vc(){var n=Ti;return n!==null&&(Yt===null?Yt=n:Yt.push.apply(Yt,n),Ti=null),n}function ys(n){Ti===null?Ti=[n]:Ti.push(n)}var Hc=k(null),vr=null,Jn=null;function Ai(n,r,s){E(Hc,r._currentValue),r._currentValue=s}function ei(n){n._currentValue=Hc.current,q(Hc)}function qc(n,r,s){for(;n!==null;){var l=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),n===s)break;n=n.return}}function Fc(n,r,s,l){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var h=f.dependencies;if(h!==null){var b=f.child;h=h.firstContext;e:for(;h!==null;){var S=h;h=f;for(var _=0;_<r.length;_++)if(S.context===r[_]){h.lanes|=s,S=h.alternate,S!==null&&(S.lanes|=s),qc(h.return,s,n),l||(b=null);break e}h=S.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(a(341));b.lanes|=s,h=b.alternate,h!==null&&(h.lanes|=s),qc(b,s,n),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===n){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function ca(n,r,s,l){n=null;for(var f=r,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var S=f.type;$t(f.pendingProps.value,b.value)||(n!==null?n.push(S):n=[S])}}else if(f===ve.current){if(b=f.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(Fs):n=[Fs])}f=f.return}n!==null&&Fc(r,n,s,l),r.flags|=262144}function il(n){for(n=n.firstContext;n!==null;){if(!$t(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function xr(n){vr=n,Jn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Tt(n){return cg(vr,n)}function rl(n,r){return vr===null&&xr(n),cg(n,r)}function cg(n,r){var s=r._currentValue;if(r={context:r,memoizedValue:s,next:null},Jn===null){if(n===null)throw Error(a(308));Jn=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else Jn=Jn.next=r;return s}var IE=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(s,l){n.push(l)}};this.abort=function(){r.aborted=!0,n.forEach(function(s){return s()})}},UE=e.unstable_scheduleCallback,BE=e.unstable_NormalPriority,ut={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gc(){return{controller:new IE,data:new Map,refCount:0}}function bs(n){n.refCount--,n.refCount===0&&UE(BE,function(){n.controller.abort()})}var vs=null,Yc=0,fa=0,da=null;function PE(n,r){if(vs===null){var s=vs=[];Yc=0,fa=Wf(),da={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Yc++,r.then(fg,fg),r}function fg(){if(--Yc===0&&vs!==null){da!==null&&(da.status="fulfilled");var n=vs;vs=null,fa=0,da=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function VE(n,r){var s=[],l={status:"pending",value:null,reason:null,then:function(f){s.push(f)}};return n.then(function(){l.status="fulfilled",l.value=r;for(var f=0;f<s.length;f++)(0,s[f])(r)},function(f){for(l.status="rejected",l.reason=f,f=0;f<s.length;f++)(0,s[f])(void 0)}),l}var dg=R.S;R.S=function(n,r){Qy=Nt(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&PE(n,r),dg!==null&&dg(n,r)};var Sr=k(null);function Xc(){var n=Sr.current;return n!==null?n:Ke.pooledCache}function al(n,r){r===null?E(Sr,Sr.current):E(Sr,r.pool)}function hg(){var n=Xc();return n===null?null:{parent:ut._currentValue,pool:n}}var ha=Error(a(460)),Kc=Error(a(474)),sl=Error(a(542)),ol={then:function(){}};function mg(n){return n=n.status,n==="fulfilled"||n==="rejected"}function pg(n,r,s){switch(s=n[s],s===void 0?n.push(r):s!==r&&(r.then(Qn,Qn),r=s),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,yg(n),n;default:if(typeof r.status=="string")r.then(Qn,Qn);else{if(n=Ke,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=r,n.status="pending",n.then(function(l){if(r.status==="pending"){var f=r;f.status="fulfilled",f.value=l}},function(l){if(r.status==="pending"){var f=r;f.status="rejected",f.reason=l}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,yg(n),n}throw Tr=r,ha}}function wr(n){try{var r=n._init;return r(n._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Tr=s,ha):s}}var Tr=null;function gg(){if(Tr===null)throw Error(a(459));var n=Tr;return Tr=null,n}function yg(n){if(n===ha||n===sl)throw Error(a(483))}var ma=null,xs=0;function ll(n){var r=xs;return xs+=1,ma===null&&(ma=[]),pg(ma,n,r)}function Ss(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function ul(n,r){throw r.$$typeof===v?Error(a(525)):(n=Object.prototype.toString.call(r),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function bg(n){function r(O,D){if(n){var j=O.deletions;j===null?(O.deletions=[D],O.flags|=16):j.push(D)}}function s(O,D){if(!n)return null;for(;D!==null;)r(O,D),D=D.sibling;return null}function l(O){for(var D=new Map;O!==null;)O.key!==null?D.set(O.key,O):D.set(O.index,O),O=O.sibling;return D}function f(O,D){return O=Zn(O,D),O.index=0,O.sibling=null,O}function h(O,D,j){return O.index=j,n?(j=O.alternate,j!==null?(j=j.index,j<D?(O.flags|=67108866,D):j):(O.flags|=67108866,D)):(O.flags|=1048576,D)}function b(O){return n&&O.alternate===null&&(O.flags|=67108866),O}function S(O,D,j,X){return D===null||D.tag!==6?(D=jc(j,O.mode,X),D.return=O,D):(D=f(D,j),D.return=O,D)}function _(O,D,j,X){var ye=j.type;return ye===M?F(O,D,j.props.children,X,j.key):D!==null&&(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===B&&wr(ye)===D.type)?(D=f(D,j.props),Ss(D,j),D.return=O,D):(D=tl(j.type,j.key,j.props,null,O.mode,X),Ss(D,j),D.return=O,D)}function I(O,D,j,X){return D===null||D.tag!==4||D.stateNode.containerInfo!==j.containerInfo||D.stateNode.implementation!==j.implementation?(D=Ic(j,O.mode,X),D.return=O,D):(D=f(D,j.children||[]),D.return=O,D)}function F(O,D,j,X,ye){return D===null||D.tag!==7?(D=yr(j,O.mode,X,ye),D.return=O,D):(D=f(D,j),D.return=O,D)}function Q(O,D,j){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=jc(""+D,O.mode,j),D.return=O,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return j=tl(D.type,D.key,D.props,null,O.mode,j),Ss(j,D),j.return=O,j;case A:return D=Ic(D,O.mode,j),D.return=O,D;case B:return D=wr(D),Q(O,D,j)}if(J(D)||ne(D))return D=yr(D,O.mode,j,null),D.return=O,D;if(typeof D.then=="function")return Q(O,ll(D),j);if(D.$$typeof===L)return Q(O,rl(O,D),j);ul(O,D)}return null}function U(O,D,j,X){var ye=D!==null?D.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return ye!==null?null:S(O,D,""+j,X);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case x:return j.key===ye?_(O,D,j,X):null;case A:return j.key===ye?I(O,D,j,X):null;case B:return j=wr(j),U(O,D,j,X)}if(J(j)||ne(j))return ye!==null?null:F(O,D,j,X,null);if(typeof j.then=="function")return U(O,D,ll(j),X);if(j.$$typeof===L)return U(O,D,rl(O,j),X);ul(O,j)}return null}function H(O,D,j,X,ye){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return O=O.get(j)||null,S(D,O,""+X,ye);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case x:return O=O.get(X.key===null?j:X.key)||null,_(D,O,X,ye);case A:return O=O.get(X.key===null?j:X.key)||null,I(D,O,X,ye);case B:return X=wr(X),H(O,D,j,X,ye)}if(J(X)||ne(X))return O=O.get(j)||null,F(D,O,X,ye,null);if(typeof X.then=="function")return H(O,D,j,ll(X),ye);if(X.$$typeof===L)return H(O,D,j,rl(D,X),ye);ul(D,X)}return null}function ce(O,D,j,X){for(var ye=null,je=null,pe=D,Ce=D=0,ze=null;pe!==null&&Ce<j.length;Ce++){pe.index>Ce?(ze=pe,pe=null):ze=pe.sibling;var Ie=U(O,pe,j[Ce],X);if(Ie===null){pe===null&&(pe=ze);break}n&&pe&&Ie.alternate===null&&r(O,pe),D=h(Ie,D,Ce),je===null?ye=Ie:je.sibling=Ie,je=Ie,pe=ze}if(Ce===j.length)return s(O,pe),Le&&$n(O,Ce),ye;if(pe===null){for(;Ce<j.length;Ce++)pe=Q(O,j[Ce],X),pe!==null&&(D=h(pe,D,Ce),je===null?ye=pe:je.sibling=pe,je=pe);return Le&&$n(O,Ce),ye}for(pe=l(pe);Ce<j.length;Ce++)ze=H(pe,O,Ce,j[Ce],X),ze!==null&&(n&&ze.alternate!==null&&pe.delete(ze.key===null?Ce:ze.key),D=h(ze,D,Ce),je===null?ye=ze:je.sibling=ze,je=ze);return n&&pe.forEach(function(qi){return r(O,qi)}),Le&&$n(O,Ce),ye}function be(O,D,j,X){if(j==null)throw Error(a(151));for(var ye=null,je=null,pe=D,Ce=D=0,ze=null,Ie=j.next();pe!==null&&!Ie.done;Ce++,Ie=j.next()){pe.index>Ce?(ze=pe,pe=null):ze=pe.sibling;var qi=U(O,pe,Ie.value,X);if(qi===null){pe===null&&(pe=ze);break}n&&pe&&qi.alternate===null&&r(O,pe),D=h(qi,D,Ce),je===null?ye=qi:je.sibling=qi,je=qi,pe=ze}if(Ie.done)return s(O,pe),Le&&$n(O,Ce),ye;if(pe===null){for(;!Ie.done;Ce++,Ie=j.next())Ie=Q(O,Ie.value,X),Ie!==null&&(D=h(Ie,D,Ce),je===null?ye=Ie:je.sibling=Ie,je=Ie);return Le&&$n(O,Ce),ye}for(pe=l(pe);!Ie.done;Ce++,Ie=j.next())Ie=H(pe,O,Ce,Ie.value,X),Ie!==null&&(n&&Ie.alternate!==null&&pe.delete(Ie.key===null?Ce:Ie.key),D=h(Ie,D,Ce),je===null?ye=Ie:je.sibling=Ie,je=Ie);return n&&pe.forEach(function($A){return r(O,$A)}),Le&&$n(O,Ce),ye}function Ye(O,D,j,X){if(typeof j=="object"&&j!==null&&j.type===M&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case x:e:{for(var ye=j.key;D!==null;){if(D.key===ye){if(ye=j.type,ye===M){if(D.tag===7){s(O,D.sibling),X=f(D,j.props.children),X.return=O,O=X;break e}}else if(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===B&&wr(ye)===D.type){s(O,D.sibling),X=f(D,j.props),Ss(X,j),X.return=O,O=X;break e}s(O,D);break}else r(O,D);D=D.sibling}j.type===M?(X=yr(j.props.children,O.mode,X,j.key),X.return=O,O=X):(X=tl(j.type,j.key,j.props,null,O.mode,X),Ss(X,j),X.return=O,O=X)}return b(O);case A:e:{for(ye=j.key;D!==null;){if(D.key===ye)if(D.tag===4&&D.stateNode.containerInfo===j.containerInfo&&D.stateNode.implementation===j.implementation){s(O,D.sibling),X=f(D,j.children||[]),X.return=O,O=X;break e}else{s(O,D);break}else r(O,D);D=D.sibling}X=Ic(j,O.mode,X),X.return=O,O=X}return b(O);case B:return j=wr(j),Ye(O,D,j,X)}if(J(j))return ce(O,D,j,X);if(ne(j)){if(ye=ne(j),typeof ye!="function")throw Error(a(150));return j=ye.call(j),be(O,D,j,X)}if(typeof j.then=="function")return Ye(O,D,ll(j),X);if(j.$$typeof===L)return Ye(O,D,rl(O,j),X);ul(O,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,D!==null&&D.tag===6?(s(O,D.sibling),X=f(D,j),X.return=O,O=X):(s(O,D),X=jc(j,O.mode,X),X.return=O,O=X),b(O)):s(O,D)}return function(O,D,j,X){try{xs=0;var ye=Ye(O,D,j,X);return ma=null,ye}catch(pe){if(pe===ha||pe===sl)throw pe;var je=Jt(29,pe,null,O.mode);return je.lanes=X,je.return=O,je}finally{}}}var Er=bg(!0),vg=bg(!1),_i=!1;function Qc(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wc(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ci(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ki(n,r,s){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Ue&2)!==0){var f=l.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),l.pending=r,r=el(n),ng(n,null,s),r}return Jo(n,l,r,s),el(n)}function ws(n,r,s){if(r=r.updateQueue,r!==null&&(r=r.shared,(s&4194048)!==0)){var l=r.lanes;l&=n.pendingLanes,s|=l,r.lanes=s,cp(n,s)}}function Zc(n,r){var s=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var f=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var b={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,s=s.next}while(s!==null);h===null?f=h=r:h=h.next=r}else f=h=r;s={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=r:n.next=r,s.lastBaseUpdate=r}var $c=!1;function Ts(){if($c){var n=da;if(n!==null)throw n}}function Es(n,r,s,l){$c=!1;var f=n.updateQueue;_i=!1;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var _=S,I=_.next;_.next=null,b===null?h=I:b.next=I,b=_;var F=n.alternate;F!==null&&(F=F.updateQueue,S=F.lastBaseUpdate,S!==b&&(S===null?F.firstBaseUpdate=I:S.next=I,F.lastBaseUpdate=_))}if(h!==null){var Q=f.baseState;b=0,F=I=_=null,S=h;do{var U=S.lane&-536870913,H=U!==S.lane;if(H?(Oe&U)===U:(l&U)===U){U!==0&&U===fa&&($c=!0),F!==null&&(F=F.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var ce=n,be=S;U=r;var Ye=s;switch(be.tag){case 1:if(ce=be.payload,typeof ce=="function"){Q=ce.call(Ye,Q,U);break e}Q=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=be.payload,U=typeof ce=="function"?ce.call(Ye,Q,U):ce,U==null)break e;Q=y({},Q,U);break e;case 2:_i=!0}}U=S.callback,U!==null&&(n.flags|=64,H&&(n.flags|=8192),H=f.callbacks,H===null?f.callbacks=[U]:H.push(U))}else H={lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},F===null?(I=F=H,_=Q):F=F.next=H,b|=U;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;H=S,S=H.next,H.next=null,f.lastBaseUpdate=H,f.shared.pending=null}}while(!0);F===null&&(_=Q),f.baseState=_,f.firstBaseUpdate=I,f.lastBaseUpdate=F,h===null&&(f.shared.lanes=0),Oi|=b,n.lanes=b,n.memoizedState=Q}}function xg(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function Sg(n,r){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)xg(s[n],r)}var pa=k(null),cl=k(0);function wg(n,r){n=ui,E(cl,n),E(pa,r),ui=n|r.baseLanes}function Jc(){E(cl,ui),E(pa,pa.current)}function ef(){ui=cl.current,q(pa),q(cl)}var en=k(null),gn=null;function Mi(n){var r=n.alternate;E(ot,ot.current&1),E(en,n),gn===null&&(r===null||pa.current!==null||r.memoizedState!==null)&&(gn=n)}function tf(n){E(ot,ot.current),E(en,n),gn===null&&(gn=n)}function Tg(n){n.tag===22?(E(ot,ot.current),E(en,n),gn===null&&(gn=n)):Di()}function Di(){E(ot,ot.current),E(en,en.current)}function tn(n){q(en),gn===n&&(gn=null),q(ot)}var ot=k(0);function fl(n){for(var r=n;r!==null;){if(r.tag===13){var s=r.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||ld(s)||ud(s)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var ti=0,_e=null,Fe=null,ct=null,dl=!1,ga=!1,Ar=!1,hl=0,As=0,ya=null,HE=0;function it(){throw Error(a(321))}function nf(n,r){if(r===null)return!1;for(var s=0;s<r.length&&s<n.length;s++)if(!$t(n[s],r[s]))return!1;return!0}function rf(n,r,s,l,f,h){return ti=h,_e=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,R.H=n===null||n.memoizedState===null?sy:vf,Ar=!1,h=s(l,f),Ar=!1,ga&&(h=Ag(r,s,l,f)),Eg(n),h}function Eg(n){R.H=ks;var r=Fe!==null&&Fe.next!==null;if(ti=0,ct=Fe=_e=null,dl=!1,As=0,ya=null,r)throw Error(a(300));n===null||ft||(n=n.dependencies,n!==null&&il(n)&&(ft=!0))}function Ag(n,r,s,l){_e=n;var f=0;do{if(ga&&(ya=null),As=0,ga=!1,25<=f)throw Error(a(301));if(f+=1,ct=Fe=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}R.H=oy,h=r(s,l)}while(ga);return h}function qE(){var n=R.H,r=n.useState()[0];return r=typeof r.then=="function"?_s(r):r,n=n.useState()[0],(Fe!==null?Fe.memoizedState:null)!==n&&(_e.flags|=1024),r}function af(){var n=hl!==0;return hl=0,n}function sf(n,r,s){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~s}function of(n){if(dl){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}dl=!1}ti=0,ct=Fe=_e=null,ga=!1,As=hl=0,ya=null}function Ot(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?_e.memoizedState=ct=n:ct=ct.next=n,ct}function lt(){if(Fe===null){var n=_e.alternate;n=n!==null?n.memoizedState:null}else n=Fe.next;var r=ct===null?_e.memoizedState:ct.next;if(r!==null)ct=r,Fe=n;else{if(n===null)throw _e.alternate===null?Error(a(467)):Error(a(310));Fe=n,n={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},ct===null?_e.memoizedState=ct=n:ct=ct.next=n}return ct}function ml(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _s(n){var r=As;return As+=1,ya===null&&(ya=[]),n=pg(ya,n,r),r=_e,(ct===null?r.memoizedState:ct.next)===null&&(r=r.alternate,R.H=r===null||r.memoizedState===null?sy:vf),n}function pl(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return _s(n);if(n.$$typeof===L)return Tt(n)}throw Error(a(438,String(n)))}function lf(n){var r=null,s=_e.updateQueue;if(s!==null&&(r=s.memoCache),r==null){var l=_e.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(r={data:l.data.map(function(f){return f.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),s===null&&(s=ml(),_e.updateQueue=s),s.memoCache=r,s=r.data[r.index],s===void 0)for(s=r.data[r.index]=Array(n),l=0;l<n;l++)s[l]=ie;return r.index++,s}function ni(n,r){return typeof r=="function"?r(n):r}function gl(n){var r=lt();return uf(r,Fe,n)}function uf(n,r,s){var l=n.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=s;var f=n.baseQueue,h=l.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}r.baseQueue=f=h,l.pending=null}if(h=n.baseState,f===null)n.memoizedState=h;else{r=f.next;var S=b=null,_=null,I=r,F=!1;do{var Q=I.lane&-536870913;if(Q!==I.lane?(Oe&Q)===Q:(ti&Q)===Q){var U=I.revertLane;if(U===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),Q===fa&&(F=!0);else if((ti&U)===U){I=I.next,U===fa&&(F=!0);continue}else Q={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},_===null?(S=_=Q,b=h):_=_.next=Q,_e.lanes|=U,Oi|=U;Q=I.action,Ar&&s(h,Q),h=I.hasEagerState?I.eagerState:s(h,Q)}else U={lane:Q,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},_===null?(S=_=U,b=h):_=_.next=U,_e.lanes|=Q,Oi|=Q;I=I.next}while(I!==null&&I!==r);if(_===null?b=h:_.next=S,!$t(h,n.memoizedState)&&(ft=!0,F&&(s=da,s!==null)))throw s;n.memoizedState=h,n.baseState=b,n.baseQueue=_,l.lastRenderedState=h}return f===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function cf(n){var r=lt(),s=r.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=n;var l=s.dispatch,f=s.pending,h=r.memoizedState;if(f!==null){s.pending=null;var b=f=f.next;do h=n(h,b.action),b=b.next;while(b!==f);$t(h,r.memoizedState)||(ft=!0),r.memoizedState=h,r.baseQueue===null&&(r.baseState=h),s.lastRenderedState=h}return[h,l]}function _g(n,r,s){var l=_e,f=lt(),h=Le;if(h){if(s===void 0)throw Error(a(407));s=s()}else s=r();var b=!$t((Fe||f).memoizedState,s);if(b&&(f.memoizedState=s,ft=!0),f=f.queue,hf(Mg.bind(null,l,f,n),[n]),f.getSnapshot!==r||b||ct!==null&&ct.memoizedState.tag&1){if(l.flags|=2048,ba(9,{destroy:void 0},kg.bind(null,l,f,s,r),null),Ke===null)throw Error(a(349));h||(ti&127)!==0||Cg(l,r,s)}return s}function Cg(n,r,s){n.flags|=16384,n={getSnapshot:r,value:s},r=_e.updateQueue,r===null?(r=ml(),_e.updateQueue=r,r.stores=[n]):(s=r.stores,s===null?r.stores=[n]:s.push(n))}function kg(n,r,s,l){r.value=s,r.getSnapshot=l,Dg(r)&&Ng(n)}function Mg(n,r,s){return s(function(){Dg(r)&&Ng(n)})}function Dg(n){var r=n.getSnapshot;n=n.value;try{var s=r();return!$t(n,s)}catch{return!0}}function Ng(n){var r=gr(n,2);r!==null&&Xt(r,n,2)}function ff(n){var r=Ot();if(typeof n=="function"){var s=n;if(n=s(),Ar){Pt(!0);try{s()}finally{Pt(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:n},r}function Rg(n,r,s,l){return n.baseState=s,uf(n,Fe,typeof l=="function"?l:ni)}function FE(n,r,s,l,f){if(vl(n))throw Error(a(485));if(n=r.action,n!==null){var h={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};R.T!==null?s(!0):h.isTransition=!1,l(h),s=r.pending,s===null?(h.next=r.pending=h,Og(r,h)):(h.next=s.next,r.pending=s.next=h)}}function Og(n,r){var s=r.action,l=r.payload,f=n.state;if(r.isTransition){var h=R.T,b={};R.T=b;try{var S=s(f,l),_=R.S;_!==null&&_(b,S),zg(n,r,S)}catch(I){df(n,r,I)}finally{h!==null&&b.types!==null&&(h.types=b.types),R.T=h}}else try{h=s(f,l),zg(n,r,h)}catch(I){df(n,r,I)}}function zg(n,r,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){Lg(n,r,l)},function(l){return df(n,r,l)}):Lg(n,r,s)}function Lg(n,r,s){r.status="fulfilled",r.value=s,jg(r),n.state=s,r=n.pending,r!==null&&(s=r.next,s===r?n.pending=null:(s=s.next,r.next=s,Og(n,s)))}function df(n,r,s){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do r.status="rejected",r.reason=s,jg(r),r=r.next;while(r!==l)}n.action=null}function jg(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function Ig(n,r){return r}function Ug(n,r){if(Le){var s=Ke.formState;if(s!==null){e:{var l=_e;if(Le){if(Je){t:{for(var f=Je,h=pn;f.nodeType!==8;){if(!h){f=null;break t}if(f=yn(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Je=yn(f.nextSibling),l=f.data==="F!";break e}}Ei(l)}l=!1}l&&(r=s[0])}}return s=Ot(),s.memoizedState=s.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ig,lastRenderedState:r},s.queue=l,s=iy.bind(null,_e,l),l.dispatch=s,l=ff(!1),h=bf.bind(null,_e,!1,l.queue),l=Ot(),f={state:r,dispatch:null,action:n,pending:null},l.queue=f,s=FE.bind(null,_e,f,h,s),f.dispatch=s,l.memoizedState=n,[r,s,!1]}function Bg(n){var r=lt();return Pg(r,Fe,n)}function Pg(n,r,s){if(r=uf(n,r,Ig)[0],n=gl(ni)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var l=_s(r)}catch(b){throw b===ha?sl:b}else l=r;r=lt();var f=r.queue,h=f.dispatch;return s!==r.memoizedState&&(_e.flags|=2048,ba(9,{destroy:void 0},GE.bind(null,f,s),null)),[l,h,n]}function GE(n,r){n.action=r}function Vg(n){var r=lt(),s=Fe;if(s!==null)return Pg(r,s,n);lt(),r=r.memoizedState,s=lt();var l=s.queue.dispatch;return s.memoizedState=n,[r,l,!1]}function ba(n,r,s,l){return n={tag:n,create:s,deps:l,inst:r,next:null},r=_e.updateQueue,r===null&&(r=ml(),_e.updateQueue=r),s=r.lastEffect,s===null?r.lastEffect=n.next=n:(l=s.next,s.next=n,n.next=l,r.lastEffect=n),n}function Hg(){return lt().memoizedState}function yl(n,r,s,l){var f=Ot();_e.flags|=n,f.memoizedState=ba(1|r,{destroy:void 0},s,l===void 0?null:l)}function bl(n,r,s,l){var f=lt();l=l===void 0?null:l;var h=f.memoizedState.inst;Fe!==null&&l!==null&&nf(l,Fe.memoizedState.deps)?f.memoizedState=ba(r,h,s,l):(_e.flags|=n,f.memoizedState=ba(1|r,h,s,l))}function qg(n,r){yl(8390656,8,n,r)}function hf(n,r){bl(2048,8,n,r)}function YE(n){_e.flags|=4;var r=_e.updateQueue;if(r===null)r=ml(),_e.updateQueue=r,r.events=[n];else{var s=r.events;s===null?r.events=[n]:s.push(n)}}function Fg(n){var r=lt().memoizedState;return YE({ref:r,nextImpl:n}),function(){if((Ue&2)!==0)throw Error(a(440));return r.impl.apply(void 0,arguments)}}function Gg(n,r){return bl(4,2,n,r)}function Yg(n,r){return bl(4,4,n,r)}function Xg(n,r){if(typeof r=="function"){n=n();var s=r(n);return function(){typeof s=="function"?s():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function Kg(n,r,s){s=s!=null?s.concat([n]):null,bl(4,4,Xg.bind(null,r,n),s)}function mf(){}function Qg(n,r){var s=lt();r=r===void 0?null:r;var l=s.memoizedState;return r!==null&&nf(r,l[1])?l[0]:(s.memoizedState=[n,r],n)}function Wg(n,r){var s=lt();r=r===void 0?null:r;var l=s.memoizedState;if(r!==null&&nf(r,l[1]))return l[0];if(l=n(),Ar){Pt(!0);try{n()}finally{Pt(!1)}}return s.memoizedState=[l,r],l}function pf(n,r,s){return s===void 0||(ti&1073741824)!==0&&(Oe&261930)===0?n.memoizedState=r:(n.memoizedState=s,n=Zy(),_e.lanes|=n,Oi|=n,s)}function Zg(n,r,s,l){return $t(s,r)?s:pa.current!==null?(n=pf(n,s,l),$t(n,r)||(ft=!0),n):(ti&42)===0||(ti&1073741824)!==0&&(Oe&261930)===0?(ft=!0,n.memoizedState=s):(n=Zy(),_e.lanes|=n,Oi|=n,r)}function $g(n,r,s,l,f){var h=W.p;W.p=h!==0&&8>h?h:8;var b=R.T,S={};R.T=S,bf(n,!1,r,s);try{var _=f(),I=R.S;if(I!==null&&I(S,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var F=VE(_,l);Cs(n,r,F,an(n))}else Cs(n,r,l,an(n))}catch(Q){Cs(n,r,{then:function(){},status:"rejected",reason:Q},an())}finally{W.p=h,b!==null&&S.types!==null&&(b.types=S.types),R.T=b}}function XE(){}function gf(n,r,s,l){if(n.tag!==5)throw Error(a(476));var f=Jg(n).queue;$g(n,f,r,oe,s===null?XE:function(){return ey(n),s(l)})}function Jg(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:oe},next:null};var s={};return r.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:s},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function ey(n){var r=Jg(n);r.next===null&&(r=n.alternate.memoizedState),Cs(n,r.next.queue,{},an())}function yf(){return Tt(Fs)}function ty(){return lt().memoizedState}function ny(){return lt().memoizedState}function KE(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var s=an();n=Ci(s);var l=ki(r,n,s);l!==null&&(Xt(l,r,s),ws(l,r,s)),r={cache:Gc()},n.payload=r;return}r=r.return}}function QE(n,r,s){var l=an();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},vl(n)?ry(r,s):(s=zc(n,r,s,l),s!==null&&(Xt(s,n,l),ay(s,r,l)))}function iy(n,r,s){var l=an();Cs(n,r,s,l)}function Cs(n,r,s,l){var f={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(vl(n))ry(r,f);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=r.lastRenderedReducer,h!==null))try{var b=r.lastRenderedState,S=h(b,s);if(f.hasEagerState=!0,f.eagerState=S,$t(S,b))return Jo(n,r,f,0),Ke===null&&$o(),!1}catch{}finally{}if(s=zc(n,r,f,l),s!==null)return Xt(s,n,l),ay(s,r,l),!0}return!1}function bf(n,r,s,l){if(l={lane:2,revertLane:Wf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},vl(n)){if(r)throw Error(a(479))}else r=zc(n,s,l,2),r!==null&&Xt(r,n,2)}function vl(n){var r=n.alternate;return n===_e||r!==null&&r===_e}function ry(n,r){ga=dl=!0;var s=n.pending;s===null?r.next=r:(r.next=s.next,s.next=r),n.pending=r}function ay(n,r,s){if((s&4194048)!==0){var l=r.lanes;l&=n.pendingLanes,s|=l,r.lanes=s,cp(n,s)}}var ks={readContext:Tt,use:pl,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useLayoutEffect:it,useInsertionEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useSyncExternalStore:it,useId:it,useHostTransitionStatus:it,useFormState:it,useActionState:it,useOptimistic:it,useMemoCache:it,useCacheRefresh:it};ks.useEffectEvent=it;var sy={readContext:Tt,use:pl,useCallback:function(n,r){return Ot().memoizedState=[n,r===void 0?null:r],n},useContext:Tt,useEffect:qg,useImperativeHandle:function(n,r,s){s=s!=null?s.concat([n]):null,yl(4194308,4,Xg.bind(null,r,n),s)},useLayoutEffect:function(n,r){return yl(4194308,4,n,r)},useInsertionEffect:function(n,r){yl(4,2,n,r)},useMemo:function(n,r){var s=Ot();r=r===void 0?null:r;var l=n();if(Ar){Pt(!0);try{n()}finally{Pt(!1)}}return s.memoizedState=[l,r],l},useReducer:function(n,r,s){var l=Ot();if(s!==void 0){var f=s(r);if(Ar){Pt(!0);try{s(r)}finally{Pt(!1)}}}else f=r;return l.memoizedState=l.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},l.queue=n,n=n.dispatch=QE.bind(null,_e,n),[l.memoizedState,n]},useRef:function(n){var r=Ot();return n={current:n},r.memoizedState=n},useState:function(n){n=ff(n);var r=n.queue,s=iy.bind(null,_e,r);return r.dispatch=s,[n.memoizedState,s]},useDebugValue:mf,useDeferredValue:function(n,r){var s=Ot();return pf(s,n,r)},useTransition:function(){var n=ff(!1);return n=$g.bind(null,_e,n.queue,!0,!1),Ot().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,s){var l=_e,f=Ot();if(Le){if(s===void 0)throw Error(a(407));s=s()}else{if(s=r(),Ke===null)throw Error(a(349));(Oe&127)!==0||Cg(l,r,s)}f.memoizedState=s;var h={value:s,getSnapshot:r};return f.queue=h,qg(Mg.bind(null,l,h,n),[n]),l.flags|=2048,ba(9,{destroy:void 0},kg.bind(null,l,h,s,r),null),s},useId:function(){var n=Ot(),r=Ke.identifierPrefix;if(Le){var s=zn,l=On;s=(l&~(1<<32-Xe(l)-1)).toString(32)+s,r="_"+r+"R_"+s,s=hl++,0<s&&(r+="H"+s.toString(32)),r+="_"}else s=HE++,r="_"+r+"r_"+s.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:yf,useFormState:Ug,useActionState:Ug,useOptimistic:function(n){var r=Ot();r.memoizedState=r.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=s,r=bf.bind(null,_e,!0,s),s.dispatch=r,[n,r]},useMemoCache:lf,useCacheRefresh:function(){return Ot().memoizedState=KE.bind(null,_e)},useEffectEvent:function(n){var r=Ot(),s={impl:n};return r.memoizedState=s,function(){if((Ue&2)!==0)throw Error(a(440));return s.impl.apply(void 0,arguments)}}},vf={readContext:Tt,use:pl,useCallback:Qg,useContext:Tt,useEffect:hf,useImperativeHandle:Kg,useInsertionEffect:Gg,useLayoutEffect:Yg,useMemo:Wg,useReducer:gl,useRef:Hg,useState:function(){return gl(ni)},useDebugValue:mf,useDeferredValue:function(n,r){var s=lt();return Zg(s,Fe.memoizedState,n,r)},useTransition:function(){var n=gl(ni)[0],r=lt().memoizedState;return[typeof n=="boolean"?n:_s(n),r]},useSyncExternalStore:_g,useId:ty,useHostTransitionStatus:yf,useFormState:Bg,useActionState:Bg,useOptimistic:function(n,r){var s=lt();return Rg(s,Fe,n,r)},useMemoCache:lf,useCacheRefresh:ny};vf.useEffectEvent=Fg;var oy={readContext:Tt,use:pl,useCallback:Qg,useContext:Tt,useEffect:hf,useImperativeHandle:Kg,useInsertionEffect:Gg,useLayoutEffect:Yg,useMemo:Wg,useReducer:cf,useRef:Hg,useState:function(){return cf(ni)},useDebugValue:mf,useDeferredValue:function(n,r){var s=lt();return Fe===null?pf(s,n,r):Zg(s,Fe.memoizedState,n,r)},useTransition:function(){var n=cf(ni)[0],r=lt().memoizedState;return[typeof n=="boolean"?n:_s(n),r]},useSyncExternalStore:_g,useId:ty,useHostTransitionStatus:yf,useFormState:Vg,useActionState:Vg,useOptimistic:function(n,r){var s=lt();return Fe!==null?Rg(s,Fe,n,r):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:lf,useCacheRefresh:ny};oy.useEffectEvent=Fg;function xf(n,r,s,l){r=n.memoizedState,s=s(l,r),s=s==null?r:y({},r,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var Sf={enqueueSetState:function(n,r,s){n=n._reactInternals;var l=an(),f=Ci(l);f.payload=r,s!=null&&(f.callback=s),r=ki(n,f,l),r!==null&&(Xt(r,n,l),ws(r,n,l))},enqueueReplaceState:function(n,r,s){n=n._reactInternals;var l=an(),f=Ci(l);f.tag=1,f.payload=r,s!=null&&(f.callback=s),r=ki(n,f,l),r!==null&&(Xt(r,n,l),ws(r,n,l))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var s=an(),l=Ci(s);l.tag=2,r!=null&&(l.callback=r),r=ki(n,l,s),r!==null&&(Xt(r,n,s),ws(r,n,s))}};function ly(n,r,s,l,f,h,b){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,h,b):r.prototype&&r.prototype.isPureReactComponent?!ms(s,l)||!ms(f,h):!0}function uy(n,r,s,l){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(s,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(s,l),r.state!==n&&Sf.enqueueReplaceState(r,r.state,null)}function _r(n,r){var s=r;if("ref"in r){s={};for(var l in r)l!=="ref"&&(s[l]=r[l])}if(n=n.defaultProps){s===r&&(s=y({},s));for(var f in n)s[f]===void 0&&(s[f]=n[f])}return s}function cy(n){Zo(n)}function fy(n){console.error(n)}function dy(n){Zo(n)}function xl(n,r){try{var s=n.onUncaughtError;s(r.value,{componentStack:r.stack})}catch(l){setTimeout(function(){throw l})}}function hy(n,r,s){try{var l=n.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function wf(n,r,s){return s=Ci(s),s.tag=3,s.payload={element:null},s.callback=function(){xl(n,r)},s}function my(n){return n=Ci(n),n.tag=3,n}function py(n,r,s,l){var f=s.type.getDerivedStateFromError;if(typeof f=="function"){var h=l.value;n.payload=function(){return f(h)},n.callback=function(){hy(r,s,l)}}var b=s.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(n.callback=function(){hy(r,s,l),typeof f!="function"&&(zi===null?zi=new Set([this]):zi.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function WE(n,r,s,l,f){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(r=s.alternate,r!==null&&ca(r,s,f,!0),s=en.current,s!==null){switch(s.tag){case 31:case 13:return gn===null?Rl():s.alternate===null&&rt===0&&(rt=3),s.flags&=-257,s.flags|=65536,s.lanes=f,l===ol?s.flags|=16384:(r=s.updateQueue,r===null?s.updateQueue=new Set([l]):r.add(l),Xf(n,l,f)),!1;case 22:return s.flags|=65536,l===ol?s.flags|=16384:(r=s.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=r):(s=r.retryQueue,s===null?r.retryQueue=new Set([l]):s.add(l)),Xf(n,l,f)),!1}throw Error(a(435,s.tag))}return Xf(n,l,f),Rl(),!1}if(Le)return r=en.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=f,l!==Pc&&(n=Error(a(422),{cause:l}),ys(dn(n,s)))):(l!==Pc&&(r=Error(a(423),{cause:l}),ys(dn(r,s))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,l=dn(l,s),f=wf(n.stateNode,l,f),Zc(n,f),rt!==4&&(rt=2)),!1;var h=Error(a(520),{cause:l});if(h=dn(h,s),js===null?js=[h]:js.push(h),rt!==4&&(rt=2),r===null)return!0;l=dn(l,s),s=r;do{switch(s.tag){case 3:return s.flags|=65536,n=f&-f,s.lanes|=n,n=wf(s.stateNode,l,n),Zc(s,n),!1;case 1:if(r=s.type,h=s.stateNode,(s.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(zi===null||!zi.has(h))))return s.flags|=65536,f&=-f,s.lanes|=f,f=my(f),py(f,n,s,l),Zc(s,f),!1}s=s.return}while(s!==null);return!1}var Tf=Error(a(461)),ft=!1;function Et(n,r,s,l){r.child=n===null?vg(r,null,s,l):Er(r,n.child,s,l)}function gy(n,r,s,l,f){s=s.render;var h=r.ref;if("ref"in l){var b={};for(var S in l)S!=="ref"&&(b[S]=l[S])}else b=l;return xr(r),l=rf(n,r,s,b,h,f),S=af(),n!==null&&!ft?(sf(n,r,f),ii(n,r,f)):(Le&&S&&Uc(r),r.flags|=1,Et(n,r,l,f),r.child)}function yy(n,r,s,l,f){if(n===null){var h=s.type;return typeof h=="function"&&!Lc(h)&&h.defaultProps===void 0&&s.compare===null?(r.tag=15,r.type=h,by(n,r,h,l,f)):(n=tl(s.type,null,l,r,r.mode,f),n.ref=r.ref,n.return=r,r.child=n)}if(h=n.child,!Nf(n,f)){var b=h.memoizedProps;if(s=s.compare,s=s!==null?s:ms,s(b,l)&&n.ref===r.ref)return ii(n,r,f)}return r.flags|=1,n=Zn(h,l),n.ref=r.ref,n.return=r,r.child=n}function by(n,r,s,l,f){if(n!==null){var h=n.memoizedProps;if(ms(h,l)&&n.ref===r.ref)if(ft=!1,r.pendingProps=l=h,Nf(n,f))(n.flags&131072)!==0&&(ft=!0);else return r.lanes=n.lanes,ii(n,r,f)}return Ef(n,r,s,l,f)}function vy(n,r,s,l){var f=l.children,h=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((r.flags&128)!==0){if(h=h!==null?h.baseLanes|s:s,n!==null){for(l=r.child=n.child,f=0;l!==null;)f=f|l.lanes|l.childLanes,l=l.sibling;l=f&~h}else l=0,r.child=null;return xy(n,r,h,s,l)}if((s&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&al(r,h!==null?h.cachePool:null),h!==null?wg(r,h):Jc(),Tg(r);else return l=r.lanes=536870912,xy(n,r,h!==null?h.baseLanes|s:s,s,l)}else h!==null?(al(r,h.cachePool),wg(r,h),Di(),r.memoizedState=null):(n!==null&&al(r,null),Jc(),Di());return Et(n,r,f,s),r.child}function Ms(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function xy(n,r,s,l,f){var h=Xc();return h=h===null?null:{parent:ut._currentValue,pool:h},r.memoizedState={baseLanes:s,cachePool:h},n!==null&&al(r,null),Jc(),Tg(r),n!==null&&ca(n,r,l,!0),r.childLanes=f,null}function Sl(n,r){return r=Tl({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function Sy(n,r,s){return Er(r,n.child,null,s),n=Sl(r,r.pendingProps),n.flags|=2,tn(r),r.memoizedState=null,n}function ZE(n,r,s){var l=r.pendingProps,f=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(Le){if(l.mode==="hidden")return n=Sl(r,l),r.lanes=536870912,Ms(null,n);if(tf(r),(n=Je)?(n=Ob(n,pn),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:wi!==null?{id:On,overflow:zn}:null,retryLane:536870912,hydrationErrors:null},s=rg(n),s.return=r,r.child=s,wt=r,Je=null)):n=null,n===null)throw Ei(r);return r.lanes=536870912,null}return Sl(r,l)}var h=n.memoizedState;if(h!==null){var b=h.dehydrated;if(tf(r),f)if(r.flags&256)r.flags&=-257,r=Sy(n,r,s);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(a(558));else if(ft||ca(n,r,s,!1),f=(s&n.childLanes)!==0,ft||f){if(l=Ke,l!==null&&(b=fp(l,s),b!==0&&b!==h.retryLane))throw h.retryLane=b,gr(n,b),Xt(l,n,b),Tf;Rl(),r=Sy(n,r,s)}else n=h.treeContext,Je=yn(b.nextSibling),wt=r,Le=!0,Ti=null,pn=!1,n!==null&&og(r,n),r=Sl(r,l),r.flags|=4096;return r}return n=Zn(n.child,{mode:l.mode,children:l.children}),n.ref=r.ref,r.child=n,n.return=r,n}function wl(n,r){var s=r.ref;if(s===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(a(284));(n===null||n.ref!==s)&&(r.flags|=4194816)}}function Ef(n,r,s,l,f){return xr(r),s=rf(n,r,s,l,void 0,f),l=af(),n!==null&&!ft?(sf(n,r,f),ii(n,r,f)):(Le&&l&&Uc(r),r.flags|=1,Et(n,r,s,f),r.child)}function wy(n,r,s,l,f,h){return xr(r),r.updateQueue=null,s=Ag(r,l,s,f),Eg(n),l=af(),n!==null&&!ft?(sf(n,r,h),ii(n,r,h)):(Le&&l&&Uc(r),r.flags|=1,Et(n,r,s,h),r.child)}function Ty(n,r,s,l,f){if(xr(r),r.stateNode===null){var h=sa,b=s.contextType;typeof b=="object"&&b!==null&&(h=Tt(b)),h=new s(l,h),r.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Sf,r.stateNode=h,h._reactInternals=r,h=r.stateNode,h.props=l,h.state=r.memoizedState,h.refs={},Qc(r),b=s.contextType,h.context=typeof b=="object"&&b!==null?Tt(b):sa,h.state=r.memoizedState,b=s.getDerivedStateFromProps,typeof b=="function"&&(xf(r,s,b,l),h.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&Sf.enqueueReplaceState(h,h.state,null),Es(r,l,h,f),Ts(),h.state=r.memoizedState),typeof h.componentDidMount=="function"&&(r.flags|=4194308),l=!0}else if(n===null){h=r.stateNode;var S=r.memoizedProps,_=_r(s,S);h.props=_;var I=h.context,F=s.contextType;b=sa,typeof F=="object"&&F!==null&&(b=Tt(F));var Q=s.getDerivedStateFromProps;F=typeof Q=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=r.pendingProps!==S,F||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||I!==b)&&uy(r,h,l,b),_i=!1;var U=r.memoizedState;h.state=U,Es(r,l,h,f),Ts(),I=r.memoizedState,S||U!==I||_i?(typeof Q=="function"&&(xf(r,s,Q,l),I=r.memoizedState),(_=_i||ly(r,s,_,l,U,I,b))?(F||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(r.flags|=4194308)):(typeof h.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=I),h.props=l,h.state=I,h.context=b,l=_):(typeof h.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{h=r.stateNode,Wc(n,r),b=r.memoizedProps,F=_r(s,b),h.props=F,Q=r.pendingProps,U=h.context,I=s.contextType,_=sa,typeof I=="object"&&I!==null&&(_=Tt(I)),S=s.getDerivedStateFromProps,(I=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==Q||U!==_)&&uy(r,h,l,_),_i=!1,U=r.memoizedState,h.state=U,Es(r,l,h,f),Ts();var H=r.memoizedState;b!==Q||U!==H||_i||n!==null&&n.dependencies!==null&&il(n.dependencies)?(typeof S=="function"&&(xf(r,s,S,l),H=r.memoizedState),(F=_i||ly(r,s,F,l,U,H,_)||n!==null&&n.dependencies!==null&&il(n.dependencies))?(I||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,H,_),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,H,_)),typeof h.componentDidUpdate=="function"&&(r.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===n.memoizedProps&&U===n.memoizedState||(r.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&U===n.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=H),h.props=l,h.state=H,h.context=_,l=F):(typeof h.componentDidUpdate!="function"||b===n.memoizedProps&&U===n.memoizedState||(r.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&U===n.memoizedState||(r.flags|=1024),l=!1)}return h=l,wl(n,r),l=(r.flags&128)!==0,h||l?(h=r.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:h.render(),r.flags|=1,n!==null&&l?(r.child=Er(r,n.child,null,f),r.child=Er(r,null,s,f)):Et(n,r,s,f),r.memoizedState=h.state,n=r.child):n=ii(n,r,f),n}function Ey(n,r,s,l){return br(),r.flags|=256,Et(n,r,s,l),r.child}var Af={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _f(n){return{baseLanes:n,cachePool:hg()}}function Cf(n,r,s){return n=n!==null?n.childLanes&~s:0,r&&(n|=rn),n}function Ay(n,r,s){var l=r.pendingProps,f=!1,h=(r.flags&128)!==0,b;if((b=h)||(b=n!==null&&n.memoizedState===null?!1:(ot.current&2)!==0),b&&(f=!0,r.flags&=-129),b=(r.flags&32)!==0,r.flags&=-33,n===null){if(Le){if(f?Mi(r):Di(),(n=Je)?(n=Ob(n,pn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:wi!==null?{id:On,overflow:zn}:null,retryLane:536870912,hydrationErrors:null},s=rg(n),s.return=r,r.child=s,wt=r,Je=null)):n=null,n===null)throw Ei(r);return ud(n)?r.lanes=32:r.lanes=536870912,null}var S=l.children;return l=l.fallback,f?(Di(),f=r.mode,S=Tl({mode:"hidden",children:S},f),l=yr(l,f,s,null),S.return=r,l.return=r,S.sibling=l,r.child=S,l=r.child,l.memoizedState=_f(s),l.childLanes=Cf(n,b,s),r.memoizedState=Af,Ms(null,l)):(Mi(r),kf(r,S))}var _=n.memoizedState;if(_!==null&&(S=_.dehydrated,S!==null)){if(h)r.flags&256?(Mi(r),r.flags&=-257,r=Mf(n,r,s)):r.memoizedState!==null?(Di(),r.child=n.child,r.flags|=128,r=null):(Di(),S=l.fallback,f=r.mode,l=Tl({mode:"visible",children:l.children},f),S=yr(S,f,s,null),S.flags|=2,l.return=r,S.return=r,l.sibling=S,r.child=l,Er(r,n.child,null,s),l=r.child,l.memoizedState=_f(s),l.childLanes=Cf(n,b,s),r.memoizedState=Af,r=Ms(null,l));else if(Mi(r),ud(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var I=b.dgst;b=I,l=Error(a(419)),l.stack="",l.digest=b,ys({value:l,source:null,stack:null}),r=Mf(n,r,s)}else if(ft||ca(n,r,s,!1),b=(s&n.childLanes)!==0,ft||b){if(b=Ke,b!==null&&(l=fp(b,s),l!==0&&l!==_.retryLane))throw _.retryLane=l,gr(n,l),Xt(b,n,l),Tf;ld(S)||Rl(),r=Mf(n,r,s)}else ld(S)?(r.flags|=192,r.child=n.child,r=null):(n=_.treeContext,Je=yn(S.nextSibling),wt=r,Le=!0,Ti=null,pn=!1,n!==null&&og(r,n),r=kf(r,l.children),r.flags|=4096);return r}return f?(Di(),S=l.fallback,f=r.mode,_=n.child,I=_.sibling,l=Zn(_,{mode:"hidden",children:l.children}),l.subtreeFlags=_.subtreeFlags&65011712,I!==null?S=Zn(I,S):(S=yr(S,f,s,null),S.flags|=2),S.return=r,l.return=r,l.sibling=S,r.child=l,Ms(null,l),l=r.child,S=n.child.memoizedState,S===null?S=_f(s):(f=S.cachePool,f!==null?(_=ut._currentValue,f=f.parent!==_?{parent:_,pool:_}:f):f=hg(),S={baseLanes:S.baseLanes|s,cachePool:f}),l.memoizedState=S,l.childLanes=Cf(n,b,s),r.memoizedState=Af,Ms(n.child,l)):(Mi(r),s=n.child,n=s.sibling,s=Zn(s,{mode:"visible",children:l.children}),s.return=r,s.sibling=null,n!==null&&(b=r.deletions,b===null?(r.deletions=[n],r.flags|=16):b.push(n)),r.child=s,r.memoizedState=null,s)}function kf(n,r){return r=Tl({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function Tl(n,r){return n=Jt(22,n,null,r),n.lanes=0,n}function Mf(n,r,s){return Er(r,n.child,null,s),n=kf(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function _y(n,r,s){n.lanes|=r;var l=n.alternate;l!==null&&(l.lanes|=r),qc(n.return,r,s)}function Df(n,r,s,l,f,h){var b=n.memoizedState;b===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:f,treeForkCount:h}:(b.isBackwards=r,b.rendering=null,b.renderingStartTime=0,b.last=l,b.tail=s,b.tailMode=f,b.treeForkCount=h)}function Cy(n,r,s){var l=r.pendingProps,f=l.revealOrder,h=l.tail;l=l.children;var b=ot.current,S=(b&2)!==0;if(S?(b=b&1|2,r.flags|=128):b&=1,E(ot,b),Et(n,r,l,s),l=Le?gs:0,!S&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&_y(n,s,r);else if(n.tag===19)_y(n,s,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(s=r.child,f=null;s!==null;)n=s.alternate,n!==null&&fl(n)===null&&(f=s),s=s.sibling;s=f,s===null?(f=r.child,r.child=null):(f=s.sibling,s.sibling=null),Df(r,!1,f,s,h,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,f=r.child,r.child=null;f!==null;){if(n=f.alternate,n!==null&&fl(n)===null){r.child=f;break}n=f.sibling,f.sibling=s,s=f,f=n}Df(r,!0,s,null,h,l);break;case"together":Df(r,!1,null,null,void 0,l);break;default:r.memoizedState=null}return r.child}function ii(n,r,s){if(n!==null&&(r.dependencies=n.dependencies),Oi|=r.lanes,(s&r.childLanes)===0)if(n!==null){if(ca(n,r,s,!1),(s&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(a(153));if(r.child!==null){for(n=r.child,s=Zn(n,n.pendingProps),r.child=s,s.return=r;n.sibling!==null;)n=n.sibling,s=s.sibling=Zn(n,n.pendingProps),s.return=r;s.sibling=null}return r.child}function Nf(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&il(n)))}function $E(n,r,s){switch(r.tag){case 3:Ee(r,r.stateNode.containerInfo),Ai(r,ut,n.memoizedState.cache),br();break;case 27:case 5:Dt(r);break;case 4:Ee(r,r.stateNode.containerInfo);break;case 10:Ai(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,tf(r),null;break;case 13:var l=r.memoizedState;if(l!==null)return l.dehydrated!==null?(Mi(r),r.flags|=128,null):(s&r.child.childLanes)!==0?Ay(n,r,s):(Mi(r),n=ii(n,r,s),n!==null?n.sibling:null);Mi(r);break;case 19:var f=(n.flags&128)!==0;if(l=(s&r.childLanes)!==0,l||(ca(n,r,s,!1),l=(s&r.childLanes)!==0),f){if(l)return Cy(n,r,s);r.flags|=128}if(f=r.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),E(ot,ot.current),l)break;return null;case 22:return r.lanes=0,vy(n,r,s,r.pendingProps);case 24:Ai(r,ut,n.memoizedState.cache)}return ii(n,r,s)}function ky(n,r,s){if(n!==null)if(n.memoizedProps!==r.pendingProps)ft=!0;else{if(!Nf(n,s)&&(r.flags&128)===0)return ft=!1,$E(n,r,s);ft=(n.flags&131072)!==0}else ft=!1,Le&&(r.flags&1048576)!==0&&sg(r,gs,r.index);switch(r.lanes=0,r.tag){case 16:e:{var l=r.pendingProps;if(n=wr(r.elementType),r.type=n,typeof n=="function")Lc(n)?(l=_r(n,l),r.tag=1,r=Ty(null,r,n,l,s)):(r.tag=0,r=Ef(null,r,n,l,s));else{if(n!=null){var f=n.$$typeof;if(f===Y){r.tag=11,r=gy(null,r,n,l,s);break e}else if(f===K){r.tag=14,r=yy(null,r,n,l,s);break e}}throw r=le(n)||n,Error(a(306,r,""))}}return r;case 0:return Ef(n,r,r.type,r.pendingProps,s);case 1:return l=r.type,f=_r(l,r.pendingProps),Ty(n,r,l,f,s);case 3:e:{if(Ee(r,r.stateNode.containerInfo),n===null)throw Error(a(387));l=r.pendingProps;var h=r.memoizedState;f=h.element,Wc(n,r),Es(r,l,null,s);var b=r.memoizedState;if(l=b.cache,Ai(r,ut,l),l!==h.cache&&Fc(r,[ut],s,!0),Ts(),l=b.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:b.cache},r.updateQueue.baseState=h,r.memoizedState=h,r.flags&256){r=Ey(n,r,l,s);break e}else if(l!==f){f=dn(Error(a(424)),r),ys(f),r=Ey(n,r,l,s);break e}else{switch(n=r.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Je=yn(n.firstChild),wt=r,Le=!0,Ti=null,pn=!0,s=vg(r,null,l,s),r.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(br(),l===f){r=ii(n,r,s);break e}Et(n,r,l,s)}r=r.child}return r;case 26:return wl(n,r),n===null?(s=Bb(r.type,null,r.pendingProps,null))?r.memoizedState=s:Le||(s=r.type,n=r.pendingProps,l=Bl(ae.current).createElement(s),l[St]=r,l[Vt]=n,At(l,s,n),vt(l),r.stateNode=l):r.memoizedState=Bb(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return Dt(r),n===null&&Le&&(l=r.stateNode=jb(r.type,r.pendingProps,ae.current),wt=r,pn=!0,f=Je,Ui(r.type)?(cd=f,Je=yn(l.firstChild)):Je=f),Et(n,r,r.pendingProps.children,s),wl(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&Le&&((f=l=Je)&&(l=kA(l,r.type,r.pendingProps,pn),l!==null?(r.stateNode=l,wt=r,Je=yn(l.firstChild),pn=!1,f=!0):f=!1),f||Ei(r)),Dt(r),f=r.type,h=r.pendingProps,b=n!==null?n.memoizedProps:null,l=h.children,ad(f,h)?l=null:b!==null&&ad(f,b)&&(r.flags|=32),r.memoizedState!==null&&(f=rf(n,r,qE,null,null,s),Fs._currentValue=f),wl(n,r),Et(n,r,l,s),r.child;case 6:return n===null&&Le&&((n=s=Je)&&(s=MA(s,r.pendingProps,pn),s!==null?(r.stateNode=s,wt=r,Je=null,n=!0):n=!1),n||Ei(r)),null;case 13:return Ay(n,r,s);case 4:return Ee(r,r.stateNode.containerInfo),l=r.pendingProps,n===null?r.child=Er(r,null,l,s):Et(n,r,l,s),r.child;case 11:return gy(n,r,r.type,r.pendingProps,s);case 7:return Et(n,r,r.pendingProps,s),r.child;case 8:return Et(n,r,r.pendingProps.children,s),r.child;case 12:return Et(n,r,r.pendingProps.children,s),r.child;case 10:return l=r.pendingProps,Ai(r,r.type,l.value),Et(n,r,l.children,s),r.child;case 9:return f=r.type._context,l=r.pendingProps.children,xr(r),f=Tt(f),l=l(f),r.flags|=1,Et(n,r,l,s),r.child;case 14:return yy(n,r,r.type,r.pendingProps,s);case 15:return by(n,r,r.type,r.pendingProps,s);case 19:return Cy(n,r,s);case 31:return ZE(n,r,s);case 22:return vy(n,r,s,r.pendingProps);case 24:return xr(r),l=Tt(ut),n===null?(f=Xc(),f===null&&(f=Ke,h=Gc(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=s),f=h),r.memoizedState={parent:l,cache:f},Qc(r),Ai(r,ut,f)):((n.lanes&s)!==0&&(Wc(n,r),Es(r,null,null,s),Ts()),f=n.memoizedState,h=r.memoizedState,f.parent!==l?(f={parent:l,cache:l},r.memoizedState=f,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=f),Ai(r,ut,l)):(l=h.cache,Ai(r,ut,l),l!==f.cache&&Fc(r,[ut],s,!0))),Et(n,r,r.pendingProps.children,s),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function ri(n){n.flags|=4}function Rf(n,r,s,l,f){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(tb())n.flags|=8192;else throw Tr=ol,Kc}else n.flags&=-16777217}function My(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Fb(r))if(tb())n.flags|=8192;else throw Tr=ol,Kc}function El(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?lp():536870912,n.lanes|=r,wa|=r)}function Ds(n,r){if(!Le)switch(n.tailMode){case"hidden":r=n.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function et(n){var r=n.alternate!==null&&n.alternate.child===n.child,s=0,l=0;if(r)for(var f=n.child;f!==null;)s|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)s|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=l,n.childLanes=s,r}function JE(n,r,s){var l=r.pendingProps;switch(Bc(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(r),null;case 1:return et(r),null;case 3:return s=r.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),ei(ut),Se(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(ua(r)?ri(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Vc())),et(r),null;case 26:var f=r.type,h=r.memoizedState;return n===null?(ri(r),h!==null?(et(r),My(r,h)):(et(r),Rf(r,f,null,l,s))):h?h!==n.memoizedState?(ri(r),et(r),My(r,h)):(et(r),r.flags&=-16777217):(n=n.memoizedProps,n!==l&&ri(r),et(r),Rf(r,f,n,l,s)),null;case 27:if(Ut(r),s=ae.current,f=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==l&&ri(r);else{if(!l){if(r.stateNode===null)throw Error(a(166));return et(r),null}n=P.current,ua(r)?lg(r):(n=jb(f,l,s),r.stateNode=n,ri(r))}return et(r),null;case 5:if(Ut(r),f=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==l&&ri(r);else{if(!l){if(r.stateNode===null)throw Error(a(166));return et(r),null}if(h=P.current,ua(r))lg(r);else{var b=Bl(ae.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?b.createElement("select",{is:l.is}):b.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?b.createElement(f,{is:l.is}):b.createElement(f)}}h[St]=r,h[Vt]=l;e:for(b=r.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===r)break e;for(;b.sibling===null;){if(b.return===null||b.return===r)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}r.stateNode=h;e:switch(At(h,f,l),f){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ri(r)}}return et(r),Rf(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,s),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==l&&ri(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(a(166));if(n=ae.current,ua(r)){if(n=r.stateNode,s=r.memoizedProps,l=null,f=wt,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}n[St]=r,n=!!(n.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||Ab(n.nodeValue,s)),n||Ei(r,!0)}else n=Bl(n).createTextNode(l),n[St]=r,r.stateNode=n}return et(r),null;case 31:if(s=r.memoizedState,n===null||n.memoizedState!==null){if(l=ua(r),s!==null){if(n===null){if(!l)throw Error(a(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[St]=r}else br(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;et(r),n=!1}else s=Vc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=s),n=!0;if(!n)return r.flags&256?(tn(r),r):(tn(r),null);if((r.flags&128)!==0)throw Error(a(558))}return et(r),null;case 13:if(l=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=ua(r),l!==null&&l.dehydrated!==null){if(n===null){if(!f)throw Error(a(318));if(f=r.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[St]=r}else br(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;et(r),f=!1}else f=Vc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return r.flags&256?(tn(r),r):(tn(r),null)}return tn(r),(r.flags&128)!==0?(r.lanes=s,r):(s=l!==null,n=n!==null&&n.memoizedState!==null,s&&(l=r.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==f&&(l.flags|=2048)),s!==n&&s&&(r.child.flags|=8192),El(r,r.updateQueue),et(r),null);case 4:return Se(),n===null&&ed(r.stateNode.containerInfo),et(r),null;case 10:return ei(r.type),et(r),null;case 19:if(q(ot),l=r.memoizedState,l===null)return et(r),null;if(f=(r.flags&128)!==0,h=l.rendering,h===null)if(f)Ds(l,!1);else{if(rt!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(h=fl(n),h!==null){for(r.flags|=128,Ds(l,!1),n=h.updateQueue,r.updateQueue=n,El(r,n),r.subtreeFlags=0,n=s,s=r.child;s!==null;)ig(s,n),s=s.sibling;return E(ot,ot.current&1|2),Le&&$n(r,l.treeForkCount),r.child}n=n.sibling}l.tail!==null&&Nt()>Ml&&(r.flags|=128,f=!0,Ds(l,!1),r.lanes=4194304)}else{if(!f)if(n=fl(h),n!==null){if(r.flags|=128,f=!0,n=n.updateQueue,r.updateQueue=n,El(r,n),Ds(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!Le)return et(r),null}else 2*Nt()-l.renderingStartTime>Ml&&s!==536870912&&(r.flags|=128,f=!0,Ds(l,!1),r.lanes=4194304);l.isBackwards?(h.sibling=r.child,r.child=h):(n=l.last,n!==null?n.sibling=h:r.child=h,l.last=h)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Nt(),n.sibling=null,s=ot.current,E(ot,f?s&1|2:s&1),Le&&$n(r,l.treeForkCount),n):(et(r),null);case 22:case 23:return tn(r),ef(),l=r.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(r.flags|=8192):l&&(r.flags|=8192),l?(s&536870912)!==0&&(r.flags&128)===0&&(et(r),r.subtreeFlags&6&&(r.flags|=8192)):et(r),s=r.updateQueue,s!==null&&El(r,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==s&&(r.flags|=2048),n!==null&&q(Sr),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),ei(ut),et(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function eA(n,r){switch(Bc(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return ei(ut),Se(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return Ut(r),null;case 31:if(r.memoizedState!==null){if(tn(r),r.alternate===null)throw Error(a(340));br()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(tn(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));br()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return q(ot),null;case 4:return Se(),null;case 10:return ei(r.type),null;case 22:case 23:return tn(r),ef(),n!==null&&q(Sr),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return ei(ut),null;case 25:return null;default:return null}}function Dy(n,r){switch(Bc(r),r.tag){case 3:ei(ut),Se();break;case 26:case 27:case 5:Ut(r);break;case 4:Se();break;case 31:r.memoizedState!==null&&tn(r);break;case 13:tn(r);break;case 19:q(ot);break;case 10:ei(r.type);break;case 22:case 23:tn(r),ef(),n!==null&&q(Sr);break;case 24:ei(ut)}}function Ns(n,r){try{var s=r.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var f=l.next;s=f;do{if((s.tag&n)===n){l=void 0;var h=s.create,b=s.inst;l=h(),b.destroy=l}s=s.next}while(s!==f)}}catch(S){He(r,r.return,S)}}function Ni(n,r,s){try{var l=r.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var h=f.next;l=h;do{if((l.tag&n)===n){var b=l.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,f=r;var _=s,I=S;try{I()}catch(F){He(f,_,F)}}}l=l.next}while(l!==h)}}catch(F){He(r,r.return,F)}}function Ny(n){var r=n.updateQueue;if(r!==null){var s=n.stateNode;try{Sg(r,s)}catch(l){He(n,n.return,l)}}}function Ry(n,r,s){s.props=_r(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(l){He(n,r,l)}}function Rs(n,r){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof s=="function"?n.refCleanup=s(l):s.current=l}}catch(f){He(n,r,f)}}function Ln(n,r){var s=n.ref,l=n.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(f){He(n,r,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(f){He(n,r,f)}else s.current=null}function Oy(n){var r=n.type,s=n.memoizedProps,l=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(f){He(n,n.return,f)}}function Of(n,r,s){try{var l=n.stateNode;wA(l,n.type,s,r),l[Vt]=r}catch(f){He(n,n.return,f)}}function zy(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ui(n.type)||n.tag===4}function zf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||zy(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ui(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Lf(n,r,s){var l=n.tag;if(l===5||l===6)n=n.stateNode,r?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,r):(r=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,r.appendChild(n),s=s._reactRootContainer,s!=null||r.onclick!==null||(r.onclick=Qn));else if(l!==4&&(l===27&&Ui(n.type)&&(s=n.stateNode,r=null),n=n.child,n!==null))for(Lf(n,r,s),n=n.sibling;n!==null;)Lf(n,r,s),n=n.sibling}function Al(n,r,s){var l=n.tag;if(l===5||l===6)n=n.stateNode,r?s.insertBefore(n,r):s.appendChild(n);else if(l!==4&&(l===27&&Ui(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(Al(n,r,s),n=n.sibling;n!==null;)Al(n,r,s),n=n.sibling}function Ly(n){var r=n.stateNode,s=n.memoizedProps;try{for(var l=n.type,f=r.attributes;f.length;)r.removeAttributeNode(f[0]);At(r,l,s),r[St]=n,r[Vt]=s}catch(h){He(n,n.return,h)}}var ai=!1,dt=!1,jf=!1,jy=typeof WeakSet=="function"?WeakSet:Set,xt=null;function tA(n,r){if(n=n.containerInfo,id=Yl,n=Kp(n),kc(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var f=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{s.nodeType,h.nodeType}catch{s=null;break e}var b=0,S=-1,_=-1,I=0,F=0,Q=n,U=null;t:for(;;){for(var H;Q!==s||f!==0&&Q.nodeType!==3||(S=b+f),Q!==h||l!==0&&Q.nodeType!==3||(_=b+l),Q.nodeType===3&&(b+=Q.nodeValue.length),(H=Q.firstChild)!==null;)U=Q,Q=H;for(;;){if(Q===n)break t;if(U===s&&++I===f&&(S=b),U===h&&++F===l&&(_=b),(H=Q.nextSibling)!==null)break;Q=U,U=Q.parentNode}Q=H}s=S===-1||_===-1?null:{start:S,end:_}}else s=null}s=s||{start:0,end:0}}else s=null;for(rd={focusedElem:n,selectionRange:s},Yl=!1,xt=r;xt!==null;)if(r=xt,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,xt=n;else for(;xt!==null;){switch(r=xt,h=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(s=0;s<n.length;s++)f=n[s],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&h!==null){n=void 0,s=r,f=h.memoizedProps,h=h.memoizedState,l=s.stateNode;try{var ce=_r(s.type,f);n=l.getSnapshotBeforeUpdate(ce,h),l.__reactInternalSnapshotBeforeUpdate=n}catch(be){He(s,s.return,be)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,s=n.nodeType,s===9)od(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":od(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=r.sibling,n!==null){n.return=r.return,xt=n;break}xt=r.return}}function Iy(n,r,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:oi(n,s),l&4&&Ns(5,s);break;case 1:if(oi(n,s),l&4)if(n=s.stateNode,r===null)try{n.componentDidMount()}catch(b){He(s,s.return,b)}else{var f=_r(s.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(f,r,n.__reactInternalSnapshotBeforeUpdate)}catch(b){He(s,s.return,b)}}l&64&&Ny(s),l&512&&Rs(s,s.return);break;case 3:if(oi(n,s),l&64&&(n=s.updateQueue,n!==null)){if(r=null,s.child!==null)switch(s.child.tag){case 27:case 5:r=s.child.stateNode;break;case 1:r=s.child.stateNode}try{Sg(n,r)}catch(b){He(s,s.return,b)}}break;case 27:r===null&&l&4&&Ly(s);case 26:case 5:oi(n,s),r===null&&l&4&&Oy(s),l&512&&Rs(s,s.return);break;case 12:oi(n,s);break;case 31:oi(n,s),l&4&&Py(n,s);break;case 13:oi(n,s),l&4&&Vy(n,s),l&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=cA.bind(null,s),DA(n,s))));break;case 22:if(l=s.memoizedState!==null||ai,!l){r=r!==null&&r.memoizedState!==null||dt,f=ai;var h=dt;ai=l,(dt=r)&&!h?li(n,s,(s.subtreeFlags&8772)!==0):oi(n,s),ai=f,dt=h}break;case 30:break;default:oi(n,s)}}function Uy(n){var r=n.alternate;r!==null&&(n.alternate=null,Uy(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&fc(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var nt=null,qt=!1;function si(n,r,s){for(s=s.child;s!==null;)By(n,r,s),s=s.sibling}function By(n,r,s){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Rt,s)}catch{}switch(s.tag){case 26:dt||Ln(s,r),si(n,r,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:dt||Ln(s,r);var l=nt,f=qt;Ui(s.type)&&(nt=s.stateNode,qt=!1),si(n,r,s),Vs(s.stateNode),nt=l,qt=f;break;case 5:dt||Ln(s,r);case 6:if(l=nt,f=qt,nt=null,si(n,r,s),nt=l,qt=f,nt!==null)if(qt)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(s.stateNode)}catch(h){He(s,r,h)}else try{nt.removeChild(s.stateNode)}catch(h){He(s,r,h)}break;case 18:nt!==null&&(qt?(n=nt,Nb(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),Da(n)):Nb(nt,s.stateNode));break;case 4:l=nt,f=qt,nt=s.stateNode.containerInfo,qt=!0,si(n,r,s),nt=l,qt=f;break;case 0:case 11:case 14:case 15:Ni(2,s,r),dt||Ni(4,s,r),si(n,r,s);break;case 1:dt||(Ln(s,r),l=s.stateNode,typeof l.componentWillUnmount=="function"&&Ry(s,r,l)),si(n,r,s);break;case 21:si(n,r,s);break;case 22:dt=(l=dt)||s.memoizedState!==null,si(n,r,s),dt=l;break;default:si(n,r,s)}}function Py(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Da(n)}catch(s){He(r,r.return,s)}}}function Vy(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Da(n)}catch(s){He(r,r.return,s)}}function nA(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new jy),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new jy),r;default:throw Error(a(435,n.tag))}}function _l(n,r){var s=nA(n);r.forEach(function(l){if(!s.has(l)){s.add(l);var f=fA.bind(null,n,l);l.then(f,f)}})}function Ft(n,r){var s=r.deletions;if(s!==null)for(var l=0;l<s.length;l++){var f=s[l],h=n,b=r,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(Ui(S.type)){nt=S.stateNode,qt=!1;break e}break;case 5:nt=S.stateNode,qt=!1;break e;case 3:case 4:nt=S.stateNode.containerInfo,qt=!0;break e}S=S.return}if(nt===null)throw Error(a(160));By(h,b,f),nt=null,qt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Hy(r,n),r=r.sibling}var En=null;function Hy(n,r){var s=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Ft(r,n),Gt(n),l&4&&(Ni(3,n,n.return),Ns(3,n),Ni(5,n,n.return));break;case 1:Ft(r,n),Gt(n),l&512&&(dt||s===null||Ln(s,s.return)),l&64&&ai&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var f=En;if(Ft(r,n),Gt(n),l&512&&(dt||s===null||Ln(s,s.return)),l&4){var h=s!==null?s.memoizedState:null;if(l=n.memoizedState,s===null)if(l===null)if(n.stateNode===null){e:{l=n.type,s=n.memoizedProps,f=f.ownerDocument||f;t:switch(l){case"title":h=f.getElementsByTagName("title")[0],(!h||h[as]||h[St]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(l),f.head.insertBefore(h,f.querySelector("head > title"))),At(h,l,s),h[St]=n,vt(h),l=h;break e;case"link":var b=Hb("link","href",f).get(l+(s.href||""));if(b){for(var S=0;S<b.length;S++)if(h=b[S],h.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&h.getAttribute("rel")===(s.rel==null?null:s.rel)&&h.getAttribute("title")===(s.title==null?null:s.title)&&h.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){b.splice(S,1);break t}}h=f.createElement(l),At(h,l,s),f.head.appendChild(h);break;case"meta":if(b=Hb("meta","content",f).get(l+(s.content||""))){for(S=0;S<b.length;S++)if(h=b[S],h.getAttribute("content")===(s.content==null?null:""+s.content)&&h.getAttribute("name")===(s.name==null?null:s.name)&&h.getAttribute("property")===(s.property==null?null:s.property)&&h.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&h.getAttribute("charset")===(s.charSet==null?null:s.charSet)){b.splice(S,1);break t}}h=f.createElement(l),At(h,l,s),f.head.appendChild(h);break;default:throw Error(a(468,l))}h[St]=n,vt(h),l=h}n.stateNode=l}else qb(f,n.type,n.stateNode);else n.stateNode=Vb(f,l,n.memoizedProps);else h!==l?(h===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):h.count--,l===null?qb(f,n.type,n.stateNode):Vb(f,l,n.memoizedProps)):l===null&&n.stateNode!==null&&Of(n,n.memoizedProps,s.memoizedProps)}break;case 27:Ft(r,n),Gt(n),l&512&&(dt||s===null||Ln(s,s.return)),s!==null&&l&4&&Of(n,n.memoizedProps,s.memoizedProps);break;case 5:if(Ft(r,n),Gt(n),l&512&&(dt||s===null||Ln(s,s.return)),n.flags&32){f=n.stateNode;try{Jr(f,"")}catch(ce){He(n,n.return,ce)}}l&4&&n.stateNode!=null&&(f=n.memoizedProps,Of(n,f,s!==null?s.memoizedProps:f)),l&1024&&(jf=!0);break;case 6:if(Ft(r,n),Gt(n),l&4){if(n.stateNode===null)throw Error(a(162));l=n.memoizedProps,s=n.stateNode;try{s.nodeValue=l}catch(ce){He(n,n.return,ce)}}break;case 3:if(Hl=null,f=En,En=Pl(r.containerInfo),Ft(r,n),En=f,Gt(n),l&4&&s!==null&&s.memoizedState.isDehydrated)try{Da(r.containerInfo)}catch(ce){He(n,n.return,ce)}jf&&(jf=!1,qy(n));break;case 4:l=En,En=Pl(n.stateNode.containerInfo),Ft(r,n),Gt(n),En=l;break;case 12:Ft(r,n),Gt(n);break;case 31:Ft(r,n),Gt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,_l(n,l)));break;case 13:Ft(r,n),Gt(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(kl=Nt()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,_l(n,l)));break;case 22:f=n.memoizedState!==null;var _=s!==null&&s.memoizedState!==null,I=ai,F=dt;if(ai=I||f,dt=F||_,Ft(r,n),dt=F,ai=I,Gt(n),l&8192)e:for(r=n.stateNode,r._visibility=f?r._visibility&-2:r._visibility|1,f&&(s===null||_||ai||dt||Cr(n)),s=null,r=n;;){if(r.tag===5||r.tag===26){if(s===null){_=s=r;try{if(h=_.stateNode,f)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=_.stateNode;var Q=_.memoizedProps.style,U=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ce){He(_,_.return,ce)}}}else if(r.tag===6){if(s===null){_=r;try{_.stateNode.nodeValue=f?"":_.memoizedProps}catch(ce){He(_,_.return,ce)}}}else if(r.tag===18){if(s===null){_=r;try{var H=_.stateNode;f?Rb(H,!0):Rb(_.stateNode,!1)}catch(ce){He(_,_.return,ce)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;s===r&&(s=null),r=r.return}s===r&&(s=null),r.sibling.return=r.return,r=r.sibling}l&4&&(l=n.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,_l(n,s))));break;case 19:Ft(r,n),Gt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,_l(n,l)));break;case 30:break;case 21:break;default:Ft(r,n),Gt(n)}}function Gt(n){var r=n.flags;if(r&2){try{for(var s,l=n.return;l!==null;){if(zy(l)){s=l;break}l=l.return}if(s==null)throw Error(a(160));switch(s.tag){case 27:var f=s.stateNode,h=zf(n);Al(n,h,f);break;case 5:var b=s.stateNode;s.flags&32&&(Jr(b,""),s.flags&=-33);var S=zf(n);Al(n,S,b);break;case 3:case 4:var _=s.stateNode.containerInfo,I=zf(n);Lf(n,I,_);break;default:throw Error(a(161))}}catch(F){He(n,n.return,F)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function qy(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;qy(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function oi(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Iy(n,r.alternate,r),r=r.sibling}function Cr(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:Ni(4,r,r.return),Cr(r);break;case 1:Ln(r,r.return);var s=r.stateNode;typeof s.componentWillUnmount=="function"&&Ry(r,r.return,s),Cr(r);break;case 27:Vs(r.stateNode);case 26:case 5:Ln(r,r.return),Cr(r);break;case 22:r.memoizedState===null&&Cr(r);break;case 30:Cr(r);break;default:Cr(r)}n=n.sibling}}function li(n,r,s){for(s=s&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var l=r.alternate,f=n,h=r,b=h.flags;switch(h.tag){case 0:case 11:case 15:li(f,h,s),Ns(4,h);break;case 1:if(li(f,h,s),l=h,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(I){He(l,l.return,I)}if(l=h,f=l.updateQueue,f!==null){var S=l.stateNode;try{var _=f.shared.hiddenCallbacks;if(_!==null)for(f.shared.hiddenCallbacks=null,f=0;f<_.length;f++)xg(_[f],S)}catch(I){He(l,l.return,I)}}s&&b&64&&Ny(h),Rs(h,h.return);break;case 27:Ly(h);case 26:case 5:li(f,h,s),s&&l===null&&b&4&&Oy(h),Rs(h,h.return);break;case 12:li(f,h,s);break;case 31:li(f,h,s),s&&b&4&&Py(f,h);break;case 13:li(f,h,s),s&&b&4&&Vy(f,h);break;case 22:h.memoizedState===null&&li(f,h,s),Rs(h,h.return);break;case 30:break;default:li(f,h,s)}r=r.sibling}}function If(n,r){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&bs(s))}function Uf(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&bs(n))}function An(n,r,s,l){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Fy(n,r,s,l),r=r.sibling}function Fy(n,r,s,l){var f=r.flags;switch(r.tag){case 0:case 11:case 15:An(n,r,s,l),f&2048&&Ns(9,r);break;case 1:An(n,r,s,l);break;case 3:An(n,r,s,l),f&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&bs(n)));break;case 12:if(f&2048){An(n,r,s,l),n=r.stateNode;try{var h=r.memoizedProps,b=h.id,S=h.onPostCommit;typeof S=="function"&&S(b,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(_){He(r,r.return,_)}}else An(n,r,s,l);break;case 31:An(n,r,s,l);break;case 13:An(n,r,s,l);break;case 23:break;case 22:h=r.stateNode,b=r.alternate,r.memoizedState!==null?h._visibility&2?An(n,r,s,l):Os(n,r):h._visibility&2?An(n,r,s,l):(h._visibility|=2,va(n,r,s,l,(r.subtreeFlags&10256)!==0||!1)),f&2048&&If(b,r);break;case 24:An(n,r,s,l),f&2048&&Uf(r.alternate,r);break;default:An(n,r,s,l)}}function va(n,r,s,l,f){for(f=f&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var h=n,b=r,S=s,_=l,I=b.flags;switch(b.tag){case 0:case 11:case 15:va(h,b,S,_,f),Ns(8,b);break;case 23:break;case 22:var F=b.stateNode;b.memoizedState!==null?F._visibility&2?va(h,b,S,_,f):Os(h,b):(F._visibility|=2,va(h,b,S,_,f)),f&&I&2048&&If(b.alternate,b);break;case 24:va(h,b,S,_,f),f&&I&2048&&Uf(b.alternate,b);break;default:va(h,b,S,_,f)}r=r.sibling}}function Os(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var s=n,l=r,f=l.flags;switch(l.tag){case 22:Os(s,l),f&2048&&If(l.alternate,l);break;case 24:Os(s,l),f&2048&&Uf(l.alternate,l);break;default:Os(s,l)}r=r.sibling}}var zs=8192;function xa(n,r,s){if(n.subtreeFlags&zs)for(n=n.child;n!==null;)Gy(n,r,s),n=n.sibling}function Gy(n,r,s){switch(n.tag){case 26:xa(n,r,s),n.flags&zs&&n.memoizedState!==null&&HA(s,En,n.memoizedState,n.memoizedProps);break;case 5:xa(n,r,s);break;case 3:case 4:var l=En;En=Pl(n.stateNode.containerInfo),xa(n,r,s),En=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=zs,zs=16777216,xa(n,r,s),zs=l):xa(n,r,s));break;default:xa(n,r,s)}}function Yy(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function Ls(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var s=0;s<r.length;s++){var l=r[s];xt=l,Ky(l,n)}Yy(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Xy(n),n=n.sibling}function Xy(n){switch(n.tag){case 0:case 11:case 15:Ls(n),n.flags&2048&&Ni(9,n,n.return);break;case 3:Ls(n);break;case 12:Ls(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,Cl(n)):Ls(n);break;default:Ls(n)}}function Cl(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var s=0;s<r.length;s++){var l=r[s];xt=l,Ky(l,n)}Yy(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:Ni(8,r,r.return),Cl(r);break;case 22:s=r.stateNode,s._visibility&2&&(s._visibility&=-3,Cl(r));break;default:Cl(r)}n=n.sibling}}function Ky(n,r){for(;xt!==null;){var s=xt;switch(s.tag){case 0:case 11:case 15:Ni(8,s,r);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:bs(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,xt=l;else e:for(s=n;xt!==null;){l=xt;var f=l.sibling,h=l.return;if(Uy(l),l===s){xt=null;break e}if(f!==null){f.return=h,xt=f;break e}xt=h}}}var iA={getCacheForType:function(n){var r=Tt(ut),s=r.data.get(n);return s===void 0&&(s=n(),r.data.set(n,s)),s},cacheSignal:function(){return Tt(ut).controller.signal}},rA=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ke=null,Ne=null,Oe=0,Ve=0,nn=null,Ri=!1,Sa=!1,Bf=!1,ui=0,rt=0,Oi=0,kr=0,Pf=0,rn=0,wa=0,js=null,Yt=null,Vf=!1,kl=0,Qy=0,Ml=1/0,Dl=null,zi=null,gt=0,Li=null,Ta=null,ci=0,Hf=0,qf=null,Wy=null,Is=0,Ff=null;function an(){return(Ue&2)!==0&&Oe!==0?Oe&-Oe:R.T!==null?Wf():dp()}function Zy(){if(rn===0)if((Oe&536870912)===0||Le){var n=Uo;Uo<<=1,(Uo&3932160)===0&&(Uo=262144),rn=n}else rn=536870912;return n=en.current,n!==null&&(n.flags|=32),rn}function Xt(n,r,s){(n===Ke&&(Ve===2||Ve===9)||n.cancelPendingCommit!==null)&&(Ea(n,0),ji(n,Oe,rn,!1)),rs(n,s),((Ue&2)===0||n!==Ke)&&(n===Ke&&((Ue&2)===0&&(kr|=s),rt===4&&ji(n,Oe,rn,!1)),jn(n))}function $y(n,r,s){if((Ue&6)!==0)throw Error(a(327));var l=!s&&(r&127)===0&&(r&n.expiredLanes)===0||is(n,r),f=l?oA(n,r):Yf(n,r,!0),h=l;do{if(f===0){Sa&&!l&&ji(n,r,0,!1);break}else{if(s=n.current.alternate,h&&!aA(s)){f=Yf(n,r,!1),h=!1;continue}if(f===2){if(h=r,n.errorRecoveryDisabledLanes&h)var b=0;else b=n.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){r=b;e:{var S=n;f=js;var _=S.current.memoizedState.isDehydrated;if(_&&(Ea(S,b).flags|=256),b=Yf(S,b,!1),b!==2){if(Bf&&!_){S.errorRecoveryDisabledLanes|=h,kr|=h,f=4;break e}h=Yt,Yt=f,h!==null&&(Yt===null?Yt=h:Yt.push.apply(Yt,h))}f=b}if(h=!1,f!==2)continue}}if(f===1){Ea(n,0),ji(n,r,0,!0);break}e:{switch(l=n,h=f,h){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:ji(l,r,rn,!Ri);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(f=kl+300-Nt(),10<f)){if(ji(l,r,rn,!Ri),Po(l,0,!0)!==0)break e;ci=r,l.timeoutHandle=Mb(Jy.bind(null,l,s,Yt,Dl,Vf,r,rn,kr,wa,Ri,h,"Throttled",-0,0),f);break e}Jy(l,s,Yt,Dl,Vf,r,rn,kr,wa,Ri,h,null,-0,0)}}break}while(!0);jn(n)}function Jy(n,r,s,l,f,h,b,S,_,I,F,Q,U,H){if(n.timeoutHandle=-1,Q=r.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qn},Gy(r,h,Q);var ce=(h&62914560)===h?kl-Nt():(h&4194048)===h?Qy-Nt():0;if(ce=qA(Q,ce),ce!==null){ci=h,n.cancelPendingCommit=ce(ob.bind(null,n,r,h,s,l,f,b,S,_,F,Q,null,U,H)),ji(n,h,b,!I);return}}ob(n,r,h,s,l,f,b,S,_)}function aA(n){for(var r=n;;){var s=r.tag;if((s===0||s===11||s===15)&&r.flags&16384&&(s=r.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var f=s[l],h=f.getSnapshot;f=f.value;try{if(!$t(h(),f))return!1}catch{return!1}}if(s=r.child,r.subtreeFlags&16384&&s!==null)s.return=r,r=s;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function ji(n,r,s,l){r&=~Pf,r&=~kr,n.suspendedLanes|=r,n.pingedLanes&=~r,l&&(n.warmLanes|=r),l=n.expirationTimes;for(var f=r;0<f;){var h=31-Xe(f),b=1<<h;l[h]=-1,f&=~b}s!==0&&up(n,s,r)}function Nl(){return(Ue&6)===0?(Us(0),!1):!0}function Gf(){if(Ne!==null){if(Ve===0)var n=Ne.return;else n=Ne,Jn=vr=null,of(n),ma=null,xs=0,n=Ne;for(;n!==null;)Dy(n.alternate,n),n=n.return;Ne=null}}function Ea(n,r){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,AA(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),ci=0,Gf(),Ke=n,Ne=s=Zn(n.current,null),Oe=r,Ve=0,nn=null,Ri=!1,Sa=is(n,r),Bf=!1,wa=rn=Pf=kr=Oi=rt=0,Yt=js=null,Vf=!1,(r&8)!==0&&(r|=r&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=r;0<l;){var f=31-Xe(l),h=1<<f;r|=n[f],l&=~h}return ui=r,$o(),s}function eb(n,r){_e=null,R.H=ks,r===ha||r===sl?(r=gg(),Ve=3):r===Kc?(r=gg(),Ve=4):Ve=r===Tf?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,nn=r,Ne===null&&(rt=1,xl(n,dn(r,n.current)))}function tb(){var n=en.current;return n===null?!0:(Oe&4194048)===Oe?gn===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?n===gn:!1}function nb(){var n=R.H;return R.H=ks,n===null?ks:n}function ib(){var n=R.A;return R.A=iA,n}function Rl(){rt=4,Ri||(Oe&4194048)!==Oe&&en.current!==null||(Sa=!0),(Oi&134217727)===0&&(kr&134217727)===0||Ke===null||ji(Ke,Oe,rn,!1)}function Yf(n,r,s){var l=Ue;Ue|=2;var f=nb(),h=ib();(Ke!==n||Oe!==r)&&(Dl=null,Ea(n,r)),r=!1;var b=rt;e:do try{if(Ve!==0&&Ne!==null){var S=Ne,_=nn;switch(Ve){case 8:Gf(),b=6;break e;case 3:case 2:case 9:case 6:en.current===null&&(r=!0);var I=Ve;if(Ve=0,nn=null,Aa(n,S,_,I),s&&Sa){b=0;break e}break;default:I=Ve,Ve=0,nn=null,Aa(n,S,_,I)}}sA(),b=rt;break}catch(F){eb(n,F)}while(!0);return r&&n.shellSuspendCounter++,Jn=vr=null,Ue=l,R.H=f,R.A=h,Ne===null&&(Ke=null,Oe=0,$o()),b}function sA(){for(;Ne!==null;)rb(Ne)}function oA(n,r){var s=Ue;Ue|=2;var l=nb(),f=ib();Ke!==n||Oe!==r?(Dl=null,Ml=Nt()+500,Ea(n,r)):Sa=is(n,r);e:do try{if(Ve!==0&&Ne!==null){r=Ne;var h=nn;t:switch(Ve){case 1:Ve=0,nn=null,Aa(n,r,h,1);break;case 2:case 9:if(mg(h)){Ve=0,nn=null,ab(r);break}r=function(){Ve!==2&&Ve!==9||Ke!==n||(Ve=7),jn(n)},h.then(r,r);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:mg(h)?(Ve=0,nn=null,ab(r)):(Ve=0,nn=null,Aa(n,r,h,7));break;case 5:var b=null;switch(Ne.tag){case 26:b=Ne.memoizedState;case 5:case 27:var S=Ne;if(b?Fb(b):S.stateNode.complete){Ve=0,nn=null;var _=S.sibling;if(_!==null)Ne=_;else{var I=S.return;I!==null?(Ne=I,Ol(I)):Ne=null}break t}}Ve=0,nn=null,Aa(n,r,h,5);break;case 6:Ve=0,nn=null,Aa(n,r,h,6);break;case 8:Gf(),rt=6;break e;default:throw Error(a(462))}}lA();break}catch(F){eb(n,F)}while(!0);return Jn=vr=null,R.H=l,R.A=f,Ue=s,Ne!==null?0:(Ke=null,Oe=0,$o(),rt)}function lA(){for(;Ne!==null&&!rc();)rb(Ne)}function rb(n){var r=ky(n.alternate,n,ui);n.memoizedProps=n.pendingProps,r===null?Ol(n):Ne=r}function ab(n){var r=n,s=r.alternate;switch(r.tag){case 15:case 0:r=wy(s,r,r.pendingProps,r.type,void 0,Oe);break;case 11:r=wy(s,r,r.pendingProps,r.type.render,r.ref,Oe);break;case 5:of(r);default:Dy(s,r),r=Ne=ig(r,ui),r=ky(s,r,ui)}n.memoizedProps=n.pendingProps,r===null?Ol(n):Ne=r}function Aa(n,r,s,l){Jn=vr=null,of(r),ma=null,xs=0;var f=r.return;try{if(WE(n,f,r,s,Oe)){rt=1,xl(n,dn(s,n.current)),Ne=null;return}}catch(h){if(f!==null)throw Ne=f,h;rt=1,xl(n,dn(s,n.current)),Ne=null;return}r.flags&32768?(Le||l===1?n=!0:Sa||(Oe&536870912)!==0?n=!1:(Ri=n=!0,(l===2||l===9||l===3||l===6)&&(l=en.current,l!==null&&l.tag===13&&(l.flags|=16384))),sb(r,n)):Ol(r)}function Ol(n){var r=n;do{if((r.flags&32768)!==0){sb(r,Ri);return}n=r.return;var s=JE(r.alternate,r,ui);if(s!==null){Ne=s;return}if(r=r.sibling,r!==null){Ne=r;return}Ne=r=n}while(r!==null);rt===0&&(rt=5)}function sb(n,r){do{var s=eA(n.alternate,n);if(s!==null){s.flags&=32767,Ne=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!r&&(n=n.sibling,n!==null)){Ne=n;return}Ne=n=s}while(n!==null);rt=6,Ne=null}function ob(n,r,s,l,f,h,b,S,_){n.cancelPendingCommit=null;do zl();while(gt!==0);if((Ue&6)!==0)throw Error(a(327));if(r!==null){if(r===n.current)throw Error(a(177));if(h=r.lanes|r.childLanes,h|=Oc,VT(n,s,h,b,S,_),n===Ke&&(Ne=Ke=null,Oe=0),Ta=r,Li=n,ci=s,Hf=h,qf=f,Wy=l,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,dA(xe,function(){return db(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,f=W.p,W.p=2,b=Ue,Ue|=4;try{tA(n,r,s)}finally{Ue=b,W.p=f,R.T=l}}gt=1,lb(),ub(),cb()}}function lb(){if(gt===1){gt=0;var n=Li,r=Ta,s=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||s){s=R.T,R.T=null;var l=W.p;W.p=2;var f=Ue;Ue|=4;try{Hy(r,n);var h=rd,b=Kp(n.containerInfo),S=h.focusedElem,_=h.selectionRange;if(b!==S&&S&&S.ownerDocument&&Xp(S.ownerDocument.documentElement,S)){if(_!==null&&kc(S)){var I=_.start,F=_.end;if(F===void 0&&(F=I),"selectionStart"in S)S.selectionStart=I,S.selectionEnd=Math.min(F,S.value.length);else{var Q=S.ownerDocument||document,U=Q&&Q.defaultView||window;if(U.getSelection){var H=U.getSelection(),ce=S.textContent.length,be=Math.min(_.start,ce),Ye=_.end===void 0?be:Math.min(_.end,ce);!H.extend&&be>Ye&&(b=Ye,Ye=be,be=b);var O=Yp(S,be),D=Yp(S,Ye);if(O&&D&&(H.rangeCount!==1||H.anchorNode!==O.node||H.anchorOffset!==O.offset||H.focusNode!==D.node||H.focusOffset!==D.offset)){var j=Q.createRange();j.setStart(O.node,O.offset),H.removeAllRanges(),be>Ye?(H.addRange(j),H.extend(D.node,D.offset)):(j.setEnd(D.node,D.offset),H.addRange(j))}}}}for(Q=[],H=S;H=H.parentNode;)H.nodeType===1&&Q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Q.length;S++){var X=Q[S];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Yl=!!id,rd=id=null}finally{Ue=f,W.p=l,R.T=s}}n.current=r,gt=2}}function ub(){if(gt===2){gt=0;var n=Li,r=Ta,s=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||s){s=R.T,R.T=null;var l=W.p;W.p=2;var f=Ue;Ue|=4;try{Iy(n,r.alternate,r)}finally{Ue=f,W.p=l,R.T=s}}gt=3}}function cb(){if(gt===4||gt===3){gt=0,ac();var n=Li,r=Ta,s=ci,l=Wy;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?gt=5:(gt=0,Ta=Li=null,fb(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(zi=null),uc(s),r=r.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(Rt,r,void 0,(r.current.flags&128)===128)}catch{}if(l!==null){r=R.T,f=W.p,W.p=2,R.T=null;try{for(var h=n.onRecoverableError,b=0;b<l.length;b++){var S=l[b];h(S.value,{componentStack:S.stack})}}finally{R.T=r,W.p=f}}(ci&3)!==0&&zl(),jn(n),f=n.pendingLanes,(s&261930)!==0&&(f&42)!==0?n===Ff?Is++:(Is=0,Ff=n):Is=0,Us(0)}}function fb(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,bs(r)))}function zl(){return lb(),ub(),cb(),db()}function db(){if(gt!==5)return!1;var n=Li,r=Hf;Hf=0;var s=uc(ci),l=R.T,f=W.p;try{W.p=32>s?32:s,R.T=null,s=qf,qf=null;var h=Li,b=ci;if(gt=0,Ta=Li=null,ci=0,(Ue&6)!==0)throw Error(a(331));var S=Ue;if(Ue|=4,Xy(h.current),Fy(h,h.current,b,s),Ue=S,Us(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Rt,h)}catch{}return!0}finally{W.p=f,R.T=l,fb(n,r)}}function hb(n,r,s){r=dn(s,r),r=wf(n.stateNode,r,2),n=ki(n,r,2),n!==null&&(rs(n,2),jn(n))}function He(n,r,s){if(n.tag===3)hb(n,n,s);else for(;r!==null;){if(r.tag===3){hb(r,n,s);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(zi===null||!zi.has(l))){n=dn(s,n),s=my(2),l=ki(r,s,2),l!==null&&(py(s,l,r,n),rs(l,2),jn(l));break}}r=r.return}}function Xf(n,r,s){var l=n.pingCache;if(l===null){l=n.pingCache=new rA;var f=new Set;l.set(r,f)}else f=l.get(r),f===void 0&&(f=new Set,l.set(r,f));f.has(s)||(Bf=!0,f.add(s),n=uA.bind(null,n,r,s),r.then(n,n))}function uA(n,r,s){var l=n.pingCache;l!==null&&l.delete(r),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,Ke===n&&(Oe&s)===s&&(rt===4||rt===3&&(Oe&62914560)===Oe&&300>Nt()-kl?(Ue&2)===0&&Ea(n,0):Pf|=s,wa===Oe&&(wa=0)),jn(n)}function mb(n,r){r===0&&(r=lp()),n=gr(n,r),n!==null&&(rs(n,r),jn(n))}function cA(n){var r=n.memoizedState,s=0;r!==null&&(s=r.retryLane),mb(n,s)}function fA(n,r){var s=0;switch(n.tag){case 31:case 13:var l=n.stateNode,f=n.memoizedState;f!==null&&(s=f.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(a(314))}l!==null&&l.delete(r),mb(n,s)}function dA(n,r){return Yr(n,r)}var Ll=null,_a=null,Kf=!1,jl=!1,Qf=!1,Ii=0;function jn(n){n!==_a&&n.next===null&&(_a===null?Ll=_a=n:_a=_a.next=n),jl=!0,Kf||(Kf=!0,mA())}function Us(n,r){if(!Qf&&jl){Qf=!0;do for(var s=!1,l=Ll;l!==null;){if(n!==0){var f=l.pendingLanes;if(f===0)var h=0;else{var b=l.suspendedLanes,S=l.pingedLanes;h=(1<<31-Xe(42|n)+1)-1,h&=f&~(b&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(s=!0,bb(l,h))}else h=Oe,h=Po(l,l===Ke?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||is(l,h)||(s=!0,bb(l,h));l=l.next}while(s);Qf=!1}}function hA(){pb()}function pb(){jl=Kf=!1;var n=0;Ii!==0&&EA()&&(n=Ii);for(var r=Nt(),s=null,l=Ll;l!==null;){var f=l.next,h=gb(l,r);h===0?(l.next=null,s===null?Ll=f:s.next=f,f===null&&(_a=s)):(s=l,(n!==0||(h&3)!==0)&&(jl=!0)),l=f}gt!==0&>!==5||Us(n),Ii!==0&&(Ii=0)}function gb(n,r){for(var s=n.suspendedLanes,l=n.pingedLanes,f=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var b=31-Xe(h),S=1<<b,_=f[b];_===-1?((S&s)===0||(S&l)!==0)&&(f[b]=PT(S,r)):_<=r&&(n.expiredLanes|=S),h&=~S}if(r=Ke,s=Oe,s=Po(n,n===r?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,s===0||n===r&&(Ve===2||Ve===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&ns(l),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||is(n,s)){if(r=s&-s,r===n.callbackPriority)return r;switch(l!==null&&ns(l),uc(s)){case 2:case 8:s=ue;break;case 32:s=xe;break;case 268435456:s=Pe;break;default:s=xe}return l=yb.bind(null,n),s=Yr(s,l),n.callbackPriority=r,n.callbackNode=s,r}return l!==null&&l!==null&&ns(l),n.callbackPriority=2,n.callbackNode=null,2}function yb(n,r){if(gt!==0&>!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(zl()&&n.callbackNode!==s)return null;var l=Oe;return l=Po(n,n===Ke?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:($y(n,l,r),gb(n,Nt()),n.callbackNode!=null&&n.callbackNode===s?yb.bind(null,n):null)}function bb(n,r){if(zl())return null;$y(n,r,!0)}function mA(){_A(function(){(Ue&6)!==0?Yr(G,hA):pb()})}function Wf(){if(Ii===0){var n=fa;n===0&&(n=Io,Io<<=1,(Io&261888)===0&&(Io=256)),Ii=n}return Ii}function vb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Fo(""+n)}function xb(n,r){var s=r.ownerDocument.createElement("input");return s.name=r.name,s.value=r.value,n.id&&s.setAttribute("form",n.id),r.parentNode.insertBefore(s,r),n=new FormData(n),s.parentNode.removeChild(s),n}function pA(n,r,s,l,f){if(r==="submit"&&s&&s.stateNode===f){var h=vb((f[Vt]||null).action),b=l.submitter;b&&(r=(r=b[Vt]||null)?vb(r.formAction):b.getAttribute("formAction"),r!==null&&(h=r,b=null));var S=new Ko("action","action",null,l,f);n.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ii!==0){var _=b?xb(f,b):new FormData(f);gf(s,{pending:!0,data:_,method:f.method,action:h},null,_)}}else typeof h=="function"&&(S.preventDefault(),_=b?xb(f,b):new FormData(f),gf(s,{pending:!0,data:_,method:f.method,action:h},h,_))},currentTarget:f}]})}}for(var Zf=0;Zf<Rc.length;Zf++){var $f=Rc[Zf],gA=$f.toLowerCase(),yA=$f[0].toUpperCase()+$f.slice(1);Tn(gA,"on"+yA)}Tn(Zp,"onAnimationEnd"),Tn($p,"onAnimationIteration"),Tn(Jp,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(OE,"onTransitionRun"),Tn(zE,"onTransitionStart"),Tn(LE,"onTransitionCancel"),Tn(eg,"onTransitionEnd"),Zr("onMouseEnter",["mouseout","mouseover"]),Zr("onMouseLeave",["mouseout","mouseover"]),Zr("onPointerEnter",["pointerout","pointerover"]),Zr("onPointerLeave",["pointerout","pointerover"]),dr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),dr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),dr("onBeforeInput",["compositionend","keypress","textInput","paste"]),dr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),dr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),dr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bs="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(" "),bA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bs));function Sb(n,r){r=(r&4)!==0;for(var s=0;s<n.length;s++){var l=n[s],f=l.event;l=l.listeners;e:{var h=void 0;if(r)for(var b=l.length-1;0<=b;b--){var S=l[b],_=S.instance,I=S.currentTarget;if(S=S.listener,_!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=I;try{h(f)}catch(F){Zo(F)}f.currentTarget=null,h=_}else for(b=0;b<l.length;b++){if(S=l[b],_=S.instance,I=S.currentTarget,S=S.listener,_!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=I;try{h(f)}catch(F){Zo(F)}f.currentTarget=null,h=_}}}}function Re(n,r){var s=r[cc];s===void 0&&(s=r[cc]=new Set);var l=n+"__bubble";s.has(l)||(wb(r,n,2,!1),s.add(l))}function Jf(n,r,s){var l=0;r&&(l|=4),wb(s,n,l,r)}var Il="_reactListening"+Math.random().toString(36).slice(2);function ed(n){if(!n[Il]){n[Il]=!0,pp.forEach(function(s){s!=="selectionchange"&&(bA.has(s)||Jf(s,!1,n),Jf(s,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[Il]||(r[Il]=!0,Jf("selectionchange",!1,r))}}function wb(n,r,s,l){switch(Zb(r)){case 2:var f=YA;break;case 8:f=XA;break;default:f=pd}s=f.bind(null,r,s,n),f=void 0,!vc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(f=!0),l?f!==void 0?n.addEventListener(r,s,{capture:!0,passive:f}):n.addEventListener(r,s,!0):f!==void 0?n.addEventListener(r,s,{passive:f}):n.addEventListener(r,s,!1)}function td(n,r,s,l,f){var h=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var b=l.tag;if(b===3||b===4){var S=l.stateNode.containerInfo;if(S===f)break;if(b===4)for(b=l.return;b!==null;){var _=b.tag;if((_===3||_===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;S!==null;){if(b=Kr(S),b===null)return;if(_=b.tag,_===5||_===6||_===26||_===27){l=h=b;continue e}S=S.parentNode}}l=l.return}Cp(function(){var I=h,F=yc(s),Q=[];e:{var U=tg.get(n);if(U!==void 0){var H=Ko,ce=n;switch(n){case"keypress":if(Yo(s)===0)break e;case"keydown":case"keyup":H=fE;break;case"focusin":ce="focus",H=Tc;break;case"focusout":ce="blur",H=Tc;break;case"beforeblur":case"afterblur":H=Tc;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Dp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=JT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=mE;break;case Zp:case $p:case Jp:H=nE;break;case eg:H=gE;break;case"scroll":case"scrollend":H=ZT;break;case"wheel":H=bE;break;case"copy":case"cut":case"paste":H=rE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Rp;break;case"toggle":case"beforetoggle":H=xE}var be=(r&4)!==0,Ye=!be&&(n==="scroll"||n==="scrollend"),O=be?U!==null?U+"Capture":null:U;be=[];for(var D=I,j;D!==null;){var X=D;if(j=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||j===null||O===null||(X=os(D,O),X!=null&&be.push(Ps(D,X,j))),Ye)break;D=D.return}0<be.length&&(U=new H(U,ce,null,s,F),Q.push({event:U,listeners:be}))}}if((r&7)===0){e:{if(U=n==="mouseover"||n==="pointerover",H=n==="mouseout"||n==="pointerout",U&&s!==gc&&(ce=s.relatedTarget||s.fromElement)&&(Kr(ce)||ce[Xr]))break e;if((H||U)&&(U=F.window===F?F:(U=F.ownerDocument)?U.defaultView||U.parentWindow:window,H?(ce=s.relatedTarget||s.toElement,H=I,ce=ce?Kr(ce):null,ce!==null&&(Ye=u(ce),be=ce.tag,ce!==Ye||be!==5&&be!==27&&be!==6)&&(ce=null)):(H=null,ce=I),H!==ce)){if(be=Dp,X="onMouseLeave",O="onMouseEnter",D="mouse",(n==="pointerout"||n==="pointerover")&&(be=Rp,X="onPointerLeave",O="onPointerEnter",D="pointer"),Ye=H==null?U:ss(H),j=ce==null?U:ss(ce),U=new be(X,D+"leave",H,s,F),U.target=Ye,U.relatedTarget=j,X=null,Kr(F)===I&&(be=new be(O,D+"enter",ce,s,F),be.target=j,be.relatedTarget=Ye,X=be),Ye=X,H&&ce)t:{for(be=vA,O=H,D=ce,j=0,X=O;X;X=be(X))j++;X=0;for(var ye=D;ye;ye=be(ye))X++;for(;0<j-X;)O=be(O),j--;for(;0<X-j;)D=be(D),X--;for(;j--;){if(O===D||D!==null&&O===D.alternate){be=O;break t}O=be(O),D=be(D)}be=null}else be=null;H!==null&&Tb(Q,U,H,be,!1),ce!==null&&Ye!==null&&Tb(Q,Ye,ce,be,!0)}}e:{if(U=I?ss(I):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var je=Pp;else if(Up(U))if(Vp)je=DE;else{je=kE;var pe=CE}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?I&&pc(I.elementType)&&(je=Pp):je=ME;if(je&&(je=je(n,I))){Bp(Q,je,s,F);break e}pe&&pe(n,U,I),n==="focusout"&&I&&U.type==="number"&&I.memoizedProps.value!=null&&mc(U,"number",U.value)}switch(pe=I?ss(I):window,n){case"focusin":(Up(pe)||pe.contentEditable==="true")&&(ia=pe,Mc=I,ps=null);break;case"focusout":ps=Mc=ia=null;break;case"mousedown":Dc=!0;break;case"contextmenu":case"mouseup":case"dragend":Dc=!1,Qp(Q,s,F);break;case"selectionchange":if(RE)break;case"keydown":case"keyup":Qp(Q,s,F)}var Ce;if(Ac)e:{switch(n){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else na?jp(n,s)&&(ze="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(ze="onCompositionStart");ze&&(Op&&s.locale!=="ko"&&(na||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&na&&(Ce=kp()):(Si=F,xc="value"in Si?Si.value:Si.textContent,na=!0)),pe=Ul(I,ze),0<pe.length&&(ze=new Np(ze,n,null,s,F),Q.push({event:ze,listeners:pe}),Ce?ze.data=Ce:(Ce=Ip(s),Ce!==null&&(ze.data=Ce)))),(Ce=wE?TE(n,s):EE(n,s))&&(ze=Ul(I,"onBeforeInput"),0<ze.length&&(pe=new Np("onBeforeInput","beforeinput",null,s,F),Q.push({event:pe,listeners:ze}),pe.data=Ce)),pA(Q,n,I,s,F)}Sb(Q,r)})}function Ps(n,r,s){return{instance:n,listener:r,currentTarget:s}}function Ul(n,r){for(var s=r+"Capture",l=[];n!==null;){var f=n,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=os(n,s),f!=null&&l.unshift(Ps(n,f,h)),f=os(n,r),f!=null&&l.push(Ps(n,f,h))),n.tag===3)return l;n=n.return}return[]}function vA(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Tb(n,r,s,l,f){for(var h=r._reactName,b=[];s!==null&&s!==l;){var S=s,_=S.alternate,I=S.stateNode;if(S=S.tag,_!==null&&_===l)break;S!==5&&S!==26&&S!==27||I===null||(_=I,f?(I=os(s,h),I!=null&&b.unshift(Ps(s,I,_))):f||(I=os(s,h),I!=null&&b.push(Ps(s,I,_)))),s=s.return}b.length!==0&&n.push({event:r,listeners:b})}var xA=/\r\n?/g,SA=/\u0000|\uFFFD/g;function Eb(n){return(typeof n=="string"?n:""+n).replace(xA,`
|
||
`).replace(SA,"")}function Ab(n,r){return r=Eb(r),Eb(n)===r}function Ge(n,r,s,l,f,h){switch(s){case"children":typeof l=="string"?r==="body"||r==="textarea"&&l===""||Jr(n,l):(typeof l=="number"||typeof l=="bigint")&&r!=="body"&&Jr(n,""+l);break;case"className":Ho(n,"class",l);break;case"tabIndex":Ho(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ho(n,s,l);break;case"style":Ap(n,l,h);break;case"data":if(r!=="object"){Ho(n,"data",l);break}case"src":case"href":if(l===""&&(r!=="a"||s!=="href")){n.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(s);break}l=Fo(""+l),n.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(s,"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 h=="function"&&(s==="formAction"?(r!=="input"&&Ge(n,r,"name",f.name,f,null),Ge(n,r,"formEncType",f.formEncType,f,null),Ge(n,r,"formMethod",f.formMethod,f,null),Ge(n,r,"formTarget",f.formTarget,f,null)):(Ge(n,r,"encType",f.encType,f,null),Ge(n,r,"method",f.method,f,null),Ge(n,r,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(s);break}l=Fo(""+l),n.setAttribute(s,l);break;case"onClick":l!=null&&(n.onclick=Qn);break;case"onScroll":l!=null&&Re("scroll",n);break;case"onScrollEnd":l!=null&&Re("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(a(61));if(s=l.__html,s!=null){if(f.children!=null)throw Error(a(60));n.innerHTML=s}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}s=Fo(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,""+l):n.removeAttribute(s);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":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":l===!0?n.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,l):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(s,l):n.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(s):n.setAttribute(s,l);break;case"popover":Re("beforetoggle",n),Re("toggle",n),Vo(n,"popover",l);break;case"xlinkActuate":Kn(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Kn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Kn(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Kn(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Kn(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Kn(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Kn(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Kn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Kn(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Vo(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=QT.get(s)||s,Vo(n,s,l))}}function nd(n,r,s,l,f,h){switch(s){case"style":Ap(n,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(a(61));if(s=l.__html,s!=null){if(f.children!=null)throw Error(a(60));n.innerHTML=s}}break;case"children":typeof l=="string"?Jr(n,l):(typeof l=="number"||typeof l=="bigint")&&Jr(n,""+l);break;case"onScroll":l!=null&&Re("scroll",n);break;case"onScrollEnd":l!=null&&Re("scrollend",n);break;case"onClick":l!=null&&(n.onclick=Qn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gp.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(f=s.endsWith("Capture"),r=s.slice(2,f?s.length-7:void 0),h=n[Vt]||null,h=h!=null?h[s]:null,typeof h=="function"&&n.removeEventListener(r,h,f),typeof l=="function")){typeof h!="function"&&h!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(r,l,f);break e}s in n?n[s]=l:l===!0?n.setAttribute(s,""):Vo(n,s,l)}}}function At(n,r,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",n),Re("load",n);var l=!1,f=!1,h;for(h in s)if(s.hasOwnProperty(h)){var b=s[h];if(b!=null)switch(h){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Ge(n,r,h,b,s,null)}}f&&Ge(n,r,"srcSet",s.srcSet,s,null),l&&Ge(n,r,"src",s.src,s,null);return;case"input":Re("invalid",n);var S=h=b=f=null,_=null,I=null;for(l in s)if(s.hasOwnProperty(l)){var F=s[l];if(F!=null)switch(l){case"name":f=F;break;case"type":b=F;break;case"checked":_=F;break;case"defaultChecked":I=F;break;case"value":h=F;break;case"defaultValue":S=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,r));break;default:Ge(n,r,l,F,s,null)}}Sp(n,h,S,_,I,b,f,!1);return;case"select":Re("invalid",n),l=b=h=null;for(f in s)if(s.hasOwnProperty(f)&&(S=s[f],S!=null))switch(f){case"value":h=S;break;case"defaultValue":b=S;break;case"multiple":l=S;default:Ge(n,r,f,S,s,null)}r=h,s=b,n.multiple=!!l,r!=null?$r(n,!!l,r,!1):s!=null&&$r(n,!!l,s,!0);return;case"textarea":Re("invalid",n),h=f=l=null;for(b in s)if(s.hasOwnProperty(b)&&(S=s[b],S!=null))switch(b){case"value":l=S;break;case"defaultValue":f=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(a(91));break;default:Ge(n,r,b,S,s,null)}Tp(n,l,f,h);return;case"option":for(_ in s)if(s.hasOwnProperty(_)&&(l=s[_],l!=null))switch(_){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ge(n,r,_,l,s,null)}return;case"dialog":Re("beforetoggle",n),Re("toggle",n),Re("cancel",n),Re("close",n);break;case"iframe":case"object":Re("load",n);break;case"video":case"audio":for(l=0;l<Bs.length;l++)Re(Bs[l],n);break;case"image":Re("error",n),Re("load",n);break;case"details":Re("toggle",n);break;case"embed":case"source":case"link":Re("error",n),Re("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in s)if(s.hasOwnProperty(I)&&(l=s[I],l!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Ge(n,r,I,l,s,null)}return;default:if(pc(r)){for(F in s)s.hasOwnProperty(F)&&(l=s[F],l!==void 0&&nd(n,r,F,l,s,void 0));return}}for(S in s)s.hasOwnProperty(S)&&(l=s[S],l!=null&&Ge(n,r,S,l,s,null))}function wA(n,r,s,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,b=null,S=null,_=null,I=null,F=null;for(H in s){var Q=s[H];if(s.hasOwnProperty(H)&&Q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":_=Q;default:l.hasOwnProperty(H)||Ge(n,r,H,null,l,Q)}}for(var U in l){var H=l[U];if(Q=s[U],l.hasOwnProperty(U)&&(H!=null||Q!=null))switch(U){case"type":h=H;break;case"name":f=H;break;case"checked":I=H;break;case"defaultChecked":F=H;break;case"value":b=H;break;case"defaultValue":S=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,r));break;default:H!==Q&&Ge(n,r,U,H,l,Q)}}hc(n,b,S,_,I,F,h,f);return;case"select":H=b=S=U=null;for(h in s)if(_=s[h],s.hasOwnProperty(h)&&_!=null)switch(h){case"value":break;case"multiple":H=_;default:l.hasOwnProperty(h)||Ge(n,r,h,null,l,_)}for(f in l)if(h=l[f],_=s[f],l.hasOwnProperty(f)&&(h!=null||_!=null))switch(f){case"value":U=h;break;case"defaultValue":S=h;break;case"multiple":b=h;default:h!==_&&Ge(n,r,f,h,l,_)}r=S,s=b,l=H,U!=null?$r(n,!!s,U,!1):!!l!=!!s&&(r!=null?$r(n,!!s,r,!0):$r(n,!!s,s?[]:"",!1));return;case"textarea":H=U=null;for(S in s)if(f=s[S],s.hasOwnProperty(S)&&f!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ge(n,r,S,null,l,f)}for(b in l)if(f=l[b],h=s[b],l.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":U=f;break;case"defaultValue":H=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==h&&Ge(n,r,b,f,l,h)}wp(n,U,H);return;case"option":for(var ce in s)if(U=s[ce],s.hasOwnProperty(ce)&&U!=null&&!l.hasOwnProperty(ce))switch(ce){case"selected":n.selected=!1;break;default:Ge(n,r,ce,null,l,U)}for(_ in l)if(U=l[_],H=s[_],l.hasOwnProperty(_)&&U!==H&&(U!=null||H!=null))switch(_){case"selected":n.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ge(n,r,_,U,l,H)}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 be in s)U=s[be],s.hasOwnProperty(be)&&U!=null&&!l.hasOwnProperty(be)&&Ge(n,r,be,null,l,U);for(I in l)if(U=l[I],H=s[I],l.hasOwnProperty(I)&&U!==H&&(U!=null||H!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(a(137,r));break;default:Ge(n,r,I,U,l,H)}return;default:if(pc(r)){for(var Ye in s)U=s[Ye],s.hasOwnProperty(Ye)&&U!==void 0&&!l.hasOwnProperty(Ye)&&nd(n,r,Ye,void 0,l,U);for(F in l)U=l[F],H=s[F],!l.hasOwnProperty(F)||U===H||U===void 0&&H===void 0||nd(n,r,F,U,l,H);return}}for(var O in s)U=s[O],s.hasOwnProperty(O)&&U!=null&&!l.hasOwnProperty(O)&&Ge(n,r,O,null,l,U);for(Q in l)U=l[Q],H=s[Q],!l.hasOwnProperty(Q)||U===H||U==null&&H==null||Ge(n,r,Q,U,l,H)}function _b(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function TA(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var f=s[l],h=f.transferSize,b=f.initiatorType,S=f.duration;if(h&&S&&_b(b)){for(b=0,S=f.responseEnd,l+=1;l<s.length;l++){var _=s[l],I=_.startTime;if(I>S)break;var F=_.transferSize,Q=_.initiatorType;F&&_b(Q)&&(_=_.responseEnd,b+=F*(_<S?1:(S-I)/(_-I)))}if(--l,r+=8*(h+b)/(f.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var id=null,rd=null;function Bl(n){return n.nodeType===9?n:n.ownerDocument}function Cb(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kb(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function ad(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var sd=null;function EA(){var n=window.event;return n&&n.type==="popstate"?n===sd?!1:(sd=n,!0):(sd=null,!1)}var Mb=typeof setTimeout=="function"?setTimeout:void 0,AA=typeof clearTimeout=="function"?clearTimeout:void 0,Db=typeof Promise=="function"?Promise:void 0,_A=typeof queueMicrotask=="function"?queueMicrotask:typeof Db<"u"?function(n){return Db.resolve(null).then(n).catch(CA)}:Mb;function CA(n){setTimeout(function(){throw n})}function Ui(n){return n==="head"}function Nb(n,r){var s=r,l=0;do{var f=s.nextSibling;if(n.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"||s==="/&"){if(l===0){n.removeChild(f),Da(r);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")Vs(n.ownerDocument.documentElement);else if(s==="head"){s=n.ownerDocument.head,Vs(s);for(var h=s.firstChild;h;){var b=h.nextSibling,S=h.nodeName;h[as]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&h.rel.toLowerCase()==="stylesheet"||s.removeChild(h),h=b}}else s==="body"&&Vs(n.ownerDocument.body);s=f}while(s);Da(r)}function Rb(n,r){var s=n;n=0;do{var l=s.nextSibling;if(s.nodeType===1?r?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(r?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(n===0)break;n--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||n++;s=l}while(s)}function od(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var s=r;switch(r=r.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":od(s),fc(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function kA(n,r,s,l){for(;n.nodeType===1;){var f=s;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[as])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(h=n.getAttribute("src"),(h!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=yn(n.nextSibling),n===null)break}return null}function MA(n,r,s){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=yn(n.nextSibling),n===null))return null;return n}function Ob(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=yn(n.nextSibling),n===null))return null;return n}function ld(n){return n.data==="$?"||n.data==="$~"}function ud(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function DA(n,r){var s=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||s.readyState!=="loading")r();else{var l=function(){r(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function yn(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return n}var cd=null;function zb(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"||s==="/&"){if(r===0)return yn(n.nextSibling);r--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||r++}n=n.nextSibling}return null}function Lb(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(r===0)return n;r--}else s!=="/$"&&s!=="/&"||r++}n=n.previousSibling}return null}function jb(n,r,s){switch(r=Bl(s),n){case"html":if(n=r.documentElement,!n)throw Error(a(452));return n;case"head":if(n=r.head,!n)throw Error(a(453));return n;case"body":if(n=r.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function Vs(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);fc(n)}var bn=new Map,Ib=new Set;function Pl(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var fi=W.d;W.d={f:NA,r:RA,D:OA,C:zA,L:LA,m:jA,X:UA,S:IA,M:BA};function NA(){var n=fi.f(),r=Nl();return n||r}function RA(n){var r=Qr(n);r!==null&&r.tag===5&&r.type==="form"?ey(r):fi.r(n)}var Ca=typeof document>"u"?null:document;function Ub(n,r,s){var l=Ca;if(l&&typeof r=="string"&&r){var f=cn(r);f='link[rel="'+n+'"][href="'+f+'"]',typeof s=="string"&&(f+='[crossorigin="'+s+'"]'),Ib.has(f)||(Ib.add(f),n={rel:n,crossOrigin:s,href:r},l.querySelector(f)===null&&(r=l.createElement("link"),At(r,"link",n),vt(r),l.head.appendChild(r)))}}function OA(n){fi.D(n),Ub("dns-prefetch",n,null)}function zA(n,r){fi.C(n,r),Ub("preconnect",n,r)}function LA(n,r,s){fi.L(n,r,s);var l=Ca;if(l&&n&&r){var f='link[rel="preload"][as="'+cn(r)+'"]';r==="image"&&s&&s.imageSrcSet?(f+='[imagesrcset="'+cn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(f+='[imagesizes="'+cn(s.imageSizes)+'"]')):f+='[href="'+cn(n)+'"]';var h=f;switch(r){case"style":h=ka(n);break;case"script":h=Ma(n)}bn.has(h)||(n=y({rel:"preload",href:r==="image"&&s&&s.imageSrcSet?void 0:n,as:r},s),bn.set(h,n),l.querySelector(f)!==null||r==="style"&&l.querySelector(Hs(h))||r==="script"&&l.querySelector(qs(h))||(r=l.createElement("link"),At(r,"link",n),vt(r),l.head.appendChild(r)))}}function jA(n,r){fi.m(n,r);var s=Ca;if(s&&n){var l=r&&typeof r.as=="string"?r.as:"script",f='link[rel="modulepreload"][as="'+cn(l)+'"][href="'+cn(n)+'"]',h=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ma(n)}if(!bn.has(h)&&(n=y({rel:"modulepreload",href:n},r),bn.set(h,n),s.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(qs(h)))return}l=s.createElement("link"),At(l,"link",n),vt(l),s.head.appendChild(l)}}}function IA(n,r,s){fi.S(n,r,s);var l=Ca;if(l&&n){var f=Wr(l).hoistableStyles,h=ka(n);r=r||"default";var b=f.get(h);if(!b){var S={loading:0,preload:null};if(b=l.querySelector(Hs(h)))S.loading=5;else{n=y({rel:"stylesheet",href:n,"data-precedence":r},s),(s=bn.get(h))&&fd(n,s);var _=b=l.createElement("link");vt(_),At(_,"link",n),_._p=new Promise(function(I,F){_.onload=I,_.onerror=F}),_.addEventListener("load",function(){S.loading|=1}),_.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Vl(b,r,l)}b={type:"stylesheet",instance:b,count:1,state:S},f.set(h,b)}}}function UA(n,r){fi.X(n,r);var s=Ca;if(s&&n){var l=Wr(s).hoistableScripts,f=Ma(n),h=l.get(f);h||(h=s.querySelector(qs(f)),h||(n=y({src:n,async:!0},r),(r=bn.get(f))&&dd(n,r),h=s.createElement("script"),vt(h),At(h,"link",n),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(f,h))}}function BA(n,r){fi.M(n,r);var s=Ca;if(s&&n){var l=Wr(s).hoistableScripts,f=Ma(n),h=l.get(f);h||(h=s.querySelector(qs(f)),h||(n=y({src:n,async:!0,type:"module"},r),(r=bn.get(f))&&dd(n,r),h=s.createElement("script"),vt(h),At(h,"link",n),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(f,h))}}function Bb(n,r,s,l){var f=(f=ae.current)?Pl(f):null;if(!f)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(r=ka(s.href),s=Wr(f).hoistableStyles,l=s.get(r),l||(l={type:"style",instance:null,count:0,state:null},s.set(r,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=ka(s.href);var h=Wr(f).hoistableStyles,b=h.get(n);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,b),(h=f.querySelector(Hs(n)))&&!h._p&&(b.instance=h,b.state.loading=5),bn.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},bn.set(n,s),h||PA(f,n,s,b.state))),r&&l===null)throw Error(a(528,""));return b}if(r&&l!==null)throw Error(a(529,""));return null;case"script":return r=s.async,s=s.src,typeof s=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Ma(s),s=Wr(f).hoistableScripts,l=s.get(r),l||(l={type:"script",instance:null,count:0,state:null},s.set(r,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function ka(n){return'href="'+cn(n)+'"'}function Hs(n){return'link[rel="stylesheet"]['+n+"]"}function Pb(n){return y({},n,{"data-precedence":n.precedence,precedence:null})}function PA(n,r,s,l){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?l.loading=1:(r=n.createElement("link"),l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2}),At(r,"link",s),vt(r),n.head.appendChild(r))}function Ma(n){return'[src="'+cn(n)+'"]'}function qs(n){return"script[async]"+n}function Vb(n,r,s){if(r.count++,r.instance===null)switch(r.type){case"style":var l=n.querySelector('style[data-href~="'+cn(s.href)+'"]');if(l)return r.instance=l,vt(l),l;var f=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),vt(l),At(l,"style",f),Vl(l,s.precedence,n),r.instance=l;case"stylesheet":f=ka(s.href);var h=n.querySelector(Hs(f));if(h)return r.state.loading|=4,r.instance=h,vt(h),h;l=Pb(s),(f=bn.get(f))&&fd(l,f),h=(n.ownerDocument||n).createElement("link"),vt(h);var b=h;return b._p=new Promise(function(S,_){b.onload=S,b.onerror=_}),At(h,"link",l),r.state.loading|=4,Vl(h,s.precedence,n),r.instance=h;case"script":return h=Ma(s.src),(f=n.querySelector(qs(h)))?(r.instance=f,vt(f),f):(l=s,(f=bn.get(h))&&(l=y({},s),dd(l,f)),n=n.ownerDocument||n,f=n.createElement("script"),vt(f),At(f,"link",l),n.head.appendChild(f),r.instance=f);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(l=r.instance,r.state.loading|=4,Vl(l,s.precedence,n));return r.instance}function Vl(n,r,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,h=f,b=0;b<l.length;b++){var S=l[b];if(S.dataset.precedence===r)h=S;else if(h!==f)break}h?h.parentNode.insertBefore(n,h.nextSibling):(r=s.nodeType===9?s.head:s,r.insertBefore(n,r.firstChild))}function fd(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function dd(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var Hl=null;function Hb(n,r,s){if(Hl===null){var l=new Map,f=Hl=new Map;f.set(s,l)}else f=Hl,l=f.get(s),l||(l=new Map,f.set(s,l));if(l.has(n))return l;for(l.set(n,null),s=s.getElementsByTagName(n),f=0;f<s.length;f++){var h=s[f];if(!(h[as]||h[St]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(r)||"";b=n+b;var S=l.get(b);S?S.push(h):l.set(b,[h])}}return l}function qb(n,r,s){n=n.ownerDocument||n,n.head.insertBefore(s,r==="title"?n.querySelector("head > title"):null)}function VA(n,r,s){if(s===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Fb(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function HA(n,r,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var f=ka(l.href),h=r.querySelector(Hs(f));if(h){r=h._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=ql.bind(n),r.then(n,n)),s.state.loading|=4,s.instance=h,vt(h);return}h=r.ownerDocument||r,l=Pb(l),(f=bn.get(f))&&fd(l,f),h=h.createElement("link"),vt(h);var b=h;b._p=new Promise(function(S,_){b.onload=S,b.onerror=_}),At(h,"link",l),s.instance=h}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,r),(r=s.state.preload)&&(s.state.loading&3)===0&&(n.count++,s=ql.bind(n),r.addEventListener("load",s),r.addEventListener("error",s))}}var hd=0;function qA(n,r){return n.stylesheets&&n.count===0&&Gl(n,n.stylesheets),0<n.count||0<n.imgCount?function(s){var l=setTimeout(function(){if(n.stylesheets&&Gl(n,n.stylesheets),n.unsuspend){var h=n.unsuspend;n.unsuspend=null,h()}},6e4+r);0<n.imgBytes&&hd===0&&(hd=62500*TA());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Gl(n,n.stylesheets),n.unsuspend)){var h=n.unsuspend;n.unsuspend=null,h()}},(n.imgBytes>hd?50:800)+r);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(f)}}:null}function ql(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gl(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Fl=null;function Gl(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Fl=new Map,r.forEach(FA,n),Fl=null,ql.call(n))}function FA(n,r){if(!(r.state.loading&4)){var s=Fl.get(n);if(s)var l=s.get(null);else{s=new Map,Fl.set(n,s);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var b=f[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(s.set(b.dataset.precedence,b),l=b)}l&&s.set(null,l)}f=r.instance,b=f.getAttribute("data-precedence"),h=s.get(b)||l,h===l&&s.set(null,f),s.set(b,f),this.count++,l=ql.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),h?h.parentNode.insertBefore(f,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),r.state.loading|=4}}var Fs={$$typeof:L,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function GA(n,r,s,l,f,h,b,S,_){this.tag=1,this.containerInfo=n,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=oc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oc(0),this.hiddenUpdates=oc(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Gb(n,r,s,l,f,h,b,S,_,I,F,Q){return n=new GA(n,r,s,b,_,I,F,Q,S),r=1,h===!0&&(r|=24),h=Jt(3,null,null,r),n.current=h,h.stateNode=n,r=Gc(),r.refCount++,n.pooledCache=r,r.refCount++,h.memoizedState={element:l,isDehydrated:s,cache:r},Qc(h),n}function Yb(n){return n?(n=sa,n):sa}function Xb(n,r,s,l,f,h){f=Yb(f),l.context===null?l.context=f:l.pendingContext=f,l=Ci(r),l.payload={element:s},h=h===void 0?null:h,h!==null&&(l.callback=h),s=ki(n,l,r),s!==null&&(Xt(s,n,r),ws(s,n,r))}function Kb(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<r?s:r}}function md(n,r){Kb(n,r),(n=n.alternate)&&Kb(n,r)}function Qb(n){if(n.tag===13||n.tag===31){var r=gr(n,67108864);r!==null&&Xt(r,n,67108864),md(n,67108864)}}function Wb(n){if(n.tag===13||n.tag===31){var r=an();r=lc(r);var s=gr(n,r);s!==null&&Xt(s,n,r),md(n,r)}}var Yl=!0;function YA(n,r,s,l){var f=R.T;R.T=null;var h=W.p;try{W.p=2,pd(n,r,s,l)}finally{W.p=h,R.T=f}}function XA(n,r,s,l){var f=R.T;R.T=null;var h=W.p;try{W.p=8,pd(n,r,s,l)}finally{W.p=h,R.T=f}}function pd(n,r,s,l){if(Yl){var f=gd(l);if(f===null)td(n,r,l,Xl,s),$b(n,l);else if(QA(f,n,r,s,l))l.stopPropagation();else if($b(n,l),r&4&&-1<KA.indexOf(n)){for(;f!==null;){var h=Qr(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=fr(h.pendingLanes);if(b!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var _=1<<31-Xe(b);S.entanglements[1]|=_,b&=~_}jn(h),(Ue&6)===0&&(Ml=Nt()+500,Us(0))}}break;case 31:case 13:S=gr(h,2),S!==null&&Xt(S,h,2),Nl(),md(h,2)}if(h=gd(l),h===null&&td(n,r,l,Xl,s),h===f)break;f=h}f!==null&&l.stopPropagation()}else td(n,r,l,null,s)}}function gd(n){return n=yc(n),yd(n)}var Xl=null;function yd(n){if(Xl=null,n=Kr(n),n!==null){var r=u(n);if(r===null)n=null;else{var s=r.tag;if(s===13){if(n=c(r),n!==null)return n;n=null}else if(s===31){if(n=d(r),n!==null)return n;n=null}else if(s===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return Xl=n,null}function Zb(n){switch(n){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(sc()){case G:return 2;case ue:return 8;case xe:case De:return 32;case Pe:return 268435456;default:return 32}default:return 32}}var bd=!1,Bi=null,Pi=null,Vi=null,Gs=new Map,Ys=new Map,Hi=[],KA="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 $b(n,r){switch(n){case"focusin":case"focusout":Bi=null;break;case"dragenter":case"dragleave":Pi=null;break;case"mouseover":case"mouseout":Vi=null;break;case"pointerover":case"pointerout":Gs.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ys.delete(r.pointerId)}}function Xs(n,r,s,l,f,h){return n===null||n.nativeEvent!==h?(n={blockedOn:r,domEventName:s,eventSystemFlags:l,nativeEvent:h,targetContainers:[f]},r!==null&&(r=Qr(r),r!==null&&Qb(r)),n):(n.eventSystemFlags|=l,r=n.targetContainers,f!==null&&r.indexOf(f)===-1&&r.push(f),n)}function QA(n,r,s,l,f){switch(r){case"focusin":return Bi=Xs(Bi,n,r,s,l,f),!0;case"dragenter":return Pi=Xs(Pi,n,r,s,l,f),!0;case"mouseover":return Vi=Xs(Vi,n,r,s,l,f),!0;case"pointerover":var h=f.pointerId;return Gs.set(h,Xs(Gs.get(h)||null,n,r,s,l,f)),!0;case"gotpointercapture":return h=f.pointerId,Ys.set(h,Xs(Ys.get(h)||null,n,r,s,l,f)),!0}return!1}function Jb(n){var r=Kr(n.target);if(r!==null){var s=u(r);if(s!==null){if(r=s.tag,r===13){if(r=c(s),r!==null){n.blockedOn=r,hp(n.priority,function(){Wb(s)});return}}else if(r===31){if(r=d(s),r!==null){n.blockedOn=r,hp(n.priority,function(){Wb(s)});return}}else if(r===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Kl(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var s=gd(n.nativeEvent);if(s===null){s=n.nativeEvent;var l=new s.constructor(s.type,s);gc=l,s.target.dispatchEvent(l),gc=null}else return r=Qr(s),r!==null&&Qb(r),n.blockedOn=s,!1;r.shift()}return!0}function e0(n,r,s){Kl(n)&&s.delete(r)}function WA(){bd=!1,Bi!==null&&Kl(Bi)&&(Bi=null),Pi!==null&&Kl(Pi)&&(Pi=null),Vi!==null&&Kl(Vi)&&(Vi=null),Gs.forEach(e0),Ys.forEach(e0)}function Ql(n,r){n.blockedOn===r&&(n.blockedOn=null,bd||(bd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,WA)))}var Wl=null;function t0(n){Wl!==n&&(Wl=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Wl===n&&(Wl=null);for(var r=0;r<n.length;r+=3){var s=n[r],l=n[r+1],f=n[r+2];if(typeof l!="function"){if(yd(l||s)===null)continue;break}var h=Qr(s);h!==null&&(n.splice(r,3),r-=3,gf(h,{pending:!0,data:f,method:s.method,action:l},l,f))}}))}function Da(n){function r(_){return Ql(_,n)}Bi!==null&&Ql(Bi,n),Pi!==null&&Ql(Pi,n),Vi!==null&&Ql(Vi,n),Gs.forEach(r),Ys.forEach(r);for(var s=0;s<Hi.length;s++){var l=Hi[s];l.blockedOn===n&&(l.blockedOn=null)}for(;0<Hi.length&&(s=Hi[0],s.blockedOn===null);)Jb(s),s.blockedOn===null&&Hi.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var f=s[l],h=s[l+1],b=f[Vt]||null;if(typeof h=="function")b||t0(s);else if(b){var S=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[Vt]||null)S=b.formAction;else if(yd(f)!==null)continue}else S=b.action;typeof S=="function"?s[l+1]=S:(s.splice(l,3),l-=3),t0(s)}}}function n0(){function n(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function r(){f!==null&&(f(),f=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),f!==null&&(f(),f=null)}}}function vd(n){this._internalRoot=n}Zl.prototype.render=vd.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(a(409));var s=r.current,l=an();Xb(s,l,n,r,null,null)},Zl.prototype.unmount=vd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Xb(n.current,2,null,n,null,null),Nl(),r[Xr]=null}};function Zl(n){this._internalRoot=n}Zl.prototype.unstable_scheduleHydration=function(n){if(n){var r=dp();n={blockedOn:null,target:n,priority:r};for(var s=0;s<Hi.length&&r!==0&&r<Hi[s].priority;s++);Hi.splice(s,0,n),s===0&&Jb(n)}};var i0=t.version;if(i0!=="19.2.4")throw Error(a(527,i0,"19.2.4"));W.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=m(r),n=n!==null?g(n):null,n=n===null?null:n.stateNode,n};var ZA={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $l=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$l.isDisabled&&$l.supportsFiber)try{Rt=$l.inject(ZA),pt=$l}catch{}}return Qs.createRoot=function(n,r){if(!o(n))throw Error(a(299));var s=!1,l="",f=cy,h=fy,b=dy;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onUncaughtError!==void 0&&(f=r.onUncaughtError),r.onCaughtError!==void 0&&(h=r.onCaughtError),r.onRecoverableError!==void 0&&(b=r.onRecoverableError)),r=Gb(n,1,!1,null,null,s,l,null,f,h,b,n0),n[Xr]=r.current,ed(n),new vd(r)},Qs.hydrateRoot=function(n,r,s){if(!o(n))throw Error(a(299));var l=!1,f="",h=cy,b=fy,S=dy,_=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(f=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(b=s.onCaughtError),s.onRecoverableError!==void 0&&(S=s.onRecoverableError),s.formState!==void 0&&(_=s.formState)),r=Gb(n,1,!0,r,s??null,l,f,_,h,b,S,n0),r.context=Yb(null),s=r.current,l=an(),l=lc(l),f=Ci(l),f.callback=null,ki(s,f,l),s=l,r.current.lanes=s,rs(r,s),jn(r),n[Xr]=r.current,ed(n),new Zl(r)},Qs.version="19.2.4",Qs}var h0;function o_(){if(h0)return Td.exports;h0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Td.exports=s_(),Td.exports}var l_=o_();const nm=te.createContext({});function im(e){const t=te.useRef(null);return t.current===null&&(t.current=e()),t.current}const u_=typeof window<"u",a1=u_?te.useLayoutEffect:te.useEffect,Yu=te.createContext(null);function rm(e,t){e.indexOf(t)===-1&&e.push(t)}function Au(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const Fn=(e,t,i)=>i>t?t:i<e?e:i;let am=()=>{};const ir={},s1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function o1(e){return typeof e=="object"&&e!==null}const l1=e=>/^0[^.\s]+$/u.test(e);function u1(e){let t;return()=>(t===void 0&&(t=e()),t)}const Sn=e=>e,c_=(e,t)=>i=>t(e(i)),To=(...e)=>e.reduce(c_),mo=(e,t,i)=>{const a=t-e;return a===0?1:(i-e)/a};class sm{constructor(){this.subscriptions=[]}add(t){return rm(this.subscriptions,t),()=>Au(this.subscriptions,t)}notify(t,i,a){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,i,a);else for(let u=0;u<o;u++){const c=this.subscriptions[u];c&&c(t,i,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ln=e=>e*1e3,xn=e=>e/1e3;function c1(e,t){return t?e*(1e3/t):0}const f1=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e,f_=1e-7,d_=12;function h_(e,t,i,a,o){let u,c,d=0;do c=t+(i-t)/2,u=f1(c,a,o)-e,u>0?i=c:t=c;while(Math.abs(u)>f_&&++d<d_);return c}function Eo(e,t,i,a){if(e===t&&i===a)return Sn;const o=u=>h_(u,0,1,e,i);return u=>u===0||u===1?u:f1(o(u),t,a)}const d1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,h1=e=>t=>1-e(1-t),m1=Eo(.33,1.53,.69,.99),om=h1(m1),p1=d1(om),g1=e=>e>=1?1:(e*=2)<1?.5*om(e):.5*(2-Math.pow(2,-10*(e-1))),lm=e=>1-Math.sin(Math.acos(e)),y1=h1(lm),b1=d1(lm),m_=Eo(.42,0,1,1),p_=Eo(0,0,.58,1),v1=Eo(.42,0,.58,1),g_=e=>Array.isArray(e)&&typeof e[0]!="number",x1=e=>Array.isArray(e)&&typeof e[0]=="number",y_={linear:Sn,easeIn:m_,easeInOut:v1,easeOut:p_,circIn:lm,circInOut:b1,circOut:y1,backIn:om,backInOut:p1,backOut:m1,anticipate:g1},b_=e=>typeof e=="string",m0=e=>{if(x1(e)){am(e.length===4);const[t,i,a,o]=e;return Eo(t,i,a,o)}else if(b_(e))return y_[e];return e},Jl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function v_(e,t){let i=new Set,a=new Set,o=!1,u=!1;const c=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function p(g){c.has(g)&&(m.schedule(g),e()),g(d)}const m={schedule:(g,y=!1,v=!1)=>{const A=v&&o?i:a;return y&&c.add(g),A.add(g),g},cancel:g=>{a.delete(g),c.delete(g)},process:g=>{if(d=g,o){u=!0;return}o=!0;const y=i;i=a,a=y,i.forEach(p),i.clear(),o=!1,u&&(u=!1,m.process(g))}};return m}const x_=40;function S1(e,t){let i=!1,a=!0;const o={delta:0,timestamp:0,isProcessing:!1},u=()=>i=!0,c=Jl.reduce((L,Y)=>(L[Y]=v_(u),L),{}),{setup:d,read:p,resolveKeyframes:m,preUpdate:g,update:y,preRender:v,render:x,postRender:A}=c,M=()=>{const L=ir.useManualTiming,Y=L?o.timestamp:performance.now();i=!1,L||(o.delta=a?1e3/60:Math.max(Math.min(Y-o.timestamp,x_),1)),o.timestamp=Y,o.isProcessing=!0,d.process(o),p.process(o),m.process(o),g.process(o),y.process(o),v.process(o),x.process(o),A.process(o),o.isProcessing=!1,i&&t&&(a=!1,e(M))},N=()=>{i=!0,a=!0,o.isProcessing||e(M)};return{schedule:Jl.reduce((L,Y)=>{const Z=c[Y];return L[Y]=(z,K=!1,B=!1)=>(i||N(),Z.schedule(z,K,B)),L},{}),cancel:L=>{for(let Y=0;Y<Jl.length;Y++)c[Jl[Y]].cancel(L)},state:o,steps:c}}const{schedule:We,cancel:rr,state:_t,steps:Cd}=S1(typeof requestAnimationFrame<"u"?requestAnimationFrame:Sn,!0);let du;function S_(){du=void 0}const Lt={now:()=>(du===void 0&&Lt.set(_t.isProcessing||ir.useManualTiming?_t.timestamp:performance.now()),du),set:e=>{du=e,queueMicrotask(S_)}},w1=e=>t=>typeof t=="string"&&t.startsWith(e),T1=w1("--"),w_=w1("var(--"),um=e=>w_(e)?T_.test(e.split("/*")[0].trim()):!1,T_=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function p0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Wa={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},po={...Wa,transform:e=>Fn(0,1,e)},eu={...Wa,default:1},ao=e=>Math.round(e*1e5)/1e5,cm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E_(e){return e==null}const A_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fm=(e,t)=>i=>!!(typeof i=="string"&&A_.test(i)&&i.startsWith(e)||t&&!E_(i)&&Object.prototype.hasOwnProperty.call(i,t)),E1=(e,t,i)=>a=>{if(typeof a!="string")return a;const[o,u,c,d]=a.match(cm);return{[e]:parseFloat(o),[t]:parseFloat(u),[i]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},__=e=>Fn(0,255,e),kd={...Wa,transform:e=>Math.round(__(e))},zr={test:fm("rgb","red"),parse:E1("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:a=1})=>"rgba("+kd.transform(e)+", "+kd.transform(t)+", "+kd.transform(i)+", "+ao(po.transform(a))+")"};function C_(e){let t="",i="",a="",o="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),a=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),a=e.substring(3,4),o=e.substring(4,5),t+=t,i+=i,a+=a,o+=o),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(a,16),alpha:o?parseInt(o,16)/255:1}}const fh={test:fm("#"),parse:C_,transform:zr.transform},Ao=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qi=Ao("deg"),Hn=Ao("%"),de=Ao("px"),k_=Ao("vh"),M_=Ao("vw"),g0={...Hn,parse:e=>Hn.parse(e)/100,transform:e=>Hn.transform(e*100)},La={test:fm("hsl","hue"),parse:E1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:a=1})=>"hsla("+Math.round(e)+", "+Hn.transform(ao(t))+", "+Hn.transform(ao(i))+", "+ao(po.transform(a))+")"},mt={test:e=>zr.test(e)||fh.test(e)||La.test(e),parse:e=>zr.test(e)?zr.parse(e):La.test(e)?La.parse(e):fh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?zr.transform(e):La.transform(e),getAnimatableNone:e=>{const t=mt.parse(e);return t.alpha=0,mt.transform(t)}},D_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function N_(e){var t,i;return isNaN(e)&&typeof e=="string"&&(((t=e.match(cm))==null?void 0:t.length)||0)+(((i=e.match(D_))==null?void 0:i.length)||0)>0}const A1="number",_1="color",R_="var",O_="var(",y0="${}",z_=/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 Ga(e){const t=e.toString(),i=[],a={color:[],number:[],var:[]},o=[];let u=0;const d=t.replace(z_,p=>(mt.test(p)?(a.color.push(u),o.push(_1),i.push(mt.parse(p))):p.startsWith(O_)?(a.var.push(u),o.push(R_),i.push(p)):(a.number.push(u),o.push(A1),i.push(parseFloat(p))),++u,y0)).split(y0);return{values:i,split:d,indexes:a,types:o}}function L_(e){return Ga(e).values}function C1({split:e,types:t}){const i=e.length;return a=>{let o="";for(let u=0;u<i;u++)if(o+=e[u],a[u]!==void 0){const c=t[u];c===A1?o+=ao(a[u]):c===_1?o+=mt.transform(a[u]):o+=a[u]}return o}}function j_(e){return C1(Ga(e))}const I_=e=>typeof e=="number"?0:mt.test(e)?mt.getAnimatableNone(e):e,U_=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:I_(e);function B_(e){const t=Ga(e);return C1(t)(t.values.map((a,o)=>U_(a,t.split[o])))}const Mn={test:N_,parse:L_,createTransformer:j_,getAnimatableNone:B_};function Md(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function P_({hue:e,saturation:t,lightness:i,alpha:a}){e/=360,t/=100,i/=100;let o=0,u=0,c=0;if(!t)o=u=c=i;else{const d=i<.5?i*(1+t):i+t-i*t,p=2*i-d;o=Md(p,d,e+1/3),u=Md(p,d,e),c=Md(p,d,e-1/3)}return{red:Math.round(o*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:a}}function _u(e,t){return i=>i>0?t:e}const tt=(e,t,i)=>e+(t-e)*i,Dd=(e,t,i)=>{const a=e*e,o=i*(t*t-a)+a;return o<0?0:Math.sqrt(o)},V_=[fh,zr,La],H_=e=>V_.find(t=>t.test(e));function b0(e){const t=H_(e);if(!t)return!1;let i=t.parse(e);return t===La&&(i=P_(i)),i}const v0=(e,t)=>{const i=b0(e),a=b0(t);if(!i||!a)return _u(e,t);const o={...i};return u=>(o.red=Dd(i.red,a.red,u),o.green=Dd(i.green,a.green,u),o.blue=Dd(i.blue,a.blue,u),o.alpha=tt(i.alpha,a.alpha,u),zr.transform(o))},dh=new Set(["none","hidden"]);function q_(e,t){return dh.has(e)?i=>i<=0?e:t:i=>i>=1?t:e}function F_(e,t){return i=>tt(e,t,i)}function dm(e){return typeof e=="number"?F_:typeof e=="string"?um(e)?_u:mt.test(e)?v0:X_:Array.isArray(e)?k1:typeof e=="object"?mt.test(e)?v0:G_:_u}function k1(e,t){const i=[...e],a=i.length,o=e.map((u,c)=>dm(u)(u,t[c]));return u=>{for(let c=0;c<a;c++)i[c]=o[c](u);return i}}function G_(e,t){const i={...e,...t},a={};for(const o in i)e[o]!==void 0&&t[o]!==void 0&&(a[o]=dm(e[o])(e[o],t[o]));return o=>{for(const u in a)i[u]=a[u](o);return i}}function Y_(e,t){const i=[],a={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const u=t.types[o],c=e.indexes[u][a[u]],d=e.values[c]??0;i[o]=d,a[u]++}return i}const X_=(e,t)=>{const i=Mn.createTransformer(t),a=Ga(e),o=Ga(t);return a.indexes.var.length===o.indexes.var.length&&a.indexes.color.length===o.indexes.color.length&&a.indexes.number.length>=o.indexes.number.length?dh.has(e)&&!o.values.length||dh.has(t)&&!a.values.length?q_(e,t):To(k1(Y_(a,o),o.values),i):_u(e,t)};function M1(e,t,i){return typeof e=="number"&&typeof t=="number"&&typeof i=="number"?tt(e,t,i):dm(e)(e,t)}const K_=e=>{const t=({timestamp:i})=>e(i);return{start:(i=!0)=>We.update(t,i),stop:()=>rr(t),now:()=>_t.isProcessing?_t.timestamp:Lt.now()}},D1=(e,t,i=10)=>{let a="";const o=Math.max(Math.round(t/i),2);for(let u=0;u<o;u++)a+=Math.round(e(u/(o-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},Cu=2e4;function hm(e){let t=0;const i=50;let a=e.next(t);for(;!a.done&&t<Cu;)t+=i,a=e.next(t);return t>=Cu?1/0:t}function Q_(e,t=100,i){const a=i({...e,keyframes:[0,t]}),o=Math.min(hm(a),Cu);return{type:"keyframes",ease:u=>a.next(o*u).value/t,duration:xn(o)}}const at={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};function hh(e,t){return e*Math.sqrt(1-t*t)}const W_=12;function Z_(e,t,i){let a=i;for(let o=1;o<W_;o++)a=a-e(a)/t(a);return a}const Nd=.001;function $_({duration:e=at.duration,bounce:t=at.bounce,velocity:i=at.velocity,mass:a=at.mass}){let o,u,c=1-t;c=Fn(at.minDamping,at.maxDamping,c),e=Fn(at.minDuration,at.maxDuration,xn(e)),c<1?(o=m=>{const g=m*c,y=g*e,v=g-i,x=hh(m,c),A=Math.exp(-y);return Nd-v/x*A},u=m=>{const y=m*c*e,v=y*i+i,x=Math.pow(c,2)*Math.pow(m,2)*e,A=Math.exp(-y),M=hh(Math.pow(m,2),c);return(-o(m)+Nd>0?-1:1)*((v-x)*A)/M}):(o=m=>{const g=Math.exp(-m*e),y=(m-i)*e+1;return-Nd+g*y},u=m=>{const g=Math.exp(-m*e),y=(i-m)*(e*e);return g*y});const d=5/e,p=Z_(o,u,d);if(e=ln(e),isNaN(p))return{stiffness:at.stiffness,damping:at.damping,duration:e};{const m=Math.pow(p,2)*a;return{stiffness:m,damping:c*2*Math.sqrt(a*m),duration:e}}}const J_=["duration","bounce"],eC=["stiffness","damping","mass"];function x0(e,t){return t.some(i=>e[i]!==void 0)}function tC(e){let t={velocity:at.velocity,stiffness:at.stiffness,damping:at.damping,mass:at.mass,isResolvedFromDuration:!1,...e};if(!x0(e,eC)&&x0(e,J_))if(t.velocity=0,e.visualDuration){const i=e.visualDuration,a=2*Math.PI/(i*1.2),o=a*a,u=2*Fn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:at.mass,stiffness:o,damping:u}}else{const i=$_({...e,velocity:0});t={...t,...i,mass:at.mass},t.isResolvedFromDuration=!0}return t}function ku(e=at.visualDuration,t=at.bounce){const i=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:o}=i;const u=i.keyframes[0],c=i.keyframes[i.keyframes.length-1],d={done:!1,value:u},{stiffness:p,damping:m,mass:g,duration:y,velocity:v,isResolvedFromDuration:x}=tC({...i,velocity:-xn(i.velocity||0)}),A=v||0,M=m/(2*Math.sqrt(p*g)),N=c-u,C=xn(Math.sqrt(p/g)),V=Math.abs(N)<5;a||(a=V?at.restSpeed.granular:at.restSpeed.default),o||(o=V?at.restDelta.granular:at.restDelta.default);let L,Y,Z,z,K,B;if(M<1)Z=hh(C,M),z=(A+M*C*N)/Z,L=ie=>{const $=Math.exp(-M*C*ie);return c-$*(z*Math.sin(Z*ie)+N*Math.cos(Z*ie))},K=M*C*z+N*Z,B=M*C*N-z*Z,Y=ie=>Math.exp(-M*C*ie)*(K*Math.sin(Z*ie)+B*Math.cos(Z*ie));else if(M===1){L=$=>c-Math.exp(-C*$)*(N+(A+C*N)*$);const ie=A+C*N;Y=$=>Math.exp(-C*$)*(C*ie*$-A)}else{const ie=C*Math.sqrt(M*M-1);L=le=>{const J=Math.exp(-M*C*le),R=Math.min(ie*le,300);return c-J*((A+M*C*N)*Math.sinh(R)+ie*N*Math.cosh(R))/ie};const $=(A+M*C*N)/ie,ne=M*C*$-N*ie,ge=M*C*N-$*ie;Y=le=>{const J=Math.exp(-M*C*le),R=Math.min(ie*le,300);return J*(ne*Math.sinh(R)+ge*Math.cosh(R))}}const ee={calculatedDuration:x&&y||null,velocity:ie=>ln(Y(ie)),next:ie=>{if(!x&&M<1){const ne=Math.exp(-M*C*ie),ge=Math.sin(Z*ie),le=Math.cos(Z*ie),J=c-ne*(z*ge+N*le),R=ln(ne*(K*ge+B*le));return d.done=Math.abs(R)<=a&&Math.abs(c-J)<=o,d.value=d.done?c:J,d}const $=L(ie);if(x)d.done=ie>=y;else{const ne=ln(Y(ie));d.done=Math.abs(ne)<=a&&Math.abs(c-$)<=o}return d.value=d.done?c:$,d},toString:()=>{const ie=Math.min(hm(ee),Cu),$=D1(ne=>ee.next(ie*ne).value,ie,30);return ie+"ms "+$},toTransition:()=>{}};return ee}ku.applyToOptions=e=>{const t=Q_(e,100,ku);return e.ease=t.ease,e.duration=ln(t.duration),e.type="keyframes",e};const nC=5;function N1(e,t,i){const a=Math.max(t-nC,0);return c1(i-e(a),t-a)}function mh({keyframes:e,velocity:t=0,power:i=.8,timeConstant:a=325,bounceDamping:o=10,bounceStiffness:u=500,modifyTarget:c,min:d,max:p,restDelta:m=.5,restSpeed:g}){const y=e[0],v={done:!1,value:y},x=B=>d!==void 0&&B<d||p!==void 0&&B>p,A=B=>d===void 0?p:p===void 0||Math.abs(d-B)<Math.abs(p-B)?d:p;let M=i*t;const N=y+M,C=c===void 0?N:c(N);C!==N&&(M=C-y);const V=B=>-M*Math.exp(-B/a),L=B=>C+V(B),Y=B=>{const ee=V(B),ie=L(B);v.done=Math.abs(ee)<=m,v.value=v.done?C:ie};let Z,z;const K=B=>{x(v.value)&&(Z=B,z=ku({keyframes:[v.value,A(v.value)],velocity:N1(L,B,v.value),damping:o,stiffness:u,restDelta:m,restSpeed:g}))};return K(0),{calculatedDuration:null,next:B=>{let ee=!1;return!z&&Z===void 0&&(ee=!0,Y(B),K(B)),Z!==void 0&&B>=Z?z.next(B-Z):(!ee&&Y(B),v)}}}function iC(e,t,i){const a=[],o=i||ir.mix||M1,u=e.length-1;for(let c=0;c<u;c++){let d=o(e[c],e[c+1]);if(t){const p=Array.isArray(t)?t[c]||Sn:t;d=To(p,d)}a.push(d)}return a}function rC(e,t,{clamp:i=!0,ease:a,mixer:o}={}){const u=e.length;if(am(u===t.length),u===1)return()=>t[0];if(u===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=iC(t,a,o),p=d.length,m=g=>{if(c&&g<e[0])return t[0];let y=0;if(p>1)for(;y<e.length-2&&!(g<e[y+1]);y++);const v=mo(e[y],e[y+1],g);return d[y](v)};return i?g=>m(Fn(e[0],e[u-1],g)):m}function aC(e,t){const i=e[e.length-1];for(let a=1;a<=t;a++){const o=mo(0,t,a);e.push(tt(i,1,o))}}function sC(e){const t=[0];return aC(t,e.length-1),t}function oC(e,t){return e.map(i=>i*t)}function lC(e,t){return e.map(()=>t||v1).splice(0,e.length-1)}function so({duration:e=300,keyframes:t,times:i,ease:a="easeInOut"}){const o=g_(a)?a.map(m0):m0(a),u={done:!1,value:t[0]},c=oC(i&&i.length===t.length?i:sC(t),e),d=rC(c,t,{ease:Array.isArray(o)?o:lC(t,o)});return{calculatedDuration:e,next:p=>(u.value=d(p),u.done=p>=e,u)}}const uC=e=>e!==null;function Xu(e,{repeat:t,repeatType:i="loop"},a,o=1){const u=e.filter(uC),d=o<0||t&&i!=="loop"&&t%2===1?0:u.length-1;return!d||a===void 0?u[d]:a}const cC={decay:mh,inertia:mh,tween:so,keyframes:so,spring:ku};function R1(e){typeof e.type=="string"&&(e.type=cC[e.type])}class mm{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,i){return this.finished.then(t,i)}}const fC=e=>e/100;class Mu extends mm{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var a,o;const{motionValue:i}=this.options;i&&i.updatedAt!==Lt.now()&&this.tick(Lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(a=this.options).onStop)==null||o.call(a))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;R1(t);const{type:i=so,repeat:a=0,repeatDelay:o=0,repeatType:u,velocity:c=0}=t;let{keyframes:d}=t;const p=i||so;p!==so&&typeof d[0]!="number"&&(this.mixKeyframes=To(fC,M1(d[0],d[1])),d=[0,100]);const m=p({...t,keyframes:d});u==="mirror"&&(this.mirroredGenerator=p({...t,keyframes:[...d].reverse(),velocity:-c})),m.calculatedDuration===null&&(m.calculatedDuration=hm(m));const{calculatedDuration:g}=m;this.calculatedDuration=g,this.resolvedDuration=g+o,this.totalDuration=this.resolvedDuration*(a+1)-o,this.generator=m}updateTime(t){const i=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(t,i=!1){const{generator:a,totalDuration:o,mixKeyframes:u,mirroredGenerator:c,resolvedDuration:d,calculatedDuration:p}=this;if(this.startTime===null)return a.next(0);const{delay:m=0,keyframes:g,repeat:y,repeatType:v,repeatDelay:x,type:A,onUpdate:M,finalKeyframe:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);const C=this.currentTime-m*(this.playbackSpeed>=0?1:-1),V=this.playbackSpeed>=0?C<0:C>o;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let L=this.currentTime,Y=a;if(y){const B=Math.min(this.currentTime,o)/d;let ee=Math.floor(B),ie=B%1;!ie&&B>=1&&(ie=1),ie===1&&ee--,ee=Math.min(ee,y+1),!!(ee%2)&&(v==="reverse"?(ie=1-ie,x&&(ie-=x/d)):v==="mirror"&&(Y=c)),L=Fn(0,1,ie)*d}let Z;V?(this.delayState.value=g[0],Z=this.delayState):Z=Y.next(L),u&&!V&&(Z.value=u(Z.value));let{done:z}=Z;!V&&p!==null&&(z=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return K&&A!==mh&&(Z.value=Xu(g,this.options,N,this.speed)),M&&M(Z.value),K&&this.finish(),Z}then(t,i){return this.finished.then(t,i)}get duration(){return xn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+xn(t)}get time(){return xn(this.currentTime)}set time(t){t=ln(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const i=this.generator.next(t).value;return N1(a=>this.generator.next(a).value,t,i)}get speed(){return this.playbackSpeed}set speed(t){const i=this.playbackSpeed!==t;i&&this.driver&&this.updateTime(Lt.now()),this.playbackSpeed=t,i&&this.driver&&(this.time=xn(this.currentTime))}play(){var o,u;if(this.isStopped)return;const{driver:t=K_,startTime:i}=this.options;this.driver||(this.driver=t(c=>this.tick(c))),(u=(o=this.options).onPlay)==null||u.call(o);const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=i??a),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(Lt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(t=this.options).onComplete)==null||i.call(t)}cancel(){var t,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(t=this.options).onCancel)==null||i.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),t.observe(this)}}function dC(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Lr=e=>e*180/Math.PI,ph=e=>{const t=Lr(Math.atan2(e[1],e[0]));return gh(t)},hC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ph,rotateZ:ph,skewX:e=>Lr(Math.atan(e[1])),skewY:e=>Lr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},gh=e=>(e=e%360,e<0&&(e+=360),e),S0=ph,w0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),T0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),mC={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:w0,scaleY:T0,scale:e=>(w0(e)+T0(e))/2,rotateX:e=>gh(Lr(Math.atan2(e[6],e[5]))),rotateY:e=>gh(Lr(Math.atan2(-e[2],e[0]))),rotateZ:S0,rotate:S0,skewX:e=>Lr(Math.atan(e[4])),skewY:e=>Lr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function yh(e){return e.includes("scale")?1:0}function bh(e,t){if(!e||e==="none")return yh(t);const i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,o;if(i)a=mC,o=i;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=hC,o=d}if(!o)return yh(t);const u=a[t],c=o[1].split(",").map(gC);return typeof u=="function"?u(c):c[u]}const pC=(e,t)=>{const{transform:i="none"}=getComputedStyle(e);return bh(i,t)};function gC(e){return parseFloat(e.trim())}const Za=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$a=new Set(Za),E0=e=>e===Wa||e===de,yC=new Set(["x","y","z"]),bC=Za.filter(e=>!yC.has(e));function vC(e){const t=[];return bC.forEach(i=>{const a=e.getValue(i);a!==void 0&&(t.push([i,a.get()]),a.set(i.startsWith("scale")?1:0))}),t}const er={width:({x:e},{paddingLeft:t="0",paddingRight:i="0",boxSizing:a})=>{const o=e.max-e.min;return a==="border-box"?o:o-parseFloat(t)-parseFloat(i)},height:({y:e},{paddingTop:t="0",paddingBottom:i="0",boxSizing:a})=>{const o=e.max-e.min;return a==="border-box"?o:o-parseFloat(t)-parseFloat(i)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>bh(t,"x"),y:(e,{transform:t})=>bh(t,"y")};er.translateX=er.x;er.translateY=er.y;const Ir=new Set;let vh=!1,xh=!1,Sh=!1;function O1(){if(xh){const e=Array.from(Ir).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),i=new Map;t.forEach(a=>{const o=vC(a);o.length&&(i.set(a,o),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();const o=i.get(a);o&&o.forEach(([u,c])=>{var d;(d=a.getValue(u))==null||d.set(c)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}xh=!1,vh=!1,Ir.forEach(e=>e.complete(Sh)),Ir.clear()}function z1(){Ir.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xh=!0)})}function xC(){Sh=!0,z1(),O1(),Sh=!1}class pm{constructor(t,i,a,o,u,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=i,this.name=a,this.motionValue=o,this.element=u,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Ir.add(this),vh||(vh=!0,We.read(z1),We.resolveKeyframes(O1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:i,element:a,motionValue:o}=this;if(t[0]===null){const u=o==null?void 0:o.get(),c=t[t.length-1];if(u!==void 0)t[0]=u;else if(a&&i){const d=a.readValue(i,c);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=c),o&&u===void 0&&o.set(t[0])}dC(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ir.delete(this)}cancel(){this.state==="scheduled"&&(Ir.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const SC=e=>e.startsWith("--");function L1(e,t,i){SC(t)?e.style.setProperty(t,i):e.style[t]=i}const wC={};function j1(e,t){const i=u1(e);return()=>wC[t]??i()}const TC=j1(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),I1=j1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ro=([e,t,i,a])=>`cubic-bezier(${e}, ${t}, ${i}, ${a})`,A0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ro([0,.65,.55,1]),circOut:ro([.55,0,1,.45]),backIn:ro([.31,.01,.66,-.59]),backOut:ro([.33,1.53,.69,.99])};function U1(e,t){if(e)return typeof e=="function"?I1()?D1(e,t):"ease-out":x1(e)?ro(e):Array.isArray(e)?e.map(i=>U1(i,t)||A0.easeOut):A0[e]}function EC(e,t,i,{delay:a=0,duration:o=300,repeat:u=0,repeatType:c="loop",ease:d="easeOut",times:p}={},m=void 0){const g={[t]:i};p&&(g.offset=p);const y=U1(d,o);Array.isArray(y)&&(g.easing=y);const v={delay:a,duration:o,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return m&&(v.pseudoElement=m),e.animate(g,v)}function B1(e){return typeof e=="function"&&"applyToOptions"in e}function AC({type:e,...t}){return B1(e)&&I1()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class P1 extends mm{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:i,name:a,keyframes:o,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:d,onComplete:p}=t;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=t,am(typeof t.type!="string");const m=AC(t);this.animation=EC(i,a,o,m,u),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const g=Xu(o,this.options,d,this.speed);this.updateMotionValue&&this.updateMotionValue(g),L1(i,a,g),this.animation.cancel()}p==null||p(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,i;(i=(t=this.animation).finish)==null||i.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var i,a,o;const t=(i=this.options)==null?void 0:i.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((o=(a=this.animation).commitStyles)==null||o.call(a))}get duration(){var i,a;const t=((a=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:a.call(i).duration)||0;return xn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+xn(t)}get time(){return xn(Number(this.animation.currentTime)||0)}set time(t){const i=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ln(t),i&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:i,rangeEnd:a,observe:o}){var u;return this.allowFlatten&&((u=this.animation.effect)==null||u.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&TC()?(this.animation.timeline=t,i&&(this.animation.rangeStart=i),a&&(this.animation.rangeEnd=a),Sn):o(this)}}const V1={anticipate:g1,backInOut:p1,circInOut:b1};function _C(e){return e in V1}function CC(e){typeof e.ease=="string"&&_C(e.ease)&&(e.ease=V1[e.ease])}const Rd=10;class kC extends P1{constructor(t){CC(t),R1(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:i,onUpdate:a,onComplete:o,element:u,...c}=this.options;if(!i)return;if(t!==void 0){i.set(t);return}const d=new Mu({...c,autoplay:!1}),p=Math.max(Rd,Lt.now()-this.startTime),m=Fn(0,Rd,p-Rd),g=d.sample(p).value,{name:y}=this.options;u&&y&&L1(u,y,g),i.setWithVelocity(d.sample(Math.max(0,p-m)).value,g,m),d.stop()}}const _0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Mn.test(e)||e==="0")&&!e.startsWith("url("));function MC(e){const t=e[0];if(e.length===1)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}function DC(e,t,i,a){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const u=e[e.length-1],c=_0(o,t),d=_0(u,t);return!c||!d?!1:MC(e)||(i==="spring"||B1(i))&&a}function wh(e){e.duration=0,e.type="keyframes"}const H1=new Set(["opacity","clipPath","filter","transform"]),NC=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function RC(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&NC.test(e[t]))return!0;return!1}const OC=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),zC=u1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function LC(e){var y;const{motionValue:t,name:i,repeatDelay:a,repeatType:o,damping:u,type:c,keyframes:d}=e;if(!(((y=t==null?void 0:t.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=t.owner.getProps();return zC()&&i&&(H1.has(i)||OC.has(i)&&RC(d))&&(i!=="transform"||!g)&&!m&&!a&&o!=="mirror"&&u!==0&&c!=="inertia"}const jC=40;class IC extends mm{constructor({autoplay:t=!0,delay:i=0,type:a="keyframes",repeat:o=0,repeatDelay:u=0,repeatType:c="loop",keyframes:d,name:p,motionValue:m,element:g,...y}){var A;super(),this.stop=()=>{var M,N;this._animation&&(this._animation.stop(),(M=this.stopTimeline)==null||M.call(this)),(N=this.keyframeResolver)==null||N.cancel()},this.createdAt=Lt.now();const v={autoplay:t,delay:i,type:a,repeat:o,repeatDelay:u,repeatType:c,name:p,motionValue:m,element:g,...y},x=(g==null?void 0:g.KeyframeResolver)||pm;this.keyframeResolver=new x(d,(M,N,C)=>this.onKeyframesResolved(M,N,v,!C),p,m,g),(A=this.keyframeResolver)==null||A.scheduleResolve()}onKeyframesResolved(t,i,a,o){var C,V;this.keyframeResolver=void 0;const{name:u,type:c,velocity:d,delay:p,isHandoff:m,onUpdate:g}=a;this.resolvedAt=Lt.now();let y=!0;DC(t,u,c,d)||(y=!1,(ir.instantAnimations||!p)&&(g==null||g(Xu(t,a,i))),t[0]=t[t.length-1],wh(a),a.repeat=0);const x={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>jC?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...a,keyframes:t},A=y&&!m&&LC(x),M=(V=(C=x.motionValue)==null?void 0:C.owner)==null?void 0:V.current;let N;if(A)try{N=new kC({...x,element:M})}catch{N=new Mu(x)}else N=new Mu(x);N.finished.then(()=>{this.notifyFinished()}).catch(Sn),this.pendingTimeline&&(this.stopTimeline=N.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=N}get finished(){return this._animation?this.animation.finished:this._finished}then(t,i){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),xC()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function q1(e,t,i,a=0,o=1){const u=Array.from(e).sort((m,g)=>m.sortNodePosition(g)).indexOf(t),c=e.size,d=(c-1)*a;return typeof i=="function"?i(u,c):o===1?u*a:d-u*a}const UC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function BC(e){const t=UC.exec(e);if(!t)return[,];const[,i,a,o]=t;return[`--${i??a}`,o]}function F1(e,t,i=1){const[a,o]=BC(e);if(!a)return;const u=window.getComputedStyle(t).getPropertyValue(a);if(u){const c=u.trim();return s1(c)?parseFloat(c):c}return um(o)?F1(o,t,i+1):o}const PC={type:"spring",stiffness:500,damping:25,restSpeed:10},VC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),HC={type:"keyframes",duration:.8},qC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},FC=(e,{keyframes:t})=>t.length>2?HC:$a.has(e)?e.startsWith("scale")?VC(t[1]):PC:qC;function G1(e,t){if(e!=null&&e.inherit&&t){const{inherit:i,...a}=e;return{...t,...a}}return e}function gm(e,t){const i=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return i!==e?G1(i,e):i}const GC=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function YC(e){for(const t in e)if(!GC.has(t))return!0;return!1}const ym=(e,t,i,a={},o,u)=>c=>{const d=gm(a,e)||{},p=d.delay||a.delay||0;let{elapsed:m=0}=a;m=m-ln(p);const g={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-m,onUpdate:v=>{t.set(v),d.onUpdate&&d.onUpdate(v)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:u?void 0:o};YC(d)||Object.assign(g,FC(e,g)),g.duration&&(g.duration=ln(g.duration)),g.repeatDelay&&(g.repeatDelay=ln(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(wh(g),g.delay===0&&(y=!0)),(ir.instantAnimations||ir.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(y=!0,wh(g),g.delay=0),g.allowFlatten=!d.type&&!d.ease,y&&!u&&t.get()!==void 0){const v=Xu(g.keyframes,d);if(v!==void 0){We.update(()=>{g.onUpdate(v),g.onComplete()});return}}return d.isSync?new Mu(g):new IC(g)};function C0(e){const t=[{},{}];return e==null||e.values.forEach((i,a)=>{t[0][a]=i.get(),t[1][a]=i.getVelocity()}),t}function bm(e,t,i,a){if(typeof t=="function"){const[o,u]=C0(a);t=t(i!==void 0?i:e.custom,o,u)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,u]=C0(a);t=t(i!==void 0?i:e.custom,o,u)}return t}function Ur(e,t,i){const a=e.getProps();return bm(a,t,i!==void 0?i:a.custom,e)}const Y1=new Set(["width","height","top","left","right","bottom",...Za]),k0=30,XC=e=>!isNaN(parseFloat(e));class KC{constructor(t,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var u;const o=Lt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&((u=this.events.change)==null||u.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=i.owner}setCurrent(t){this.current=t,this.updatedAt=Lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=XC(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,i){this.events[t]||(this.events[t]=new sm);const a=this.events[t].add(i);return t==="change"?()=>{a(),We.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,i){this.passiveEffect=t,this.stopPassiveEffect=i}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,i,a){this.set(i),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,i=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>k0)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,k0);return c1(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(t){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=t(i),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 t,i;(t=this.dependents)==null||t.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ya(e,t){return new KC(e,t)}const Th=e=>Array.isArray(e);function QC(e,t,i){e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,Ya(i))}function WC(e){return Th(e)?e[e.length-1]||0:e}function ZC(e,t){const i=Ur(e,t);let{transitionEnd:a={},transition:o={},...u}=i||{};u={...u,...a};for(const c in u){const d=WC(u[c]);QC(e,c,d)}}const Ct=e=>!!(e&&e.getVelocity);function $C(e){return!!(Ct(e)&&e.add)}function Eh(e,t){const i=e.getValue("willChange");if($C(i))return i.add(t);if(!i&&ir.WillChange){const a=new ir.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function vm(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const JC="framerAppearId",X1="data-"+vm(JC);function K1(e){return e.props[X1]}function e2({protectedKeys:e,needsAnimating:t},i){const a=e.hasOwnProperty(i)&&t[i]!==!0;return t[i]=!1,a}function Q1(e,t,{delay:i=0,transitionOverride:a,type:o}={}){let{transition:u,transitionEnd:c,...d}=t;const p=e.getDefaultTransition();u=u?G1(u,p):p;const m=u==null?void 0:u.reduceMotion;a&&(u=a);const g=[],y=o&&e.animationState&&e.animationState.getState()[o];for(const v in d){const x=e.getValue(v,e.latestValues[v]??null),A=d[v];if(A===void 0||y&&e2(y,v))continue;const M={delay:i,...gm(u||{},v)},N=x.get();if(N!==void 0&&!x.isAnimating()&&!Array.isArray(A)&&A===N&&!M.velocity){We.update(()=>x.set(A));continue}let C=!1;if(window.MotionHandoffAnimation){const Y=K1(e);if(Y){const Z=window.MotionHandoffAnimation(Y,v,We);Z!==null&&(M.startTime=Z,C=!0)}}Eh(e,v);const V=m??e.shouldReduceMotion;x.start(ym(v,x,A,V&&Y1.has(v)?{type:!1}:M,e,C));const L=x.animation;L&&g.push(L)}if(c){const v=()=>We.update(()=>{c&&ZC(e,c)});g.length?Promise.all(g).then(v):v()}return g}function Ah(e,t,i={}){var p;const a=Ur(e,t,i.type==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=a||{};i.transitionOverride&&(o=i.transitionOverride);const u=a?()=>Promise.all(Q1(e,a,i)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:v}=o;return t2(e,t,m,g,y,v,i)}:()=>Promise.resolve(),{when:d}=o;if(d){const[m,g]=d==="beforeChildren"?[u,c]:[c,u];return m().then(()=>g())}else return Promise.all([u(),c(i.delay)])}function t2(e,t,i=0,a=0,o=0,u=1,c){const d=[];for(const p of e.variantChildren)p.notify("AnimationStart",t),d.push(Ah(p,t,{...c,delay:i+(typeof a=="function"?0:a)+q1(e.variantChildren,p,a,o,u)}).then(()=>p.notify("AnimationComplete",t)));return Promise.all(d)}function n2(e,t,i={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){const o=t.map(u=>Ah(e,u,i));a=Promise.all(o)}else if(typeof t=="string")a=Ah(e,t,i);else{const o=typeof t=="function"?Ur(e,t,i.custom):t;a=Promise.all(Q1(e,o,i))}return a.then(()=>{e.notify("AnimationComplete",t)})}const i2={test:e=>e==="auto",parse:e=>e},W1=e=>t=>t.test(e),Z1=[Wa,de,Hn,Qi,M_,k_,i2],M0=e=>Z1.find(W1(e));function r2(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||l1(e):!0}const a2=new Set(["brightness","contrast","saturate","opacity"]);function s2(e){const[t,i]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=i.match(cm)||[];if(!a)return e;const o=i.replace(a,"");let u=a2.has(t)?1:0;return a!==i&&(u*=100),t+"("+u+o+")"}const o2=/\b([a-z-]*)\(.*?\)/gu,_h={...Mn,getAnimatableNone:e=>{const t=e.match(o2);return t?t.map(s2).join(" "):e}},Ch={...Mn,getAnimatableNone:e=>{const t=Mn.parse(e);return Mn.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}},D0={...Wa,transform:Math.round},l2={rotate:Qi,rotateX:Qi,rotateY:Qi,rotateZ:Qi,scale:eu,scaleX:eu,scaleY:eu,scaleZ:eu,skew:Qi,skewX:Qi,skewY:Qi,distance:de,translateX:de,translateY:de,translateZ:de,x:de,y:de,z:de,perspective:de,transformPerspective:de,opacity:po,originX:g0,originY:g0,originZ:de},xm={borderWidth:de,borderTopWidth:de,borderRightWidth:de,borderBottomWidth:de,borderLeftWidth:de,borderRadius:de,borderTopLeftRadius:de,borderTopRightRadius:de,borderBottomRightRadius:de,borderBottomLeftRadius:de,width:de,maxWidth:de,height:de,maxHeight:de,top:de,right:de,bottom:de,left:de,inset:de,insetBlock:de,insetBlockStart:de,insetBlockEnd:de,insetInline:de,insetInlineStart:de,insetInlineEnd:de,padding:de,paddingTop:de,paddingRight:de,paddingBottom:de,paddingLeft:de,paddingBlock:de,paddingBlockStart:de,paddingBlockEnd:de,paddingInline:de,paddingInlineStart:de,paddingInlineEnd:de,margin:de,marginTop:de,marginRight:de,marginBottom:de,marginLeft:de,marginBlock:de,marginBlockStart:de,marginBlockEnd:de,marginInline:de,marginInlineStart:de,marginInlineEnd:de,fontSize:de,backgroundPositionX:de,backgroundPositionY:de,...l2,zIndex:D0,fillOpacity:po,strokeOpacity:po,numOctaves:D0},u2={...xm,color:mt,backgroundColor:mt,outlineColor:mt,fill:mt,stroke:mt,borderColor:mt,borderTopColor:mt,borderRightColor:mt,borderBottomColor:mt,borderLeftColor:mt,filter:_h,WebkitFilter:_h,mask:Ch,WebkitMask:Ch},$1=e=>u2[e],c2=new Set([_h,Ch]);function J1(e,t){let i=$1(e);return c2.has(i)||(i=Mn),i.getAnimatableNone?i.getAnimatableNone(t):void 0}const f2=new Set(["auto","none","0"]);function d2(e,t,i){let a=0,o;for(;a<e.length&&!o;){const u=e[a];typeof u=="string"&&!f2.has(u)&&Ga(u).values.length&&(o=e[a]),a++}if(o&&i)for(const u of t)e[u]=J1(i,o)}class h2 extends pm{constructor(t,i,a,o,u){super(t,i,a,o,u,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:i,name:a}=this;if(!i||!i.current)return;super.readKeyframes();for(let g=0;g<t.length;g++){let y=t[g];if(typeof y=="string"&&(y=y.trim(),um(y))){const v=F1(y,i.current);v!==void 0&&(t[g]=v),g===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!Y1.has(a)||t.length!==2)return;const[o,u]=t,c=M0(o),d=M0(u),p=p0(o),m=p0(u);if(p!==m&&er[a]){this.needsMeasurement=!0;return}if(c!==d)if(E0(c)&&E0(d))for(let g=0;g<t.length;g++){const y=t[g];typeof y=="string"&&(t[g]=parseFloat(y))}else er[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:i}=this,a=[];for(let o=0;o<t.length;o++)(t[o]===null||r2(t[o]))&&a.push(o);a.length&&d2(t,a,i)}measureInitialState(){const{element:t,unresolvedKeyframes:i,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=er[a](t.measureViewportBox(),window.getComputedStyle(t.current)),i[0]=this.measuredOrigin;const o=i[i.length-1];o!==void 0&&t.getValue(a,o).jump(o,!1)}measureEndState(){var d;const{element:t,name:i,unresolvedKeyframes:a}=this;if(!t||!t.current)return;const o=t.getValue(i);o&&o.jump(this.measuredOrigin,!1);const u=a.length-1,c=a[u];a[u]=er[i](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),(d=this.removedTransforms)!=null&&d.length&&this.removedTransforms.forEach(([p,m])=>{t.getValue(p).set(m)}),this.resolveNoneKeyframes()}}function eS(e,t,i){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;const o=(i==null?void 0:i[e])??a.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(a=>a!=null)}const tS=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function hu(e){return o1(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Sm}=S1(queueMicrotask,!1),Cn={x:!1,y:!1};function nS(){return Cn.x||Cn.y}function m2(e){return e==="x"||e==="y"?Cn[e]?null:(Cn[e]=!0,()=>{Cn[e]=!1}):Cn.x||Cn.y?null:(Cn.x=Cn.y=!0,()=>{Cn.x=Cn.y=!1})}function iS(e,t){const i=eS(e),a=new AbortController,o={passive:!0,...t,signal:a.signal};return[i,o,()=>a.abort()]}function p2(e){return!(e.pointerType==="touch"||nS())}function g2(e,t,i={}){const[a,o,u]=iS(e,i);return a.forEach(c=>{let d=!1,p=!1,m;const g=()=>{c.removeEventListener("pointerleave",A)},y=N=>{m&&(m(N),m=void 0),g()},v=N=>{d=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),p&&(p=!1,y(N))},x=()=>{d=!0,window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",v,o)},A=N=>{if(N.pointerType!=="touch"){if(d){p=!0;return}y(N)}},M=N=>{if(!p2(N))return;p=!1;const C=t(c,N);typeof C=="function"&&(m=C,c.addEventListener("pointerleave",A,o))};c.addEventListener("pointerenter",M,o),c.addEventListener("pointerdown",x,o)}),u}const rS=(e,t)=>t?e===t?!0:rS(e,t.parentElement):!1,wm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,y2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function b2(e){return y2.has(e.tagName)||e.isContentEditable===!0}const v2=new Set(["INPUT","SELECT","TEXTAREA"]);function x2(e){return v2.has(e.tagName)||e.isContentEditable===!0}const mu=new WeakSet;function N0(e){return t=>{t.key==="Enter"&&e(t)}}function Od(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const S2=(e,t)=>{const i=e.currentTarget;if(!i)return;const a=N0(()=>{if(mu.has(i))return;Od(i,"down");const o=N0(()=>{Od(i,"up")}),u=()=>Od(i,"cancel");i.addEventListener("keyup",o,t),i.addEventListener("blur",u,t)});i.addEventListener("keydown",a,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",a),t)};function R0(e){return wm(e)&&!nS()}const O0=new WeakSet;function w2(e,t,i={}){const[a,o,u]=iS(e,i),c=d=>{const p=d.currentTarget;if(!R0(d)||O0.has(d))return;mu.add(p),i.stopPropagation&&O0.add(d);const m=t(p,d),g=(x,A)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",v),mu.has(p)&&mu.delete(p),R0(x)&&typeof m=="function"&&m(x,{success:A})},y=x=>{g(x,p===window||p===document||i.useGlobalTarget||rS(p,x.target))},v=x=>{g(x,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",v,o)};return a.forEach(d=>{(i.useGlobalTarget?window:d).addEventListener("pointerdown",c,o),hu(d)&&(d.addEventListener("focus",m=>S2(m,o)),!b2(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),u}function Tm(e){return o1(e)&&"ownerSVGElement"in e}const pu=new WeakMap;let Wi;const aS=(e,t,i)=>(a,o)=>o&&o[0]?o[0][e+"Size"]:Tm(a)&&"getBBox"in a?a.getBBox()[t]:a[i],T2=aS("inline","width","offsetWidth"),E2=aS("block","height","offsetHeight");function A2({target:e,borderBoxSize:t}){var i;(i=pu.get(e))==null||i.forEach(a=>{a(e,{get width(){return T2(e,t)},get height(){return E2(e,t)}})})}function _2(e){e.forEach(A2)}function C2(){typeof ResizeObserver>"u"||(Wi=new ResizeObserver(_2))}function k2(e,t){Wi||C2();const i=eS(e);return i.forEach(a=>{let o=pu.get(a);o||(o=new Set,pu.set(a,o)),o.add(t),Wi==null||Wi.observe(a)}),()=>{i.forEach(a=>{const o=pu.get(a);o==null||o.delete(t),o!=null&&o.size||Wi==null||Wi.unobserve(a)})}}const gu=new Set;let ja;function M2(){ja=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};gu.forEach(t=>t(e))},window.addEventListener("resize",ja)}function D2(e){return gu.add(e),ja||M2(),()=>{gu.delete(e),!gu.size&&typeof ja=="function"&&(window.removeEventListener("resize",ja),ja=void 0)}}function z0(e,t){return typeof e=="function"?D2(e):k2(e,t)}function N2(e){return Tm(e)&&e.tagName==="svg"}const R2=[...Z1,mt,Mn],O2=e=>R2.find(W1(e)),L0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ia=()=>({x:L0(),y:L0()}),j0=()=>({min:0,max:0}),bt=()=>({x:j0(),y:j0()}),z2=new WeakMap;function Ku(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function go(e){return typeof e=="string"||Array.isArray(e)}const Em=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Am=["initial",...Em];function Qu(e){return Ku(e.animate)||Am.some(t=>go(e[t]))}function sS(e){return!!(Qu(e)||e.variants)}function L2(e,t,i){for(const a in t){const o=t[a],u=i[a];if(Ct(o))e.addValue(a,o);else if(Ct(u))e.addValue(a,Ya(o,{owner:e}));else if(u!==o)if(e.hasValue(a)){const c=e.getValue(a);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=e.getStaticValue(a);e.addValue(a,Ya(c!==void 0?c:o,{owner:e}))}}for(const a in i)t[a]===void 0&&e.removeValue(a);return t}const kh={current:null},oS={current:!1},j2=typeof window<"u";function I2(){if(oS.current=!0,!!j2)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>kh.current=e.matches;e.addEventListener("change",t),t()}else kh.current=!1}const I0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Du={};function lS(e){Du=e}function U2(){return Du}class B2{scrapeMotionValuesFromProps(t,i,a){return{}}constructor({parent:t,props:i,presenceContext:a,reducedMotionConfig:o,skipAnimations:u,blockInitialAnimation:c,visualState:d},p={}){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=pm,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 x=Lt.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,We.render(this.render,!1,!0))};const{latestValues:m,renderState:g}=d;this.latestValues=m,this.baseTarget={...m},this.initialValues=i.initial?{...m}:{},this.renderState=g,this.parent=t,this.props=i,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=u,this.options=p,this.blockInitialAnimation=!!c,this.isControllingVariants=Qu(i),this.isVariantNode=sS(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(i,{},this);for(const x in v){const A=v[x];m[x]!==void 0&&Ct(A)&&A.set(m[x])}}mount(t){var i,a;if(this.hasBeenMounted)for(const o in this.initialValues)(i=this.values.get(o))==null||i.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=t,z2.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,u)=>this.bindToMotionValue(u,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(oS.current||I2(),this.shouldReduceMotion=kh.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(a=this.parent)==null||a.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),rr(this.notifyUpdate),rr(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const a=this.features[i];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,i){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),i.accelerate&&H1.has(t)&&this.current instanceof HTMLElement){const{factory:c,keyframes:d,times:p,ease:m,duration:g}=i.accelerate,y=new P1({element:this.current,name:t,keyframes:d,times:p,ease:m,duration:ln(g)}),v=c(y);this.valueSubscriptions.set(t,()=>{v(),y.cancel()});return}const a=$a.has(t);a&&this.onBindTransform&&this.onBindTransform();const o=i.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&We.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;typeof window<"u"&&window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,i)),this.valueSubscriptions.set(t,()=>{o(),u&&u(),i.owner&&i.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Du){const i=Du[t];if(!i)continue;const{isEnabled:a,Feature:o}=i;if(!this.features[t]&&o&&a(this.props)&&(this.features[t]=new o(this)),this.features[t]){const u=this.features[t];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,i){this.latestValues[t]=i}update(t,i){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let a=0;a<I0.length;a++){const o=I0[a];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const u="on"+o,c=t[u];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=L2(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(t),()=>i.variantChildren.delete(t)}addValue(t,i){const a=this.values.get(t);i!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,i),this.values.set(t,i),this.latestValues[t]=i.get())}removeValue(t){this.values.delete(t);const i=this.valueSubscriptions.get(t);i&&(i(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,i){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&i!==void 0&&(a=Ya(i===null?void 0:i,{owner:this}),this.addValue(t,a)),a}readValue(t,i){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(s1(a)||l1(a))?a=parseFloat(a):!O2(a)&&Mn.test(i)&&(a=J1(t,i)),this.setBaseTarget(t,Ct(a)?a.get():a)),Ct(a)?a.get():a}setBaseTarget(t,i){this.baseTarget[t]=i}getBaseTarget(t){var u;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const c=bm(this.props,i,(u=this.presenceContext)==null?void 0:u.custom);c&&(a=c[t])}if(i&&a!==void 0)return a;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ct(o)?o:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,i){return this.events[t]||(this.events[t]=new sm),this.events[t].add(i)}notify(t,...i){this.events[t]&&this.events[t].notify(...i)}scheduleRenderMicrotask(){Sm.render(this.render)}}class uS extends B2{constructor(){super(...arguments),this.KeyframeResolver=h2}sortInstanceNodePosition(t,i){return t.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(t,i){const a=t.style;return a?a[i]:void 0}removeValueFromRenderState(t,{vars:i,style:a}){delete i[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ct(t)&&(this.childSubscription=t.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}class sr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function cS({top:e,left:t,right:i,bottom:a}){return{x:{min:t,max:i},y:{min:e,max:a}}}function P2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function V2(e,t){if(!t)return e;const i=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:a.y,right:a.x}}function zd(e){return e===void 0||e===1}function Mh({scale:e,scaleX:t,scaleY:i}){return!zd(e)||!zd(t)||!zd(i)}function Nr(e){return Mh(e)||fS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function fS(e){return U0(e.x)||U0(e.y)}function U0(e){return e&&e!=="0%"}function Nu(e,t,i){const a=e-i,o=t*a;return i+o}function B0(e,t,i,a,o){return o!==void 0&&(e=Nu(e,o,a)),Nu(e,i,a)+t}function Dh(e,t=0,i=1,a,o){e.min=B0(e.min,t,i,a,o),e.max=B0(e.max,t,i,a,o)}function dS(e,{x:t,y:i}){Dh(e.x,t.translate,t.scale,t.originPoint),Dh(e.y,i.translate,i.scale,i.originPoint)}const P0=.999999999999,V0=1.0000000000001;function H2(e,t,i,a=!1){var d;const o=i.length;if(!o)return;t.x=t.y=1;let u,c;for(let p=0;p<o;p++){u=i[p],c=u.projectionDelta;const{visualElement:m}=u.options;m&&m.props.style&&m.props.style.display==="contents"||(a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&(Bn(e.x,-u.scroll.offset.x),Bn(e.y,-u.scroll.offset.y)),c&&(t.x*=c.x.scale,t.y*=c.y.scale,dS(e,c)),a&&Nr(u.latestValues)&&yu(e,u.latestValues,(d=u.layout)==null?void 0:d.layoutBox))}t.x<V0&&t.x>P0&&(t.x=1),t.y<V0&&t.y>P0&&(t.y=1)}function Bn(e,t){e.min+=t,e.max+=t}function H0(e,t,i,a,o=.5){const u=tt(e.min,e.max,o);Dh(e,t,i,u,a)}function q0(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function yu(e,t,i){const a=i??e;H0(e.x,q0(t.x,a.x),t.scaleX,t.scale,t.originX),H0(e.y,q0(t.y,a.y),t.scaleY,t.scale,t.originY)}function hS(e,t){return cS(V2(e.getBoundingClientRect(),t))}function q2(e,t,i){const a=hS(e,i),{scroll:o}=t;return o&&(Bn(a.x,o.offset.x),Bn(a.y,o.offset.y)),a}const F2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},G2=Za.length;function Y2(e,t,i){let a="",o=!0;for(let u=0;u<G2;u++){const c=Za[u],d=e[c];if(d===void 0)continue;let p=!0;if(typeof d=="number")p=d===(c.startsWith("scale")?1:0);else{const m=parseFloat(d);p=c.startsWith("scale")?m===1:m===0}if(!p||i){const m=tS(d,xm[c]);if(!p){o=!1;const g=F2[c]||c;a+=`${g}(${m}) `}i&&(t[c]=m)}}return a=a.trim(),i?a=i(t,o?"":a):o&&(a="none"),a}function _m(e,t,i){const{style:a,vars:o,transformOrigin:u}=e;let c=!1,d=!1;for(const p in t){const m=t[p];if($a.has(p)){c=!0;continue}else if(T1(p)){o[p]=m;continue}else{const g=tS(m,xm[p]);p.startsWith("origin")?(d=!0,u[p]=g):a[p]=g}}if(t.transform||(c||i?a.transform=Y2(t,e.transform,i):a.transform&&(a.transform="none")),d){const{originX:p="50%",originY:m="50%",originZ:g=0}=u;a.transformOrigin=`${p} ${m} ${g}`}}function mS(e,{style:t,vars:i},a,o){const u=e.style;let c;for(c in t)u[c]=t[c];o==null||o.applyProjectionStyles(u,a);for(c in i)u.setProperty(c,i[c])}function F0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ws={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(de.test(e))e=parseFloat(e);else return e;const i=F0(e,t.target.x),a=F0(e,t.target.y);return`${i}% ${a}%`}},X2={correct:(e,{treeScale:t,projectionDelta:i})=>{const a=e,o=Mn.parse(e);if(o.length>5)return a;const u=Mn.createTransformer(e),c=typeof o[0]!="number"?1:0,d=i.x.scale*t.x,p=i.y.scale*t.y;o[0+c]/=d,o[1+c]/=p;const m=tt(d,p,.5);return typeof o[2+c]=="number"&&(o[2+c]/=m),typeof o[3+c]=="number"&&(o[3+c]/=m),u(o)}},Nh={borderRadius:{...Ws,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ws,borderTopRightRadius:Ws,borderBottomLeftRadius:Ws,borderBottomRightRadius:Ws,boxShadow:X2};function pS(e,{layout:t,layoutId:i}){return $a.has(e)||e.startsWith("origin")||(t||i!==void 0)&&(!!Nh[e]||e==="opacity")}function Cm(e,t,i){var c;const a=e.style,o=t==null?void 0:t.style,u={};if(!a)return u;for(const d in a)(Ct(a[d])||o&&Ct(o[d])||pS(d,e)||((c=i==null?void 0:i.getValue(d))==null?void 0:c.liveStyle)!==void 0)&&(u[d]=a[d]);return u}function K2(e){return window.getComputedStyle(e)}class Q2 extends uS{constructor(){super(...arguments),this.type="html",this.renderInstance=mS}readValueFromInstance(t,i){var a;if($a.has(i))return(a=this.projection)!=null&&a.isProjecting?yh(i):pC(t,i);{const o=K2(t),u=(T1(i)?o.getPropertyValue(i):o[i])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:i}){return hS(t,i)}build(t,i,a){_m(t,i,a.transformTemplate)}scrapeMotionValuesFromProps(t,i,a){return Cm(t,i,a)}}const W2={offset:"stroke-dashoffset",array:"stroke-dasharray"},Z2={offset:"strokeDashoffset",array:"strokeDasharray"};function $2(e,t,i=1,a=0,o=!0){e.pathLength=1;const u=o?W2:Z2;e[u.offset]=`${-a}`,e[u.array]=`${t} ${i}`}const J2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function gS(e,{attrX:t,attrY:i,attrScale:a,pathLength:o,pathSpacing:u=1,pathOffset:c=0,...d},p,m,g){if(_m(e,d,m),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:v}=e;y.transform&&(v.transform=y.transform,delete y.transform),(v.transform||y.transformOrigin)&&(v.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),v.transform&&(v.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete y.transformBox);for(const x of J2)y[x]!==void 0&&(v[x]=y[x],delete y[x]);t!==void 0&&(y.x=t),i!==void 0&&(y.y=i),a!==void 0&&(y.scale=a),o!==void 0&&$2(y,o,u,c,!1)}const yS=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"]),bS=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ek(e,t,i,a){mS(e,t,void 0,a);for(const o in t.attrs)e.setAttribute(yS.has(o)?o:vm(o),t.attrs[o])}function vS(e,t,i){const a=Cm(e,t,i);for(const o in e)if(Ct(e[o])||Ct(t[o])){const u=Za.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;a[u]=e[o]}return a}class tk extends uS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,i){return t[i]}readValueFromInstance(t,i){if($a.has(i)){const a=$1(i);return a&&a.default||0}return i=yS.has(i)?i:vm(i),t.getAttribute(i)}scrapeMotionValuesFromProps(t,i,a){return vS(t,i,a)}build(t,i,a){gS(t,i,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,i,a,o){ek(t,i,a,o)}mount(t){this.isSVGTag=bS(t.tagName),super.mount(t)}}const nk=Am.length;function xS(e){if(!e)return;if(!e.isControllingVariants){const i=e.parent?xS(e.parent)||{}:{};return e.props.initial!==void 0&&(i.initial=e.props.initial),i}const t={};for(let i=0;i<nk;i++){const a=Am[i],o=e.props[a];(go(o)||o===!1)&&(t[a]=o)}return t}function SS(e,t){if(!Array.isArray(t))return!1;const i=t.length;if(i!==e.length)return!1;for(let a=0;a<i;a++)if(t[a]!==e[a])return!1;return!0}const ik=[...Em].reverse(),rk=Em.length;function ak(e){return t=>Promise.all(t.map(({animation:i,options:a})=>n2(e,i,a)))}function sk(e){let t=ak(e),i=G0(),a=!0,o=!1;const u=m=>(g,y)=>{var x;const v=Ur(e,y,m==="exit"?(x=e.presenceContext)==null?void 0:x.custom:void 0);if(v){const{transition:A,transitionEnd:M,...N}=v;g={...g,...N,...M}}return g};function c(m){t=m(e)}function d(m){const{props:g}=e,y=xS(e.parent)||{},v=[],x=new Set;let A={},M=1/0;for(let C=0;C<rk;C++){const V=ik[C],L=i[V],Y=g[V]!==void 0?g[V]:y[V],Z=go(Y),z=V===m?L.isActive:null;z===!1&&(M=C);let K=Y===y[V]&&Y!==g[V]&&Z;if(K&&(a||o)&&e.manuallyAnimateOnMount&&(K=!1),L.protectedKeys={...A},!L.isActive&&z===null||!Y&&!L.prevProp||Ku(Y)||typeof Y=="boolean")continue;if(V==="exit"&&L.isActive&&z!==!0){L.prevResolvedValues&&(A={...A,...L.prevResolvedValues});continue}const B=ok(L.prevProp,Y);let ee=B||V===m&&L.isActive&&!K&&Z||C>M&&Z,ie=!1;const $=Array.isArray(Y)?Y:[Y];let ne=$.reduce(u(V),{});z===!1&&(ne={});const{prevResolvedValues:ge={}}=L,le={...ge,...ne},J=oe=>{ee=!0,x.has(oe)&&(ie=!0,x.delete(oe)),L.needsAnimating[oe]=!0;const he=e.getValue(oe);he&&(he.liveStyle=!1)};for(const oe in le){const he=ne[oe],w=ge[oe];if(A.hasOwnProperty(oe))continue;let k=!1;Th(he)&&Th(w)?k=!SS(he,w):k=he!==w,k?he!=null?J(oe):x.add(oe):he!==void 0&&x.has(oe)?J(oe):L.protectedKeys[oe]=!0}L.prevProp=Y,L.prevResolvedValues=ne,L.isActive&&(A={...A,...ne}),(a||o)&&e.blockInitialAnimation&&(ee=!1);const R=K&&B;ee&&(!R||ie)&&v.push(...$.map(oe=>{const he={type:V};if(typeof oe=="string"&&(a||o)&&!R&&e.manuallyAnimateOnMount&&e.parent){const{parent:w}=e,k=Ur(w,oe);if(w.enteringChildren&&k){const{delayChildren:q}=k.transition||{};he.delay=q1(w.enteringChildren,e,q)}}return{animation:oe,options:he}}))}if(x.size){const C={};if(typeof g.initial!="boolean"){const V=Ur(e,Array.isArray(g.initial)?g.initial[0]:g.initial);V&&V.transition&&(C.transition=V.transition)}x.forEach(V=>{const L=e.getBaseTarget(V),Y=e.getValue(V);Y&&(Y.liveStyle=!0),C[V]=L??null}),v.push({animation:C})}let N=!!v.length;return a&&(g.initial===!1||g.initial===g.animate)&&!e.manuallyAnimateOnMount&&(N=!1),a=!1,o=!1,N?t(v):Promise.resolve()}function p(m,g){var v;if(i[m].isActive===g)return Promise.resolve();(v=e.variantChildren)==null||v.forEach(x=>{var A;return(A=x.animationState)==null?void 0:A.setActive(m,g)}),i[m].isActive=g;const y=d(m);for(const x in i)i[x].protectedKeys={};return y}return{animateChanges:d,setActive:p,setAnimateFunction:c,getState:()=>i,reset:()=>{i=G0(),o=!0}}}function ok(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!SS(t,e):!1}function Mr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function G0(){return{animate:Mr(!0),whileInView:Mr(),whileHover:Mr(),whileTap:Mr(),whileDrag:Mr(),whileFocus:Mr(),exit:Mr()}}function Rh(e,t){e.min=t.min,e.max=t.max}function _n(e,t){Rh(e.x,t.x),Rh(e.y,t.y)}function Y0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const wS=1e-4,lk=1-wS,uk=1+wS,TS=.01,ck=0-TS,fk=0+TS;function jt(e){return e.max-e.min}function dk(e,t,i){return Math.abs(e-t)<=i}function X0(e,t,i,a=.5){e.origin=a,e.originPoint=tt(t.min,t.max,e.origin),e.scale=jt(i)/jt(t),e.translate=tt(i.min,i.max,e.origin)-e.originPoint,(e.scale>=lk&&e.scale<=uk||isNaN(e.scale))&&(e.scale=1),(e.translate>=ck&&e.translate<=fk||isNaN(e.translate))&&(e.translate=0)}function oo(e,t,i,a){X0(e.x,t.x,i.x,a?a.originX:void 0),X0(e.y,t.y,i.y,a?a.originY:void 0)}function K0(e,t,i,a=0){const o=a?tt(i.min,i.max,a):i.min;e.min=o+t.min,e.max=e.min+jt(t)}function hk(e,t,i,a){K0(e.x,t.x,i.x,a==null?void 0:a.x),K0(e.y,t.y,i.y,a==null?void 0:a.y)}function Q0(e,t,i,a=0){const o=a?tt(i.min,i.max,a):i.min;e.min=t.min-o,e.max=e.min+jt(t)}function Ru(e,t,i,a){Q0(e.x,t.x,i.x,a==null?void 0:a.x),Q0(e.y,t.y,i.y,a==null?void 0:a.y)}function W0(e,t,i,a,o){return e-=t,e=Nu(e,1/i,a),o!==void 0&&(e=Nu(e,1/o,a)),e}function mk(e,t=0,i=1,a=.5,o,u=e,c=e){if(Hn.test(t)&&(t=parseFloat(t),t=tt(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=tt(u.min,u.max,a);e===u&&(d-=t),e.min=W0(e.min,t,i,d,o),e.max=W0(e.max,t,i,d,o)}function Z0(e,t,[i,a,o],u,c){mk(e,t[i],t[a],t[o],t.scale,u,c)}const pk=["x","scaleX","originX"],gk=["y","scaleY","originY"];function $0(e,t,i,a){Z0(e.x,t,pk,i?i.x:void 0,a?a.x:void 0),Z0(e.y,t,gk,i?i.y:void 0,a?a.y:void 0)}function J0(e){return e.translate===0&&e.scale===1}function ES(e){return J0(e.x)&&J0(e.y)}function ev(e,t){return e.min===t.min&&e.max===t.max}function yk(e,t){return ev(e.x,t.x)&&ev(e.y,t.y)}function tv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function AS(e,t){return tv(e.x,t.x)&&tv(e.y,t.y)}function nv(e){return jt(e.x)/jt(e.y)}function iv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function In(e){return[e("x"),e("y")]}function bk(e,t,i){let a="";const o=e.x.translate/t.x,u=e.y.translate/t.y,c=(i==null?void 0:i.z)||0;if((o||u||c)&&(a=`translate3d(${o}px, ${u}px, ${c}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),i){const{transformPerspective:m,rotate:g,rotateX:y,rotateY:v,skewX:x,skewY:A}=i;m&&(a=`perspective(${m}px) ${a}`),g&&(a+=`rotate(${g}deg) `),y&&(a+=`rotateX(${y}deg) `),v&&(a+=`rotateY(${v}deg) `),x&&(a+=`skewX(${x}deg) `),A&&(a+=`skewY(${A}deg) `)}const d=e.x.scale*t.x,p=e.y.scale*t.y;return(d!==1||p!==1)&&(a+=`scale(${d}, ${p})`),a||"none"}const _S=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],vk=_S.length,rv=e=>typeof e=="string"?parseFloat(e):e,av=e=>typeof e=="number"||de.test(e);function xk(e,t,i,a,o,u){o?(e.opacity=tt(0,i.opacity??1,Sk(a)),e.opacityExit=tt(t.opacity??1,0,wk(a))):u&&(e.opacity=tt(t.opacity??1,i.opacity??1,a));for(let c=0;c<vk;c++){const d=_S[c];let p=sv(t,d),m=sv(i,d);if(p===void 0&&m===void 0)continue;p||(p=0),m||(m=0),p===0||m===0||av(p)===av(m)?(e[d]=Math.max(tt(rv(p),rv(m),a),0),(Hn.test(m)||Hn.test(p))&&(e[d]+="%")):e[d]=m}(t.rotate||i.rotate)&&(e.rotate=tt(t.rotate||0,i.rotate||0,a))}function sv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Sk=CS(0,.5,y1),wk=CS(.5,.95,Sn);function CS(e,t,i){return a=>a<e?0:a>t?1:i(mo(e,t,a))}function Tk(e,t,i){const a=Ct(e)?e:Ya(e);return a.start(ym("",a,t,i)),a.animation}function yo(e,t,i,a={passive:!0}){return e.addEventListener(t,i,a),()=>e.removeEventListener(t,i)}const Ek=(e,t)=>e.depth-t.depth;class Ak{constructor(){this.children=[],this.isDirty=!1}add(t){rm(this.children,t),this.isDirty=!0}remove(t){Au(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ek),this.isDirty=!1,this.children.forEach(t)}}function _k(e,t){const i=Lt.now(),a=({timestamp:o})=>{const u=o-i;u>=t&&(rr(a),e(u-t))};return We.setup(a,!0),()=>rr(a)}function bu(e){return Ct(e)?e.get():e}class Ck{constructor(){this.members=[]}add(t){rm(this.members,t);for(let i=this.members.length-1;i>=0;i--){const a=this.members[i];if(a===t||a===this.lead||a===this.prevLead)continue;const o=a.instance;(!o||o.isConnected===!1)&&!a.snapshot&&(Au(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(Au(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(t){var i;for(let a=this.members.indexOf(t)-1;a>=0;a--){const o=this.members[a];if(o.isPresent!==!1&&((i=o.instance)==null?void 0:i.isConnected)!==!1)return this.promote(o),!0}return!1}promote(t,i){var o;const a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();const{layoutDependency:u}=a.options,{layoutDependency:c}=t.options;(u===void 0||u!==c)&&(t.resumeFrom=a,i&&(a.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),(o=t.root)!=null&&o.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var i,a,o,u,c;(a=(i=t.options).onExitComplete)==null||a.call(i),(c=(o=t.resumingFrom)==null?void 0:(u=o.options).onExitComplete)==null||c.call(u)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const vu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ld=["","X","Y","Z"],kk=1e3;let Mk=0;function jd(e,t,i,a){const{latestValues:o}=t;o[e]&&(i[e]=o[e],t.setStaticValue(e,0),a&&(a[e]=0))}function kS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const i=K1(t);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:o,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",We,!(o||u))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&kS(a)}function MS({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:a,resetTransform:o}){return class{constructor(c={},d=t==null?void 0:t()){this.id=Mk++,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(Rk),this.nodes.forEach(Uk),this.nodes.forEach(Bk),this.nodes.forEach(Ok)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ak)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new sm),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const p=this.eventHandlers.get(c);p&&p.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=Tm(c)&&!N2(c),this.instance=c;const{layoutId:d,layout:p,visualElement:m}=this.options;if(m&&!m.current&&m.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||d)&&(this.isLayoutDirty=!0),e){let g,y=0;const v=()=>this.root.updateBlockedByResize=!1;We.read(()=>{y=window.innerWidth}),e(c,()=>{const x=window.innerWidth;x!==y&&(y=x,this.root.updateBlockedByResize=!0,g&&g(),g=_k(v,250),vu.hasAnimatedSinceResize&&(vu.hasAnimatedSinceResize=!1,this.nodes.forEach(uv)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&m&&(d||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:y,hasRelativeLayoutChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||m.getDefaultTransition()||Fk,{onLayoutAnimationStart:M,onLayoutAnimationComplete:N}=m.getProps(),C=!this.targetLayout||!AS(this.targetLayout,x),V=!y&&v;if(this.options.layoutRoot||this.resumeFrom||V||y&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...gm(A,"layout"),onPlay:M,onComplete:N};(m.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(g,V)}else y||uv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),rr(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(Pk),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&kS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,(typeof y.latestValues.x=="string"||typeof y.latestValues.y=="string")&&(y.isLayoutDirty=!0),y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:p}=this.options;if(d===void 0&&!p)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const p=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),p&&this.nodes.forEach(Lk),this.nodes.forEach(ov);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(lv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(jk),this.nodes.forEach(Ik),this.nodes.forEach(Dk),this.nodes.forEach(Nk)):this.nodes.forEach(lv),this.clearAllSnapshots();const d=Lt.now();_t.delta=Fn(0,1e3/60,d-_t.timestamp),_t.timestamp=d,_t.isProcessing=!0,Cd.update.process(_t),Cd.preRender.process(_t),Cd.render.process(_t),_t.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zk),this.sharedNodes.forEach(Vk)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,We.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){We.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!jt(this.snapshot.measuredBox.x)&&!jt(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 p=0;p<this.path.length;p++)this.path[p].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=bt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d&&this.instance){const p=a(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:p,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!ES(this.projectionDelta),p=this.getTransformTemplate(),m=p?p(this.latestValues,""):void 0,g=m!==this.prevTransformTemplateValue;c&&this.instance&&(d||Nr(this.latestValues)||g)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let p=this.removeElementScroll(d);return c&&(p=this.removeTransform(p)),Gk(p),{animationId:this.root.animationId,measuredBox:d,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:c}=this.options;if(!c)return bt();const d=c.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(Yk))){const{scroll:g}=this.root;g&&(Bn(d.x,g.offset.x),Bn(d.y,g.offset.y))}return d}removeElementScroll(c){var p;const d=bt();if(_n(d,c),(p=this.scroll)!=null&&p.wasRoot)return d;for(let m=0;m<this.path.length;m++){const g=this.path[m],{scroll:y,options:v}=g;g!==this.root&&y&&v.layoutScroll&&(y.wasRoot&&_n(d,c),Bn(d.x,y.offset.x),Bn(d.y,y.offset.y))}return d}applyTransform(c,d=!1,p){var g,y;const m=p||bt();_n(m,c);for(let v=0;v<this.path.length;v++){const x=this.path[v];!d&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(Bn(m.x,-x.scroll.offset.x),Bn(m.y,-x.scroll.offset.y)),Nr(x.latestValues)&&yu(m,x.latestValues,(g=x.layout)==null?void 0:g.layoutBox)}return Nr(this.latestValues)&&yu(m,this.latestValues,(y=this.layout)==null?void 0:y.layoutBox),m}removeTransform(c){var p;const d=bt();_n(d,c);for(let m=0;m<this.path.length;m++){const g=this.path[m];if(!Nr(g.latestValues))continue;let y;g.instance&&(Mh(g.latestValues)&&g.updateSnapshot(),y=bt(),_n(y,g.measurePageBox())),$0(d,g.latestValues,(p=g.snapshot)==null?void 0:p.layoutBox,y)}return Nr(this.latestValues)&&$0(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==_t.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var x;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==d;if(!(c||p&&this.isSharedProjectionDirty||this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:y}=this.options;if(!this.layout||!(g||y))return;this.resolvedRelativeTargetAt=_t.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=bt(),this.targetWithTransforms=bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hk(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):_n(this.target,this.layout.layoutBox),dS(this.target,this.targetDelta)):_n(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Mh(this.parent.latestValues)||fS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,d,p){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),Ru(this.relativeTargetOrigin,d,p,this.options.layoutAnchor||void 0),_n(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var A;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||(A=this.parent)!=null&&A.isProjectionDirty)&&(p=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===_t.timestamp&&(p=!1),p)return;const{layout:m,layoutId:g}=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||g))return;_n(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,v=this.treeScale.y;H2(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=bt());const{target:x}=c;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Y0(this.prevProjectionDelta.x,this.projectionDelta.x),Y0(this.prevProjectionDelta.y,this.projectionDelta.y)),oo(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==v||!iv(this.projectionDelta.x,this.prevProjectionDelta.x)||!iv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var d;if((d=this.options.visualElement)==null||d.scheduleRender(),c){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ia(),this.projectionDelta=Ia(),this.projectionDeltaWithTransform=Ia()}setAnimationOrigin(c,d=!1){const p=this.snapshot,m=p?p.latestValues:{},g={...this.latestValues},y=Ia();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const v=bt(),x=p?p.source:void 0,A=this.layout?this.layout.source:void 0,M=x!==A,N=this.getStack(),C=!N||N.members.length<=1,V=!!(M&&!C&&this.options.crossfade===!0&&!this.path.some(qk));this.animationProgress=0;let L;this.mixTargetDelta=Y=>{const Z=Y/1e3;cv(y.x,c.x,Z),cv(y.y,c.y,Z),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ru(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Hk(this.relativeTarget,this.relativeTargetOrigin,v,Z),L&&yk(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=bt()),_n(L,this.relativeTarget)),M&&(this.animationValues=g,xk(g,m,this.latestValues,Z,V,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){var d,p,m;this.notifyListeners("animationStart"),(d=this.currentAnimation)==null||d.stop(),(m=(p=this.resumingFrom)==null?void 0:p.currentAnimation)==null||m.stop(),this.pendingAnimation&&(rr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=We.update(()=>{vu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ya(0)),this.motionValue.jump(0,!1),this.currentAnimation=Tk(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),c.onUpdate&&c.onUpdate(g)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kk),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:p,layout:m,latestValues:g}=c;if(!(!d||!p||!m)){if(this!==c&&this.layout&&m&&DS(this.options.animationType,this.layout.layoutBox,m.layoutBox)){p=this.target||bt();const y=jt(this.layout.layoutBox.x);p.x.min=c.target.x.min,p.x.max=p.x.min+y;const v=jt(this.layout.layoutBox.y);p.y.min=c.target.y.min,p.y.max=p.y.min+v}_n(d,p),yu(d,g),oo(this.projectionDeltaWithTransform,this.layoutCorrected,d,g)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new Ck),this.sharedNodes.get(c).add(d);const m=d.options.initialPromotionConfig;d.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var d;const{layoutId:c}=this.options;return c?((d=this.getStack())==null?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:c}=this.options;return c?(d=this.getStack())==null?void 0:d.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:p}={}){const m=this.getStack();m&&m.promote(this,p),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:p}=c;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(d=!0),!d)return;const m={};p.z&&jd("z",c,m,this.animationValues);for(let g=0;g<Ld.length;g++)jd(`rotate${Ld[g]}`,c,m,this.animationValues),jd(`skew${Ld[g]}`,c,m,this.animationValues);c.render();for(const g in m)c.setStaticValue(g,m[g]),this.animationValues&&(this.animationValues[g]=m[g]);c.scheduleRender()}applyProjectionStyles(c,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=bu(d==null?void 0:d.pointerEvents)||"",c.transform=p?p(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=bu(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!Nr(this.latestValues)&&(c.transform=p?p({},""):"none",this.hasProjected=!1);return}c.visibility="";const g=m.animationValues||m.latestValues;this.applyTransformsToTarget();let y=bk(this.projectionDeltaWithTransform,this.treeScale,g);p&&(y=p(g,y)),c.transform=y;const{x:v,y:x}=this.projectionDelta;c.transformOrigin=`${v.origin*100}% ${x.origin*100}% 0`,m.animationValues?c.opacity=m===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:c.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const A in Nh){if(g[A]===void 0)continue;const{correct:M,applyTo:N,isCSSVariable:C}=Nh[A],V=y==="none"?g[A]:M(g[A],m);if(N){const L=N.length;for(let Y=0;Y<L;Y++)c[N[Y]]=V}else C?this.options.visualElement.renderState.vars[A]=V:c[A]=V}this.options.layoutId&&(c.pointerEvents=m===this?bu(d==null?void 0:d.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var d;return(d=c.currentAnimation)==null?void 0:d.stop()}),this.root.nodes.forEach(ov),this.root.sharedNodes.clear()}}}function Dk(e){e.updateLayout()}function Nk(e){var i;const t=((i=e.resumeFrom)==null?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:o}=e.layout,{animationType:u}=e.options,c=t.source!==e.layout.source;if(u==="size")In(y=>{const v=c?t.measuredBox[y]:t.layoutBox[y],x=jt(v);v.min=a[y].min,v.max=v.min+x});else if(u==="x"||u==="y"){const y=u==="x"?"y":"x";Rh(c?t.measuredBox[y]:t.layoutBox[y],a[y])}else DS(u,t.layoutBox,a)&&In(y=>{const v=c?t.measuredBox[y]:t.layoutBox[y],x=jt(a[y]);v.max=v.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+x)});const d=Ia();oo(d,a,t.layoutBox);const p=Ia();c?oo(p,e.applyTransform(o,!0),t.measuredBox):oo(p,a,t.layoutBox);const m=!ES(d);let g=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:x}=y;if(v&&x){const A=e.options.layoutAnchor||void 0,M=bt();Ru(M,t.layoutBox,v.layoutBox,A);const N=bt();Ru(N,a,x.layoutBox,A),AS(M,N)||(g=!0),y.options.layoutRoot&&(e.relativeTarget=N,e.relativeTargetOrigin=M,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:p,layoutDelta:d,hasLayoutChanged:m,hasRelativeLayoutChanged:g})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function Rk(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ok(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zk(e){e.clearSnapshot()}function ov(e){e.clearMeasurements()}function Lk(e){e.isLayoutDirty=!0,e.updateLayout()}function lv(e){e.isLayoutDirty=!1}function jk(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Ik(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function uv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Uk(e){e.resolveTargetDelta()}function Bk(e){e.calcProjection()}function Pk(e){e.resetSkewAndRotation()}function Vk(e){e.removeLeadSnapshot()}function cv(e,t,i){e.translate=tt(t.translate,0,i),e.scale=tt(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function fv(e,t,i,a){e.min=tt(t.min,i.min,a),e.max=tt(t.max,i.max,a)}function Hk(e,t,i,a){fv(e.x,t.x,i.x,a),fv(e.y,t.y,i.y,a)}function qk(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Fk={duration:.45,ease:[.4,0,.1,1]},dv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),hv=dv("applewebkit/")&&!dv("chrome/")?Math.round:Sn;function mv(e){e.min=hv(e.min),e.max=hv(e.max)}function Gk(e){mv(e.x),mv(e.y)}function DS(e,t,i){return e==="position"||e==="preserve-aspect"&&!dk(nv(t),nv(i),.2)}function Yk(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Xk=MS({attachResizeListener:(e,t)=>yo(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Id={current:void 0},NS=MS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Id.current){const e=new Xk({});e.mount(window),e.setOptions({layoutScroll:!0}),Id.current=e}return Id.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),km=te.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function pv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Kk(...e){return t=>{let i=!1;const a=e.map(o=>{const u=pv(o,t);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let o=0;o<a.length;o++){const u=a[o];typeof u=="function"?u():pv(e[o],null)}}}}function Qk(...e){return te.useCallback(Kk(...e),e)}class Wk extends te.Component{getSnapshotBeforeUpdate(t){const i=this.props.childRef.current;if(hu(i)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const a=i.offsetParent,o=hu(a)&&a.offsetWidth||0,u=hu(a)&&a.offsetHeight||0,c=getComputedStyle(i),d=this.props.sizeRef.current;d.height=parseFloat(c.height),d.width=parseFloat(c.width),d.top=i.offsetTop,d.left=i.offsetLeft,d.right=o-d.width-d.left,d.bottom=u-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Zk({children:e,isPresent:t,anchorX:i,anchorY:a,root:o,pop:u}){var v;const c=te.useId(),d=te.useRef(null),p=te.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=te.useContext(km),g=((v=e.props)==null?void 0:v.ref)??(e==null?void 0:e.ref),y=Qk(d,g);return te.useInsertionEffect(()=>{const{width:x,height:A,top:M,left:N,right:C,bottom:V}=p.current;if(t||u===!1||!d.current||!x||!A)return;const L=i==="left"?`left: ${N}`:`right: ${C}`,Y=a==="bottom"?`bottom: ${V}`:`top: ${M}`;d.current.dataset.motionPopId=c;const Z=document.createElement("style");m&&(Z.nonce=m);const z=o??document.head;return z.appendChild(Z),Z.sheet&&Z.sheet.insertRule(`
|
||
[data-motion-pop-id="${c}"] {
|
||
position: absolute !important;
|
||
width: ${x}px !important;
|
||
height: ${A}px !important;
|
||
${L}px !important;
|
||
${Y}px !important;
|
||
}
|
||
`),()=>{var K;(K=d.current)==null||K.removeAttribute("data-motion-pop-id"),z.contains(Z)&&z.removeChild(Z)}},[t]),T.jsx(Wk,{isPresent:t,childRef:d,sizeRef:p,pop:u,children:u===!1?e:te.cloneElement(e,{ref:y})})}const $k=({children:e,initial:t,isPresent:i,onExitComplete:a,custom:o,presenceAffectsLayout:u,mode:c,anchorX:d,anchorY:p,root:m})=>{const g=im(Jk),y=te.useId();let v=!0,x=te.useMemo(()=>(v=!1,{id:y,initial:t,isPresent:i,custom:o,onExitComplete:A=>{g.set(A,!0);for(const M of g.values())if(!M)return;a&&a()},register:A=>(g.set(A,!1),()=>g.delete(A))}),[i,g,a]);return u&&v&&(x={...x}),te.useMemo(()=>{g.forEach((A,M)=>g.set(M,!1))},[i]),te.useEffect(()=>{!i&&!g.size&&a&&a()},[i]),e=T.jsx(Zk,{pop:c==="popLayout",isPresent:i,anchorX:d,anchorY:p,root:m,children:e}),T.jsx(Yu.Provider,{value:x,children:e})};function Jk(){return new Map}function RS(e=!0){const t=te.useContext(Yu);if(t===null)return[!0,null];const{isPresent:i,onExitComplete:a,register:o}=t,u=te.useId();te.useEffect(()=>{if(e)return o(u)},[e]);const c=te.useCallback(()=>e&&a&&a(u),[u,a,e]);return!i&&a?[!1,c]:[!0]}const tu=e=>e.key||"";function gv(e){const t=[];return te.Children.forEach(e,i=>{te.isValidElement(i)&&t.push(i)}),t}const OS=({children:e,custom:t,initial:i=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:u="sync",propagate:c=!1,anchorX:d="left",anchorY:p="top",root:m})=>{const[g,y]=RS(c),v=te.useMemo(()=>gv(e),[e]),x=c&&!g?[]:v.map(tu),A=te.useRef(!0),M=te.useRef(v),N=im(()=>new Map),C=te.useRef(new Set),[V,L]=te.useState(v),[Y,Z]=te.useState(v);a1(()=>{A.current=!1,M.current=v;for(let B=0;B<Y.length;B++){const ee=tu(Y[B]);x.includes(ee)?(N.delete(ee),C.current.delete(ee)):N.get(ee)!==!0&&N.set(ee,!1)}},[Y,x.length,x.join("-")]);const z=[];if(v!==V){let B=[...v];for(let ee=0;ee<Y.length;ee++){const ie=Y[ee],$=tu(ie);x.includes($)||(B.splice(ee,0,ie),z.push(ie))}return u==="wait"&&z.length&&(B=z),Z(gv(B)),L(v),null}const{forceRender:K}=te.useContext(nm);return T.jsx(T.Fragment,{children:Y.map(B=>{const ee=tu(B),ie=c&&!g?!1:v===Y||x.includes(ee),$=()=>{if(C.current.has(ee))return;if(N.has(ee))C.current.add(ee),N.set(ee,!0);else return;let ne=!0;N.forEach(ge=>{ge||(ne=!1)}),ne&&(K==null||K(),Z(M.current),c&&(y==null||y()),a&&a())};return T.jsx($k,{isPresent:ie,initial:!A.current||i?void 0:!1,custom:t,presenceAffectsLayout:o,mode:u,root:m,onExitComplete:ie?void 0:$,anchorX:d,anchorY:p,children:B},ee)})})},zS=te.createContext({strict:!1}),yv={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 bv=!1;function eM(){if(bv)return;const e={};for(const t in yv)e[t]={isEnabled:i=>yv[t].some(a=>!!i[a])};lS(e),bv=!0}function LS(){return eM(),U2()}function tM(e){const t=LS();for(const i in e)t[i]={...t[i],...e[i]};lS(t)}const nM=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 Ou(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nM.has(e)}let jS=e=>!Ou(e);function iM(e){typeof e=="function"&&(jS=t=>t.startsWith("on")?!Ou(t):e(t))}try{iM(require("@emotion/is-prop-valid").default)}catch{}function rM(e,t,i){const a={};for(const o in e)o==="values"&&typeof e.values=="object"||Ct(e[o])||(jS(o)||i===!0&&Ou(o)||!t&&!Ou(o)||e.draggable&&o.startsWith("onDrag"))&&(a[o]=e[o]);return a}const Wu=te.createContext({});function aM(e,t){if(Qu(e)){const{initial:i,animate:a}=e;return{initial:i===!1||go(i)?i:void 0,animate:go(a)?a:void 0}}return e.inherit!==!1?t:{}}function sM(e){const{initial:t,animate:i}=aM(e,te.useContext(Wu));return te.useMemo(()=>({initial:t,animate:i}),[vv(t),vv(i)])}function vv(e){return Array.isArray(e)?e.join(" "):e}const Mm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function IS(e,t,i){for(const a in t)!Ct(t[a])&&!pS(a,i)&&(e[a]=t[a])}function oM({transformTemplate:e},t){return te.useMemo(()=>{const i=Mm();return _m(i,t,e),Object.assign({},i.vars,i.style)},[t])}function lM(e,t){const i=e.style||{},a={};return IS(a,i,e),Object.assign(a,oM(e,t)),a}function uM(e,t){const i={},a=lM(e,t);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=a,i}const US=()=>({...Mm(),attrs:{}});function cM(e,t,i,a){const o=te.useMemo(()=>{const u=US();return gS(u,t,bS(a),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[t]);if(e.style){const u={};IS(u,e.style,e),o.style={...u,...o.style}}return o}const fM=["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 Dm(e){return typeof e!="string"||e.includes("-")?!1:!!(fM.indexOf(e)>-1||/[A-Z]/u.test(e))}function dM(e,t,i,{latestValues:a},o,u=!1,c){const p=(c??Dm(e)?cM:uM)(t,a,o,e),m=rM(t,typeof e=="string",u),g=e!==te.Fragment?{...m,...p,ref:i}:{},{children:y}=t,v=te.useMemo(()=>Ct(y)?y.get():y,[y]);return te.createElement(e,{...g,children:v})}function hM({scrapeMotionValuesFromProps:e,createRenderState:t},i,a,o){return{latestValues:mM(i,a,o,e),renderState:t()}}function mM(e,t,i,a){const o={},u=a(e,{});for(const v in u)o[v]=bu(u[v]);let{initial:c,animate:d}=e;const p=Qu(e),m=sS(e);t&&m&&!p&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let g=i?i.initial===!1:!1;g=g||c===!1;const y=g?d:c;if(y&&typeof y!="boolean"&&!Ku(y)){const v=Array.isArray(y)?y:[y];for(let x=0;x<v.length;x++){const A=bm(e,v[x]);if(A){const{transitionEnd:M,transition:N,...C}=A;for(const V in C){let L=C[V];if(Array.isArray(L)){const Y=g?L.length-1:0;L=L[Y]}L!==null&&(o[V]=L)}for(const V in M)o[V]=M[V]}}}return o}const BS=e=>(t,i)=>{const a=te.useContext(Wu),o=te.useContext(Yu),u=()=>hM(e,t,a,o);return i?u():im(u)},pM=BS({scrapeMotionValuesFromProps:Cm,createRenderState:Mm}),gM=BS({scrapeMotionValuesFromProps:vS,createRenderState:US}),yM=Symbol.for("motionComponentSymbol");function bM(e,t,i){const a=te.useRef(i);te.useInsertionEffect(()=>{a.current=i});const o=te.useRef(null);return te.useCallback(u=>{var d;u&&((d=e.onMount)==null||d.call(e,u));const c=a.current;if(typeof c=="function")if(u){const p=c(u);typeof p=="function"&&(o.current=p)}else o.current?(o.current(),o.current=null):c(u);else c&&(c.current=u);t&&(u?t.mount(u):t.unmount())},[t])}const PS=te.createContext({});function za(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function vM(e,t,i,a,o,u){var L,Y;const{visualElement:c}=te.useContext(Wu),d=te.useContext(zS),p=te.useContext(Yu),m=te.useContext(km),g=m.reducedMotion,y=m.skipAnimations,v=te.useRef(null),x=te.useRef(!1);a=a||d.renderer,!v.current&&a&&(v.current=a(e,{visualState:t,parent:c,props:i,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g,skipAnimations:y,isSVG:u}),x.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const A=v.current,M=te.useContext(PS);A&&!A.projection&&o&&(A.type==="html"||A.type==="svg")&&xM(v.current,i,o,M);const N=te.useRef(!1);te.useInsertionEffect(()=>{A&&N.current&&A.update(i,p)});const C=i[X1],V=te.useRef(!!C&&typeof window<"u"&&!((L=window.MotionHandoffIsComplete)!=null&&L.call(window,C))&&((Y=window.MotionHasOptimisedAnimation)==null?void 0:Y.call(window,C)));return a1(()=>{x.current=!0,A&&(N.current=!0,window.MotionIsMounted=!0,A.updateFeatures(),A.scheduleRenderMicrotask(),V.current&&A.animationState&&A.animationState.animateChanges())}),te.useEffect(()=>{A&&(!V.current&&A.animationState&&A.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{var Z;(Z=window.MotionHandoffMarkAsComplete)==null||Z.call(window,C)}),V.current=!1),A.enteringChildren=void 0)}),A}function xM(e,t,i,a){const{layoutId:o,layout:u,drag:c,dragConstraints:d,layoutScroll:p,layoutRoot:m,layoutAnchor:g,layoutCrossfade:y}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:VS(e.parent)),e.projection.setOptions({layoutId:o,layout:u,alwaysMeasureLayout:!!c||d&&za(d),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:a,crossfade:y,layoutScroll:p,layoutRoot:m,layoutAnchor:g})}function VS(e){if(e)return e.options.allowProjection!==!1?e.projection:VS(e.parent)}function Ud(e,{forwardMotionProps:t=!1,type:i}={},a,o){a&&tM(a);const u=i?i==="svg":Dm(e),c=u?gM:pM;function d(m,g){let y;const v={...te.useContext(km),...m,layoutId:SM(m)},{isStatic:x}=v,A=sM(m),M=c(m,x);if(!x&&typeof window<"u"){wM();const N=TM(v);y=N.MeasureLayout,A.visualElement=vM(e,M,v,o,N.ProjectionNode,u)}return T.jsxs(Wu.Provider,{value:A,children:[y&&A.visualElement?T.jsx(y,{visualElement:A.visualElement,...v}):null,dM(e,m,bM(M,A.visualElement,g),M,x,t,u)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const p=te.forwardRef(d);return p[yM]=e,p}function SM({layoutId:e}){const t=te.useContext(nm).id;return t&&e!==void 0?t+"-"+e:e}function wM(e,t){te.useContext(zS).strict}function TM(e){const t=LS(),{drag:i,layout:a}=t;if(!i&&!a)return{};const o={...i,...a};return{MeasureLayout:i!=null&&i.isEnabled(e)||a!=null&&a.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function EM(e,t){if(typeof Proxy>"u")return Ud;const i=new Map,a=(u,c)=>Ud(u,c,e,t),o=(u,c)=>a(u,c);return new Proxy(o,{get:(u,c)=>c==="create"?a:(i.has(c)||i.set(c,Ud(c,void 0,e,t)),i.get(c))})}const AM=(e,t)=>t.isSVG??Dm(e)?new tk(t):new Q2(t,{allowProjection:e!==te.Fragment});class _M extends sr{constructor(t){super(t),t.animationState||(t.animationState=sk(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ku(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:i}=this.node.prevProps||{};t!==i&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let CM=0;class kM extends sr{constructor(){super(...arguments),this.id=CM++,this.isExitComplete=!1}update(){var u;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:i}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;if(t&&a===!1){if(this.isExitComplete){const{initial:c,custom:d}=this.node.getProps();if(typeof c=="string"){const p=Ur(this.node,c,d);if(p){const{transition:m,transitionEnd:g,...y}=p;for(const v in y)(u=this.node.getValue(v))==null||u.jump(y[v])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!t);i&&!t&&o.then(()=>{this.isExitComplete=!0,i(this.id)})}mount(){const{register:t,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const MM={animation:{Feature:_M},exit:{Feature:kM}};function _o(e){return{point:{x:e.pageX,y:e.pageY}}}const DM=e=>t=>wm(t)&&e(t,_o(t));function lo(e,t,i,a){return yo(e,t,DM(i),a)}const HS=({current:e})=>e?e.ownerDocument.defaultView:null,xv=(e,t)=>Math.abs(e-t);function NM(e,t){const i=xv(e.x,t.x),a=xv(e.y,t.y);return Math.sqrt(i**2+a**2)}const Sv=new Set(["auto","scroll"]);class qS{constructor(t,i,{transformPagePoint:a,contextWindow:o=window,dragSnapToOrigin:u=!1,distanceThreshold:c=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nu(this.lastRawMoveEventInfo,this.transformPagePoint));const x=Bd(this.lastMoveEventInfo,this.history),A=this.startEvent!==null,M=NM(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!A&&!M)return;const{point:N}=x,{timestamp:C}=_t;this.history.push({...N,timestamp:C});const{onStart:V,onMove:L}=this.handlers;A||(V&&V(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,x)},this.handlePointerMove=(x,A)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=A,this.lastMoveEventInfo=nu(A,this.transformPagePoint),We.update(this.updatePoint,!0)},this.handlePointerUp=(x,A)=>{this.end();const{onEnd:M,onSessionEnd:N,resumeAnimation:C}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const V=Bd(x.type==="pointercancel"?this.lastMoveEventInfo:nu(A,this.transformPagePoint),this.history);this.startEvent&&M&&M(x,V),N&&N(x,V)},!wm(t))return;this.dragSnapToOrigin=u,this.handlers=i,this.transformPagePoint=a,this.distanceThreshold=c,this.contextWindow=o||window;const p=_o(t),m=nu(p,this.transformPagePoint),{point:g}=m,{timestamp:y}=_t;this.history=[{...g,timestamp:y}];const{onSessionStart:v}=i;v&&v(t,Bd(m,this.history)),this.removeListeners=To(lo(this.contextWindow,"pointermove",this.handlePointerMove),lo(this.contextWindow,"pointerup",this.handlePointerUp),lo(this.contextWindow,"pointercancel",this.handlePointerUp)),d&&this.startScrollTracking(d)}startScrollTracking(t){let i=t.parentElement;for(;i;){const a=getComputedStyle(i);(Sv.has(a.overflowX)||Sv.has(a.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.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(t){const i=this.scrollPositions.get(t);if(!i)return;const a=t===window,o=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},u={x:o.x-i.x,y:o.y-i.y};u.x===0&&u.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=u.x,this.lastMoveEventInfo.point.y+=u.y):this.history.length>0&&(this.history[0].x-=u.x,this.history[0].y-=u.y),this.scrollPositions.set(t,o),We.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),rr(this.updatePoint)}}function nu(e,t){return t?{point:t(e.point)}:e}function wv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Bd({point:e},t){return{point:e,delta:wv(e,FS(t)),offset:wv(e,RM(t)),velocity:OM(t,.1)}}function RM(e){return e[0]}function FS(e){return e[e.length-1]}function OM(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,a=null;const o=FS(e);for(;i>=0&&(a=e[i],!(o.timestamp-a.timestamp>ln(t)));)i--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&o.timestamp-a.timestamp>ln(t)*2&&(a=e[1]);const u=xn(o.timestamp-a.timestamp);if(u===0)return{x:0,y:0};const c={x:(o.x-a.x)/u,y:(o.y-a.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function zM(e,{min:t,max:i},a){return t!==void 0&&e<t?e=a?tt(t,e,a.min):Math.max(e,t):i!==void 0&&e>i&&(e=a?tt(i,e,a.max):Math.min(e,i)),e}function Tv(e,t,i){return{min:t!==void 0?e.min+t:void 0,max:i!==void 0?e.max+i-(e.max-e.min):void 0}}function LM(e,{top:t,left:i,bottom:a,right:o}){return{x:Tv(e.x,i,o),y:Tv(e.y,t,a)}}function Ev(e,t){let i=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,a]=[a,i]),{min:i,max:a}}function jM(e,t){return{x:Ev(e.x,t.x),y:Ev(e.y,t.y)}}function IM(e,t){let i=.5;const a=jt(e),o=jt(t);return o>a?i=mo(t.min,t.max-a,e.min):a>o&&(i=mo(e.min,e.max-o,t.min)),Fn(0,1,i)}function UM(e,t){const i={};return t.min!==void 0&&(i.min=t.min-e.min),t.max!==void 0&&(i.max=t.max-e.min),i}const Oh=.35;function BM(e=Oh){return e===!1?e=0:e===!0&&(e=Oh),{x:Av(e,"left","right"),y:Av(e,"top","bottom")}}function Av(e,t,i){return{min:_v(e,t),max:_v(e,i)}}function _v(e,t){return typeof e=="number"?e:e[t]||0}const PM=new WeakMap;class VM{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:i=!1,distanceThreshold:a}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const u=y=>{i&&this.snapToCursor(_o(y).point),this.stopAnimation()},c=(y,v)=>{const{drag:x,dragPropagation:A,onDragStart:M}=this.getProps();if(x&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=m2(x),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),In(C=>{let V=this.getAxisMotionValue(C).get()||0;if(Hn.test(V)){const{projection:L}=this.visualElement;if(L&&L.layout){const Y=L.layout.layoutBox[C];Y&&(V=jt(Y)*(parseFloat(V)/100))}}this.originPoint[C]=V}),M&&We.update(()=>M(y,v),!1,!0),Eh(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},d=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v;const{dragPropagation:x,dragDirectionLock:A,onDirectionLock:M,onDrag:N}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:C}=v;if(A&&this.currentDirection===null){this.currentDirection=qM(C),this.currentDirection!==null&&M&&M(this.currentDirection);return}this.updateAxis("x",v.point,C),this.updateAxis("y",v.point,C),this.visualElement.render(),N&&We.update(()=>N(y,v),!1,!0)},p=(y,v)=>{this.latestPointerEvent=y,this.latestPanInfo=v,this.stop(y,v),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:y}=this.getProps();(y||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new qS(t,{onSessionStart:u,onStart:c,onMove:d,onSessionEnd:p,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:a,contextWindow:HS(this.visualElement),element:this.visualElement.current})}stop(t,i){const a=t||this.latestPointerEvent,o=i||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!o||!a)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&We.postRender(()=>d(a,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:i}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,i,a){const{drag:o}=this.getProps();if(!a||!iu(t,o,this.currentDirection))return;const u=this.getAxisMotionValue(t);let c=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(c=zM(c,this.constraints[t],this.elastic[t])),u.set(c)}resolveConstraints(){var u;const{dragConstraints:t,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(u=this.visualElement.projection)==null?void 0:u.layout,o=this.constraints;t&&za(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=LM(a.layoutBox,t):this.constraints=!1,this.elastic=BM(i),o!==this.constraints&&!za(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&In(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=UM(a.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!za(t))return!1;const a=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=q2(a,o.root,this.visualElement.getTransformPagePoint());let c=jM(o.layout.layoutBox,u);if(i){const d=i(P2(c));this.hasMutatedConstraints=!!d,d&&(c=cS(d))}return c}startAnimation(t){const{drag:i,dragMomentum:a,dragElastic:o,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),p=this.constraints||{},m=In(g=>{if(!iu(g,i,this.currentDirection))return;let y=p&&p[g]||{};(c===!0||c===g)&&(y={min:0,max:0});const v=o?200:1e6,x=o?40:1e7,A={type:"inertia",velocity:a?t[g]:0,bounceStiffness:v,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...u,...y};return this.startAxisValueAnimation(g,A)});return Promise.all(m).then(d)}startAxisValueAnimation(t,i){const a=this.getAxisMotionValue(t);return Eh(this.visualElement,t),a.start(ym(t,a,0,i,this.visualElement,!1))}stopAnimation(){In(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const i=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),o=a[i];return o||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){In(i=>{const{drag:a}=this.getProps();if(!iu(i,a,this.currentDirection))return;const{projection:o}=this.visualElement,u=this.getAxisMotionValue(i);if(o&&o.layout){const{min:c,max:d}=o.layout.layoutBox[i],p=u.get()||0;u.set(t[i]-tt(c,d,.5)+p)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:i}=this.getProps(),{projection:a}=this.visualElement;if(!za(i)||!a||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};In(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const p=d.get();o[c]=IM({min:p,max:p},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),In(c=>{if(!iu(c,t,null))return;const d=this.getAxisMotionValue(c),{min:p,max:m}=this.constraints[c];d.set(tt(p,m,o[c]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;PM.set(this.visualElement,this);const t=this.visualElement.current,i=lo(t,"pointerdown",m=>{const{drag:g,dragListener:y=!0}=this.getProps(),v=m.target,x=v!==t&&x2(v);g&&y&&!x&&this.start(m)});let a;const o=()=>{const{dragConstraints:m}=this.getProps();za(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),a||(a=HM(t,m.current,()=>this.scalePositionWithinConstraints())))},{projection:u}=this.visualElement,c=u.addEventListener("measure",o);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),We.read(o);const d=yo(window,"resize",()=>this.scalePositionWithinConstraints()),p=u.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(In(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=m[y].translate,v.set(v.get()+m[y].translate))}),this.visualElement.render())}));return()=>{d(),i(),c(),p&&p(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:a=!1,dragPropagation:o=!1,dragConstraints:u=!1,dragElastic:c=Oh,dragMomentum:d=!0}=t;return{...t,drag:i,dragDirectionLock:a,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:d}}}function Cv(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function HM(e,t,i){const a=z0(e,Cv(i)),o=z0(t,Cv(i));return()=>{a(),o()}}function iu(e,t,i){return(t===!0||t===e)&&(i===null||i===e)}function qM(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}class FM extends sr{constructor(t){super(t),this.removeGroupControls=Sn,this.removeListeners=Sn,this.controls=new VM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Sn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};t!==i&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Pd=e=>(t,i)=>{e&&We.update(()=>e(t,i),!1,!0)};class GM extends sr{constructor(){super(...arguments),this.removePointerDownListener=Sn}onPointerDown(t){this.session=new qS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:HS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:i,onPan:a,onPanEnd:o}=this.node.getProps();return{onSessionStart:Pd(t),onStart:Pd(i),onMove:Pd(a),onEnd:(u,c)=>{delete this.session,o&&We.postRender(()=>o(u,c))}}}mount(){this.removePointerDownListener=lo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Vd=!1;class YM extends te.Component{componentDidMount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:a,layoutId:o}=this.props,{projection:u}=t;u&&(i.group&&i.group.add(u),a&&a.register&&o&&a.register(u),Vd&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),vu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:i,visualElement:a,drag:o,isPresent:u}=this.props,{projection:c}=a;return c&&(c.isPresent=u,t.layoutDependency!==i&&c.setOptions({...c.options,layoutDependency:i}),Vd=!0,o||t.layoutDependency!==i||i===void 0||t.isPresent!==u?c.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?c.promote():c.relegate()||We.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:i}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=i,a.root.didUpdate(),Sm.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:i,switchLayoutGroup:a}=this.props,{projection:o}=t;Vd=!0,o&&(o.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(o),a&&a.deregister&&a.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function GS(e){const[t,i]=RS(),a=te.useContext(nm);return T.jsx(YM,{...e,layoutGroup:a,switchLayoutGroup:te.useContext(PS),isPresent:t,safeToRemove:i})}const XM={pan:{Feature:GM},drag:{Feature:FM,ProjectionNode:NS,MeasureLayout:GS}};function kv(e,t,i){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",i==="Start");const o="onHover"+i,u=a[o];u&&We.postRender(()=>u(t,_o(t)))}class KM extends sr{mount(){const{current:t}=this.node;t&&(this.unmount=g2(t,(i,a)=>(kv(this.node,a,"Start"),o=>kv(this.node,o,"End"))))}unmount(){}}class QM extends sr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=To(yo(this.node.current,"focus",()=>this.onFocus()),yo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Mv(e,t,i){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",i==="Start");const o="onTap"+(i==="End"?"":i),u=a[o];u&&We.postRender(()=>u(t,_o(t)))}class WM extends sr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:i,propagate:a}=this.node.props;this.unmount=w2(t,(o,u)=>(Mv(this.node,u,"Start"),(c,{success:d})=>Mv(this.node,c,d?"End":"Cancel")),{useGlobalTarget:i,stopPropagation:(a==null?void 0:a.tap)===!1})}unmount(){}}const zh=new WeakMap,Hd=new WeakMap,ZM=e=>{const t=zh.get(e.target);t&&t(e)},$M=e=>{e.forEach(ZM)};function JM({root:e,...t}){const i=e||document;Hd.has(i)||Hd.set(i,{});const a=Hd.get(i),o=JSON.stringify(t);return a[o]||(a[o]=new IntersectionObserver($M,{root:e,...t})),a[o]}function eD(e,t,i){const a=JM(t);return zh.set(e,i),a.observe(e),()=>{zh.delete(e),a.unobserve(e)}}const tD={some:0,all:1};class nD extends sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var p;(p=this.stopObserver)==null||p.call(this);const{viewport:t={}}=this.node.getProps(),{root:i,margin:a,amount:o="some",once:u}=t,c={root:i?i.current:void 0,rootMargin:a,threshold:typeof o=="number"?o:tD[o]},d=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,u&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),x=g?y:v;x&&x(m)};this.stopObserver=eD(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:i}=this.node;["amount","margin","root"].some(iD(t,i))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function iD({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}const rD={inView:{Feature:nD},tap:{Feature:WM},focus:{Feature:QM},hover:{Feature:KM}},aD={layout:{ProjectionNode:NS,MeasureLayout:GS}},sD={...MM,...rD,...XM,...aD},Ua=EM(sD,AM);/**
|
||
* @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 oD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lD=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,a)=>a?a.toUpperCase():i.toLowerCase()),Dv=e=>{const t=lD(e);return t.charAt(0).toUpperCase()+t.slice(1)},YS=(...e)=>e.filter((t,i,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===i).join(" ").trim(),uD=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="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 cD={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 fD=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:o="",children:u,iconNode:c,...d},p)=>te.createElement("svg",{ref:p,...cD,width:t,height:t,stroke:e,strokeWidth:a?Number(i)*24/Number(t):i,className:YS("lucide",o),...!u&&!uD(d)&&{"aria-hidden":"true"},...d},[...c.map(([m,g])=>te.createElement(m,g)),...Array.isArray(u)?u:[u]]));/**
|
||
* @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 st=(e,t)=>{const i=te.forwardRef(({className:a,...o},u)=>te.createElement(fD,{ref:u,iconNode:t,className:YS(`lucide-${oD(Dv(e))}`,`lucide-${e}`,a),...o}));return i.displayName=Dv(e),i};/**
|
||
* @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 dD=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],hD=st("check-check",dD);/**
|
||
* @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 mD=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],pD=st("chevron-right",mD);/**
|
||
* @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 gD=[["path",{d:"M10.88 21.94 15.46 14",key:"xkve6t"}],["path",{d:"M21.17 8H12",key:"19dcdn"}],["path",{d:"M3.95 6.06 8.54 14",key:"g8jz9m"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],yD=st("chromium",gD);/**
|
||
* @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 bD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],zu=st("circle-alert",bD);/**
|
||
* @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 vD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],xD=st("circle-check",vD);/**
|
||
* @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 SD=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],XS=st("file-text",SD);/**
|
||
* @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 wD=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],TD=st("file",wD);/**
|
||
* @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 ED=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],AD=st("image",ED);/**
|
||
* @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 _D=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],CD=st("link-2",_D);/**
|
||
* @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 kD=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],KS=st("loader-circle",kD);/**
|
||
* @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 MD=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],DD=st("log-out",MD);/**
|
||
* @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 ND=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Nv=st("mic",ND);/**
|
||
* @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 RD=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],OD=st("music",RD);/**
|
||
* @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 zD=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Rv=st("paperclip",zD);/**
|
||
* @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 LD=[["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"}]],jD=st("send",LD);/**
|
||
* @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 ID=[["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:"m9 12 2 2 4-4",key:"dzmm74"}]],Nm=st("shield-check",ID);/**
|
||
* @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 UD=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Rm=st("sparkles",UD);/**
|
||
* @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 BD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],PD=st("square",BD);/**
|
||
* @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 VD=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],HD=st("wand-sparkles",VD);/**
|
||
* @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 qD=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],FD=st("workflow",qD);/**
|
||
* @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 GD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ov=st("x",GD);/**
|
||
* @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 YD=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],XD=st("zap",YD),KD=()=>{};var zv={};/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const QS=function(e){const t=[];let i=0;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);o<128?t[i++]=o:o<2048?(t[i++]=o>>6|192,t[i++]=o&63|128):(o&64512)===55296&&a+1<e.length&&(e.charCodeAt(a+1)&64512)===56320?(o=65536+((o&1023)<<10)+(e.charCodeAt(++a)&1023),t[i++]=o>>18|240,t[i++]=o>>12&63|128,t[i++]=o>>6&63|128,t[i++]=o&63|128):(t[i++]=o>>12|224,t[i++]=o>>6&63|128,t[i++]=o&63|128)}return t},QD=function(e){const t=[];let i=0,a=0;for(;i<e.length;){const o=e[i++];if(o<128)t[a++]=String.fromCharCode(o);else if(o>191&&o<224){const u=e[i++];t[a++]=String.fromCharCode((o&31)<<6|u&63)}else if(o>239&&o<365){const u=e[i++],c=e[i++],d=e[i++],p=((o&7)<<18|(u&63)<<12|(c&63)<<6|d&63)-65536;t[a++]=String.fromCharCode(55296+(p>>10)),t[a++]=String.fromCharCode(56320+(p&1023))}else{const u=e[i++],c=e[i++];t[a++]=String.fromCharCode((o&15)<<12|(u&63)<<6|c&63)}}return t.join("")},WS={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const i=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,a=[];for(let o=0;o<e.length;o+=3){const u=e[o],c=o+1<e.length,d=c?e[o+1]:0,p=o+2<e.length,m=p?e[o+2]:0,g=u>>2,y=(u&3)<<4|d>>4;let v=(d&15)<<2|m>>6,x=m&63;p||(x=64,c||(v=64)),a.push(i[g],i[y],i[v],i[x])}return a.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(QS(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):QD(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const i=t?this.charToByteMapWebSafe_:this.charToByteMap_,a=[];for(let o=0;o<e.length;){const u=i[e.charAt(o++)],d=o<e.length?i[e.charAt(o)]:0;++o;const m=o<e.length?i[e.charAt(o)]:64;++o;const y=o<e.length?i[e.charAt(o)]:64;if(++o,u==null||d==null||m==null||y==null)throw new WD;const v=u<<2|d>>4;if(a.push(v),m!==64){const x=d<<4&240|m>>2;if(a.push(x),y!==64){const A=m<<6&192|y;a.push(A)}}}return a},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class WD extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const ZD=function(e){const t=QS(e);return WS.encodeByteArray(t,!0)},ZS=function(e){return ZD(e).replace(/\./g,"")},$S=function(e){try{return WS.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
|
||
* @license
|
||
* Copyright 2022 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function $D(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
|
||
* @license
|
||
* Copyright 2022 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const JD=()=>$D().__FIREBASE_DEFAULTS__,eN=()=>{if(typeof process>"u"||typeof zv>"u")return;const e=zv.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},tN=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&$S(e[1]);return t&&JSON.parse(t)},Om=()=>{try{return KD()||JD()||eN()||tN()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},nN=e=>{var t,i;return(i=(t=Om())==null?void 0:t.emulatorHosts)==null?void 0:i[e]},JS=()=>{var e;return(e=Om())==null?void 0:e.config},ew=e=>{var t;return(t=Om())==null?void 0:t[`_${e}`]};/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class iN{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,i)=>{this.resolve=t,this.reject=i})}wrapCallback(t){return(i,a)=>{i?this.reject(i):this.resolve(a),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(i):t(i,a))}}}/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function It(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function rN(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(It())}function aN(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function sN(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function oN(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function lN(){const e=It();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function uN(){try{return typeof indexedDB=="object"}catch{return!1}}function cN(){return new Promise((e,t)=>{try{let i=!0;const a="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(a);o.onsuccess=()=>{o.result.close(),i||self.indexedDB.deleteDatabase(a),e(!0)},o.onupgradeneeded=()=>{i=!1},o.onerror=()=>{var u;t(((u=o.error)==null?void 0:u.message)||"")}}catch(i){t(i)}})}/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const fN="FirebaseError";class or extends Error{constructor(t,i,a){super(i),this.code=t,this.customData=a,this.name=fN,Object.setPrototypeOf(this,or.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Co.prototype.create)}}class Co{constructor(t,i,a){this.service=t,this.serviceName=i,this.errors=a}create(t,...i){const a=i[0]||{},o=`${this.service}/${t}`,u=this.errors[t],c=u?dN(u,a):"Error",d=`${this.serviceName}: ${c} (${o}).`;return new or(o,d,a)}}function dN(e,t){return e.replace(hN,(i,a)=>{const o=t[a];return o!=null?String(o):`<${a}?>`})}const hN=/\{\$([^}]+)}/g;function mN(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Xa(e,t){if(e===t)return!0;const i=Object.keys(e),a=Object.keys(t);for(const o of i){if(!a.includes(o))return!1;const u=e[o],c=t[o];if(Lv(u)&&Lv(c)){if(!Xa(u,c))return!1}else if(u!==c)return!1}for(const o of a)if(!i.includes(o))return!1;return!0}function Lv(e){return e!==null&&typeof e=="object"}/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function ko(e){const t=[];for(const[i,a]of Object.entries(e))Array.isArray(a)?a.forEach(o=>{t.push(encodeURIComponent(i)+"="+encodeURIComponent(o))}):t.push(encodeURIComponent(i)+"="+encodeURIComponent(a));return t.length?"&"+t.join("&"):""}function pN(e,t){const i=new gN(e,t);return i.subscribe.bind(i)}class gN{constructor(t,i){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=i,this.task.then(()=>{t(this)}).catch(a=>{this.error(a)})}next(t){this.forEachObserver(i=>{i.next(t)})}error(t){this.forEachObserver(i=>{i.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,i,a){let o;if(t===void 0&&i===void 0&&a===void 0)throw new Error("Missing Observer.");yN(t,["next","error","complete"])?o=t:o={next:t,error:i,complete:a},o.next===void 0&&(o.next=qd),o.error===void 0&&(o.error=qd),o.complete===void 0&&(o.complete=qd);const u=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?o.error(this.finalError):o.complete()}catch{}}),this.observers.push(o),u}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let i=0;i<this.observers.length;i++)this.sendOne(i,t)}sendOne(t,i){this.task.then(()=>{if(this.observers!==void 0&&this.observers[t]!==void 0)try{i(this.observers[t])}catch(a){typeof console<"u"&&console.error&&console.error(a)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function yN(e,t){if(typeof e!="object"||e===null)return!1;for(const i of t)if(i in e&&typeof e[i]=="function")return!0;return!1}function qd(){}/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function lr(e){return e&&e._delegate?e._delegate:e}/**
|
||
* @license
|
||
* Copyright 2025 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function zm(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}async function bN(e){return(await fetch(e,{credentials:"include"})).ok}class Ka{constructor(t,i,a){this.name=t,this.instanceFactory=i,this.type=a,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const Rr="[DEFAULT]";/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class vN{constructor(t,i){this.name=t,this.container=i,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const i=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(i)){const a=new iN;if(this.instancesDeferred.set(i,a),this.isInitialized(i)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:i});o&&a.resolve(o)}catch{}}return this.instancesDeferred.get(i).promise}getImmediate(t){const i=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),a=(t==null?void 0:t.optional)??!1;if(this.isInitialized(i)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:i})}catch(o){if(a)return null;throw o}else{if(a)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(SN(t))try{this.getOrInitializeService({instanceIdentifier:Rr})}catch{}for(const[i,a]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(i);try{const u=this.getOrInitializeService({instanceIdentifier:o});a.resolve(u)}catch{}}}}clearInstance(t=Rr){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(i=>"INTERNAL"in i).map(i=>i.INTERNAL.delete()),...t.filter(i=>"_delete"in i).map(i=>i._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Rr){return this.instances.has(t)}getOptions(t=Rr){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:i={}}=t,a=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(a))throw Error(`${this.name}(${a}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const o=this.getOrInitializeService({instanceIdentifier:a,options:i});for(const[u,c]of this.instancesDeferred.entries()){const d=this.normalizeInstanceIdentifier(u);a===d&&c.resolve(o)}return o}onInit(t,i){const a=this.normalizeInstanceIdentifier(i),o=this.onInitCallbacks.get(a)??new Set;o.add(t),this.onInitCallbacks.set(a,o);const u=this.instances.get(a);return u&&t(u,a),()=>{o.delete(t)}}invokeOnInitCallbacks(t,i){const a=this.onInitCallbacks.get(i);if(a)for(const o of a)try{o(t,i)}catch{}}getOrInitializeService({instanceIdentifier:t,options:i={}}){let a=this.instances.get(t);if(!a&&this.component&&(a=this.component.instanceFactory(this.container,{instanceIdentifier:xN(t),options:i}),this.instances.set(t,a),this.instancesOptions.set(t,i),this.invokeOnInitCallbacks(a,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,a)}catch{}return a||null}normalizeInstanceIdentifier(t=Rr){return this.component?this.component.multipleInstances?t:Rr:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function xN(e){return e===Rr?void 0:e}function SN(e){return e.instantiationMode==="EAGER"}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class wN{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const i=this.getProvider(t.name);if(i.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);i.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const i=new vN(t,this);return this.providers.set(t,i),i}getProviders(){return Array.from(this.providers.values())}}/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/var Qe;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Qe||(Qe={}));const TN={debug:Qe.DEBUG,verbose:Qe.VERBOSE,info:Qe.INFO,warn:Qe.WARN,error:Qe.ERROR,silent:Qe.SILENT},EN=Qe.INFO,AN={[Qe.DEBUG]:"log",[Qe.VERBOSE]:"log",[Qe.INFO]:"info",[Qe.WARN]:"warn",[Qe.ERROR]:"error"},_N=(e,t,...i)=>{if(t<e.logLevel)return;const a=new Date().toISOString(),o=AN[t];if(o)console[o](`[${a}] ${e.name}:`,...i);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class tw{constructor(t){this.name=t,this._logLevel=EN,this._logHandler=_N,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Qe))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?TN[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,Qe.DEBUG,...t),this._logHandler(this,Qe.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Qe.VERBOSE,...t),this._logHandler(this,Qe.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Qe.INFO,...t),this._logHandler(this,Qe.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Qe.WARN,...t),this._logHandler(this,Qe.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Qe.ERROR,...t),this._logHandler(this,Qe.ERROR,...t)}}const CN=(e,t)=>t.some(i=>e instanceof i);let jv,Iv;function kN(){return jv||(jv=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function MN(){return Iv||(Iv=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const nw=new WeakMap,Lh=new WeakMap,iw=new WeakMap,Fd=new WeakMap,Lm=new WeakMap;function DN(e){const t=new Promise((i,a)=>{const o=()=>{e.removeEventListener("success",u),e.removeEventListener("error",c)},u=()=>{i(tr(e.result)),o()},c=()=>{a(e.error),o()};e.addEventListener("success",u),e.addEventListener("error",c)});return t.then(i=>{i instanceof IDBCursor&&nw.set(i,e)}).catch(()=>{}),Lm.set(t,e),t}function NN(e){if(Lh.has(e))return;const t=new Promise((i,a)=>{const o=()=>{e.removeEventListener("complete",u),e.removeEventListener("error",c),e.removeEventListener("abort",c)},u=()=>{i(),o()},c=()=>{a(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",u),e.addEventListener("error",c),e.addEventListener("abort",c)});Lh.set(e,t)}let jh={get(e,t,i){if(e instanceof IDBTransaction){if(t==="done")return Lh.get(e);if(t==="objectStoreNames")return e.objectStoreNames||iw.get(e);if(t==="store")return i.objectStoreNames[1]?void 0:i.objectStore(i.objectStoreNames[0])}return tr(e[t])},set(e,t,i){return e[t]=i,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function RN(e){jh=e(jh)}function ON(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...i){const a=e.call(Gd(this),t,...i);return iw.set(a,t.sort?t.sort():[t]),tr(a)}:MN().includes(e)?function(...t){return e.apply(Gd(this),t),tr(nw.get(this))}:function(...t){return tr(e.apply(Gd(this),t))}}function zN(e){return typeof e=="function"?ON(e):(e instanceof IDBTransaction&&NN(e),CN(e,kN())?new Proxy(e,jh):e)}function tr(e){if(e instanceof IDBRequest)return DN(e);if(Fd.has(e))return Fd.get(e);const t=zN(e);return t!==e&&(Fd.set(e,t),Lm.set(t,e)),t}const Gd=e=>Lm.get(e);function LN(e,t,{blocked:i,upgrade:a,blocking:o,terminated:u}={}){const c=indexedDB.open(e,t),d=tr(c);return a&&c.addEventListener("upgradeneeded",p=>{a(tr(c.result),p.oldVersion,p.newVersion,tr(c.transaction),p)}),i&&c.addEventListener("blocked",p=>i(p.oldVersion,p.newVersion,p)),d.then(p=>{u&&p.addEventListener("close",()=>u()),o&&p.addEventListener("versionchange",m=>o(m.oldVersion,m.newVersion,m))}).catch(()=>{}),d}const jN=["get","getKey","getAll","getAllKeys","count"],IN=["put","add","delete","clear"],Yd=new Map;function Uv(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Yd.get(t))return Yd.get(t);const i=t.replace(/FromIndex$/,""),a=t!==i,o=IN.includes(i);if(!(i in(a?IDBIndex:IDBObjectStore).prototype)||!(o||jN.includes(i)))return;const u=async function(c,...d){const p=this.transaction(c,o?"readwrite":"readonly");let m=p.store;return a&&(m=m.index(d.shift())),(await Promise.all([m[i](...d),o&&p.done]))[0]};return Yd.set(t,u),u}RN(e=>({...e,get:(t,i,a)=>Uv(t,i)||e.get(t,i,a),has:(t,i)=>!!Uv(t,i)||e.has(t,i)}));/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class UN{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(i=>{if(BN(i)){const a=i.getImmediate();return`${a.library}/${a.version}`}else return null}).filter(i=>i).join(" ")}}function BN(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Ih="@firebase/app",Bv="0.14.11";/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const gi=new tw("@firebase/app"),PN="@firebase/app-compat",VN="@firebase/analytics-compat",HN="@firebase/analytics",qN="@firebase/app-check-compat",FN="@firebase/app-check",GN="@firebase/auth",YN="@firebase/auth-compat",XN="@firebase/database",KN="@firebase/data-connect",QN="@firebase/database-compat",WN="@firebase/functions",ZN="@firebase/functions-compat",$N="@firebase/installations",JN="@firebase/installations-compat",eR="@firebase/messaging",tR="@firebase/messaging-compat",nR="@firebase/performance",iR="@firebase/performance-compat",rR="@firebase/remote-config",aR="@firebase/remote-config-compat",sR="@firebase/storage",oR="@firebase/storage-compat",lR="@firebase/firestore",uR="@firebase/ai",cR="@firebase/firestore-compat",fR="firebase",dR="12.12.0";/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const Uh="[DEFAULT]",hR={[Ih]:"fire-core",[PN]:"fire-core-compat",[HN]:"fire-analytics",[VN]:"fire-analytics-compat",[FN]:"fire-app-check",[qN]:"fire-app-check-compat",[GN]:"fire-auth",[YN]:"fire-auth-compat",[XN]:"fire-rtdb",[KN]:"fire-data-connect",[QN]:"fire-rtdb-compat",[WN]:"fire-fn",[ZN]:"fire-fn-compat",[$N]:"fire-iid",[JN]:"fire-iid-compat",[eR]:"fire-fcm",[tR]:"fire-fcm-compat",[nR]:"fire-perf",[iR]:"fire-perf-compat",[rR]:"fire-rc",[aR]:"fire-rc-compat",[sR]:"fire-gcs",[oR]:"fire-gcs-compat",[lR]:"fire-fst",[cR]:"fire-fst-compat",[uR]:"fire-vertex","fire-js":"fire-js",[fR]:"fire-js-all"};/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const Lu=new Map,mR=new Map,Bh=new Map;function Pv(e,t){try{e.container.addComponent(t)}catch(i){gi.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,i)}}function bo(e){const t=e.name;if(Bh.has(t))return gi.debug(`There were multiple attempts to register component ${t}.`),!1;Bh.set(t,e);for(const i of Lu.values())Pv(i,e);for(const i of mR.values())Pv(i,e);return!0}function rw(e,t){const i=e.container.getProvider("heartbeat").getImmediate({optional:!0});return i&&i.triggerHeartbeat(),e.container.getProvider(t)}function Pn(e){return e==null?!1:e.settings!==void 0}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const pR={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},nr=new Co("app","Firebase",pR);/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class gR{constructor(t,i,a){this._isDeleted=!1,this._options={...t},this._config={...i},this._name=i.name,this._automaticDataCollectionEnabled=i.automaticDataCollectionEnabled,this._container=a,this.container.addComponent(new Ka("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw nr.create("app-deleted",{appName:this._name})}}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const Mo=dR;function aw(e,t={}){let i=e;typeof t!="object"&&(t={name:t});const a={name:Uh,automaticDataCollectionEnabled:!0,...t},o=a.name;if(typeof o!="string"||!o)throw nr.create("bad-app-name",{appName:String(o)});if(i||(i=JS()),!i)throw nr.create("no-options");const u=Lu.get(o);if(u){if(Xa(i,u.options)&&Xa(a,u.config))return u;throw nr.create("duplicate-app",{appName:o})}const c=new wN(o);for(const p of Bh.values())c.addComponent(p);const d=new gR(i,a,c);return Lu.set(o,d),d}function yR(e=Uh){const t=Lu.get(e);if(!t&&e===Uh&&JS())return aw();if(!t)throw nr.create("no-app",{appName:e});return t}function Ba(e,t,i){let a=hR[e]??e;i&&(a+=`-${i}`);const o=a.match(/\s|\//),u=t.match(/\s|\//);if(o||u){const c=[`Unable to register library "${a}" with version "${t}":`];o&&c.push(`library name "${a}" contains illegal characters (whitespace or "/")`),o&&u&&c.push("and"),u&&c.push(`version name "${t}" contains illegal characters (whitespace or "/")`),gi.warn(c.join(" "));return}bo(new Ka(`${a}-version`,()=>({library:a,version:t}),"VERSION"))}/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const bR="firebase-heartbeat-database",vR=1,vo="firebase-heartbeat-store";let Xd=null;function sw(){return Xd||(Xd=LN(bR,vR,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(vo)}catch(i){console.warn(i)}}}}).catch(e=>{throw nr.create("idb-open",{originalErrorMessage:e.message})})),Xd}async function xR(e){try{const i=(await sw()).transaction(vo),a=await i.objectStore(vo).get(ow(e));return await i.done,a}catch(t){if(t instanceof or)gi.warn(t.message);else{const i=nr.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});gi.warn(i.message)}}}async function Vv(e,t){try{const a=(await sw()).transaction(vo,"readwrite");await a.objectStore(vo).put(t,ow(e)),await a.done}catch(i){if(i instanceof or)gi.warn(i.message);else{const a=nr.create("idb-set",{originalErrorMessage:i==null?void 0:i.message});gi.warn(a.message)}}}function ow(e){return`${e.name}!${e.options.appId}`}/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const SR=1024,wR=30;class TR{constructor(t){this.container=t,this._heartbeatsCache=null;const i=this.container.getProvider("app").getImmediate();this._storage=new AR(i),this._heartbeatsCachePromise=this._storage.read().then(a=>(this._heartbeatsCache=a,a))}async triggerHeartbeat(){var t,i;try{const o=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),u=Hv();if(((t=this._heartbeatsCache)==null?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((i=this._heartbeatsCache)==null?void 0:i.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===u||this._heartbeatsCache.heartbeats.some(c=>c.date===u))return;if(this._heartbeatsCache.heartbeats.push({date:u,agent:o}),this._heartbeatsCache.heartbeats.length>wR){const c=_R(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(c,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(a){gi.warn(a)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)==null?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const i=Hv(),{heartbeatsToSend:a,unsentEntries:o}=ER(this._heartbeatsCache.heartbeats),u=ZS(JSON.stringify({version:2,heartbeats:a}));return this._heartbeatsCache.lastSentHeartbeatDate=i,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),u}catch(i){return gi.warn(i),""}}}function Hv(){return new Date().toISOString().substring(0,10)}function ER(e,t=SR){const i=[];let a=e.slice();for(const o of e){const u=i.find(c=>c.agent===o.agent);if(u){if(u.dates.push(o.date),qv(i)>t){u.dates.pop();break}}else if(i.push({agent:o.agent,dates:[o.date]}),qv(i)>t){i.pop();break}a=a.slice(1)}return{heartbeatsToSend:i,unsentEntries:a}}class AR{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return uN()?cN().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const i=await xR(this.app);return i!=null&&i.heartbeats?i:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){if(await this._canUseIndexedDBPromise){const a=await this.read();return Vv(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??a.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){if(await this._canUseIndexedDBPromise){const a=await this.read();return Vv(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??a.lastSentHeartbeatDate,heartbeats:[...a.heartbeats,...t.heartbeats]})}else return}}function qv(e){return ZS(JSON.stringify({version:2,heartbeats:e})).length}function _R(e){if(e.length===0)return-1;let t=0,i=e[0].date;for(let a=1;a<e.length;a++)e[a].date<i&&(i=e[a].date,t=a);return t}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function CR(e){bo(new Ka("platform-logger",t=>new UN(t),"PRIVATE")),bo(new Ka("heartbeat",t=>new TR(t),"PRIVATE")),Ba(Ih,Bv,e),Ba(Ih,Bv,"esm2020"),Ba("fire-js","")}CR("");function lw(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const kR=lw,uw=new Co("auth","Firebase",lw());/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const ju=new tw("@firebase/auth");function MR(e,...t){ju.logLevel<=Qe.WARN&&ju.warn(`Auth (${Mo}): ${e}`,...t)}function xu(e,...t){ju.logLevel<=Qe.ERROR&&ju.error(`Auth (${Mo}): ${e}`,...t)}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Gn(e,...t){throw Im(e,...t)}function Dn(e,...t){return Im(e,...t)}function jm(e,t,i){const a={...kR(),[t]:i};return new Co("auth","Firebase",a).create(t,{appName:e.name})}function Br(e){return jm(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function DR(e,t,i){const a=i;if(!(t instanceof a))throw a.name!==t.constructor.name&&Gn(e,"argument-error"),jm(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function Im(e,...t){if(typeof e!="string"){const i=t[0],a=[...t.slice(1)];return a[0]&&(a[0].appName=e.name),e._errorFactory.create(i,...a)}return uw.create(e,...t)}function Te(e,t,...i){if(!e)throw Im(t,...i)}function mi(e){const t="INTERNAL ASSERTION FAILED: "+e;throw xu(t),new Error(t)}function yi(e,t){e||mi(t)}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Ph(){var e;return typeof self<"u"&&((e=self.location)==null?void 0:e.href)||""}function NR(){return Fv()==="http:"||Fv()==="https:"}function Fv(){var e;return typeof self<"u"&&((e=self.location)==null?void 0:e.protocol)||null}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function RR(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(NR()||sN()||"connection"in navigator)?navigator.onLine:!0}function OR(){if(typeof navigator>"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class Do{constructor(t,i){this.shortDelay=t,this.longDelay=i,yi(i>t,"Short delay should be less than long delay!"),this.isMobile=rN()||oN()}get(){return RR()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Um(e,t){yi(e.emulator,"Emulator should always be set here");const{url:i}=e.emulator;return t?`${i}${t.startsWith("/")?t.slice(1):t}`:i}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class cw{static initialize(t,i,a){this.fetchImpl=t,i&&(this.headersImpl=i),a&&(this.responseImpl=a)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;mi("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;mi("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;mi("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const zR={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const LR=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],jR=new Do(3e4,6e4);function Bm(e,t){return e.tenantId&&!t.tenantId?{...t,tenantId:e.tenantId}:t}async function Ja(e,t,i,a,o={}){return fw(e,o,async()=>{let u={},c={};a&&(t==="GET"?c=a:u={body:JSON.stringify(a)});const d=ko({key:e.config.apiKey,...c}).slice(1),p=await e._getAdditionalHeaders();p["Content-Type"]="application/json",e.languageCode&&(p["X-Firebase-Locale"]=e.languageCode);const m={method:t,headers:p,...u};return aN()||(m.referrerPolicy="no-referrer"),e.emulatorConfig&&zm(e.emulatorConfig.host)&&(m.credentials="include"),cw.fetch()(await dw(e,e.config.apiHost,i,d),m)})}async function fw(e,t,i){e._canInitEmulator=!1;const a={...zR,...t};try{const o=new UR(e),u=await Promise.race([i(),o.promise]);o.clearNetworkTimeout();const c=await u.json();if("needConfirmation"in c)throw ru(e,"account-exists-with-different-credential",c);if(u.ok&&!("errorMessage"in c))return c;{const d=u.ok?c.errorMessage:c.error.message,[p,m]=d.split(" : ");if(p==="FEDERATED_USER_ID_ALREADY_LINKED")throw ru(e,"credential-already-in-use",c);if(p==="EMAIL_EXISTS")throw ru(e,"email-already-in-use",c);if(p==="USER_DISABLED")throw ru(e,"user-disabled",c);const g=a[p]||p.toLowerCase().replace(/[_\s]+/g,"-");if(m)throw jm(e,g,m);Gn(e,g)}}catch(o){if(o instanceof or)throw o;Gn(e,"network-request-failed",{message:String(o)})}}async function IR(e,t,i,a,o={}){const u=await Ja(e,t,i,a,o);return"mfaPendingCredential"in u&&Gn(e,"multi-factor-auth-required",{_serverResponse:u}),u}async function dw(e,t,i,a){const o=`${t}${i}?${a}`,u=e,c=u.config.emulator?Um(e.config,o):`${e.config.apiScheme}://${o}`;return LR.includes(i)&&(await u._persistenceManagerAvailable,u._getPersistenceType()==="COOKIE")?u._getPersistence()._getFinalTarget(c).toString():c}class UR{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((i,a)=>{this.timer=setTimeout(()=>a(Dn(this.auth,"network-request-failed")),jR.get())})}}function ru(e,t,i){const a={appName:e.name};i.email&&(a.email=i.email),i.phoneNumber&&(a.phoneNumber=i.phoneNumber);const o=Dn(e,t,a);return o.customData._tokenResponse=i,o}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/async function BR(e,t){return Ja(e,"POST","/v1/accounts:delete",t)}async function Iu(e,t){return Ja(e,"POST","/v1/accounts:lookup",t)}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function uo(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function PR(e,t=!1){const i=lr(e),a=await i.getIdToken(t),o=Pm(a);Te(o&&o.exp&&o.auth_time&&o.iat,i.auth,"internal-error");const u=typeof o.firebase=="object"?o.firebase:void 0,c=u==null?void 0:u.sign_in_provider;return{claims:o,token:a,authTime:uo(Kd(o.auth_time)),issuedAtTime:uo(Kd(o.iat)),expirationTime:uo(Kd(o.exp)),signInProvider:c||null,signInSecondFactor:(u==null?void 0:u.sign_in_second_factor)||null}}function Kd(e){return Number(e)*1e3}function Pm(e){const[t,i,a]=e.split(".");if(t===void 0||i===void 0||a===void 0)return xu("JWT malformed, contained fewer than 3 sections"),null;try{const o=$S(i);return o?JSON.parse(o):(xu("Failed to decode base64 JWT payload"),null)}catch(o){return xu("Caught error parsing JWT payload as JSON",o==null?void 0:o.toString()),null}}function Gv(e){const t=Pm(e);return Te(t,"internal-error"),Te(typeof t.exp<"u","internal-error"),Te(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/async function xo(e,t,i=!1){if(i)return t;try{return await t}catch(a){throw a instanceof or&&VR(a)&&e.auth.currentUser===e&&await e.auth.signOut(),a}}function VR({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class HR{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){if(t){const i=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),i}else{this.errorBackoff=3e4;const a=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,a)}}schedule(t=!1){if(!this.isRunning)return;const i=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},i)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){(t==null?void 0:t.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class Vh{constructor(t,i){this.createdAt=t,this.lastLoginAt=i,this._initializeTime()}_initializeTime(){this.lastSignInTime=uo(this.lastLoginAt),this.creationTime=uo(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/async function Uu(e){var y;const t=e.auth,i=await e.getIdToken(),a=await xo(e,Iu(t,{idToken:i}));Te(a==null?void 0:a.users.length,t,"internal-error");const o=a.users[0];e._notifyReloadListener(o);const u=(y=o.providerUserInfo)!=null&&y.length?hw(o.providerUserInfo):[],c=FR(e.providerData,u),d=e.isAnonymous,p=!(e.email&&o.passwordHash)&&!(c!=null&&c.length),m=d?p:!1,g={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:c,metadata:new Vh(o.createdAt,o.lastLoginAt),isAnonymous:m};Object.assign(e,g)}async function qR(e){const t=lr(e);await Uu(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function FR(e,t){return[...e.filter(a=>!t.some(o=>o.providerId===a.providerId)),...t]}function hw(e){return e.map(({providerId:t,...i})=>({providerId:t,uid:i.rawId||"",displayName:i.displayName||null,email:i.email||null,phoneNumber:i.phoneNumber||null,photoURL:i.photoUrl||null}))}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/async function GR(e,t){const i=await fw(e,{},async()=>{const a=ko({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:o,apiKey:u}=e.config,c=await dw(e,o,"/v1/token",`key=${u}`),d=await e._getAdditionalHeaders();d["Content-Type"]="application/x-www-form-urlencoded";const p={method:"POST",headers:d,body:a};return e.emulatorConfig&&zm(e.emulatorConfig.host)&&(p.credentials="include"),cw.fetch()(c,p)});return{accessToken:i.access_token,expiresIn:i.expires_in,refreshToken:i.refresh_token}}async function YR(e,t){return Ja(e,"POST","/v2/accounts:revokeToken",Bm(e,t))}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class Pa{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){Te(t.idToken,"internal-error"),Te(typeof t.idToken<"u","internal-error"),Te(typeof t.refreshToken<"u","internal-error");const i="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):Gv(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,i)}updateFromIdToken(t){Te(t.length!==0,"internal-error");const i=Gv(t);this.updateTokensAndExpiration(t,null,i)}async getToken(t,i=!1){return!i&&this.accessToken&&!this.isExpired?this.accessToken:(Te(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,i){const{accessToken:a,refreshToken:o,expiresIn:u}=await GR(t,i);this.updateTokensAndExpiration(a,o,Number(u))}updateTokensAndExpiration(t,i,a){this.refreshToken=i||null,this.accessToken=t||null,this.expirationTime=Date.now()+a*1e3}static fromJSON(t,i){const{refreshToken:a,accessToken:o,expirationTime:u}=i,c=new Pa;return a&&(Te(typeof a=="string","internal-error",{appName:t}),c.refreshToken=a),o&&(Te(typeof o=="string","internal-error",{appName:t}),c.accessToken=o),u&&(Te(typeof u=="number","internal-error",{appName:t}),c.expirationTime=u),c}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new Pa,this.toJSON())}_performRefresh(){return mi("not implemented")}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Fi(e,t){Te(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class kn{constructor({uid:t,auth:i,stsTokenManager:a,...o}){this.providerId="firebase",this.proactiveRefresh=new HR(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=i,this.stsTokenManager=a,this.accessToken=a.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new Vh(o.createdAt||void 0,o.lastLoginAt||void 0)}async getIdToken(t){const i=await xo(this,this.stsTokenManager.getToken(this.auth,t));return Te(i,this.auth,"internal-error"),this.accessToken!==i&&(this.accessToken=i,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),i}getIdTokenResult(t){return PR(this,t)}reload(){return qR(this)}_assign(t){this!==t&&(Te(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(i=>({...i})),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const i=new kn({...this,auth:t,stsTokenManager:this.stsTokenManager._clone()});return i.metadata._copy(this.metadata),i}_onReload(t){Te(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,i=!1){let a=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),a=!0),i&&await Uu(this),await this.auth._persistUserIfCurrent(this),a&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Pn(this.auth.app))return Promise.reject(Br(this.auth));const t=await this.getIdToken();return await xo(this,BR(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>({...t})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,i){const a=i.displayName??void 0,o=i.email??void 0,u=i.phoneNumber??void 0,c=i.photoURL??void 0,d=i.tenantId??void 0,p=i._redirectEventId??void 0,m=i.createdAt??void 0,g=i.lastLoginAt??void 0,{uid:y,emailVerified:v,isAnonymous:x,providerData:A,stsTokenManager:M}=i;Te(y&&M,t,"internal-error");const N=Pa.fromJSON(this.name,M);Te(typeof y=="string",t,"internal-error"),Fi(a,t.name),Fi(o,t.name),Te(typeof v=="boolean",t,"internal-error"),Te(typeof x=="boolean",t,"internal-error"),Fi(u,t.name),Fi(c,t.name),Fi(d,t.name),Fi(p,t.name),Fi(m,t.name),Fi(g,t.name);const C=new kn({uid:y,auth:t,email:o,emailVerified:v,displayName:a,isAnonymous:x,photoURL:c,phoneNumber:u,tenantId:d,stsTokenManager:N,createdAt:m,lastLoginAt:g});return A&&Array.isArray(A)&&(C.providerData=A.map(V=>({...V}))),p&&(C._redirectEventId=p),C}static async _fromIdTokenResponse(t,i,a=!1){const o=new Pa;o.updateFromServerResponse(i);const u=new kn({uid:i.localId,auth:t,stsTokenManager:o,isAnonymous:a});return await Uu(u),u}static async _fromGetAccountInfoResponse(t,i,a){const o=i.users[0];Te(o.localId!==void 0,"internal-error");const u=o.providerUserInfo!==void 0?hw(o.providerUserInfo):[],c=!(o.email&&o.passwordHash)&&!(u!=null&&u.length),d=new Pa;d.updateFromIdToken(a);const p=new kn({uid:o.localId,auth:t,stsTokenManager:d,isAnonymous:c}),m={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:u,metadata:new Vh(o.createdAt,o.lastLoginAt),isAnonymous:!(o.email&&o.passwordHash)&&!(u!=null&&u.length)};return Object.assign(p,m),p}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const Yv=new Map;function pi(e){yi(e instanceof Function,"Expected a class definition");let t=Yv.get(e);return t?(yi(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,Yv.set(e,t),t)}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class mw{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,i){this.storage[t]=i}async _get(t){const i=this.storage[t];return i===void 0?null:i}async _remove(t){delete this.storage[t]}_addListener(t,i){}_removeListener(t,i){}}mw.type="NONE";const Xv=mw;/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Su(e,t,i){return`firebase:${e}:${t}:${i}`}class Va{constructor(t,i,a){this.persistence=t,this.auth=i,this.userKey=a;const{config:o,name:u}=this.auth;this.fullUserKey=Su(this.userKey,o.apiKey,u),this.fullPersistenceKey=Su("persistence",o.apiKey,u),this.boundEventHandler=i._onStorageEvent.bind(i),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);if(!t)return null;if(typeof t=="string"){const i=await Iu(this.auth,{idToken:t}).catch(()=>{});return i?kn._fromGetAccountInfoResponse(this.auth,i,t):null}return kn._fromJSON(this.auth,t)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const i=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,i)return this.setCurrentUser(i)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,i,a="authUser"){if(!i.length)return new Va(pi(Xv),t,a);const o=(await Promise.all(i.map(async m=>{if(await m._isAvailable())return m}))).filter(m=>m);let u=o[0]||pi(Xv);const c=Su(a,t.config.apiKey,t.name);let d=null;for(const m of i)try{const g=await m._get(c);if(g){let y;if(typeof g=="string"){const v=await Iu(t,{idToken:g}).catch(()=>{});if(!v)break;y=await kn._fromGetAccountInfoResponse(t,v,g)}else y=kn._fromJSON(t,g);m!==u&&(d=y),u=m;break}}catch{}const p=o.filter(m=>m._shouldAllowMigration);return!u._shouldAllowMigration||!p.length?new Va(u,t,a):(u=p[0],d&&await u._set(c,d.toJSON()),await Promise.all(i.map(async m=>{if(m!==u)try{await m._remove(c)}catch{}})),new Va(u,t,a))}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Kv(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(bw(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(pw(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(xw(t))return"Blackberry";if(Sw(t))return"Webos";if(gw(t))return"Safari";if((t.includes("chrome/")||yw(t))&&!t.includes("edge/"))return"Chrome";if(vw(t))return"Android";{const i=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,a=e.match(i);if((a==null?void 0:a.length)===2)return a[1]}return"Other"}function pw(e=It()){return/firefox\//i.test(e)}function gw(e=It()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function yw(e=It()){return/crios\//i.test(e)}function bw(e=It()){return/iemobile/i.test(e)}function vw(e=It()){return/android/i.test(e)}function xw(e=It()){return/blackberry/i.test(e)}function Sw(e=It()){return/webos/i.test(e)}function Vm(e=It()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function XR(e=It()){var t;return Vm(e)&&!!((t=window.navigator)!=null&&t.standalone)}function KR(){return lN()&&document.documentMode===10}function ww(e=It()){return Vm(e)||vw(e)||Sw(e)||xw(e)||/windows phone/i.test(e)||bw(e)}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Tw(e,t=[]){let i;switch(e){case"Browser":i=Kv(It());break;case"Worker":i=`${Kv(It())}-${e}`;break;default:i=e}const a=t.length?t.join(","):"FirebaseCore-web";return`${i}/JsCore/${Mo}/${a}`}/**
|
||
* @license
|
||
* Copyright 2022 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class QR{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,i){const a=u=>new Promise((c,d)=>{try{const p=t(u);c(p)}catch(p){d(p)}});a.onAbort=i,this.queue.push(a);const o=this.queue.length-1;return()=>{this.queue[o]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const i=[];try{for(const a of this.queue)await a(t),a.onAbort&&i.push(a.onAbort)}catch(a){i.reverse();for(const o of i)try{o()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:a==null?void 0:a.message})}}}/**
|
||
* @license
|
||
* Copyright 2023 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/async function WR(e,t={}){return Ja(e,"GET","/v2/passwordPolicy",Bm(e,t))}/**
|
||
* @license
|
||
* Copyright 2023 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const ZR=6;class $R{constructor(t){var a;const i=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=i.minPasswordLength??ZR,i.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=i.maxPasswordLength),i.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=i.containsLowercaseCharacter),i.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=i.containsUppercaseCharacter),i.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=i.containsNumericCharacter),i.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=i.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=((a=t.allowedNonAlphanumericCharacters)==null?void 0:a.join(""))??"",this.forceUpgradeOnSignin=t.forceUpgradeOnSignin??!1,this.schemaVersion=t.schemaVersion}validatePassword(t){const i={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,i),this.validatePasswordCharacterOptions(t,i),i.isValid&&(i.isValid=i.meetsMinPasswordLength??!0),i.isValid&&(i.isValid=i.meetsMaxPasswordLength??!0),i.isValid&&(i.isValid=i.containsLowercaseLetter??!0),i.isValid&&(i.isValid=i.containsUppercaseLetter??!0),i.isValid&&(i.isValid=i.containsNumericCharacter??!0),i.isValid&&(i.isValid=i.containsNonAlphanumericCharacter??!0),i}validatePasswordLengthOptions(t,i){const a=this.customStrengthOptions.minPasswordLength,o=this.customStrengthOptions.maxPasswordLength;a&&(i.meetsMinPasswordLength=t.length>=a),o&&(i.meetsMaxPasswordLength=t.length<=o)}validatePasswordCharacterOptions(t,i){this.updatePasswordCharacterOptionsStatuses(i,!1,!1,!1,!1);let a;for(let o=0;o<t.length;o++)a=t.charAt(o),this.updatePasswordCharacterOptionsStatuses(i,a>="a"&&a<="z",a>="A"&&a<="Z",a>="0"&&a<="9",this.allowedNonAlphanumericCharacters.includes(a))}updatePasswordCharacterOptionsStatuses(t,i,a,o,u){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=i)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=a)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=o)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=u))}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class JR{constructor(t,i,a,o){this.app=t,this.heartbeatServiceProvider=i,this.appCheckServiceProvider=a,this.config=o,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Qv(this),this.idTokenSubscription=new Qv(this),this.beforeStateQueue=new QR(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=uw,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=o.sdkClientVersion,this._persistenceManagerAvailable=new Promise(u=>this._resolvePersistenceManagerAvailable=u)}_initializeWithPersistence(t,i){return i&&(this._popupRedirectResolver=pi(i)),this._initializationPromise=this.queue(async()=>{var a,o,u;if(!this._deleted&&(this.persistenceManager=await Va.create(this,t),(a=this._resolvePersistenceManagerAvailable)==null||a.call(this),!this._deleted)){if((o=this._popupRedirectResolver)!=null&&o._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(i),this.lastNotifiedUid=((u=this.currentUser)==null?void 0:u.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const i=await Iu(this,{idToken:t}),a=await kn._fromGetAccountInfoResponse(this,i,t);await this.directlySetCurrentUser(a)}catch(i){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",i),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){var u;if(Pn(this.app)){const c=this.app.settings.authIdToken;return c?new Promise(d=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(c).then(d,d))}):this.directlySetCurrentUser(null)}const i=await this.assertedPersistence.getCurrentUser();let a=i,o=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const c=(u=this.redirectUser)==null?void 0:u._redirectEventId,d=a==null?void 0:a._redirectEventId,p=await this.tryRedirectSignIn(t);(!c||c===d)&&(p!=null&&p.user)&&(a=p.user,o=!0)}if(!a)return this.directlySetCurrentUser(null);if(!a._redirectEventId){if(o)try{await this.beforeStateQueue.runMiddleware(a)}catch(c){a=i,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(c))}return a?this.reloadAndSetCurrentUserOrClear(a):this.directlySetCurrentUser(null)}return Te(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===a._redirectEventId?this.directlySetCurrentUser(a):this.reloadAndSetCurrentUserOrClear(a)}async tryRedirectSignIn(t){let i=null;try{i=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return i}async reloadAndSetCurrentUserOrClear(t){try{await Uu(t)}catch(i){if((i==null?void 0:i.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=OR()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(Pn(this.app))return Promise.reject(Br(this));const i=t?lr(t):null;return i&&Te(i.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(i&&i._clone(this))}async _updateCurrentUser(t,i=!1){if(!this._deleted)return t&&Te(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),i||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return Pn(this.app)?Promise.reject(Br(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return Pn(this.app)?Promise.reject(Br(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(pi(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const i=this._getPasswordPolicyInternal();return i.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):i.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await WR(this),i=new $R(t);this.tenantId===null?this._projectPasswordPolicy=i:this._tenantPasswordPolicies[this.tenantId]=i}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(t){this._errorFactory=new Co("auth","Firebase",t())}onAuthStateChanged(t,i,a){return this.registerStateListener(this.authStateSubscription,t,i,a)}beforeAuthStateChanged(t,i){return this.beforeStateQueue.pushCallback(t,i)}onIdTokenChanged(t,i,a){return this.registerStateListener(this.idTokenSubscription,t,i,a)}authStateReady(){return new Promise((t,i)=>{if(this.currentUser)t();else{const a=this.onAuthStateChanged(()=>{a(),t()},i)}})}async revokeAccessToken(t){if(this.currentUser){const i=await this.currentUser.getIdToken(),a={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:i};this.tenantId!=null&&(a.tenantId=this.tenantId),await YR(this,a)}}toJSON(){var t;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(t=this._currentUser)==null?void 0:t.toJSON()}}async _setRedirectUser(t,i){const a=await this.getOrInitRedirectPersistenceManager(i);return t===null?a.removeCurrentUser():a.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const i=t&&pi(t)||this._popupRedirectResolver;Te(i,this,"argument-error"),this.redirectPersistenceManager=await Va.create(this,[pi(i._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){var i,a;return this._isInitialized&&await this.queue(async()=>{}),((i=this._currentUser)==null?void 0:i._redirectEventId)===t?this._currentUser:((a=this.redirectUser)==null?void 0:a._redirectEventId)===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var i;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const t=((i=this.currentUser)==null?void 0:i.uid)??null;this.lastNotifiedUid!==t&&(this.lastNotifiedUid=t,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,i,a,o){if(this._deleted)return()=>{};const u=typeof i=="function"?i:i.next.bind(i);let c=!1;const d=this._isInitialized?Promise.resolve():this._initializationPromise;if(Te(d,this,"internal-error"),d.then(()=>{c||u(this.currentUser)}),typeof i=="function"){const p=t.addObserver(i,a,o);return()=>{c=!0,p()}}else{const p=t.addObserver(i);return()=>{c=!0,p()}}}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return Te(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=Tw(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var o;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const i=await((o=this.heartbeatServiceProvider.getImmediate({optional:!0}))==null?void 0:o.getHeartbeatsHeader());i&&(t["X-Firebase-Client"]=i);const a=await this._getAppCheckToken();return a&&(t["X-Firebase-AppCheck"]=a),t}async _getAppCheckToken(){var i;if(Pn(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const t=await((i=this.appCheckServiceProvider.getImmediate({optional:!0}))==null?void 0:i.getToken());return t!=null&&t.error&&MR(`Error while retrieving App Check token: ${t.error}`),t==null?void 0:t.token}}function Zu(e){return lr(e)}class Qv{constructor(t){this.auth=t,this.observer=null,this.addObserver=pN(i=>this.observer=i)}get next(){return Te(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/let Hm={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function eO(e){Hm=e}function tO(e){return Hm.loadJS(e)}function nO(){return Hm.gapiScript}function iO(e){return`__${e}${Math.floor(Math.random()*1e6)}`}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function rO(e,t){const i=rw(e,"auth");if(i.isInitialized()){const o=i.getImmediate(),u=i.getOptions();if(Xa(u,t??{}))return o;Gn(o,"already-initialized")}return i.initialize({options:t})}function aO(e,t){const i=(t==null?void 0:t.persistence)||[],a=(Array.isArray(i)?i:[i]).map(pi);t!=null&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(a,t==null?void 0:t.popupRedirectResolver)}function sO(e,t,i){const a=Zu(e);Te(/^https?:\/\//.test(t),a,"invalid-emulator-scheme");const o=!1,u=Ew(t),{host:c,port:d}=oO(t),p=d===null?"":`:${d}`,m={url:`${u}//${c}${p}/`},g=Object.freeze({host:c,port:d,protocol:u.replace(":",""),options:Object.freeze({disableWarnings:o})});if(!a._canInitEmulator){Te(a.config.emulator&&a.emulatorConfig,a,"emulator-config-failed"),Te(Xa(m,a.config.emulator)&&Xa(g,a.emulatorConfig),a,"emulator-config-failed");return}a.config.emulator=m,a.emulatorConfig=g,a.settings.appVerificationDisabledForTesting=!0,zm(c)?bN(`${u}//${c}${p}`):lO()}function Ew(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function oO(e){const t=Ew(e),i=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!i)return{host:"",port:null};const a=i[2].split("@").pop()||"",o=/^(\[[^\]]+\])(:|$)/.exec(a);if(o){const u=o[1];return{host:u,port:Wv(a.substr(u.length+1))}}else{const[u,c]=a.split(":");return{host:u,port:Wv(c)}}}function Wv(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function lO(){function e(){const t=document.createElement("p"),i=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",i.position="fixed",i.width="100%",i.backgroundColor="#ffffff",i.border=".1em solid #000000",i.color="#b50000",i.bottom="0px",i.left="0px",i.margin="0px",i.zIndex="10000",i.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class Aw{constructor(t,i){this.providerId=t,this.signInMethod=i}toJSON(){return mi("not implemented")}_getIdTokenResponse(t){return mi("not implemented")}_linkToIdToken(t,i){return mi("not implemented")}_getReauthenticationResolver(t){return mi("not implemented")}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/async function Ha(e,t){return IR(e,"POST","/v1/accounts:signInWithIdp",Bm(e,t))}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const uO="http://localhost";class Pr extends Aw{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const i=new Pr(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(i.idToken=t.idToken),t.accessToken&&(i.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(i.nonce=t.nonce),t.pendingToken&&(i.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(i.accessToken=t.oauthToken,i.secret=t.oauthTokenSecret):Gn("argument-error"),i}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const i=typeof t=="string"?JSON.parse(t):t,{providerId:a,signInMethod:o,...u}=i;if(!a||!o)return null;const c=new Pr(a,o);return c.idToken=u.idToken||void 0,c.accessToken=u.accessToken||void 0,c.secret=u.secret,c.nonce=u.nonce,c.pendingToken=u.pendingToken||null,c}_getIdTokenResponse(t){const i=this.buildRequest();return Ha(t,i)}_linkToIdToken(t,i){const a=this.buildRequest();return a.idToken=i,Ha(t,a)}_getReauthenticationResolver(t){const i=this.buildRequest();return i.autoCreate=!1,Ha(t,i)}buildRequest(){const t={requestUri:uO,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const i={};this.idToken&&(i.id_token=this.idToken),this.accessToken&&(i.access_token=this.accessToken),this.secret&&(i.oauth_token_secret=this.secret),i.providerId=this.providerId,this.nonce&&!this.pendingToken&&(i.nonce=this.nonce),t.postBody=ko(i)}return t}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class qm{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class No extends qm{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class Zi extends No{constructor(){super("facebook.com")}static credential(t){return Pr._fromParams({providerId:Zi.PROVIDER_ID,signInMethod:Zi.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return Zi.credentialFromTaggedObject(t)}static credentialFromError(t){return Zi.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return Zi.credential(t.oauthAccessToken)}catch{return null}}}Zi.FACEBOOK_SIGN_IN_METHOD="facebook.com";Zi.PROVIDER_ID="facebook.com";/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class hi extends No{constructor(){super("google.com"),this.addScope("profile")}static credential(t,i){return Pr._fromParams({providerId:hi.PROVIDER_ID,signInMethod:hi.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:i})}static credentialFromResult(t){return hi.credentialFromTaggedObject(t)}static credentialFromError(t){return hi.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:i,oauthAccessToken:a}=t;if(!i&&!a)return null;try{return hi.credential(i,a)}catch{return null}}}hi.GOOGLE_SIGN_IN_METHOD="google.com";hi.PROVIDER_ID="google.com";/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class $i extends No{constructor(){super("github.com")}static credential(t){return Pr._fromParams({providerId:$i.PROVIDER_ID,signInMethod:$i.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return $i.credentialFromTaggedObject(t)}static credentialFromError(t){return $i.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return $i.credential(t.oauthAccessToken)}catch{return null}}}$i.GITHUB_SIGN_IN_METHOD="github.com";$i.PROVIDER_ID="github.com";/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class Ji extends No{constructor(){super("twitter.com")}static credential(t,i){return Pr._fromParams({providerId:Ji.PROVIDER_ID,signInMethod:Ji.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:i})}static credentialFromResult(t){return Ji.credentialFromTaggedObject(t)}static credentialFromError(t){return Ji.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:i,oauthTokenSecret:a}=t;if(!i||!a)return null;try{return Ji.credential(i,a)}catch{return null}}}Ji.TWITTER_SIGN_IN_METHOD="twitter.com";Ji.PROVIDER_ID="twitter.com";/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class Qa{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,i,a,o=!1){const u=await kn._fromIdTokenResponse(t,a,o),c=Zv(a);return new Qa({user:u,providerId:c,_tokenResponse:a,operationType:i})}static async _forOperation(t,i,a){await t._updateTokensIfNecessary(a,!0);const o=Zv(a);return new Qa({user:t,providerId:o,_tokenResponse:a,operationType:i})}}function Zv(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class Bu extends or{constructor(t,i,a,o){super(i.code,i.message),this.operationType=a,this.user=o,Object.setPrototypeOf(this,Bu.prototype),this.customData={appName:t.name,tenantId:t.tenantId??void 0,_serverResponse:i.customData._serverResponse,operationType:a}}static _fromErrorAndOperation(t,i,a,o){return new Bu(t,i,a,o)}}function _w(e,t,i,a){return(t==="reauthenticate"?i._getReauthenticationResolver(e):i._getIdTokenResponse(e)).catch(u=>{throw u.code==="auth/multi-factor-auth-required"?Bu._fromErrorAndOperation(e,u,t,a):u})}async function cO(e,t,i=!1){const a=await xo(e,t._linkToIdToken(e.auth,await e.getIdToken()),i);return Qa._forOperation(e,"link",a)}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/async function fO(e,t,i=!1){const{auth:a}=e;if(Pn(a.app))return Promise.reject(Br(a));const o="reauthenticate";try{const u=await xo(e,_w(a,o,t,e),i);Te(u.idToken,a,"internal-error");const c=Pm(u.idToken);Te(c,a,"internal-error");const{sub:d}=c;return Te(e.uid===d,a,"user-mismatch"),Qa._forOperation(e,o,u)}catch(u){throw(u==null?void 0:u.code)==="auth/user-not-found"&&Gn(a,"user-mismatch"),u}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/async function dO(e,t,i=!1){if(Pn(e.app))return Promise.reject(Br(e));const a="signIn",o=await _w(e,a,t),u=await Qa._fromIdTokenResponse(e,a,o);return i||await e._updateCurrentUser(u.user),u}function hO(e,t,i,a){return lr(e).onIdTokenChanged(t,i,a)}function mO(e,t,i){return lr(e).beforeAuthStateChanged(t,i)}function pO(e,t,i,a){return lr(e).onAuthStateChanged(t,i,a)}function $v(e){return lr(e).signOut()}const Pu="__sak";/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class Cw{constructor(t,i){this.storageRetriever=t,this.type=i}_isAvailable(){try{return this.storage?(this.storage.setItem(Pu,"1"),this.storage.removeItem(Pu),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,i){return this.storage.setItem(t,JSON.stringify(i)),Promise.resolve()}_get(t){const i=this.storage.getItem(t);return Promise.resolve(i?JSON.parse(i):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const gO=1e3,yO=10;class kw extends Cw{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,i)=>this.onStorageEvent(t,i),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=ww(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const i of Object.keys(this.listeners)){const a=this.storage.getItem(i),o=this.localCache[i];a!==o&&t(i,o,a)}}onStorageEvent(t,i=!1){if(!t.key){this.forAllChangedKeys((c,d,p)=>{this.notifyListeners(c,p)});return}const a=t.key;i?this.detachListener():this.stopPolling();const o=()=>{const c=this.storage.getItem(a);!i&&this.localCache[a]===c||this.notifyListeners(a,c)},u=this.storage.getItem(a);KR()&&u!==t.newValue&&t.newValue!==t.oldValue?setTimeout(o,yO):o()}notifyListeners(t,i){this.localCache[t]=i;const a=this.listeners[t];if(a)for(const o of Array.from(a))o(i&&JSON.parse(i))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,i,a)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:i,newValue:a}),!0)})},gO)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,i){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(i)}_removeListener(t,i){this.listeners[t]&&(this.listeners[t].delete(i),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,i){await super._set(t,i),this.localCache[t]=JSON.stringify(i)}async _get(t){const i=await super._get(t);return this.localCache[t]=JSON.stringify(i),i}async _remove(t){await super._remove(t),delete this.localCache[t]}}kw.type="LOCAL";const bO=kw;/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class Mw extends Cw{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,i){}_removeListener(t,i){}}Mw.type="SESSION";const Dw=Mw;/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function vO(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(i){return{fulfilled:!1,reason:i}}}))}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class $u{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const i=this.receivers.find(o=>o.isListeningto(t));if(i)return i;const a=new $u(t);return this.receivers.push(a),a}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const i=t,{eventId:a,eventType:o,data:u}=i.data,c=this.handlersMap[o];if(!(c!=null&&c.size))return;i.ports[0].postMessage({status:"ack",eventId:a,eventType:o});const d=Array.from(c).map(async m=>m(i.origin,u)),p=await vO(d);i.ports[0].postMessage({status:"done",eventId:a,eventType:o,response:p})}_subscribe(t,i){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(i)}_unsubscribe(t,i){this.handlersMap[t]&&i&&this.handlersMap[t].delete(i),(!i||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}$u.receivers=[];/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Fm(e="",t=10){let i="";for(let a=0;a<t;a++)i+=Math.floor(Math.random()*10);return e+i}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class xO{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,i,a=50){const o=typeof MessageChannel<"u"?new MessageChannel:null;if(!o)throw new Error("connection_unavailable");let u,c;return new Promise((d,p)=>{const m=Fm("",20);o.port1.start();const g=setTimeout(()=>{p(new Error("unsupported_event"))},a);c={messageChannel:o,onMessage(y){const v=y;if(v.data.eventId===m)switch(v.data.status){case"ack":clearTimeout(g),u=setTimeout(()=>{p(new Error("timeout"))},3e3);break;case"done":clearTimeout(u),d(v.data.response);break;default:clearTimeout(g),clearTimeout(u),p(new Error("invalid_response"));break}}},this.handlers.add(c),o.port1.addEventListener("message",c.onMessage),this.target.postMessage({eventType:t,eventId:m,data:i},[o.port2])}).finally(()=>{c&&this.removeMessageHandler(c)})}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function qn(){return window}function SO(e){qn().location.href=e}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC.
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Nw(){return typeof qn().WorkerGlobalScope<"u"&&typeof qn().importScripts=="function"}async function wO(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function TO(){var e;return((e=navigator==null?void 0:navigator.serviceWorker)==null?void 0:e.controller)||null}function EO(){return Nw()?self:null}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const Rw="firebaseLocalStorageDb",AO=1,Vu="firebaseLocalStorage",Ow="fbase_key";class Ro{constructor(t){this.request=t}toPromise(){return new Promise((t,i)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{i(this.request.error)})})}}function Ju(e,t){return e.transaction([Vu],t?"readwrite":"readonly").objectStore(Vu)}function _O(){const e=indexedDB.deleteDatabase(Rw);return new Ro(e).toPromise()}function Hh(){const e=indexedDB.open(Rw,AO);return new Promise((t,i)=>{e.addEventListener("error",()=>{i(e.error)}),e.addEventListener("upgradeneeded",()=>{const a=e.result;try{a.createObjectStore(Vu,{keyPath:Ow})}catch(o){i(o)}}),e.addEventListener("success",async()=>{const a=e.result;a.objectStoreNames.contains(Vu)?t(a):(a.close(),await _O(),t(await Hh()))})})}async function Jv(e,t,i){const a=Ju(e,!0).put({[Ow]:t,value:i});return new Ro(a).toPromise()}async function CO(e,t){const i=Ju(e,!1).get(t),a=await new Ro(i).toPromise();return a===void 0?null:a.value}function ex(e,t){const i=Ju(e,!0).delete(t);return new Ro(i).toPromise()}const kO=800,MO=3;class zw{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await Hh(),this.db)}async _withRetries(t){let i=0;for(;;)try{const a=await this._openDb();return await t(a)}catch(a){if(i++>MO)throw a;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return Nw()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=$u._getInstance(EO()),this.receiver._subscribe("keyChanged",async(t,i)=>({keyProcessed:(await this._poll()).includes(i.key)})),this.receiver._subscribe("ping",async(t,i)=>["keyChanged"])}async initializeSender(){var i,a;if(this.activeServiceWorker=await wO(),!this.activeServiceWorker)return;this.sender=new xO(this.activeServiceWorker);const t=await this.sender._send("ping",{},800);t&&(i=t[0])!=null&&i.fulfilled&&(a=t[0])!=null&&a.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||TO()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await Hh();return await Jv(t,Pu,"1"),await ex(t,Pu),!0}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,i){return this._withPendingWrite(async()=>(await this._withRetries(a=>Jv(a,t,i)),this.localCache[t]=i,this.notifyServiceWorker(t)))}async _get(t){const i=await this._withRetries(a=>CO(a,t));return this.localCache[t]=i,i}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(i=>ex(i,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(o=>{const u=Ju(o,!1).getAll();return new Ro(u).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];const i=[],a=new Set;if(t.length!==0)for(const{fbase_key:o,value:u}of t)a.add(o),JSON.stringify(this.localCache[o])!==JSON.stringify(u)&&(this.notifyListeners(o,u),i.push(o));for(const o of Object.keys(this.localCache))this.localCache[o]&&!a.has(o)&&(this.notifyListeners(o,null),i.push(o));return i}notifyListeners(t,i){this.localCache[t]=i;const a=this.listeners[t];if(a)for(const o of Array.from(a))o(i)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),kO)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,i){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(i)}_removeListener(t,i){this.listeners[t]&&(this.listeners[t].delete(i),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}zw.type="LOCAL";const DO=zw;new Do(3e4,6e4);/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Lw(e,t){return t?pi(t):(Te(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class Gm extends Aw{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return Ha(t,this._buildIdpRequest())}_linkToIdToken(t,i){return Ha(t,this._buildIdpRequest(i))}_getReauthenticationResolver(t){return Ha(t,this._buildIdpRequest())}_buildIdpRequest(t){const i={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(i.idToken=t),i}}function NO(e){return dO(e.auth,new Gm(e),e.bypassAuthState)}function RO(e){const{auth:t,user:i}=e;return Te(i,t,"internal-error"),fO(i,new Gm(e),e.bypassAuthState)}async function OO(e){const{auth:t,user:i}=e;return Te(i,t,"internal-error"),cO(i,new Gm(e),e.bypassAuthState)}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class jw{constructor(t,i,a,o,u=!1){this.auth=t,this.resolver=a,this.user=o,this.bypassAuthState=u,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(i)?i:[i]}execute(){return new Promise(async(t,i)=>{this.pendingPromise={resolve:t,reject:i};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(a){this.reject(a)}})}async onAuthEvent(t){const{urlResponse:i,sessionId:a,postBody:o,tenantId:u,error:c,type:d}=t;if(c){this.reject(c);return}const p={auth:this.auth,requestUri:i,sessionId:a,tenantId:u||void 0,postBody:o||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(d)(p))}catch(m){this.reject(m)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return NO;case"linkViaPopup":case"linkViaRedirect":return OO;case"reauthViaPopup":case"reauthViaRedirect":return RO;default:Gn(this.auth,"internal-error")}}resolve(t){yi(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){yi(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const zO=new Do(2e3,1e4);async function LO(e,t,i){if(Pn(e.app))return Promise.reject(Dn(e,"operation-not-supported-in-this-environment"));const a=Zu(e);DR(e,t,qm);const o=Lw(a,i);return new jr(a,"signInViaPopup",t,o).executeNotNull()}class jr extends jw{constructor(t,i,a,o,u){super(t,i,o,u),this.provider=a,this.authWindow=null,this.pollId=null,jr.currentPopupAction&&jr.currentPopupAction.cancel(),jr.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return Te(t,this.auth,"internal-error"),t}async onExecution(){yi(this.filter.length===1,"Popup operations only handle one event");const t=Fm();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(i=>{this.reject(i)}),this.resolver._isIframeWebStorageSupported(this.auth,i=>{i||this.reject(Dn(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var t;return((t=this.authWindow)==null?void 0:t.associatedEvent)||null}cancel(){this.reject(Dn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,jr.currentPopupAction=null}pollUserCancellation(){const t=()=>{var i,a;if((a=(i=this.authWindow)==null?void 0:i.window)!=null&&a.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Dn(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,zO.get())};t()}}jr.currentPopupAction=null;/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const jO="pendingRedirect",wu=new Map;class IO extends jw{constructor(t,i,a=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],i,void 0,a),this.eventId=null}async execute(){let t=wu.get(this.auth._key());if(!t){try{const a=await UO(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(a)}catch(i){t=()=>Promise.reject(i)}wu.set(this.auth._key(),t)}return this.bypassAuthState||wu.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const i=await this.auth._redirectUserForId(t.eventId);if(i)return this.user=i,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function UO(e,t){const i=VO(t),a=PO(e);if(!await a._isAvailable())return!1;const o=await a._get(i)==="true";return await a._remove(i),o}function BO(e,t){wu.set(e._key(),t)}function PO(e){return pi(e._redirectPersistence)}function VO(e){return Su(jO,e.config.apiKey,e.name)}async function HO(e,t,i=!1){if(Pn(e.app))return Promise.reject(Br(e));const a=Zu(e),o=Lw(a,t),c=await new IO(a,o,i).execute();return c&&!i&&(delete c.user._redirectEventId,await a._persistUserIfCurrent(c.user),await a._setRedirectUser(null,t)),c}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const qO=600*1e3;class FO{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let i=!1;return this.consumers.forEach(a=>{this.isEventForConsumer(t,a)&&(i=!0,this.sendToConsumer(t,a),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!GO(t)||(this.hasHandledPotentialRedirect=!0,i||(this.queuedRedirectEvent=t,i=!0)),i}sendToConsumer(t,i){var a;if(t.error&&!Iw(t)){const o=((a=t.error.code)==null?void 0:a.split("auth/")[1])||"internal-error";i.onError(Dn(this.auth,o))}else i.onAuthEvent(t)}isEventForConsumer(t,i){const a=i.eventId===null||!!t.eventId&&t.eventId===i.eventId;return i.filter.includes(t.type)&&a}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=qO&&this.cachedEventUids.clear(),this.cachedEventUids.has(tx(t))}saveEventToCache(t){this.cachedEventUids.add(tx(t)),this.lastProcessedEventTime=Date.now()}}function tx(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function Iw({type:e,error:t}){return e==="unknown"&&(t==null?void 0:t.code)==="auth/no-auth-event"}function GO(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Iw(e);default:return!1}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/async function YO(e,t={}){return Ja(e,"GET","/v1/projects",t)}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const XO=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,KO=/^https?/;async function QO(e){if(e.config.emulator)return;const{authorizedDomains:t}=await YO(e);for(const i of t)try{if(WO(i))return}catch{}Gn(e,"unauthorized-domain")}function WO(e){const t=Ph(),{protocol:i,hostname:a}=new URL(t);if(e.startsWith("chrome-extension://")){const c=new URL(e);return c.hostname===""&&a===""?i==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):i==="chrome-extension:"&&c.hostname===a}if(!KO.test(i))return!1;if(XO.test(e))return a===e;const o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC.
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const ZO=new Do(3e4,6e4);function nx(){const e=qn().___jsl;if(e!=null&&e.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let i=0;i<e.CP.length;i++)e.CP[i]=null}}function $O(e){return new Promise((t,i)=>{var o,u,c;function a(){nx(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{nx(),i(Dn(e,"network-request-failed"))},timeout:ZO.get()})}if((u=(o=qn().gapi)==null?void 0:o.iframes)!=null&&u.Iframe)t(gapi.iframes.getContext());else if((c=qn().gapi)!=null&&c.load)a();else{const d=iO("iframefcb");return qn()[d]=()=>{gapi.load?a():i(Dn(e,"network-request-failed"))},tO(`${nO()}?onload=${d}`).catch(p=>i(p))}}).catch(t=>{throw Tu=null,t})}let Tu=null;function JO(e){return Tu=Tu||$O(e),Tu}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC.
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const ez=new Do(5e3,15e3),tz="__/auth/iframe",nz="emulator/auth/iframe",iz={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},rz=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function az(e){const t=e.config;Te(t.authDomain,e,"auth-domain-config-required");const i=t.emulator?Um(t,nz):`https://${e.config.authDomain}/${tz}`,a={apiKey:t.apiKey,appName:e.name,v:Mo},o=rz.get(e.config.apiHost);o&&(a.eid=o);const u=e._getFrameworks();return u.length&&(a.fw=u.join(",")),`${i}?${ko(a).slice(1)}`}async function sz(e){const t=await JO(e),i=qn().gapi;return Te(i,e,"internal-error"),t.open({where:document.body,url:az(e),messageHandlersFilter:i.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:iz,dontclear:!0},a=>new Promise(async(o,u)=>{await a.restyle({setHideOnLeave:!1});const c=Dn(e,"network-request-failed"),d=qn().setTimeout(()=>{u(c)},ez.get());function p(){qn().clearTimeout(d),o(a)}a.ping(p).then(p,()=>{u(c)})}))}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC.
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const oz={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},lz=500,uz=600,cz="_blank",fz="http://localhost";class ix{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function dz(e,t,i,a=lz,o=uz){const u=Math.max((window.screen.availHeight-o)/2,0).toString(),c=Math.max((window.screen.availWidth-a)/2,0).toString();let d="";const p={...oz,width:a.toString(),height:o.toString(),top:u,left:c},m=It().toLowerCase();i&&(d=yw(m)?cz:i),pw(m)&&(t=t||fz,p.scrollbars="yes");const g=Object.entries(p).reduce((v,[x,A])=>`${v}${x}=${A},`,"");if(XR(m)&&d!=="_self")return hz(t||"",d),new ix(null);const y=window.open(t||"",d,g);Te(y,e,"popup-blocked");try{y.focus()}catch{}return new ix(y)}function hz(e,t){const i=document.createElement("a");i.href=e,i.target=t;const a=document.createEvent("MouseEvent");a.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),i.dispatchEvent(a)}/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const mz="__/auth/handler",pz="emulator/auth/handler",gz=encodeURIComponent("fac");async function rx(e,t,i,a,o,u){Te(e.config.authDomain,e,"auth-domain-config-required"),Te(e.config.apiKey,e,"invalid-api-key");const c={apiKey:e.config.apiKey,appName:e.name,authType:i,redirectUrl:a,v:Mo,eventId:o};if(t instanceof qm){t.setDefaultLanguage(e.languageCode),c.providerId=t.providerId||"",mN(t.getCustomParameters())||(c.customParameters=JSON.stringify(t.getCustomParameters()));for(const[g,y]of Object.entries({}))c[g]=y}if(t instanceof No){const g=t.getScopes().filter(y=>y!=="");g.length>0&&(c.scopes=g.join(","))}e.tenantId&&(c.tid=e.tenantId);const d=c;for(const g of Object.keys(d))d[g]===void 0&&delete d[g];const p=await e._getAppCheckToken(),m=p?`#${gz}=${encodeURIComponent(p)}`:"";return`${yz(e)}?${ko(d).slice(1)}${m}`}function yz({config:e}){return e.emulator?Um(e,pz):`https://${e.authDomain}/${mz}`}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const Qd="webStorageSupport";class bz{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Dw,this._completeRedirectFn=HO,this._overrideRedirectResult=BO}async _openPopup(t,i,a,o){var c;yi((c=this.eventManagers[t._key()])==null?void 0:c.manager,"_initialize() not called before _openPopup()");const u=await rx(t,i,a,Ph(),o);return dz(t,u,Fm())}async _openRedirect(t,i,a,o){await this._originValidation(t);const u=await rx(t,i,a,Ph(),o);return SO(u),new Promise(()=>{})}_initialize(t){const i=t._key();if(this.eventManagers[i]){const{manager:o,promise:u}=this.eventManagers[i];return o?Promise.resolve(o):(yi(u,"If manager is not set, promise should be"),u)}const a=this.initAndGetManager(t);return this.eventManagers[i]={promise:a},a.catch(()=>{delete this.eventManagers[i]}),a}async initAndGetManager(t){const i=await sz(t),a=new FO(t);return i.register("authEvent",o=>(Te(o==null?void 0:o.authEvent,t,"invalid-auth-event"),{status:a.onEvent(o.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:a},this.iframes[t._key()]=i,a}_isIframeWebStorageSupported(t,i){this.iframes[t._key()].send(Qd,{type:Qd},o=>{var c;const u=(c=o==null?void 0:o[0])==null?void 0:c[Qd];u!==void 0&&i(!!u),Gn(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const i=t._key();return this.originValidationPromises[i]||(this.originValidationPromises[i]=QO(t)),this.originValidationPromises[i]}get _shouldInitProactively(){return ww()||gw()||Vm()}}const vz=bz;var ax="@firebase/auth",sx="1.13.0";/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/class xz{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),((t=this.auth.currentUser)==null?void 0:t.uid)||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const i=this.auth.onIdTokenChanged(a=>{t((a==null?void 0:a.stsTokenManager.accessToken)||null)});this.internalListeners.set(t,i),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const i=this.internalListeners.get(t);i&&(this.internalListeners.delete(t),i(),this.updateProactiveRefresh())}assertAuthConfigured(){Te(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Sz(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function wz(e){bo(new Ka("auth",(t,{options:i})=>{const a=t.getProvider("app").getImmediate(),o=t.getProvider("heartbeat"),u=t.getProvider("app-check-internal"),{apiKey:c,authDomain:d}=a.options;Te(c&&!c.includes(":"),"invalid-api-key",{appName:a.name});const p={apiKey:c,authDomain:d,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Tw(e)},m=new JR(a,o,u,p);return aO(m,i),m},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,i,a)=>{t.getProvider("auth-internal").initialize()})),bo(new Ka("auth-internal",t=>{const i=Zu(t.getProvider("auth").getImmediate());return(a=>new xz(a))(i)},"PRIVATE").setInstantiationMode("EXPLICIT")),Ba(ax,sx,Sz(e)),Ba(ax,sx,"esm2020")}/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/const Tz=300,Ez=ew("authIdTokenMaxAge")||Tz;let ox=null;const Az=e=>async t=>{const i=t&&await t.getIdTokenResult(),a=i&&(new Date().getTime()-Date.parse(i.issuedAtTime))/1e3;if(a&&a>Ez)return;const o=i==null?void 0:i.token;ox!==o&&(ox=o,await fetch(e,{method:o?"POST":"DELETE",headers:o?{Authorization:`Bearer ${o}`}:{}}))};function _z(e=yR()){const t=rw(e,"auth");if(t.isInitialized())return t.getImmediate();const i=rO(e,{popupRedirectResolver:vz,persistence:[DO,bO,Dw]}),a=ew("authTokenSyncURL");if(a&&typeof isSecureContext=="boolean"&&isSecureContext){const u=new URL(a,location.origin);if(location.origin===u.origin){const c=Az(u.toString());mO(i,c,()=>c(i.currentUser)),hO(i,d=>c(d))}}const o=nN("auth");return o&&sO(i,`http://${o}`),i}function Cz(){var e;return((e=document.getElementsByTagName("head"))==null?void 0:e[0])??document}eO({loadJS(e){return new Promise((t,i)=>{const a=document.createElement("script");a.setAttribute("src",e),a.onload=t,a.onerror=o=>{const u=Dn("internal-error");u.customData=o,i(u)},a.type="text/javascript",a.charset="UTF-8",Cz().appendChild(a)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});wz("Browser");function Uw(e){var t,i,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(i=Uw(e[t]))&&(a&&(a+=" "),a+=i)}else for(i in e)e[i]&&(a&&(a+=" "),a+=i);return a}function kz(){for(var e,t,i=0,a="",o=arguments.length;i<o;i++)(e=arguments[i])&&(t=Uw(e))&&(a&&(a+=" "),a+=t);return a}const Mz=(e,t)=>{const i=new Array(e.length+t.length);for(let a=0;a<e.length;a++)i[a]=e[a];for(let a=0;a<t.length;a++)i[e.length+a]=t[a];return i},Dz=(e,t)=>({classGroupId:e,validator:t}),Bw=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),Hu="-",lx=[],Nz="arbitrary..",Rz=e=>{const t=zz(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Oz(c);const d=c.split(Hu),p=d[0]===""&&d.length>1?1:0;return Pw(d,p,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const p=a[c],m=i[c];return p?m?Mz(m,p):p:m||lx}return i[c]||lx}}},Pw=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const o=e[t],u=i.nextPart.get(o);if(u){const m=Pw(e,t+1,u);if(m)return m}const c=i.validators;if(c===null)return;const d=t===0?e.join(Hu):e.slice(t).join(Hu),p=c.length;for(let m=0;m<p;m++){const g=c[m];if(g.validator(d))return g.classGroupId}},Oz=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),a=t.slice(0,i);return a?Nz+a:void 0})(),zz=e=>{const{theme:t,classGroups:i}=e;return Lz(i,t)},Lz=(e,t)=>{const i=Bw();for(const a in e){const o=e[a];Ym(o,i,a,t)}return i},Ym=(e,t,i,a)=>{const o=e.length;for(let u=0;u<o;u++){const c=e[u];jz(c,t,i,a)}},jz=(e,t,i,a)=>{if(typeof e=="string"){Iz(e,t,i);return}if(typeof e=="function"){Uz(e,t,i,a);return}Bz(e,t,i,a)},Iz=(e,t,i)=>{const a=e===""?t:Vw(t,e);a.classGroupId=i},Uz=(e,t,i,a)=>{if(Pz(e)){Ym(e(a),t,i,a);return}t.validators===null&&(t.validators=[]),t.validators.push(Dz(i,e))},Bz=(e,t,i,a)=>{const o=Object.entries(e),u=o.length;for(let c=0;c<u;c++){const[d,p]=o[c];Ym(p,Vw(t,d),i,a)}},Vw=(e,t)=>{let i=e;const a=t.split(Hu),o=a.length;for(let u=0;u<o;u++){const c=a[u];let d=i.nextPart.get(c);d||(d=Bw(),i.nextPart.set(c,d)),i=d}return i},Pz=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Vz=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),a=Object.create(null);const o=(u,c)=>{i[u]=c,t++,t>e&&(t=0,a=i,i=Object.create(null))};return{get(u){let c=i[u];if(c!==void 0)return c;if((c=a[u])!==void 0)return o(u,c),c},set(u,c){u in i?i[u]=c:o(u,c)}}},qh="!",ux=":",Hz=[],cx=(e,t,i,a,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:a,isExternal:o}),qz=e=>{const{prefix:t,experimentalParseClassName:i}=e;let a=o=>{const u=[];let c=0,d=0,p=0,m;const g=o.length;for(let M=0;M<g;M++){const N=o[M];if(c===0&&d===0){if(N===ux){u.push(o.slice(p,M)),p=M+1;continue}if(N==="/"){m=M;continue}}N==="["?c++:N==="]"?c--:N==="("?d++:N===")"&&d--}const y=u.length===0?o:o.slice(p);let v=y,x=!1;y.endsWith(qh)?(v=y.slice(0,-1),x=!0):y.startsWith(qh)&&(v=y.slice(1),x=!0);const A=m&&m>p?m-p:void 0;return cx(u,x,v,A)};if(t){const o=t+ux,u=a;a=c=>c.startsWith(o)?u(c.slice(o.length)):cx(Hz,!1,c,void 0,!0)}if(i){const o=a;a=u=>i({className:u,parseClassName:o})}return a},Fz=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{t.set(i,1e6+a)}),i=>{const a=[];let o=[];for(let u=0;u<i.length;u++){const c=i[u],d=c[0]==="[",p=t.has(c);d||p?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(c)):o.push(c)}return o.length>0&&(o.sort(),a.push(...o)),a}},Gz=e=>({cache:Vz(e.cacheSize),parseClassName:qz(e),sortModifiers:Fz(e),...Rz(e)}),Yz=/\s+/,Xz=(e,t)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:u}=t,c=[],d=e.trim().split(Yz);let p="";for(let m=d.length-1;m>=0;m-=1){const g=d[m],{isExternal:y,modifiers:v,hasImportantModifier:x,baseClassName:A,maybePostfixModifierPosition:M}=i(g);if(y){p=g+(p.length>0?" "+p:p);continue}let N=!!M,C=a(N?A.substring(0,M):A);if(!C){if(!N){p=g+(p.length>0?" "+p:p);continue}if(C=a(A),!C){p=g+(p.length>0?" "+p:p);continue}N=!1}const V=v.length===0?"":v.length===1?v[0]:u(v).join(":"),L=x?V+qh:V,Y=L+C;if(c.indexOf(Y)>-1)continue;c.push(Y);const Z=o(C,N);for(let z=0;z<Z.length;++z){const K=Z[z];c.push(L+K)}p=g+(p.length>0?" "+p:p)}return p},Kz=(...e)=>{let t=0,i,a,o="";for(;t<e.length;)(i=e[t++])&&(a=Hw(i))&&(o&&(o+=" "),o+=a);return o},Hw=e=>{if(typeof e=="string")return e;let t,i="";for(let a=0;a<e.length;a++)e[a]&&(t=Hw(e[a]))&&(i&&(i+=" "),i+=t);return i},Qz=(e,...t)=>{let i,a,o,u;const c=p=>{const m=t.reduce((g,y)=>y(g),e());return i=Gz(m),a=i.cache.get,o=i.cache.set,u=d,d(p)},d=p=>{const m=a(p);if(m)return m;const g=Xz(p,i);return o(p,g),g};return u=c,(...p)=>u(Kz(...p))},Wz=[],yt=e=>{const t=i=>i[e]||Wz;return t.isThemeGetter=!0,t},qw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zz=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,$z=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jz=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,e3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,t3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,n3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gi=e=>Zz.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),Yi=e=>!!e&&Number.isInteger(Number(e)),Wd=e=>e.endsWith("%")&&Me(e.slice(0,-1)),di=e=>$z.test(e),Gw=()=>!0,i3=e=>Jz.test(e)&&!e3.test(e),Xm=()=>!1,r3=e=>t3.test(e),a3=e=>n3.test(e),s3=e=>!fe(e)&&!me(e),o3=e=>ur(e,Kw,Xm),fe=e=>qw.test(e),Dr=e=>ur(e,Qw,i3),fx=e=>ur(e,p3,Me),l3=e=>ur(e,Zw,Gw),u3=e=>ur(e,Ww,Xm),dx=e=>ur(e,Yw,Xm),c3=e=>ur(e,Xw,a3),au=e=>ur(e,$w,r3),me=e=>Fw.test(e),Zs=e=>Vr(e,Qw),f3=e=>Vr(e,Ww),hx=e=>Vr(e,Yw),d3=e=>Vr(e,Kw),h3=e=>Vr(e,Xw),su=e=>Vr(e,$w,!0),m3=e=>Vr(e,Zw,!0),ur=(e,t,i)=>{const a=qw.exec(e);return a?a[1]?t(a[1]):i(a[2]):!1},Vr=(e,t,i=!1)=>{const a=Fw.exec(e);return a?a[1]?t(a[1]):i:!1},Yw=e=>e==="position"||e==="percentage",Xw=e=>e==="image"||e==="url",Kw=e=>e==="length"||e==="size"||e==="bg-size",Qw=e=>e==="length",p3=e=>e==="number",Ww=e=>e==="family-name",Zw=e=>e==="number"||e==="weight",$w=e=>e==="shadow",g3=()=>{const e=yt("color"),t=yt("font"),i=yt("text"),a=yt("font-weight"),o=yt("tracking"),u=yt("leading"),c=yt("breakpoint"),d=yt("container"),p=yt("spacing"),m=yt("radius"),g=yt("shadow"),y=yt("inset-shadow"),v=yt("text-shadow"),x=yt("drop-shadow"),A=yt("blur"),M=yt("perspective"),N=yt("aspect"),C=yt("ease"),V=yt("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...Y(),me,fe],z=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],B=()=>[me,fe,p],ee=()=>[Gi,"full","auto",...B()],ie=()=>[Yi,"none","subgrid",me,fe],$=()=>["auto",{span:["full",Yi,me,fe]},Yi,me,fe],ne=()=>[Yi,"auto",me,fe],ge=()=>["auto","min","max","fr",me,fe],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...B()],W=()=>[Gi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],oe=()=>[Gi,"screen","full","dvw","lvw","svw","min","max","fit",...B()],he=()=>[Gi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],w=()=>[e,me,fe],k=()=>[...Y(),hx,dx,{position:[me,fe]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",d3,o3,{size:[me,fe]}],P=()=>[Wd,Zs,Dr],re=()=>["","none","full",m,me,fe],ae=()=>["",Me,Zs,Dr],ve=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[Me,Wd,hx,dx],Dt=()=>["","none",A,me,fe],Ut=()=>["none",Me,me,fe],Rn=()=>["none",Me,me,fe],bi=()=>[Me,me,fe],Bt=()=>[Gi,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[di],breakpoint:[di],color:[Gw],container:[di],"drop-shadow":[di],ease:["in","out","in-out"],font:[s3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[di],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[di],shadow:[di],spacing:["px",Me],text:[di],"text-shadow":[di],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Gi,fe,me,N]}],container:["container"],columns:[{columns:[Me,fe,me,d]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Z()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[Yi,"auto",me,fe]}],basis:[{basis:[Gi,"full","auto",d,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,Gi,"auto","initial","none",fe]}],grow:[{grow:["",Me,me,fe]}],shrink:[{shrink:["",Me,me,fe]}],order:[{order:[Yi,"first","last","none",me,fe]}],"grid-cols":[{"grid-cols":ie()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ie()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],"inline-size":[{inline:["auto",...oe()]}],"min-inline-size":[{"min-inline":["auto",...oe()]}],"max-inline-size":[{"max-inline":["none",...oe()]}],"block-size":[{block:["auto",...he()]}],"min-block-size":[{"min-block":["auto",...he()]}],"max-block-size":[{"max-block":["none",...he()]}],w:[{w:[d,"screen",...W()]}],"min-w":[{"min-w":[d,"screen","none",...W()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",i,Zs,Dr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,m3,l3]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Wd,fe]}],"font-family":[{font:[f3,u3,t]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,me,fe]}],"line-clamp":[{"line-clamp":[Me,"none",me,fx]}],leading:[{leading:[u,...B()]}],"list-image":[{"list-image":["none",me,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",me,Dr]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[Me,"auto",me,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yi,me,fe],radial:["",me,fe],conic:[Yi,me,fe]},h3,c3]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,me,fe]}],"outline-w":[{outline:["",Me,Zs,Dr]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",g,su,au]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",y,su,au]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[Me,Dr]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",v,su,au]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[Me,me,fe]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[me,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Y()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,fe]}],filter:[{filter:["","none",me,fe]}],blur:[{blur:Dt()}],brightness:[{brightness:[Me,me,fe]}],contrast:[{contrast:[Me,me,fe]}],"drop-shadow":[{"drop-shadow":["","none",x,su,au]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",Me,me,fe]}],"hue-rotate":[{"hue-rotate":[Me,me,fe]}],invert:[{invert:["",Me,me,fe]}],saturate:[{saturate:[Me,me,fe]}],sepia:[{sepia:["",Me,me,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",me,fe]}],"backdrop-blur":[{"backdrop-blur":Dt()}],"backdrop-brightness":[{"backdrop-brightness":[Me,me,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Me,me,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,me,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,me,fe]}],"backdrop-invert":[{"backdrop-invert":["",Me,me,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Me,me,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Me,me,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,me,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",me,fe]}],ease:[{ease:["linear","initial",C,me,fe]}],delay:[{delay:[Me,me,fe]}],animate:[{animate:["none",V,me,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,me,fe]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:Ut()}],"rotate-x":[{"rotate-x":Ut()}],"rotate-y":[{"rotate-y":Ut()}],"rotate-z":[{"rotate-z":Ut()}],scale:[{scale:Rn()}],"scale-x":[{"scale-x":Rn()}],"scale-y":[{"scale-y":Rn()}],"scale-z":[{"scale-z":Rn()}],"scale-3d":["scale-3d"],skew:[{skew:bi()}],"skew-x":[{"skew-x":bi()}],"skew-y":[{"skew-y":bi()}],transform:[{transform:[me,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Bt()}],"translate-x":[{"translate-x":Bt()}],"translate-y":[{"translate-y":Bt()}],"translate-z":[{"translate-z":Bt()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,fe]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[Me,Zs,Dr,fx]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},y3=Qz(g3);function zt(...e){return y3(kz(e))}const b3=({isConnected:e,onLogout:t})=>T.jsx("header",{className:"relative z-50 border-b border-white/10 bg-black/25 px-4 py-4 backdrop-blur-2xl sm:px-6 lg:px-8",children:T.jsxs("div",{className:"mx-auto flex w-full max-w-7xl items-center justify-between gap-4",children:[T.jsxs("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[T.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-[linear-gradient(135deg,#6366f1_0%,#2563eb_50%,#06b6d4_100%)] shadow-[0_18px_40px_rgba(79,70,229,0.38)]",children:T.jsx(XD,{className:"h-5 w-5 text-white"})}),T.jsxs("div",{className:"min-w-0",children:[T.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[T.jsx("h1",{className:"truncate text-lg font-semibold tracking-tight text-white sm:text-xl",children:"Portal Brief CDC"}),T.jsx("span",{className:"hidden rounded-full border border-white/10 bg-white/5 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.24em] text-zinc-400 sm:inline-flex",children:"Experiencia guiada"})]}),T.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-2 sm:gap-3",children:[T.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-2.5 py-1 text-xs text-zinc-300",children:[T.jsxs("span",{className:"relative flex h-2.5 w-2.5",children:[e&&T.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-400 opacity-70"}),T.jsx("span",{className:zt("relative inline-flex h-2.5 w-2.5 rounded-full",e?"bg-emerald-400":"bg-red-400")})]}),e?"Conectado al flujo":"Sin conexión"]}),T.jsxs("div",{className:"hidden items-center gap-2 rounded-full border border-indigo-400/20 bg-indigo-500/10 px-2.5 py-1 text-xs text-indigo-200 sm:inline-flex",children:[T.jsx(Rm,{className:"h-3.5 w-3.5"}),"Flujo validado"]})]})]})]}),T.jsxs("button",{onClick:t,className:"inline-flex items-center gap-2 rounded-2xl border border-white/10 bg-white/5 px-4 py-2.5 text-sm font-medium text-zinc-200 transition hover:border-white/20 hover:bg-white/10 hover:text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/50","aria-label":"Cerrar sesión",children:[T.jsx(DD,{className:"h-4 w-4"}),T.jsx("span",{className:"hidden sm:inline",children:"Cerrar sesión"})]})]})}),ou=[{id:"audio",number:1,title:"Nota de voz",hint:"Obligatorio. Graba una nota de voz explicando el brief.",required:!0},{id:"images",number:2,title:"Imágenes de referencia",hint:"Obligatorio. Adjunta una o varias imágenes de referencia.",required:!0},{id:"documents",number:3,title:"Documentos relacionados",hint:"Opcional. Adjunta archivos de apoyo.",required:!1},{id:"campaign",number:4,title:"Campaña o elementos gráficos",hint:"Opcional. Si ya existen piezas gráficas o logos.",required:!1},{id:"links",number:5,title:"Enlaces de referencia",hint:"Opcional. Pega enlaces online.",required:!1},{id:"review",number:6,title:"Revisión y envío",hint:"Finaliza tu solicitud aquí.",required:!1}],v3=({onSendMessage:e,isProcessing:t})=>{const[i,a]=te.useState(""),[o,u]=te.useState([]),[c,d]=te.useState(!1),[p,m]=te.useState(0),[g,y]=te.useState(null),[v,x]=te.useState("audio"),[A,M]=te.useState(null),[N,C]=te.useState(null),V=te.useRef(null),L=te.useRef(null),Y=te.useRef(null),Z=te.useRef([]),z=te.useRef(null),K=te.useMemo(()=>o.filter(P=>P.type==="image"),[o]),B=te.useMemo(()=>o.filter(P=>P.type!=="image"&&P.category!=="campaign"),[o]),ee=te.useMemo(()=>o.filter(P=>P.category==="campaign"),[o]),ie=!!g&&K.length>0,$=(ou.findIndex(P=>P.id===v)+1)/ou.length*100;te.useEffect(()=>()=>{o.forEach(P=>URL.revokeObjectURL(P.url)),g!=null&&g.url&&URL.revokeObjectURL(g.url)},[o,g]);const ne=P=>{switch(P){case"audio":return g?"done":v==="audio"?"active":"pending";case"images":return K.length>0?"done":v==="images"?"active":"pending";case"documents":return B.length>0?"done":v==="documents"?"active":"pending";case"campaign":return A==="no"||A==="yes"&&ee.length>0?"done":v==="campaign"?"active":"pending";case"links":return i.trim()?"done":v==="links"?"active":"pending";case"review":return v==="review"?"active":"pending";default:return"pending"}},ge=P=>P.type.startsWith("image/")?"image":P.type.startsWith("video/")?"video":P.type.startsWith("audio/")?"audio":P.type.includes("pdf")||P.type.includes("document")||P.type.includes("sheet")||P.type.includes("excel")||P.type.includes("powerpoint")||P.type.startsWith("text/")?"document":"other",le=P=>{const re=Array.from(P.target.files||[]);if(!re.length)return;let ae=re;v==="images"&&(ae=re.filter(Ee=>Ee.type.startsWith("image/")),ae.length!==re.length&&C("En este paso solo se permiten imágenes. Los demás archivos no se agregaron.")),v==="documents"&&(ae=re.filter(Ee=>!Ee.type.startsWith("image/")&&!Ee.type.startsWith("audio/")),ae.length!==re.length&&C("En este paso agrega documentos o archivos de apoyo. Las imágenes y audios se omiten aquí."));const ve=ae.map(Ee=>({id:Math.random().toString(36).substring(7),file:Ee,type:ge(Ee),url:URL.createObjectURL(Ee),category:v==="campaign"?"campaign":"general"}));u(Ee=>[...Ee,...ve]),ae.length>0&&C(null),V.current&&(V.current.value="")},J=P=>{u(re=>{const ae=re.filter(Ee=>Ee.id!==P),ve=re.find(Ee=>Ee.id===P);return ve&&URL.revokeObjectURL(ve.url),ae})},R=async()=>{try{const P=await navigator.mediaDevices.getUserMedia({audio:!0}),re=new MediaRecorder(P);Y.current=re,Z.current=[],re.ondataavailable=ae=>{ae.data.size>0&&Z.current.push(ae.data)},re.onstop=()=>{const ae=new Blob(Z.current,{type:"audio/webm"}),ve=URL.createObjectURL(ae);y({blob:ae,url:ve,duration:p}),P.getTracks().forEach(Ee=>Ee.stop())},re.start(),C(null),d(!0),m(0),z.current=window.setInterval(()=>{m(ae=>ae+1)},1e3)}catch(P){console.error("Error accessing microphone:",P),C("No se pudo acceder al micrófono. Revisa los permisos del navegador.")}},W=()=>{Y.current&&c&&(Y.current.stop(),d(!1),z.current&&clearInterval(z.current))},oe=()=>{g!=null&&g.url&&URL.revokeObjectURL(g.url),y(null),m(0)},he=P=>{x(P),C(null)},w=()=>{if(v==="audio"){if(!g){C("Debes grabar una nota de voz para continuar.");return}he("images");return}if(v==="images"){if(K.length===0){C("Debes adjuntar al menos una imagen de referencia para continuar.");return}he("documents");return}if(v==="documents"){he("campaign");return}if(v==="campaign"){if(A===null){C("Por favor responde si ya existe campaña o elementos gráficos.");return}if(A==="yes"&&ee.length===0){C("Si seleccionaste que sí existe campaña, debes adjuntar al menos un archivo.");return}he("links");return}if(v==="links"){he("review");return}},k=()=>{const P=i.split(`
|
||
`).map(ae=>ae.trim()).filter(Boolean).join(`
|
||
`),re=["Solicitud enviada desde el portal guiado del Brief CDC.",`Nota de voz: ${g?"Sí":"No"}`,`Imágenes de referencia: ${K.length}`,`Documentos relacionados: ${B.length}`,`¿Existe campaña o elementos gráficos?: ${A==="yes"?"Sí":"No"}`];return A==="yes"&&(re.push(`Archivos de campaña adjuntos: ${ee.length}`),ee.forEach(ae=>{re.push(`- ${ae.file.name}`)})),P&&re.push("","Enlaces de referencia:",P),re.join(`
|
||
`)},q=()=>{if(v!=="review"){he("review");return}if(!ie){C("Completa primero los pasos obligatorios (voz e imágenes).");return}t||(e(k(),o,g||void 0),a(""),u([]),M(null),g!=null&&g.url&&URL.revokeObjectURL(g.url),y(null),m(0),x("audio"),C(null))},E=ou.find(P=>P.id===v);return T.jsxs("div",{className:"rounded-[32px] border border-white/10 bg-[linear-gradient(180deg,rgba(8,12,24,0.96),rgba(10,12,20,0.86))] p-4 shadow-[0_28px_80px_rgba(0,0,0,0.38)] backdrop-blur-2xl sm:p-5 lg:p-6",children:[T.jsxs("div",{className:"mb-5 overflow-hidden rounded-[28px] border border-white/10 bg-white/5 p-4",children:[T.jsxs("div",{className:"mb-3 flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",children:[T.jsxs("div",{children:[T.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-indigo-400/20 bg-indigo-500/10 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.22em] text-indigo-200",children:[T.jsx(HD,{className:"h-3.5 w-3.5"})," Flujo guiado"]}),T.jsx("h3",{className:"mt-3 text-xl font-semibold tracking-tight text-white",children:"Construye la solicitud paso por paso"}),T.jsx("p",{className:"mt-1 text-sm text-zinc-400",children:"Completa primero los pasos obligatorios. Luego podrás adjuntar documentos y agregar referencias online."})]}),T.jsxs("div",{className:"rounded-2xl border border-white/10 bg-black/20 px-4 py-3 text-sm text-zinc-300",children:[T.jsx("span",{className:"font-semibold text-white",children:"Progreso:"})," ",ie?"listo para enviar":`${Math.round($)}% del flujo`]})]}),T.jsx("div",{className:"mb-4 h-2 overflow-hidden rounded-full bg-white/5",children:T.jsx(Ua.div,{className:"h-full rounded-full bg-[linear-gradient(90deg,#6366f1_0%,#3b82f6_55%,#22d3ee_100%)]",animate:{width:`${$}%`},transition:{type:"spring",stiffness:80,damping:18}})}),T.jsx("div",{className:"grid gap-3 xl:grid-cols-6",children:ou.map(P=>{const re=ne(P.id);return T.jsxs("button",{type:"button",onClick:()=>he(P.id),className:zt("group relative flex h-full flex-col overflow-hidden rounded-[24px] border p-4 text-left transition-all",re==="done"&&"border-emerald-400/25 bg-emerald-500/10",re==="active"&&"border-indigo-400/30 bg-[linear-gradient(180deg,rgba(99,102,241,0.18),rgba(59,130,246,0.08))] shadow-[0_18px_40px_rgba(79,70,229,0.18)]",re==="pending"&&"border-white/10 bg-black/20 hover:border-white/20 hover:bg-black/25"),children:[T.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[T.jsxs("span",{className:"rounded-full border border-white/10 bg-white/5 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.26em] text-zinc-400",children:["Paso ",P.number]}),re==="done"?T.jsx(xD,{className:"h-4 w-4 text-emerald-300"}):re==="active"?T.jsx("div",{className:"h-3 w-3 rounded-full bg-indigo-300 shadow-[0_0_14px_rgba(129,140,248,0.7)]"}):T.jsx("div",{className:"h-3 w-3 rounded-full bg-zinc-600"})]}),T.jsx("h4",{className:"mb-2 min-h-[2.5rem] text-sm font-semibold text-white",children:P.title}),T.jsx("p",{className:"min-h-[3rem] text-xs leading-5 text-zinc-400",children:P.hint})]},P.id)})})]}),T.jsxs("div",{className:"grid gap-5 lg:grid-cols-[1.45fr_0.85fr]",children:[T.jsxs("div",{children:[T.jsx(OS,{children:(o.length>0||g)&&T.jsxs(Ua.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-5 grid gap-3 sm:grid-cols-2 xl:grid-cols-3",children:[g&&T.jsxs("div",{className:"relative rounded-[24px] border border-indigo-400/20 bg-[linear-gradient(180deg,rgba(99,102,241,0.2),rgba(99,102,241,0.08))] p-4",children:[T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-black/20",children:T.jsx(Nv,{className:"h-5 w-5 text-indigo-200"})}),T.jsxs("div",{children:[T.jsx("p",{className:"text-sm font-semibold text-white",children:"Nota de voz lista"}),T.jsxs("p",{className:"text-xs font-mono text-indigo-200/80",children:["0:",g.duration.toString().padStart(2,"0")]})]})]}),T.jsx("button",{onClick:oe,className:"absolute right-3 top-3 flex h-7 w-7 items-center justify-center rounded-full bg-black/30 text-white transition hover:bg-red-500/80",children:T.jsx(Ov,{className:"h-3.5 w-3.5"})})]}),o.map(P=>T.jsxs("div",{className:"relative overflow-hidden rounded-[24px] border border-white/10 bg-white/5 p-3.5",children:[T.jsxs("div",{className:"flex items-center gap-3",children:[P.type==="image"?T.jsx("div",{className:"h-16 w-16 overflow-hidden rounded-2xl border border-white/10 bg-black/20",children:T.jsx("img",{src:P.url,alt:"preview",className:"h-full w-full object-cover"})}):T.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl border border-white/10 bg-black/20",children:T.jsx(TD,{className:"h-6 w-6 text-zinc-300"})}),T.jsxs("div",{className:"min-w-0 flex-1",children:[T.jsx("p",{className:"truncate text-sm font-medium text-white",children:P.file.name}),T.jsx("p",{className:"mt-1 text-xs text-zinc-400",children:P.type==="image"?"Imagen de referencia":"Documento / archivo de apoyo"})]})]}),T.jsx("button",{onClick:()=>J(P.id),className:"absolute right-3 top-3 flex h-7 w-7 items-center justify-center rounded-full bg-black/30 text-white transition hover:bg-red-500/80",children:T.jsx(Ov,{className:"h-3.5 w-3.5"})})]},P.id))]})}),T.jsxs("div",{className:"rounded-[28px] border border-white/10 bg-black/20 p-4 sm:p-5",children:[T.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-3",children:[T.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-indigo-400/20 bg-indigo-500/10 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.24em] text-indigo-200",children:["Paso ",E.number]}),T.jsx("h3",{className:"text-lg font-semibold text-white",children:E.title}),T.jsx("span",{className:"text-sm text-zinc-400",children:E.hint})]}),v==="audio"&&T.jsxs("div",{className:"rounded-[24px] border border-white/10 bg-white/5 p-4",children:[T.jsx("p",{className:"mb-5 text-sm leading-7 text-zinc-300",children:"Graba una nota de voz explicando el brief. Incluye país, cliente, marca, tipo de requerimiento, objetivos, entregables, presupuesto y fechas clave."}),T.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[T.jsxs("button",{onClick:c?W:R,className:zt("inline-flex items-center gap-2 rounded-2xl px-5 py-3.5 text-sm font-semibold transition-all",c?"bg-red-500/20 text-red-200 hover:bg-red-500/30":"bg-[linear-gradient(135deg,#6366f1_0%,#2563eb_100%)] text-white shadow-[0_18px_40px_rgba(79,70,229,0.25)] hover:brightness-110"),disabled:t,children:[c?T.jsx(PD,{className:"h-4 w-4 fill-current"}):T.jsx(Nv,{className:"h-4 w-4"}),c?`Detener grabación (${p}s)`:"Grabar nota de voz"]}),g&&T.jsx("span",{className:"text-sm text-emerald-300",children:"Nota de voz lista para enviar."})]})]}),v==="images"&&T.jsxs("div",{className:"rounded-[24px] border border-white/10 bg-white/5 p-4",children:[T.jsx("p",{className:"mb-5 text-sm leading-7 text-zinc-300",children:"Adjunta una o varias imágenes de referencia. Este paso es obligatorio para continuar."}),T.jsxs("button",{onClick:()=>{var P;return(P=V.current)==null?void 0:P.click()},className:"inline-flex items-center gap-2 rounded-2xl bg-[linear-gradient(135deg,#6366f1_0%,#2563eb_100%)] px-5 py-3.5 text-sm font-semibold text-white shadow-[0_18px_40px_rgba(79,70,229,0.25)] transition hover:brightness-110 disabled:opacity-50",disabled:t||c,children:[T.jsx(AD,{className:"h-4 w-4"}),"Agregar imágenes"]})]}),v==="documents"&&T.jsxs("div",{className:"rounded-[24px] border border-white/10 bg-white/5 p-4",children:[T.jsx("p",{className:"mb-5 text-sm leading-7 text-zinc-300",children:"Adjunta documentos relacionados, referencias y archivos de apoyo. Puedes subir PDF, Excel, PowerPoint, Word y otros materiales."}),T.jsxs("button",{onClick:()=>{var P;return(P=V.current)==null?void 0:P.click()},className:"inline-flex items-center gap-2 rounded-2xl border border-white/10 bg-black/25 px-5 py-3.5 text-sm font-semibold text-zinc-100 transition hover:border-white/20 hover:bg-black/35 disabled:opacity-50",disabled:t||c,children:[T.jsx(Rv,{className:"h-4 w-4"}),"Agregar documentos relacionados"]})]}),v==="campaign"&&T.jsxs("div",{className:"rounded-[24px] border border-white/10 bg-white/5 p-4",children:[T.jsx("p",{className:"mb-5 text-sm leading-7 text-zinc-300",children:"¿Ya existe campaña o elementos gráficos para esta solicitud? (logos, key visuals, piezas previas, etc.)"}),T.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[T.jsx("button",{onClick:()=>{M("yes"),C(null)},className:zt("px-6 py-3 rounded-2xl font-semibold transition-all border",A==="yes"?"bg-indigo-500/20 border-indigo-400 text-white shadow-[0_0_20px_rgba(99,102,241,0.2)]":"bg-black/20 border-white/10 text-zinc-400 hover:border-white/20"),children:"Sí, ya existen"}),T.jsx("button",{onClick:()=>{M("no"),u(P=>P.filter(re=>re.category!=="campaign")),C(null)},className:zt("px-6 py-3 rounded-2xl font-semibold transition-all border",A==="no"?"bg-indigo-500/20 border-indigo-400 text-white shadow-[0_0_20px_rgba(99,102,241,0.2)]":"bg-black/20 border-white/10 text-zinc-400 hover:border-white/20"),children:"No, empezar de cero"})]}),A==="yes"&&T.jsxs(Ua.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"space-y-4",children:[T.jsxs("div",{className:"flex items-center gap-3 text-sm text-indigo-300 mb-2",children:[T.jsx(zu,{className:"h-4 w-4"}),T.jsx("span",{children:"Debes adjuntar al menos un archivo de la campaña."})]}),T.jsxs("button",{onClick:()=>{var P;return(P=V.current)==null?void 0:P.click()},className:"inline-flex items-center gap-2 rounded-2xl bg-[linear-gradient(135deg,#6366f1_0%,#2563eb_100%)] px-5 py-3.5 text-sm font-semibold text-white shadow-[0_18px_40px_rgba(79,70,229,0.25)] transition hover:brightness-110 disabled:opacity-50",disabled:t||c,children:[T.jsx(Rv,{className:"h-4 w-4"}),"Adjuntar elementos de campaña"]})]})]}),v==="links"&&T.jsxs("div",{className:"rounded-[24px] border border-white/10 bg-white/5 p-4",children:[T.jsx("p",{className:"mb-5 text-sm leading-7 text-zinc-300",children:"Pega enlaces de referencia online, uno por línea. Este paso es opcional."}),T.jsxs("div",{className:"rounded-[24px] border border-white/10 bg-black/25 px-4 py-3 transition-colors focus-within:border-indigo-400/30",children:[T.jsxs("div",{className:"mb-3 inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1 text-xs font-medium text-zinc-300",children:[T.jsx(CD,{className:"h-3.5 w-3.5 text-indigo-300"})," Enlaces de referencia"]}),T.jsx("textarea",{ref:L,value:i,onChange:P=>a(P.target.value),placeholder:`Pega aquí tus enlaces de referencia, uno por línea
|
||
https://www.figma.com/...
|
||
https://drive.google.com/...`,className:"h-40 max-h-40 w-full resize-none overflow-y-auto bg-transparent pr-2 text-[15px] leading-7 text-zinc-100 placeholder:text-zinc-500 outline-none scrollbar-thin",disabled:t})]})]}),v==="review"&&T.jsxs("div",{className:"rounded-[24px] border border-white/10 bg-white/5 p-4",children:[T.jsx("p",{className:"mb-5 text-sm leading-7 text-zinc-300",children:"Revisa los detalles de tu solicitud antes de enviarla."}),T.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[T.jsxs("div",{className:"rounded-2xl border border-white/10 bg-black/20 p-4",children:[T.jsx("h4",{className:"text-xs font-semibold uppercase tracking-widest text-zinc-500 mb-3",children:"Contenido Principal"}),T.jsxs("div",{className:"space-y-2",children:[T.jsxs("div",{className:"flex justify-between text-sm",children:[T.jsx("span",{className:"text-zinc-400",children:"Nota de Voz:"}),T.jsx("span",{className:zt("font-medium",g?"text-emerald-400":"text-amber-400"),children:g?"Cargada":"Faltante"})]}),T.jsxs("div",{className:"flex justify-between text-sm",children:[T.jsx("span",{className:"text-zinc-400",children:"Imágenes:"}),T.jsxs("span",{className:zt("font-medium",K.length>0?"text-emerald-400":"text-amber-400"),children:[K.length," archivo(s)"]})]})]})]}),T.jsxs("div",{className:"rounded-2xl border border-white/10 bg-black/20 p-4",children:[T.jsx("h4",{className:"text-xs font-semibold uppercase tracking-widest text-zinc-500 mb-3",children:"Archivos Adicionales"}),T.jsxs("div",{className:"space-y-2",children:[T.jsxs("div",{className:"flex justify-between text-sm",children:[T.jsx("span",{className:"text-zinc-400",children:"Documentos:"}),T.jsxs("span",{className:"text-zinc-200 font-medium",children:[B.length," archivo(s)"]})]}),T.jsxs("div",{className:"flex justify-between text-sm",children:[T.jsx("span",{className:"text-zinc-400",children:"Campaña Previa:"}),T.jsx("span",{className:"text-zinc-200 font-medium",children:A==="yes"?`${ee.length} archivo(s)`:"No aplica"})]})]})]})]}),T.jsxs("div",{className:"mt-4 rounded-2xl border border-white/10 bg-black/20 p-4",children:[T.jsx("h4",{className:"text-xs font-semibold uppercase tracking-widest text-zinc-500 mb-2",children:"Enlaces y Referencias"}),T.jsx("p",{className:"text-sm text-zinc-300 italic whitespace-pre-wrap",children:i.trim()?i:"Sin enlaces agregados"})]})]}),T.jsx("input",{type:"file",multiple:!0,className:"hidden",ref:V,onChange:le,accept:v==="images"?"image/*":void 0}),N&&T.jsxs("div",{className:"mt-4 flex items-start gap-3 rounded-2xl border border-amber-500/20 bg-amber-500/10 px-4 py-3 text-sm text-amber-100",children:[T.jsx(zu,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-300"}),T.jsx("span",{children:N})]}),T.jsxs("div",{className:"sticky bottom-0 mt-5 flex flex-wrap items-center justify-between gap-3 border-t border-white/5 bg-[linear-gradient(180deg,rgba(8,12,24,0),rgba(8,12,24,0.96)_28%)] pt-4 pb-1",children:[T.jsx("div",{className:"text-sm text-zinc-400",children:ie?"Los pasos obligatorios están completos. Ya puedes enviar la solicitud.":"Completa primero la nota de voz y las imágenes de referencia."}),T.jsx("div",{className:"flex flex-wrap items-center gap-2",children:v!=="review"?T.jsxs("button",{onClick:w,disabled:t,className:"inline-flex items-center gap-2 rounded-2xl border border-white/10 bg-black/25 px-4 py-3 text-sm font-semibold text-zinc-100 transition hover:border-white/20 hover:bg-black/35 disabled:opacity-50",children:["Continuar",T.jsx(pD,{className:"h-4 w-4"})]}):T.jsxs("button",{onClick:q,disabled:t||!ie,className:"inline-flex items-center gap-2 rounded-2xl bg-[linear-gradient(135deg,#6366f1_0%,#2563eb_100%)] px-5 py-3 text-sm font-semibold text-white shadow-[0_18px_40px_rgba(79,70,229,0.2)] transition hover:brightness-110 disabled:cursor-not-allowed disabled:opacity-50",children:[t?T.jsx(KS,{className:"h-4 w-4 animate-spin"}):T.jsx(jD,{className:"h-4 w-4"}),"Finalizar y enviar"]})})]})]})]}),T.jsxs("aside",{className:"rounded-[28px] border border-white/10 bg-white/5 p-4 sm:p-5",children:[T.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"Panel de control"}),T.jsxs("div",{className:"mt-4 space-y-3",children:[T.jsxs("div",{className:"rounded-2xl border border-white/10 bg-black/20 p-4",children:[T.jsx("p",{className:"text-xs uppercase tracking-[0.22em] text-zinc-500",children:"Obligatorios"}),T.jsxs("div",{className:"mt-3 space-y-3",children:[T.jsxs("div",{className:"flex items-center justify-between text-sm",children:[T.jsx("span",{className:"text-zinc-300",children:"Nota de voz"}),T.jsx("span",{className:zt("font-semibold",g?"text-emerald-300":"text-zinc-500"),children:g?"Lista":"Pendiente"})]}),T.jsxs("div",{className:"flex items-center justify-between text-sm",children:[T.jsx("span",{className:"text-zinc-300",children:"Imágenes"}),T.jsx("span",{className:zt("font-semibold",K.length>0?"text-emerald-300":"text-zinc-500"),children:K.length>0?`${K.length} cargada(s)`:"Pendiente"})]})]})]}),T.jsxs("div",{className:"rounded-2xl border border-white/10 bg-black/20 p-4",children:[T.jsx("p",{className:"text-xs uppercase tracking-[0.22em] text-zinc-500",children:"Opcionales"}),T.jsxs("div",{className:"mt-3 space-y-3 text-sm text-zinc-300",children:[T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("span",{children:"Documentos"}),T.jsx("span",{className:"font-semibold text-white",children:B.length})]}),T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("span",{children:"Campaña"}),T.jsx("span",{className:zt("font-semibold",A==="yes"?"text-emerald-300":"text-zinc-500"),children:A==="yes"?`${ee.length} archivo(s)`:A==="no"?"No aplica":"Pendiente"})]}),T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("span",{children:"Enlaces"}),T.jsx("span",{className:"font-semibold text-white",children:i.split(`
|
||
`).map(P=>P.trim()).filter(Boolean).length})]})]})]}),T.jsxs("div",{className:"rounded-2xl border border-indigo-400/20 bg-[linear-gradient(180deg,rgba(99,102,241,0.16),rgba(99,102,241,0.04))] p-4",children:[T.jsx("p",{className:"text-sm font-semibold text-white",children:"Cómo se procesará tu solicitud"}),T.jsxs("ul",{className:"mt-3 space-y-3 text-sm leading-6 text-zinc-300",children:[T.jsx("li",{children:"• La voz y las imágenes alimentan la interpretación del brief."}),T.jsx("li",{children:"• Los documentos de apoyo se guardan completos en la carpeta del proyecto."}),T.jsx("li",{children:"• Los enlaces se agregan como referencias dentro del documento final."})]})]})]})]})]})]})},Jw=6048e5,x3=864e5,mx=Symbol.for("constructDateFrom");function ar(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&mx in e?e[mx](t):e instanceof Date?new e.constructor(t):new Date(t)}function Nn(e,t){return ar(t||e,e)}let S3={};function ec(){return S3}function So(e,t){var d,p,m,g;const i=ec(),a=(t==null?void 0:t.weekStartsOn)??((p=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:p.weekStartsOn)??i.weekStartsOn??((g=(m=i.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)??0,o=Nn(e,t==null?void 0:t.in),u=o.getDay(),c=(u<a?7:0)+u-a;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function qu(e,t){return So(e,{...t,weekStartsOn:1})}function eT(e,t){const i=Nn(e,t==null?void 0:t.in),a=i.getFullYear(),o=ar(i,0);o.setFullYear(a+1,0,4),o.setHours(0,0,0,0);const u=qu(o),c=ar(i,0);c.setFullYear(a,0,4),c.setHours(0,0,0,0);const d=qu(c);return i.getTime()>=u.getTime()?a+1:i.getTime()>=d.getTime()?a:a-1}function px(e){const t=Nn(e),i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),+e-+i}function w3(e,...t){const i=ar.bind(null,t.find(a=>typeof a=="object"));return t.map(i)}function gx(e,t){const i=Nn(e,t==null?void 0:t.in);return i.setHours(0,0,0,0),i}function T3(e,t,i){const[a,o]=w3(i==null?void 0:i.in,e,t),u=gx(a),c=gx(o),d=+u-px(u),p=+c-px(c);return Math.round((d-p)/x3)}function E3(e,t){const i=eT(e,t),a=ar(e,0);return a.setFullYear(i,0,4),a.setHours(0,0,0,0),qu(a)}function A3(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _3(e){return!(!A3(e)&&typeof e!="number"||isNaN(+Nn(e)))}function C3(e,t){const i=Nn(e,t==null?void 0:t.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}const k3={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},M3=(e,t,i)=>{let a;const o=k3[e];return typeof o=="string"?a=o:t===1?a=o.one:a=o.other.replace("{{count}}",t.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+a:a+" ago":a};function Zd(e){return(t={})=>{const i=t.width?String(t.width):e.defaultWidth;return e.formats[i]||e.formats[e.defaultWidth]}}const D3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},N3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},R3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},O3={date:Zd({formats:D3,defaultWidth:"full"}),time:Zd({formats:N3,defaultWidth:"full"}),dateTime:Zd({formats:R3,defaultWidth:"full"})},z3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},L3=(e,t,i,a)=>z3[e];function $s(e){return(t,i)=>{const a=i!=null&&i.context?String(i.context):"standalone";let o;if(a==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,d=i!=null&&i.width?String(i.width):c;o=e.formattingValues[d]||e.formattingValues[c]}else{const c=e.defaultWidth,d=i!=null&&i.width?String(i.width):e.defaultWidth;o=e.values[d]||e.values[c]}const u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}}const j3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},I3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},U3={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},B3={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},P3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},V3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},H3=(e,t)=>{const i=Number(e),a=i%100;if(a>20||a<10)switch(a%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},q3={ordinalNumber:H3,era:$s({values:j3,defaultWidth:"wide"}),quarter:$s({values:I3,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$s({values:U3,defaultWidth:"wide"}),day:$s({values:B3,defaultWidth:"wide"}),dayPeriod:$s({values:P3,defaultWidth:"wide",formattingValues:V3,defaultFormattingWidth:"wide"})};function Js(e){return(t,i={})=>{const a=i.width,o=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],u=t.match(o);if(!u)return null;const c=u[0],d=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],p=Array.isArray(d)?G3(d,y=>y.test(c)):F3(d,y=>y.test(c));let m;m=e.valueCallback?e.valueCallback(p):p,m=i.valueCallback?i.valueCallback(m):m;const g=t.slice(c.length);return{value:m,rest:g}}}function F3(e,t){for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t(e[i]))return i}function G3(e,t){for(let i=0;i<e.length;i++)if(t(e[i]))return i}function Y3(e){return(t,i={})=>{const a=t.match(e.matchPattern);if(!a)return null;const o=a[0],u=t.match(e.parsePattern);if(!u)return null;let c=e.valueCallback?e.valueCallback(u[0]):u[0];c=i.valueCallback?i.valueCallback(c):c;const d=t.slice(o.length);return{value:c,rest:d}}}const X3=/^(\d+)(th|st|nd|rd)?/i,K3=/\d+/i,Q3={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},W3={any:[/^b/i,/^(a|c)/i]},Z3={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$3={any:[/1/i,/2/i,/3/i,/4/i]},J3={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},e4={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},t4={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},n4={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},i4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},r4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},a4={ordinalNumber:Y3({matchPattern:X3,parsePattern:K3,valueCallback:e=>parseInt(e,10)}),era:Js({matchPatterns:Q3,defaultMatchWidth:"wide",parsePatterns:W3,defaultParseWidth:"any"}),quarter:Js({matchPatterns:Z3,defaultMatchWidth:"wide",parsePatterns:$3,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Js({matchPatterns:J3,defaultMatchWidth:"wide",parsePatterns:e4,defaultParseWidth:"any"}),day:Js({matchPatterns:t4,defaultMatchWidth:"wide",parsePatterns:n4,defaultParseWidth:"any"}),dayPeriod:Js({matchPatterns:i4,defaultMatchWidth:"any",parsePatterns:r4,defaultParseWidth:"any"})},s4={code:"en-US",formatDistance:M3,formatLong:O3,formatRelative:L3,localize:q3,match:a4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function o4(e,t){const i=Nn(e,t==null?void 0:t.in);return T3(i,C3(i))+1}function l4(e,t){const i=Nn(e,t==null?void 0:t.in),a=+qu(i)-+E3(i);return Math.round(a/Jw)+1}function tT(e,t){var g,y,v,x;const i=Nn(e,t==null?void 0:t.in),a=i.getFullYear(),o=ec(),u=(t==null?void 0:t.firstWeekContainsDate)??((y=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??o.firstWeekContainsDate??((x=(v=o.locale)==null?void 0:v.options)==null?void 0:x.firstWeekContainsDate)??1,c=ar((t==null?void 0:t.in)||e,0);c.setFullYear(a+1,0,u),c.setHours(0,0,0,0);const d=So(c,t),p=ar((t==null?void 0:t.in)||e,0);p.setFullYear(a,0,u),p.setHours(0,0,0,0);const m=So(p,t);return+i>=+d?a+1:+i>=+m?a:a-1}function u4(e,t){var d,p,m,g;const i=ec(),a=(t==null?void 0:t.firstWeekContainsDate)??((p=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((g=(m=i.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,o=tT(e,t),u=ar((t==null?void 0:t.in)||e,0);return u.setFullYear(o,0,a),u.setHours(0,0,0,0),So(u,t)}function c4(e,t){const i=Nn(e,t==null?void 0:t.in),a=+So(i,t)-+u4(i,t);return Math.round(a/Jw)+1}function qe(e,t){const i=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return i+a}const Xi={y(e,t){const i=e.getFullYear(),a=i>0?i:1-i;return qe(t==="yy"?a%100:a,t.length)},M(e,t){const i=e.getMonth();return t==="M"?String(i+1):qe(i+1,2)},d(e,t){return qe(e.getDate(),t.length)},a(e,t){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h(e,t){return qe(e.getHours()%12||12,t.length)},H(e,t){return qe(e.getHours(),t.length)},m(e,t){return qe(e.getMinutes(),t.length)},s(e,t){return qe(e.getSeconds(),t.length)},S(e,t){const i=t.length,a=e.getMilliseconds(),o=Math.trunc(a*Math.pow(10,i-3));return qe(o,t.length)}},Na={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yx={G:function(e,t,i){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(a,{width:"abbreviated"});case"GGGGG":return i.era(a,{width:"narrow"});case"GGGG":default:return i.era(a,{width:"wide"})}},y:function(e,t,i){if(t==="yo"){const a=e.getFullYear(),o=a>0?a:1-a;return i.ordinalNumber(o,{unit:"year"})}return Xi.y(e,t)},Y:function(e,t,i,a){const o=tT(e,a),u=o>0?o:1-o;if(t==="YY"){const c=u%100;return qe(c,2)}return t==="Yo"?i.ordinalNumber(u,{unit:"year"}):qe(u,t.length)},R:function(e,t){const i=eT(e);return qe(i,t.length)},u:function(e,t){const i=e.getFullYear();return qe(i,t.length)},Q:function(e,t,i){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return qe(a,2);case"Qo":return i.ordinalNumber(a,{unit:"quarter"});case"QQQ":return i.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,i){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return qe(a,2);case"qo":return i.ordinalNumber(a,{unit:"quarter"});case"qqq":return i.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,i){const a=e.getMonth();switch(t){case"M":case"MM":return Xi.M(e,t);case"Mo":return i.ordinalNumber(a+1,{unit:"month"});case"MMM":return i.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,i){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return qe(a+1,2);case"Lo":return i.ordinalNumber(a+1,{unit:"month"});case"LLL":return i.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,i,a){const o=c4(e,a);return t==="wo"?i.ordinalNumber(o,{unit:"week"}):qe(o,t.length)},I:function(e,t,i){const a=l4(e);return t==="Io"?i.ordinalNumber(a,{unit:"week"}):qe(a,t.length)},d:function(e,t,i){return t==="do"?i.ordinalNumber(e.getDate(),{unit:"date"}):Xi.d(e,t)},D:function(e,t,i){const a=o4(e);return t==="Do"?i.ordinalNumber(a,{unit:"dayOfYear"}):qe(a,t.length)},E:function(e,t,i){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return i.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(a,{width:"short",context:"formatting"});case"EEEE":default:return i.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,i,a){const o=e.getDay(),u=(o-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(u);case"ee":return qe(u,2);case"eo":return i.ordinalNumber(u,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,i,a){const o=e.getDay(),u=(o-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(u);case"cc":return qe(u,t.length);case"co":return i.ordinalNumber(u,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,i){const a=e.getDay(),o=a===0?7:a;switch(t){case"i":return String(o);case"ii":return qe(o,t.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(a,{width:"short",context:"formatting"});case"iiii":default:return i.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,i){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,i){const a=e.getHours();let o;switch(a===12?o=Na.noon:a===0?o=Na.midnight:o=a/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,i){const a=e.getHours();let o;switch(a>=17?o=Na.evening:a>=12?o=Na.afternoon:a>=4?o=Na.morning:o=Na.night,t){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,i){if(t==="ho"){let a=e.getHours()%12;return a===0&&(a=12),i.ordinalNumber(a,{unit:"hour"})}return Xi.h(e,t)},H:function(e,t,i){return t==="Ho"?i.ordinalNumber(e.getHours(),{unit:"hour"}):Xi.H(e,t)},K:function(e,t,i){const a=e.getHours()%12;return t==="Ko"?i.ordinalNumber(a,{unit:"hour"}):qe(a,t.length)},k:function(e,t,i){let a=e.getHours();return a===0&&(a=24),t==="ko"?i.ordinalNumber(a,{unit:"hour"}):qe(a,t.length)},m:function(e,t,i){return t==="mo"?i.ordinalNumber(e.getMinutes(),{unit:"minute"}):Xi.m(e,t)},s:function(e,t,i){return t==="so"?i.ordinalNumber(e.getSeconds(),{unit:"second"}):Xi.s(e,t)},S:function(e,t){return Xi.S(e,t)},X:function(e,t,i){const a=e.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return vx(a);case"XXXX":case"XX":return Or(a);case"XXXXX":case"XXX":default:return Or(a,":")}},x:function(e,t,i){const a=e.getTimezoneOffset();switch(t){case"x":return vx(a);case"xxxx":case"xx":return Or(a);case"xxxxx":case"xxx":default:return Or(a,":")}},O:function(e,t,i){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+bx(a,":");case"OOOO":default:return"GMT"+Or(a,":")}},z:function(e,t,i){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+bx(a,":");case"zzzz":default:return"GMT"+Or(a,":")}},t:function(e,t,i){const a=Math.trunc(+e/1e3);return qe(a,t.length)},T:function(e,t,i){return qe(+e,t.length)}};function bx(e,t=""){const i=e>0?"-":"+",a=Math.abs(e),o=Math.trunc(a/60),u=a%60;return u===0?i+String(o):i+String(o)+t+qe(u,2)}function vx(e,t){return e%60===0?(e>0?"-":"+")+qe(Math.abs(e)/60,2):Or(e,t)}function Or(e,t=""){const i=e>0?"-":"+",a=Math.abs(e),o=qe(Math.trunc(a/60),2),u=qe(a%60,2);return i+o+t+u}const xx=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},nT=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},f4=(e,t)=>{const i=e.match(/(P+)(p+)?/)||[],a=i[1],o=i[2];if(!o)return xx(e,t);let u;switch(a){case"P":u=t.dateTime({width:"short"});break;case"PP":u=t.dateTime({width:"medium"});break;case"PPP":u=t.dateTime({width:"long"});break;case"PPPP":default:u=t.dateTime({width:"full"});break}return u.replace("{{date}}",xx(a,t)).replace("{{time}}",nT(o,t))},d4={p:nT,P:f4},h4=/^D+$/,m4=/^Y+$/,p4=["D","DD","YY","YYYY"];function g4(e){return h4.test(e)}function y4(e){return m4.test(e)}function b4(e,t,i){const a=v4(e,t,i);if(console.warn(a),p4.includes(e))throw new RangeError(a)}function v4(e,t,i){const a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const x4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w4=/^'([^]*?)'?$/,T4=/''/g,E4=/[a-zA-Z]/;function A4(e,t,i){var g,y,v,x;const a=ec(),o=a.locale??s4,u=a.firstWeekContainsDate??((y=(g=a.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,c=a.weekStartsOn??((x=(v=a.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,d=Nn(e,i==null?void 0:i.in);if(!_3(d))throw new RangeError("Invalid time value");let p=t.match(S4).map(A=>{const M=A[0];if(M==="p"||M==="P"){const N=d4[M];return N(A,o.formatLong)}return A}).join("").match(x4).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const M=A[0];if(M==="'")return{isToken:!1,value:_4(A)};if(yx[M])return{isToken:!0,value:A};if(M.match(E4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:A}});o.localize.preprocessor&&(p=o.localize.preprocessor(d,p));const m={firstWeekContainsDate:u,weekStartsOn:c,locale:o};return p.map(A=>{if(!A.isToken)return A.value;const M=A.value;(y4(M)||g4(M))&&b4(M,t,String(e));const N=yx[M[0]];return N(d,M,o.localize,m)}).join("")}function _4(e){const t=e.match(w4);return t?t[1].replace(T4,"'"):e}function C4(e,t){const i={};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const k4=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,M4=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,D4={};function Sx(e,t){return(D4.jsx?M4:k4).test(e)}const N4=/[ \t\n\f\r]/g;function R4(e){return typeof e=="object"?e.type==="text"?wx(e.value):!1:wx(e)}function wx(e){return e.replace(N4,"")===""}class Oo{constructor(t,i,a){this.normal=i,this.property=t,a&&(this.space=a)}}Oo.prototype.normal={};Oo.prototype.property={};Oo.prototype.space=void 0;function iT(e,t){const i={},a={};for(const o of e)Object.assign(i,o.property),Object.assign(a,o.normal);return new Oo(i,a,t)}function Fh(e){return e.toLowerCase()}class Wt{constructor(t,i){this.attribute=i,this.property=t}}Wt.prototype.attribute="";Wt.prototype.booleanish=!1;Wt.prototype.boolean=!1;Wt.prototype.commaOrSpaceSeparated=!1;Wt.prototype.commaSeparated=!1;Wt.prototype.defined=!1;Wt.prototype.mustUseProperty=!1;Wt.prototype.number=!1;Wt.prototype.overloadedBoolean=!1;Wt.prototype.property="";Wt.prototype.spaceSeparated=!1;Wt.prototype.space=void 0;let O4=0;const ke=Hr(),ht=Hr(),Gh=Hr(),se=Hr(),Ze=Hr(),qa=Hr(),sn=Hr();function Hr(){return 2**++O4}const Yh=Object.freeze(Object.defineProperty({__proto__:null,boolean:ke,booleanish:ht,commaOrSpaceSeparated:sn,commaSeparated:qa,number:se,overloadedBoolean:Gh,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),$d=Object.keys(Yh);class Km extends Wt{constructor(t,i,a,o){let u=-1;if(super(t,i),Tx(this,"space",o),typeof a=="number")for(;++u<$d.length;){const c=$d[u];Tx(this,$d[u],(a&Yh[c])===Yh[c])}}}Km.prototype.defined=!0;function Tx(e,t,i){i&&(e[t]=i)}function es(e){const t={},i={};for(const[a,o]of Object.entries(e.properties)){const u=new Km(a,e.transform(e.attributes||{},a),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),t[a]=u,i[Fh(a)]=a,i[Fh(u.attribute)]=a}return new Oo(t,i,e.space)}const rT=es({properties:{ariaActiveDescendant:null,ariaAtomic:ht,ariaAutoComplete:null,ariaBusy:ht,ariaChecked:ht,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:ht,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:ht,ariaFlowTo:Ze,ariaGrabbed:ht,ariaHasPopup:null,ariaHidden:ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:se,ariaLive:null,ariaModal:ht,ariaMultiLine:ht,ariaMultiSelectable:ht,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:ht,ariaReadOnly:ht,ariaRelevant:null,ariaRequired:ht,ariaRoleDescription:Ze,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:ht,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function aT(e,t){return t in e?e[t]:t}function sT(e,t){return aT(e,t.toLowerCase())}const z4=es({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qa,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:Ze,autoFocus:ke,autoPlay:ke,blocking:Ze,capture:null,charSet:null,checked:ke,cite:null,className:Ze,cols:se,colSpan:null,content:null,contentEditable:ht,controls:ke,controlsList:Ze,coords:se|qa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:Gh,draggable:ht,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:Ze,height:se,hidden:Gh,high:se,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:ke,itemType:Ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ke,optimum:se,pattern:null,ping:Ze,placeholder:null,playsInline:ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:Ze,required:ke,reversed:ke,rows:se,rowSpan:se,sandbox:Ze,scope:null,scoped:ke,seamless:ke,selected:ke,shadowRootClonable:ke,shadowRootDelegatesFocus:ke,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:ht,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:ht,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:ht,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:sT}),L4=es({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:sn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:Ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qa,g2:qa,glyphName:qa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:sn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:se,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:sn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:sn,rev:sn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:sn,requiredFeatures:sn,requiredFonts:sn,requiredFormats:sn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:sn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:sn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:sn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:aT}),oT=es({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),lT=es({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sT}),uT=es({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),j4={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},I4=/[A-Z]/g,Ex=/-[a-z]/g,U4=/^data[-\w.:]+$/i;function B4(e,t){const i=Fh(t);let a=t,o=Wt;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&U4.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(Ex,V4);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!Ex.test(u)){let c=u.replace(I4,P4);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}o=Km}return new o(a,t)}function P4(e){return"-"+e.toLowerCase()}function V4(e){return e.charAt(1).toUpperCase()}const H4=iT([rT,z4,oT,lT,uT],"html"),Qm=iT([rT,L4,oT,lT,uT],"svg");function q4(e){return e.join(" ").trim()}var Ra={},Jd,Ax;function F4(){if(Ax)return Jd;Ax=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
||
`,m="/",g="*",y="",v="comment",x="declaration";function A(N,C){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];C=C||{};var V=1,L=1;function Y(le){var J=le.match(t);J&&(V+=J.length);var R=le.lastIndexOf(p);L=~R?le.length-R:L+le.length}function Z(){var le={line:V,column:L};return function(J){return J.position=new z(le),ee(),J}}function z(le){this.start=le,this.end={line:V,column:L},this.source=C.source}z.prototype.content=N;function K(le){var J=new Error(C.source+":"+V+":"+L+": "+le);if(J.reason=le,J.filename=C.source,J.line=V,J.column=L,J.source=N,!C.silent)throw J}function B(le){var J=le.exec(N);if(J){var R=J[0];return Y(R),N=N.slice(R.length),J}}function ee(){B(i)}function ie(le){var J;for(le=le||[];J=$();)J!==!1&&le.push(J);return le}function $(){var le=Z();if(!(m!=N.charAt(0)||g!=N.charAt(1))){for(var J=2;y!=N.charAt(J)&&(g!=N.charAt(J)||m!=N.charAt(J+1));)++J;if(J+=2,y===N.charAt(J-1))return K("End of comment missing");var R=N.slice(2,J-2);return L+=2,Y(R),N=N.slice(J),L+=2,le({type:v,comment:R})}}function ne(){var le=Z(),J=B(a);if(J){if($(),!B(o))return K("property missing ':'");var R=B(u),W=le({type:x,property:M(J[0].replace(e,y)),value:R?M(R[0].replace(e,y)):y});return B(c),W}}function ge(){var le=[];ie(le);for(var J;J=ne();)J!==!1&&(le.push(J),ie(le));return le}return ee(),ge()}function M(N){return N?N.replace(d,y):y}return Jd=A,Jd}var _x;function G4(){if(_x)return Ra;_x=1;var e=Ra&&Ra.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.default=i;const t=e(F4());function i(a,o){let u=null;if(!a||typeof a!="string")return u;const c=(0,t.default)(a),d=typeof o=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:g}=p;d?o(m,g,p):g&&(u=u||{},u[m]=g)}),u}return Ra}var eo={},Cx;function Y4(){if(Cx)return eo;Cx=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,u=function(m){return!m||i.test(m)||e.test(m)},c=function(m,g){return g.toUpperCase()},d=function(m,g){return"".concat(g,"-")},p=function(m,g){return g===void 0&&(g={}),u(m)?m:(m=m.toLowerCase(),g.reactCompat?m=m.replace(o,d):m=m.replace(a,d),m.replace(t,c))};return eo.camelCase=p,eo}var to,kx;function X4(){if(kx)return to;kx=1;var e=to&&to.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(G4()),i=Y4();function a(o,u){var c={};return!o||typeof o!="string"||(0,t.default)(o,function(d,p){d&&p&&(c[(0,i.camelCase)(d,u)]=p)}),c}return a.default=a,to=a,to}var K4=X4();const Q4=em(K4),cT=fT("end"),Wm=fT("start");function fT(e){return t;function t(i){const a=i&&i.position&&i.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function W4(e){const t=Wm(e),i=cT(e);if(t&&i)return{start:t,end:i}}function co(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Mx(e.position):"start"in e||"end"in e?Mx(e):"line"in e||"column"in e?Xh(e):""}function Xh(e){return Dx(e&&e.line)+":"+Dx(e&&e.column)}function Mx(e){return Xh(e&&e.start)+"-"+Xh(e&&e.end)}function Dx(e){return e&&typeof e=="number"?e:1}class Mt extends Error{constructor(t,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let o="",u={},c=!1;if(i&&("line"in i&&"column"in i?u={place:i}:"start"in i&&"end"in i?u={place:i}:"type"in i?u={ancestors:[i],place:i.position}:u={...i}),typeof t=="string"?o=t:!u.cause&&t&&(c=!0,o=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?u.ruleId=a:(u.source=a.slice(0,p),u.ruleId=a.slice(p+1))}if(!u.place&&u.ancestors&&u.ancestors){const p=u.ancestors[u.ancestors.length-1];p&&(u.place=p.position)}const d=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=co(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Mt.prototype.file="";Mt.prototype.name="";Mt.prototype.reason="";Mt.prototype.message="";Mt.prototype.stack="";Mt.prototype.column=void 0;Mt.prototype.line=void 0;Mt.prototype.ancestors=void 0;Mt.prototype.cause=void 0;Mt.prototype.fatal=void 0;Mt.prototype.place=void 0;Mt.prototype.ruleId=void 0;Mt.prototype.source=void 0;const Zm={}.hasOwnProperty,Z4=new Map,$4=/[A-Z]/g,J4=new Set(["table","tbody","thead","tfoot","tr"]),eL=new Set(["td","th"]),dT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tL(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=uL(i,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=lL(i,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Qm:H4,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=hT(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function hT(e,t,i){if(t.type==="element")return nL(e,t,i);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return iL(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return aL(e,t,i);if(t.type==="mdxjsEsm")return rL(e,t);if(t.type==="root")return sL(e,t,i);if(t.type==="text")return oL(e,t)}function nL(e,t,i){const a=e.schema;let o=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=Qm,e.schema=o),e.ancestors.push(t);const u=pT(e,t.tagName,!1),c=cL(e,t);let d=Jm(e,t);return J4.has(t.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!R4(p):!0})),mT(e,c,u,t),$m(c,d),e.ancestors.pop(),e.schema=a,e.create(t,u,c,i)}function iL(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}wo(e,t.position)}function rL(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);wo(e,t.position)}function aL(e,t,i){const a=e.schema;let o=a;t.name==="svg"&&a.space==="html"&&(o=Qm,e.schema=o),e.ancestors.push(t);const u=t.name===null?e.Fragment:pT(e,t.name,!0),c=fL(e,t),d=Jm(e,t);return mT(e,c,u,t),$m(c,d),e.ancestors.pop(),e.schema=a,e.create(t,u,c,i)}function sL(e,t,i){const a={};return $m(a,Jm(e,t)),e.create(t,e.Fragment,a,i)}function oL(e,t){return t.value}function mT(e,t,i,a){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(t.node=a)}function $m(e,t){if(t.length>0){const i=t.length>1?t:t[0];i&&(e.children=i)}}function lL(e,t,i){return a;function a(o,u,c,d){const m=Array.isArray(c.children)?i:t;return d?m(u,c,d):m(u,c)}}function uL(e,t){return i;function i(a,o,u,c){const d=Array.isArray(u.children),p=Wm(a);return t(o,u,c,d,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function cL(e,t){const i={};let a,o;for(o in t.properties)if(o!=="children"&&Zm.call(t.properties,o)){const u=dL(e,o,t.properties[o]);if(u){const[c,d]=u;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&eL.has(t.tagName)?a=d:i[c]=d}}if(a){const u=i.style||(i.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function fL(e,t){const i={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,e.evaluater.evaluateExpression(d.argument))}else wo(e,t.position);else{const o=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,u=e.evaluater.evaluateExpression(d.expression)}else wo(e,t.position);else u=a.value===null?!0:a.value;i[o]=u}return i}function Jm(e,t){const i=[];let a=-1;const o=e.passKeys?new Map:Z4;for(;++a<t.children.length;){const u=t.children[a];let c;if(e.passKeys){const p=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(p){const m=o.get(p)||0;c=p+"-"+m,o.set(p,m+1)}}const d=hT(e,u,c);d!==void 0&&i.push(d)}return i}function dL(e,t,i){const a=B4(e.schema,t);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?C4(i):q4(i)),a.property==="style"){let o=typeof i=="object"?i:hL(e,String(i));return e.stylePropertyNameCase==="css"&&(o=mL(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&a.space?j4[a.property]||a.property:a.attribute,i]}}function hL(e,t){try{return Q4(t,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const a=i,o=new Mt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=dT+"#cannot-parse-style-attribute",o}}function pT(e,t,i){let a;if(!i)a={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let u=-1,c;for(;++u<o.length;){const d=Sx(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}a=c}else a=Sx(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const o=a.value;return Zm.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(a);wo(e)}function wo(e,t){const i=new Mt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=dT+"#cannot-handle-mdx-estrees-without-createevaluater",i}function mL(e){const t={};let i;for(i in e)Zm.call(e,i)&&(t[pL(i)]=e[i]);return t}function pL(e){let t=e.replace($4,gL);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function gL(e){return"-"+e.toLowerCase()}const eh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},yL={};function bL(e,t){const i=yL,a=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return gT(e,a,o)}function gT(e,t,i){if(vL(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Nx(e.children,t,i)}return Array.isArray(e)?Nx(e,t,i):""}function Nx(e,t,i){const a=[];let o=-1;for(;++o<e.length;)a[o]=gT(e[o],t,i);return a.join("")}function vL(e){return!!(e&&typeof e=="object")}const Rx=document.createElement("i");function ep(e){const t="&"+e+";";Rx.innerHTML=t;const i=Rx.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===t?!1:i}function Yn(e,t,i,a){const o=e.length;let u=0,c;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,i=i>0?i:0,a.length<1e4)c=Array.from(a),c.unshift(t,i),e.splice(...c);else for(i&&e.splice(t,i);u<a.length;)c=a.slice(u,u+1e4),c.unshift(t,0),e.splice(...c),u+=1e4,t+=1e4}function vn(e,t){return e.length>0?(Yn(e,e.length,0,t),e):t}const Ox={}.hasOwnProperty;function xL(e){const t={};let i=-1;for(;++i<e.length;)SL(t,e[i]);return t}function SL(e,t){let i;for(i in t){const o=(Ox.call(e,i)?e[i]:void 0)||(e[i]={}),u=t[i];let c;if(u)for(c in u){Ox.call(o,c)||(o[c]=[]);const d=u[c];wL(o[c],Array.isArray(d)?d:d?[d]:[])}}}function wL(e,t){let i=-1;const a=[];for(;++i<t.length;)(t[i].add==="after"?e:a).push(t[i]);Yn(e,0,0,a)}function yT(e,t){const i=Number.parseInt(e,t);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Fa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vn=cr(/[A-Za-z]/),on=cr(/[\dA-Za-z]/),TL=cr(/[#-'*+\--9=?A-Z^-~]/);function Kh(e){return e!==null&&(e<32||e===127)}const Qh=cr(/\d/),EL=cr(/[\dA-Fa-f]/),AL=cr(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function Qt(e){return e!==null&&(e<0||e===32)}function Be(e){return e===-2||e===-1||e===32}const _L=cr(new RegExp("\\p{P}|\\p{S}","u")),CL=cr(/\s/);function cr(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function ts(e){const t=[];let i=-1,a=0,o=0;for(;++i<e.length;){const u=e.charCodeAt(i);let c="";if(u===37&&on(e.charCodeAt(i+1))&&on(e.charCodeAt(i+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const d=e.charCodeAt(i+1);u<56320&&d>56319&&d<57344?(c=String.fromCharCode(u,d),o=1):c="�"}else c=String.fromCharCode(u);c&&(t.push(e.slice(a,i),encodeURIComponent(c)),a=i+o+1,c=""),o&&(i+=o,o=0)}return t.join("")+e.slice(a)}function $e(e,t,i,a){const o=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(p){return Be(p)?(e.enter(i),d(p)):t(p)}function d(p){return Be(p)&&u++<o?(e.consume(p),d):(e.exit(i),t(p))}}const kL={tokenize:ML};function ML(e){const t=e.attempt(this.parser.constructs.contentInitial,a,o);let i;return t;function a(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),$e(e,t,"linePrefix")}function o(d){return e.enter("paragraph"),u(d)}function u(d){const p=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return we(d)?(e.consume(d),e.exit("chunkText"),u):(e.consume(d),c)}}const DL={tokenize:NL},zx={tokenize:RL};function NL(e){const t=this,i=[];let a=0,o,u,c;return d;function d(L){if(a<i.length){const Y=i[a];return t.containerState=Y[1],e.attempt(Y[0].continuation,p,m)(L)}return m(L)}function p(L){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&V();const Y=t.events.length;let Z=Y,z;for(;Z--;)if(t.events[Z][0]==="exit"&&t.events[Z][1].type==="chunkFlow"){z=t.events[Z][1].end;break}C(a);let K=Y;for(;K<t.events.length;)t.events[K][1].end={...z},K++;return Yn(t.events,Z+1,0,t.events.slice(Y)),t.events.length=K,m(L)}return d(L)}function m(L){if(a===i.length){if(!o)return v(L);if(o.currentConstruct&&o.currentConstruct.concrete)return A(L);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zx,g,y)(L)}function g(L){return o&&V(),C(a),v(L)}function y(L){return t.parser.lazy[t.now().line]=a!==i.length,c=t.now().offset,A(L)}function v(L){return t.containerState={},e.attempt(zx,x,A)(L)}function x(L){return a++,i.push([t.currentConstruct,t.containerState]),v(L)}function A(L){if(L===null){o&&V(),C(0),e.consume(L);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),M(L)}function M(L){if(L===null){N(e.exit("chunkFlow"),!0),C(0),e.consume(L);return}return we(L)?(e.consume(L),N(e.exit("chunkFlow")),a=0,t.interrupt=void 0,d):(e.consume(L),M)}function N(L,Y){const Z=t.sliceStream(L);if(Y&&Z.push(null),L.previous=u,u&&(u.next=L),u=L,o.defineSkip(L.start),o.write(Z),t.parser.lazy[L.start.line]){let z=o.events.length;for(;z--;)if(o.events[z][1].start.offset<c&&(!o.events[z][1].end||o.events[z][1].end.offset>c))return;const K=t.events.length;let B=K,ee,ie;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(ee){ie=t.events[B][1].end;break}ee=!0}for(C(a),z=K;z<t.events.length;)t.events[z][1].end={...ie},z++;Yn(t.events,B+1,0,t.events.slice(K)),t.events.length=z}}function C(L){let Y=i.length;for(;Y-- >L;){const Z=i[Y];t.containerState=Z[1],Z[0].exit.call(t,e)}i.length=L}function V(){o.write([null]),u=void 0,o=void 0,t.containerState._closeFlow=void 0}}function RL(e,t,i){return $e(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Lx(e){if(e===null||Qt(e)||CL(e))return 1;if(_L(e))return 2}function tp(e,t,i){const a=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!a.includes(u)&&(t=u(t,i),a.push(u))}return t}const Wh={name:"attention",resolveAll:OL,tokenize:zL};function OL(e,t){let i=-1,a,o,u,c,d,p,m,g;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(a=i;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[a][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;p=e[a][1].end.offset-e[a][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const y={...e[a][1].end},v={...e[i][1].start};jx(y,-p),jx(v,p),c={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...e[a][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:v},u={type:p>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[i][1].start}},o={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[a][1].end={...c.start},e[i][1].start={...d.end},m=[],e[a][1].end.offset-e[a][1].start.offset&&(m=vn(m,[["enter",e[a][1],t],["exit",e[a][1],t]])),m=vn(m,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",u,t]]),m=vn(m,tp(t.parser.constructs.insideSpan.null,e.slice(a+1,i),t)),m=vn(m,[["exit",u,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[i][1].end.offset-e[i][1].start.offset?(g=2,m=vn(m,[["enter",e[i][1],t],["exit",e[i][1],t]])):g=0,Yn(e,a-1,i-a+3,m),i=a+m.length-g-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function zL(e,t){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,o=Lx(a);let u;return c;function c(p){return u=p,e.enter("attentionSequence"),d(p)}function d(p){if(p===u)return e.consume(p),d;const m=e.exit("attentionSequence"),g=Lx(p),y=!g||g===2&&o||i.includes(p),v=!o||o===2&&g||i.includes(a);return m._open=!!(u===42?y:y&&(o||!v)),m._close=!!(u===42?v:v&&(g||!y)),t(p)}}function jx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const LL={name:"autolink",tokenize:jL};function jL(e,t,i){let a=0;return o;function o(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(x){return Vn(x)?(e.consume(x),c):x===64?i(x):m(x)}function c(x){return x===43||x===45||x===46||on(x)?(a=1,d(x)):m(x)}function d(x){return x===58?(e.consume(x),a=0,p):(x===43||x===45||x===46||on(x))&&a++<32?(e.consume(x),d):(a=0,m(x))}function p(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||Kh(x)?i(x):(e.consume(x),p)}function m(x){return x===64?(e.consume(x),g):TL(x)?(e.consume(x),m):i(x)}function g(x){return on(x)?y(x):i(x)}function y(x){return x===46?(e.consume(x),a=0,g):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):v(x)}function v(x){if((x===45||on(x))&&a++<63){const A=x===45?v:y;return e.consume(x),A}return i(x)}}const tc={partial:!0,tokenize:IL};function IL(e,t,i){return a;function a(u){return Be(u)?$e(e,o,"linePrefix")(u):o(u)}function o(u){return u===null||we(u)?t(u):i(u)}}const bT={continuation:{tokenize:BL},exit:PL,name:"blockQuote",tokenize:UL};function UL(e,t,i){const a=this;return o;function o(c){if(c===62){const d=a.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return i(c)}function u(c){return Be(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function BL(e,t,i){const a=this;return o;function o(c){return Be(c)?$e(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(bT,t,i)(c)}}function PL(e){e.exit("blockQuote")}const vT={name:"characterEscape",tokenize:VL};function VL(e,t,i){return a;function a(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),o}function o(u){return AL(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):i(u)}}const xT={name:"characterReference",tokenize:HL};function HL(e,t,i){const a=this;let o=0,u,c;return d;function d(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),p}function p(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),u=31,c=on,g(y))}function m(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=EL,g):(e.enter("characterReferenceValue"),u=7,c=Qh,g(y))}function g(y){if(y===59&&o){const v=e.exit("characterReferenceValue");return c===on&&!ep(a.sliceSerialize(v))?i(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(y)&&o++<u?(e.consume(y),g):i(y)}}const Ix={partial:!0,tokenize:FL},Ux={concrete:!0,name:"codeFenced",tokenize:qL};function qL(e,t,i){const a=this,o={partial:!0,tokenize:Z};let u=0,c=0,d;return p;function p(z){return m(z)}function m(z){const K=a.events[a.events.length-1];return u=K&&K[1].type==="linePrefix"?K[2].sliceSerialize(K[1],!0).length:0,d=z,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(z)}function g(z){return z===d?(c++,e.consume(z),g):c<3?i(z):(e.exit("codeFencedFenceSequence"),Be(z)?$e(e,y,"whitespace")(z):y(z))}function y(z){return z===null||we(z)?(e.exit("codeFencedFence"),a.interrupt?t(z):e.check(Ix,M,Y)(z)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(z))}function v(z){return z===null||we(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(z)):Be(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$e(e,x,"whitespace")(z)):z===96&&z===d?i(z):(e.consume(z),v)}function x(z){return z===null||we(z)?y(z):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),A(z))}function A(z){return z===null||we(z)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(z)):z===96&&z===d?i(z):(e.consume(z),A)}function M(z){return e.attempt(o,Y,N)(z)}function N(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),C}function C(z){return u>0&&Be(z)?$e(e,V,"linePrefix",u+1)(z):V(z)}function V(z){return z===null||we(z)?e.check(Ix,M,Y)(z):(e.enter("codeFlowValue"),L(z))}function L(z){return z===null||we(z)?(e.exit("codeFlowValue"),V(z)):(e.consume(z),L)}function Y(z){return e.exit("codeFenced"),t(z)}function Z(z,K,B){let ee=0;return ie;function ie(J){return z.enter("lineEnding"),z.consume(J),z.exit("lineEnding"),$}function $(J){return z.enter("codeFencedFence"),Be(J)?$e(z,ne,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):ne(J)}function ne(J){return J===d?(z.enter("codeFencedFenceSequence"),ge(J)):B(J)}function ge(J){return J===d?(ee++,z.consume(J),ge):ee>=c?(z.exit("codeFencedFenceSequence"),Be(J)?$e(z,le,"whitespace")(J):le(J)):B(J)}function le(J){return J===null||we(J)?(z.exit("codeFencedFence"),K(J)):B(J)}}}function FL(e,t,i){const a=this;return o;function o(c){return c===null?i(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}const th={name:"codeIndented",tokenize:YL},GL={partial:!0,tokenize:XL};function YL(e,t,i){const a=this;return o;function o(m){return e.enter("codeIndented"),$e(e,u,"linePrefix",5)(m)}function u(m){const g=a.events[a.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(m):i(m)}function c(m){return m===null?p(m):we(m)?e.attempt(GL,c,p)(m):(e.enter("codeFlowValue"),d(m))}function d(m){return m===null||we(m)?(e.exit("codeFlowValue"),c(m)):(e.consume(m),d)}function p(m){return e.exit("codeIndented"),t(m)}}function XL(e,t,i){const a=this;return o;function o(c){return a.parser.lazy[a.now().line]?i(c):we(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):$e(e,u,"linePrefix",5)(c)}function u(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):we(c)?o(c):i(c)}}const KL={name:"codeText",previous:WL,resolve:QL,tokenize:ZL};function QL(e){let t=e.length-4,i=3,a,o;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=i;++a<t;)if(e[a][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[t][1].type="codeTextPadding",i+=2,t-=2;break}}for(a=i-1,t++;++a<=t;)o===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(o=a):(a===t||e[a][1].type==="lineEnding")&&(e[o][1].type="codeTextData",a!==o+2&&(e[o][1].end=e[a-1][1].end,e.splice(o+2,a-o-2),t-=a-o-2,a=o+2),o=void 0);return e}function WL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ZL(e,t,i){let a=0,o,u;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),d(y)}function d(y){return y===96?(e.consume(y),a++,d):(e.exit("codeTextSequence"),p(y))}function p(y){return y===null?i(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),p):y===96?(u=e.enter("codeTextSequence"),o=0,g(y)):we(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("codeTextData"),m(y))}function m(y){return y===null||y===32||y===96||we(y)?(e.exit("codeTextData"),p(y)):(e.consume(y),m)}function g(y){return y===96?(e.consume(y),o++,g):o===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(u.type="codeTextData",m(y))}}class $L{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,i,a){const o=i||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&no(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),no(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),no(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const i=this.left.splice(t,Number.POSITIVE_INFINITY);no(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);no(this.left,i.reverse())}}}function no(e,t){let i=0;if(t.length<1e4)e.push(...t);else for(;i<t.length;)e.push(...t.slice(i,i+1e4)),i+=1e4}function ST(e){const t={};let i=-1,a,o,u,c,d,p,m;const g=new $L(e);for(;++i<g.length;){for(;i in t;)i=t[i];if(a=g.get(i),i&&a[1].type==="chunkFlow"&&g.get(i-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,u=0,u<p.length&&p[u][1].type==="lineEndingBlank"&&(u+=2),u<p.length&&p[u][1].type==="content"))for(;++u<p.length&&p[u][1].type!=="content";)p[u][1].type==="chunkText"&&(p[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,JL(g,i)),i=t[i],m=!0);else if(a[1]._container){for(u=i,o=void 0;u--;)if(c=g.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(g.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(a[1].end={...g.get(o)[1].start},d=g.slice(o,i),d.unshift(a),g.splice(o,i-o+1,d))}}return Yn(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!m}function JL(e,t){const i=e.get(t)[1],a=e.get(t)[2];let o=t-1;const u=[];let c=i._tokenizer;c||(c=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],m={};let g,y,v=-1,x=i,A=0,M=0;const N=[M];for(;x;){for(;e.get(++o)[1]!==x;);u.push(o),x._tokenizer||(g=a.sliceStream(x),x.next||g.push(null),y&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(g),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=x,x=x.next}for(x=i;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(M=v+1,N.push(M),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):N.pop(),v=N.length;v--;){const C=d.slice(N[v],N[v+1]),V=u.pop();p.push([V,V+C.length-1]),e.splice(V,2,C)}for(p.reverse(),v=-1;++v<p.length;)m[A+p[v][0]]=A+p[v][1],A+=p[v][1]-p[v][0]-1;return m}const e5={resolve:n5,tokenize:i5},t5={partial:!0,tokenize:r5};function n5(e){return ST(e),e}function i5(e,t){let i;return a;function a(d){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?u(d):we(d)?e.check(t5,c,u)(d):(e.consume(d),o)}function u(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,o}}function r5(e,t,i){const a=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),$e(e,u,"linePrefix")}function u(c){if(c===null||we(c))return i(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(a.parser.constructs.flow,i,t)(c)}}function wT(e,t,i,a,o,u,c,d,p){const m=p||Number.POSITIVE_INFINITY;let g=0;return y;function y(C){return C===60?(e.enter(a),e.enter(o),e.enter(u),e.consume(C),e.exit(u),v):C===null||C===32||C===41||Kh(C)?i(C):(e.enter(a),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),M(C))}function v(C){return C===62?(e.enter(u),e.consume(C),e.exit(u),e.exit(o),e.exit(a),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(C))}function x(C){return C===62?(e.exit("chunkString"),e.exit(d),v(C)):C===null||C===60||we(C)?i(C):(e.consume(C),C===92?A:x)}function A(C){return C===60||C===62||C===92?(e.consume(C),x):x(C)}function M(C){return!g&&(C===null||C===41||Qt(C))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(a),t(C)):g<m&&C===40?(e.consume(C),g++,M):C===41?(e.consume(C),g--,M):C===null||C===32||C===40||Kh(C)?i(C):(e.consume(C),C===92?N:M)}function N(C){return C===40||C===41||C===92?(e.consume(C),M):M(C)}}function TT(e,t,i,a,o,u){const c=this;let d=0,p;return m;function m(x){return e.enter(a),e.enter(o),e.consume(x),e.exit(o),e.enter(u),g}function g(x){return d>999||x===null||x===91||x===93&&!p||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?i(x):x===93?(e.exit(u),e.enter(o),e.consume(x),e.exit(o),e.exit(a),t):we(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||x===91||x===93||we(x)||d++>999?(e.exit("chunkString"),g(x)):(e.consume(x),p||(p=!Be(x)),x===92?v:y)}function v(x){return x===91||x===92||x===93?(e.consume(x),d++,y):y(x)}}function ET(e,t,i,a,o,u){let c;return d;function d(v){return v===34||v===39||v===40?(e.enter(a),e.enter(o),e.consume(v),e.exit(o),c=v===40?41:v,p):i(v)}function p(v){return v===c?(e.enter(o),e.consume(v),e.exit(o),e.exit(a),t):(e.enter(u),m(v))}function m(v){return v===c?(e.exit(u),p(c)):v===null?i(v):we(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),$e(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===c||v===null||we(v)?(e.exit("chunkString"),m(v)):(e.consume(v),v===92?y:g)}function y(v){return v===c||v===92?(e.consume(v),g):g(v)}}function fo(e,t){let i;return a;function a(o){return we(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i=!0,a):Be(o)?$e(e,a,i?"linePrefix":"lineSuffix")(o):t(o)}}const a5={name:"definition",tokenize:o5},s5={partial:!0,tokenize:l5};function o5(e,t,i){const a=this;let o;return u;function u(x){return e.enter("definition"),c(x)}function c(x){return TT.call(a,e,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return o=Fa(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),p):i(x)}function p(x){return Qt(x)?fo(e,m)(x):m(x)}function m(x){return wT(e,g,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function g(x){return e.attempt(s5,y,y)(x)}function y(x){return Be(x)?$e(e,v,"whitespace")(x):v(x)}function v(x){return x===null||we(x)?(e.exit("definition"),a.parser.defined.push(o),t(x)):i(x)}}function l5(e,t,i){return a;function a(d){return Qt(d)?fo(e,o)(d):i(d)}function o(d){return ET(e,u,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return Be(d)?$e(e,c,"whitespace")(d):c(d)}function c(d){return d===null||we(d)?t(d):i(d)}}const u5={name:"hardBreakEscape",tokenize:c5};function c5(e,t,i){return a;function a(u){return e.enter("hardBreakEscape"),e.consume(u),o}function o(u){return we(u)?(e.exit("hardBreakEscape"),t(u)):i(u)}}const f5={name:"headingAtx",resolve:d5,tokenize:h5};function d5(e,t){let i=e.length-2,a=3,o,u;return e[a][1].type==="whitespace"&&(a+=2),i-2>a&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&e[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(o={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},u={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Yn(e,a,i-a+1,[["enter",o,t],["enter",u,t],["exit",u,t],["exit",o,t]])),e}function h5(e,t,i){let a=0;return o;function o(g){return e.enter("atxHeading"),u(g)}function u(g){return e.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&a++<6?(e.consume(g),c):g===null||Qt(g)?(e.exit("atxHeadingSequence"),d(g)):i(g)}function d(g){return g===35?(e.enter("atxHeadingSequence"),p(g)):g===null||we(g)?(e.exit("atxHeading"),t(g)):Be(g)?$e(e,d,"whitespace")(g):(e.enter("atxHeadingText"),m(g))}function p(g){return g===35?(e.consume(g),p):(e.exit("atxHeadingSequence"),d(g))}function m(g){return g===null||g===35||Qt(g)?(e.exit("atxHeadingText"),d(g)):(e.consume(g),m)}}const m5=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Bx=["pre","script","style","textarea"],p5={concrete:!0,name:"htmlFlow",resolveTo:b5,tokenize:v5},g5={partial:!0,tokenize:S5},y5={partial:!0,tokenize:x5};function b5(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function v5(e,t,i){const a=this;let o,u,c,d,p;return m;function m(E){return g(E)}function g(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),y}function y(E){return E===33?(e.consume(E),v):E===47?(e.consume(E),u=!0,M):E===63?(e.consume(E),o=3,a.interrupt?t:w):Vn(E)?(e.consume(E),c=String.fromCharCode(E),N):i(E)}function v(E){return E===45?(e.consume(E),o=2,x):E===91?(e.consume(E),o=5,d=0,A):Vn(E)?(e.consume(E),o=4,a.interrupt?t:w):i(E)}function x(E){return E===45?(e.consume(E),a.interrupt?t:w):i(E)}function A(E){const P="CDATA[";return E===P.charCodeAt(d++)?(e.consume(E),d===P.length?a.interrupt?t:ne:A):i(E)}function M(E){return Vn(E)?(e.consume(E),c=String.fromCharCode(E),N):i(E)}function N(E){if(E===null||E===47||E===62||Qt(E)){const P=E===47,re=c.toLowerCase();return!P&&!u&&Bx.includes(re)?(o=1,a.interrupt?t(E):ne(E)):m5.includes(c.toLowerCase())?(o=6,P?(e.consume(E),C):a.interrupt?t(E):ne(E)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(E):u?V(E):L(E))}return E===45||on(E)?(e.consume(E),c+=String.fromCharCode(E),N):i(E)}function C(E){return E===62?(e.consume(E),a.interrupt?t:ne):i(E)}function V(E){return Be(E)?(e.consume(E),V):ie(E)}function L(E){return E===47?(e.consume(E),ie):E===58||E===95||Vn(E)?(e.consume(E),Y):Be(E)?(e.consume(E),L):ie(E)}function Y(E){return E===45||E===46||E===58||E===95||on(E)?(e.consume(E),Y):Z(E)}function Z(E){return E===61?(e.consume(E),z):Be(E)?(e.consume(E),Z):L(E)}function z(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(e.consume(E),p=E,K):Be(E)?(e.consume(E),z):B(E)}function K(E){return E===p?(e.consume(E),p=null,ee):E===null||we(E)?i(E):(e.consume(E),K)}function B(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Qt(E)?Z(E):(e.consume(E),B)}function ee(E){return E===47||E===62||Be(E)?L(E):i(E)}function ie(E){return E===62?(e.consume(E),$):i(E)}function $(E){return E===null||we(E)?ne(E):Be(E)?(e.consume(E),$):i(E)}function ne(E){return E===45&&o===2?(e.consume(E),R):E===60&&o===1?(e.consume(E),W):E===62&&o===4?(e.consume(E),k):E===63&&o===3?(e.consume(E),w):E===93&&o===5?(e.consume(E),he):we(E)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(g5,q,ge)(E)):E===null||we(E)?(e.exit("htmlFlowData"),ge(E)):(e.consume(E),ne)}function ge(E){return e.check(y5,le,q)(E)}function le(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),J}function J(E){return E===null||we(E)?ge(E):(e.enter("htmlFlowData"),ne(E))}function R(E){return E===45?(e.consume(E),w):ne(E)}function W(E){return E===47?(e.consume(E),c="",oe):ne(E)}function oe(E){if(E===62){const P=c.toLowerCase();return Bx.includes(P)?(e.consume(E),k):ne(E)}return Vn(E)&&c.length<8?(e.consume(E),c+=String.fromCharCode(E),oe):ne(E)}function he(E){return E===93?(e.consume(E),w):ne(E)}function w(E){return E===62?(e.consume(E),k):E===45&&o===2?(e.consume(E),w):ne(E)}function k(E){return E===null||we(E)?(e.exit("htmlFlowData"),q(E)):(e.consume(E),k)}function q(E){return e.exit("htmlFlow"),t(E)}}function x5(e,t,i){const a=this;return o;function o(c){return we(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):i(c)}function u(c){return a.parser.lazy[a.now().line]?i(c):t(c)}}function S5(e,t,i){return a;function a(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(tc,t,i)}}const w5={name:"htmlText",tokenize:T5};function T5(e,t,i){const a=this;let o,u,c;return d;function d(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),p}function p(w){return w===33?(e.consume(w),m):w===47?(e.consume(w),Z):w===63?(e.consume(w),L):Vn(w)?(e.consume(w),B):i(w)}function m(w){return w===45?(e.consume(w),g):w===91?(e.consume(w),u=0,A):Vn(w)?(e.consume(w),V):i(w)}function g(w){return w===45?(e.consume(w),x):i(w)}function y(w){return w===null?i(w):w===45?(e.consume(w),v):we(w)?(c=y,W(w)):(e.consume(w),y)}function v(w){return w===45?(e.consume(w),x):y(w)}function x(w){return w===62?R(w):w===45?v(w):y(w)}function A(w){const k="CDATA[";return w===k.charCodeAt(u++)?(e.consume(w),u===k.length?M:A):i(w)}function M(w){return w===null?i(w):w===93?(e.consume(w),N):we(w)?(c=M,W(w)):(e.consume(w),M)}function N(w){return w===93?(e.consume(w),C):M(w)}function C(w){return w===62?R(w):w===93?(e.consume(w),C):M(w)}function V(w){return w===null||w===62?R(w):we(w)?(c=V,W(w)):(e.consume(w),V)}function L(w){return w===null?i(w):w===63?(e.consume(w),Y):we(w)?(c=L,W(w)):(e.consume(w),L)}function Y(w){return w===62?R(w):L(w)}function Z(w){return Vn(w)?(e.consume(w),z):i(w)}function z(w){return w===45||on(w)?(e.consume(w),z):K(w)}function K(w){return we(w)?(c=K,W(w)):Be(w)?(e.consume(w),K):R(w)}function B(w){return w===45||on(w)?(e.consume(w),B):w===47||w===62||Qt(w)?ee(w):i(w)}function ee(w){return w===47?(e.consume(w),R):w===58||w===95||Vn(w)?(e.consume(w),ie):we(w)?(c=ee,W(w)):Be(w)?(e.consume(w),ee):R(w)}function ie(w){return w===45||w===46||w===58||w===95||on(w)?(e.consume(w),ie):$(w)}function $(w){return w===61?(e.consume(w),ne):we(w)?(c=$,W(w)):Be(w)?(e.consume(w),$):ee(w)}function ne(w){return w===null||w===60||w===61||w===62||w===96?i(w):w===34||w===39?(e.consume(w),o=w,ge):we(w)?(c=ne,W(w)):Be(w)?(e.consume(w),ne):(e.consume(w),le)}function ge(w){return w===o?(e.consume(w),o=void 0,J):w===null?i(w):we(w)?(c=ge,W(w)):(e.consume(w),ge)}function le(w){return w===null||w===34||w===39||w===60||w===61||w===96?i(w):w===47||w===62||Qt(w)?ee(w):(e.consume(w),le)}function J(w){return w===47||w===62||Qt(w)?ee(w):i(w)}function R(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):i(w)}function W(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),oe}function oe(w){return Be(w)?$e(e,he,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):he(w)}function he(w){return e.enter("htmlTextData"),c(w)}}const np={name:"labelEnd",resolveAll:C5,resolveTo:k5,tokenize:M5},E5={tokenize:D5},A5={tokenize:N5},_5={tokenize:R5};function C5(e){let t=-1;const i=[];for(;++t<e.length;){const a=e[t][1];if(i.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",t+=o}}return e.length!==i.length&&Yn(e,0,e.length,i),e}function k5(e,t){let i=e.length,a=0,o,u,c,d;for(;i--;)if(o=e[i][1],u){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[i][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[i][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(u=i,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(c=i);const p={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},g={type:"labelText",start:{...e[u+a+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",p,t],["enter",m,t]],d=vn(d,e.slice(u+1,u+a+3)),d=vn(d,[["enter",g,t]]),d=vn(d,tp(t.parser.constructs.insideSpan.null,e.slice(u+a+4,c-3),t)),d=vn(d,[["exit",g,t],e[c-2],e[c-1],["exit",m,t]]),d=vn(d,e.slice(c+1)),d=vn(d,[["exit",p,t]]),Yn(e,u,e.length,d),e}function M5(e,t,i){const a=this;let o=a.events.length,u,c;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){u=a.events[o][1];break}return d;function d(v){return u?u._inactive?y(v):(c=a.parser.defined.includes(Fa(a.sliceSerialize({start:u.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),p):i(v)}function p(v){return v===40?e.attempt(E5,g,c?g:y)(v):v===91?e.attempt(A5,g,c?m:y)(v):c?g(v):y(v)}function m(v){return e.attempt(_5,g,y)(v)}function g(v){return t(v)}function y(v){return u._balanced=!0,i(v)}}function D5(e,t,i){return a;function a(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),o}function o(y){return Qt(y)?fo(e,u)(y):u(y)}function u(y){return y===41?g(y):wT(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return Qt(y)?fo(e,p)(y):g(y)}function d(y){return i(y)}function p(y){return y===34||y===39||y===40?ET(e,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function m(y){return Qt(y)?fo(e,g)(y):g(y)}function g(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):i(y)}}function N5(e,t,i){const a=this;return o;function o(d){return TT.call(a,e,u,c,"reference","referenceMarker","referenceString")(d)}function u(d){return a.parser.defined.includes(Fa(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(d):i(d)}function c(d){return i(d)}}function R5(e,t,i){return a;function a(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),o}function o(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):i(u)}}const O5={name:"labelStartImage",resolveAll:np.resolveAll,tokenize:z5};function z5(e,t,i){const a=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),u}function u(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):i(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(d):t(d)}}const L5={name:"labelStartLink",resolveAll:np.resolveAll,tokenize:j5};function j5(e,t,i){const a=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(c):t(c)}}const nh={name:"lineEnding",tokenize:I5};function I5(e,t){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),$e(e,t,"linePrefix")}}const Eu={name:"thematicBreak",tokenize:U5};function U5(e,t,i){let a=0,o;return u;function u(m){return e.enter("thematicBreak"),c(m)}function c(m){return o=m,d(m)}function d(m){return m===o?(e.enter("thematicBreakSequence"),p(m)):a>=3&&(m===null||we(m))?(e.exit("thematicBreak"),t(m)):i(m)}function p(m){return m===o?(e.consume(m),a++,p):(e.exit("thematicBreakSequence"),Be(m)?$e(e,d,"whitespace")(m):d(m))}}const Kt={continuation:{tokenize:H5},exit:F5,name:"list",tokenize:V5},B5={partial:!0,tokenize:G5},P5={partial:!0,tokenize:q5};function V5(e,t,i){const a=this,o=a.events[a.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(x){const A=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:Qh(x)){if(a.containerState.type||(a.containerState.type=A,e.enter(A,{_container:!0})),A==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(Eu,i,m)(x):m(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(x)}return i(x)}function p(x){return Qh(x)&&++c<10?(e.consume(x),p):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),m(x)):i(x)}function m(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(tc,a.interrupt?i:g,e.attempt(B5,v,y))}function g(x){return a.containerState.initialBlankLine=!0,u++,v(x)}function y(x){return Be(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),v):i(x)}function v(x){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function H5(e,t,i){const a=this;return a.containerState._closeFlow=void 0,e.check(tc,o,u);function o(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,$e(e,t,"listItemIndent",a.containerState.size+1)(d)}function u(d){return a.containerState.furtherBlankLines||!Be(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(P5,t,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,$e(e,e.attempt(Kt,t,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function q5(e,t,i){const a=this;return $e(e,o,"listItemIndent",a.containerState.size+1);function o(u){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?t(u):i(u)}}function F5(e){e.exit(this.containerState.type)}function G5(e,t,i){const a=this;return $e(e,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(u){const c=a.events[a.events.length-1];return!Be(u)&&c&&c[1].type==="listItemPrefixWhitespace"?t(u):i(u)}}const Px={name:"setextUnderline",resolveTo:Y5,tokenize:X5};function Y5(e,t){let i=e.length,a,o,u;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){a=i;break}e[i][1].type==="paragraph"&&(o=i)}else e[i][1].type==="content"&&e.splice(i,1),!u&&e[i][1].type==="definition"&&(u=i);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",u?(e.splice(o,0,["enter",c,t]),e.splice(u+1,0,["exit",e[a][1],t]),e[a][1].end={...e[u][1].end}):e[a][1]=c,e.push(["exit",c,t]),e}function X5(e,t,i){const a=this;let o;return u;function u(m){let g=a.events.length,y;for(;g--;)if(a.events[g][1].type!=="lineEnding"&&a.events[g][1].type!=="linePrefix"&&a.events[g][1].type!=="content"){y=a.events[g][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||y)?(e.enter("setextHeadingLine"),o=m,c(m)):i(m)}function c(m){return e.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===o?(e.consume(m),d):(e.exit("setextHeadingLineSequence"),Be(m)?$e(e,p,"lineSuffix")(m):p(m))}function p(m){return m===null||we(m)?(e.exit("setextHeadingLine"),t(m)):i(m)}}const K5={tokenize:Q5};function Q5(e){const t=this,i=e.attempt(tc,a,e.attempt(this.parser.constructs.flowInitial,o,$e(e,e.attempt(this.parser.constructs.flow,o,e.attempt(e5,o)),"linePrefix")));return i;function a(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function o(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const W5={resolveAll:_T()},Z5=AT("string"),$5=AT("text");function AT(e){return{resolveAll:_T(e==="text"?J5:void 0),tokenize:t};function t(i){const a=this,o=this.parser.constructs[e],u=i.attempt(o,c,d);return c;function c(g){return m(g)?u(g):d(g)}function d(g){if(g===null){i.consume(g);return}return i.enter("data"),i.consume(g),p}function p(g){return m(g)?(i.exit("data"),u(g)):(i.consume(g),p)}function m(g){if(g===null)return!0;const y=o[g];let v=-1;if(y)for(;++v<y.length;){const x=y[v];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function _T(e){return t;function t(i,a){let o=-1,u;for(;++o<=i.length;)u===void 0?i[o]&&i[o][1].type==="data"&&(u=o,o++):(!i[o]||i[o][1].type!=="data")&&(o!==u+2&&(i[u][1].end=i[o-1][1].end,i.splice(u+2,o-u-2),o=u+2),u=void 0);return e?e(i,a):i}}function J5(e,t){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const a=e[i-1][1],o=t.sliceStream(a);let u=o.length,c=-1,d=0,p;for(;u--;){const m=o[u];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(m===-2)p=!0,d++;else if(m!==-1){u++;break}}if(t._contentTypeTextTrailing&&i===e.length&&(d=0),d){const m={type:i===e.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...m.start},a.start.offset===a.end.offset?Object.assign(a,m):(e.splice(i,0,["enter",m,t],["exit",m,t]),i+=2)}i++}return e}const ej={42:Kt,43:Kt,45:Kt,48:Kt,49:Kt,50:Kt,51:Kt,52:Kt,53:Kt,54:Kt,55:Kt,56:Kt,57:Kt,62:bT},tj={91:a5},nj={[-2]:th,[-1]:th,32:th},ij={35:f5,42:Eu,45:[Px,Eu],60:p5,61:Px,95:Eu,96:Ux,126:Ux},rj={38:xT,92:vT},aj={[-5]:nh,[-4]:nh,[-3]:nh,33:O5,38:xT,42:Wh,60:[LL,w5],91:L5,92:[u5,vT],93:np,95:Wh,96:KL},sj={null:[Wh,W5]},oj={null:[42,95]},lj={null:[]},uj=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:oj,contentInitial:tj,disable:lj,document:ej,flow:ij,flowInitial:nj,insideSpan:sj,string:rj,text:aj},Symbol.toStringTag,{value:"Module"}));function cj(e,t,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},u=[];let c=[],d=[];const p={attempt:K(Z),check:K(z),consume:V,enter:L,exit:Y,interrupt:K(z,{interrupt:!0})},m={code:null,containerState:{},defineSkip:M,events:[],now:A,parser:e,previous:null,sliceSerialize:v,sliceStream:x,write:y};let g=t.tokenize.call(m,p);return t.resolveAll&&u.push(t),m;function y($){return c=vn(c,$),N(),c[c.length-1]!==null?[]:(B(t,0),m.events=tp(u,m.events,m),m.events)}function v($,ne){return dj(x($),ne)}function x($){return fj(c,$)}function A(){const{_bufferIndex:$,_index:ne,line:ge,column:le,offset:J}=a;return{_bufferIndex:$,_index:ne,line:ge,column:le,offset:J}}function M($){o[$.line]=$.column,ie()}function N(){let $;for(;a._index<c.length;){const ne=c[a._index];if(typeof ne=="string")for($=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===$&&a._bufferIndex<ne.length;)C(ne.charCodeAt(a._bufferIndex));else C(ne)}}function C($){g=g($)}function V($){we($)?(a.line++,a.column=1,a.offset+=$===-3?2:1,ie()):$!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),m.previous=$}function L($,ne){const ge=ne||{};return ge.type=$,ge.start=A(),m.events.push(["enter",ge,m]),d.push(ge),ge}function Y($){const ne=d.pop();return ne.end=A(),m.events.push(["exit",ne,m]),ne}function Z($,ne){B($,ne.from)}function z($,ne){ne.restore()}function K($,ne){return ge;function ge(le,J,R){let W,oe,he,w;return Array.isArray(le)?q(le):"tokenize"in le?q([le]):k(le);function k(ae){return ve;function ve(Ee){const Se=Ee!==null&&ae[Ee],Dt=Ee!==null&&ae.null,Ut=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Dt)?Dt:Dt?[Dt]:[]];return q(Ut)(Ee)}}function q(ae){return W=ae,oe=0,ae.length===0?R:E(ae[oe])}function E(ae){return ve;function ve(Ee){return w=ee(),he=ae,ae.partial||(m.currentConstruct=ae),ae.name&&m.parser.constructs.disable.null.includes(ae.name)?re():ae.tokenize.call(ne?Object.assign(Object.create(m),ne):m,p,P,re)(Ee)}}function P(ae){return $(he,w),J}function re(ae){return w.restore(),++oe<W.length?E(W[oe]):R}}}function B($,ne){$.resolveAll&&!u.includes($)&&u.push($),$.resolve&&Yn(m.events,ne,m.events.length-ne,$.resolve(m.events.slice(ne),m)),$.resolveTo&&(m.events=$.resolveTo(m.events,m))}function ee(){const $=A(),ne=m.previous,ge=m.currentConstruct,le=m.events.length,J=Array.from(d);return{from:le,restore:R};function R(){a=$,m.previous=ne,m.currentConstruct=ge,m.events.length=le,d=J,ie()}}function ie(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function fj(e,t){const i=t.start._index,a=t.start._bufferIndex,o=t.end._index,u=t.end._bufferIndex;let c;if(i===o)c=[e[i].slice(a,u)];else{if(c=e.slice(i,o),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}u>0&&c.push(e[o].slice(0,u))}return c}function dj(e,t){let i=-1;const a=[];let o;for(;++i<e.length;){const u=e[i];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
|
||
`;break}case-3:{c=`\r
|
||
`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&o)continue;c=" ";break}default:c=String.fromCharCode(u)}o=u===-2,a.push(c)}return a.join("")}function hj(e){const a={constructs:xL([uj,...(e||{}).extensions||[]]),content:o(kL),defined:[],document:o(DL),flow:o(K5),lazy:{},string:o(Z5),text:o($5)};return a;function o(u){return c;function c(d){return cj(a,u,d)}}}function mj(e){for(;!ST(e););return e}const Vx=/[\0\t\n\r]/g;function pj(){let e=1,t="",i=!0,a;return o;function o(u,c,d){const p=[];let m,g,y,v,x;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),y=0,t="",i&&(u.charCodeAt(0)===65279&&y++,i=void 0);y<u.length;){if(Vx.lastIndex=y,m=Vx.exec(u),v=m&&m.index!==void 0?m.index:u.length,x=u.charCodeAt(v),!m){t=u.slice(y);break}if(x===10&&y===v&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),y<v&&(p.push(u.slice(y,v)),e+=v-y),x){case 0:{p.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,p.push(-2);e++<g;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:a=!0,e=1}y=v+1}return d&&(a&&p.push(-5),t&&p.push(t),p.push(null)),p}}const gj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yj(e){return e.replace(gj,bj)}function bj(e,t,i){if(t)return t;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),u=o===120||o===88;return yT(i.slice(u?2:1),u?16:10)}return ep(i)||e}const CT={}.hasOwnProperty;function vj(e,t,i){return t&&typeof t=="object"&&(i=t,t=void 0),xj(i)(mj(hj(i).document().write(pj()(e,t,!0))))}function xj(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Gr),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:u(qr),blockQuote:u(Dt),characterEscape:ee,characterReference:ee,codeFenced:u(Ut),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Ut,c),codeText:u(Rn,c),codeTextData:ee,data:ee,codeFlowValue:ee,definition:u(bi),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Bt),hardBreakEscape:u(Fr),hardBreakTrailing:u(Fr),htmlFlow:u(Lo,c),htmlFlowData:ee,htmlText:u(Lo,c),htmlTextData:ee,image:u(jo),label:c,link:u(Gr),listItem:u(ns),listItemValue:v,listOrdered:u(Yr,y),listUnordered:u(Yr),paragraph:u(rc),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(qr),strong:u(ac),thematicBreak:u(sc)},exit:{atxHeading:p(),atxHeadingSequence:Z,autolink:p(),autolinkEmail:Se,autolinkProtocol:Ee,blockQuote:p(),characterEscapeValue:ie,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:ae,characterReference:ve,codeFenced:p(N),codeFencedFence:M,codeFencedFenceInfo:x,codeFencedFenceMeta:A,codeFlowValue:ie,codeIndented:p(C),codeText:p(J),codeTextData:ie,data:ie,definition:p(),definitionDestinationString:Y,definitionLabelString:V,definitionTitleString:L,emphasis:p(),hardBreakEscape:p(ne),hardBreakTrailing:p(ne),htmlFlow:p(ge),htmlFlowData:ie,htmlText:p(le),htmlTextData:ie,image:p(W),label:he,labelText:oe,lineEnding:$,link:p(R),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:P,resourceDestinationString:w,resourceTitleString:k,resource:q,setextHeading:p(B),setextHeadingLineSequence:K,setextHeadingText:z,strong:p(),thematicBreak:p()}};kT(t,(e||{}).mdastExtensions||[]);const i={};return a;function a(G){let ue={type:"root",children:[]};const xe={stack:[ue],tokenStack:[],config:t,enter:d,exit:m,buffer:c,resume:g,data:i},De=[];let Pe=-1;for(;++Pe<G.length;)if(G[Pe][1].type==="listOrdered"||G[Pe][1].type==="listUnordered")if(G[Pe][0]==="enter")De.push(Pe);else{const Zt=De.pop();Pe=o(G,Zt,Pe)}for(Pe=-1;++Pe<G.length;){const Zt=t[G[Pe][0]];CT.call(Zt,G[Pe][1].type)&&Zt[G[Pe][1].type].call(Object.assign({sliceSerialize:G[Pe][2].sliceSerialize},xe),G[Pe][1])}if(xe.tokenStack.length>0){const Zt=xe.tokenStack[xe.tokenStack.length-1];(Zt[1]||Hx).call(xe,void 0,Zt[0])}for(ue.position={start:Ki(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:Ki(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Pe=-1;++Pe<t.transforms.length;)ue=t.transforms[Pe](ue)||ue;return ue}function o(G,ue,xe){let De=ue-1,Pe=-1,Zt=!1,Xn,Rt,pt,Pt;for(;++De<=xe;){const Xe=G[De];switch(Xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Xe[0]==="enter"?Pe++:Pe--,Pt=void 0;break}case"lineEndingBlank":{Xe[0]==="enter"&&(Xn&&!Pt&&!Pe&&!pt&&(pt=De),Pt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pt=void 0}if(!Pe&&Xe[0]==="enter"&&Xe[1].type==="listItemPrefix"||Pe===-1&&Xe[0]==="exit"&&(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered")){if(Xn){let vi=De;for(Rt=void 0;vi--;){const wn=G[vi];if(wn[1].type==="lineEnding"||wn[1].type==="lineEndingBlank"){if(wn[0]==="exit")continue;Rt&&(G[Rt][1].type="lineEndingBlank",Zt=!0),wn[1].type="lineEnding",Rt=vi}else if(!(wn[1].type==="linePrefix"||wn[1].type==="blockQuotePrefix"||wn[1].type==="blockQuotePrefixWhitespace"||wn[1].type==="blockQuoteMarker"||wn[1].type==="listItemIndent"))break}pt&&(!Rt||pt<Rt)&&(Xn._spread=!0),Xn.end=Object.assign({},Rt?G[Rt][1].start:Xe[1].end),G.splice(Rt||De,0,["exit",Xn,Xe[2]]),De++,xe++}if(Xe[1].type==="listItemPrefix"){const vi={type:"listItem",_spread:!1,start:Object.assign({},Xe[1].start),end:void 0};Xn=vi,G.splice(De,0,["enter",vi,Xe[2]]),De++,xe++,pt=void 0,Pt=!0}}}return G[ue][1]._spread=Zt,xe}function u(G,ue){return xe;function xe(De){d.call(this,G(De),De),ue&&ue.call(this,De)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(G,ue,xe){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([ue,xe||void 0]),G.position={start:Ki(ue.start),end:void 0}}function p(G){return ue;function ue(xe){G&&G.call(this,xe),m.call(this,xe)}}function m(G,ue){const xe=this.stack.pop(),De=this.tokenStack.pop();if(De)De[0].type!==G.type&&(ue?ue.call(this,G,De[0]):(De[1]||Hx).call(this,G,De[0]));else throw new Error("Cannot close `"+G.type+"` ("+co({start:G.start,end:G.end})+"): it’s not open");xe.position.end=Ki(G.end)}function g(){return bL(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function v(G){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function x(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=G}function A(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=G}function M(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G.replace(/(\r?\n|\r)$/g,"")}function V(G){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ue,xe.identifier=Fa(this.sliceSerialize(G)).toLowerCase()}function L(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.title=G}function Y(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.url=G}function Z(G){const ue=this.stack[this.stack.length-1];if(!ue.depth){const xe=this.sliceSerialize(G).length;ue.depth=xe}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function K(G){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(G){const xe=this.stack[this.stack.length-1].children;let De=xe[xe.length-1];(!De||De.type!=="text")&&(De=Nt(),De.position={start:Ki(G.start),end:void 0},xe.push(De)),this.stack.push(De)}function ie(G){const ue=this.stack.pop();ue.value+=this.sliceSerialize(G),ue.position.end=Ki(G.end)}function $(G){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=ue.children[ue.children.length-1];xe.position.end=Ki(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ue.type)&&(ee.call(this,G),ie.call(this,G))}function ne(){this.data.atHardBreak=!0}function ge(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G}function le(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G}function J(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G}function R(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ue,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function W(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ue,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function oe(G){const ue=this.sliceSerialize(G),xe=this.stack[this.stack.length-2];xe.label=yj(ue),xe.identifier=Fa(ue).toLowerCase()}function he(){const G=this.stack[this.stack.length-1],ue=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const De=G.children;xe.children=De}else xe.alt=ue}function w(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.url=G}function k(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.title=G}function q(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function P(G){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ue,xe.identifier=Fa(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function re(G){this.data.characterReferenceType=G.type}function ae(G){const ue=this.sliceSerialize(G),xe=this.data.characterReferenceType;let De;xe?(De=yT(ue,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):De=ep(ue);const Pe=this.stack[this.stack.length-1];Pe.value+=De}function ve(G){const ue=this.stack.pop();ue.position.end=Ki(G.end)}function Ee(G){ie.call(this,G);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(G)}function Se(G){ie.call(this,G);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(G)}function Dt(){return{type:"blockquote",children:[]}}function Ut(){return{type:"code",lang:null,meta:null,value:""}}function Rn(){return{type:"inlineCode",value:""}}function bi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Bt(){return{type:"emphasis",children:[]}}function qr(){return{type:"heading",depth:0,children:[]}}function Fr(){return{type:"break"}}function Lo(){return{type:"html",value:""}}function jo(){return{type:"image",title:null,url:"",alt:null}}function Gr(){return{type:"link",title:null,url:"",children:[]}}function Yr(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function ns(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function rc(){return{type:"paragraph",children:[]}}function ac(){return{type:"strong",children:[]}}function Nt(){return{type:"text",value:""}}function sc(){return{type:"thematicBreak"}}}function Ki(e){return{line:e.line,column:e.column,offset:e.offset}}function kT(e,t){let i=-1;for(;++i<t.length;){const a=t[i];Array.isArray(a)?kT(e,a):Sj(e,a)}}function Sj(e,t){let i;for(i in t)if(CT.call(t,i))switch(i){case"canContainEols":{const a=t[i];a&&e[i].push(...a);break}case"transforms":{const a=t[i];a&&e[i].push(...a);break}case"enter":case"exit":{const a=t[i];a&&Object.assign(e[i],a);break}}}function Hx(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+co({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+co({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+co({start:t.start,end:t.end})+") is still open")}function wj(e){const t=this;t.parser=i;function i(a){return vj(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Tj(e,t){const i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,i),e.applyData(t,i)}function Ej(e,t){const i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,i),[e.applyData(t,i),{type:"text",value:`
|
||
`}]}function Aj(e,t){const i=t.value?t.value+`
|
||
`:"",a={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let u={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return t.meta&&(u.data={meta:t.meta}),e.patch(t,u),u=e.applyData(t,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(t,u),u}function _j(e,t){const i={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Cj(e,t){const i={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function kj(e,t){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),o=ts(a.toLowerCase()),u=e.footnoteOrder.indexOf(a);let c,d=e.footnoteCounts.get(a);d===void 0?(d=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=u+1,d+=1,e.footnoteCounts.set(a,d);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(t,m),e.applyData(t,m)}function Mj(e,t){const i={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Dj(e,t){if(e.options.allowDangerousHtml){const i={type:"raw",value:t.value};return e.patch(t,i),e.applyData(t,i)}}function MT(e,t){const i=t.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const o=e.all(t),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=a:o.push({type:"text",value:a}),o}function Nj(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return MT(e,t);const o={src:ts(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,u),e.applyData(t,u)}function Rj(e,t){const i={src:ts(t.url)};t.alt!==null&&t.alt!==void 0&&(i.alt=t.alt),t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Oj(e,t){const i={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(t,a),e.applyData(t,a)}function zj(e,t){const i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return MT(e,t);const o={href:ts(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const u={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function Lj(e,t){const i={href:ts(t.url)};t.title!==null&&t.title!==void 0&&(i.title=t.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function jj(e,t,i){const a=e.all(t),o=i?Ij(i):DT(t),u={},c=[];if(typeof t.checked=="boolean"){const g=a[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},a.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const g=a[d];(o||d!==0||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
|
||
`}),g.type==="element"&&g.tagName==="p"&&!o?c.push(...g.children):c.push(g)}const p=a[a.length-1];p&&(o||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
|
||
`});const m={type:"element",tagName:"li",properties:u,children:c};return e.patch(t,m),e.applyData(t,m)}function Ij(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const i=e.children;let a=-1;for(;!t&&++a<i.length;)t=DT(i[a])}return t}function DT(e){const t=e.spread;return t??e.children.length>1}function Uj(e,t){const i={},a=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(i.start=t.start);++o<a.length;){const c=a[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:i,children:e.wrap(a,!0)};return e.patch(t,u),e.applyData(t,u)}function Bj(e,t){const i={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Pj(e,t){const i={type:"root",children:e.wrap(e.all(t))};return e.patch(t,i),e.applyData(t,i)}function Vj(e,t){const i={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Hj(e,t){const i=e.all(t),a=i.shift(),o=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],c),o.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},d=Wm(t.children[1]),p=cT(t.children[t.children.length-1]);d&&p&&(c.position={start:d,end:p}),o.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,u),e.applyData(t,u)}function qj(e,t,i){const a=i?i.children:void 0,u=(a?a.indexOf(t):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,d=c?c.length:t.children.length;let p=-1;const m=[];for(;++p<d;){const y=t.children[p],v={},x=c?c[p]:void 0;x&&(v.align=x);let A={type:"element",tagName:u,properties:v,children:[]};y&&(A.children=e.all(y),e.patch(y,A),A=e.applyData(y,A)),m.push(A)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(t,g),e.applyData(t,g)}function Fj(e,t){const i={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}const qx=9,Fx=32;function Gj(e){const t=String(e),i=/\r?\n|\r/g;let a=i.exec(t),o=0;const u=[];for(;a;)u.push(Gx(t.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=i.exec(t);return u.push(Gx(t.slice(o),o>0,!1)),u.join("")}function Gx(e,t,i){let a=0,o=e.length;if(t){let u=e.codePointAt(a);for(;u===qx||u===Fx;)a++,u=e.codePointAt(a)}if(i){let u=e.codePointAt(o-1);for(;u===qx||u===Fx;)o--,u=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}function Yj(e,t){const i={type:"text",value:Gj(String(t.value))};return e.patch(t,i),e.applyData(t,i)}function Xj(e,t){const i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,i),e.applyData(t,i)}const Kj={blockquote:Tj,break:Ej,code:Aj,delete:_j,emphasis:Cj,footnoteReference:kj,heading:Mj,html:Dj,imageReference:Nj,image:Rj,inlineCode:Oj,linkReference:zj,link:Lj,listItem:jj,list:Uj,paragraph:Bj,root:Pj,strong:Vj,table:Hj,tableCell:Fj,tableRow:qj,text:Yj,thematicBreak:Xj,toml:lu,yaml:lu,definition:lu,footnoteDefinition:lu};function lu(){}const NT=-1,nc=0,ho=1,Fu=2,ip=3,rp=4,ap=5,sp=6,RT=7,OT=8,Yx=typeof self=="object"?self:globalThis,Qj=(e,t)=>{const i=(o,u)=>(e.set(u,o),o),a=o=>{if(e.has(o))return e.get(o);const[u,c]=t[o];switch(u){case nc:case NT:return i(c,o);case ho:{const d=i([],o);for(const p of c)d.push(a(p));return d}case Fu:{const d=i({},o);for(const[p,m]of c)d[a(p)]=a(m);return d}case ip:return i(new Date(c),o);case rp:{const{source:d,flags:p}=c;return i(new RegExp(d,p),o)}case ap:{const d=i(new Map,o);for(const[p,m]of c)d.set(a(p),a(m));return d}case sp:{const d=i(new Set,o);for(const p of c)d.add(a(p));return d}case RT:{const{name:d,message:p}=c;return i(new Yx[d](p),o)}case OT:return i(BigInt(c),o);case"BigInt":return i(Object(BigInt(c)),o);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return i(new DataView(d),c)}}return i(new Yx[u](c),o)};return a},Xx=e=>Qj(new Map,e)(0),Oa="",{toString:Wj}={},{keys:Zj}=Object,io=e=>{const t=typeof e;if(t!=="object"||!e)return[nc,t];const i=Wj.call(e).slice(8,-1);switch(i){case"Array":return[ho,Oa];case"Object":return[Fu,Oa];case"Date":return[ip,Oa];case"RegExp":return[rp,Oa];case"Map":return[ap,Oa];case"Set":return[sp,Oa];case"DataView":return[ho,i]}return i.includes("Array")?[ho,i]:i.includes("Error")?[RT,i]:[Fu,i]},uu=([e,t])=>e===nc&&(t==="function"||t==="symbol"),$j=(e,t,i,a)=>{const o=(c,d)=>{const p=a.push(c)-1;return i.set(d,p),p},u=c=>{if(i.has(c))return i.get(c);let[d,p]=io(c);switch(d){case nc:{let g=c;switch(p){case"bigint":d=OT,g=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);g=null;break;case"undefined":return o([NT],c)}return o([d,g],c)}case ho:{if(p){let v=c;return p==="DataView"?v=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(v=new Uint8Array(c)),o([p,[...v]],c)}const g=[],y=o([d,g],c);for(const v of c)g.push(u(v));return y}case Fu:{if(p)switch(p){case"BigInt":return o([p,c.toString()],c);case"Boolean":case"Number":case"String":return o([p,c.valueOf()],c)}if(t&&"toJSON"in c)return u(c.toJSON());const g=[],y=o([d,g],c);for(const v of Zj(c))(e||!uu(io(c[v])))&&g.push([u(v),u(c[v])]);return y}case ip:return o([d,c.toISOString()],c);case rp:{const{source:g,flags:y}=c;return o([d,{source:g,flags:y}],c)}case ap:{const g=[],y=o([d,g],c);for(const[v,x]of c)(e||!(uu(io(v))||uu(io(x))))&&g.push([u(v),u(x)]);return y}case sp:{const g=[],y=o([d,g],c);for(const v of c)(e||!uu(io(v)))&&g.push(u(v));return y}}const{message:m}=c;return o([d,{name:p,message:m}],c)};return u},Kx=(e,{json:t,lossy:i}={})=>{const a=[];return $j(!(t||i),!!t,new Map,a)(e),a},Gu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Xx(Kx(e,t)):structuredClone(e):(e,t)=>Xx(Kx(e,t));function Jj(e,t){const i=[{type:"text",value:"↩"}];return t>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),i}function eI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function tI(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||Jj,a=e.options.footnoteBackLabel||eI,o=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[p]);if(!m)continue;const g=e.all(m),y=String(m.identifier).toUpperCase(),v=ts(y.toLowerCase());let x=0;const A=[],M=e.footnoteCounts.get(y);for(;M!==void 0&&++x<=M;){A.length>0&&A.push({type:"text",value:" "});let V=typeof i=="string"?i:i(p,x);typeof V=="string"&&(V={type:"text",value:V}),A.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(p,x),className:["data-footnote-backref"]},children:Array.isArray(V)?V:[V]})}const N=g[g.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const V=N.children[N.children.length-1];V&&V.type==="text"?V.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...A)}else g.push(...A);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(g,!0)};e.patch(m,C),d.push(C)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Gu(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
||
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
||
`}]}}const zT=(function(e){if(e==null)return aI;if(typeof e=="function")return ic(e);if(typeof e=="object")return Array.isArray(e)?nI(e):iI(e);if(typeof e=="string")return rI(e);throw new Error("Expected function, string, or object as test")});function nI(e){const t=[];let i=-1;for(;++i<e.length;)t[i]=zT(e[i]);return ic(a);function a(...o){let u=-1;for(;++u<t.length;)if(t[u].apply(this,o))return!0;return!1}}function iI(e){const t=e;return ic(i);function i(a){const o=a;let u;for(u in e)if(o[u]!==t[u])return!1;return!0}}function rI(e){return ic(t);function t(i){return i&&i.type===e}}function ic(e){return t;function t(i,a,o){return!!(sI(i)&&e.call(this,i,typeof a=="number"?a:void 0,o||void 0))}}function aI(){return!0}function sI(e){return e!==null&&typeof e=="object"&&"type"in e}const LT=[],oI=!0,Qx=!1,lI="skip";function uI(e,t,i,a){let o;typeof t=="function"&&typeof i!="function"?(a=i,i=t):o=t;const u=zT(o),c=a?-1:1;d(e,void 0,[])();function d(p,m,g){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const x=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(p.type+(x?"<"+x+">":""))+")"})}return v;function v(){let x=LT,A,M,N;if((!t||u(p,m,g[g.length-1]||void 0))&&(x=cI(i(p,g)),x[0]===Qx))return x;if("children"in p&&p.children){const C=p;if(C.children&&x[0]!==lI)for(M=(a?C.children.length:-1)+c,N=g.concat(C);M>-1&&M<C.children.length;){const V=C.children[M];if(A=d(V,M,N)(),A[0]===Qx)return A;M=typeof A[1]=="number"?A[1]:M+c}}return x}}}function cI(e){return Array.isArray(e)?e:typeof e=="number"?[oI,e]:e==null?LT:[e]}function jT(e,t,i,a){let o,u,c;typeof t=="function"&&typeof i!="function"?(u=void 0,c=t,o=i):(u=t,c=i,o=a),uI(e,u,d,o);function d(p,m){const g=m[m.length-1],y=g?g.children.indexOf(p):void 0;return c(p,y,g)}}const Zh={}.hasOwnProperty,fI={};function dI(e,t){const i=t||fI,a=new Map,o=new Map,u=new Map,c={...Kj,...i.handlers},d={all:m,applyData:mI,definitionById:a,footnoteById:o,footnoteCounts:u,footnoteOrder:[],handlers:c,one:p,options:i,patch:hI,wrap:gI};return jT(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?a:o,v=String(g.identifier).toUpperCase();y.has(v)||y.set(v,g)}}),d;function p(g,y){const v=g.type,x=d.handlers[v];if(Zh.call(d.handlers,v)&&x)return x(d,g,y);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in g){const{children:M,...N}=g,C=Gu(N);return C.children=d.all(g),C}return Gu(g)}return(d.options.unknownHandler||pI)(d,g,y)}function m(g){const y=[];if("children"in g){const v=g.children;let x=-1;for(;++x<v.length;){const A=d.one(v[x],g);if(A){if(x&&v[x-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=Wx(A.value)),!Array.isArray(A)&&A.type==="element")){const M=A.children[0];M&&M.type==="text"&&(M.value=Wx(M.value))}Array.isArray(A)?y.push(...A):y.push(A)}}}return y}}function hI(e,t){e.position&&(t.position=W4(e))}function mI(e,t){let i=t;if(e&&e.data){const a=e.data.hName,o=e.data.hChildren,u=e.data.hProperties;if(typeof a=="string")if(i.type==="element")i.tagName=a;else{const c="children"in i?i.children:[i];i={type:"element",tagName:a,properties:{},children:c}}i.type==="element"&&u&&Object.assign(i.properties,Gu(u)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function pI(e,t){const i=t.data||{},a="value"in t&&!(Zh.call(i,"hProperties")||Zh.call(i,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function gI(e,t){const i=[];let a=-1;for(t&&i.push({type:"text",value:`
|
||
`});++a<e.length;)a&&i.push({type:"text",value:`
|
||
`}),i.push(e[a]);return t&&e.length>0&&i.push({type:"text",value:`
|
||
`}),i}function Wx(e){let t=0,i=e.charCodeAt(t);for(;i===9||i===32;)t++,i=e.charCodeAt(t);return e.slice(t)}function Zx(e,t){const i=dI(e,t),a=i.one(e,void 0),o=tI(i),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&u.children.push({type:"text",value:`
|
||
`},o),u}function yI(e,t){return e&&"run"in e?async function(i,a){const o=Zx(i,{file:a,...t});await e.run(o,a)}:function(i,a){return Zx(i,{file:a,...e||t})}}function $x(e){if(e)throw e}var ih,Jx;function bI(){if(Jx)return ih;Jx=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(m){return typeof Array.isArray=="function"?Array.isArray(m):t.call(m)==="[object Array]"},u=function(m){if(!m||t.call(m)!=="[object Object]")return!1;var g=e.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!g&&!y)return!1;var v;for(v in m);return typeof v>"u"||e.call(m,v)},c=function(m,g){i&&g.name==="__proto__"?i(m,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):m[g.name]=g.newValue},d=function(m,g){if(g==="__proto__")if(e.call(m,g)){if(a)return a(m,g).value}else return;return m[g]};return ih=function p(){var m,g,y,v,x,A,M=arguments[0],N=1,C=arguments.length,V=!1;for(typeof M=="boolean"&&(V=M,M=arguments[1]||{},N=2),(M==null||typeof M!="object"&&typeof M!="function")&&(M={});N<C;++N)if(m=arguments[N],m!=null)for(g in m)y=d(M,g),v=d(m,g),M!==v&&(V&&v&&(u(v)||(x=o(v)))?(x?(x=!1,A=y&&o(y)?y:[]):A=y&&u(y)?y:{},c(M,{name:g,newValue:p(V,A,v)})):typeof v<"u"&&c(M,{name:g,newValue:v}));return M},ih}var vI=bI();const rh=em(vI);function $h(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function xI(){const e=[],t={run:i,use:a};return t;function i(...o){let u=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...o);function d(p,...m){const g=e[++u];let y=-1;if(p){c(p);return}for(;++y<o.length;)(m[y]===null||m[y]===void 0)&&(m[y]=o[y]);o=m,g?SI(g,d)(...m):c(null,...m)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function SI(e,t){let i;return a;function a(...c){const d=e.length>c.length;let p;d&&c.push(o);try{p=e.apply(this,c)}catch(m){const g=m;if(d&&i)throw g;return o(g)}d||(p&&p.then&&typeof p.then=="function"?p.then(u,o):p instanceof Error?o(p):u(p))}function o(c,...d){i||(i=!0,t(c,...d))}function u(c){o(null,c)}}const Un={basename:wI,dirname:TI,extname:EI,join:AI,sep:"/"};function wI(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zo(e);let i=0,a=-1,o=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(u){i=o+1;break}}else a<0&&(u=!0,a=o+1);return a<0?"":e.slice(i,a)}if(t===e)return"";let c=-1,d=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(u){i=o+1;break}}else c<0&&(u=!0,c=o+1),d>-1&&(e.codePointAt(o)===t.codePointAt(d--)?d<0&&(a=o):(d=-1,a=c));return i===a?a=c:a<0&&(a=e.length),e.slice(i,a)}function TI(e){if(zo(e),e.length===0)return".";let t=-1,i=e.length,a;for(;--i;)if(e.codePointAt(i)===47){if(a){t=i;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function EI(e){zo(e);let t=e.length,i=-1,a=0,o=-1,u=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){a=t+1;break}continue}i<0&&(c=!0,i=t+1),d===46?o<0?o=t:u!==1&&(u=1):o>-1&&(u=-1)}return o<0||i<0||u===0||u===1&&o===i-1&&o===a+1?"":e.slice(o,i)}function AI(...e){let t=-1,i;for(;++t<e.length;)zo(e[t]),e[t]&&(i=i===void 0?e[t]:i+"/"+e[t]);return i===void 0?".":_I(i)}function _I(e){zo(e);const t=e.codePointAt(0)===47;let i=CI(e,!t);return i.length===0&&!t&&(i="."),i.length>0&&e.codePointAt(e.length-1)===47&&(i+="/"),t?"/"+i:i}function CI(e,t){let i="",a=0,o=-1,u=0,c=-1,d,p;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(o===c-1||u===1))if(o!==c-1&&u===2){if(i.length<2||a!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",a=0):(i=i.slice(0,p),a=i.length-1-i.lastIndexOf("/")),o=c,u=0;continue}}else if(i.length>0){i="",a=0,o=c,u=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),a=c-o-1;o=c,u=0}else d===46&&u>-1?u++:u=-1}return i}function zo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const kI={cwd:MI};function MI(){return"/"}function Jh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function DI(e){if(typeof e=="string")e=new URL(e);else if(!Jh(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return NI(e)}function NI(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let i=-1;for(;++i<t.length;)if(t.codePointAt(i)===37&&t.codePointAt(i+1)===50){const a=t.codePointAt(i+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const ah=["history","path","basename","stem","extname","dirname"];class IT{constructor(t){let i;t?Jh(t)?i={path:t}:typeof t=="string"||RI(t)?i={value:t}:i=t:i={},this.cwd="cwd"in i?"":kI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<ah.length;){const u=ah[a];u in i&&i[u]!==void 0&&i[u]!==null&&(this[u]=u==="history"?[...i[u]]:i[u])}let o;for(o in i)ah.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?Un.basename(this.path):void 0}set basename(t){oh(t,"basename"),sh(t,"basename"),this.path=Un.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Un.dirname(this.path):void 0}set dirname(t){e1(this.basename,"dirname"),this.path=Un.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Un.extname(this.path):void 0}set extname(t){if(sh(t,"extname"),e1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Un.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Jh(t)&&(t=DI(t)),oh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Un.basename(this.path,this.extname):void 0}set stem(t){oh(t,"stem"),sh(t,"stem"),this.path=Un.join(this.dirname||"",t+(this.extname||""))}fail(t,i,a){const o=this.message(t,i,a);throw o.fatal=!0,o}info(t,i,a){const o=this.message(t,i,a);return o.fatal=void 0,o}message(t,i,a){const o=new Mt(t,i,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function sh(e,t){if(e&&e.includes(Un.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Un.sep+"`")}function oh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function e1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function RI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const OI=(function(e){const a=this.constructor.prototype,o=a[e],u=function(){return o.apply(u,arguments)};return Object.setPrototypeOf(u,a),u}),zI={}.hasOwnProperty;class op extends OI{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=xI()}copy(){const t=new op;let i=-1;for(;++i<this.attachers.length;){const a=this.attachers[i];t.use(...a)}return t.data(rh(!0,{},this.namespace)),t}data(t,i){return typeof t=="string"?arguments.length===2?(ch("data",this.frozen),this.namespace[t]=i,this):zI.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ch("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=i.call(t,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const i=cu(t),a=this.parser||this.Parser;return lh("parse",a),a(String(i),i)}process(t,i){const a=this;return this.freeze(),lh("process",this.parser||this.Parser),uh("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(u,c){const d=cu(t),p=a.parse(d);a.run(p,d,function(g,y,v){if(g||!y||!v)return m(g);const x=y,A=a.stringify(x,v);II(A)?v.value=A:v.result=A,m(g,v)});function m(g,y){g||!y?c(g):u?u(y):i(void 0,y)}}}processSync(t){let i=!1,a;return this.freeze(),lh("processSync",this.parser||this.Parser),uh("processSync",this.compiler||this.Compiler),this.process(t,o),n1("processSync","process",i),a;function o(u,c){i=!0,$x(u),a=c}}run(t,i,a){t1(t),this.freeze();const o=this.transformers;return!a&&typeof i=="function"&&(a=i,i=void 0),a?u(void 0,a):new Promise(u);function u(c,d){const p=cu(i);o.run(t,p,m);function m(g,y,v){const x=y||t;g?d(g):c?c(x):a(void 0,x,v)}}}runSync(t,i){let a=!1,o;return this.run(t,i,u),n1("runSync","run",a),o;function u(c,d){$x(c),o=d,a=!0}}stringify(t,i){this.freeze();const a=cu(i),o=this.compiler||this.Compiler;return uh("stringify",o),t1(t),o(t,a)}use(t,...i){const a=this.attachers,o=this.namespace;if(ch("use",this.frozen),t!=null)if(typeof t=="function")p(t,i);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[g,...y]=m;p(g,y)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(m.plugins),m.settings&&(o.settings=rh(!0,o.settings,m.settings))}function d(m){let g=-1;if(m!=null)if(Array.isArray(m))for(;++g<m.length;){const y=m[g];u(y)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,g){let y=-1,v=-1;for(;++y<a.length;)if(a[y][0]===m){v=y;break}if(v===-1)a.push([m,...g]);else if(g.length>0){let[x,...A]=g;const M=a[v][1];$h(M)&&$h(x)&&(x=rh(!0,M,x)),a[v]=[m,x,...A]}}}}const LI=new op().freeze();function lh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function uh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ch(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function t1(e){if(!$h(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function n1(e,t,i){if(!i)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function cu(e){return jI(e)?e:new IT(e)}function jI(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function II(e){return typeof e=="string"||UI(e)}function UI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const BI="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",i1=[],r1={allowDangerousHtml:!0},PI=/^(https?|ircs?|mailto|xmpp)$/i,VI=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function HI(e){const t=qI(e),i=FI(e);return GI(t.runSync(t.parse(i),i),e)}function qI(e){const t=e.rehypePlugins||i1,i=e.remarkPlugins||i1,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...r1}:r1;return LI().use(wj).use(i).use(yI,a).use(t)}function FI(e){const t=e.children||"",i=new IT;return typeof t=="string"&&(i.value=t),i}function GI(e,t){const i=t.allowedElements,a=t.allowElement,o=t.components,u=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||YI;for(const g of VI)Object.hasOwn(t,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+BI+g.id,void 0);return jT(e,m),tL(e,{Fragment:T.Fragment,components:o,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function m(g,y,v){if(g.type==="raw"&&v&&typeof y=="number")return c?v.children.splice(y,1):v.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let x;for(x in eh)if(Object.hasOwn(eh,x)&&Object.hasOwn(g.properties,x)){const A=g.properties[x],M=eh[x];(M===null||M.includes(g.tagName))&&(g.properties[x]=p(String(A||""),x,g))}}if(g.type==="element"){let x=i?!i.includes(g.tagName):u?u.includes(g.tagName):!1;if(!x&&a&&typeof y=="number"&&(x=!a(g,y,v)),x&&v&&typeof y=="number")return d&&g.children?v.children.splice(y,1,...g.children):v.children.splice(y,1),y}}}function YI(e){const t=e.indexOf(":"),i=e.indexOf("?"),a=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||i!==-1&&t>i||a!==-1&&t>a||PI.test(e.slice(0,t))?e:""}const XI=({attachment:e})=>{if(e.type==="image")return T.jsxs("div",{className:"group relative max-w-[320px] overflow-hidden rounded-2xl border border-white/10 bg-black/20",children:[T.jsx("img",{src:e.url,alt:e.file.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-[1.02]"}),T.jsx("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 to-transparent px-3 py-2 text-[11px] font-medium text-white/90",children:T.jsx("div",{className:"truncate",children:e.file.name})})]});const t=e.type==="audio"?OD:XS;return T.jsxs("div",{className:"flex w-full max-w-[360px] items-center gap-3 rounded-2xl border border-white/10 bg-white/5 px-3 py-3",children:[T.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-xl bg-black/25",children:T.jsx(t,{className:"h-4 w-4 text-indigo-200"})}),T.jsxs("div",{className:"min-w-0 flex-1",children:[T.jsx("p",{className:"truncate text-sm font-medium text-white/90",children:e.file.name}),T.jsxs("p",{className:"text-[11px] text-zinc-400",children:[(e.file.size/1024).toFixed(1)," KB"]})]})]})},KI=({message:e})=>{const t=e.sender==="user",[i,a]=wd.useState(!1),o=wd.useRef(null),u=()=>{o.current&&(i?o.current.pause():o.current.play(),a(!i))};return wd.useEffect(()=>(e.audio&&(o.current=new Audio(e.audio.url),o.current.onended=()=>a(!1)),()=>{o.current&&(o.current.pause(),o.current=null)}),[e.audio]),T.jsx(Ua.div,{initial:{opacity:0,y:14,scale:.98},animate:{opacity:1,y:0,scale:1},transition:{duration:.32,ease:[.23,1,.32,1]},className:zt("mb-5 flex w-full",t?"justify-end":"justify-start"),children:T.jsxs("div",{className:zt("flex flex-col gap-1",t?"max-w-3xl items-end":"w-full max-w-none items-start"),children:[!t&&T.jsxs("div",{className:"mb-1 inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.2em] text-zinc-400",children:[T.jsx(Nm,{className:"h-3.5 w-3.5 text-indigo-300"}),"Respuesta del portal"]}),T.jsxs("div",{className:zt("relative overflow-hidden border shadow-[0_16px_40px_rgba(0,0,0,0.25)]",t?"max-w-[85%] rounded-[26px] rounded-br-md border-indigo-400/20 bg-[linear-gradient(135deg,rgba(79,70,229,0.96),rgba(37,99,235,0.92))] px-4 py-4 text-white sm:px-5":"w-full max-w-none rounded-[28px] rounded-bl-md border-white/10 bg-[linear-gradient(180deg,rgba(255,255,255,0.07),rgba(255,255,255,0.03))] px-5 py-5 text-zinc-100 backdrop-blur-xl sm:px-6 sm:py-6"),children:[!t&&T.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_top_right,rgba(129,140,248,0.14),transparent_26%)]"}),T.jsxs("div",{className:"relative",children:[e.attachments&&e.attachments.length>0&&T.jsx("div",{className:"mb-4 flex flex-wrap gap-3",children:e.attachments.map(c=>T.jsx(XI,{attachment:c},c.id))}),e.audio&&T.jsxs("div",{className:"mb-4 flex items-center gap-3 rounded-2xl bg-black/20 p-3 pr-4",children:[T.jsx("button",{onClick:u,className:"flex h-10 w-10 items-center justify-center rounded-full bg-white/15 transition hover:bg-white/25",children:i?T.jsxs("div",{className:"flex h-3 w-3 gap-1",children:[T.jsx("div",{className:"h-full w-1 rounded-sm bg-white"}),T.jsx("div",{className:"h-full w-1 rounded-sm bg-white"})]}):T.jsx("div",{className:"ml-0.5 h-0 w-0 border-b-[6px] border-l-[9px] border-t-[6px] border-b-transparent border-l-white border-t-transparent"})}),T.jsx("div",{className:"h-1.5 w-28 overflow-hidden rounded-full bg-white/15",children:T.jsx("div",{className:zt("h-full w-1/3 rounded-full bg-white/65",i&&"animate-pulse")})}),T.jsxs("span",{className:"text-xs font-mono opacity-80",children:["0:",e.audio.duration.toString().padStart(2,"0")]})]}),e.text&&T.jsx("div",{className:zt("break-words text-[15px] leading-7 sm:text-base",t?"whitespace-pre-wrap":""),children:t?e.text:T.jsx("div",{className:"prose prose-invert max-w-none prose-p:my-3 prose-p:leading-8 prose-headings:mb-3 prose-headings:mt-1 prose-headings:text-white prose-strong:text-white prose-li:my-1 prose-ul:my-3 prose-ol:my-3 prose-pre:overflow-x-auto prose-pre:rounded-2xl prose-pre:border prose-pre:border-white/10 prose-pre:bg-black/35 prose-pre:p-4 prose-pre:text-[13px] prose-code:text-indigo-200",children:T.jsx(HI,{children:e.text})})})]})]}),T.jsxs("div",{className:"mt-1 flex items-center gap-1.5 px-1",children:[T.jsx("span",{className:"text-[11px] font-medium text-zinc-500",children:A4(e.timestamp,"HH:mm")}),t&&T.jsxs("span",{className:"text-zinc-500",children:[e.status==="sending"&&T.jsx(zu,{className:"h-3.5 w-3.5 animate-pulse text-zinc-400"}),e.status==="sent"&&T.jsx(hD,{className:"h-3.5 w-3.5 text-indigo-400"}),e.status==="error"&&T.jsx(zu,{className:"h-3.5 w-3.5 text-red-500"})]})]})]})})},QI=({onLogin:e,isLoading:t,error:i})=>T.jsxs("div",{className:"relative flex min-h-screen items-center justify-center overflow-hidden bg-[#060816] px-4 text-zinc-100",children:[T.jsxs("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",children:[T.jsx("div",{className:"absolute left-[-10%] top-[-15%] h-[34rem] w-[34rem] rounded-full bg-indigo-600/18 blur-3xl"}),T.jsx("div",{className:"absolute right-[-8%] top-[8%] h-[30rem] w-[30rem] rounded-full bg-cyan-400/12 blur-3xl"}),T.jsx("div",{className:"absolute bottom-[-18%] left-[20%] h-[28rem] w-[28rem] rounded-full bg-fuchsia-500/10 blur-3xl"}),T.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(255,255,255,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.03)_1px,transparent_1px)] bg-[size:42px_42px] opacity-[0.06]"})]}),T.jsxs(Ua.div,{initial:{opacity:0,y:18,scale:.98},animate:{opacity:1,y:0,scale:1},className:"relative w-full max-w-xl rounded-[32px] border border-white/10 bg-white/5 p-8 shadow-[0_30px_80px_rgba(0,0,0,0.35)] backdrop-blur-xl",children:[T.jsxs("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full border border-indigo-400/25 bg-indigo-500/10 px-3 py-1 text-xs font-semibold uppercase tracking-[0.22em] text-indigo-200",children:[T.jsx(Rm,{className:"h-3.5 w-3.5"}),"Acceso corporativo"]}),T.jsx("h1",{className:"text-3xl font-semibold tracking-tight text-white sm:text-4xl",children:"Portal Brief CDC"}),T.jsx("p",{className:"mt-4 text-sm leading-7 text-zinc-300 sm:text-base",children:"Inicia sesión con tu cuenta corporativa de Google para acceder al portal."}),T.jsx("div",{className:"mt-6 rounded-2xl border border-white/10 bg-black/20 p-4",children:T.jsxs("div",{className:"flex items-start gap-3",children:[T.jsx(Nm,{className:"mt-0.5 h-5 w-5 text-indigo-300"}),T.jsxs("div",{children:[T.jsx("p",{className:"text-sm font-semibold text-white",children:"Acceso restringido"}),T.jsx("p",{className:"mt-1 text-sm leading-6 text-zinc-400",children:"Solo usuarios autorizados de la empresa podrán continuar."})]})]})}),i&&T.jsx("div",{className:"mt-4 rounded-2xl border border-red-500/20 bg-red-500/10 px-4 py-3 text-sm text-red-200",children:i}),T.jsxs("button",{onClick:e,disabled:t,className:"mt-6 inline-flex w-full items-center justify-center gap-3 rounded-2xl bg-[linear-gradient(135deg,#6366f1_0%,#2563eb_50%,#06b6d4_100%)] px-5 py-4 text-sm font-semibold text-white shadow-[0_18px_40px_rgba(79,70,229,0.38)] transition hover:opacity-95 disabled:cursor-not-allowed disabled:opacity-60",children:[T.jsx(yD,{className:"h-4 w-4"}),t?"Abriendo Google...":"Continuar con Google"]})]})]});var WI="firebase",ZI="12.12.1";/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/Ba(WI,ZI,"app");const $I={apiKey:"AIzaSyDIQq_OLUEhmo9ncXiLsKycF0MYOhuYb6o",authDomain:"dokploytest.firebaseapp.com",projectId:"dokploytest",storageBucket:"dokploytest.firebasestorage.app",messagingSenderId:"1094920091343",appId:"1:1094920091343:web:4bf41964204e4b5901a9ba"},JI=aw($I),fu=_z(JI),UT=new hi;UT.setCustomParameters({prompt:"select_account"});function e6(){const e=`### Portal Brief CDC
|
||
|
||
Este portal funciona por pasos y no como un chat libre.
|
||
|
||
**Orden del proceso:**
|
||
|
||
1. **Nota de voz** _(obligatorio)_
|
||
2. **Imágenes de referencia** _(obligatorio)_
|
||
3. **Documentos relacionados** _(opcional)_
|
||
4. **Campaña o elementos gráficos existentes** _(opcional)_
|
||
5. **Enlaces de referencia online** _(opcional)_
|
||
6. **Revisión y envío**
|
||
|
||
**Qué hace el sistema con cada entrada:**
|
||
|
||
- **Nota de voz:** se analiza
|
||
- **Imágenes:** se analizan
|
||
- **Documentos y Campaña:** se guardan en la carpeta del proyecto
|
||
- **Enlaces online:** se listan dentro del brief
|
||
|
||
Cuando completes los pasos obligatorios, podrás enviar la solicitud en el paso final.`,[t,i]=te.useState([{id:"welcome",sender:"system",text:e,timestamp:new Date,status:"sent"}]),a=()=>typeof window>"u"?"https://agenteit.digitalcompass.agency/webhook/testcdc":window.localStorage.getItem("cdc-brief-webhook-url")||"https://agenteit.digitalcompass.agency/webhook/testcdc",[o]=te.useState(a),[u,c]=te.useState(!1),[d,p]=te.useState(!0),[m,g]=te.useState(null),[y,v]=te.useState(!0),[x,A]=te.useState(!1),[M,N]=te.useState(""),C=te.useRef(null),V=()=>{var z;(z=C.current)==null||z.scrollIntoView({behavior:"smooth"})};te.useEffect(()=>{V()},[t,u]),te.useEffect(()=>{typeof window<"u"&&o&&window.localStorage.setItem("cdc-brief-webhook-url",o)},[o]),te.useEffect(()=>{const z=pO(fu,K=>{g(K),v(!1)});return()=>z()},[]);const L=async()=>{try{A(!0),N("");const z=await LO(fu,UT);if(!(z.user.email||"").toLowerCase().endsWith("@gomezleemarketing.com".toLowerCase())){await $v(fu),N("Solo se permite acceso con cuentas corporativas de la empresa.");return}g(z.user)}catch(z){console.error("Google login error:",z),N("No se pudo iniciar sesión con Google.")}finally{A(!1)}},Y=async()=>{await $v(fu),g(null)},Z=async(z,K,B)=>{const ee=Math.random().toString(36).substring(7),ie={id:ee,sender:"user",text:z,attachments:K,audio:B,timestamp:new Date,status:"sending"};i($=>[...$,ie]),c(!0);try{const $=new FormData;$.append("text",z),$.append("timestamp",new Date().toISOString()),K.forEach((R,W)=>{const oe=R.category==="campaign"?`campaign_file_${W}`:`file_${W}`;$.append(oe,R.file)}),B&&$.append("audio",B.blob,"voice_note.webm");const ne=await fetch(o,{method:"POST",body:$});if(!ne.ok)throw new Error(`HTTP error! status: ${ne.status}`);let ge;const le=ne.headers.get("content-type");le&&le.includes("application/json")?ge=await ne.json():ge=await ne.text(),i(R=>R.map(W=>W.id===ee?{...W,status:"sent"}:W));const J={id:Math.random().toString(36).substring(7),sender:"system",text:typeof ge=="object"?JSON.stringify(ge,null,2):ge||"Solicitud recibida correctamente.",timestamp:new Date,status:"sent"};i(R=>[...R,J]),p(!0)}catch($){console.error("Webhook error:",$),p(!1),i(ge=>ge.map(le=>le.id===ee?{...le,status:"error"}:le));const ne={id:Math.random().toString(36).substring(7),sender:"system",text:`**Error de conexión:** No se pudo conectar con el webhook configurado.
|
||
|
||
Verifica que la URL productiva esté correcta en el entorno y que el endpoint esté activo y acepte solicitudes POST con FormData.`,timestamp:new Date,status:"error"};i(ge=>[...ge,ne])}finally{c(!1)}};return y?T.jsx("div",{className:"flex min-h-screen items-center justify-center bg-[#060816] text-zinc-200",children:"Cargando acceso..."}):m?T.jsxs("div",{className:"relative flex min-h-screen flex-col overflow-x-hidden bg-[#060816] text-zinc-100 font-sans selection:bg-indigo-500/30",children:[T.jsxs("div",{className:"pointer-events-none absolute inset-0 overflow-hidden",children:[T.jsx("div",{className:"absolute left-[-10%] top-[-15%] h-[34rem] w-[34rem] rounded-full bg-indigo-600/18 blur-3xl"}),T.jsx("div",{className:"absolute right-[-8%] top-[8%] h-[30rem] w-[30rem] rounded-full bg-cyan-400/12 blur-3xl"}),T.jsx("div",{className:"absolute bottom-[-18%] left-[20%] h-[28rem] w-[28rem] rounded-full bg-fuchsia-500/10 blur-3xl"}),T.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(255,255,255,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.03)_1px,transparent_1px)] bg-[size:42px_42px] opacity-[0.06]"})]}),T.jsx(b3,{isConnected:d,onLogout:Y}),T.jsx("main",{className:"relative flex-1",children:T.jsxs("div",{className:"mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6 pb-8 sm:px-6 lg:px-8",children:[T.jsx("section",{className:"overflow-hidden rounded-[32px] border border-white/10 bg-white/5 shadow-[0_30px_80px_rgba(0,0,0,0.35)] backdrop-blur-xl",children:T.jsxs("div",{className:"grid gap-0 lg:grid-cols-[1.5fr_1fr]",children:[T.jsxs("div",{className:"relative p-6 sm:p-7 lg:p-8",children:[T.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_top_left,rgba(99,102,241,0.22),transparent_38%),radial-gradient(circle_at_bottom_right,rgba(34,211,238,0.14),transparent_36%)]"}),T.jsxs("div",{className:"relative",children:[T.jsxs("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full border border-indigo-400/25 bg-indigo-500/10 px-3 py-1 text-xs font-semibold uppercase tracking-[0.22em] text-indigo-200",children:[T.jsx(Rm,{className:"h-3.5 w-3.5"})," Portal inteligente de briefs"]}),T.jsx("h2",{className:"max-w-3xl text-3xl font-semibold tracking-tight text-white sm:text-4xl",children:"Carga el brief en un flujo claro, visual y mucho más profesional."}),T.jsx("p",{className:"mt-4 max-w-2xl text-sm leading-7 text-zinc-300 sm:text-base",children:"La interfaz guía al usuario paso por paso, reduce errores de carga y organiza audio, imágenes, archivos y referencias para construir un brief listo para revisión interna."}),T.jsx("div",{className:"mt-6 flex flex-wrap gap-3",children:[{icon:Nm,label:"Validaciones obligatorias"},{icon:FD,label:"Proceso guiado por pasos"},{icon:XS,label:"Entrega estructurada al flujo"}].map(({icon:z,label:K})=>T.jsxs("div",{className:"inline-flex items-center gap-2 rounded-2xl border border-white/10 bg-black/20 px-4 py-3 text-sm text-zinc-200",children:[T.jsx(z,{className:"h-4 w-4 text-indigo-300"}),T.jsx("span",{children:K})]},K))})]})]}),T.jsx("div",{className:"border-t border-white/10 bg-black/20 p-6 sm:p-7 lg:border-l lg:border-t-0 lg:p-8",children:T.jsxs("div",{className:"rounded-[28px] border border-white/10 bg-black/25 p-5",children:[T.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"Resumen del sistema"}),T.jsx("div",{className:"mt-4 space-y-4",children:["La nota de voz, las imágenes y los PDFs se analizan automáticamente.","Excel, PowerPoint, Word y otros adjuntos se guardan como soporte en la carpeta del proyecto.","Los enlaces online se registran para alimentar el brief final.","El usuario no necesita usar el portal como chat libre: todo queda guiado."].map(z=>T.jsxs("div",{className:"flex items-start gap-3",children:[T.jsx("div",{className:"mt-1 h-2.5 w-2.5 rounded-full bg-indigo-400 shadow-[0_0_18px_rgba(129,140,248,0.7)]"}),T.jsx("p",{className:"text-sm leading-6 text-zinc-300",children:z})]},z))})]})})]})}),T.jsxs("section",{className:"rounded-[30px] border border-white/10 bg-black/20 p-4 shadow-[0_24px_60px_rgba(0,0,0,0.28)] backdrop-blur-xl sm:p-5",children:[T.jsx("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:T.jsxs("div",{children:[T.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"Carga guiada"}),T.jsx("h3",{className:"mt-1 text-lg font-semibold text-white sm:text-xl",children:"Completa el brief y envía la solicitud"})]})}),T.jsx(v3,{onSendMessage:Z,isProcessing:u})]}),T.jsxs("section",{className:"rounded-[30px] border border-white/10 bg-black/20 p-4 shadow-[0_24px_60px_rgba(0,0,0,0.28)] backdrop-blur-xl sm:p-5",children:[T.jsx("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:T.jsxs("div",{children:[T.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"Respuesta del portal"}),T.jsx("h3",{className:"mt-1 text-lg font-semibold text-white sm:text-xl",children:"Resultado de la solicitud"})]})}),T.jsxs("div",{className:"max-h-[65vh] min-h-[360px] overflow-y-auto rounded-[24px] border border-white/10 bg-white/[0.03] p-4 sm:p-5 lg:p-6 scrollbar-thin",children:[T.jsx(OS,{initial:!1,children:t.map(z=>T.jsx(KI,{message:z},z.id))}),u&&T.jsxs(Ua.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,scale:.9},className:"mb-4 flex w-fit items-center gap-3 rounded-2xl border border-white/10 bg-white/5 px-4 py-3",children:[T.jsx(KS,{className:"h-4 w-4 animate-spin text-indigo-400"}),T.jsx("span",{className:"text-sm font-medium text-zinc-300",children:"Procesando la solicitud..."})]}),T.jsx("div",{ref:C,className:"h-2"})]})]})]})})]}):T.jsx(QI,{onLogin:L,isLoading:x,error:M})}l_.createRoot(document.getElementById("root")).render(T.jsx(te.StrictMode,{children:T.jsx(e6,{})}));
|