spets 0.1.97 → 0.1.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,195 @@
1
+ var uy=t=>{throw TypeError(t)};var Of=(t,l,r)=>l.has(t)||uy("Cannot "+r);var O=(t,l,r)=>(Of(t,l,"read from private field"),r?r.call(t):l.get(t)),he=(t,l,r)=>l.has(t)?uy("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(t):l.set(t,r),ue=(t,l,r,a)=>(Of(t,l,"write to private field"),a?a.call(t,r):l.set(t,r),r),Te=(t,l,r)=>(Of(t,l,"access private method"),r);var qs=(t,l,r,a)=>({set _(s){ue(t,l,s,r)},get _(){return O(t,l,a)}});(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function Hb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Mf={exports:{}},Va={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var sy;function J1(){if(sy)return Va;sy=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(a,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var d in s)d!=="key"&&(o[d]=s[d])}else o=s;return s=o.ref,{$$typeof:t,type:a,key:c,ref:s!==void 0?s:null,props:o}}return Va.Fragment=l,Va.jsx=r,Va.jsxs=r,Va}var oy;function P1(){return oy||(oy=1,Mf.exports=J1()),Mf.exports}var E=P1(),Df={exports:{}},xe={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var cy;function $1(){if(cy)return xe;cy=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=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"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),x=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=x&&M[x]||M["@@iterator"],typeof M=="function"?M:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,T={};function k(M,K,w){this.props=M,this.context=K,this.refs=T,this.updater=w||C}k.prototype.isReactComponent={},k.prototype.setState=function(M,K){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,K,"setState")},k.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function U(){}U.prototype=k.prototype;function D(M,K,w){this.props=M,this.context=K,this.refs=T,this.updater=w||C}var Y=D.prototype=new U;Y.constructor=D,z(Y,k.prototype),Y.isPureReactComponent=!0;var P=Array.isArray;function B(){}var ee={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function le(M,K,w){var ae=w.ref;return{$$typeof:t,type:M,key:K,ref:ae!==void 0?ae:null,props:w}}function j(M,K){return le(M.type,K,M.props)}function ie(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function $(M){var K={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(w){return K[w]})}var Se=/\/+/g;function se(M,K){return typeof M=="object"&&M!==null&&M.key!=null?$(""+M.key):K.toString(36)}function ne(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(B,B):(M.status="pending",M.then(function(K){M.status==="pending"&&(M.status="fulfilled",M.value=K)},function(K){M.status==="pending"&&(M.status="rejected",M.reason=K)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function Q(M,K,w,ae,ye){var de=typeof M;(de==="undefined"||de==="boolean")&&(M=null);var Me=!1;if(M===null)Me=!0;else switch(de){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(M.$$typeof){case t:case l:Me=!0;break;case y:return Me=M._init,Q(Me(M._payload),K,w,ae,ye)}}if(Me)return ye=ye(M),Me=ae===""?"."+se(M,0):ae,P(ye)?(w="",Me!=null&&(w=Me.replace(Se,"$&/")+"/"),Q(ye,K,w,"",function(un){return un})):ye!=null&&(ie(ye)&&(ye=j(ye,w+(ye.key==null||M&&M.key===ye.key?"":(""+ye.key).replace(Se,"$&/")+"/")+Me)),K.push(ye)),1;Me=0;var nt=ae===""?".":ae+":";if(P(M))for(var Ge=0;Ge<M.length;Ge++)ae=M[Ge],de=nt+se(ae,Ge),Me+=Q(ae,K,w,de,ye);else if(Ge=v(M),typeof Ge=="function")for(M=Ge.call(M),Ge=0;!(ae=M.next()).done;)ae=ae.value,de=nt+se(ae,Ge++),Me+=Q(ae,K,w,de,ye);else if(de==="object"){if(typeof M.then=="function")return Q(ne(M),K,w,ae,ye);throw K=String(M),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return Me}function W(M,K,w){if(M==null)return M;var ae=[],ye=0;return Q(M,ae,"","",function(de){return K.call(w,de,ye++)}),ae}function ce(M){if(M._status===-1){var K=M._result;K=K(),K.then(function(w){(M._status===0||M._status===-1)&&(M._status=1,M._result=w)},function(w){(M._status===0||M._status===-1)&&(M._status=2,M._result=w)}),M._status===-1&&(M._status=0,M._result=K)}if(M._status===1)return M._result.default;throw M._result}var ve=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},A={map:W,forEach:function(M,K,w){W(M,function(){K.apply(this,arguments)},w)},count:function(M){var K=0;return W(M,function(){K++}),K},toArray:function(M){return W(M,function(K){return K})||[]},only:function(M){if(!ie(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return xe.Activity=g,xe.Children=A,xe.Component=k,xe.Fragment=r,xe.Profiler=s,xe.PureComponent=D,xe.StrictMode=a,xe.Suspense=p,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,xe.__COMPILER_RUNTIME={__proto__:null,c:function(M){return ee.H.useMemoCache(M)}},xe.cache=function(M){return function(){return M.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(M,K,w){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ae=z({},M.props),ye=M.key;if(K!=null)for(de in K.key!==void 0&&(ye=""+K.key),K)!V.call(K,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&K.ref===void 0||(ae[de]=K[de]);var de=arguments.length-2;if(de===1)ae.children=w;else if(1<de){for(var Me=Array(de),nt=0;nt<de;nt++)Me[nt]=arguments[nt+2];ae.children=Me}return le(M.type,ye,ae)},xe.createContext=function(M){return M={$$typeof:c,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:o,_context:M},M},xe.createElement=function(M,K,w){var ae,ye={},de=null;if(K!=null)for(ae in K.key!==void 0&&(de=""+K.key),K)V.call(K,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ye[ae]=K[ae]);var Me=arguments.length-2;if(Me===1)ye.children=w;else if(1<Me){for(var nt=Array(Me),Ge=0;Ge<Me;Ge++)nt[Ge]=arguments[Ge+2];ye.children=nt}if(M&&M.defaultProps)for(ae in Me=M.defaultProps,Me)ye[ae]===void 0&&(ye[ae]=Me[ae]);return le(M,de,ye)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(M){return{$$typeof:d,render:M}},xe.isValidElement=ie,xe.lazy=function(M){return{$$typeof:y,_payload:{_status:-1,_result:M},_init:ce}},xe.memo=function(M,K){return{$$typeof:m,type:M,compare:K===void 0?null:K}},xe.startTransition=function(M){var K=ee.T,w={};ee.T=w;try{var ae=M(),ye=ee.S;ye!==null&&ye(w,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(B,ve)}catch(de){ve(de)}finally{K!==null&&w.types!==null&&(K.types=w.types),ee.T=K}},xe.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},xe.use=function(M){return ee.H.use(M)},xe.useActionState=function(M,K,w){return ee.H.useActionState(M,K,w)},xe.useCallback=function(M,K){return ee.H.useCallback(M,K)},xe.useContext=function(M){return ee.H.useContext(M)},xe.useDebugValue=function(){},xe.useDeferredValue=function(M,K){return ee.H.useDeferredValue(M,K)},xe.useEffect=function(M,K){return ee.H.useEffect(M,K)},xe.useEffectEvent=function(M){return ee.H.useEffectEvent(M)},xe.useId=function(){return ee.H.useId()},xe.useImperativeHandle=function(M,K,w){return ee.H.useImperativeHandle(M,K,w)},xe.useInsertionEffect=function(M,K){return ee.H.useInsertionEffect(M,K)},xe.useLayoutEffect=function(M,K){return ee.H.useLayoutEffect(M,K)},xe.useMemo=function(M,K){return ee.H.useMemo(M,K)},xe.useOptimistic=function(M,K){return ee.H.useOptimistic(M,K)},xe.useReducer=function(M,K,w){return ee.H.useReducer(M,K,w)},xe.useRef=function(M){return ee.H.useRef(M)},xe.useState=function(M){return ee.H.useState(M)},xe.useSyncExternalStore=function(M,K,w){return ee.H.useSyncExternalStore(M,K,w)},xe.useTransition=function(){return ee.H.useTransition()},xe.version="19.2.4",xe}var fy;function Nh(){return fy||(fy=1,Df.exports=$1()),Df.exports}var L=Nh(),Nf={exports:{}},Xa={},_f={exports:{}},jf={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var hy;function W1(){return hy||(hy=1,(function(t){function l(Q,W){var ce=Q.length;Q.push(W);e:for(;0<ce;){var ve=ce-1>>>1,A=Q[ve];if(0<s(A,W))Q[ve]=W,Q[ce]=A,ce=ve;else break e}}function r(Q){return Q.length===0?null:Q[0]}function a(Q){if(Q.length===0)return null;var W=Q[0],ce=Q.pop();if(ce!==W){Q[0]=ce;e:for(var ve=0,A=Q.length,M=A>>>1;ve<M;){var K=2*(ve+1)-1,w=Q[K],ae=K+1,ye=Q[ae];if(0>s(w,ce))ae<A&&0>s(ye,w)?(Q[ve]=ye,Q[ae]=ce,ve=ae):(Q[ve]=w,Q[K]=ce,ve=K);else if(ae<A&&0>s(ye,ce))Q[ve]=ye,Q[ae]=ce,ve=ae;else break e}}return W}function s(Q,W){var ce=Q.sortIndex-W.sortIndex;return ce!==0?ce:Q.id-W.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var p=[],m=[],y=1,g=null,x=3,v=!1,C=!1,z=!1,T=!1,k=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function Y(Q){for(var W=r(m);W!==null;){if(W.callback===null)a(m);else if(W.startTime<=Q)a(m),W.sortIndex=W.expirationTime,l(p,W);else break;W=r(m)}}function P(Q){if(z=!1,Y(Q),!C)if(r(p)!==null)C=!0,B||(B=!0,$());else{var W=r(m);W!==null&&ne(P,W.startTime-Q)}}var B=!1,ee=-1,V=5,le=-1;function j(){return T?!0:!(t.unstable_now()-le<V)}function ie(){if(T=!1,B){var Q=t.unstable_now();le=Q;var W=!0;try{e:{C=!1,z&&(z=!1,U(ee),ee=-1),v=!0;var ce=x;try{t:{for(Y(Q),g=r(p);g!==null&&!(g.expirationTime>Q&&j());){var ve=g.callback;if(typeof ve=="function"){g.callback=null,x=g.priorityLevel;var A=ve(g.expirationTime<=Q);if(Q=t.unstable_now(),typeof A=="function"){g.callback=A,Y(Q),W=!0;break t}g===r(p)&&a(p),Y(Q)}else a(p);g=r(p)}if(g!==null)W=!0;else{var M=r(m);M!==null&&ne(P,M.startTime-Q),W=!1}}break e}finally{g=null,x=ce,v=!1}W=void 0}}finally{W?$():B=!1}}}var $;if(typeof D=="function")$=function(){D(ie)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,se=Se.port2;Se.port1.onmessage=ie,$=function(){se.postMessage(null)}}else $=function(){k(ie,0)};function ne(Q,W){ee=k(function(){Q(t.unstable_now())},W)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Q){Q.callback=null},t.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<Q?Math.floor(1e3/Q):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(Q){switch(x){case 1:case 2:case 3:var W=3;break;default:W=x}var ce=x;x=W;try{return Q()}finally{x=ce}},t.unstable_requestPaint=function(){T=!0},t.unstable_runWithPriority=function(Q,W){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var ce=x;x=Q;try{return W()}finally{x=ce}},t.unstable_scheduleCallback=function(Q,W,ce){var ve=t.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?ve+ce:ve):ce=ve,Q){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=ce+A,Q={id:y++,callback:W,priorityLevel:Q,startTime:ce,expirationTime:A,sortIndex:-1},ce>ve?(Q.sortIndex=ce,l(m,Q),r(p)===null&&Q===r(m)&&(z?(U(ee),ee=-1):z=!0,ne(P,ce-ve))):(Q.sortIndex=A,l(p,Q),C||v||(C=!0,B||(B=!0,$()))),Q},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(Q){var W=x;return function(){var ce=x;x=W;try{return Q.apply(this,arguments)}finally{x=ce}}}})(jf)),jf}var dy;function eS(){return dy||(dy=1,_f.exports=W1()),_f.exports}var Lf={exports:{}},At={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var my;function tS(){if(my)return At;my=1;var t=Nh();function l(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}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 r(){}var a={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(p,m,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:p,containerInfo:m,implementation:y}}var c=t.__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 At.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,At.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return o(p,m,null,y)},At.flushSync=function(p){var m=c.T,y=a.p;try{if(c.T=null,a.p=2,p)return p()}finally{c.T=m,a.p=y,a.d.f()}},At.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))},At.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},At.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?a.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:v}):y==="script"&&a.d.X(p,{crossOrigin:g,integrity:x,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},At.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=d(m.as,m.crossOrigin);a.d.M(p,{crossOrigin:y,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)},At.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin);a.d.L(p,y,{crossOrigin:g,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})}},At.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=d(m.as,m.crossOrigin);a.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else a.d.m(p)},At.requestFormReset=function(p){a.d.r(p)},At.unstable_batchedUpdates=function(p,m){return p(m)},At.useFormState=function(p,m,y){return c.H.useFormState(p,m,y)},At.useFormStatus=function(){return c.H.useHostTransitionStatus()},At.version="19.2.4",At}var py;function nS(){if(py)return Lf.exports;py=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Lf.exports=tS(),Lf.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var gy;function lS(){if(gy)return Xa;gy=1;var t=eS(),l=Nh(),r=nS();function a(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(o(e)!==e)throw Error(a(188))}function m(e){var n=e.alternate;if(!n){if(n=o(e),n===null)throw Error(a(188));return n!==e?null:e}for(var i=e,u=n;;){var f=i.return;if(f===null)break;var h=f.alternate;if(h===null){if(u=f.return,u!==null){i=u;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===i)return p(f),e;if(h===u)return p(f),n;h=h.sibling}throw Error(a(188))}if(i.return!==u.return)i=f,u=h;else{for(var b=!1,S=f.child;S;){if(S===i){b=!0,i=f,u=h;break}if(S===u){b=!0,u=f,i=h;break}S=S.sibling}if(!b){for(S=h.child;S;){if(S===i){b=!0,i=h,u=f;break}if(S===u){b=!0,u=h,i=f;break}S=S.sibling}if(!b)throw Error(a(189))}}if(i.alternate!==u)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),D=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case k:return"Profiler";case T:return"StrictMode";case P:return"Suspense";case B:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case D:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case Y:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ee:return n=e.displayName||null,n!==null?n:se(e.type)||"Memo";case V:n=e._payload,e=e._init;try{return se(e(n))}catch{}}return null}var ne=Array.isArray,Q=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},ve=[],A=-1;function M(e){return{current:e}}function K(e){0>A||(e.current=ve[A],ve[A]=null,A--)}function w(e,n){A++,ve[A]=e.current,e.current=n}var ae=M(null),ye=M(null),de=M(null),Me=M(null);function nt(e,n){switch(w(de,n),w(ye,e),w(ae,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Og(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Og(n),e=Mg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(ae),w(ae,e)}function Ge(){K(ae),K(ye),K(de)}function un(e){e.memoizedState!==null&&w(Me,e);var n=ae.current,i=Mg(n,e.type);n!==i&&(w(ye,e),w(ae,i))}function qn(e){ye.current===e&&(K(ae),K(ye)),Me.current===e&&(K(Me),Qa._currentValue=ce)}var $r,Su;function Qn(e){if($r===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);$r=n&&n[1]||"",Su=-1<i.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+$r+e+Su}var qi=!1;function Qi(e,n){if(!e||qi)return"";qi=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(n){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(G){var F=G}Reflect.construct(e,[],J)}else{try{J.call()}catch(G){F=G}e.call(J.prototype)}}else{try{throw Error()}catch(G){F=G}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(G){if(G&&F&&typeof G.stack=="string")return[G.stack,F.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=u.DetermineComponentFrameRoot(),b=h[0],S=h[1];if(b&&S){var R=b.split(`
44
+ `),q=S.split(`
45
+ `);for(f=u=0;u<R.length&&!R[u].includes("DetermineComponentFrameRoot");)u++;for(;f<q.length&&!q[f].includes("DetermineComponentFrameRoot");)f++;if(u===R.length||f===q.length)for(u=R.length-1,f=q.length-1;1<=u&&0<=f&&R[u]!==q[f];)f--;for(;1<=u&&0<=f;u--,f--)if(R[u]!==q[f]){if(u!==1||f!==1)do if(u--,f--,0>f||R[u]!==q[f]){var X=`
46
+ `+R[u].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=u&&0<=f);break}}}finally{qi=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Qn(i):""}function wu(e,n){switch(e.tag){case 26:case 27:case 5:return Qn(e.type);case 16:return Qn("Lazy");case 13:return e.child!==n&&n!==null?Qn("Suspense Fallback"):Qn("Suspense");case 19:return Qn("SuspenseList");case 0:case 15:return Qi(e.type,!1);case 11:return Qi(e.type.render,!1);case 1:return Qi(e.type,!0);case 31:return Qn("Activity");default:return""}}function Eu(e){try{var n="",i=null;do n+=wu(e,i),i=e,e=e.return;while(e);return n}catch(u){return`
47
+ Error generating stack: `+u.message+`
48
+ `+u.stack}}var Fi=Object.prototype.hasOwnProperty,Yi=t.unstable_scheduleCallback,Wr=t.unstable_cancelCallback,mo=t.unstable_shouldYield,po=t.unstable_requestPaint,Mt=t.unstable_now,go=t.unstable_getCurrentPriorityLevel,Z=t.unstable_ImmediatePriority,re=t.unstable_UserBlockingPriority,be=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,qe=t.unstable_IdlePriority,It=t.log,Fn=t.unstable_setDisableYieldValue,Dt=null,pt=null;function Ut(e){if(typeof It=="function"&&Fn(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Dt,e)}catch{}}var Ze=Math.clz32?Math.clz32:Lx,yl=Math.log,wn=Math.LN2;function Lx(e){return e>>>=0,e===0?32:31-(yl(e)/wn|0)|0}var Cu=256,ku=262144,Tu=4194304;function ri(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Au(e,n,i){var u=e.pendingLanes;if(u===0)return 0;var f=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=u&134217727;return S!==0?(u=S&~h,u!==0?f=ri(u):(b&=S,b!==0?f=ri(b):i||(i=S&~e,i!==0&&(f=ri(i))))):(S=u&~h,S!==0?f=ri(S):b!==0?f=ri(b):i||(i=u&~e,i!==0&&(f=ri(i)))),f===0?0:n!==0&&n!==f&&(n&h)===0&&(h=f&-f,i=n&-n,h>=i||h===32&&(i&4194048)!==0)?n:f}function ea(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ux(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 fd(){var e=Tu;return Tu<<=1,(Tu&62914560)===0&&(Tu=4194304),e}function yo(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function ta(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bx(e,n,i,u,f,h){var b=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var S=e.entanglements,R=e.expirationTimes,q=e.hiddenUpdates;for(i=b&~i;0<i;){var X=31-Ze(i),J=1<<X;S[X]=0,R[X]=-1;var F=q[X];if(F!==null)for(q[X]=null,X=0;X<F.length;X++){var G=F[X];G!==null&&(G.lane&=-536870913)}i&=~J}u!==0&&hd(e,u,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function hd(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-Ze(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|i&261930}function dd(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var u=31-Ze(i),f=1<<u;f&n|e[u]&n&&(e[u]|=n),i&=~f}}function md(e,n){var i=n&-n;return i=(i&42)!==0?1:bo(i),(i&(e.suspendedLanes|n))!==0?0:i}function bo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function vo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function pd(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:ey(e.type))}function gd(e,n){var i=W.p;try{return W.p=e,n()}finally{W.p=i}}var bl=Math.random().toString(36).slice(2),St="__reactFiber$"+bl,Bt="__reactProps$"+bl,Gi="__reactContainer$"+bl,xo="__reactEvents$"+bl,Hx="__reactListeners$"+bl,qx="__reactHandles$"+bl,yd="__reactResources$"+bl,na="__reactMarker$"+bl;function So(e){delete e[St],delete e[Bt],delete e[xo],delete e[Hx],delete e[qx]}function Vi(e){var n=e[St];if(n)return n;for(var i=e.parentNode;i;){if(n=i[Gi]||i[St]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Bg(e);e!==null;){if(i=e[St])return i;e=Bg(e)}return n}e=i,i=e.parentNode}return null}function Xi(e){if(e=e[St]||e[Gi]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function la(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function Ki(e){var n=e[yd];return n||(n=e[yd]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function bt(e){e[na]=!0}var bd=new Set,vd={};function ai(e,n){Zi(e,n),Zi(e+"Capture",n)}function Zi(e,n){for(vd[e]=n,e=0;e<n.length;e++)bd.add(n[e])}var Qx=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]*$"),xd={},Sd={};function Fx(e){return Fi.call(Sd,e)?!0:Fi.call(xd,e)?!1:Qx.test(e)?Sd[e]=!0:(xd[e]=!0,!1)}function zu(e,n,i){if(Fx(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Ru(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function Yn(e,n,i,u){if(u===null)e.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+u)}}function sn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wd(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Yx(e,n,i){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(b){i=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:u.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function wo(e){if(!e._valueTracker){var n=wd(e)?"checked":"value";e._valueTracker=Yx(e,n,""+e[n])}}function Ed(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),u="";return e&&(u=wd(e)?e.checked?"true":"false":e.value),e=u,e!==i?(n.setValue(e),!0):!1}function Ou(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Gx=/[\n"\\]/g;function on(e){return e.replace(Gx,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Eo(e,n,i,u,f,h,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+sn(n)):e.value!==""+sn(n)&&(e.value=""+sn(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Co(e,b,sn(n)):i!=null?Co(e,b,sn(i)):u!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+sn(S):e.removeAttribute("name")}function Cd(e,n,i,u,f,h,b,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||i!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){wo(e);return}i=i!=null?""+sn(i):"",n=n!=null?""+sn(n):i,S||n===e.value||(e.value=n),e.defaultValue=n}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=S?e.checked:!!u,e.defaultChecked=!!u,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),wo(e)}function Co(e,n,i){n==="number"&&Ou(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Ii(e,n,i,u){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&u&&(e[i].defaultSelected=!0)}else{for(i=""+sn(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function kd(e,n,i){if(n!=null&&(n=""+sn(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+sn(i):""}function Td(e,n,i,u){if(n==null){if(u!=null){if(i!=null)throw Error(a(92));if(ne(u)){if(1<u.length)throw Error(a(93));u=u[0]}i=u}i==null&&(i=""),n=i}i=sn(n),e.defaultValue=i,u=e.textContent,u===i&&u!==""&&u!==null&&(e.value=u),wo(e)}function Ji(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var Vx=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 Ad(e,n,i){var u=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,i):typeof i!="number"||i===0||Vx.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function zd(e,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,i!=null){for(var u in i)!i.hasOwnProperty(u)||n!=null&&n.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var f in n)u=n[f],n.hasOwnProperty(f)&&i[f]!==u&&Ad(e,f,u)}else for(var h in n)n.hasOwnProperty(h)&&Ad(e,h,n[h])}function ko(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xx=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"]]),Kx=/^[\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 Mu(e){return Kx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gn(){}var To=null;function Ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pi=null,$i=null;function Rd(e){var n=Xi(e);if(n&&(e=n.stateNode)){var i=e[Bt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Eo(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+on(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var u=i[n];if(u!==e&&u.form===e.form){var f=u[Bt]||null;if(!f)throw Error(a(90));Eo(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)u=i[n],u.form===e.form&&Ed(u)}break e;case"textarea":kd(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Ii(e,!!i.multiple,n,!1)}}}var zo=!1;function Od(e,n,i){if(zo)return e(n,i);zo=!0;try{var u=e(n);return u}finally{if(zo=!1,(Pi!==null||$i!==null)&&(bs(),Pi&&(n=Pi,e=$i,$i=Pi=null,Rd(n),e)))for(n=0;n<e.length;n++)Rd(e[n])}}function ia(e,n){var i=e.stateNode;if(i===null)return null;var u=i[Bt]||null;if(u===null)return null;i=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var Vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ro=!1;if(Vn)try{var ra={};Object.defineProperty(ra,"passive",{get:function(){Ro=!0}}),window.addEventListener("test",ra,ra),window.removeEventListener("test",ra,ra)}catch{Ro=!1}var vl=null,Oo=null,Du=null;function Md(){if(Du)return Du;var e,n=Oo,i=n.length,u,f="value"in vl?vl.value:vl.textContent,h=f.length;for(e=0;e<i&&n[e]===f[e];e++);var b=i-e;for(u=1;u<=b&&n[i-u]===f[h-u];u++);return Du=f.slice(e,1<u?1-u:void 0)}function Nu(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function _u(){return!0}function Dd(){return!1}function Ht(e){function n(i,u,f,h,b){this._reactName=i,this._targetInst=f,this.type=u,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(i=e[S],this[S]=i?i(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?_u:Dd,this.isPropagationStopped=Dd,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=_u)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=_u)},persist:function(){},isPersistent:_u}),n}var ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ju=Ht(ui),aa=g({},ui,{view:0,detail:0}),Zx=Ht(aa),Mo,Do,ua,Lu=g({},aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_o,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ua&&(ua&&e.type==="mousemove"?(Mo=e.screenX-ua.screenX,Do=e.screenY-ua.screenY):Do=Mo=0,ua=e),Mo)},movementY:function(e){return"movementY"in e?e.movementY:Do}}),Nd=Ht(Lu),Ix=g({},Lu,{dataTransfer:0}),Jx=Ht(Ix),Px=g({},aa,{relatedTarget:0}),No=Ht(Px),$x=g({},ui,{animationName:0,elapsedTime:0,pseudoElement:0}),Wx=Ht($x),e0=g({},ui,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),t0=Ht(e0),n0=g({},ui,{data:0}),_d=Ht(n0),l0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i0={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"},r0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function a0(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=r0[e])?!!n[e]:!1}function _o(){return a0}var u0=g({},aa,{key:function(e){if(e.key){var n=l0[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Nu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?i0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_o,charCode:function(e){return e.type==="keypress"?Nu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s0=Ht(u0),o0=g({},Lu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jd=Ht(o0),c0=g({},aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_o}),f0=Ht(c0),h0=g({},ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),d0=Ht(h0),m0=g({},Lu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),p0=Ht(m0),g0=g({},ui,{newState:0,oldState:0}),y0=Ht(g0),b0=[9,13,27,32],jo=Vn&&"CompositionEvent"in window,sa=null;Vn&&"documentMode"in document&&(sa=document.documentMode);var v0=Vn&&"TextEvent"in window&&!sa,Ld=Vn&&(!jo||sa&&8<sa&&11>=sa),Ud=" ",Bd=!1;function Hd(e,n){switch(e){case"keyup":return b0.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wi=!1;function x0(e,n){switch(e){case"compositionend":return qd(n);case"keypress":return n.which!==32?null:(Bd=!0,Ud);case"textInput":return e=n.data,e===Ud&&Bd?null:e;default:return null}}function S0(e,n){if(Wi)return e==="compositionend"||!jo&&Hd(e,n)?(e=Md(),Du=Oo=vl=null,Wi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Ld&&n.locale!=="ko"?null:n.data;default:return null}}var w0={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 Qd(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!w0[e.type]:n==="textarea"}function Fd(e,n,i,u){Pi?$i?$i.push(u):$i=[u]:Pi=u,n=ks(n,"onChange"),0<n.length&&(i=new ju("onChange","change",null,i,u),e.push({event:i,listeners:n}))}var oa=null,ca=null;function E0(e){Cg(e,0)}function Uu(e){var n=la(e);if(Ed(n))return e}function Yd(e,n){if(e==="change")return n}var Gd=!1;if(Vn){var Lo;if(Vn){var Uo="oninput"in document;if(!Uo){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),Uo=typeof Vd.oninput=="function"}Lo=Uo}else Lo=!1;Gd=Lo&&(!document.documentMode||9<document.documentMode)}function Xd(){oa&&(oa.detachEvent("onpropertychange",Kd),ca=oa=null)}function Kd(e){if(e.propertyName==="value"&&Uu(ca)){var n=[];Fd(n,ca,e,Ao(e)),Od(E0,n)}}function C0(e,n,i){e==="focusin"?(Xd(),oa=n,ca=i,oa.attachEvent("onpropertychange",Kd)):e==="focusout"&&Xd()}function k0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Uu(ca)}function T0(e,n){if(e==="click")return Uu(n)}function A0(e,n){if(e==="input"||e==="change")return Uu(n)}function z0(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Jt=typeof Object.is=="function"?Object.is:z0;function fa(e,n){if(Jt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),u=Object.keys(n);if(i.length!==u.length)return!1;for(u=0;u<i.length;u++){var f=i[u];if(!Fi.call(n,f)||!Jt(e[f],n[f]))return!1}return!0}function Zd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Id(e,n){var i=Zd(e);e=0;for(var u;i;){if(i.nodeType===3){if(u=e+i.textContent.length,e<=n&&u>=n)return{node:i,offset:n-e};e=u}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Zd(i)}}function Jd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Jd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Pd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ou(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Ou(e.document)}return n}function Bo(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var R0=Vn&&"documentMode"in document&&11>=document.documentMode,er=null,Ho=null,ha=null,qo=!1;function $d(e,n,i){var u=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;qo||er==null||er!==Ou(u)||(u=er,"selectionStart"in u&&Bo(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),ha&&fa(ha,u)||(ha=u,u=ks(Ho,"onSelect"),0<u.length&&(n=new ju("onSelect","select",null,n,i),e.push({event:n,listeners:u}),n.target=er)))}function si(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var tr={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionrun:si("Transition","TransitionRun"),transitionstart:si("Transition","TransitionStart"),transitioncancel:si("Transition","TransitionCancel"),transitionend:si("Transition","TransitionEnd")},Qo={},Wd={};Vn&&(Wd=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function oi(e){if(Qo[e])return Qo[e];if(!tr[e])return e;var n=tr[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in Wd)return Qo[e]=n[i];return e}var em=oi("animationend"),tm=oi("animationiteration"),nm=oi("animationstart"),O0=oi("transitionrun"),M0=oi("transitionstart"),D0=oi("transitioncancel"),lm=oi("transitionend"),im=new Map,Fo="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(" ");Fo.push("scrollEnd");function En(e,n){im.set(e,n),ai(n,[e])}var Bu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},cn=[],nr=0,Yo=0;function Hu(){for(var e=nr,n=Yo=nr=0;n<e;){var i=cn[n];cn[n++]=null;var u=cn[n];cn[n++]=null;var f=cn[n];cn[n++]=null;var h=cn[n];if(cn[n++]=null,u!==null&&f!==null){var b=u.pending;b===null?f.next=f:(f.next=b.next,b.next=f),u.pending=f}h!==0&&rm(i,f,h)}}function qu(e,n,i,u){cn[nr++]=e,cn[nr++]=n,cn[nr++]=i,cn[nr++]=u,Yo|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Go(e,n,i,u){return qu(e,n,i,u),Qu(e)}function ci(e,n){return qu(e,null,null,n),Qu(e)}function rm(e,n,i){e.lanes|=i;var u=e.alternate;u!==null&&(u.lanes|=i);for(var f=!1,h=e.return;h!==null;)h.childLanes|=i,u=h.alternate,u!==null&&(u.childLanes|=i),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&n!==null&&(f=31-Ze(i),e=h.hiddenUpdates,u=e[f],u===null?e[f]=[n]:u.push(n),n.lane=i|536870912),h):null}function Qu(e){if(50<_a)throw _a=0,Wc=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var lr={};function N0(e,n,i,u){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,n,i,u){return new N0(e,n,i,u)}function Vo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xn(e,n){var i=e.alternate;return i===null?(i=Pt(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function am(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Fu(e,n,i,u,f,h){var b=0;if(u=e,typeof e=="function")Vo(e)&&(b=1);else if(typeof e=="string")b=B1(e,i,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Pt(31,i,n,f),e.elementType=le,e.lanes=h,e;case z:return fi(i.children,f,h,n);case T:b=8,f|=24;break;case k:return e=Pt(12,i,n,f|2),e.elementType=k,e.lanes=h,e;case P:return e=Pt(13,i,n,f),e.elementType=P,e.lanes=h,e;case B:return e=Pt(19,i,n,f),e.elementType=B,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:b=10;break e;case U:b=9;break e;case Y:b=11;break e;case ee:b=14;break e;case V:b=16,u=null;break e}b=29,i=Error(a(130,e===null?"null":typeof e,"")),u=null}return n=Pt(b,i,n,f),n.elementType=e,n.type=u,n.lanes=h,n}function fi(e,n,i,u){return e=Pt(7,e,u,n),e.lanes=i,e}function Xo(e,n,i){return e=Pt(6,e,null,n),e.lanes=i,e}function um(e){var n=Pt(18,null,null,0);return n.stateNode=e,n}function Ko(e,n,i){return n=Pt(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var sm=new WeakMap;function fn(e,n){if(typeof e=="object"&&e!==null){var i=sm.get(e);return i!==void 0?i:(n={value:e,source:n,stack:Eu(n)},sm.set(e,n),n)}return{value:e,source:n,stack:Eu(n)}}var ir=[],rr=0,Yu=null,da=0,hn=[],dn=0,xl=null,On=1,Mn="";function Kn(e,n){ir[rr++]=da,ir[rr++]=Yu,Yu=e,da=n}function om(e,n,i){hn[dn++]=On,hn[dn++]=Mn,hn[dn++]=xl,xl=e;var u=On;e=Mn;var f=32-Ze(u)-1;u&=~(1<<f),i+=1;var h=32-Ze(n)+f;if(30<h){var b=f-f%5;h=(u&(1<<b)-1).toString(32),u>>=b,f-=b,On=1<<32-Ze(n)+f|i<<f|u,Mn=h+e}else On=1<<h|i<<f|u,Mn=e}function Zo(e){e.return!==null&&(Kn(e,1),om(e,1,0))}function Io(e){for(;e===Yu;)Yu=ir[--rr],ir[rr]=null,da=ir[--rr],ir[rr]=null;for(;e===xl;)xl=hn[--dn],hn[dn]=null,Mn=hn[--dn],hn[dn]=null,On=hn[--dn],hn[dn]=null}function cm(e,n){hn[dn++]=On,hn[dn++]=Mn,hn[dn++]=xl,On=n.id,Mn=n.overflow,xl=e}var wt=null,$e=null,_e=!1,Sl=null,mn=!1,Jo=Error(a(519));function wl(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ma(fn(n,e)),Jo}function fm(e){var n=e.stateNode,i=e.type,u=e.memoizedProps;switch(n[St]=e,n[Bt]=u,i){case"dialog":Re("cancel",n),Re("close",n);break;case"iframe":case"object":case"embed":Re("load",n);break;case"video":case"audio":for(i=0;i<La.length;i++)Re(La[i],n);break;case"source":Re("error",n);break;case"img":case"image":case"link":Re("error",n),Re("load",n);break;case"details":Re("toggle",n);break;case"input":Re("invalid",n),Cd(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Re("invalid",n);break;case"textarea":Re("invalid",n),Td(n,u.value,u.defaultValue,u.children)}i=u.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||u.suppressHydrationWarning===!0||zg(n.textContent,i)?(u.popover!=null&&(Re("beforetoggle",n),Re("toggle",n)),u.onScroll!=null&&Re("scroll",n),u.onScrollEnd!=null&&Re("scrollend",n),u.onClick!=null&&(n.onclick=Gn),n=!0):n=!1,n||wl(e,!0)}function hm(e){for(wt=e.return;wt;)switch(wt.tag){case 5:case 31:case 13:mn=!1;return;case 27:case 3:mn=!0;return;default:wt=wt.return}}function ar(e){if(e!==wt)return!1;if(!_e)return hm(e),_e=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||pf(e.type,e.memoizedProps)),i=!i),i&&$e&&wl(e),hm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));$e=Ug(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));$e=Ug(e)}else n===27?(n=$e,Ll(e.type)?(e=xf,xf=null,$e=e):$e=n):$e=wt?gn(e.stateNode.nextSibling):null;return!0}function hi(){$e=wt=null,_e=!1}function Po(){var e=Sl;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),Sl=null),e}function ma(e){Sl===null?Sl=[e]:Sl.push(e)}var $o=M(null),di=null,Zn=null;function El(e,n,i){w($o,n._currentValue),n._currentValue=i}function In(e){e._currentValue=$o.current,K($o)}function Wo(e,n,i){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===i)break;e=e.return}}function ec(e,n,i,u){var f=e.child;for(f!==null&&(f.return=e);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 R=0;R<n.length;R++)if(S.context===n[R]){h.lanes|=i,S=h.alternate,S!==null&&(S.lanes|=i),Wo(h.return,i,e),u||(b=null);break e}h=S.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(a(341));b.lanes|=i,h=b.alternate,h!==null&&(h.lanes|=i),Wo(b,i,e),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===e){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function ur(e,n,i,u){e=null;for(var f=n,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;Jt(f.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(f===Me.current){if(b=f.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Qa):e=[Qa])}f=f.return}e!==null&&ec(n,e,i,u),n.flags|=262144}function Gu(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function mi(e){di=e,Zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Et(e){return dm(di,e)}function Vu(e,n){return di===null&&mi(e),dm(e,n)}function dm(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Zn===null){if(e===null)throw Error(a(308));Zn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Zn=Zn.next=n;return i}var _0=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,u){e.push(u)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},j0=t.unstable_scheduleCallback,L0=t.unstable_NormalPriority,ct={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tc(){return{controller:new _0,data:new Map,refCount:0}}function pa(e){e.refCount--,e.refCount===0&&j0(L0,function(){e.controller.abort()})}var ga=null,nc=0,sr=0,or=null;function U0(e,n){if(ga===null){var i=ga=[];nc=0,sr=af(),or={status:"pending",value:void 0,then:function(u){i.push(u)}}}return nc++,n.then(mm,mm),n}function mm(){if(--nc===0&&ga!==null){or!==null&&(or.status="fulfilled");var e=ga;ga=null,sr=0,or=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function B0(e,n){var i=[],u={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){u.status="fulfilled",u.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(u.status="rejected",u.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),u}var pm=Q.S;Q.S=function(e,n){$p=Mt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&U0(e,n),pm!==null&&pm(e,n)};var pi=M(null);function lc(){var e=pi.current;return e!==null?e:Ie.pooledCache}function Xu(e,n){n===null?w(pi,pi.current):w(pi,n.pool)}function gm(){var e=lc();return e===null?null:{parent:ct._currentValue,pool:e}}var cr=Error(a(460)),ic=Error(a(474)),Ku=Error(a(542)),Zu={then:function(){}};function ym(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bm(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(Gn,Gn),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,xm(e),e;default:if(typeof n.status=="string")n.then(Gn,Gn);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(u){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=u}},function(u){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=u}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,xm(e),e}throw yi=n,cr}}function gi(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(yi=i,cr):i}}var yi=null;function vm(){if(yi===null)throw Error(a(459));var e=yi;return yi=null,e}function xm(e){if(e===cr||e===Ku)throw Error(a(483))}var fr=null,ya=0;function Iu(e){var n=ya;return ya+=1,fr===null&&(fr=[]),bm(fr,e,n)}function ba(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Ju(e,n){throw n.$$typeof===x?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Sm(e){function n(_,N){if(e){var H=_.deletions;H===null?(_.deletions=[N],_.flags|=16):H.push(N)}}function i(_,N){if(!e)return null;for(;N!==null;)n(_,N),N=N.sibling;return null}function u(_){for(var N=new Map;_!==null;)_.key!==null?N.set(_.key,_):N.set(_.index,_),_=_.sibling;return N}function f(_,N){return _=Xn(_,N),_.index=0,_.sibling=null,_}function h(_,N,H){return _.index=H,e?(H=_.alternate,H!==null?(H=H.index,H<N?(_.flags|=67108866,N):H):(_.flags|=67108866,N)):(_.flags|=1048576,N)}function b(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function S(_,N,H,I){return N===null||N.tag!==6?(N=Xo(H,_.mode,I),N.return=_,N):(N=f(N,H),N.return=_,N)}function R(_,N,H,I){var me=H.type;return me===z?X(_,N,H.props.children,I,H.key):N!==null&&(N.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===V&&gi(me)===N.type)?(N=f(N,H.props),ba(N,H),N.return=_,N):(N=Fu(H.type,H.key,H.props,null,_.mode,I),ba(N,H),N.return=_,N)}function q(_,N,H,I){return N===null||N.tag!==4||N.stateNode.containerInfo!==H.containerInfo||N.stateNode.implementation!==H.implementation?(N=Ko(H,_.mode,I),N.return=_,N):(N=f(N,H.children||[]),N.return=_,N)}function X(_,N,H,I,me){return N===null||N.tag!==7?(N=fi(H,_.mode,I,me),N.return=_,N):(N=f(N,H),N.return=_,N)}function J(_,N,H){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Xo(""+N,_.mode,H),N.return=_,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case v:return H=Fu(N.type,N.key,N.props,null,_.mode,H),ba(H,N),H.return=_,H;case C:return N=Ko(N,_.mode,H),N.return=_,N;case V:return N=gi(N),J(_,N,H)}if(ne(N)||$(N))return N=fi(N,_.mode,H,null),N.return=_,N;if(typeof N.then=="function")return J(_,Iu(N),H);if(N.$$typeof===D)return J(_,Vu(_,N),H);Ju(_,N)}return null}function F(_,N,H,I){var me=N!==null?N.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return me!==null?null:S(_,N,""+H,I);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case v:return H.key===me?R(_,N,H,I):null;case C:return H.key===me?q(_,N,H,I):null;case V:return H=gi(H),F(_,N,H,I)}if(ne(H)||$(H))return me!==null?null:X(_,N,H,I,null);if(typeof H.then=="function")return F(_,N,Iu(H),I);if(H.$$typeof===D)return F(_,N,Vu(_,H),I);Ju(_,H)}return null}function G(_,N,H,I,me){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return _=_.get(H)||null,S(N,_,""+I,me);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case v:return _=_.get(I.key===null?H:I.key)||null,R(N,_,I,me);case C:return _=_.get(I.key===null?H:I.key)||null,q(N,_,I,me);case V:return I=gi(I),G(_,N,H,I,me)}if(ne(I)||$(I))return _=_.get(H)||null,X(N,_,I,me,null);if(typeof I.then=="function")return G(_,N,H,Iu(I),me);if(I.$$typeof===D)return G(_,N,H,Vu(N,I),me);Ju(N,I)}return null}function oe(_,N,H,I){for(var me=null,Ue=null,fe=N,Ee=N=0,Ne=null;fe!==null&&Ee<H.length;Ee++){fe.index>Ee?(Ne=fe,fe=null):Ne=fe.sibling;var Be=F(_,fe,H[Ee],I);if(Be===null){fe===null&&(fe=Ne);break}e&&fe&&Be.alternate===null&&n(_,fe),N=h(Be,N,Ee),Ue===null?me=Be:Ue.sibling=Be,Ue=Be,fe=Ne}if(Ee===H.length)return i(_,fe),_e&&Kn(_,Ee),me;if(fe===null){for(;Ee<H.length;Ee++)fe=J(_,H[Ee],I),fe!==null&&(N=h(fe,N,Ee),Ue===null?me=fe:Ue.sibling=fe,Ue=fe);return _e&&Kn(_,Ee),me}for(fe=u(fe);Ee<H.length;Ee++)Ne=G(fe,_,Ee,H[Ee],I),Ne!==null&&(e&&Ne.alternate!==null&&fe.delete(Ne.key===null?Ee:Ne.key),N=h(Ne,N,Ee),Ue===null?me=Ne:Ue.sibling=Ne,Ue=Ne);return e&&fe.forEach(function(Ql){return n(_,Ql)}),_e&&Kn(_,Ee),me}function ge(_,N,H,I){if(H==null)throw Error(a(151));for(var me=null,Ue=null,fe=N,Ee=N=0,Ne=null,Be=H.next();fe!==null&&!Be.done;Ee++,Be=H.next()){fe.index>Ee?(Ne=fe,fe=null):Ne=fe.sibling;var Ql=F(_,fe,Be.value,I);if(Ql===null){fe===null&&(fe=Ne);break}e&&fe&&Ql.alternate===null&&n(_,fe),N=h(Ql,N,Ee),Ue===null?me=Ql:Ue.sibling=Ql,Ue=Ql,fe=Ne}if(Be.done)return i(_,fe),_e&&Kn(_,Ee),me;if(fe===null){for(;!Be.done;Ee++,Be=H.next())Be=J(_,Be.value,I),Be!==null&&(N=h(Be,N,Ee),Ue===null?me=Be:Ue.sibling=Be,Ue=Be);return _e&&Kn(_,Ee),me}for(fe=u(fe);!Be.done;Ee++,Be=H.next())Be=G(fe,_,Ee,Be.value,I),Be!==null&&(e&&Be.alternate!==null&&fe.delete(Be.key===null?Ee:Be.key),N=h(Be,N,Ee),Ue===null?me=Be:Ue.sibling=Be,Ue=Be);return e&&fe.forEach(function(I1){return n(_,I1)}),_e&&Kn(_,Ee),me}function Ke(_,N,H,I){if(typeof H=="object"&&H!==null&&H.type===z&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case v:e:{for(var me=H.key;N!==null;){if(N.key===me){if(me=H.type,me===z){if(N.tag===7){i(_,N.sibling),I=f(N,H.props.children),I.return=_,_=I;break e}}else if(N.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===V&&gi(me)===N.type){i(_,N.sibling),I=f(N,H.props),ba(I,H),I.return=_,_=I;break e}i(_,N);break}else n(_,N);N=N.sibling}H.type===z?(I=fi(H.props.children,_.mode,I,H.key),I.return=_,_=I):(I=Fu(H.type,H.key,H.props,null,_.mode,I),ba(I,H),I.return=_,_=I)}return b(_);case C:e:{for(me=H.key;N!==null;){if(N.key===me)if(N.tag===4&&N.stateNode.containerInfo===H.containerInfo&&N.stateNode.implementation===H.implementation){i(_,N.sibling),I=f(N,H.children||[]),I.return=_,_=I;break e}else{i(_,N);break}else n(_,N);N=N.sibling}I=Ko(H,_.mode,I),I.return=_,_=I}return b(_);case V:return H=gi(H),Ke(_,N,H,I)}if(ne(H))return oe(_,N,H,I);if($(H)){if(me=$(H),typeof me!="function")throw Error(a(150));return H=me.call(H),ge(_,N,H,I)}if(typeof H.then=="function")return Ke(_,N,Iu(H),I);if(H.$$typeof===D)return Ke(_,N,Vu(_,H),I);Ju(_,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,N!==null&&N.tag===6?(i(_,N.sibling),I=f(N,H),I.return=_,_=I):(i(_,N),I=Xo(H,_.mode,I),I.return=_,_=I),b(_)):i(_,N)}return function(_,N,H,I){try{ya=0;var me=Ke(_,N,H,I);return fr=null,me}catch(fe){if(fe===cr||fe===Ku)throw fe;var Ue=Pt(29,fe,null,_.mode);return Ue.lanes=I,Ue.return=_,Ue}finally{}}}var bi=Sm(!0),wm=Sm(!1),Cl=!1;function rc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ac(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Tl(e,n,i){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(He&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,n=Qu(e),rm(e,null,i),n}return qu(e,u,n,i),Qu(e)}function va(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,dd(e,i)}}function uc(e,n){var i=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,i===u)){var f=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,i=i.next}while(i!==null);h===null?f=h=n:h=h.next=n}else f=h=n;i={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var sc=!1;function xa(){if(sc){var e=or;if(e!==null)throw e}}function Sa(e,n,i,u){sc=!1;var f=e.updateQueue;Cl=!1;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var R=S,q=R.next;R.next=null,b===null?h=q:b.next=q,b=R;var X=e.alternate;X!==null&&(X=X.updateQueue,S=X.lastBaseUpdate,S!==b&&(S===null?X.firstBaseUpdate=q:S.next=q,X.lastBaseUpdate=R))}if(h!==null){var J=f.baseState;b=0,X=q=R=null,S=h;do{var F=S.lane&-536870913,G=F!==S.lane;if(G?(De&F)===F:(u&F)===F){F!==0&&F===sr&&(sc=!0),X!==null&&(X=X.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var oe=e,ge=S;F=n;var Ke=i;switch(ge.tag){case 1:if(oe=ge.payload,typeof oe=="function"){J=oe.call(Ke,J,F);break e}J=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=ge.payload,F=typeof oe=="function"?oe.call(Ke,J,F):oe,F==null)break e;J=g({},J,F);break e;case 2:Cl=!0}}F=S.callback,F!==null&&(e.flags|=64,G&&(e.flags|=8192),G=f.callbacks,G===null?f.callbacks=[F]:G.push(F))}else G={lane:F,tag:S.tag,payload:S.payload,callback:S.callback,next:null},X===null?(q=X=G,R=J):X=X.next=G,b|=F;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;G=S,S=G.next,G.next=null,f.lastBaseUpdate=G,f.shared.pending=null}}while(!0);X===null&&(R=J),f.baseState=R,f.firstBaseUpdate=q,f.lastBaseUpdate=X,h===null&&(f.shared.lanes=0),Ml|=b,e.lanes=b,e.memoizedState=J}}function Em(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function Cm(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Em(i[e],n)}var hr=M(null),Pu=M(0);function km(e,n){e=il,w(Pu,e),w(hr,n),il=e|n.baseLanes}function oc(){w(Pu,il),w(hr,hr.current)}function cc(){il=Pu.current,K(hr),K(Pu)}var $t=M(null),pn=null;function Al(e){var n=e.alternate;w(st,st.current&1),w($t,e),pn===null&&(n===null||hr.current!==null||n.memoizedState!==null)&&(pn=e)}function fc(e){w(st,st.current),w($t,e),pn===null&&(pn=e)}function Tm(e){e.tag===22?(w(st,st.current),w($t,e),pn===null&&(pn=e)):zl()}function zl(){w(st,st.current),w($t,$t.current)}function Wt(e){K($t),pn===e&&(pn=null),K(st)}var st=M(0);function $u(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||bf(i)||vf(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Jn=0,we=null,Ve=null,ft=null,Wu=!1,dr=!1,vi=!1,es=0,wa=0,mr=null,H0=0;function rt(){throw Error(a(321))}function hc(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Jt(e[i],n[i]))return!1;return!0}function dc(e,n,i,u,f,h){return Jn=h,we=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Q.H=e===null||e.memoizedState===null?op:zc,vi=!1,h=i(u,f),vi=!1,dr&&(h=zm(n,i,u,f)),Am(e),h}function Am(e){Q.H=ka;var n=Ve!==null&&Ve.next!==null;if(Jn=0,ft=Ve=we=null,Wu=!1,wa=0,mr=null,n)throw Error(a(300));e===null||ht||(e=e.dependencies,e!==null&&Gu(e)&&(ht=!0))}function zm(e,n,i,u){we=e;var f=0;do{if(dr&&(mr=null),wa=0,dr=!1,25<=f)throw Error(a(301));if(f+=1,ft=Ve=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}Q.H=cp,h=n(i,u)}while(dr);return h}function q0(){var e=Q.H,n=e.useState()[0];return n=typeof n.then=="function"?Ea(n):n,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(we.flags|=1024),n}function mc(){var e=es!==0;return es=0,e}function pc(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function gc(e){if(Wu){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Wu=!1}Jn=0,ft=Ve=we=null,dr=!1,wa=es=0,mr=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?we.memoizedState=ft=e:ft=ft.next=e,ft}function ot(){if(Ve===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var n=ft===null?we.memoizedState:ft.next;if(n!==null)ft=n,Ve=e;else{if(e===null)throw we.alternate===null?Error(a(467)):Error(a(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},ft===null?we.memoizedState=ft=e:ft=ft.next=e}return ft}function ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ea(e){var n=wa;return wa+=1,mr===null&&(mr=[]),e=bm(mr,e,n),n=we,(ft===null?n.memoizedState:ft.next)===null&&(n=n.alternate,Q.H=n===null||n.memoizedState===null?op:zc),e}function ns(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ea(e);if(e.$$typeof===D)return Et(e)}throw Error(a(438,String(e)))}function yc(e){var n=null,i=we.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var u=we.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=ts(),we.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),u=0;u<e;u++)i[u]=j;return n.index++,i}function Pn(e,n){return typeof n=="function"?n(e):n}function ls(e){var n=ot();return bc(n,Ve,e)}function bc(e,n,i){var u=e.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=i;var f=e.baseQueue,h=u.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}n.baseQueue=f=h,u.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{n=f.next;var S=b=null,R=null,q=n,X=!1;do{var J=q.lane&-536870913;if(J!==q.lane?(De&J)===J:(Jn&J)===J){var F=q.revertLane;if(F===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),J===sr&&(X=!0);else if((Jn&F)===F){q=q.next,F===sr&&(X=!0);continue}else J={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},R===null?(S=R=J,b=h):R=R.next=J,we.lanes|=F,Ml|=F;J=q.action,vi&&i(h,J),h=q.hasEagerState?q.eagerState:i(h,J)}else F={lane:J,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},R===null?(S=R=F,b=h):R=R.next=F,we.lanes|=J,Ml|=J;q=q.next}while(q!==null&&q!==n);if(R===null?b=h:R.next=S,!Jt(h,e.memoizedState)&&(ht=!0,X&&(i=or,i!==null)))throw i;e.memoizedState=h,e.baseState=b,e.baseQueue=R,u.lastRenderedState=h}return f===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function vc(e){var n=ot(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=e;var u=i.dispatch,f=i.pending,h=n.memoizedState;if(f!==null){i.pending=null;var b=f=f.next;do h=e(h,b.action),b=b.next;while(b!==f);Jt(h,n.memoizedState)||(ht=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),i.lastRenderedState=h}return[h,u]}function Rm(e,n,i){var u=we,f=ot(),h=_e;if(h){if(i===void 0)throw Error(a(407));i=i()}else i=n();var b=!Jt((Ve||f).memoizedState,i);if(b&&(f.memoizedState=i,ht=!0),f=f.queue,wc(Dm.bind(null,u,f,e),[e]),f.getSnapshot!==n||b||ft!==null&&ft.memoizedState.tag&1){if(u.flags|=2048,pr(9,{destroy:void 0},Mm.bind(null,u,f,i,n),null),Ie===null)throw Error(a(349));h||(Jn&127)!==0||Om(u,n,i)}return i}function Om(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=we.updateQueue,n===null?(n=ts(),we.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Mm(e,n,i,u){n.value=i,n.getSnapshot=u,Nm(n)&&_m(e)}function Dm(e,n,i){return i(function(){Nm(n)&&_m(e)})}function Nm(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Jt(e,i)}catch{return!0}}function _m(e){var n=ci(e,2);n!==null&&Gt(n,e,2)}function xc(e){var n=Nt();if(typeof e=="function"){var i=e;if(e=i(),vi){Ut(!0);try{i()}finally{Ut(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:e},n}function jm(e,n,i,u){return e.baseState=i,bc(e,Ve,typeof u=="function"?u:Pn)}function Q0(e,n,i,u,f){if(as(e))throw Error(a(485));if(e=n.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};Q.T!==null?i(!0):h.isTransition=!1,u(h),i=n.pending,i===null?(h.next=n.pending=h,Lm(n,h)):(h.next=i.next,n.pending=i.next=h)}}function Lm(e,n){var i=n.action,u=n.payload,f=e.state;if(n.isTransition){var h=Q.T,b={};Q.T=b;try{var S=i(f,u),R=Q.S;R!==null&&R(b,S),Um(e,n,S)}catch(q){Sc(e,n,q)}finally{h!==null&&b.types!==null&&(h.types=b.types),Q.T=h}}else try{h=i(f,u),Um(e,n,h)}catch(q){Sc(e,n,q)}}function Um(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(u){Bm(e,n,u)},function(u){return Sc(e,n,u)}):Bm(e,n,i)}function Bm(e,n,i){n.status="fulfilled",n.value=i,Hm(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Lm(e,i)))}function Sc(e,n,i){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=i,Hm(n),n=n.next;while(n!==u)}e.action=null}function Hm(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function qm(e,n){return n}function Qm(e,n){if(_e){var i=Ie.formState;if(i!==null){e:{var u=we;if(_e){if($e){t:{for(var f=$e,h=mn;f.nodeType!==8;){if(!h){f=null;break t}if(f=gn(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){$e=gn(f.nextSibling),u=f.data==="F!";break e}}wl(u)}u=!1}u&&(n=i[0])}}return i=Nt(),i.memoizedState=i.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qm,lastRenderedState:n},i.queue=u,i=ap.bind(null,we,u),u.dispatch=i,u=xc(!1),h=Ac.bind(null,we,!1,u.queue),u=Nt(),f={state:n,dispatch:null,action:e,pending:null},u.queue=f,i=Q0.bind(null,we,f,h,i),f.dispatch=i,u.memoizedState=e,[n,i,!1]}function Fm(e){var n=ot();return Ym(n,Ve,e)}function Ym(e,n,i){if(n=bc(e,n,qm)[0],e=ls(Pn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=Ea(n)}catch(b){throw b===cr?Ku:b}else u=n;n=ot();var f=n.queue,h=f.dispatch;return i!==n.memoizedState&&(we.flags|=2048,pr(9,{destroy:void 0},F0.bind(null,f,i),null)),[u,h,e]}function F0(e,n){e.action=n}function Gm(e){var n=ot(),i=Ve;if(i!==null)return Ym(n,i,e);ot(),n=n.memoizedState,i=ot();var u=i.queue.dispatch;return i.memoizedState=e,[n,u,!1]}function pr(e,n,i,u){return e={tag:e,create:i,deps:u,inst:n,next:null},n=we.updateQueue,n===null&&(n=ts(),we.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(u=i.next,i.next=e,e.next=u,n.lastEffect=e),e}function Vm(){return ot().memoizedState}function is(e,n,i,u){var f=Nt();we.flags|=e,f.memoizedState=pr(1|n,{destroy:void 0},i,u===void 0?null:u)}function rs(e,n,i,u){var f=ot();u=u===void 0?null:u;var h=f.memoizedState.inst;Ve!==null&&u!==null&&hc(u,Ve.memoizedState.deps)?f.memoizedState=pr(n,h,i,u):(we.flags|=e,f.memoizedState=pr(1|n,h,i,u))}function Xm(e,n){is(8390656,8,e,n)}function wc(e,n){rs(2048,8,e,n)}function Y0(e){we.flags|=4;var n=we.updateQueue;if(n===null)n=ts(),we.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function Km(e){var n=ot().memoizedState;return Y0({ref:n,nextImpl:e}),function(){if((He&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function Zm(e,n){return rs(4,2,e,n)}function Im(e,n){return rs(4,4,e,n)}function Jm(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Pm(e,n,i){i=i!=null?i.concat([e]):null,rs(4,4,Jm.bind(null,n,e),i)}function Ec(){}function $m(e,n){var i=ot();n=n===void 0?null:n;var u=i.memoizedState;return n!==null&&hc(n,u[1])?u[0]:(i.memoizedState=[e,n],e)}function Wm(e,n){var i=ot();n=n===void 0?null:n;var u=i.memoizedState;if(n!==null&&hc(n,u[1]))return u[0];if(u=e(),vi){Ut(!0);try{e()}finally{Ut(!1)}}return i.memoizedState=[u,n],u}function Cc(e,n,i){return i===void 0||(Jn&1073741824)!==0&&(De&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=eg(),we.lanes|=e,Ml|=e,i)}function ep(e,n,i,u){return Jt(i,n)?i:hr.current!==null?(e=Cc(e,i,u),Jt(e,n)||(ht=!0),e):(Jn&42)===0||(Jn&1073741824)!==0&&(De&261930)===0?(ht=!0,e.memoizedState=i):(e=eg(),we.lanes|=e,Ml|=e,n)}function tp(e,n,i,u,f){var h=W.p;W.p=h!==0&&8>h?h:8;var b=Q.T,S={};Q.T=S,Ac(e,!1,n,i);try{var R=f(),q=Q.S;if(q!==null&&q(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var X=B0(R,u);Ca(e,n,X,nn(e))}else Ca(e,n,u,nn(e))}catch(J){Ca(e,n,{then:function(){},status:"rejected",reason:J},nn())}finally{W.p=h,b!==null&&S.types!==null&&(b.types=S.types),Q.T=b}}function G0(){}function kc(e,n,i,u){if(e.tag!==5)throw Error(a(476));var f=np(e).queue;tp(e,f,n,ce,i===null?G0:function(){return lp(e),i(u)})}function np(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:ce},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function lp(e){var n=np(e);n.next===null&&(n=e.alternate.memoizedState),Ca(e,n.next.queue,{},nn())}function Tc(){return Et(Qa)}function ip(){return ot().memoizedState}function rp(){return ot().memoizedState}function V0(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=nn();e=kl(i);var u=Tl(n,e,i);u!==null&&(Gt(u,n,i),va(u,n,i)),n={cache:tc()},e.payload=n;return}n=n.return}}function X0(e,n,i){var u=nn();i={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},as(e)?up(n,i):(i=Go(e,n,i,u),i!==null&&(Gt(i,e,u),sp(i,n,u)))}function ap(e,n,i){var u=nn();Ca(e,n,i,u)}function Ca(e,n,i,u){var f={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(as(e))up(n,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,S=h(b,i);if(f.hasEagerState=!0,f.eagerState=S,Jt(S,b))return qu(e,n,f,0),Ie===null&&Hu(),!1}catch{}finally{}if(i=Go(e,n,f,u),i!==null)return Gt(i,e,u),sp(i,n,u),!0}return!1}function Ac(e,n,i,u){if(u={lane:2,revertLane:af(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},as(e)){if(n)throw Error(a(479))}else n=Go(e,i,u,2),n!==null&&Gt(n,e,2)}function as(e){var n=e.alternate;return e===we||n!==null&&n===we}function up(e,n){dr=Wu=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function sp(e,n,i){if((i&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,dd(e,i)}}var ka={readContext:Et,use:ns,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};ka.useEffectEvent=rt;var op={readContext:Et,use:ns,useCallback:function(e,n){return Nt().memoizedState=[e,n===void 0?null:n],e},useContext:Et,useEffect:Xm,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,is(4194308,4,Jm.bind(null,n,e),i)},useLayoutEffect:function(e,n){return is(4194308,4,e,n)},useInsertionEffect:function(e,n){is(4,2,e,n)},useMemo:function(e,n){var i=Nt();n=n===void 0?null:n;var u=e();if(vi){Ut(!0);try{e()}finally{Ut(!1)}}return i.memoizedState=[u,n],u},useReducer:function(e,n,i){var u=Nt();if(i!==void 0){var f=i(n);if(vi){Ut(!0);try{i(n)}finally{Ut(!1)}}}else f=n;return u.memoizedState=u.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},u.queue=e,e=e.dispatch=X0.bind(null,we,e),[u.memoizedState,e]},useRef:function(e){var n=Nt();return e={current:e},n.memoizedState=e},useState:function(e){e=xc(e);var n=e.queue,i=ap.bind(null,we,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:Ec,useDeferredValue:function(e,n){var i=Nt();return Cc(i,e,n)},useTransition:function(){var e=xc(!1);return e=tp.bind(null,we,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var u=we,f=Nt();if(_e){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),Ie===null)throw Error(a(349));(De&127)!==0||Om(u,n,i)}f.memoizedState=i;var h={value:i,getSnapshot:n};return f.queue=h,Xm(Dm.bind(null,u,h,e),[e]),u.flags|=2048,pr(9,{destroy:void 0},Mm.bind(null,u,h,i,n),null),i},useId:function(){var e=Nt(),n=Ie.identifierPrefix;if(_e){var i=Mn,u=On;i=(u&~(1<<32-Ze(u)-1)).toString(32)+i,n="_"+n+"R_"+i,i=es++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=H0++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Tc,useFormState:Qm,useActionState:Qm,useOptimistic:function(e){var n=Nt();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Ac.bind(null,we,!0,i),i.dispatch=n,[e,n]},useMemoCache:yc,useCacheRefresh:function(){return Nt().memoizedState=V0.bind(null,we)},useEffectEvent:function(e){var n=Nt(),i={impl:e};return n.memoizedState=i,function(){if((He&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},zc={readContext:Et,use:ns,useCallback:$m,useContext:Et,useEffect:wc,useImperativeHandle:Pm,useInsertionEffect:Zm,useLayoutEffect:Im,useMemo:Wm,useReducer:ls,useRef:Vm,useState:function(){return ls(Pn)},useDebugValue:Ec,useDeferredValue:function(e,n){var i=ot();return ep(i,Ve.memoizedState,e,n)},useTransition:function(){var e=ls(Pn)[0],n=ot().memoizedState;return[typeof e=="boolean"?e:Ea(e),n]},useSyncExternalStore:Rm,useId:ip,useHostTransitionStatus:Tc,useFormState:Fm,useActionState:Fm,useOptimistic:function(e,n){var i=ot();return jm(i,Ve,e,n)},useMemoCache:yc,useCacheRefresh:rp};zc.useEffectEvent=Km;var cp={readContext:Et,use:ns,useCallback:$m,useContext:Et,useEffect:wc,useImperativeHandle:Pm,useInsertionEffect:Zm,useLayoutEffect:Im,useMemo:Wm,useReducer:vc,useRef:Vm,useState:function(){return vc(Pn)},useDebugValue:Ec,useDeferredValue:function(e,n){var i=ot();return Ve===null?Cc(i,e,n):ep(i,Ve.memoizedState,e,n)},useTransition:function(){var e=vc(Pn)[0],n=ot().memoizedState;return[typeof e=="boolean"?e:Ea(e),n]},useSyncExternalStore:Rm,useId:ip,useHostTransitionStatus:Tc,useFormState:Gm,useActionState:Gm,useOptimistic:function(e,n){var i=ot();return Ve!==null?jm(i,Ve,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:yc,useCacheRefresh:rp};cp.useEffectEvent=Km;function Rc(e,n,i,u){n=e.memoizedState,i=i(u,n),i=i==null?n:g({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Oc={enqueueSetState:function(e,n,i){e=e._reactInternals;var u=nn(),f=kl(u);f.payload=n,i!=null&&(f.callback=i),n=Tl(e,f,u),n!==null&&(Gt(n,e,u),va(n,e,u))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var u=nn(),f=kl(u);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=Tl(e,f,u),n!==null&&(Gt(n,e,u),va(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=nn(),u=kl(i);u.tag=2,n!=null&&(u.callback=n),n=Tl(e,u,i),n!==null&&(Gt(n,e,i),va(n,e,i))}};function fp(e,n,i,u,f,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,b):n.prototype&&n.prototype.isPureReactComponent?!fa(i,u)||!fa(f,h):!0}function hp(e,n,i,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,u),n.state!==e&&Oc.enqueueReplaceState(n,n.state,null)}function xi(e,n){var i=n;if("ref"in n){i={};for(var u in n)u!=="ref"&&(i[u]=n[u])}if(e=e.defaultProps){i===n&&(i=g({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function dp(e){Bu(e)}function mp(e){console.error(e)}function pp(e){Bu(e)}function us(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(u){setTimeout(function(){throw u})}}function gp(e,n,i){try{var u=e.onCaughtError;u(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Mc(e,n,i){return i=kl(i),i.tag=3,i.payload={element:null},i.callback=function(){us(e,n)},i}function yp(e){return e=kl(e),e.tag=3,e}function bp(e,n,i,u){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var h=u.value;e.payload=function(){return f(h)},e.callback=function(){gp(n,i,u)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){gp(n,i,u),typeof f!="function"&&(Dl===null?Dl=new Set([this]):Dl.add(this));var S=u.stack;this.componentDidCatch(u.value,{componentStack:S!==null?S:""})})}function K0(e,n,i,u,f){if(i.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=i.alternate,n!==null&&ur(n,i,f,!0),i=$t.current,i!==null){switch(i.tag){case 31:case 13:return pn===null?vs():i.alternate===null&&at===0&&(at=3),i.flags&=-257,i.flags|=65536,i.lanes=f,u===Zu?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([u]):n.add(u),nf(e,u,f)),!1;case 22:return i.flags|=65536,u===Zu?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([u]):i.add(u)),nf(e,u,f)),!1}throw Error(a(435,i.tag))}return nf(e,u,f),vs(),!1}if(_e)return n=$t.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,u!==Jo&&(e=Error(a(422),{cause:u}),ma(fn(e,i)))):(u!==Jo&&(n=Error(a(423),{cause:u}),ma(fn(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,u=fn(u,i),f=Mc(e.stateNode,u,f),uc(e,f),at!==4&&(at=2)),!1;var h=Error(a(520),{cause:u});if(h=fn(h,i),Na===null?Na=[h]:Na.push(h),at!==4&&(at=2),n===null)return!0;u=fn(u,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=Mc(i.stateNode,u,e),uc(i,e),!1;case 1:if(n=i.type,h=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Dl===null||!Dl.has(h))))return i.flags|=65536,f&=-f,i.lanes|=f,f=yp(f),bp(f,e,i,u),uc(i,f),!1}i=i.return}while(i!==null);return!1}var Dc=Error(a(461)),ht=!1;function Ct(e,n,i,u){n.child=e===null?wm(n,null,i,u):bi(n,e.child,i,u)}function vp(e,n,i,u,f){i=i.render;var h=n.ref;if("ref"in u){var b={};for(var S in u)S!=="ref"&&(b[S]=u[S])}else b=u;return mi(n),u=dc(e,n,i,b,h,f),S=mc(),e!==null&&!ht?(pc(e,n,f),$n(e,n,f)):(_e&&S&&Zo(n),n.flags|=1,Ct(e,n,u,f),n.child)}function xp(e,n,i,u,f){if(e===null){var h=i.type;return typeof h=="function"&&!Vo(h)&&h.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=h,Sp(e,n,h,u,f)):(e=Fu(i.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!qc(e,f)){var b=h.memoizedProps;if(i=i.compare,i=i!==null?i:fa,i(b,u)&&e.ref===n.ref)return $n(e,n,f)}return n.flags|=1,e=Xn(h,u),e.ref=n.ref,e.return=n,n.child=e}function Sp(e,n,i,u,f){if(e!==null){var h=e.memoizedProps;if(fa(h,u)&&e.ref===n.ref)if(ht=!1,n.pendingProps=u=h,qc(e,f))(e.flags&131072)!==0&&(ht=!0);else return n.lanes=e.lanes,$n(e,n,f)}return Nc(e,n,i,u,f)}function wp(e,n,i,u){var f=u.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|i:i,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~h}else u=0,n.child=null;return Ep(e,n,h,i,u)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xu(n,h!==null?h.cachePool:null),h!==null?km(n,h):oc(),Tm(n);else return u=n.lanes=536870912,Ep(e,n,h!==null?h.baseLanes|i:i,i,u)}else h!==null?(Xu(n,h.cachePool),km(n,h),zl(),n.memoizedState=null):(e!==null&&Xu(n,null),oc(),zl());return Ct(e,n,f,i),n.child}function Ta(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Ep(e,n,i,u,f){var h=lc();return h=h===null?null:{parent:ct._currentValue,pool:h},n.memoizedState={baseLanes:i,cachePool:h},e!==null&&Xu(n,null),oc(),Tm(n),e!==null&&ur(e,n,u,!0),n.childLanes=f,null}function ss(e,n){return n=cs({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Cp(e,n,i){return bi(n,e.child,null,i),e=ss(n,n.pendingProps),e.flags|=2,Wt(n),n.memoizedState=null,e}function Z0(e,n,i){var u=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(_e){if(u.mode==="hidden")return e=ss(n,u),n.lanes=536870912,Ta(null,e);if(fc(n),(e=$e)?(e=Lg(e,mn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:xl!==null?{id:On,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},i=um(e),i.return=n,n.child=i,wt=n,$e=null)):e=null,e===null)throw wl(n);return n.lanes=536870912,null}return ss(n,u)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(fc(n),f)if(n.flags&256)n.flags&=-257,n=Cp(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(ht||ur(e,n,i,!1),f=(i&e.childLanes)!==0,ht||f){if(u=Ie,u!==null&&(b=md(u,i),b!==0&&b!==h.retryLane))throw h.retryLane=b,ci(e,b),Gt(u,e,b),Dc;vs(),n=Cp(e,n,i)}else e=h.treeContext,$e=gn(b.nextSibling),wt=n,_e=!0,Sl=null,mn=!1,e!==null&&cm(n,e),n=ss(n,u),n.flags|=4096;return n}return e=Xn(e.child,{mode:u.mode,children:u.children}),e.ref=n.ref,n.child=e,e.return=n,e}function os(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function Nc(e,n,i,u,f){return mi(n),i=dc(e,n,i,u,void 0,f),u=mc(),e!==null&&!ht?(pc(e,n,f),$n(e,n,f)):(_e&&u&&Zo(n),n.flags|=1,Ct(e,n,i,f),n.child)}function kp(e,n,i,u,f,h){return mi(n),n.updateQueue=null,i=zm(n,u,i,f),Am(e),u=mc(),e!==null&&!ht?(pc(e,n,h),$n(e,n,h)):(_e&&u&&Zo(n),n.flags|=1,Ct(e,n,i,h),n.child)}function Tp(e,n,i,u,f){if(mi(n),n.stateNode===null){var h=lr,b=i.contextType;typeof b=="object"&&b!==null&&(h=Et(b)),h=new i(u,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Oc,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=u,h.state=n.memoizedState,h.refs={},rc(n),b=i.contextType,h.context=typeof b=="object"&&b!==null?Et(b):lr,h.state=n.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(Rc(n,i,b,u),h.state=n.memoizedState),typeof i.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&&Oc.enqueueReplaceState(h,h.state,null),Sa(n,u,h,f),xa(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!0}else if(e===null){h=n.stateNode;var S=n.memoizedProps,R=xi(i,S);h.props=R;var q=h.context,X=i.contextType;b=lr,typeof X=="object"&&X!==null&&(b=Et(X));var J=i.getDerivedStateFromProps;X=typeof J=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,X||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||q!==b)&&hp(n,h,u,b),Cl=!1;var F=n.memoizedState;h.state=F,Sa(n,u,h,f),xa(),q=n.memoizedState,S||F!==q||Cl?(typeof J=="function"&&(Rc(n,i,J,u),q=n.memoizedState),(R=Cl||fp(n,i,R,u,F,q,b))?(X||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"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=q),h.props=u,h.state=q,h.context=b,u=R):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{h=n.stateNode,ac(e,n),b=n.memoizedProps,X=xi(i,b),h.props=X,J=n.pendingProps,F=h.context,q=i.contextType,R=lr,typeof q=="object"&&q!==null&&(R=Et(q)),S=i.getDerivedStateFromProps,(q=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==J||F!==R)&&hp(n,h,u,R),Cl=!1,F=n.memoizedState,h.state=F,Sa(n,u,h,f),xa();var G=n.memoizedState;b!==J||F!==G||Cl||e!==null&&e.dependencies!==null&&Gu(e.dependencies)?(typeof S=="function"&&(Rc(n,i,S,u),G=n.memoizedState),(X=Cl||fp(n,i,X,u,F,G,R)||e!==null&&e.dependencies!==null&&Gu(e.dependencies))?(q||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,G,R),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,G,R)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=G),h.props=u,h.state=G,h.context=R,u=X):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=1024),u=!1)}return h=u,os(e,n),u=(n.flags&128)!==0,h||u?(h=n.stateNode,i=u&&typeof i.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&u?(n.child=bi(n,e.child,null,f),n.child=bi(n,null,i,f)):Ct(e,n,i,f),n.memoizedState=h.state,e=n.child):e=$n(e,n,f),e}function Ap(e,n,i,u){return hi(),n.flags|=256,Ct(e,n,i,u),n.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jc(e){return{baseLanes:e,cachePool:gm()}}function Lc(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=tn),e}function zp(e,n,i){var u=n.pendingProps,f=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),b&&(f=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(_e){if(f?Al(n):zl(),(e=$e)?(e=Lg(e,mn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:xl!==null?{id:On,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},i=um(e),i.return=n,n.child=i,wt=n,$e=null)):e=null,e===null)throw wl(n);return vf(e)?n.lanes=32:n.lanes=536870912,null}var S=u.children;return u=u.fallback,f?(zl(),f=n.mode,S=cs({mode:"hidden",children:S},f),u=fi(u,f,i,null),S.return=n,u.return=n,S.sibling=u,n.child=S,u=n.child,u.memoizedState=jc(i),u.childLanes=Lc(e,b,i),n.memoizedState=_c,Ta(null,u)):(Al(n),Uc(n,S))}var R=e.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(h)n.flags&256?(Al(n),n.flags&=-257,n=Bc(e,n,i)):n.memoizedState!==null?(zl(),n.child=e.child,n.flags|=128,n=null):(zl(),S=u.fallback,f=n.mode,u=cs({mode:"visible",children:u.children},f),S=fi(S,f,i,null),S.flags|=2,u.return=n,S.return=n,u.sibling=S,n.child=u,bi(n,e.child,null,i),u=n.child,u.memoizedState=jc(i),u.childLanes=Lc(e,b,i),n.memoizedState=_c,n=Ta(null,u));else if(Al(n),vf(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var q=b.dgst;b=q,u=Error(a(419)),u.stack="",u.digest=b,ma({value:u,source:null,stack:null}),n=Bc(e,n,i)}else if(ht||ur(e,n,i,!1),b=(i&e.childLanes)!==0,ht||b){if(b=Ie,b!==null&&(u=md(b,i),u!==0&&u!==R.retryLane))throw R.retryLane=u,ci(e,u),Gt(b,e,u),Dc;bf(S)||vs(),n=Bc(e,n,i)}else bf(S)?(n.flags|=192,n.child=e.child,n=null):(e=R.treeContext,$e=gn(S.nextSibling),wt=n,_e=!0,Sl=null,mn=!1,e!==null&&cm(n,e),n=Uc(n,u.children),n.flags|=4096);return n}return f?(zl(),S=u.fallback,f=n.mode,R=e.child,q=R.sibling,u=Xn(R,{mode:"hidden",children:u.children}),u.subtreeFlags=R.subtreeFlags&65011712,q!==null?S=Xn(q,S):(S=fi(S,f,i,null),S.flags|=2),S.return=n,u.return=n,u.sibling=S,n.child=u,Ta(null,u),u=n.child,S=e.child.memoizedState,S===null?S=jc(i):(f=S.cachePool,f!==null?(R=ct._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=gm(),S={baseLanes:S.baseLanes|i,cachePool:f}),u.memoizedState=S,u.childLanes=Lc(e,b,i),n.memoizedState=_c,Ta(e.child,u)):(Al(n),i=e.child,e=i.sibling,i=Xn(i,{mode:"visible",children:u.children}),i.return=n,i.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=i,n.memoizedState=null,i)}function Uc(e,n){return n=cs({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function cs(e,n){return e=Pt(22,e,null,n),e.lanes=0,e}function Bc(e,n,i){return bi(n,e.child,null,i),e=Uc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Rp(e,n,i){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),Wo(e.return,n,i)}function Hc(e,n,i,u,f,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:f,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=u,b.tail=i,b.tailMode=f,b.treeForkCount=h)}function Op(e,n,i){var u=n.pendingProps,f=u.revealOrder,h=u.tail;u=u.children;var b=st.current,S=(b&2)!==0;if(S?(b=b&1|2,n.flags|=128):b&=1,w(st,b),Ct(e,n,u,i),u=_e?da:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rp(e,i,n);else if(e.tag===19)Rp(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&$u(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),Hc(n,!1,f,i,h,u);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&$u(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}Hc(n,!0,i,null,h,u);break;case"together":Hc(n,!1,null,null,void 0,u);break;default:n.memoizedState=null}return n.child}function $n(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Ml|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(ur(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,i=Xn(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Xn(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function qc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Gu(e)))}function I0(e,n,i){switch(n.tag){case 3:nt(n,n.stateNode.containerInfo),El(n,ct,e.memoizedState.cache),hi();break;case 27:case 5:un(n);break;case 4:nt(n,n.stateNode.containerInfo);break;case 10:El(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,fc(n),null;break;case 13:var u=n.memoizedState;if(u!==null)return u.dehydrated!==null?(Al(n),n.flags|=128,null):(i&n.child.childLanes)!==0?zp(e,n,i):(Al(n),e=$n(e,n,i),e!==null?e.sibling:null);Al(n);break;case 19:var f=(e.flags&128)!==0;if(u=(i&n.childLanes)!==0,u||(ur(e,n,i,!1),u=(i&n.childLanes)!==0),f){if(u)return Op(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),w(st,st.current),u)break;return null;case 22:return n.lanes=0,wp(e,n,i,n.pendingProps);case 24:El(n,ct,e.memoizedState.cache)}return $n(e,n,i)}function Mp(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)ht=!0;else{if(!qc(e,i)&&(n.flags&128)===0)return ht=!1,I0(e,n,i);ht=(e.flags&131072)!==0}else ht=!1,_e&&(n.flags&1048576)!==0&&om(n,da,n.index);switch(n.lanes=0,n.tag){case 16:e:{var u=n.pendingProps;if(e=gi(n.elementType),n.type=e,typeof e=="function")Vo(e)?(u=xi(e,u),n.tag=1,n=Tp(null,n,e,u,i)):(n.tag=0,n=Nc(null,n,e,u,i));else{if(e!=null){var f=e.$$typeof;if(f===Y){n.tag=11,n=vp(null,n,e,u,i);break e}else if(f===ee){n.tag=14,n=xp(null,n,e,u,i);break e}}throw n=se(e)||e,Error(a(306,n,""))}}return n;case 0:return Nc(e,n,n.type,n.pendingProps,i);case 1:return u=n.type,f=xi(u,n.pendingProps),Tp(e,n,u,f,i);case 3:e:{if(nt(n,n.stateNode.containerInfo),e===null)throw Error(a(387));u=n.pendingProps;var h=n.memoizedState;f=h.element,ac(e,n),Sa(n,u,null,i);var b=n.memoizedState;if(u=b.cache,El(n,ct,u),u!==h.cache&&ec(n,[ct],i,!0),xa(),u=b.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=Ap(e,n,u,i);break e}else if(u!==f){f=fn(Error(a(424)),n),ma(f),n=Ap(e,n,u,i);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for($e=gn(e.firstChild),wt=n,_e=!0,Sl=null,mn=!0,i=wm(n,null,u,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(hi(),u===f){n=$n(e,n,i);break e}Ct(e,n,u,i)}n=n.child}return n;case 26:return os(e,n),e===null?(i=Fg(n.type,null,n.pendingProps,null))?n.memoizedState=i:_e||(i=n.type,e=n.pendingProps,u=Ts(de.current).createElement(i),u[St]=n,u[Bt]=e,kt(u,i,e),bt(u),n.stateNode=u):n.memoizedState=Fg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return un(n),e===null&&_e&&(u=n.stateNode=Hg(n.type,n.pendingProps,de.current),wt=n,mn=!0,f=$e,Ll(n.type)?(xf=f,$e=gn(u.firstChild)):$e=f),Ct(e,n,n.pendingProps.children,i),os(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&_e&&((f=u=$e)&&(u=k1(u,n.type,n.pendingProps,mn),u!==null?(n.stateNode=u,wt=n,$e=gn(u.firstChild),mn=!1,f=!0):f=!1),f||wl(n)),un(n),f=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,u=h.children,pf(f,h)?u=null:b!==null&&pf(f,b)&&(n.flags|=32),n.memoizedState!==null&&(f=dc(e,n,q0,null,null,i),Qa._currentValue=f),os(e,n),Ct(e,n,u,i),n.child;case 6:return e===null&&_e&&((e=i=$e)&&(i=T1(i,n.pendingProps,mn),i!==null?(n.stateNode=i,wt=n,$e=null,e=!0):e=!1),e||wl(n)),null;case 13:return zp(e,n,i);case 4:return nt(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=bi(n,null,u,i):Ct(e,n,u,i),n.child;case 11:return vp(e,n,n.type,n.pendingProps,i);case 7:return Ct(e,n,n.pendingProps,i),n.child;case 8:return Ct(e,n,n.pendingProps.children,i),n.child;case 12:return Ct(e,n,n.pendingProps.children,i),n.child;case 10:return u=n.pendingProps,El(n,n.type,u.value),Ct(e,n,u.children,i),n.child;case 9:return f=n.type._context,u=n.pendingProps.children,mi(n),f=Et(f),u=u(f),n.flags|=1,Ct(e,n,u,i),n.child;case 14:return xp(e,n,n.type,n.pendingProps,i);case 15:return Sp(e,n,n.type,n.pendingProps,i);case 19:return Op(e,n,i);case 31:return Z0(e,n,i);case 22:return wp(e,n,i,n.pendingProps);case 24:return mi(n),u=Et(ct),e===null?(f=lc(),f===null&&(f=Ie,h=tc(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=i),f=h),n.memoizedState={parent:u,cache:f},rc(n),El(n,ct,f)):((e.lanes&i)!==0&&(ac(e,n),Sa(n,null,null,i),xa()),f=e.memoizedState,h=n.memoizedState,f.parent!==u?(f={parent:u,cache:u},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),El(n,ct,u)):(u=h.cache,El(n,ct,u),u!==f.cache&&ec(n,[ct],i,!0))),Ct(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function Wn(e){e.flags|=4}function Qc(e,n,i,u,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(ig())e.flags|=8192;else throw yi=Zu,ic}else e.flags&=-16777217}function Dp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Kg(n))if(ig())e.flags|=8192;else throw yi=Zu,ic}function fs(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?fd():536870912,e.lanes|=n,vr|=n)}function Aa(e,n){if(!_e)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function We(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,u=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=i,n}function J0(e,n,i){var u=n.pendingProps;switch(Io(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(n),null;case 1:return We(n),null;case 3:return i=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),In(ct),Ge(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(ar(n)?Wn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Po())),We(n),null;case 26:var f=n.type,h=n.memoizedState;return e===null?(Wn(n),h!==null?(We(n),Dp(n,h)):(We(n),Qc(n,f,null,u,i))):h?h!==e.memoizedState?(Wn(n),We(n),Dp(n,h)):(We(n),n.flags&=-16777217):(e=e.memoizedProps,e!==u&&Wn(n),We(n),Qc(n,f,e,u,i)),null;case 27:if(qn(n),i=de.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Wn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return We(n),null}e=ae.current,ar(n)?fm(n):(e=Hg(f,u,i),n.stateNode=e,Wn(n))}return We(n),null;case 5:if(qn(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Wn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return We(n),null}if(h=ae.current,ar(n))fm(n);else{var b=Ts(de.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 u.is=="string"?b.createElement("select",{is:u.is}):b.createElement("select"),u.multiple?h.multiple=!0:u.size&&(h.size=u.size);break;default:h=typeof u.is=="string"?b.createElement(f,{is:u.is}):b.createElement(f)}}h[St]=n,h[Bt]=u;e:for(b=n.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===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(kt(h,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Wn(n)}}return We(n),Qc(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&Wn(n);else{if(typeof u!="string"&&n.stateNode===null)throw Error(a(166));if(e=de.current,ar(n)){if(e=n.stateNode,i=n.memoizedProps,u=null,f=wt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}e[St]=n,e=!!(e.nodeValue===i||u!==null&&u.suppressHydrationWarning===!0||zg(e.nodeValue,i)),e||wl(n,!0)}else e=Ts(e).createTextNode(u),e[St]=n,n.stateNode=e}return We(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(u=ar(n),i!==null){if(e===null){if(!u)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[St]=n}else hi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),e=!1}else i=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(Wt(n),n):(Wt(n),null);if((n.flags&128)!==0)throw Error(a(558))}return We(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=ar(n),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[St]=n}else hi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),f=!1}else f=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Wt(n),n):(Wt(n),null)}return Wt(n),(n.flags&128)!==0?(n.lanes=i,n):(i=u!==null,e=e!==null&&e.memoizedState!==null,i&&(u=n.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),h=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==f&&(u.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),fs(n,n.updateQueue),We(n),null);case 4:return Ge(),e===null&&cf(n.stateNode.containerInfo),We(n),null;case 10:return In(n.type),We(n),null;case 19:if(K(st),u=n.memoizedState,u===null)return We(n),null;if(f=(n.flags&128)!==0,h=u.rendering,h===null)if(f)Aa(u,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=$u(e),h!==null){for(n.flags|=128,Aa(u,!1),e=h.updateQueue,n.updateQueue=e,fs(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)am(i,e),i=i.sibling;return w(st,st.current&1|2),_e&&Kn(n,u.treeForkCount),n.child}e=e.sibling}u.tail!==null&&Mt()>gs&&(n.flags|=128,f=!0,Aa(u,!1),n.lanes=4194304)}else{if(!f)if(e=$u(h),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,fs(n,e),Aa(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!_e)return We(n),null}else 2*Mt()-u.renderingStartTime>gs&&i!==536870912&&(n.flags|=128,f=!0,Aa(u,!1),n.lanes=4194304);u.isBackwards?(h.sibling=n.child,n.child=h):(e=u.last,e!==null?e.sibling=h:n.child=h,u.last=h)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=Mt(),e.sibling=null,i=st.current,w(st,f?i&1|2:i&1),_e&&Kn(n,u.treeForkCount),e):(We(n),null);case 22:case 23:return Wt(n),cc(),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(i&536870912)!==0&&(n.flags&128)===0&&(We(n),n.subtreeFlags&6&&(n.flags|=8192)):We(n),i=n.updateQueue,i!==null&&fs(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==i&&(n.flags|=2048),e!==null&&K(pi),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),In(ct),We(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function P0(e,n){switch(Io(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return In(ct),Ge(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return qn(n),null;case 31:if(n.memoizedState!==null){if(Wt(n),n.alternate===null)throw Error(a(340));hi()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Wt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));hi()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return K(st),null;case 4:return Ge(),null;case 10:return In(n.type),null;case 22:case 23:return Wt(n),cc(),e!==null&&K(pi),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return In(ct),null;case 25:return null;default:return null}}function Np(e,n){switch(Io(n),n.tag){case 3:In(ct),Ge();break;case 26:case 27:case 5:qn(n);break;case 4:Ge();break;case 31:n.memoizedState!==null&&Wt(n);break;case 13:Wt(n);break;case 19:K(st);break;case 10:In(n.type);break;case 22:case 23:Wt(n),cc(),e!==null&&K(pi);break;case 24:In(ct)}}function za(e,n){try{var i=n.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var f=u.next;i=f;do{if((i.tag&e)===e){u=void 0;var h=i.create,b=i.inst;u=h(),b.destroy=u}i=i.next}while(i!==f)}}catch(S){Ye(n,n.return,S)}}function Rl(e,n,i){try{var u=n.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var h=f.next;u=h;do{if((u.tag&e)===e){var b=u.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,f=n;var R=i,q=S;try{q()}catch(X){Ye(f,R,X)}}}u=u.next}while(u!==h)}}catch(X){Ye(n,n.return,X)}}function _p(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{Cm(n,i)}catch(u){Ye(e,e.return,u)}}}function jp(e,n,i){i.props=xi(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(u){Ye(e,n,u)}}function Ra(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof i=="function"?e.refCleanup=i(u):i.current=u}}catch(f){Ye(e,n,f)}}function Dn(e,n){var i=e.ref,u=e.refCleanup;if(i!==null)if(typeof u=="function")try{u()}catch(f){Ye(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){Ye(e,n,f)}else i.current=null}function Lp(e){var n=e.type,i=e.memoizedProps,u=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&u.focus();break e;case"img":i.src?u.src=i.src:i.srcSet&&(u.srcset=i.srcSet)}}catch(f){Ye(e,e.return,f)}}function Fc(e,n,i){try{var u=e.stateNode;v1(u,e.type,i,n),u[Bt]=n}catch(f){Ye(e,e.return,f)}}function Up(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ll(e.type)||e.tag===4}function Yc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Up(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ll(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gc(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Gn));else if(u!==4&&(u===27&&Ll(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Gc(e,n,i),e=e.sibling;e!==null;)Gc(e,n,i),e=e.sibling}function hs(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(u!==4&&(u===27&&Ll(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(hs(e,n,i),e=e.sibling;e!==null;)hs(e,n,i),e=e.sibling}function Bp(e){var n=e.stateNode,i=e.memoizedProps;try{for(var u=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);kt(n,u,i),n[St]=e,n[Bt]=i}catch(h){Ye(e,e.return,h)}}var el=!1,dt=!1,Vc=!1,Hp=typeof WeakSet=="function"?WeakSet:Set,vt=null;function $0(e,n){if(e=e.containerInfo,df=Ns,e=Pd(e),Bo(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var u=i.getSelection&&i.getSelection();if(u&&u.rangeCount!==0){i=u.anchorNode;var f=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var b=0,S=-1,R=-1,q=0,X=0,J=e,F=null;t:for(;;){for(var G;J!==i||f!==0&&J.nodeType!==3||(S=b+f),J!==h||u!==0&&J.nodeType!==3||(R=b+u),J.nodeType===3&&(b+=J.nodeValue.length),(G=J.firstChild)!==null;)F=J,J=G;for(;;){if(J===e)break t;if(F===i&&++q===f&&(S=b),F===h&&++X===u&&(R=b),(G=J.nextSibling)!==null)break;J=F,F=J.parentNode}J=G}i=S===-1||R===-1?null:{start:S,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(mf={focusedElem:e,selectionRange:i},Ns=!1,vt=n;vt!==null;)if(n=vt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,vt=e;else for(;vt!==null;){switch(n=vt,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)f=e[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,i=n,f=h.memoizedProps,h=h.memoizedState,u=i.stateNode;try{var oe=xi(i.type,f);e=u.getSnapshotBeforeUpdate(oe,h),u.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Ye(i,i.return,ge)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)yf(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=n.sibling,e!==null){e.return=n.return,vt=e;break}vt=n.return}}function qp(e,n,i){var u=i.flags;switch(i.tag){case 0:case 11:case 15:nl(e,i),u&4&&za(5,i);break;case 1:if(nl(e,i),u&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(b){Ye(i,i.return,b)}else{var f=xi(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ye(i,i.return,b)}}u&64&&_p(i),u&512&&Ra(i,i.return);break;case 3:if(nl(e,i),u&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{Cm(e,n)}catch(b){Ye(i,i.return,b)}}break;case 27:n===null&&u&4&&Bp(i);case 26:case 5:nl(e,i),n===null&&u&4&&Lp(i),u&512&&Ra(i,i.return);break;case 12:nl(e,i);break;case 31:nl(e,i),u&4&&Yp(e,i);break;case 13:nl(e,i),u&4&&Gp(e,i),u&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=u1.bind(null,i),A1(e,i))));break;case 22:if(u=i.memoizedState!==null||el,!u){n=n!==null&&n.memoizedState!==null||dt,f=el;var h=dt;el=u,(dt=n)&&!h?ll(e,i,(i.subtreeFlags&8772)!==0):nl(e,i),el=f,dt=h}break;case 30:break;default:nl(e,i)}}function Qp(e){var n=e.alternate;n!==null&&(e.alternate=null,Qp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&So(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var lt=null,qt=!1;function tl(e,n,i){for(i=i.child;i!==null;)Fp(e,n,i),i=i.sibling}function Fp(e,n,i){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Dt,i)}catch{}switch(i.tag){case 26:dt||Dn(i,n),tl(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:dt||Dn(i,n);var u=lt,f=qt;Ll(i.type)&&(lt=i.stateNode,qt=!1),tl(e,n,i),Ba(i.stateNode),lt=u,qt=f;break;case 5:dt||Dn(i,n);case 6:if(u=lt,f=qt,lt=null,tl(e,n,i),lt=u,qt=f,lt!==null)if(qt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(i.stateNode)}catch(h){Ye(i,n,h)}else try{lt.removeChild(i.stateNode)}catch(h){Ye(i,n,h)}break;case 18:lt!==null&&(qt?(e=lt,_g(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Ar(e)):_g(lt,i.stateNode));break;case 4:u=lt,f=qt,lt=i.stateNode.containerInfo,qt=!0,tl(e,n,i),lt=u,qt=f;break;case 0:case 11:case 14:case 15:Rl(2,i,n),dt||Rl(4,i,n),tl(e,n,i);break;case 1:dt||(Dn(i,n),u=i.stateNode,typeof u.componentWillUnmount=="function"&&jp(i,n,u)),tl(e,n,i);break;case 21:tl(e,n,i);break;case 22:dt=(u=dt)||i.memoizedState!==null,tl(e,n,i),dt=u;break;default:tl(e,n,i)}}function Yp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ar(e)}catch(i){Ye(n,n.return,i)}}}function Gp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ar(e)}catch(i){Ye(n,n.return,i)}}function W0(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Hp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Hp),n;default:throw Error(a(435,e.tag))}}function ds(e,n){var i=W0(e);n.forEach(function(u){if(!i.has(u)){i.add(u);var f=s1.bind(null,e,u);u.then(f,f)}})}function Qt(e,n){var i=n.deletions;if(i!==null)for(var u=0;u<i.length;u++){var f=i[u],h=e,b=n,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(Ll(S.type)){lt=S.stateNode,qt=!1;break e}break;case 5:lt=S.stateNode,qt=!1;break e;case 3:case 4:lt=S.stateNode.containerInfo,qt=!0;break e}S=S.return}if(lt===null)throw Error(a(160));Fp(h,b,f),lt=null,qt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Vp(n,e),n=n.sibling}var Cn=null;function Vp(e,n){var i=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Qt(n,e),Ft(e),u&4&&(Rl(3,e,e.return),za(3,e),Rl(5,e,e.return));break;case 1:Qt(n,e),Ft(e),u&512&&(dt||i===null||Dn(i,i.return)),u&64&&el&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?u:i.concat(u))));break;case 26:var f=Cn;if(Qt(n,e),Ft(e),u&512&&(dt||i===null||Dn(i,i.return)),u&4){var h=i!==null?i.memoizedState:null;if(u=e.memoizedState,i===null)if(u===null)if(e.stateNode===null){e:{u=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":h=f.getElementsByTagName("title")[0],(!h||h[na]||h[St]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(u),f.head.insertBefore(h,f.querySelector("head > title"))),kt(h,u,i),h[St]=e,bt(h),u=h;break e;case"link":var b=Vg("link","href",f).get(u+(i.href||""));if(b){for(var S=0;S<b.length;S++)if(h=b[S],h.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&h.getAttribute("rel")===(i.rel==null?null:i.rel)&&h.getAttribute("title")===(i.title==null?null:i.title)&&h.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(S,1);break t}}h=f.createElement(u),kt(h,u,i),f.head.appendChild(h);break;case"meta":if(b=Vg("meta","content",f).get(u+(i.content||""))){for(S=0;S<b.length;S++)if(h=b[S],h.getAttribute("content")===(i.content==null?null:""+i.content)&&h.getAttribute("name")===(i.name==null?null:i.name)&&h.getAttribute("property")===(i.property==null?null:i.property)&&h.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&h.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(S,1);break t}}h=f.createElement(u),kt(h,u,i),f.head.appendChild(h);break;default:throw Error(a(468,u))}h[St]=e,bt(h),u=h}e.stateNode=u}else Xg(f,e.type,e.stateNode);else e.stateNode=Gg(f,u,e.memoizedProps);else h!==u?(h===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):h.count--,u===null?Xg(f,e.type,e.stateNode):Gg(f,u,e.memoizedProps)):u===null&&e.stateNode!==null&&Fc(e,e.memoizedProps,i.memoizedProps)}break;case 27:Qt(n,e),Ft(e),u&512&&(dt||i===null||Dn(i,i.return)),i!==null&&u&4&&Fc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Qt(n,e),Ft(e),u&512&&(dt||i===null||Dn(i,i.return)),e.flags&32){f=e.stateNode;try{Ji(f,"")}catch(oe){Ye(e,e.return,oe)}}u&4&&e.stateNode!=null&&(f=e.memoizedProps,Fc(e,f,i!==null?i.memoizedProps:f)),u&1024&&(Vc=!0);break;case 6:if(Qt(n,e),Ft(e),u&4){if(e.stateNode===null)throw Error(a(162));u=e.memoizedProps,i=e.stateNode;try{i.nodeValue=u}catch(oe){Ye(e,e.return,oe)}}break;case 3:if(Rs=null,f=Cn,Cn=As(n.containerInfo),Qt(n,e),Cn=f,Ft(e),u&4&&i!==null&&i.memoizedState.isDehydrated)try{Ar(n.containerInfo)}catch(oe){Ye(e,e.return,oe)}Vc&&(Vc=!1,Xp(e));break;case 4:u=Cn,Cn=As(e.stateNode.containerInfo),Qt(n,e),Ft(e),Cn=u;break;case 12:Qt(n,e),Ft(e);break;case 31:Qt(n,e),Ft(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ds(e,u)));break;case 13:Qt(n,e),Ft(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(ps=Mt()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ds(e,u)));break;case 22:f=e.memoizedState!==null;var R=i!==null&&i.memoizedState!==null,q=el,X=dt;if(el=q||f,dt=X||R,Qt(n,e),dt=X,el=q,Ft(e),u&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||R||el||dt||Si(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){R=i=n;try{if(h=R.stateNode,f)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=R.stateNode;var J=R.memoizedProps.style,F=J!=null&&J.hasOwnProperty("display")?J.display:null;S.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(oe){Ye(R,R.return,oe)}}}else if(n.tag===6){if(i===null){R=n;try{R.stateNode.nodeValue=f?"":R.memoizedProps}catch(oe){Ye(R,R.return,oe)}}}else if(n.tag===18){if(i===null){R=n;try{var G=R.stateNode;f?jg(G,!0):jg(R.stateNode,!1)}catch(oe){Ye(R,R.return,oe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}u&4&&(u=e.updateQueue,u!==null&&(i=u.retryQueue,i!==null&&(u.retryQueue=null,ds(e,i))));break;case 19:Qt(n,e),Ft(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ds(e,u)));break;case 30:break;case 21:break;default:Qt(n,e),Ft(e)}}function Ft(e){var n=e.flags;if(n&2){try{for(var i,u=e.return;u!==null;){if(Up(u)){i=u;break}u=u.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var f=i.stateNode,h=Yc(e);hs(e,h,f);break;case 5:var b=i.stateNode;i.flags&32&&(Ji(b,""),i.flags&=-33);var S=Yc(e);hs(e,S,b);break;case 3:case 4:var R=i.stateNode.containerInfo,q=Yc(e);Gc(e,q,R);break;default:throw Error(a(161))}}catch(X){Ye(e,e.return,X)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Xp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Xp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function nl(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)qp(e,n.alternate,n),n=n.sibling}function Si(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Rl(4,n,n.return),Si(n);break;case 1:Dn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&jp(n,n.return,i),Si(n);break;case 27:Ba(n.stateNode);case 26:case 5:Dn(n,n.return),Si(n);break;case 22:n.memoizedState===null&&Si(n);break;case 30:Si(n);break;default:Si(n)}e=e.sibling}}function ll(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var u=n.alternate,f=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:ll(f,h,i),za(4,h);break;case 1:if(ll(f,h,i),u=h,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(q){Ye(u,u.return,q)}if(u=h,f=u.updateQueue,f!==null){var S=u.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)Em(R[f],S)}catch(q){Ye(u,u.return,q)}}i&&b&64&&_p(h),Ra(h,h.return);break;case 27:Bp(h);case 26:case 5:ll(f,h,i),i&&u===null&&b&4&&Lp(h),Ra(h,h.return);break;case 12:ll(f,h,i);break;case 31:ll(f,h,i),i&&b&4&&Yp(f,h);break;case 13:ll(f,h,i),i&&b&4&&Gp(f,h);break;case 22:h.memoizedState===null&&ll(f,h,i),Ra(h,h.return);break;case 30:break;default:ll(f,h,i)}n=n.sibling}}function Xc(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&pa(i))}function Kc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&pa(e))}function kn(e,n,i,u){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Kp(e,n,i,u),n=n.sibling}function Kp(e,n,i,u){var f=n.flags;switch(n.tag){case 0:case 11:case 15:kn(e,n,i,u),f&2048&&za(9,n);break;case 1:kn(e,n,i,u);break;case 3:kn(e,n,i,u),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&pa(e)));break;case 12:if(f&2048){kn(e,n,i,u),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,S=h.onPostCommit;typeof S=="function"&&S(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Ye(n,n.return,R)}}else kn(e,n,i,u);break;case 31:kn(e,n,i,u);break;case 13:kn(e,n,i,u);break;case 23:break;case 22:h=n.stateNode,b=n.alternate,n.memoizedState!==null?h._visibility&2?kn(e,n,i,u):Oa(e,n):h._visibility&2?kn(e,n,i,u):(h._visibility|=2,gr(e,n,i,u,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Xc(b,n);break;case 24:kn(e,n,i,u),f&2048&&Kc(n.alternate,n);break;default:kn(e,n,i,u)}}function gr(e,n,i,u,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,b=n,S=i,R=u,q=b.flags;switch(b.tag){case 0:case 11:case 15:gr(h,b,S,R,f),za(8,b);break;case 23:break;case 22:var X=b.stateNode;b.memoizedState!==null?X._visibility&2?gr(h,b,S,R,f):Oa(h,b):(X._visibility|=2,gr(h,b,S,R,f)),f&&q&2048&&Xc(b.alternate,b);break;case 24:gr(h,b,S,R,f),f&&q&2048&&Kc(b.alternate,b);break;default:gr(h,b,S,R,f)}n=n.sibling}}function Oa(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,u=n,f=u.flags;switch(u.tag){case 22:Oa(i,u),f&2048&&Xc(u.alternate,u);break;case 24:Oa(i,u),f&2048&&Kc(u.alternate,u);break;default:Oa(i,u)}n=n.sibling}}var Ma=8192;function yr(e,n,i){if(e.subtreeFlags&Ma)for(e=e.child;e!==null;)Zp(e,n,i),e=e.sibling}function Zp(e,n,i){switch(e.tag){case 26:yr(e,n,i),e.flags&Ma&&e.memoizedState!==null&&H1(i,Cn,e.memoizedState,e.memoizedProps);break;case 5:yr(e,n,i);break;case 3:case 4:var u=Cn;Cn=As(e.stateNode.containerInfo),yr(e,n,i),Cn=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=Ma,Ma=16777216,yr(e,n,i),Ma=u):yr(e,n,i));break;default:yr(e,n,i)}}function Ip(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Da(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];vt=u,Pp(u,e)}Ip(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jp(e),e=e.sibling}function Jp(e){switch(e.tag){case 0:case 11:case 15:Da(e),e.flags&2048&&Rl(9,e,e.return);break;case 3:Da(e);break;case 12:Da(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,ms(e)):Da(e);break;default:Da(e)}}function ms(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];vt=u,Pp(u,e)}Ip(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Rl(8,n,n.return),ms(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,ms(n));break;default:ms(n)}e=e.sibling}}function Pp(e,n){for(;vt!==null;){var i=vt;switch(i.tag){case 0:case 11:case 15:Rl(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var u=i.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:pa(i.memoizedState.cache)}if(u=i.child,u!==null)u.return=i,vt=u;else e:for(i=e;vt!==null;){u=vt;var f=u.sibling,h=u.return;if(Qp(u),u===i){vt=null;break e}if(f!==null){f.return=h,vt=f;break e}vt=h}}}var e1={getCacheForType:function(e){var n=Et(ct),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return Et(ct).controller.signal}},t1=typeof WeakMap=="function"?WeakMap:Map,He=0,Ie=null,ze=null,De=0,Fe=0,en=null,Ol=!1,br=!1,Zc=!1,il=0,at=0,Ml=0,wi=0,Ic=0,tn=0,vr=0,Na=null,Yt=null,Jc=!1,ps=0,$p=0,gs=1/0,ys=null,Dl=null,gt=0,Nl=null,xr=null,rl=0,Pc=0,$c=null,Wp=null,_a=0,Wc=null;function nn(){return(He&2)!==0&&De!==0?De&-De:Q.T!==null?af():pd()}function eg(){if(tn===0)if((De&536870912)===0||_e){var e=ku;ku<<=1,(ku&3932160)===0&&(ku=262144),tn=e}else tn=536870912;return e=$t.current,e!==null&&(e.flags|=32),tn}function Gt(e,n,i){(e===Ie&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(Sr(e,0),_l(e,De,tn,!1)),ta(e,i),((He&2)===0||e!==Ie)&&(e===Ie&&((He&2)===0&&(wi|=i),at===4&&_l(e,De,tn,!1)),Nn(e))}function tg(e,n,i){if((He&6)!==0)throw Error(a(327));var u=!i&&(n&127)===0&&(n&e.expiredLanes)===0||ea(e,n),f=u?i1(e,n):tf(e,n,!0),h=u;do{if(f===0){br&&!u&&_l(e,n,0,!1);break}else{if(i=e.current.alternate,h&&!n1(i)){f=tf(e,n,!1),h=!1;continue}if(f===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var S=e;f=Na;var R=S.current.memoizedState.isDehydrated;if(R&&(Sr(S,b).flags|=256),b=tf(S,b,!1),b!==2){if(Zc&&!R){S.errorRecoveryDisabledLanes|=h,wi|=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){Sr(e,0),_l(e,n,0,!0);break}e:{switch(u=e,h=f,h){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:_l(u,n,tn,!Ol);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=ps+300-Mt(),10<f)){if(_l(u,n,tn,!Ol),Au(u,0,!0)!==0)break e;rl=n,u.timeoutHandle=Dg(ng.bind(null,u,i,Yt,ys,Jc,n,tn,wi,vr,Ol,h,"Throttled",-0,0),f);break e}ng(u,i,Yt,ys,Jc,n,tn,wi,vr,Ol,h,null,-0,0)}}break}while(!0);Nn(e)}function ng(e,n,i,u,f,h,b,S,R,q,X,J,F,G){if(e.timeoutHandle=-1,J=n.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gn},Zp(n,h,J);var oe=(h&62914560)===h?ps-Mt():(h&4194048)===h?$p-Mt():0;if(oe=q1(J,oe),oe!==null){rl=h,e.cancelPendingCommit=oe(cg.bind(null,e,n,h,i,u,f,b,S,R,X,J,null,F,G)),_l(e,h,b,!q);return}}cg(e,n,h,i,u,f,b,S,R)}function n1(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var u=0;u<i.length;u++){var f=i[u],h=f.getSnapshot;f=f.value;try{if(!Jt(h(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function _l(e,n,i,u){n&=~Ic,n&=~wi,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var f=n;0<f;){var h=31-Ze(f),b=1<<h;u[h]=-1,f&=~b}i!==0&&hd(e,i,n)}function bs(){return(He&6)===0?(ja(0),!1):!0}function ef(){if(ze!==null){if(Fe===0)var e=ze.return;else e=ze,Zn=di=null,gc(e),fr=null,ya=0,e=ze;for(;e!==null;)Np(e.alternate,e),e=e.return;ze=null}}function Sr(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,w1(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),rl=0,ef(),Ie=e,ze=i=Xn(e.current,null),De=n,Fe=0,en=null,Ol=!1,br=ea(e,n),Zc=!1,vr=tn=Ic=wi=Ml=at=0,Yt=Na=null,Jc=!1,(n&8)!==0&&(n|=n&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=n;0<u;){var f=31-Ze(u),h=1<<f;n|=e[f],u&=~h}return il=n,Hu(),i}function lg(e,n){we=null,Q.H=ka,n===cr||n===Ku?(n=vm(),Fe=3):n===ic?(n=vm(),Fe=4):Fe=n===Dc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,en=n,ze===null&&(at=1,us(e,fn(n,e.current)))}function ig(){var e=$t.current;return e===null?!0:(De&4194048)===De?pn===null:(De&62914560)===De||(De&536870912)!==0?e===pn:!1}function rg(){var e=Q.H;return Q.H=ka,e===null?ka:e}function ag(){var e=Q.A;return Q.A=e1,e}function vs(){at=4,Ol||(De&4194048)!==De&&$t.current!==null||(br=!0),(Ml&134217727)===0&&(wi&134217727)===0||Ie===null||_l(Ie,De,tn,!1)}function tf(e,n,i){var u=He;He|=2;var f=rg(),h=ag();(Ie!==e||De!==n)&&(ys=null,Sr(e,n)),n=!1;var b=at;e:do try{if(Fe!==0&&ze!==null){var S=ze,R=en;switch(Fe){case 8:ef(),b=6;break e;case 3:case 2:case 9:case 6:$t.current===null&&(n=!0);var q=Fe;if(Fe=0,en=null,wr(e,S,R,q),i&&br){b=0;break e}break;default:q=Fe,Fe=0,en=null,wr(e,S,R,q)}}l1(),b=at;break}catch(X){lg(e,X)}while(!0);return n&&e.shellSuspendCounter++,Zn=di=null,He=u,Q.H=f,Q.A=h,ze===null&&(Ie=null,De=0,Hu()),b}function l1(){for(;ze!==null;)ug(ze)}function i1(e,n){var i=He;He|=2;var u=rg(),f=ag();Ie!==e||De!==n?(ys=null,gs=Mt()+500,Sr(e,n)):br=ea(e,n);e:do try{if(Fe!==0&&ze!==null){n=ze;var h=en;t:switch(Fe){case 1:Fe=0,en=null,wr(e,n,h,1);break;case 2:case 9:if(ym(h)){Fe=0,en=null,sg(n);break}n=function(){Fe!==2&&Fe!==9||Ie!==e||(Fe=7),Nn(e)},h.then(n,n);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:ym(h)?(Fe=0,en=null,sg(n)):(Fe=0,en=null,wr(e,n,h,7));break;case 5:var b=null;switch(ze.tag){case 26:b=ze.memoizedState;case 5:case 27:var S=ze;if(b?Kg(b):S.stateNode.complete){Fe=0,en=null;var R=S.sibling;if(R!==null)ze=R;else{var q=S.return;q!==null?(ze=q,xs(q)):ze=null}break t}}Fe=0,en=null,wr(e,n,h,5);break;case 6:Fe=0,en=null,wr(e,n,h,6);break;case 8:ef(),at=6;break e;default:throw Error(a(462))}}r1();break}catch(X){lg(e,X)}while(!0);return Zn=di=null,Q.H=u,Q.A=f,He=i,ze!==null?0:(Ie=null,De=0,Hu(),at)}function r1(){for(;ze!==null&&!mo();)ug(ze)}function ug(e){var n=Mp(e.alternate,e,il);e.memoizedProps=e.pendingProps,n===null?xs(e):ze=n}function sg(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=kp(i,n,n.pendingProps,n.type,void 0,De);break;case 11:n=kp(i,n,n.pendingProps,n.type.render,n.ref,De);break;case 5:gc(n);default:Np(i,n),n=ze=am(n,il),n=Mp(i,n,il)}e.memoizedProps=e.pendingProps,n===null?xs(e):ze=n}function wr(e,n,i,u){Zn=di=null,gc(n),fr=null,ya=0;var f=n.return;try{if(K0(e,f,n,i,De)){at=1,us(e,fn(i,e.current)),ze=null;return}}catch(h){if(f!==null)throw ze=f,h;at=1,us(e,fn(i,e.current)),ze=null;return}n.flags&32768?(_e||u===1?e=!0:br||(De&536870912)!==0?e=!1:(Ol=e=!0,(u===2||u===9||u===3||u===6)&&(u=$t.current,u!==null&&u.tag===13&&(u.flags|=16384))),og(n,e)):xs(n)}function xs(e){var n=e;do{if((n.flags&32768)!==0){og(n,Ol);return}e=n.return;var i=J0(n.alternate,n,il);if(i!==null){ze=i;return}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);at===0&&(at=5)}function og(e,n){do{var i=P0(e.alternate,e);if(i!==null){i.flags&=32767,ze=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){ze=e;return}ze=e=i}while(e!==null);at=6,ze=null}function cg(e,n,i,u,f,h,b,S,R){e.cancelPendingCommit=null;do Ss();while(gt!==0);if((He&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(h=n.lanes|n.childLanes,h|=Yo,Bx(e,i,h,b,S,R),e===Ie&&(ze=Ie=null,De=0),xr=n,Nl=e,rl=i,Pc=h,$c=f,Wp=u,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,o1(be,function(){return pg(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=Q.T,Q.T=null,f=W.p,W.p=2,b=He,He|=4;try{$0(e,n,i)}finally{He=b,W.p=f,Q.T=u}}gt=1,fg(),hg(),dg()}}function fg(){if(gt===1){gt=0;var e=Nl,n=xr,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null;var u=W.p;W.p=2;var f=He;He|=4;try{Vp(n,e);var h=mf,b=Pd(e.containerInfo),S=h.focusedElem,R=h.selectionRange;if(b!==S&&S&&S.ownerDocument&&Jd(S.ownerDocument.documentElement,S)){if(R!==null&&Bo(S)){var q=R.start,X=R.end;if(X===void 0&&(X=q),"selectionStart"in S)S.selectionStart=q,S.selectionEnd=Math.min(X,S.value.length);else{var J=S.ownerDocument||document,F=J&&J.defaultView||window;if(F.getSelection){var G=F.getSelection(),oe=S.textContent.length,ge=Math.min(R.start,oe),Ke=R.end===void 0?ge:Math.min(R.end,oe);!G.extend&&ge>Ke&&(b=Ke,Ke=ge,ge=b);var _=Id(S,ge),N=Id(S,Ke);if(_&&N&&(G.rangeCount!==1||G.anchorNode!==_.node||G.anchorOffset!==_.offset||G.focusNode!==N.node||G.focusOffset!==N.offset)){var H=J.createRange();H.setStart(_.node,_.offset),G.removeAllRanges(),ge>Ke?(G.addRange(H),G.extend(N.node,N.offset)):(H.setEnd(N.node,N.offset),G.addRange(H))}}}}for(J=[],G=S;G=G.parentNode;)G.nodeType===1&&J.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<J.length;S++){var I=J[S];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}Ns=!!df,mf=df=null}finally{He=f,W.p=u,Q.T=i}}e.current=n,gt=2}}function hg(){if(gt===2){gt=0;var e=Nl,n=xr,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=Q.T,Q.T=null;var u=W.p;W.p=2;var f=He;He|=4;try{qp(e,n.alternate,n)}finally{He=f,W.p=u,Q.T=i}}gt=3}}function dg(){if(gt===4||gt===3){gt=0,po();var e=Nl,n=xr,i=rl,u=Wp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?gt=5:(gt=0,xr=Nl=null,mg(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Dl=null),vo(i),n=n.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(Dt,n,void 0,(n.current.flags&128)===128)}catch{}if(u!==null){n=Q.T,f=W.p,W.p=2,Q.T=null;try{for(var h=e.onRecoverableError,b=0;b<u.length;b++){var S=u[b];h(S.value,{componentStack:S.stack})}}finally{Q.T=n,W.p=f}}(rl&3)!==0&&Ss(),Nn(e),f=e.pendingLanes,(i&261930)!==0&&(f&42)!==0?e===Wc?_a++:(_a=0,Wc=e):_a=0,ja(0)}}function mg(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,pa(n)))}function Ss(){return fg(),hg(),dg(),pg()}function pg(){if(gt!==5)return!1;var e=Nl,n=Pc;Pc=0;var i=vo(rl),u=Q.T,f=W.p;try{W.p=32>i?32:i,Q.T=null,i=$c,$c=null;var h=Nl,b=rl;if(gt=0,xr=Nl=null,rl=0,(He&6)!==0)throw Error(a(331));var S=He;if(He|=4,Jp(h.current),Kp(h,h.current,b,i),He=S,ja(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Dt,h)}catch{}return!0}finally{W.p=f,Q.T=u,mg(e,n)}}function gg(e,n,i){n=fn(i,n),n=Mc(e.stateNode,n,2),e=Tl(e,n,2),e!==null&&(ta(e,2),Nn(e))}function Ye(e,n,i){if(e.tag===3)gg(e,e,i);else for(;n!==null;){if(n.tag===3){gg(n,e,i);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Dl===null||!Dl.has(u))){e=fn(i,e),i=yp(2),u=Tl(n,i,2),u!==null&&(bp(i,u,n,e),ta(u,2),Nn(u));break}}n=n.return}}function nf(e,n,i){var u=e.pingCache;if(u===null){u=e.pingCache=new t1;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(i)||(Zc=!0,f.add(i),e=a1.bind(null,e,n,i),n.then(e,e))}function a1(e,n,i){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Ie===e&&(De&i)===i&&(at===4||at===3&&(De&62914560)===De&&300>Mt()-ps?(He&2)===0&&Sr(e,0):Ic|=i,vr===De&&(vr=0)),Nn(e)}function yg(e,n){n===0&&(n=fd()),e=ci(e,n),e!==null&&(ta(e,n),Nn(e))}function u1(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),yg(e,i)}function s1(e,n){var i=0;switch(e.tag){case 31:case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(n),yg(e,i)}function o1(e,n){return Yi(e,n)}var ws=null,Er=null,lf=!1,Es=!1,rf=!1,jl=0;function Nn(e){e!==Er&&e.next===null&&(Er===null?ws=Er=e:Er=Er.next=e),Es=!0,lf||(lf=!0,f1())}function ja(e,n){if(!rf&&Es){rf=!0;do for(var i=!1,u=ws;u!==null;){if(e!==0){var f=u.pendingLanes;if(f===0)var h=0;else{var b=u.suspendedLanes,S=u.pingedLanes;h=(1<<31-Ze(42|e)+1)-1,h&=f&~(b&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(i=!0,Sg(u,h))}else h=De,h=Au(u,u===Ie?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||ea(u,h)||(i=!0,Sg(u,h));u=u.next}while(i);rf=!1}}function c1(){bg()}function bg(){Es=lf=!1;var e=0;jl!==0&&S1()&&(e=jl);for(var n=Mt(),i=null,u=ws;u!==null;){var f=u.next,h=vg(u,n);h===0?(u.next=null,i===null?ws=f:i.next=f,f===null&&(Er=i)):(i=u,(e!==0||(h&3)!==0)&&(Es=!0)),u=f}gt!==0&&gt!==5||ja(e),jl!==0&&(jl=0)}function vg(e,n){for(var i=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Ze(h),S=1<<b,R=f[b];R===-1?((S&i)===0||(S&u)!==0)&&(f[b]=Ux(S,n)):R<=n&&(e.expiredLanes|=S),h&=~S}if(n=Ie,i=De,i=Au(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,i===0||e===n&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&Wr(u),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||ea(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(u!==null&&Wr(u),vo(i)){case 2:case 8:i=re;break;case 32:i=be;break;case 268435456:i=qe;break;default:i=be}return u=xg.bind(null,e),i=Yi(i,u),e.callbackPriority=n,e.callbackNode=i,n}return u!==null&&u!==null&&Wr(u),e.callbackPriority=2,e.callbackNode=null,2}function xg(e,n){if(gt!==0&&gt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Ss()&&e.callbackNode!==i)return null;var u=De;return u=Au(e,e===Ie?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(tg(e,u,n),vg(e,Mt()),e.callbackNode!=null&&e.callbackNode===i?xg.bind(null,e):null)}function Sg(e,n){if(Ss())return null;tg(e,n,!0)}function f1(){E1(function(){(He&6)!==0?Yi(Z,c1):bg()})}function af(){if(jl===0){var e=sr;e===0&&(e=Cu,Cu<<=1,(Cu&261888)===0&&(Cu=256)),jl=e}return jl}function wg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mu(""+e)}function Eg(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function h1(e,n,i,u,f){if(n==="submit"&&i&&i.stateNode===f){var h=wg((f[Bt]||null).action),b=u.submitter;b&&(n=(n=b[Bt]||null)?wg(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var S=new ju("action","action",null,u,f);e.push({event:S,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(jl!==0){var R=b?Eg(f,b):new FormData(f);kc(i,{pending:!0,data:R,method:f.method,action:h},null,R)}}else typeof h=="function"&&(S.preventDefault(),R=b?Eg(f,b):new FormData(f),kc(i,{pending:!0,data:R,method:f.method,action:h},h,R))},currentTarget:f}]})}}for(var uf=0;uf<Fo.length;uf++){var sf=Fo[uf],d1=sf.toLowerCase(),m1=sf[0].toUpperCase()+sf.slice(1);En(d1,"on"+m1)}En(em,"onAnimationEnd"),En(tm,"onAnimationIteration"),En(nm,"onAnimationStart"),En("dblclick","onDoubleClick"),En("focusin","onFocus"),En("focusout","onBlur"),En(O0,"onTransitionRun"),En(M0,"onTransitionStart"),En(D0,"onTransitionCancel"),En(lm,"onTransitionEnd"),Zi("onMouseEnter",["mouseout","mouseover"]),Zi("onMouseLeave",["mouseout","mouseover"]),Zi("onPointerEnter",["pointerout","pointerover"]),Zi("onPointerLeave",["pointerout","pointerover"]),ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ai("onBeforeInput",["compositionend","keypress","textInput","paste"]),ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var La="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(" "),p1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(La));function Cg(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var u=e[i],f=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var b=u.length-1;0<=b;b--){var S=u[b],R=S.instance,q=S.currentTarget;if(S=S.listener,R!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=q;try{h(f)}catch(X){Bu(X)}f.currentTarget=null,h=R}else for(b=0;b<u.length;b++){if(S=u[b],R=S.instance,q=S.currentTarget,S=S.listener,R!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=q;try{h(f)}catch(X){Bu(X)}f.currentTarget=null,h=R}}}}function Re(e,n){var i=n[xo];i===void 0&&(i=n[xo]=new Set);var u=e+"__bubble";i.has(u)||(kg(n,e,2,!1),i.add(u))}function of(e,n,i){var u=0;n&&(u|=4),kg(i,e,u,n)}var Cs="_reactListening"+Math.random().toString(36).slice(2);function cf(e){if(!e[Cs]){e[Cs]=!0,bd.forEach(function(i){i!=="selectionchange"&&(p1.has(i)||of(i,!1,e),of(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Cs]||(n[Cs]=!0,of("selectionchange",!1,n))}}function kg(e,n,i,u){switch(ey(n)){case 2:var f=Y1;break;case 8:f=G1;break;default:f=kf}i=f.bind(null,n,i,e),f=void 0,!Ro||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function ff(e,n,i,u,f){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var b=u.tag;if(b===3||b===4){var S=u.stateNode.containerInfo;if(S===f)break;if(b===4)for(b=u.return;b!==null;){var R=b.tag;if((R===3||R===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;S!==null;){if(b=Vi(S),b===null)return;if(R=b.tag,R===5||R===6||R===26||R===27){u=h=b;continue e}S=S.parentNode}}u=u.return}Od(function(){var q=h,X=Ao(i),J=[];e:{var F=im.get(e);if(F!==void 0){var G=ju,oe=e;switch(e){case"keypress":if(Nu(i)===0)break e;case"keydown":case"keyup":G=s0;break;case"focusin":oe="focus",G=No;break;case"focusout":oe="blur",G=No;break;case"beforeblur":case"afterblur":G=No;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Nd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Jx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=f0;break;case em:case tm:case nm:G=Wx;break;case lm:G=d0;break;case"scroll":case"scrollend":G=Zx;break;case"wheel":G=p0;break;case"copy":case"cut":case"paste":G=t0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=jd;break;case"toggle":case"beforetoggle":G=y0}var ge=(n&4)!==0,Ke=!ge&&(e==="scroll"||e==="scrollend"),_=ge?F!==null?F+"Capture":null:F;ge=[];for(var N=q,H;N!==null;){var I=N;if(H=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||H===null||_===null||(I=ia(N,_),I!=null&&ge.push(Ua(N,I,H))),Ke)break;N=N.return}0<ge.length&&(F=new G(F,oe,null,i,X),J.push({event:F,listeners:ge}))}}if((n&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",F&&i!==To&&(oe=i.relatedTarget||i.fromElement)&&(Vi(oe)||oe[Gi]))break e;if((G||F)&&(F=X.window===X?X:(F=X.ownerDocument)?F.defaultView||F.parentWindow:window,G?(oe=i.relatedTarget||i.toElement,G=q,oe=oe?Vi(oe):null,oe!==null&&(Ke=o(oe),ge=oe.tag,oe!==Ke||ge!==5&&ge!==27&&ge!==6)&&(oe=null)):(G=null,oe=q),G!==oe)){if(ge=Nd,I="onMouseLeave",_="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ge=jd,I="onPointerLeave",_="onPointerEnter",N="pointer"),Ke=G==null?F:la(G),H=oe==null?F:la(oe),F=new ge(I,N+"leave",G,i,X),F.target=Ke,F.relatedTarget=H,I=null,Vi(X)===q&&(ge=new ge(_,N+"enter",oe,i,X),ge.target=H,ge.relatedTarget=Ke,I=ge),Ke=I,G&&oe)t:{for(ge=g1,_=G,N=oe,H=0,I=_;I;I=ge(I))H++;I=0;for(var me=N;me;me=ge(me))I++;for(;0<H-I;)_=ge(_),H--;for(;0<I-H;)N=ge(N),I--;for(;H--;){if(_===N||N!==null&&_===N.alternate){ge=_;break t}_=ge(_),N=ge(N)}ge=null}else ge=null;G!==null&&Tg(J,F,G,ge,!1),oe!==null&&Ke!==null&&Tg(J,Ke,oe,ge,!0)}}e:{if(F=q?la(q):window,G=F.nodeName&&F.nodeName.toLowerCase(),G==="select"||G==="input"&&F.type==="file")var Ue=Yd;else if(Qd(F))if(Gd)Ue=A0;else{Ue=k0;var fe=C0}else G=F.nodeName,!G||G.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?q&&ko(q.elementType)&&(Ue=Yd):Ue=T0;if(Ue&&(Ue=Ue(e,q))){Fd(J,Ue,i,X);break e}fe&&fe(e,F,q),e==="focusout"&&q&&F.type==="number"&&q.memoizedProps.value!=null&&Co(F,"number",F.value)}switch(fe=q?la(q):window,e){case"focusin":(Qd(fe)||fe.contentEditable==="true")&&(er=fe,Ho=q,ha=null);break;case"focusout":ha=Ho=er=null;break;case"mousedown":qo=!0;break;case"contextmenu":case"mouseup":case"dragend":qo=!1,$d(J,i,X);break;case"selectionchange":if(R0)break;case"keydown":case"keyup":$d(J,i,X)}var Ee;if(jo)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else Wi?Hd(e,i)&&(Ne="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Ne="onCompositionStart");Ne&&(Ld&&i.locale!=="ko"&&(Wi||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Wi&&(Ee=Md()):(vl=X,Oo="value"in vl?vl.value:vl.textContent,Wi=!0)),fe=ks(q,Ne),0<fe.length&&(Ne=new _d(Ne,e,null,i,X),J.push({event:Ne,listeners:fe}),Ee?Ne.data=Ee:(Ee=qd(i),Ee!==null&&(Ne.data=Ee)))),(Ee=v0?x0(e,i):S0(e,i))&&(Ne=ks(q,"onBeforeInput"),0<Ne.length&&(fe=new _d("onBeforeInput","beforeinput",null,i,X),J.push({event:fe,listeners:Ne}),fe.data=Ee)),h1(J,e,q,i,X)}Cg(J,n)})}function Ua(e,n,i){return{instance:e,listener:n,currentTarget:i}}function ks(e,n){for(var i=n+"Capture",u=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=ia(e,i),f!=null&&u.unshift(Ua(e,f,h)),f=ia(e,n),f!=null&&u.push(Ua(e,f,h))),e.tag===3)return u;e=e.return}return[]}function g1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tg(e,n,i,u,f){for(var h=n._reactName,b=[];i!==null&&i!==u;){var S=i,R=S.alternate,q=S.stateNode;if(S=S.tag,R!==null&&R===u)break;S!==5&&S!==26&&S!==27||q===null||(R=q,f?(q=ia(i,h),q!=null&&b.unshift(Ua(i,q,R))):f||(q=ia(i,h),q!=null&&b.push(Ua(i,q,R)))),i=i.return}b.length!==0&&e.push({event:n,listeners:b})}var y1=/\r\n?/g,b1=/\u0000|\uFFFD/g;function Ag(e){return(typeof e=="string"?e:""+e).replace(y1,`
49
+ `).replace(b1,"")}function zg(e,n){return n=Ag(n),Ag(e)===n}function Xe(e,n,i,u,f,h){switch(i){case"children":typeof u=="string"?n==="body"||n==="textarea"&&u===""||Ji(e,u):(typeof u=="number"||typeof u=="bigint")&&n!=="body"&&Ji(e,""+u);break;case"className":Ru(e,"class",u);break;case"tabIndex":Ru(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ru(e,i,u);break;case"style":zd(e,u,h);break;case"data":if(n!=="object"){Ru(e,"data",u);break}case"src":case"href":if(u===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=Mu(""+u),e.setAttribute(i,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(i,"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"&&(i==="formAction"?(n!=="input"&&Xe(e,n,"name",f.name,f,null),Xe(e,n,"formEncType",f.formEncType,f,null),Xe(e,n,"formMethod",f.formMethod,f,null),Xe(e,n,"formTarget",f.formTarget,f,null)):(Xe(e,n,"encType",f.encType,f,null),Xe(e,n,"method",f.method,f,null),Xe(e,n,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=Mu(""+u),e.setAttribute(i,u);break;case"onClick":u!=null&&(e.onclick=Gn);break;case"onScroll":u!=null&&Re("scroll",e);break;case"onScrollEnd":u!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(i=u.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}i=Mu(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""+u):e.removeAttribute(i);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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":u===!0?e.setAttribute(i,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,u):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(i,u):e.removeAttribute(i);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(i):e.setAttribute(i,u);break;case"popover":Re("beforetoggle",e),Re("toggle",e),zu(e,"popover",u);break;case"xlinkActuate":Yn(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Yn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Yn(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Yn(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Yn(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Yn(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":zu(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Xx.get(i)||i,zu(e,i,u))}}function hf(e,n,i,u,f,h){switch(i){case"style":zd(e,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(i=u.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"children":typeof u=="string"?Ji(e,u):(typeof u=="number"||typeof u=="bigint")&&Ji(e,""+u);break;case"onScroll":u!=null&&Re("scroll",e);break;case"onScrollEnd":u!=null&&Re("scrollend",e);break;case"onClick":u!=null&&(e.onclick=Gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vd.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),h=e[Bt]||null,h=h!=null?h[i]:null,typeof h=="function"&&e.removeEventListener(n,h,f),typeof u=="function")){typeof h!="function"&&h!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,u,f);break e}i in e?e[i]=u:u===!0?e.setAttribute(i,""):zu(e,i,u)}}}function kt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var u=!1,f=!1,h;for(h in i)if(i.hasOwnProperty(h)){var b=i[h];if(b!=null)switch(h){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Xe(e,n,h,b,i,null)}}f&&Xe(e,n,"srcSet",i.srcSet,i,null),u&&Xe(e,n,"src",i.src,i,null);return;case"input":Re("invalid",e);var S=h=b=f=null,R=null,q=null;for(u in i)if(i.hasOwnProperty(u)){var X=i[u];if(X!=null)switch(u){case"name":f=X;break;case"type":b=X;break;case"checked":R=X;break;case"defaultChecked":q=X;break;case"value":h=X;break;case"defaultValue":S=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(a(137,n));break;default:Xe(e,n,u,X,i,null)}}Cd(e,h,S,R,q,b,f,!1);return;case"select":Re("invalid",e),u=b=h=null;for(f in i)if(i.hasOwnProperty(f)&&(S=i[f],S!=null))switch(f){case"value":h=S;break;case"defaultValue":b=S;break;case"multiple":u=S;default:Xe(e,n,f,S,i,null)}n=h,i=b,e.multiple=!!u,n!=null?Ii(e,!!u,n,!1):i!=null&&Ii(e,!!u,i,!0);return;case"textarea":Re("invalid",e),h=f=u=null;for(b in i)if(i.hasOwnProperty(b)&&(S=i[b],S!=null))switch(b){case"value":u=S;break;case"defaultValue":f=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(a(91));break;default:Xe(e,n,b,S,i,null)}Td(e,u,f,h);return;case"option":for(R in i)if(i.hasOwnProperty(R)&&(u=i[R],u!=null))switch(R){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Xe(e,n,R,u,i,null)}return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(u=0;u<La.length;u++)Re(La[u],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in i)if(i.hasOwnProperty(q)&&(u=i[q],u!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Xe(e,n,q,u,i,null)}return;default:if(ko(n)){for(X in i)i.hasOwnProperty(X)&&(u=i[X],u!==void 0&&hf(e,n,X,u,i,void 0));return}}for(S in i)i.hasOwnProperty(S)&&(u=i[S],u!=null&&Xe(e,n,S,u,i,null))}function v1(e,n,i,u){switch(n){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,R=null,q=null,X=null;for(G in i){var J=i[G];if(i.hasOwnProperty(G)&&J!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":R=J;default:u.hasOwnProperty(G)||Xe(e,n,G,null,u,J)}}for(var F in u){var G=u[F];if(J=i[F],u.hasOwnProperty(F)&&(G!=null||J!=null))switch(F){case"type":h=G;break;case"name":f=G;break;case"checked":q=G;break;case"defaultChecked":X=G;break;case"value":b=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,n));break;default:G!==J&&Xe(e,n,F,G,u,J)}}Eo(e,b,S,R,q,X,h,f);return;case"select":G=b=S=F=null;for(h in i)if(R=i[h],i.hasOwnProperty(h)&&R!=null)switch(h){case"value":break;case"multiple":G=R;default:u.hasOwnProperty(h)||Xe(e,n,h,null,u,R)}for(f in u)if(h=u[f],R=i[f],u.hasOwnProperty(f)&&(h!=null||R!=null))switch(f){case"value":F=h;break;case"defaultValue":S=h;break;case"multiple":b=h;default:h!==R&&Xe(e,n,f,h,u,R)}n=S,i=b,u=G,F!=null?Ii(e,!!i,F,!1):!!u!=!!i&&(n!=null?Ii(e,!!i,n,!0):Ii(e,!!i,i?[]:"",!1));return;case"textarea":G=F=null;for(S in i)if(f=i[S],i.hasOwnProperty(S)&&f!=null&&!u.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Xe(e,n,S,null,u,f)}for(b in u)if(f=u[b],h=i[b],u.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":F=f;break;case"defaultValue":G=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==h&&Xe(e,n,b,f,u,h)}kd(e,F,G);return;case"option":for(var oe in i)if(F=i[oe],i.hasOwnProperty(oe)&&F!=null&&!u.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:Xe(e,n,oe,null,u,F)}for(R in u)if(F=u[R],G=i[R],u.hasOwnProperty(R)&&F!==G&&(F!=null||G!=null))switch(R){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:Xe(e,n,R,F,u,G)}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 ge in i)F=i[ge],i.hasOwnProperty(ge)&&F!=null&&!u.hasOwnProperty(ge)&&Xe(e,n,ge,null,u,F);for(q in u)if(F=u[q],G=i[q],u.hasOwnProperty(q)&&F!==G&&(F!=null||G!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,n));break;default:Xe(e,n,q,F,u,G)}return;default:if(ko(n)){for(var Ke in i)F=i[Ke],i.hasOwnProperty(Ke)&&F!==void 0&&!u.hasOwnProperty(Ke)&&hf(e,n,Ke,void 0,u,F);for(X in u)F=u[X],G=i[X],!u.hasOwnProperty(X)||F===G||F===void 0&&G===void 0||hf(e,n,X,F,u,G);return}}for(var _ in i)F=i[_],i.hasOwnProperty(_)&&F!=null&&!u.hasOwnProperty(_)&&Xe(e,n,_,null,u,F);for(J in u)F=u[J],G=i[J],!u.hasOwnProperty(J)||F===G||F==null&&G==null||Xe(e,n,J,F,u,G)}function Rg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function x1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),u=0;u<i.length;u++){var f=i[u],h=f.transferSize,b=f.initiatorType,S=f.duration;if(h&&S&&Rg(b)){for(b=0,S=f.responseEnd,u+=1;u<i.length;u++){var R=i[u],q=R.startTime;if(q>S)break;var X=R.transferSize,J=R.initiatorType;X&&Rg(J)&&(R=R.responseEnd,b+=X*(R<S?1:(S-q)/(R-q)))}if(--u,n+=8*(h+b)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var df=null,mf=null;function Ts(e){return e.nodeType===9?e:e.ownerDocument}function Og(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Mg(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function pf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var gf=null;function S1(){var e=window.event;return e&&e.type==="popstate"?e===gf?!1:(gf=e,!0):(gf=null,!1)}var Dg=typeof setTimeout=="function"?setTimeout:void 0,w1=typeof clearTimeout=="function"?clearTimeout:void 0,Ng=typeof Promise=="function"?Promise:void 0,E1=typeof queueMicrotask=="function"?queueMicrotask:typeof Ng<"u"?function(e){return Ng.resolve(null).then(e).catch(C1)}:Dg;function C1(e){setTimeout(function(){throw e})}function Ll(e){return e==="head"}function _g(e,n){var i=n,u=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(u===0){e.removeChild(f),Ar(n);return}u--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")u++;else if(i==="html")Ba(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Ba(i);for(var h=i.firstChild;h;){var b=h.nextSibling,S=h.nodeName;h[na]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&h.rel.toLowerCase()==="stylesheet"||i.removeChild(h),h=b}}else i==="body"&&Ba(e.ownerDocument.body);i=f}while(i);Ar(n)}function jg(e,n){var i=e;e=0;do{var u=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),u&&u.nodeType===8)if(i=u.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=u}while(i)}function yf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":yf(i),So(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function k1(e,n,i,u){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[na])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=gn(e.nextSibling),e===null)break}return null}function T1(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=gn(e.nextSibling),e===null))return null;return e}function Lg(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=gn(e.nextSibling),e===null))return null;return e}function bf(e){return e.data==="$?"||e.data==="$~"}function vf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function A1(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var u=function(){n(),i.removeEventListener("DOMContentLoaded",u)};i.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function gn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var xf=null;function Ug(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return gn(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function Bg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return e;n--}else i!=="/$"&&i!=="/&"||n++}e=e.previousSibling}return null}function Hg(e,n,i){switch(n=Ts(i),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function Ba(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);So(e)}var yn=new Map,qg=new Set;function As(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var al=W.d;W.d={f:z1,r:R1,D:O1,C:M1,L:D1,m:N1,X:j1,S:_1,M:L1};function z1(){var e=al.f(),n=bs();return e||n}function R1(e){var n=Xi(e);n!==null&&n.tag===5&&n.type==="form"?lp(n):al.r(e)}var Cr=typeof document>"u"?null:document;function Qg(e,n,i){var u=Cr;if(u&&typeof n=="string"&&n){var f=on(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),qg.has(f)||(qg.add(f),e={rel:e,crossOrigin:i,href:n},u.querySelector(f)===null&&(n=u.createElement("link"),kt(n,"link",e),bt(n),u.head.appendChild(n)))}}function O1(e){al.D(e),Qg("dns-prefetch",e,null)}function M1(e,n){al.C(e,n),Qg("preconnect",e,n)}function D1(e,n,i){al.L(e,n,i);var u=Cr;if(u&&e&&n){var f='link[rel="preload"][as="'+on(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+on(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+on(i.imageSizes)+'"]')):f+='[href="'+on(e)+'"]';var h=f;switch(n){case"style":h=kr(e);break;case"script":h=Tr(e)}yn.has(h)||(e=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),yn.set(h,e),u.querySelector(f)!==null||n==="style"&&u.querySelector(Ha(h))||n==="script"&&u.querySelector(qa(h))||(n=u.createElement("link"),kt(n,"link",e),bt(n),u.head.appendChild(n)))}}function N1(e,n){al.m(e,n);var i=Cr;if(i&&e){var u=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+on(u)+'"][href="'+on(e)+'"]',h=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Tr(e)}if(!yn.has(h)&&(e=g({rel:"modulepreload",href:e},n),yn.set(h,e),i.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(qa(h)))return}u=i.createElement("link"),kt(u,"link",e),bt(u),i.head.appendChild(u)}}}function _1(e,n,i){al.S(e,n,i);var u=Cr;if(u&&e){var f=Ki(u).hoistableStyles,h=kr(e);n=n||"default";var b=f.get(h);if(!b){var S={loading:0,preload:null};if(b=u.querySelector(Ha(h)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},i),(i=yn.get(h))&&Sf(e,i);var R=b=u.createElement("link");bt(R),kt(R,"link",e),R._p=new Promise(function(q,X){R.onload=q,R.onerror=X}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,zs(b,n,u)}b={type:"stylesheet",instance:b,count:1,state:S},f.set(h,b)}}}function j1(e,n){al.X(e,n);var i=Cr;if(i&&e){var u=Ki(i).hoistableScripts,f=Tr(e),h=u.get(f);h||(h=i.querySelector(qa(f)),h||(e=g({src:e,async:!0},n),(n=yn.get(f))&&wf(e,n),h=i.createElement("script"),bt(h),kt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function L1(e,n){al.M(e,n);var i=Cr;if(i&&e){var u=Ki(i).hoistableScripts,f=Tr(e),h=u.get(f);h||(h=i.querySelector(qa(f)),h||(e=g({src:e,async:!0,type:"module"},n),(n=yn.get(f))&&wf(e,n),h=i.createElement("script"),bt(h),kt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function Fg(e,n,i,u){var f=(f=de.current)?As(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=kr(i.href),i=Ki(f).hoistableStyles,u=i.get(n),u||(u={type:"style",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=kr(i.href);var h=Ki(f).hoistableStyles,b=h.get(e);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=f.querySelector(Ha(e)))&&!h._p&&(b.instance=h,b.state.loading=5),yn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},yn.set(e,i),h||U1(f,e,i,b.state))),n&&u===null)throw Error(a(528,""));return b}if(n&&u!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Tr(i),i=Ki(f).hoistableScripts,u=i.get(n),u||(u={type:"script",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function kr(e){return'href="'+on(e)+'"'}function Ha(e){return'link[rel="stylesheet"]['+e+"]"}function Yg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function U1(e,n,i,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=1:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=1}),n.addEventListener("error",function(){return u.loading|=2}),kt(n,"link",i),bt(n),e.head.appendChild(n))}function Tr(e){return'[src="'+on(e)+'"]'}function qa(e){return"script[async]"+e}function Gg(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var u=e.querySelector('style[data-href~="'+on(i.href)+'"]');if(u)return n.instance=u,bt(u),u;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),bt(u),kt(u,"style",f),zs(u,i.precedence,e),n.instance=u;case"stylesheet":f=kr(i.href);var h=e.querySelector(Ha(f));if(h)return n.state.loading|=4,n.instance=h,bt(h),h;u=Yg(i),(f=yn.get(f))&&Sf(u,f),h=(e.ownerDocument||e).createElement("link"),bt(h);var b=h;return b._p=new Promise(function(S,R){b.onload=S,b.onerror=R}),kt(h,"link",u),n.state.loading|=4,zs(h,i.precedence,e),n.instance=h;case"script":return h=Tr(i.src),(f=e.querySelector(qa(h)))?(n.instance=f,bt(f),f):(u=i,(f=yn.get(h))&&(u=g({},i),wf(u,f)),e=e.ownerDocument||e,f=e.createElement("script"),bt(f),kt(f,"link",u),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(u=n.instance,n.state.loading|=4,zs(u,i.precedence,e));return n.instance}function zs(e,n,i){for(var u=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,h=f,b=0;b<u.length;b++){var S=u[b];if(S.dataset.precedence===n)h=S;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function Sf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function wf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Rs=null;function Vg(e,n,i){if(Rs===null){var u=new Map,f=Rs=new Map;f.set(i,u)}else f=Rs,u=f.get(i),u||(u=new Map,f.set(i,u));if(u.has(e))return u;for(u.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var h=i[f];if(!(h[na]||h[St]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var S=u.get(b);S?S.push(h):u.set(b,[h])}}return u}function Xg(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function B1(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Kg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function H1(e,n,i,u){if(i.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=kr(u.href),h=n.querySelector(Ha(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Os.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=h,bt(h);return}h=n.ownerDocument||n,u=Yg(u),(f=yn.get(f))&&Sf(u,f),h=h.createElement("link"),bt(h);var b=h;b._p=new Promise(function(S,R){b.onload=S,b.onerror=R}),kt(h,"link",u),i.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Os.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var Ef=0;function q1(e,n){return e.stylesheets&&e.count===0&&Ds(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var u=setTimeout(function(){if(e.stylesheets&&Ds(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&Ef===0&&(Ef=62500*x1());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ds(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Ef?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Os(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ds(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ms=null;function Ds(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ms=new Map,n.forEach(Q1,e),Ms=null,Os.call(e))}function Q1(e,n){if(!(n.state.loading&4)){var i=Ms.get(e);if(i)var u=i.get(null);else{i=new Map,Ms.set(e,i);for(var f=e.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")&&(i.set(b.dataset.precedence,b),u=b)}u&&i.set(null,u)}f=n.instance,b=f.getAttribute("data-precedence"),h=i.get(b)||u,h===u&&i.set(null,f),i.set(b,f),this.count++,u=Os.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var Qa={$$typeof:D,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function F1(e,n,i,u,f,h,b,S,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yo(0),this.hiddenUpdates=yo(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Zg(e,n,i,u,f,h,b,S,R,q,X,J){return e=new F1(e,n,i,b,R,q,X,J,S),n=1,h===!0&&(n|=24),h=Pt(3,null,null,n),e.current=h,h.stateNode=e,n=tc(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:u,isDehydrated:i,cache:n},rc(h),e}function Ig(e){return e?(e=lr,e):lr}function Jg(e,n,i,u,f,h){f=Ig(f),u.context===null?u.context=f:u.pendingContext=f,u=kl(n),u.payload={element:i},h=h===void 0?null:h,h!==null&&(u.callback=h),i=Tl(e,u,n),i!==null&&(Gt(i,e,n),va(i,e,n))}function Pg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function Cf(e,n){Pg(e,n),(e=e.alternate)&&Pg(e,n)}function $g(e){if(e.tag===13||e.tag===31){var n=ci(e,67108864);n!==null&&Gt(n,e,67108864),Cf(e,67108864)}}function Wg(e){if(e.tag===13||e.tag===31){var n=nn();n=bo(n);var i=ci(e,n);i!==null&&Gt(i,e,n),Cf(e,n)}}var Ns=!0;function Y1(e,n,i,u){var f=Q.T;Q.T=null;var h=W.p;try{W.p=2,kf(e,n,i,u)}finally{W.p=h,Q.T=f}}function G1(e,n,i,u){var f=Q.T;Q.T=null;var h=W.p;try{W.p=8,kf(e,n,i,u)}finally{W.p=h,Q.T=f}}function kf(e,n,i,u){if(Ns){var f=Tf(u);if(f===null)ff(e,n,u,_s,i),ty(e,u);else if(X1(f,e,n,i,u))u.stopPropagation();else if(ty(e,u),n&4&&-1<V1.indexOf(e)){for(;f!==null;){var h=Xi(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=ri(h.pendingLanes);if(b!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var R=1<<31-Ze(b);S.entanglements[1]|=R,b&=~R}Nn(h),(He&6)===0&&(gs=Mt()+500,ja(0))}}break;case 31:case 13:S=ci(h,2),S!==null&&Gt(S,h,2),bs(),Cf(h,2)}if(h=Tf(u),h===null&&ff(e,n,u,_s,i),h===f)break;f=h}f!==null&&u.stopPropagation()}else ff(e,n,u,null,i)}}function Tf(e){return e=Ao(e),Af(e)}var _s=null;function Af(e){if(_s=null,e=Vi(e),e!==null){var n=o(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===31){if(e=d(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return _s=e,null}function ey(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(go()){case Z:return 2;case re:return 8;case be:case Ae:return 32;case qe:return 268435456;default:return 32}default:return 32}}var zf=!1,Ul=null,Bl=null,Hl=null,Fa=new Map,Ya=new Map,ql=[],V1="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 ty(e,n){switch(e){case"focusin":case"focusout":Ul=null;break;case"dragenter":case"dragleave":Bl=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":Fa.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ya.delete(n.pointerId)}}function Ga(e,n,i,u,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:i,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]},n!==null&&(n=Xi(n),n!==null&&$g(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function X1(e,n,i,u,f){switch(n){case"focusin":return Ul=Ga(Ul,e,n,i,u,f),!0;case"dragenter":return Bl=Ga(Bl,e,n,i,u,f),!0;case"mouseover":return Hl=Ga(Hl,e,n,i,u,f),!0;case"pointerover":var h=f.pointerId;return Fa.set(h,Ga(Fa.get(h)||null,e,n,i,u,f)),!0;case"gotpointercapture":return h=f.pointerId,Ya.set(h,Ga(Ya.get(h)||null,e,n,i,u,f)),!0}return!1}function ny(e){var n=Vi(e.target);if(n!==null){var i=o(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,gd(e.priority,function(){Wg(i)});return}}else if(n===31){if(n=d(i),n!==null){e.blockedOn=n,gd(e.priority,function(){Wg(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function js(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=Tf(e.nativeEvent);if(i===null){i=e.nativeEvent;var u=new i.constructor(i.type,i);To=u,i.target.dispatchEvent(u),To=null}else return n=Xi(i),n!==null&&$g(n),e.blockedOn=i,!1;n.shift()}return!0}function ly(e,n,i){js(e)&&i.delete(n)}function K1(){zf=!1,Ul!==null&&js(Ul)&&(Ul=null),Bl!==null&&js(Bl)&&(Bl=null),Hl!==null&&js(Hl)&&(Hl=null),Fa.forEach(ly),Ya.forEach(ly)}function Ls(e,n){e.blockedOn===n&&(e.blockedOn=null,zf||(zf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,K1)))}var Us=null;function iy(e){Us!==e&&(Us=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Us===e&&(Us=null);for(var n=0;n<e.length;n+=3){var i=e[n],u=e[n+1],f=e[n+2];if(typeof u!="function"){if(Af(u||i)===null)continue;break}var h=Xi(i);h!==null&&(e.splice(n,3),n-=3,kc(h,{pending:!0,data:f,method:i.method,action:u},u,f))}}))}function Ar(e){function n(R){return Ls(R,e)}Ul!==null&&Ls(Ul,e),Bl!==null&&Ls(Bl,e),Hl!==null&&Ls(Hl,e),Fa.forEach(n),Ya.forEach(n);for(var i=0;i<ql.length;i++){var u=ql[i];u.blockedOn===e&&(u.blockedOn=null)}for(;0<ql.length&&(i=ql[0],i.blockedOn===null);)ny(i),i.blockedOn===null&&ql.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(u=0;u<i.length;u+=3){var f=i[u],h=i[u+1],b=f[Bt]||null;if(typeof h=="function")b||iy(i);else if(b){var S=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[Bt]||null)S=b.formAction;else if(Af(f)!==null)continue}else S=b.action;typeof S=="function"?i[u+1]=S:(i.splice(u,3),u-=3),iy(i)}}}function ry(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),u||setTimeout(i,20)}function i(){if(!u&&!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 u=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Rf(e){this._internalRoot=e}Bs.prototype.render=Rf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,u=nn();Jg(i,u,e,n,null,null)},Bs.prototype.unmount=Rf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Jg(e.current,2,null,e,null,null),bs(),n[Gi]=null}};function Bs(e){this._internalRoot=e}Bs.prototype.unstable_scheduleHydration=function(e){if(e){var n=pd();e={blockedOn:null,target:e,priority:n};for(var i=0;i<ql.length&&n!==0&&n<ql[i].priority;i++);ql.splice(i,0,e),i===0&&ny(e)}};var ay=l.version;if(ay!=="19.2.4")throw Error(a(527,ay,"19.2.4"));W.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=m(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Z1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{Dt=Hs.inject(Z1),pt=Hs}catch{}}return Xa.createRoot=function(e,n){if(!s(e))throw Error(a(299));var i=!1,u="",f=dp,h=mp,b=pp;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=Zg(e,1,!1,null,null,i,u,null,f,h,b,ry),e[Gi]=n.current,cf(e),new Rf(n)},Xa.hydrateRoot=function(e,n,i){if(!s(e))throw Error(a(299));var u=!1,f="",h=dp,b=mp,S=pp,R=null;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError),i.formState!==void 0&&(R=i.formState)),n=Zg(e,1,!0,n,i??null,u,f,R,h,b,S,ry),n.context=Ig(null),i=n.current,u=nn(),u=bo(u),f=kl(u),f.callback=null,Tl(i,f,u),i=u,n.current.lanes=i,ta(n,i),Nn(n),e[Gi]=n.current,cf(e),new Bs(n)},Xa.version="19.2.4",Xa}var yy;function iS(){if(yy)return Nf.exports;yy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Nf.exports=lS(),Nf.exports}var rS=iS(),Xr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},aS={setTimeout:(t,l)=>setTimeout(t,l),clearTimeout:t=>clearTimeout(t),setInterval:(t,l)=>setInterval(t,l),clearInterval:t=>clearInterval(t)},Kl,Dh,zb,uS=(zb=class{constructor(){he(this,Kl,aS);he(this,Dh,!1)}setTimeoutProvider(t){ue(this,Kl,t)}setTimeout(t,l){return O(this,Kl).setTimeout(t,l)}clearTimeout(t){O(this,Kl).clearTimeout(t)}setInterval(t,l){return O(this,Kl).setInterval(t,l)}clearInterval(t){O(this,Kl).clearInterval(t)}},Kl=new WeakMap,Dh=new WeakMap,zb),Ci=new uS;function sS(t){setTimeout(t,0)}var ji=typeof window>"u"||"Deno"in globalThis;function jt(){}function oS(t,l){return typeof t=="function"?t(l):t}function ih(t){return typeof t=="number"&&t>=0&&t!==1/0}function qb(t,l){return Math.max(t+(l||0)-Date.now(),0)}function ni(t,l){return typeof t=="function"?t(l):t}function vn(t,l){return typeof t=="function"?t(l):t}function by(t,l){const{type:r="all",exact:a,fetchStatus:s,predicate:o,queryKey:c,stale:d}=t;if(c){if(a){if(l.queryHash!==_h(c,l.options))return!1}else if(!iu(l.queryKey,c))return!1}if(r!=="all"){const p=l.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof d=="boolean"&&l.isStale()!==d||s&&s!==l.state.fetchStatus||o&&!o(l))}function vy(t,l){const{exact:r,status:a,predicate:s,mutationKey:o}=t;if(o){if(!l.options.mutationKey)return!1;if(r){if(Li(l.options.mutationKey)!==Li(o))return!1}else if(!iu(l.options.mutationKey,o))return!1}return!(a&&l.state.status!==a||s&&!s(l))}function _h(t,l){return((l==null?void 0:l.queryKeyHashFn)||Li)(t)}function Li(t){return JSON.stringify(t,(l,r)=>rh(r)?Object.keys(r).sort().reduce((a,s)=>(a[s]=r[s],a),{}):r)}function iu(t,l){return t===l?!0:typeof t!=typeof l?!1:t&&l&&typeof t=="object"&&typeof l=="object"?Object.keys(l).every(r=>iu(t[r],l[r])):!1}var cS=Object.prototype.hasOwnProperty;function Qb(t,l,r=0){if(t===l)return t;if(r>500)return l;const a=xy(t)&&xy(l);if(!a&&!(rh(t)&&rh(l)))return l;const o=(a?t:Object.keys(t)).length,c=a?l:Object.keys(l),d=c.length,p=a?new Array(d):{};let m=0;for(let y=0;y<d;y++){const g=a?y:c[y],x=t[g],v=l[g];if(x===v){p[g]=x,(a?y<o:cS.call(t,g))&&m++;continue}if(x===null||v===null||typeof x!="object"||typeof v!="object"){p[g]=v;continue}const C=Qb(x,v,r+1);p[g]=C,C===x&&m++}return o===d&&m===o?t:p}function $s(t,l){if(!l||Object.keys(t).length!==Object.keys(l).length)return!1;for(const r in t)if(t[r]!==l[r])return!1;return!0}function xy(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function rh(t){if(!Sy(t))return!1;const l=t.constructor;if(l===void 0)return!0;const r=l.prototype;return!(!Sy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Sy(t){return Object.prototype.toString.call(t)==="[object Object]"}function fS(t){return new Promise(l=>{Ci.setTimeout(l,t)})}function ah(t,l,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,l):r.structuralSharing!==!1?Qb(t,l):l}function hS(t,l,r=0){const a=[...t,l];return r&&a.length>r?a.slice(1):a}function dS(t,l,r=0){const a=[l,...t];return r&&a.length>r?a.slice(0,-1):a}var jh=Symbol();function Fb(t,l){return!t.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!t.queryFn||t.queryFn===jh?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Lh(t,l){return typeof t=="function"?t(...l):!!t}function mS(t,l,r){let a=!1,s;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(s??(s=l()),a||(a=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),t}var ki,Zl,Nr,Rb,pS=(Rb=class extends Xr{constructor(){super();he(this,ki);he(this,Zl);he(this,Nr);ue(this,Nr,l=>{if(!ji&&window.addEventListener){const r=()=>l();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){O(this,Zl)||this.setEventListener(O(this,Nr))}onUnsubscribe(){var l;this.hasListeners()||((l=O(this,Zl))==null||l.call(this),ue(this,Zl,void 0))}setEventListener(l){var r;ue(this,Nr,l),(r=O(this,Zl))==null||r.call(this),ue(this,Zl,l(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(l){O(this,ki)!==l&&(ue(this,ki,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(r=>{r(l)})}isFocused(){var l;return typeof O(this,ki)=="boolean"?O(this,ki):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},ki=new WeakMap,Zl=new WeakMap,Nr=new WeakMap,Rb),Uh=new pS;function uh(){let t,l;const r=new Promise((s,o)=>{t=s,l=o});r.status="pending",r.catch(()=>{});function a(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{a({status:"fulfilled",value:s}),t(s)},r.reject=s=>{a({status:"rejected",reason:s}),l(s)},r}var gS=sS;function yS(){let t=[],l=0,r=d=>{d()},a=d=>{d()},s=gS;const o=d=>{l?t.push(d):s(()=>{r(d)})},c=()=>{const d=t;t=[],d.length&&s(()=>{a(()=>{d.forEach(p=>{r(p)})})})};return{batch:d=>{let p;l++;try{p=d()}finally{l--,l||c()}return p},batchCalls:d=>(...p)=>{o(()=>{d(...p)})},schedule:o,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{a=d},setScheduler:d=>{s=d}}}var yt=yS(),_r,Il,jr,Ob,bS=(Ob=class extends Xr{constructor(){super();he(this,_r,!0);he(this,Il);he(this,jr);ue(this,jr,l=>{if(!ji&&window.addEventListener){const r=()=>l(!0),a=()=>l(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",a)}}})}onSubscribe(){O(this,Il)||this.setEventListener(O(this,jr))}onUnsubscribe(){var l;this.hasListeners()||((l=O(this,Il))==null||l.call(this),ue(this,Il,void 0))}setEventListener(l){var r;ue(this,jr,l),(r=O(this,Il))==null||r.call(this),ue(this,Il,l(this.setOnline.bind(this)))}setOnline(l){O(this,_r)!==l&&(ue(this,_r,l),this.listeners.forEach(a=>{a(l)}))}isOnline(){return O(this,_r)}},_r=new WeakMap,Il=new WeakMap,jr=new WeakMap,Ob),Ws=new bS;function vS(t){return Math.min(1e3*2**t,3e4)}function Yb(t){return(t??"online")==="online"?Ws.isOnline():!0}var sh=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Gb(t){let l=!1,r=0,a;const s=uh(),o=()=>s.status!=="pending",c=z=>{var T;if(!o()){const k=new sh(z);x(k),(T=t.onCancel)==null||T.call(t,k)}},d=()=>{l=!0},p=()=>{l=!1},m=()=>Uh.isFocused()&&(t.networkMode==="always"||Ws.isOnline())&&t.canRun(),y=()=>Yb(t.networkMode)&&t.canRun(),g=z=>{o()||(a==null||a(),s.resolve(z))},x=z=>{o()||(a==null||a(),s.reject(z))},v=()=>new Promise(z=>{var T;a=k=>{(o()||m())&&z(k)},(T=t.onPause)==null||T.call(t)}).then(()=>{var z;a=void 0,o()||(z=t.onContinue)==null||z.call(t)}),C=()=>{if(o())return;let z;const T=r===0?t.initialPromise:void 0;try{z=T??t.fn()}catch(k){z=Promise.reject(k)}Promise.resolve(z).then(g).catch(k=>{var B;if(o())return;const U=t.retry??(ji?0:3),D=t.retryDelay??vS,Y=typeof D=="function"?D(r,k):D,P=U===!0||typeof U=="number"&&r<U||typeof U=="function"&&U(r,k);if(l||!P){x(k);return}r++,(B=t.onFail)==null||B.call(t,r,k),fS(Y).then(()=>m()?void 0:v()).then(()=>{l?x(k):C()})})};return{promise:s,status:()=>s.status,cancel:c,continue:()=>(a==null||a(),s),cancelRetry:d,continueRetry:p,canStart:y,start:()=>(y()?C():v().then(C),s)}}var Ti,Mb,Vb=(Mb=class{constructor(){he(this,Ti)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ih(this.gcTime)&&ue(this,Ti,Ci.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ji?1/0:300*1e3))}clearGcTimeout(){O(this,Ti)&&(Ci.clearTimeout(O(this,Ti)),ue(this,Ti,void 0))}},Ti=new WeakMap,Mb),Ai,Lr,bn,zi,xt,su,Ri,Tn,sl,Db,xS=(Db=class extends Vb{constructor(l){super();he(this,Tn);he(this,Ai);he(this,Lr);he(this,bn);he(this,zi);he(this,xt);he(this,su);he(this,Ri);ue(this,Ri,!1),ue(this,su,l.defaultOptions),this.setOptions(l.options),this.observers=[],ue(this,zi,l.client),ue(this,bn,O(this,zi).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,ue(this,Ai,Ey(this.options)),this.state=l.state??O(this,Ai),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var l;return(l=O(this,xt))==null?void 0:l.promise}setOptions(l){if(this.options={...O(this,su),...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Ey(this.options);r.data!==void 0&&(this.setState(wy(r.data,r.dataUpdatedAt)),ue(this,Ai,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,bn).remove(this)}setData(l,r){const a=ah(this.state.data,l,this.options);return Te(this,Tn,sl).call(this,{data:a,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),a}setState(l,r){Te(this,Tn,sl).call(this,{type:"setState",state:l,setStateOptions:r})}cancel(l){var a,s;const r=(a=O(this,xt))==null?void 0:a.promise;return(s=O(this,xt))==null||s.cancel(l),r?r.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,Ai))}isActive(){return this.observers.some(l=>vn(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>ni(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!qb(this.state.dataUpdatedAt,l)}onFocus(){var r;const l=this.observers.find(a=>a.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(r=O(this,xt))==null||r.continue()}onOnline(){var r;const l=this.observers.find(a=>a.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(r=O(this,xt))==null||r.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),O(this,bn).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(r=>r!==l),this.observers.length||(O(this,xt)&&(O(this,Ri)?O(this,xt).cancel({revert:!0}):O(this,xt).cancelRetry()),this.scheduleGc()),O(this,bn).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,Tn,sl).call(this,{type:"invalidate"})}async fetch(l,r){var p,m,y,g,x,v,C,z,T,k,U,D;if(this.state.fetchStatus!=="idle"&&((p=O(this,xt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(O(this,xt))return O(this,xt).continueRetry(),O(this,xt).promise}if(l&&this.setOptions(l),!this.options.queryFn){const Y=this.observers.find(P=>P.options.queryFn);Y&&this.setOptions(Y.options)}const a=new AbortController,s=Y=>{Object.defineProperty(Y,"signal",{enumerable:!0,get:()=>(ue(this,Ri,!0),a.signal)})},o=()=>{const Y=Fb(this.options,r),B=(()=>{const ee={client:O(this,zi),queryKey:this.queryKey,meta:this.meta};return s(ee),ee})();return ue(this,Ri,!1),this.options.persister?this.options.persister(Y,B,this):Y(B)},d=(()=>{const Y={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:O(this,zi),state:this.state,fetchFn:o};return s(Y),Y})();(m=this.options.behavior)==null||m.onFetch(d,this),ue(this,Lr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=d.fetchOptions)==null?void 0:y.meta))&&Te(this,Tn,sl).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta}),ue(this,xt,Gb({initialPromise:r==null?void 0:r.initialPromise,fn:d.fetchFn,onCancel:Y=>{Y instanceof sh&&Y.revert&&this.setState({...O(this,Lr),fetchStatus:"idle"}),a.abort()},onFail:(Y,P)=>{Te(this,Tn,sl).call(this,{type:"failed",failureCount:Y,error:P})},onPause:()=>{Te(this,Tn,sl).call(this,{type:"pause"})},onContinue:()=>{Te(this,Tn,sl).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const Y=await O(this,xt).start();if(Y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Y),(v=(x=O(this,bn).config).onSuccess)==null||v.call(x,Y,this),(z=(C=O(this,bn).config).onSettled)==null||z.call(C,Y,this.state.error,this),Y}catch(Y){if(Y instanceof sh){if(Y.silent)return O(this,xt).promise;if(Y.revert){if(this.state.data===void 0)throw Y;return this.state.data}}throw Te(this,Tn,sl).call(this,{type:"error",error:Y}),(k=(T=O(this,bn).config).onError)==null||k.call(T,Y,this),(D=(U=O(this,bn).config).onSettled)==null||D.call(U,this.state.data,Y,this),Y}finally{this.scheduleGc()}}},Ai=new WeakMap,Lr=new WeakMap,bn=new WeakMap,zi=new WeakMap,xt=new WeakMap,su=new WeakMap,Ri=new WeakMap,Tn=new WeakSet,sl=function(l){const r=a=>{switch(l.type){case"failed":return{...a,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...Xb(a.data,this.options),fetchMeta:l.meta??null};case"success":const s={...a,...wy(l.data,l.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ue(this,Lr,l.manual?s:void 0),s;case"error":const o=l.error;return{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...l.state}}};this.state=r(this.state),yt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),O(this,bn).notify({query:this,type:"updated",action:l})})},Db);function Xb(t,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Yb(l.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function wy(t,l){return{data:t,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ey(t){const l=typeof t.initialData=="function"?t.initialData():t.initialData,r=l!==void 0,a=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Xt,je,ou,_t,Oi,Ur,ol,Jl,cu,Br,Hr,Mi,Di,Pl,qr,Qe,eu,oh,ch,fh,hh,dh,mh,ph,Kb,Nb,SS=(Nb=class extends Xr{constructor(l,r){super();he(this,Qe);he(this,Xt);he(this,je);he(this,ou);he(this,_t);he(this,Oi);he(this,Ur);he(this,ol);he(this,Jl);he(this,cu);he(this,Br);he(this,Hr);he(this,Mi);he(this,Di);he(this,Pl);he(this,qr,new Set);this.options=r,ue(this,Xt,l),ue(this,Jl,null),ue(this,ol,uh()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,je).addObserver(this),Cy(O(this,je),this.options)?Te(this,Qe,eu).call(this):this.updateResult(),Te(this,Qe,hh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gh(O(this,je),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gh(O(this,je),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Qe,dh).call(this),Te(this,Qe,mh).call(this),O(this,je).removeObserver(this)}setOptions(l){const r=this.options,a=O(this,je);if(this.options=O(this,Xt).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vn(this.options.enabled,O(this,je))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,Qe,ph).call(this),O(this,je).setOptions(this.options),r._defaulted&&!$s(this.options,r)&&O(this,Xt).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,je),observer:this});const s=this.hasListeners();s&&ky(O(this,je),a,this.options,r)&&Te(this,Qe,eu).call(this),this.updateResult(),s&&(O(this,je)!==a||vn(this.options.enabled,O(this,je))!==vn(r.enabled,O(this,je))||ni(this.options.staleTime,O(this,je))!==ni(r.staleTime,O(this,je)))&&Te(this,Qe,oh).call(this);const o=Te(this,Qe,ch).call(this);s&&(O(this,je)!==a||vn(this.options.enabled,O(this,je))!==vn(r.enabled,O(this,je))||o!==O(this,Pl))&&Te(this,Qe,fh).call(this,o)}getOptimisticResult(l){const r=O(this,Xt).getQueryCache().build(O(this,Xt),l),a=this.createResult(r,l);return ES(this,a)&&(ue(this,_t,a),ue(this,Ur,this.options),ue(this,Oi,O(this,je).state)),a}getCurrentResult(){return O(this,_t)}trackResult(l,r){return new Proxy(l,{get:(a,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&O(this,ol).status==="pending"&&O(this,ol).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,s))})}trackProp(l){O(this,qr).add(l)}getCurrentQuery(){return O(this,je)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const r=O(this,Xt).defaultQueryOptions(l),a=O(this,Xt).getQueryCache().build(O(this,Xt),r);return a.fetch().then(()=>this.createResult(a,r))}fetch(l){return Te(this,Qe,eu).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,_t)))}createResult(l,r){var le;const a=O(this,je),s=this.options,o=O(this,_t),c=O(this,Oi),d=O(this,Ur),m=l!==a?l.state:O(this,ou),{state:y}=l;let g={...y},x=!1,v;if(r._optimisticResults){const j=this.hasListeners(),ie=!j&&Cy(l,r),$=j&&ky(l,a,r,s);(ie||$)&&(g={...g,...Xb(y.data,l.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:C,errorUpdatedAt:z,status:T}=g;v=g.data;let k=!1;if(r.placeholderData!==void 0&&v===void 0&&T==="pending"){let j;o!=null&&o.isPlaceholderData&&r.placeholderData===(d==null?void 0:d.placeholderData)?(j=o.data,k=!0):j=typeof r.placeholderData=="function"?r.placeholderData((le=O(this,Hr))==null?void 0:le.state.data,O(this,Hr)):r.placeholderData,j!==void 0&&(T="success",v=ah(o==null?void 0:o.data,j,r),x=!0)}if(r.select&&v!==void 0&&!k)if(o&&v===(c==null?void 0:c.data)&&r.select===O(this,cu))v=O(this,Br);else try{ue(this,cu,r.select),v=r.select(v),v=ah(o==null?void 0:o.data,v,r),ue(this,Br,v),ue(this,Jl,null)}catch(j){ue(this,Jl,j)}O(this,Jl)&&(C=O(this,Jl),v=O(this,Br),z=Date.now(),T="error");const U=g.fetchStatus==="fetching",D=T==="pending",Y=T==="error",P=D&&U,B=v!==void 0,V={status:T,fetchStatus:g.fetchStatus,isPending:D,isSuccess:T==="success",isError:Y,isInitialLoading:P,isLoading:P,data:v,dataUpdatedAt:g.dataUpdatedAt,error:C,errorUpdatedAt:z,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>m.dataUpdateCount||g.errorUpdateCount>m.errorUpdateCount,isFetching:U,isRefetching:U&&!D,isLoadingError:Y&&!B,isPaused:g.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:Y&&B,isStale:Bh(l,r),refetch:this.refetch,promise:O(this,ol),isEnabled:vn(r.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const j=V.data!==void 0,ie=V.status==="error"&&!j,$=ne=>{ie?ne.reject(V.error):j&&ne.resolve(V.data)},Se=()=>{const ne=ue(this,ol,V.promise=uh());$(ne)},se=O(this,ol);switch(se.status){case"pending":l.queryHash===a.queryHash&&$(se);break;case"fulfilled":(ie||V.data!==se.value)&&Se();break;case"rejected":(!ie||V.error!==se.reason)&&Se();break}}return V}updateResult(){const l=O(this,_t),r=this.createResult(O(this,je),this.options);if(ue(this,Oi,O(this,je).state),ue(this,Ur,this.options),O(this,Oi).data!==void 0&&ue(this,Hr,O(this,je)),$s(r,l))return;ue(this,_t,r);const a=()=>{if(!l)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!O(this,qr).size)return!0;const c=new Set(o??O(this,qr));return this.options.throwOnError&&c.add("error"),Object.keys(O(this,_t)).some(d=>{const p=d;return O(this,_t)[p]!==l[p]&&c.has(p)})};Te(this,Qe,Kb).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Qe,hh).call(this)}},Xt=new WeakMap,je=new WeakMap,ou=new WeakMap,_t=new WeakMap,Oi=new WeakMap,Ur=new WeakMap,ol=new WeakMap,Jl=new WeakMap,cu=new WeakMap,Br=new WeakMap,Hr=new WeakMap,Mi=new WeakMap,Di=new WeakMap,Pl=new WeakMap,qr=new WeakMap,Qe=new WeakSet,eu=function(l){Te(this,Qe,ph).call(this);let r=O(this,je).fetch(this.options,l);return l!=null&&l.throwOnError||(r=r.catch(jt)),r},oh=function(){Te(this,Qe,dh).call(this);const l=ni(this.options.staleTime,O(this,je));if(ji||O(this,_t).isStale||!ih(l))return;const a=qb(O(this,_t).dataUpdatedAt,l)+1;ue(this,Mi,Ci.setTimeout(()=>{O(this,_t).isStale||this.updateResult()},a))},ch=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,je)):this.options.refetchInterval)??!1},fh=function(l){Te(this,Qe,mh).call(this),ue(this,Pl,l),!(ji||vn(this.options.enabled,O(this,je))===!1||!ih(O(this,Pl))||O(this,Pl)===0)&&ue(this,Di,Ci.setInterval(()=>{(this.options.refetchIntervalInBackground||Uh.isFocused())&&Te(this,Qe,eu).call(this)},O(this,Pl)))},hh=function(){Te(this,Qe,oh).call(this),Te(this,Qe,fh).call(this,Te(this,Qe,ch).call(this))},dh=function(){O(this,Mi)&&(Ci.clearTimeout(O(this,Mi)),ue(this,Mi,void 0))},mh=function(){O(this,Di)&&(Ci.clearInterval(O(this,Di)),ue(this,Di,void 0))},ph=function(){const l=O(this,Xt).getQueryCache().build(O(this,Xt),this.options);if(l===O(this,je))return;const r=O(this,je);ue(this,je,l),ue(this,ou,l.state),this.hasListeners()&&(r==null||r.removeObserver(this),l.addObserver(this))},Kb=function(l){yt.batch(()=>{l.listeners&&this.listeners.forEach(r=>{r(O(this,_t))}),O(this,Xt).getQueryCache().notify({query:O(this,je),type:"observerResultsUpdated"})})},Nb);function wS(t,l){return vn(l.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&l.retryOnMount===!1)}function Cy(t,l){return wS(t,l)||t.state.data!==void 0&&gh(t,l,l.refetchOnMount)}function gh(t,l,r){if(vn(l.enabled,t)!==!1&&ni(l.staleTime,t)!=="static"){const a=typeof r=="function"?r(t):r;return a==="always"||a!==!1&&Bh(t,l)}return!1}function ky(t,l,r,a){return(t!==l||vn(a.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&Bh(t,r)}function Bh(t,l){return vn(l.enabled,t)!==!1&&t.isStaleByTime(ni(l.staleTime,t))}function ES(t,l){return!$s(t.getCurrentResult(),l)}function Ty(t){return{onFetch:(l,r)=>{var y,g,x,v,C;const a=l.options,s=(x=(g=(y=l.fetchOptions)==null?void 0:y.meta)==null?void 0:g.fetchMore)==null?void 0:x.direction,o=((v=l.state.data)==null?void 0:v.pages)||[],c=((C=l.state.data)==null?void 0:C.pageParams)||[];let d={pages:[],pageParams:[]},p=0;const m=async()=>{let z=!1;const T=D=>{mS(D,()=>l.signal,()=>z=!0)},k=Fb(l.options,l.fetchOptions),U=async(D,Y,P)=>{if(z)return Promise.reject();if(Y==null&&D.pages.length)return Promise.resolve(D);const ee=(()=>{const ie={client:l.client,queryKey:l.queryKey,pageParam:Y,direction:P?"backward":"forward",meta:l.options.meta};return T(ie),ie})(),V=await k(ee),{maxPages:le}=l.options,j=P?dS:hS;return{pages:j(D.pages,V,le),pageParams:j(D.pageParams,Y,le)}};if(s&&o.length){const D=s==="backward",Y=D?CS:Ay,P={pages:o,pageParams:c},B=Y(a,P);d=await U(P,B,D)}else{const D=t??o.length;do{const Y=p===0?c[0]??a.initialPageParam:Ay(a,d);if(p>0&&Y==null)break;d=await U(d,Y),p++}while(p<D)}return d};l.options.persister?l.fetchFn=()=>{var z,T;return(T=(z=l.options).persister)==null?void 0:T.call(z,m,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},r)}:l.fetchFn=m}}}function Ay(t,{pages:l,pageParams:r}){const a=l.length-1;return l.length>0?t.getNextPageParam(l[a],l,r[a],r):void 0}function CS(t,{pages:l,pageParams:r}){var a;return l.length>0?(a=t.getPreviousPageParam)==null?void 0:a.call(t,l[0],l,r[0],r):void 0}var fu,jn,zt,Ni,Ln,Vl,_b,kS=(_b=class extends Vb{constructor(l){super();he(this,Ln);he(this,fu);he(this,jn);he(this,zt);he(this,Ni);ue(this,fu,l.client),this.mutationId=l.mutationId,ue(this,zt,l.mutationCache),ue(this,jn,[]),this.state=l.state||Zb(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){O(this,jn).includes(l)||(O(this,jn).push(l),this.clearGcTimeout(),O(this,zt).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){ue(this,jn,O(this,jn).filter(r=>r!==l)),this.scheduleGc(),O(this,zt).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){O(this,jn).length||(this.state.status==="pending"?this.scheduleGc():O(this,zt).remove(this))}continue(){var l;return((l=O(this,Ni))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var c,d,p,m,y,g,x,v,C,z,T,k,U,D,Y,P,B,ee;const r=()=>{Te(this,Ln,Vl).call(this,{type:"continue"})},a={client:O(this,fu),meta:this.options.meta,mutationKey:this.options.mutationKey};ue(this,Ni,Gb({fn:()=>this.options.mutationFn?this.options.mutationFn(l,a):Promise.reject(new Error("No mutationFn found")),onFail:(V,le)=>{Te(this,Ln,Vl).call(this,{type:"failed",failureCount:V,error:le})},onPause:()=>{Te(this,Ln,Vl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,zt).canRun(this)}));const s=this.state.status==="pending",o=!O(this,Ni).canStart();try{if(s)r();else{Te(this,Ln,Vl).call(this,{type:"pending",variables:l,isPaused:o}),O(this,zt).config.onMutate&&await O(this,zt).config.onMutate(l,this,a);const le=await((d=(c=this.options).onMutate)==null?void 0:d.call(c,l,a));le!==this.state.context&&Te(this,Ln,Vl).call(this,{type:"pending",context:le,variables:l,isPaused:o})}const V=await O(this,Ni).start();return await((m=(p=O(this,zt).config).onSuccess)==null?void 0:m.call(p,V,l,this.state.context,this,a)),await((g=(y=this.options).onSuccess)==null?void 0:g.call(y,V,l,this.state.context,a)),await((v=(x=O(this,zt).config).onSettled)==null?void 0:v.call(x,V,null,this.state.variables,this.state.context,this,a)),await((z=(C=this.options).onSettled)==null?void 0:z.call(C,V,null,l,this.state.context,a)),Te(this,Ln,Vl).call(this,{type:"success",data:V}),V}catch(V){try{await((k=(T=O(this,zt).config).onError)==null?void 0:k.call(T,V,l,this.state.context,this,a))}catch(le){Promise.reject(le)}try{await((D=(U=this.options).onError)==null?void 0:D.call(U,V,l,this.state.context,a))}catch(le){Promise.reject(le)}try{await((P=(Y=O(this,zt).config).onSettled)==null?void 0:P.call(Y,void 0,V,this.state.variables,this.state.context,this,a))}catch(le){Promise.reject(le)}try{await((ee=(B=this.options).onSettled)==null?void 0:ee.call(B,void 0,V,l,this.state.context,a))}catch(le){Promise.reject(le)}throw Te(this,Ln,Vl).call(this,{type:"error",error:V}),V}finally{O(this,zt).runNext(this)}}},fu=new WeakMap,jn=new WeakMap,zt=new WeakMap,Ni=new WeakMap,Ln=new WeakSet,Vl=function(l){const r=a=>{switch(l.type){case"failed":return{...a,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...a,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:l.error,failureCount:a.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=r(this.state),yt.batch(()=>{O(this,jn).forEach(a=>{a.onMutationUpdate(l)}),O(this,zt).notify({mutation:this,type:"updated",action:l})})},_b);function Zb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var cl,An,hu,jb,TS=(jb=class extends Xr{constructor(l={}){super();he(this,cl);he(this,An);he(this,hu);this.config=l,ue(this,cl,new Set),ue(this,An,new Map),ue(this,hu,0)}build(l,r,a){const s=new kS({client:l,mutationCache:this,mutationId:++qs(this,hu)._,options:l.defaultMutationOptions(r),state:a});return this.add(s),s}add(l){O(this,cl).add(l);const r=Qs(l);if(typeof r=="string"){const a=O(this,An).get(r);a?a.push(l):O(this,An).set(r,[l])}this.notify({type:"added",mutation:l})}remove(l){if(O(this,cl).delete(l)){const r=Qs(l);if(typeof r=="string"){const a=O(this,An).get(r);if(a)if(a.length>1){const s=a.indexOf(l);s!==-1&&a.splice(s,1)}else a[0]===l&&O(this,An).delete(r)}}this.notify({type:"removed",mutation:l})}canRun(l){const r=Qs(l);if(typeof r=="string"){const a=O(this,An).get(r),s=a==null?void 0:a.find(o=>o.state.status==="pending");return!s||s===l}else return!0}runNext(l){var a;const r=Qs(l);if(typeof r=="string"){const s=(a=O(this,An).get(r))==null?void 0:a.find(o=>o!==l&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yt.batch(()=>{O(this,cl).forEach(l=>{this.notify({type:"removed",mutation:l})}),O(this,cl).clear(),O(this,An).clear()})}getAll(){return Array.from(O(this,cl))}find(l){const r={exact:!0,...l};return this.getAll().find(a=>vy(r,a))}findAll(l={}){return this.getAll().filter(r=>vy(l,r))}notify(l){yt.batch(()=>{this.listeners.forEach(r=>{r(l)})})}resumePausedMutations(){const l=this.getAll().filter(r=>r.state.isPaused);return yt.batch(()=>Promise.all(l.map(r=>r.continue().catch(jt))))}},cl=new WeakMap,An=new WeakMap,hu=new WeakMap,jb);function Qs(t){var l;return(l=t.options.scope)==null?void 0:l.id}var fl,$l,Kt,hl,ml,Zs,yh,Lb,AS=(Lb=class extends Xr{constructor(r,a){super();he(this,ml);he(this,fl);he(this,$l);he(this,Kt);he(this,hl);ue(this,fl,r),this.setOptions(a),this.bindMethods(),Te(this,ml,Zs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const a=this.options;this.options=O(this,fl).defaultMutationOptions(r),$s(this.options,a)||O(this,fl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,Kt),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&Li(a.mutationKey)!==Li(this.options.mutationKey)?this.reset():((s=O(this,Kt))==null?void 0:s.state.status)==="pending"&&O(this,Kt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=O(this,Kt))==null||r.removeObserver(this)}onMutationUpdate(r){Te(this,ml,Zs).call(this),Te(this,ml,yh).call(this,r)}getCurrentResult(){return O(this,$l)}reset(){var r;(r=O(this,Kt))==null||r.removeObserver(this),ue(this,Kt,void 0),Te(this,ml,Zs).call(this),Te(this,ml,yh).call(this)}mutate(r,a){var s;return ue(this,hl,a),(s=O(this,Kt))==null||s.removeObserver(this),ue(this,Kt,O(this,fl).getMutationCache().build(O(this,fl),this.options)),O(this,Kt).addObserver(this),O(this,Kt).execute(r)}},fl=new WeakMap,$l=new WeakMap,Kt=new WeakMap,hl=new WeakMap,ml=new WeakSet,Zs=function(){var a;const r=((a=O(this,Kt))==null?void 0:a.state)??Zb();ue(this,$l,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},yh=function(r){yt.batch(()=>{var a,s,o,c,d,p,m,y;if(O(this,hl)&&this.hasListeners()){const g=O(this,$l).variables,x=O(this,$l).context,v={client:O(this,fl),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(s=(a=O(this,hl)).onSuccess)==null||s.call(a,r.data,g,x,v)}catch(C){Promise.reject(C)}try{(c=(o=O(this,hl)).onSettled)==null||c.call(o,r.data,null,g,x,v)}catch(C){Promise.reject(C)}}else if((r==null?void 0:r.type)==="error"){try{(p=(d=O(this,hl)).onError)==null||p.call(d,r.error,g,x,v)}catch(C){Promise.reject(C)}try{(y=(m=O(this,hl)).onSettled)==null||y.call(m,void 0,r.error,g,x,v)}catch(C){Promise.reject(C)}}}this.listeners.forEach(g=>{g(O(this,$l))})})},Lb),Un,Ub,zS=(Ub=class extends Xr{constructor(l={}){super();he(this,Un);this.config=l,ue(this,Un,new Map)}build(l,r,a){const s=r.queryKey,o=r.queryHash??_h(s,r);let c=this.get(o);return c||(c=new xS({client:l,queryKey:s,queryHash:o,options:l.defaultQueryOptions(r),state:a,defaultOptions:l.getQueryDefaults(s)}),this.add(c)),c}add(l){O(this,Un).has(l.queryHash)||(O(this,Un).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const r=O(this,Un).get(l.queryHash);r&&(l.destroy(),r===l&&O(this,Un).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){yt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return O(this,Un).get(l)}getAll(){return[...O(this,Un).values()]}find(l){const r={exact:!0,...l};return this.getAll().find(a=>by(r,a))}findAll(l={}){const r=this.getAll();return Object.keys(l).length>0?r.filter(a=>by(l,a)):r}notify(l){yt.batch(()=>{this.listeners.forEach(r=>{r(l)})})}onFocus(){yt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){yt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},Un=new WeakMap,Ub),ut,Wl,ei,Qr,Fr,ti,Yr,Gr,Bb,RS=(Bb=class{constructor(t={}){he(this,ut);he(this,Wl);he(this,ei);he(this,Qr);he(this,Fr);he(this,ti);he(this,Yr);he(this,Gr);ue(this,ut,t.queryCache||new zS),ue(this,Wl,t.mutationCache||new TS),ue(this,ei,t.defaultOptions||{}),ue(this,Qr,new Map),ue(this,Fr,new Map),ue(this,ti,0)}mount(){qs(this,ti)._++,O(this,ti)===1&&(ue(this,Yr,Uh.subscribe(async t=>{t&&(await this.resumePausedMutations(),O(this,ut).onFocus())})),ue(this,Gr,Ws.subscribe(async t=>{t&&(await this.resumePausedMutations(),O(this,ut).onOnline())})))}unmount(){var t,l;qs(this,ti)._--,O(this,ti)===0&&((t=O(this,Yr))==null||t.call(this),ue(this,Yr,void 0),(l=O(this,Gr))==null||l.call(this),ue(this,Gr,void 0))}isFetching(t){return O(this,ut).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return O(this,Wl).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const l=this.defaultQueryOptions({queryKey:t});return(r=O(this,ut).get(l.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const l=this.defaultQueryOptions(t),r=O(this,ut).build(this,l),a=r.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(ni(l.staleTime,r))&&this.prefetchQuery(l),Promise.resolve(a))}getQueriesData(t){return O(this,ut).findAll(t).map(({queryKey:l,state:r})=>{const a=r.data;return[l,a]})}setQueryData(t,l,r){const a=this.defaultQueryOptions({queryKey:t}),s=O(this,ut).get(a.queryHash),o=s==null?void 0:s.state.data,c=oS(l,o);if(c!==void 0)return O(this,ut).build(this,a).setData(c,{...r,manual:!0})}setQueriesData(t,l,r){return yt.batch(()=>O(this,ut).findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,l,r)]))}getQueryState(t){var r;const l=this.defaultQueryOptions({queryKey:t});return(r=O(this,ut).get(l.queryHash))==null?void 0:r.state}removeQueries(t){const l=O(this,ut);yt.batch(()=>{l.findAll(t).forEach(r=>{l.remove(r)})})}resetQueries(t,l){const r=O(this,ut);return yt.batch(()=>(r.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},l)))}cancelQueries(t,l={}){const r={revert:!0,...l},a=yt.batch(()=>O(this,ut).findAll(t).map(s=>s.cancel(r)));return Promise.all(a).then(jt).catch(jt)}invalidateQueries(t,l={}){return yt.batch(()=>(O(this,ut).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},l)))}refetchQueries(t,l={}){const r={...l,cancelRefetch:l.cancelRefetch??!0},a=yt.batch(()=>O(this,ut).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,r);return r.throwOnError||(o=o.catch(jt)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(a).then(jt)}fetchQuery(t){const l=this.defaultQueryOptions(t);l.retry===void 0&&(l.retry=!1);const r=O(this,ut).build(this,l);return r.isStaleByTime(ni(l.staleTime,r))?r.fetch(l):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(jt).catch(jt)}fetchInfiniteQuery(t){return t.behavior=Ty(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(jt).catch(jt)}ensureInfiniteQueryData(t){return t.behavior=Ty(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Ws.isOnline()?O(this,Wl).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,ut)}getMutationCache(){return O(this,Wl)}getDefaultOptions(){return O(this,ei)}setDefaultOptions(t){ue(this,ei,t)}setQueryDefaults(t,l){O(this,Qr).set(Li(t),{queryKey:t,defaultOptions:l})}getQueryDefaults(t){const l=[...O(this,Qr).values()],r={};return l.forEach(a=>{iu(t,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(t,l){O(this,Fr).set(Li(t),{mutationKey:t,defaultOptions:l})}getMutationDefaults(t){const l=[...O(this,Fr).values()],r={};return l.forEach(a=>{iu(t,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const l={...O(this,ei).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return l.queryHash||(l.queryHash=_h(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===jh&&(l.enabled=!1),l}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...O(this,ei).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){O(this,ut).clear(),O(this,Wl).clear()}},ut=new WeakMap,Wl=new WeakMap,ei=new WeakMap,Qr=new WeakMap,Fr=new WeakMap,ti=new WeakMap,Yr=new WeakMap,Gr=new WeakMap,Bb),Ib=L.createContext(void 0),du=t=>{const l=L.useContext(Ib);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},OS=({client:t,children:l})=>(L.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),E.jsx(Ib.Provider,{value:t,children:l})),Jb=L.createContext(!1),MS=()=>L.useContext(Jb);Jb.Provider;function DS(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var NS=L.createContext(DS()),_S=()=>L.useContext(NS),jS=(t,l,r)=>{const a=r!=null&&r.state.error&&typeof t.throwOnError=="function"?Lh(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||a)&&(l.isReset()||(t.retryOnMount=!1))},LS=t=>{L.useEffect(()=>{t.clearReset()},[t])},US=({result:t,errorResetBoundary:l,throwOnError:r,query:a,suspense:s})=>t.isError&&!l.isReset()&&!t.isFetching&&a&&(s&&t.data===void 0||Lh(r,[t.error,a])),BS=t=>{if(t.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),a=t.staleTime;t.staleTime=typeof a=="function"?(...s)=>r(a(...s)):r(a),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},HS=(t,l)=>t.isLoading&&t.isFetching&&!l,qS=(t,l)=>(t==null?void 0:t.suspense)&&l.isPending,zy=(t,l,r)=>l.fetchOptimistic(t).catch(()=>{r.clearReset()});function QS(t,l,r){var x,v,C,z;const a=MS(),s=_S(),o=du(),c=o.defaultQueryOptions(t);(v=(x=o.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||v.call(x,c);const d=o.getQueryCache().get(c.queryHash);c._optimisticResults=a?"isRestoring":"optimistic",BS(c),jS(c,s,d),LS(s);const p=!o.getQueryCache().get(c.queryHash),[m]=L.useState(()=>new l(o,c)),y=m.getOptimisticResult(c),g=!a&&t.subscribed!==!1;if(L.useSyncExternalStore(L.useCallback(T=>{const k=g?m.subscribe(yt.batchCalls(T)):jt;return m.updateResult(),k},[m,g]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),L.useEffect(()=>{m.setOptions(c)},[c,m]),qS(c,y))throw zy(c,m,s);if(US({result:y,errorResetBoundary:s,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw y.error;if((z=(C=o.getDefaultOptions().queries)==null?void 0:C._experimental_afterQuery)==null||z.call(C,c,y),c.experimental_prefetchInRender&&!ji&&HS(y,a)){const T=p?zy(c,m,s):d==null?void 0:d.promise;T==null||T.catch(jt).finally(()=>{m.updateResult()})}return c.notifyOnChangeProps?y:m.trackResult(y)}function li(t,l){return QS(t,SS)}function rn(t,l){const r=du(),[a]=L.useState(()=>new AS(r,t));L.useEffect(()=>{a.setOptions(t)},[a,t]);const s=L.useSyncExternalStore(L.useCallback(c=>a.subscribe(yt.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),o=L.useCallback((c,d)=>{a.mutate(c,d).catch(jt)},[a]);if(s.error&&Lh(a.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}/**
50
+ * react-router v7.13.0
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var Ry="popstate";function FS(t={}){function l(a,s){let{pathname:o,search:c,hash:d}=a.location;return bh("",{pathname:o,search:c,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(a,s){return typeof s=="string"?s:ru(s)}return GS(l,r,null,t)}function it(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function Bn(t,l){if(!t){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function YS(){return Math.random().toString(36).substring(2,10)}function Oy(t,l){return{usr:t.state,key:t.key,idx:l}}function bh(t,l,r=null,a){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof l=="string"?Kr(l):l,state:r,key:l&&l.key||a||YS()}}function ru({pathname:t="/",search:l="",hash:r=""}){return l&&l!=="?"&&(t+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Kr(t){let l={};if(t){let r=t.indexOf("#");r>=0&&(l.hash=t.substring(r),t=t.substring(0,r));let a=t.indexOf("?");a>=0&&(l.search=t.substring(a),t=t.substring(0,a)),t&&(l.pathname=t)}return l}function GS(t,l,r,a={}){let{window:s=document.defaultView,v5Compat:o=!1}=a,c=s.history,d="POP",p=null,m=y();m==null&&(m=0,c.replaceState({...c.state,idx:m},""));function y(){return(c.state||{idx:null}).idx}function g(){d="POP";let T=y(),k=T==null?null:T-m;m=T,p&&p({action:d,location:z.location,delta:k})}function x(T,k){d="PUSH";let U=bh(z.location,T,k);m=y()+1;let D=Oy(U,m),Y=z.createHref(U);try{c.pushState(D,"",Y)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;s.location.assign(Y)}o&&p&&p({action:d,location:z.location,delta:1})}function v(T,k){d="REPLACE";let U=bh(z.location,T,k);m=y();let D=Oy(U,m),Y=z.createHref(U);c.replaceState(D,"",Y),o&&p&&p({action:d,location:z.location,delta:0})}function C(T){return VS(T)}let z={get action(){return d},get location(){return t(s,c)},listen(T){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(Ry,g),p=T,()=>{s.removeEventListener(Ry,g),p=null}},createHref(T){return l(s,T)},createURL:C,encodeLocation(T){let k=C(T);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:x,replace:v,go(T){return c.go(T)}};return z}function VS(t,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),it(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:ru(t);return a=a.replace(/ $/,"%20"),!l&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function Pb(t,l,r="/"){return XS(t,l,r,!1)}function XS(t,l,r,a){let s=typeof l=="string"?Kr(l):l,o=pl(s.pathname||"/",r);if(o==null)return null;let c=$b(t);KS(c);let d=null;for(let p=0;d==null&&p<c.length;++p){let m=i2(o);d=n2(c[p],m,a)}return d}function $b(t,l=[],r=[],a="",s=!1){let o=(c,d,p=s,m)=>{let y={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(a)&&p)return;it(y.relativePath.startsWith(a),`Absolute route path "${y.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(a.length)}let g=dl([a,y.relativePath]),x=r.concat(y);c.children&&c.children.length>0&&(it(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),$b(c.children,l,x,g,p)),!(c.path==null&&!c.index)&&l.push({path:g,score:e2(g,c.index),routesMeta:x})};return t.forEach((c,d)=>{var p;if(c.path===""||!((p=c.path)!=null&&p.includes("?")))o(c,d);else for(let m of Wb(c.path))o(c,d,!0,m)}),l}function Wb(t){let l=t.split("/");if(l.length===0)return[];let[r,...a]=l,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(a.length===0)return s?[o,""]:[o];let c=Wb(a.join("/")),d=[];return d.push(...c.map(p=>p===""?o:[o,p].join("/"))),s&&d.push(...c),d.map(p=>t.startsWith("/")&&p===""?"/":p)}function KS(t){t.sort((l,r)=>l.score!==r.score?r.score-l.score:t2(l.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var ZS=/^:[\w-]+$/,IS=3,JS=2,PS=1,$S=10,WS=-2,My=t=>t==="*";function e2(t,l){let r=t.split("/"),a=r.length;return r.some(My)&&(a+=WS),l&&(a+=JS),r.filter(s=>!My(s)).reduce((s,o)=>s+(ZS.test(o)?IS:o===""?PS:$S),a)}function t2(t,l){return t.length===l.length&&t.slice(0,-1).every((a,s)=>a===l[s])?t[t.length-1]-l[l.length-1]:0}function n2(t,l,r=!1){let{routesMeta:a}=t,s={},o="/",c=[];for(let d=0;d<a.length;++d){let p=a[d],m=d===a.length-1,y=o==="/"?l:l.slice(o.length)||"/",g=eo({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},y),x=p.route;if(!g&&m&&r&&!a[a.length-1].route.index&&(g=eo({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!g)return null;Object.assign(s,g.params),c.push({params:s,pathname:dl([o,g.pathname]),pathnameBase:s2(dl([o,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(o=dl([o,g.pathnameBase]))}return c}function eo(t,l){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,a]=l2(t.path,t.caseSensitive,t.end),s=l.match(r);if(!s)return null;let o=s[0],c=o.replace(/(.)\/+$/,"$1"),d=s.slice(1);return{params:a.reduce((m,{paramName:y,isOptional:g},x)=>{if(y==="*"){let C=d[x]||"";c=o.slice(0,o.length-C.length).replace(/(.)\/+$/,"$1")}const v=d[x];return g&&!v?m[y]=void 0:m[y]=(v||"").replace(/%2F/g,"/"),m},{}),pathname:o,pathnameBase:c,pattern:t}}function l2(t,l=!1,r=!0){Bn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let a=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,p)=>(a.push({paramName:d,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(a.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,l?void 0:"i"),a]}function i2(t){try{return t.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Bn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),t}}function pl(t,l){if(l==="/")return t;if(!t.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,a=t.charAt(r);return a&&a!=="/"?null:t.slice(r)||"/"}var r2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function a2(t,l="/"){let{pathname:r,search:a="",hash:s=""}=typeof t=="string"?Kr(t):t,o;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?o=Dy(r.substring(1),"/"):o=Dy(r,l)):o=l,{pathname:o,search:o2(a),hash:c2(s)}}function Dy(t,l){let r=l.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Uf(t,l,r,a){return`Cannot include a '${t}' character in a manually specified \`to.${l}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function u2(t){return t.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function ev(t){let l=u2(t);return l.map((r,a)=>a===l.length-1?r.pathname:r.pathnameBase)}function tv(t,l,r,a=!1){let s;typeof t=="string"?s=Kr(t):(s={...t},it(!s.pathname||!s.pathname.includes("?"),Uf("?","pathname","search",s)),it(!s.pathname||!s.pathname.includes("#"),Uf("#","pathname","hash",s)),it(!s.search||!s.search.includes("#"),Uf("#","search","hash",s)));let o=t===""||s.pathname==="",c=o?"/":s.pathname,d;if(c==null)d=r;else{let g=l.length-1;if(!a&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),g-=1;s.pathname=x.join("/")}d=g>=0?l[g]:"/"}let p=a2(s,d),m=c&&c!=="/"&&c.endsWith("/"),y=(o||c===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(m||y)&&(p.pathname+="/"),p}var dl=t=>t.join("/").replace(/\/\/+/g,"/"),s2=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),o2=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,c2=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,f2=class{constructor(t,l,r,a=!1){this.status=t,this.statusText=l||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function h2(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function d2(t){return t.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var nv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function lv(t,l){let r=t;if(typeof r!="string"||!r2.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,s=!1;if(nv)try{let o=new URL(window.location.href),c=r.startsWith("//")?new URL(o.protocol+r):new URL(r),d=pl(c.pathname,l);c.origin===o.origin&&d!=null?r=d+c.search+c.hash:s=!0}catch{Bn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:s,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var iv=["POST","PUT","PATCH","DELETE"];new Set(iv);var m2=["GET",...iv];new Set(m2);var Zr=L.createContext(null);Zr.displayName="DataRouter";var ao=L.createContext(null);ao.displayName="DataRouterState";var p2=L.createContext(!1),rv=L.createContext({isTransitioning:!1});rv.displayName="ViewTransition";var g2=L.createContext(new Map);g2.displayName="Fetchers";var y2=L.createContext(null);y2.displayName="Await";var Sn=L.createContext(null);Sn.displayName="Navigation";var mu=L.createContext(null);mu.displayName="Location";var Rn=L.createContext({outlet:null,matches:[],isDataRoute:!1});Rn.displayName="Route";var Hh=L.createContext(null);Hh.displayName="RouteError";var av="REACT_ROUTER_ERROR",b2="REDIRECT",v2="ROUTE_ERROR_RESPONSE";function x2(t){if(t.startsWith(`${av}:${b2}:{`))try{let l=JSON.parse(t.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function S2(t){if(t.startsWith(`${av}:${v2}:{`))try{let l=JSON.parse(t.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new f2(l.status,l.statusText,l.data)}catch{}}function w2(t,{relative:l}={}){it(pu(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=L.useContext(Sn),{hash:s,pathname:o,search:c}=gu(t,{relative:l}),d=o;return r!=="/"&&(d=o==="/"?r:dl([r,o])),a.createHref({pathname:d,search:c,hash:s})}function pu(){return L.useContext(mu)!=null}function Bi(){return it(pu(),"useLocation() may be used only in the context of a <Router> component."),L.useContext(mu).location}var uv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sv(t){L.useContext(Sn).static||L.useLayoutEffect(t)}function ov(){let{isDataRoute:t}=L.useContext(Rn);return t?B2():E2()}function E2(){it(pu(),"useNavigate() may be used only in the context of a <Router> component.");let t=L.useContext(Zr),{basename:l,navigator:r}=L.useContext(Sn),{matches:a}=L.useContext(Rn),{pathname:s}=Bi(),o=JSON.stringify(ev(a)),c=L.useRef(!1);return sv(()=>{c.current=!0}),L.useCallback((p,m={})=>{if(Bn(c.current,uv),!c.current)return;if(typeof p=="number"){r.go(p);return}let y=tv(p,JSON.parse(o),s,m.relative==="path");t==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:dl([l,y.pathname])),(m.replace?r.replace:r.push)(y,m.state,m)},[l,r,o,s,t])}var C2=L.createContext(null);function k2(t){let l=L.useContext(Rn).outlet;return L.useMemo(()=>l&&L.createElement(C2.Provider,{value:t},l),[l,t])}function T2(){let{matches:t}=L.useContext(Rn),l=t[t.length-1];return l?l.params:{}}function gu(t,{relative:l}={}){let{matches:r}=L.useContext(Rn),{pathname:a}=Bi(),s=JSON.stringify(ev(r));return L.useMemo(()=>tv(t,JSON.parse(s),a,l==="path"),[t,s,a,l])}function A2(t,l){return cv(t,l)}function cv(t,l,r,a,s){var U;it(pu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=L.useContext(Sn),{matches:c}=L.useContext(Rn),d=c[c.length-1],p=d?d.params:{},m=d?d.pathname:"/",y=d?d.pathnameBase:"/",g=d&&d.route;{let D=g&&g.path||"";hv(m,!g||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${D}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
+
60
+ Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let x=Bi(),v;if(l){let D=typeof l=="string"?Kr(l):l;it(y==="/"||((U=D.pathname)==null?void 0:U.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${D.pathname}" was given in the \`location\` prop.`),v=D}else v=x;let C=v.pathname||"/",z=C;if(y!=="/"){let D=y.replace(/^\//,"").split("/");z="/"+C.replace(/^\//,"").split("/").slice(D.length).join("/")}let T=Pb(t,{pathname:z});Bn(g||T!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Bn(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let k=D2(T&&T.map(D=>Object.assign({},D,{params:Object.assign({},p,D.params),pathname:dl([y,o.encodeLocation?o.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?y:dl([y,o.encodeLocation?o.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),c,r,a,s);return l&&k?L.createElement(mu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},k):k}function z2(){let t=U2(),l=h2(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",t),c=L.createElement(L.Fragment,null,L.createElement("p",null,"💿 Hey developer 👋"),L.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",L.createElement("code",{style:o},"ErrorBoundary")," or"," ",L.createElement("code",{style:o},"errorElement")," prop on your route.")),L.createElement(L.Fragment,null,L.createElement("h2",null,"Unexpected Application Error!"),L.createElement("h3",{style:{fontStyle:"italic"}},l),r?L.createElement("pre",{style:s},r):null,c)}var R2=L.createElement(z2,null),fv=class extends L.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,l){return l.location!==t.location||l.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:l.error,location:l.location,revalidation:t.revalidation||l.revalidation}}componentDidCatch(t,l){this.props.onError?this.props.onError(t,l):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=S2(t.digest);r&&(t=r)}let l=t!==void 0?L.createElement(Rn.Provider,{value:this.props.routeContext},L.createElement(Hh.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?L.createElement(O2,{error:t},l):l}};fv.contextType=p2;var Bf=new WeakMap;function O2({children:t,error:l}){let{basename:r}=L.useContext(Sn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let a=x2(l.digest);if(a){let s=Bf.get(l);if(s)throw s;let o=lv(a.location,r);if(nv&&!Bf.get(l))if(o.isExternal||a.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:a.replace}));throw Bf.set(l,c),c}return L.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return t}function M2({routeContext:t,match:l,children:r}){let a=L.useContext(Zr);return a&&a.static&&a.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=l.route.id),L.createElement(Rn.Provider,{value:t},r)}function D2(t,l=[],r=null,a=null,s=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(l.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,c=r==null?void 0:r.errors;if(c!=null){let y=o.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);it(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let d=!1,p=-1;if(r)for(let y=0;y<o.length;y++){let g=o[y];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(p=y),g.route.id){let{loaderData:x,errors:v}=r,C=g.route.loader&&!x.hasOwnProperty(g.route.id)&&(!v||v[g.route.id]===void 0);if(g.route.lazy||C){d=!0,p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}let m=r&&a?(y,g)=>{var x,v;a(y,{location:r.location,params:((v=(x=r.matches)==null?void 0:x[0])==null?void 0:v.params)??{},unstable_pattern:d2(r.matches),errorInfo:g})}:void 0;return o.reduceRight((y,g,x)=>{let v,C=!1,z=null,T=null;r&&(v=c&&g.route.id?c[g.route.id]:void 0,z=g.route.errorElement||R2,d&&(p<0&&x===0?(hv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,T=null):p===x&&(C=!0,T=g.route.hydrateFallbackElement||null)));let k=l.concat(o.slice(0,x+1)),U=()=>{let D;return v?D=z:C?D=T:g.route.Component?D=L.createElement(g.route.Component,null):g.route.element?D=g.route.element:D=y,L.createElement(M2,{match:g,routeContext:{outlet:y,matches:k,isDataRoute:r!=null},children:D})};return r&&(g.route.ErrorBoundary||g.route.errorElement||x===0)?L.createElement(fv,{location:r.location,revalidation:r.revalidation,component:z,error:v,children:U(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:m}):U()},null)}function qh(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function N2(t){let l=L.useContext(Zr);return it(l,qh(t)),l}function _2(t){let l=L.useContext(ao);return it(l,qh(t)),l}function j2(t){let l=L.useContext(Rn);return it(l,qh(t)),l}function Qh(t){let l=j2(t),r=l.matches[l.matches.length-1];return it(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function L2(){return Qh("useRouteId")}function U2(){var a;let t=L.useContext(Hh),l=_2("useRouteError"),r=Qh("useRouteError");return t!==void 0?t:(a=l.errors)==null?void 0:a[r]}function B2(){let{router:t}=N2("useNavigate"),l=Qh("useNavigate"),r=L.useRef(!1);return sv(()=>{r.current=!0}),L.useCallback(async(s,o={})=>{Bn(r.current,uv),r.current&&(typeof s=="number"?await t.navigate(s):await t.navigate(s,{fromRouteId:l,...o}))},[t,l])}var Ny={};function hv(t,l,r){!l&&!Ny[t]&&(Ny[t]=!0,Bn(!1,r))}L.memo(H2);function H2({routes:t,future:l,state:r,onError:a}){return cv(t,void 0,r,a,l)}function q2(t){return k2(t.context)}function Xl(t){it(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Q2({basename:t="/",children:l=null,location:r,navigationType:a="POP",navigator:s,static:o=!1,unstable_useTransitions:c}){it(!pu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),p=L.useMemo(()=>({basename:d,navigator:s,static:o,unstable_useTransitions:c,future:{}}),[d,s,o,c]);typeof r=="string"&&(r=Kr(r));let{pathname:m="/",search:y="",hash:g="",state:x=null,key:v="default"}=r,C=L.useMemo(()=>{let z=pl(m,d);return z==null?null:{location:{pathname:z,search:y,hash:g,state:x,key:v},navigationType:a}},[d,m,y,g,x,v,a]);return Bn(C!=null,`<Router basename="${d}"> is not able to match the URL "${m}${y}${g}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:L.createElement(Sn.Provider,{value:p},L.createElement(mu.Provider,{children:l,value:C}))}function F2({children:t,location:l}){return A2(vh(t),l)}function vh(t,l=[]){let r=[];return L.Children.forEach(t,(a,s)=>{if(!L.isValidElement(a))return;let o=[...l,s];if(a.type===L.Fragment){r.push.apply(r,vh(a.props.children,o));return}it(a.type===Xl,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),it(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||o.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=vh(a.props.children,o)),r.push(c)}),r}var Is="get",Js="application/x-www-form-urlencoded";function uo(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Y2(t){return uo(t)&&t.tagName.toLowerCase()==="button"}function G2(t){return uo(t)&&t.tagName.toLowerCase()==="form"}function V2(t){return uo(t)&&t.tagName.toLowerCase()==="input"}function X2(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function K2(t,l){return t.button===0&&(!l||l==="_self")&&!X2(t)}var Fs=null;function Z2(){if(Fs===null)try{new FormData(document.createElement("form"),0),Fs=!1}catch{Fs=!0}return Fs}var I2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hf(t){return t!=null&&!I2.has(t)?(Bn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Js}"`),null):t}function J2(t,l){let r,a,s,o,c;if(G2(t)){let d=t.getAttribute("action");a=d?pl(d,l):null,r=t.getAttribute("method")||Is,s=Hf(t.getAttribute("enctype"))||Js,o=new FormData(t)}else if(Y2(t)||V2(t)&&(t.type==="submit"||t.type==="image")){let d=t.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=t.getAttribute("formaction")||d.getAttribute("action");if(a=p?pl(p,l):null,r=t.getAttribute("formmethod")||d.getAttribute("method")||Is,s=Hf(t.getAttribute("formenctype"))||Hf(d.getAttribute("enctype"))||Js,o=new FormData(d,t),!Z2()){let{name:m,type:y,value:g}=t;if(y==="image"){let x=m?`${m}.`:"";o.append(`${x}x`,"0"),o.append(`${x}y`,"0")}else m&&o.append(m,g)}}else{if(uo(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Is,a=null,s=Js,c=t}return o&&s==="text/plain"&&(c=o,o=void 0),{action:a,method:r.toLowerCase(),encType:s,formData:o,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Fh(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function P2(t,l,r,a){let s=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${a}`:s.pathname=`${s.pathname}.${a}`:s.pathname==="/"?s.pathname=`_root.${a}`:l&&pl(s.pathname,l)==="/"?s.pathname=`${l.replace(/\/$/,"")}/_root.${a}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${a}`,s}async function $2(t,l){if(t.id in l)return l[t.id];try{let r=await import(t.module);return l[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function W2(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function ew(t,l,r){let a=await Promise.all(t.map(async s=>{let o=l.routes[s.route.id];if(o){let c=await $2(o,r);return c.links?c.links():[]}return[]}));return iw(a.flat(1).filter(W2).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function _y(t,l,r,a,s,o){let c=(p,m)=>r[m]?p.route.id!==r[m].route.id:!0,d=(p,m)=>{var y;return r[m].pathname!==p.pathname||((y=r[m].route.path)==null?void 0:y.endsWith("*"))&&r[m].params["*"]!==p.params["*"]};return o==="assets"?l.filter((p,m)=>c(p,m)||d(p,m)):o==="data"?l.filter((p,m)=>{var g;let y=a.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(c(p,m)||d(p,m))return!0;if(p.route.shouldRevalidate){let x=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(t,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function tw(t,l,{includeHydrateFallback:r}={}){return nw(t.map(a=>{let s=l.routes[a.route.id];if(!s)return[];let o=[s.module];return s.clientActionModule&&(o=o.concat(s.clientActionModule)),s.clientLoaderModule&&(o=o.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(o=o.concat(s.hydrateFallbackModule)),s.imports&&(o=o.concat(s.imports)),o}).flat(1))}function nw(t){return[...new Set(t)]}function lw(t){let l={},r=Object.keys(t).sort();for(let a of r)l[a]=t[a];return l}function iw(t,l){let r=new Set;return new Set(l),t.reduce((a,s)=>{let o=JSON.stringify(lw(s));return r.has(o)||(r.add(o),a.push({key:o,link:s})),a},[])}function dv(){let t=L.useContext(Zr);return Fh(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function rw(){let t=L.useContext(ao);return Fh(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Yh=L.createContext(void 0);Yh.displayName="FrameworkContext";function mv(){let t=L.useContext(Yh);return Fh(t,"You must render this element inside a <HydratedRouter> element"),t}function aw(t,l){let r=L.useContext(Yh),[a,s]=L.useState(!1),[o,c]=L.useState(!1),{onFocus:d,onBlur:p,onMouseEnter:m,onMouseLeave:y,onTouchStart:g}=l,x=L.useRef(null);L.useEffect(()=>{if(t==="render"&&c(!0),t==="viewport"){let z=k=>{k.forEach(U=>{c(U.isIntersecting)})},T=new IntersectionObserver(z,{threshold:.5});return x.current&&T.observe(x.current),()=>{T.disconnect()}}},[t]),L.useEffect(()=>{if(a){let z=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(z)}}},[a]);let v=()=>{s(!0)},C=()=>{s(!1),c(!1)};return r?t!=="intent"?[o,x,{}]:[o,x,{onFocus:Ka(d,v),onBlur:Ka(p,C),onMouseEnter:Ka(m,v),onMouseLeave:Ka(y,C),onTouchStart:Ka(g,v)}]:[!1,x,{}]}function Ka(t,l){return r=>{t&&t(r),r.defaultPrevented||l(r)}}function uw({page:t,...l}){let{router:r}=dv(),a=L.useMemo(()=>Pb(r.routes,t,r.basename),[r.routes,t,r.basename]);return a?L.createElement(ow,{page:t,matches:a,...l}):null}function sw(t){let{manifest:l,routeModules:r}=mv(),[a,s]=L.useState([]);return L.useEffect(()=>{let o=!1;return ew(t,l,r).then(c=>{o||s(c)}),()=>{o=!0}},[t,l,r]),a}function ow({page:t,matches:l,...r}){let a=Bi(),{future:s,manifest:o,routeModules:c}=mv(),{basename:d}=dv(),{loaderData:p,matches:m}=rw(),y=L.useMemo(()=>_y(t,l,m,o,a,"data"),[t,l,m,o,a]),g=L.useMemo(()=>_y(t,l,m,o,a,"assets"),[t,l,m,o,a]),x=L.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let z=new Set,T=!1;if(l.forEach(U=>{var Y;let D=o.routes[U.route.id];!D||!D.hasLoader||(!y.some(P=>P.route.id===U.route.id)&&U.route.id in p&&((Y=c[U.route.id])!=null&&Y.shouldRevalidate)||D.hasClientLoader?T=!0:z.add(U.route.id))}),z.size===0)return[];let k=P2(t,d,s.unstable_trailingSlashAwareDataRequests,"data");return T&&z.size>0&&k.searchParams.set("_routes",l.filter(U=>z.has(U.route.id)).map(U=>U.route.id).join(",")),[k.pathname+k.search]},[d,s.unstable_trailingSlashAwareDataRequests,p,a,o,y,l,t,c]),v=L.useMemo(()=>tw(g,o),[g,o]),C=sw(g);return L.createElement(L.Fragment,null,x.map(z=>L.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...r})),v.map(z=>L.createElement("link",{key:z,rel:"modulepreload",href:z,...r})),C.map(({key:z,link:T})=>L.createElement("link",{key:z,nonce:r.nonce,...T,crossOrigin:T.crossOrigin??r.crossOrigin})))}function cw(...t){return l=>{t.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var fw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{fw&&(window.__reactRouterVersion="7.13.0")}catch{}function hw({basename:t,children:l,unstable_useTransitions:r,window:a}){let s=L.useRef();s.current==null&&(s.current=FS({window:a,v5Compat:!0}));let o=s.current,[c,d]=L.useState({action:o.action,location:o.location}),p=L.useCallback(m=>{r===!1?d(m):L.startTransition(()=>d(m))},[r]);return L.useLayoutEffect(()=>o.listen(p),[o,p]),L.createElement(Q2,{basename:t,children:l,location:c.location,navigationType:c.action,navigator:o,unstable_useTransitions:r})}var pv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gh=L.forwardRef(function({onClick:l,discover:r="render",prefetch:a="none",relative:s,reloadDocument:o,replace:c,state:d,target:p,to:m,preventScrollReset:y,viewTransition:g,unstable_defaultShouldRevalidate:x,...v},C){let{basename:z,unstable_useTransitions:T}=L.useContext(Sn),k=typeof m=="string"&&pv.test(m),U=lv(m,z);m=U.to;let D=w2(m,{relative:s}),[Y,P,B]=aw(a,v),ee=pw(m,{replace:c,state:d,target:p,preventScrollReset:y,relative:s,viewTransition:g,unstable_defaultShouldRevalidate:x,unstable_useTransitions:T});function V(j){l&&l(j),j.defaultPrevented||ee(j)}let le=L.createElement("a",{...v,...B,href:U.absoluteURL||D,onClick:U.isExternal||o?l:V,ref:cw(C,P),target:p,"data-discover":!k&&r==="render"?"true":void 0});return Y&&!k?L.createElement(L.Fragment,null,le,L.createElement(uw,{page:D})):le});Gh.displayName="Link";var gv=L.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:a="",end:s=!1,style:o,to:c,viewTransition:d,children:p,...m},y){let g=gu(c,{relative:m.relative}),x=Bi(),v=L.useContext(ao),{navigator:C,basename:z}=L.useContext(Sn),T=v!=null&&xw(g)&&d===!0,k=C.encodeLocation?C.encodeLocation(g).pathname:g.pathname,U=x.pathname,D=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(U=U.toLowerCase(),D=D?D.toLowerCase():null,k=k.toLowerCase()),D&&z&&(D=pl(D,z)||D);const Y=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let P=U===k||!s&&U.startsWith(k)&&U.charAt(Y)==="/",B=D!=null&&(D===k||!s&&D.startsWith(k)&&D.charAt(k.length)==="/"),ee={isActive:P,isPending:B,isTransitioning:T},V=P?l:void 0,le;typeof a=="function"?le=a(ee):le=[a,P?"active":null,B?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let j=typeof o=="function"?o(ee):o;return L.createElement(Gh,{...m,"aria-current":V,className:le,ref:y,style:j,to:c,viewTransition:d},typeof p=="function"?p(ee):p)});gv.displayName="NavLink";var dw=L.forwardRef(({discover:t="render",fetcherKey:l,navigate:r,reloadDocument:a,replace:s,state:o,method:c=Is,action:d,onSubmit:p,relative:m,preventScrollReset:y,viewTransition:g,unstable_defaultShouldRevalidate:x,...v},C)=>{let{unstable_useTransitions:z}=L.useContext(Sn),T=bw(),k=vw(d,{relative:m}),U=c.toLowerCase()==="get"?"get":"post",D=typeof d=="string"&&pv.test(d),Y=P=>{if(p&&p(P),P.defaultPrevented)return;P.preventDefault();let B=P.nativeEvent.submitter,ee=(B==null?void 0:B.getAttribute("formmethod"))||c,V=()=>T(B||P.currentTarget,{fetcherKey:l,method:ee,navigate:r,replace:s,state:o,relative:m,preventScrollReset:y,viewTransition:g,unstable_defaultShouldRevalidate:x});z&&r!==!1?L.startTransition(()=>V()):V()};return L.createElement("form",{ref:C,method:U,action:k,onSubmit:a?p:Y,...v,"data-discover":!D&&t==="render"?"true":void 0})});dw.displayName="Form";function mw(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yv(t){let l=L.useContext(Zr);return it(l,mw(t)),l}function pw(t,{target:l,replace:r,state:a,preventScrollReset:s,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:d,unstable_useTransitions:p}={}){let m=ov(),y=Bi(),g=gu(t,{relative:o});return L.useCallback(x=>{if(K2(x,l)){x.preventDefault();let v=r!==void 0?r:ru(y)===ru(g),C=()=>m(t,{replace:v,state:a,preventScrollReset:s,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:d});p?L.startTransition(()=>C()):C()}},[y,m,g,r,a,l,t,s,o,c,d,p])}var gw=0,yw=()=>`__${String(++gw)}__`;function bw(){let{router:t}=yv("useSubmit"),{basename:l}=L.useContext(Sn),r=L2(),a=t.fetch,s=t.navigate;return L.useCallback(async(o,c={})=>{let{action:d,method:p,encType:m,formData:y,body:g}=J2(o,l);if(c.navigate===!1){let x=c.fetcherKey||yw();await a(x,r,c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||p,formEncType:c.encType||m,flushSync:c.flushSync})}else await s(c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||p,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,s,l,r])}function vw(t,{relative:l}={}){let{basename:r}=L.useContext(Sn),a=L.useContext(Rn);it(a,"useFormAction must be used inside a RouteContext");let[s]=a.matches.slice(-1),o={...gu(t||".",{relative:l})},c=Bi();if(t==null){o.search=c.search;let d=new URLSearchParams(o.search),p=d.getAll("index");if(p.some(y=>y==="")){d.delete("index"),p.filter(g=>g).forEach(g=>d.append("index",g));let y=d.toString();o.search=y?`?${y}`:""}}return(!t||t===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:dl([r,o.pathname])),ru(o)}function xw(t,{relative:l}={}){let r=L.useContext(rv);it(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=yv("useViewTransitionState"),s=gu(t,{relative:l});if(!r.isTransitioning)return!1;let o=pl(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=pl(r.nextLocation.pathname,a)||r.nextLocation.pathname;return eo(s.pathname,c)!=null||eo(s.pathname,o)!=null}/**
61
+ * @license lucide-react v0.460.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const Sw=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),bv=(...t)=>t.filter((l,r,a)=>!!l&&l.trim()!==""&&a.indexOf(l)===r).join(" ").trim();/**
66
+ * @license lucide-react v0.460.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */var ww={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"};/**
71
+ * @license lucide-react v0.460.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const Ew=L.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:c,...d},p)=>L.createElement("svg",{ref:p,...ww,width:l,height:l,stroke:t,strokeWidth:a?Number(r)*24/Number(l):r,className:bv("lucide",s),...d},[...c.map(([m,y])=>L.createElement(m,y)),...Array.isArray(o)?o:[o]]));/**
76
+ * @license lucide-react v0.460.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const Tt=(t,l)=>{const r=L.forwardRef(({className:a,...s},o)=>L.createElement(Ew,{ref:o,iconNode:l,className:bv(`lucide-${Sw(t)}`,a),...s}));return r.displayName=`${t}`,r};/**
81
+ * @license lucide-react v0.460.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const Cw=Tt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
86
+ * @license lucide-react v0.460.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const vv=Tt("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
91
+ * @license lucide-react v0.460.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const kw=Tt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
96
+ * @license lucide-react v0.460.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const Tw=Tt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
101
+ * @license lucide-react v0.460.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const Aw=Tt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
106
+ * @license lucide-react v0.460.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const zw=Tt("FileText",[["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"}]]);/**
111
+ * @license lucide-react v0.460.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const Rw=Tt("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
116
+ * @license lucide-react v0.460.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const Ow=Tt("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
121
+ * @license lucide-react v0.460.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const xv=Tt("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
126
+ * @license lucide-react v0.460.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Sv=Tt("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
131
+ * @license lucide-react v0.460.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const wv=Tt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
136
+ * @license lucide-react v0.460.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const Mw=Tt("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
141
+ * @license lucide-react v0.460.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const Vh=Tt("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
146
+ * @license lucide-react v0.460.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const Ev=Tt("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
151
+ * @license lucide-react v0.460.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const jy=Tt("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
156
+ * @license lucide-react v0.460.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const Cv=Tt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
161
+ * @license lucide-react v0.460.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const Dw=Tt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function kv(t){var l,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(l=0;l<s;l++)t[l]&&(r=kv(t[l]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function Nw(){for(var t,l,r=0,a="",s=arguments.length;r<s;r++)(t=arguments[r])&&(l=kv(t))&&(a&&(a+=" "),a+=l);return a}const Xh="-",_w=t=>{const l=Lw(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:c=>{const d=c.split(Xh);return d[0]===""&&d.length!==1&&d.shift(),Tv(d,l)||jw(c)},getConflictingClassGroupIds:(c,d)=>{const p=r[c]||[];return d&&a[c]?[...p,...a[c]]:p}}},Tv=(t,l)=>{var c;if(t.length===0)return l.classGroupId;const r=t[0],a=l.nextPart.get(r),s=a?Tv(t.slice(1),a):void 0;if(s)return s;if(l.validators.length===0)return;const o=t.join(Xh);return(c=l.validators.find(({validator:d})=>d(o)))==null?void 0:c.classGroupId},Ly=/^\[(.+)\]$/,jw=t=>{if(Ly.test(t)){const l=Ly.exec(t)[1],r=l==null?void 0:l.substring(0,l.indexOf(":"));if(r)return"arbitrary.."+r}},Lw=t=>{const{theme:l,prefix:r}=t,a={nextPart:new Map,validators:[]};return Bw(Object.entries(t.classGroups),r).forEach(([o,c])=>{xh(c,a,o,l)}),a},xh=(t,l,r,a)=>{t.forEach(s=>{if(typeof s=="string"){const o=s===""?l:Uy(l,s);o.classGroupId=r;return}if(typeof s=="function"){if(Uw(s)){xh(s(a),l,r,a);return}l.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,c])=>{xh(c,Uy(l,o),r,a)})})},Uy=(t,l)=>{let r=t;return l.split(Xh).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Uw=t=>t.isThemeGetter,Bw=(t,l)=>l?t.map(([r,a])=>{const s=a.map(o=>typeof o=="string"?l+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([c,d])=>[l+c,d])):o);return[r,s]}):t,Hw=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,r=new Map,a=new Map;const s=(o,c)=>{r.set(o,c),l++,l>t&&(l=0,a=r,r=new Map)};return{get(o){let c=r.get(o);if(c!==void 0)return c;if((c=a.get(o))!==void 0)return s(o,c),c},set(o,c){r.has(o)?r.set(o,c):s(o,c)}}},Av="!",qw=t=>{const{separator:l,experimentalParseClassName:r}=t,a=l.length===1,s=l[0],o=l.length,c=d=>{const p=[];let m=0,y=0,g;for(let T=0;T<d.length;T++){let k=d[T];if(m===0){if(k===s&&(a||d.slice(T,T+o)===l)){p.push(d.slice(y,T)),y=T+o;continue}if(k==="/"){g=T;continue}}k==="["?m++:k==="]"&&m--}const x=p.length===0?d:d.substring(y),v=x.startsWith(Av),C=v?x.substring(1):x,z=g&&g>y?g-y:void 0;return{modifiers:p,hasImportantModifier:v,baseClassName:C,maybePostfixModifierPosition:z}};return r?d=>r({className:d,parseClassName:c}):c},Qw=t=>{if(t.length<=1)return t;const l=[];let r=[];return t.forEach(a=>{a[0]==="["?(l.push(...r.sort(),a),r=[]):r.push(a)}),l.push(...r.sort()),l},Fw=t=>({cache:Hw(t.cacheSize),parseClassName:qw(t),..._w(t)}),Yw=/\s+/,Gw=(t,l)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s}=l,o=[],c=t.trim().split(Yw);let d="";for(let p=c.length-1;p>=0;p-=1){const m=c[p],{modifiers:y,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:v}=r(m);let C=!!v,z=a(C?x.substring(0,v):x);if(!z){if(!C){d=m+(d.length>0?" "+d:d);continue}if(z=a(x),!z){d=m+(d.length>0?" "+d:d);continue}C=!1}const T=Qw(y).join(":"),k=g?T+Av:T,U=k+z;if(o.includes(U))continue;o.push(U);const D=s(z,C);for(let Y=0;Y<D.length;++Y){const P=D[Y];o.push(k+P)}d=m+(d.length>0?" "+d:d)}return d};function Vw(){let t=0,l,r,a="";for(;t<arguments.length;)(l=arguments[t++])&&(r=zv(l))&&(a&&(a+=" "),a+=r);return a}const zv=t=>{if(typeof t=="string")return t;let l,r="";for(let a=0;a<t.length;a++)t[a]&&(l=zv(t[a]))&&(r&&(r+=" "),r+=l);return r};function Xw(t,...l){let r,a,s,o=c;function c(p){const m=l.reduce((y,g)=>g(y),t());return r=Fw(m),a=r.cache.get,s=r.cache.set,o=d,d(p)}function d(p){const m=a(p);if(m)return m;const y=Gw(p,r);return s(p,y),y}return function(){return o(Vw.apply(null,arguments))}}const et=t=>{const l=r=>r[t]||[];return l.isThemeGetter=!0,l},Rv=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kw=/^\d+\/\d+$/,Zw=new Set(["px","full","screen"]),Iw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jw=/\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$/,Pw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$w=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ww=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ul=t=>Mr(t)||Zw.has(t)||Kw.test(t),Fl=t=>Ir(t,"length",uE),Mr=t=>!!t&&!Number.isNaN(Number(t)),qf=t=>Ir(t,"number",Mr),Za=t=>!!t&&Number.isInteger(Number(t)),eE=t=>t.endsWith("%")&&Mr(t.slice(0,-1)),Ce=t=>Rv.test(t),Yl=t=>Iw.test(t),tE=new Set(["length","size","percentage"]),nE=t=>Ir(t,tE,Ov),lE=t=>Ir(t,"position",Ov),iE=new Set(["image","url"]),rE=t=>Ir(t,iE,oE),aE=t=>Ir(t,"",sE),Ia=()=>!0,Ir=(t,l,r)=>{const a=Rv.exec(t);return a?a[1]?typeof l=="string"?a[1]===l:l.has(a[1]):r(a[2]):!1},uE=t=>Jw.test(t)&&!Pw.test(t),Ov=()=>!1,sE=t=>$w.test(t),oE=t=>Ww.test(t),cE=()=>{const t=et("colors"),l=et("spacing"),r=et("blur"),a=et("brightness"),s=et("borderColor"),o=et("borderRadius"),c=et("borderSpacing"),d=et("borderWidth"),p=et("contrast"),m=et("grayscale"),y=et("hueRotate"),g=et("invert"),x=et("gap"),v=et("gradientColorStops"),C=et("gradientColorStopPositions"),z=et("inset"),T=et("margin"),k=et("opacity"),U=et("padding"),D=et("saturate"),Y=et("scale"),P=et("sepia"),B=et("skew"),ee=et("space"),V=et("translate"),le=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto",Ce,l],$=()=>[Ce,l],Se=()=>["",ul,Fl],se=()=>["auto",Mr,Ce],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],ve=()=>["","0",Ce],A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[Mr,Ce];return{cacheSize:500,separator:":",theme:{colors:[Ia],spacing:[ul,Fl],blur:["none","",Yl,Ce],brightness:M(),borderColor:[t],borderRadius:["none","","full",Yl,Ce],borderSpacing:$(),borderWidth:Se(),contrast:M(),grayscale:ve(),hueRotate:M(),invert:ve(),gap:$(),gradientColorStops:[t],gradientColorStopPositions:[eE,Fl],inset:ie(),margin:ie(),opacity:M(),padding:$(),saturate:M(),scale:M(),sepia:ve(),skew:M(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[Yl]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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"],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:[...ne(),Ce]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-y":[{"overscroll-y":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Za,Ce]}],basis:[{basis:ie()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:ve()}],shrink:[{shrink:ve()}],order:[{order:["first","last","none",Za,Ce]}],"grid-cols":[{"grid-cols":[Ia]}],"col-start-end":[{col:["auto",{span:["full",Za,Ce]},Ce]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[Ia]}],"row-start-end":[{row:["auto",{span:[Za,Ce]},Ce]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[U]}],px:[{px:[U]}],py:[{py:[U]}],ps:[{ps:[U]}],pe:[{pe:[U]}],pt:[{pt:[U]}],pr:[{pr:[U]}],pb:[{pb:[U]}],pl:[{pl:[U]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ce,l]}],"min-w":[{"min-w":[Ce,l,"min","max","fit"]}],"max-w":[{"max-w":[Ce,l,"none","full","min","max","fit","prose",{screen:[Yl]},Yl]}],h:[{h:[Ce,l,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,l,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,l,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,l,"auto","min","max","fit"]}],"font-size":[{text:["base",Yl,Fl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qf]}],"font-family":[{font:[Ia]}],"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:["tighter","tight","normal","wide","wider","widest",Ce]}],"line-clamp":[{"line-clamp":["none",Mr,qf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ul,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ul,Fl]}],"underline-offset":[{"underline-offset":["auto",ul,Ce]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),lE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rE]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:Q()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[ul,Ce]}],"outline-w":[{outline:[ul,Fl]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[ul,Fl]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Yl,aE]}],"shadow-color":[{shadow:[Ia]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Yl,Ce]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[g]}],saturate:[{saturate:[D]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ce]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Y]}],"scale-x":[{"scale-x":[Y]}],"scale-y":[{"scale-y":[Y]}],rotate:[{rotate:[Za,Ce]}],"translate-x":[{"translate-x":[V]}],"translate-y":[{"translate-y":[V]}],"skew-x":[{"skew-x":[B]}],"skew-y":[{"skew-y":[B]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],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",Ce]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",Ce]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ul,Fl,qf]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},fE=Xw(cE);function Mv(...t){return fE(Nw(t))}const hE=[{to:"/",icon:Ow,label:"Dashboard"},{to:"/steps",icon:xv,label:"Steps"},{to:"/config",icon:Ev,label:"Config"},{to:"/knowledge",icon:vv,label:"Knowledge"},{to:"/workflow",icon:Sv,label:"Workflow"}];function dE(){return E.jsxs("aside",{className:"flex h-screen w-56 flex-col border-r border-[var(--border)] bg-[var(--card)]",children:[E.jsx("div",{className:"flex h-14 items-center border-b border-[var(--border)] px-4",children:E.jsx("span",{className:"text-lg font-semibold",children:"spets"})}),E.jsx("nav",{className:"flex-1 space-y-1 p-2",children:hE.map(({to:t,icon:l,label:r})=>E.jsxs(gv,{to:t,end:t==="/",className:({isActive:a})=>Mv("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors",a?"bg-[var(--accent)] text-[var(--accent-foreground)]":"text-[var(--muted-foreground)] hover:bg-[var(--accent)] hover:text-[var(--accent-foreground)]"),children:[E.jsx(l,{className:"h-4 w-4"}),r]},t))})]})}function mE(){return E.jsxs("div",{className:"flex h-screen overflow-hidden",children:[E.jsx(dE,{}),E.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:E.jsx(q2,{})})]})}const pE="/api";class gE extends Error{constructor(l,r){super(r),this.status=l,this.name="ApiError"}}async function Ys(t,l){const r=await fetch(`${pE}${t}`,{headers:{"Content-Type":"application/json",...l==null?void 0:l.headers},...l});if(!r.ok){const s=await r.text();throw new gE(r.status,s||r.statusText)}const a=r.headers.get("content-type");return a!=null&&a.includes("application/json")?r.json():r.text()}const tt={get:t=>Ys(t),put:(t,l)=>Ys(t,{method:"PUT",body:JSON.stringify(l)}),post:(t,l)=>Ys(t,{method:"POST",body:JSON.stringify(l)}),delete:t=>Ys(t,{method:"DELETE"})},By={in_progress:"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200",completed:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",paused:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",rejected:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200",pending:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-200",draft:"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200",approved:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"};function _i({status:t}){const l=By[t]||By.pending;return E.jsx("span",{className:Mv("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",l),children:t.replace("_"," ")})}function yu({icon:t,title:l,description:r}){return E.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[E.jsx(t,{className:"mb-4 h-12 w-12 text-[var(--muted-foreground)]"}),E.jsx("h3",{className:"text-lg font-medium",children:l}),r&&E.jsx("p",{className:"mt-1 text-sm text-[var(--muted-foreground)]",children:r})]})}function yE(){const t=ov(),{data:l,isLoading:r,error:a}=li({queryKey:["tasks"],queryFn:()=>tt.get("/tasks?limit=50")});if(r)return E.jsx("div",{className:"animate-pulse text-[var(--muted-foreground)]",children:"Loading tasks..."});if(a)return E.jsxs("div",{className:"text-red-500",children:["Failed to load tasks: ",a.message]});const s=(l==null?void 0:l.tasks)??[];return s.length===0?E.jsx(yu,{icon:Rw,title:"No tasks yet",description:"Start a workflow with `spets start` to see tasks here."}):E.jsxs("div",{children:[E.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[E.jsx("h1",{className:"text-2xl font-bold",children:"Dashboard"}),E.jsxs("span",{className:"text-sm text-[var(--muted-foreground)]",children:[l==null?void 0:l.metadata.totalTasks," task",(l==null?void 0:l.metadata.totalTasks)!==1?"s":""]})]}),E.jsx("div",{className:"overflow-hidden rounded-lg border border-[var(--border)]",children:E.jsxs("table",{className:"w-full text-sm",children:[E.jsx("thead",{children:E.jsxs("tr",{className:"border-b border-[var(--border)] bg-[var(--muted)]",children:[E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Task"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Status"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Step"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Progress"}),E.jsx("th",{className:"px-4 py-3 text-left font-medium text-[var(--muted-foreground)]",children:"Created"})]})}),E.jsx("tbody",{children:s.map(o=>E.jsxs("tr",{onClick:()=>t(`/tasks/${o.taskId}`),className:"cursor-pointer border-b border-[var(--border)] transition-colors hover:bg-[var(--muted)]",children:[E.jsxs("td",{className:"px-4 py-3",children:[E.jsx("div",{className:"font-medium",children:o.taskId}),E.jsx("div",{className:"mt-0.5 truncate text-xs text-[var(--muted-foreground)]",style:{maxWidth:"300px"},children:o.query})]}),E.jsx("td",{className:"px-4 py-3",children:E.jsx(_i,{status:o.status})}),E.jsx("td",{className:"px-4 py-3 text-[var(--muted-foreground)]",children:o.progress.currentStep}),E.jsx("td",{className:"px-4 py-3",children:E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("div",{className:"h-2 w-24 overflow-hidden rounded-full bg-[var(--muted)]",children:E.jsx("div",{className:"h-full rounded-full bg-blue-500 transition-all",style:{width:`${o.progress.completionPercent}%`}})}),E.jsxs("span",{className:"text-xs text-[var(--muted-foreground)]",children:[o.progress.currentStepIndex,"/",o.progress.totalSteps]})]})}),E.jsx("td",{className:"px-4 py-3 text-xs text-[var(--muted-foreground)]",children:o.createdAt?new Date(o.createdAt).toLocaleDateString():"-"})]},o.taskId))})]})})]})}function bE(t,l){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const vE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,SE={};function Hy(t,l){return(SE.jsx?xE:vE).test(t)}const wE=/[ \t\n\f\r]/g;function EE(t){return typeof t=="object"?t.type==="text"?qy(t.value):!1:qy(t)}function qy(t){return t.replace(wE,"")===""}class bu{constructor(l,r,a){this.normal=r,this.property=l,a&&(this.space=a)}}bu.prototype.normal={};bu.prototype.property={};bu.prototype.space=void 0;function Dv(t,l){const r={},a={};for(const s of t)Object.assign(r,s.property),Object.assign(a,s.normal);return new bu(r,a,l)}function Sh(t){return t.toLowerCase()}class Zt{constructor(l,r){this.attribute=r,this.property=l}}Zt.prototype.attribute="";Zt.prototype.booleanish=!1;Zt.prototype.boolean=!1;Zt.prototype.commaOrSpaceSeparated=!1;Zt.prototype.commaSeparated=!1;Zt.prototype.defined=!1;Zt.prototype.mustUseProperty=!1;Zt.prototype.number=!1;Zt.prototype.overloadedBoolean=!1;Zt.prototype.property="";Zt.prototype.spaceSeparated=!1;Zt.prototype.space=void 0;let CE=0;const ke=Hi(),mt=Hi(),wh=Hi(),te=Hi(),Pe=Hi(),Dr=Hi(),ln=Hi();function Hi(){return 2**++CE}const Eh=Object.freeze(Object.defineProperty({__proto__:null,boolean:ke,booleanish:mt,commaOrSpaceSeparated:ln,commaSeparated:Dr,number:te,overloadedBoolean:wh,spaceSeparated:Pe},Symbol.toStringTag,{value:"Module"})),Qf=Object.keys(Eh);class Kh extends Zt{constructor(l,r,a,s){let o=-1;if(super(l,r),Qy(this,"space",s),typeof a=="number")for(;++o<Qf.length;){const c=Qf[o];Qy(this,Qf[o],(a&Eh[c])===Eh[c])}}}Kh.prototype.defined=!0;function Qy(t,l,r){r&&(t[l]=r)}function Jr(t){const l={},r={};for(const[a,s]of Object.entries(t.properties)){const o=new Kh(a,t.transform(t.attributes||{},a),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),l[a]=o,r[Sh(a)]=a,r[Sh(o.attribute)]=a}return new bu(l,r,t.space)}const Nv=Jr({properties:{ariaActiveDescendant:null,ariaAtomic:mt,ariaAutoComplete:null,ariaBusy:mt,ariaChecked:mt,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:Pe,ariaCurrent:null,ariaDescribedBy:Pe,ariaDetails:null,ariaDisabled:mt,ariaDropEffect:Pe,ariaErrorMessage:null,ariaExpanded:mt,ariaFlowTo:Pe,ariaGrabbed:mt,ariaHasPopup:null,ariaHidden:mt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pe,ariaLevel:te,ariaLive:null,ariaModal:mt,ariaMultiLine:mt,ariaMultiSelectable:mt,ariaOrientation:null,ariaOwns:Pe,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:mt,ariaReadOnly:mt,ariaRelevant:null,ariaRequired:mt,ariaRoleDescription:Pe,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:mt,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function _v(t,l){return l in t?t[l]:l}function jv(t,l){return _v(t,l.toLowerCase())}const kE=Jr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dr,acceptCharset:Pe,accessKey:Pe,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:Pe,autoFocus:ke,autoPlay:ke,blocking:Pe,capture:null,charSet:null,checked:ke,cite:null,className:Pe,cols:te,colSpan:null,content:null,contentEditable:mt,controls:ke,controlsList:Pe,coords:te|Dr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:wh,draggable:mt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:Pe,height:te,hidden:wh,high:te,href:null,hrefLang:null,htmlFor:Pe,httpEquiv:Pe,id:null,imageSizes:null,imageSrcSet:null,inert:ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:Pe,itemRef:Pe,itemScope:ke,itemType:Pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,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:te,pattern:null,ping:Pe,placeholder:null,playsInline:ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:Pe,required:ke,reversed:ke,rows:te,rowSpan:te,sandbox:Pe,scope:null,scoped:ke,seamless:ke,selected:ke,shadowRootClonable:ke,shadowRootDelegatesFocus:ke,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:mt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:mt,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pe,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,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:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:mt,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:jv}),TE=Jr({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:ln,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:Pe,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:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,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:Dr,g2:Dr,glyphName:Dr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:ln,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,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:te,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:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ln,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ln,rev:ln,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ln,requiredFeatures:ln,requiredFonts:ln,requiredFormats:ln,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:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:ln,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ln,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ln,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_v}),Lv=Jr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),Uv=Jr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jv}),Bv=Jr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),AE={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"},zE=/[A-Z]/g,Fy=/-[a-z]/g,RE=/^data[-\w.:]+$/i;function OE(t,l){const r=Sh(l);let a=l,s=Zt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&RE.test(l)){if(l.charAt(4)==="-"){const o=l.slice(5).replace(Fy,DE);a="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=l.slice(4);if(!Fy.test(o)){let c=o.replace(zE,ME);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}s=Kh}return new s(a,l)}function ME(t){return"-"+t.toLowerCase()}function DE(t){return t.charAt(1).toUpperCase()}const NE=Dv([Nv,kE,Lv,Uv,Bv],"html"),Zh=Dv([Nv,TE,Lv,Uv,Bv],"svg");function _E(t){return t.join(" ").trim()}var zr={},Ff,Yy;function jE(){if(Yy)return Ff;Yy=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
166
+ `,m="/",y="*",g="",x="comment",v="declaration";function C(T,k){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];k=k||{};var U=1,D=1;function Y(se){var ne=se.match(l);ne&&(U+=ne.length);var Q=se.lastIndexOf(p);D=~Q?se.length-Q:D+se.length}function P(){var se={line:U,column:D};return function(ne){return ne.position=new B(se),le(),ne}}function B(se){this.start=se,this.end={line:U,column:D},this.source=k.source}B.prototype.content=T;function ee(se){var ne=new Error(k.source+":"+U+":"+D+": "+se);if(ne.reason=se,ne.filename=k.source,ne.line=U,ne.column=D,ne.source=T,!k.silent)throw ne}function V(se){var ne=se.exec(T);if(ne){var Q=ne[0];return Y(Q),T=T.slice(Q.length),ne}}function le(){V(r)}function j(se){var ne;for(se=se||[];ne=ie();)ne!==!1&&se.push(ne);return se}function ie(){var se=P();if(!(m!=T.charAt(0)||y!=T.charAt(1))){for(var ne=2;g!=T.charAt(ne)&&(y!=T.charAt(ne)||m!=T.charAt(ne+1));)++ne;if(ne+=2,g===T.charAt(ne-1))return ee("End of comment missing");var Q=T.slice(2,ne-2);return D+=2,Y(Q),T=T.slice(ne),D+=2,se({type:x,comment:Q})}}function $(){var se=P(),ne=V(a);if(ne){if(ie(),!V(s))return ee("property missing ':'");var Q=V(o),W=se({type:v,property:z(ne[0].replace(t,g)),value:Q?z(Q[0].replace(t,g)):g});return V(c),W}}function Se(){var se=[];j(se);for(var ne;ne=$();)ne!==!1&&(se.push(ne),j(se));return se}return le(),Se()}function z(T){return T?T.replace(d,g):g}return Ff=C,Ff}var Gy;function LE(){if(Gy)return zr;Gy=1;var t=zr&&zr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(zr,"__esModule",{value:!0}),zr.default=r;const l=t(jE());function r(a,s){let o=null;if(!a||typeof a!="string")return o;const c=(0,l.default)(a),d=typeof s=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;d?s(m,y,p):y&&(o=o||{},o[m]=y)}),o}return zr}var Ja={},Vy;function UE(){if(Vy)return Ja;Vy=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(m){return!m||r.test(m)||t.test(m)},c=function(m,y){return y.toUpperCase()},d=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),o(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(s,d):m=m.replace(a,d),m.replace(l,c))};return Ja.camelCase=p,Ja}var Pa,Xy;function BE(){if(Xy)return Pa;Xy=1;var t=Pa&&Pa.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},l=t(LE()),r=UE();function a(s,o){var c={};return!s||typeof s!="string"||(0,l.default)(s,function(d,p){d&&p&&(c[(0,r.camelCase)(d,o)]=p)}),c}return a.default=a,Pa=a,Pa}var HE=BE();const qE=Hb(HE),Hv=qv("end"),Ih=qv("start");function qv(t){return l;function l(r){const a=r&&r.position&&r.position[t]||{};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 QE(t){const l=Ih(t),r=Hv(t);if(l&&r)return{start:l,end:r}}function tu(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Ky(t.position):"start"in t||"end"in t?Ky(t):"line"in t||"column"in t?Ch(t):""}function Ch(t){return Zy(t&&t.line)+":"+Zy(t&&t.column)}function Ky(t){return Ch(t&&t.start)+"-"+Ch(t&&t.end)}function Zy(t){return t&&typeof t=="number"?t:1}class Ot extends Error{constructor(l,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let s="",o={},c=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof l=="string"?s=l:!o.cause&&l&&(c=!0,s=l.message,o.cause=l),!o.ruleId&&!o.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?o.ruleId=a:(o.source=a.slice(0,p),o.ruleId=a.slice(p+1))}if(!o.place&&o.ancestors&&o.ancestors){const p=o.ancestors[o.ancestors.length-1];p&&(o.place=p.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=tu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ot.prototype.file="";Ot.prototype.name="";Ot.prototype.reason="";Ot.prototype.message="";Ot.prototype.stack="";Ot.prototype.column=void 0;Ot.prototype.line=void 0;Ot.prototype.ancestors=void 0;Ot.prototype.cause=void 0;Ot.prototype.fatal=void 0;Ot.prototype.place=void 0;Ot.prototype.ruleId=void 0;Ot.prototype.source=void 0;const Jh={}.hasOwnProperty,FE=new Map,YE=/[A-Z]/g,GE=new Set(["table","tbody","thead","tfoot","tr"]),VE=new Set(["td","th"]),Qv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function XE(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=l.filePath||void 0;let a;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=eC(r,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=WE(r,l.jsx,l.jsxs)}const s={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:a,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Zh:NE,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},o=Fv(s,t,void 0);return o&&typeof o!="string"?o:s.create(t,s.Fragment,{children:o||void 0},void 0)}function Fv(t,l,r){if(l.type==="element")return KE(t,l,r);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return ZE(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return JE(t,l,r);if(l.type==="mdxjsEsm")return IE(t,l);if(l.type==="root")return PE(t,l,r);if(l.type==="text")return $E(t,l)}function KE(t,l,r){const a=t.schema;let s=a;l.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=Zh,t.schema=s),t.ancestors.push(l);const o=Gv(t,l.tagName,!1),c=tC(t,l);let d=$h(t,l);return GE.has(l.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!EE(p):!0})),Yv(t,c,o,l),Ph(c,d),t.ancestors.pop(),t.schema=a,t.create(l,o,c,r)}function ZE(t,l){if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}au(t,l.position)}function IE(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);au(t,l.position)}function JE(t,l,r){const a=t.schema;let s=a;l.name==="svg"&&a.space==="html"&&(s=Zh,t.schema=s),t.ancestors.push(l);const o=l.name===null?t.Fragment:Gv(t,l.name,!0),c=nC(t,l),d=$h(t,l);return Yv(t,c,o,l),Ph(c,d),t.ancestors.pop(),t.schema=a,t.create(l,o,c,r)}function PE(t,l,r){const a={};return Ph(a,$h(t,l)),t.create(l,t.Fragment,a,r)}function $E(t,l){return l.value}function Yv(t,l,r,a){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(l.node=a)}function Ph(t,l){if(l.length>0){const r=l.length>1?l:l[0];r&&(t.children=r)}}function WE(t,l,r){return a;function a(s,o,c,d){const m=Array.isArray(c.children)?r:l;return d?m(o,c,d):m(o,c)}}function eC(t,l){return r;function r(a,s,o,c){const d=Array.isArray(o.children),p=Ih(a);return l(s,o,c,d,{columnNumber:p?p.column-1:void 0,fileName:t,lineNumber:p?p.line:void 0},void 0)}}function tC(t,l){const r={};let a,s;for(s in l.properties)if(s!=="children"&&Jh.call(l.properties,s)){const o=lC(t,s,l.properties[s]);if(o){const[c,d]=o;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&VE.has(l.tagName)?a=d:r[c]=d}}if(a){const o=r.style||(r.style={});o[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function nC(t,l){const r={};for(const a of l.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const o=a.data.estree.body[0];o.type;const c=o.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else au(t,l.position);else{const s=a.name;let o;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,o=t.evaluater.evaluateExpression(d.expression)}else au(t,l.position);else o=a.value===null?!0:a.value;r[s]=o}return r}function $h(t,l){const r=[];let a=-1;const s=t.passKeys?new Map:FE;for(;++a<l.children.length;){const o=l.children[a];let c;if(t.passKeys){const p=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(p){const m=s.get(p)||0;c=p+"-"+m,s.set(p,m+1)}}const d=Fv(t,o,c);d!==void 0&&r.push(d)}return r}function lC(t,l,r){const a=OE(t.schema,l);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?bE(r):_E(r)),a.property==="style"){let s=typeof r=="object"?r:iC(t,String(r));return t.stylePropertyNameCase==="css"&&(s=rC(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&a.space?AE[a.property]||a.property:a.attribute,r]}}function iC(t,l){try{return qE(l,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const a=r,s=new Ot("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=Qv+"#cannot-parse-style-attribute",s}}function Gv(t,l,r){let a;if(!r)a={type:"Literal",value:l};else if(l.includes(".")){const s=l.split(".");let o=-1,c;for(;++o<s.length;){const d=Hy(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(o&&d.type==="Literal"),optional:!1}:d}a=c}else a=Hy(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const s=a.value;return Jh.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(a);au(t)}function au(t,l){const r=new Ot("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=Qv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function rC(t){const l={};let r;for(r in t)Jh.call(t,r)&&(l[aC(r)]=t[r]);return l}function aC(t){let l=t.replace(YE,uC);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function uC(t){return"-"+t.toLowerCase()}const Yf={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"]},sC={};function Wh(t,l){const r=sC,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Vv(t,a,s)}function Vv(t,l,r){if(oC(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Iy(t.children,l,r)}return Array.isArray(t)?Iy(t,l,r):""}function Iy(t,l,r){const a=[];let s=-1;for(;++s<t.length;)a[s]=Vv(t[s],l,r);return a.join("")}function oC(t){return!!(t&&typeof t=="object")}const Jy=document.createElement("i");function ed(t){const l="&"+t+";";Jy.innerHTML=l;const r=Jy.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===l?!1:r}function an(t,l,r,a){const s=t.length;let o=0,c;if(l<0?l=-l>s?0:s+l:l=l>s?s:l,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(l,r),t.splice(...c);else for(r&&t.splice(l,r);o<a.length;)c=a.slice(o,o+1e4),c.unshift(l,0),t.splice(...c),o+=1e4,l+=1e4}function xn(t,l){return t.length>0?(an(t,t.length,0,l),t):l}const Py={}.hasOwnProperty;function Xv(t){const l={};let r=-1;for(;++r<t.length;)cC(l,t[r]);return l}function cC(t,l){let r;for(r in l){const s=(Py.call(t,r)?t[r]:void 0)||(t[r]={}),o=l[r];let c;if(o)for(c in o){Py.call(s,c)||(s[c]=[]);const d=o[c];fC(s[c],Array.isArray(d)?d:d?[d]:[])}}}function fC(t,l){let r=-1;const a=[];for(;++r<l.length;)(l[r].add==="after"?t:a).push(l[r]);an(t,0,0,a)}function Kv(t,l){const r=Number.parseInt(t,l);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function zn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lt=ii(/[A-Za-z]/),Rt=ii(/[\dA-Za-z]/),hC=ii(/[#-'*+\--9=?A-Z^-~]/);function to(t){return t!==null&&(t<32||t===127)}const kh=ii(/\d/),dC=ii(/[\dA-Fa-f]/),mC=ii(/[!-/:-@[-`{-~]/);function pe(t){return t!==null&&t<-2}function Je(t){return t!==null&&(t<0||t===32)}function Oe(t){return t===-2||t===-1||t===32}const so=ii(new RegExp("\\p{P}|\\p{S}","u")),Ui=ii(/\s/);function ii(t){return l;function l(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Pr(t){const l=[];let r=-1,a=0,s=0;for(;++r<t.length;){const o=t.charCodeAt(r);let c="";if(o===37&&Rt(t.charCodeAt(r+1))&&Rt(t.charCodeAt(r+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const d=t.charCodeAt(r+1);o<56320&&d>56319&&d<57344?(c=String.fromCharCode(o,d),s=1):c="�"}else c=String.fromCharCode(o);c&&(l.push(t.slice(a,r),encodeURIComponent(c)),a=r+s+1,c=""),s&&(r+=s,s=0)}return l.join("")+t.slice(a)}function Le(t,l,r,a){const s=a?a-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(p){return Oe(p)?(t.enter(r),d(p)):l(p)}function d(p){return Oe(p)&&o++<s?(t.consume(p),d):(t.exit(r),l(p))}}const pC={tokenize:gC};function gC(t){const l=t.attempt(this.parser.constructs.contentInitial,a,s);let r;return l;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Le(t,l,"linePrefix")}function s(d){return t.enter("paragraph"),o(d)}function o(d){const p=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return pe(d)?(t.consume(d),t.exit("chunkText"),o):(t.consume(d),c)}}const yC={tokenize:bC},$y={tokenize:vC};function bC(t){const l=this,r=[];let a=0,s,o,c;return d;function d(D){if(a<r.length){const Y=r[a];return l.containerState=Y[1],t.attempt(Y[0].continuation,p,m)(D)}return m(D)}function p(D){if(a++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,s&&U();const Y=l.events.length;let P=Y,B;for(;P--;)if(l.events[P][0]==="exit"&&l.events[P][1].type==="chunkFlow"){B=l.events[P][1].end;break}k(a);let ee=Y;for(;ee<l.events.length;)l.events[ee][1].end={...B},ee++;return an(l.events,P+1,0,l.events.slice(Y)),l.events.length=ee,m(D)}return d(D)}function m(D){if(a===r.length){if(!s)return x(D);if(s.currentConstruct&&s.currentConstruct.concrete)return C(D);l.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return l.containerState={},t.check($y,y,g)(D)}function y(D){return s&&U(),k(a),x(D)}function g(D){return l.parser.lazy[l.now().line]=a!==r.length,c=l.now().offset,C(D)}function x(D){return l.containerState={},t.attempt($y,v,C)(D)}function v(D){return a++,r.push([l.currentConstruct,l.containerState]),x(D)}function C(D){if(D===null){s&&U(),k(0),t.consume(D);return}return s=s||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),z(D)}function z(D){if(D===null){T(t.exit("chunkFlow"),!0),k(0),t.consume(D);return}return pe(D)?(t.consume(D),T(t.exit("chunkFlow")),a=0,l.interrupt=void 0,d):(t.consume(D),z)}function T(D,Y){const P=l.sliceStream(D);if(Y&&P.push(null),D.previous=o,o&&(o.next=D),o=D,s.defineSkip(D.start),s.write(P),l.parser.lazy[D.start.line]){let B=s.events.length;for(;B--;)if(s.events[B][1].start.offset<c&&(!s.events[B][1].end||s.events[B][1].end.offset>c))return;const ee=l.events.length;let V=ee,le,j;for(;V--;)if(l.events[V][0]==="exit"&&l.events[V][1].type==="chunkFlow"){if(le){j=l.events[V][1].end;break}le=!0}for(k(a),B=ee;B<l.events.length;)l.events[B][1].end={...j},B++;an(l.events,V+1,0,l.events.slice(ee)),l.events.length=B}}function k(D){let Y=r.length;for(;Y-- >D;){const P=r[Y];l.containerState=P[1],P[0].exit.call(l,t)}r.length=D}function U(){s.write([null]),o=void 0,s=void 0,l.containerState._closeFlow=void 0}}function vC(t,l,r){return Le(t,t.attempt(this.parser.constructs.document,l,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vr(t){if(t===null||Je(t)||Ui(t))return 1;if(so(t))return 2}function oo(t,l,r){const a=[];let s=-1;for(;++s<t.length;){const o=t[s].resolveAll;o&&!a.includes(o)&&(l=o(l,r),a.push(o))}return l}const Th={name:"attention",resolveAll:xC,tokenize:SC};function xC(t,l){let r=-1,a,s,o,c,d,p,m,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(a=r;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&l.sliceSerialize(t[a][1]).charCodeAt(0)===l.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[a][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;p=t[a][1].end.offset-t[a][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[a][1].end},x={...t[r][1].start};Wy(g,-p),Wy(x,p),c={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...t[a][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:x},o={type:p>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[r][1].start}},s={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[a][1].end={...c.start},t[r][1].start={...d.end},m=[],t[a][1].end.offset-t[a][1].start.offset&&(m=xn(m,[["enter",t[a][1],l],["exit",t[a][1],l]])),m=xn(m,[["enter",s,l],["enter",c,l],["exit",c,l],["enter",o,l]]),m=xn(m,oo(l.parser.constructs.insideSpan.null,t.slice(a+1,r),l)),m=xn(m,[["exit",o,l],["enter",d,l],["exit",d,l],["exit",s,l]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,m=xn(m,[["enter",t[r][1],l],["exit",t[r][1],l]])):y=0,an(t,a-1,r-a+3,m),r=a+m.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function SC(t,l){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Vr(a);let o;return c;function c(p){return o=p,t.enter("attentionSequence"),d(p)}function d(p){if(p===o)return t.consume(p),d;const m=t.exit("attentionSequence"),y=Vr(p),g=!y||y===2&&s||r.includes(p),x=!s||s===2&&y||r.includes(a);return m._open=!!(o===42?g:g&&(s||!x)),m._close=!!(o===42?x:x&&(y||!g)),l(p)}}function Wy(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const wC={name:"autolink",tokenize:EC};function EC(t,l,r){let a=0;return s;function s(v){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(v){return Lt(v)?(t.consume(v),c):v===64?r(v):m(v)}function c(v){return v===43||v===45||v===46||Rt(v)?(a=1,d(v)):m(v)}function d(v){return v===58?(t.consume(v),a=0,p):(v===43||v===45||v===46||Rt(v))&&a++<32?(t.consume(v),d):(a=0,m(v))}function p(v){return v===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),l):v===null||v===32||v===60||to(v)?r(v):(t.consume(v),p)}function m(v){return v===64?(t.consume(v),y):hC(v)?(t.consume(v),m):r(v)}function y(v){return Rt(v)?g(v):r(v)}function g(v){return v===46?(t.consume(v),a=0,y):v===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),l):x(v)}function x(v){if((v===45||Rt(v))&&a++<63){const C=v===45?x:g;return t.consume(v),C}return r(v)}}const vu={partial:!0,tokenize:CC};function CC(t,l,r){return a;function a(o){return Oe(o)?Le(t,s,"linePrefix")(o):s(o)}function s(o){return o===null||pe(o)?l(o):r(o)}}const Zv={continuation:{tokenize:TC},exit:AC,name:"blockQuote",tokenize:kC};function kC(t,l,r){const a=this;return s;function s(c){if(c===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),o}return r(c)}function o(c){return Oe(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(c))}}function TC(t,l,r){const a=this;return s;function s(c){return Oe(c)?Le(t,o,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return t.attempt(Zv,l,r)(c)}}function AC(t){t.exit("blockQuote")}const Iv={name:"characterEscape",tokenize:zC};function zC(t,l,r){return a;function a(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),s}function s(o){return mC(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):r(o)}}const Jv={name:"characterReference",tokenize:RC};function RC(t,l,r){const a=this;let s=0,o,c;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),p}function p(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),o=31,c=Rt,y(g))}function m(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,c=dC,y):(t.enter("characterReferenceValue"),o=7,c=kh,y(g))}function y(g){if(g===59&&s){const x=t.exit("characterReferenceValue");return c===Rt&&!ed(a.sliceSerialize(x))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return c(g)&&s++<o?(t.consume(g),y):r(g)}}const eb={partial:!0,tokenize:MC},tb={concrete:!0,name:"codeFenced",tokenize:OC};function OC(t,l,r){const a=this,s={partial:!0,tokenize:P};let o=0,c=0,d;return p;function p(B){return m(B)}function m(B){const ee=a.events[a.events.length-1];return o=ee&&ee[1].type==="linePrefix"?ee[2].sliceSerialize(ee[1],!0).length:0,d=B,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(B)}function y(B){return B===d?(c++,t.consume(B),y):c<3?r(B):(t.exit("codeFencedFenceSequence"),Oe(B)?Le(t,g,"whitespace")(B):g(B))}function g(B){return B===null||pe(B)?(t.exit("codeFencedFence"),a.interrupt?l(B):t.check(eb,z,Y)(B)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),x(B))}function x(B){return B===null||pe(B)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(B)):Oe(B)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Le(t,v,"whitespace")(B)):B===96&&B===d?r(B):(t.consume(B),x)}function v(B){return B===null||pe(B)?g(B):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),C(B))}function C(B){return B===null||pe(B)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(B)):B===96&&B===d?r(B):(t.consume(B),C)}function z(B){return t.attempt(s,Y,T)(B)}function T(B){return t.enter("lineEnding"),t.consume(B),t.exit("lineEnding"),k}function k(B){return o>0&&Oe(B)?Le(t,U,"linePrefix",o+1)(B):U(B)}function U(B){return B===null||pe(B)?t.check(eb,z,Y)(B):(t.enter("codeFlowValue"),D(B))}function D(B){return B===null||pe(B)?(t.exit("codeFlowValue"),U(B)):(t.consume(B),D)}function Y(B){return t.exit("codeFenced"),l(B)}function P(B,ee,V){let le=0;return j;function j(ne){return B.enter("lineEnding"),B.consume(ne),B.exit("lineEnding"),ie}function ie(ne){return B.enter("codeFencedFence"),Oe(ne)?Le(B,$,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):$(ne)}function $(ne){return ne===d?(B.enter("codeFencedFenceSequence"),Se(ne)):V(ne)}function Se(ne){return ne===d?(le++,B.consume(ne),Se):le>=c?(B.exit("codeFencedFenceSequence"),Oe(ne)?Le(B,se,"whitespace")(ne):se(ne)):V(ne)}function se(ne){return ne===null||pe(ne)?(B.exit("codeFencedFence"),ee(ne)):V(ne)}}}function MC(t,l,r){const a=this;return s;function s(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o)}function o(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}const Gf={name:"codeIndented",tokenize:NC},DC={partial:!0,tokenize:_C};function NC(t,l,r){const a=this;return s;function s(m){return t.enter("codeIndented"),Le(t,o,"linePrefix",5)(m)}function o(m){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?p(m):pe(m)?t.attempt(DC,c,p)(m):(t.enter("codeFlowValue"),d(m))}function d(m){return m===null||pe(m)?(t.exit("codeFlowValue"),c(m)):(t.consume(m),d)}function p(m){return t.exit("codeIndented"),l(m)}}function _C(t,l,r){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?r(c):pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):Le(t,o,"linePrefix",5)(c)}function o(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):pe(c)?s(c):r(c)}}const jC={name:"codeText",previous:UC,resolve:LC,tokenize:BC};function LC(t){let l=t.length-4,r=3,a,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(a=r;++a<l;)if(t[a][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[l][1].type="codeTextPadding",r+=2,l-=2;break}}for(a=r-1,l++;++a<=l;)s===void 0?a!==l&&t[a][1].type!=="lineEnding"&&(s=a):(a===l||t[a][1].type==="lineEnding")&&(t[s][1].type="codeTextData",a!==s+2&&(t[s][1].end=t[a-1][1].end,t.splice(s+2,a-s-2),l-=a-s-2,a=s+2),s=void 0);return t}function UC(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function BC(t,l,r){let a=0,s,o;return c;function c(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),a++,d):(t.exit("codeTextSequence"),p(g))}function p(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),p):g===96?(o=t.enter("codeTextSequence"),s=0,y(g)):pe(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),p):(t.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||pe(g)?(t.exit("codeTextData"),p(g)):(t.consume(g),m)}function y(g){return g===96?(t.consume(g),s++,y):s===a?(t.exit("codeTextSequence"),t.exit("codeText"),l(g)):(o.type="codeTextData",m(g))}}class HC{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(l,a):l>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(l,r,a){const s=r||0;this.setCursor(Math.trunc(l));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&$a(this.left,a),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),$a(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),$a(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const r=this.left.splice(l,Number.POSITIVE_INFINITY);$a(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);$a(this.left,r.reverse())}}}function $a(t,l){let r=0;if(l.length<1e4)t.push(...l);else for(;r<l.length;)t.push(...l.slice(r,r+1e4)),r+=1e4}function Pv(t){const l={};let r=-1,a,s,o,c,d,p,m;const y=new HC(t);for(;++r<y.length;){for(;r in l;)r=l[r];if(a=y.get(r),r&&a[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,o=0,o<p.length&&p[o][1].type==="lineEndingBlank"&&(o+=2),o<p.length&&p[o][1].type==="content"))for(;++o<p.length&&p[o][1].type!=="content";)p[o][1].type==="chunkText"&&(p[o][1]._isInFirstContentOfListItem=!0,o++);if(a[0]==="enter")a[1].contentType&&(Object.assign(l,qC(y,r)),r=l[r],m=!0);else if(a[1]._container){for(o=r,s=void 0;o--;)if(c=y.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(a[1].end={...y.get(s)[1].start},d=y.slice(s,r),d.unshift(a),y.splice(s,r-s+1,d))}}return an(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function qC(t,l){const r=t.get(l)[1],a=t.get(l)[2];let s=l-1;const o=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],m={};let y,g,x=-1,v=r,C=0,z=0;const T=[z];for(;v;){for(;t.get(++s)[1]!==v;);o.push(s),v._tokenizer||(y=a.sliceStream(v),v.next||y.push(null),g&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=r;++x<d.length;)d[x][0]==="exit"&&d[x-1][0]==="enter"&&d[x][1].type===d[x-1][1].type&&d[x][1].start.line!==d[x][1].end.line&&(z=x+1,T.push(z),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):T.pop(),x=T.length;x--;){const k=d.slice(T[x],T[x+1]),U=o.pop();p.push([U,U+k.length-1]),t.splice(U,2,k)}for(p.reverse(),x=-1;++x<p.length;)m[C+p[x][0]]=C+p[x][1],C+=p[x][1]-p[x][0]-1;return m}const QC={resolve:YC,tokenize:GC},FC={partial:!0,tokenize:VC};function YC(t){return Pv(t),t}function GC(t,l){let r;return a;function a(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?o(d):pe(d)?t.check(FC,c,o)(d):(t.consume(d),s)}function o(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function c(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function VC(t,l,r){const a=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Le(t,o,"linePrefix")}function o(c){if(c===null||pe(c))return r(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?l(c):t.interrupt(a.parser.constructs.flow,r,l)(c)}}function $v(t,l,r,a,s,o,c,d,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return g;function g(k){return k===60?(t.enter(a),t.enter(s),t.enter(o),t.consume(k),t.exit(o),x):k===null||k===32||k===41||to(k)?r(k):(t.enter(a),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),z(k))}function x(k){return k===62?(t.enter(o),t.consume(k),t.exit(o),t.exit(s),t.exit(a),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),v(k))}function v(k){return k===62?(t.exit("chunkString"),t.exit(d),x(k)):k===null||k===60||pe(k)?r(k):(t.consume(k),k===92?C:v)}function C(k){return k===60||k===62||k===92?(t.consume(k),v):v(k)}function z(k){return!y&&(k===null||k===41||Je(k))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(a),l(k)):y<m&&k===40?(t.consume(k),y++,z):k===41?(t.consume(k),y--,z):k===null||k===32||k===40||to(k)?r(k):(t.consume(k),k===92?T:z)}function T(k){return k===40||k===41||k===92?(t.consume(k),z):z(k)}}function Wv(t,l,r,a,s,o){const c=this;let d=0,p;return m;function m(v){return t.enter(a),t.enter(s),t.consume(v),t.exit(s),t.enter(o),y}function y(v){return d>999||v===null||v===91||v===93&&!p||v===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(v):v===93?(t.exit(o),t.enter(s),t.consume(v),t.exit(s),t.exit(a),l):pe(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||pe(v)||d++>999?(t.exit("chunkString"),y(v)):(t.consume(v),p||(p=!Oe(v)),v===92?x:g)}function x(v){return v===91||v===92||v===93?(t.consume(v),d++,g):g(v)}}function ex(t,l,r,a,s,o){let c;return d;function d(x){return x===34||x===39||x===40?(t.enter(a),t.enter(s),t.consume(x),t.exit(s),c=x===40?41:x,p):r(x)}function p(x){return x===c?(t.enter(s),t.consume(x),t.exit(s),t.exit(a),l):(t.enter(o),m(x))}function m(x){return x===c?(t.exit(o),p(c)):x===null?r(x):pe(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),Le(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===c||x===null||pe(x)?(t.exit("chunkString"),m(x)):(t.consume(x),x===92?g:y)}function g(x){return x===c||x===92?(t.consume(x),y):y(x)}}function nu(t,l){let r;return a;function a(s){return pe(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,a):Oe(s)?Le(t,a,r?"linePrefix":"lineSuffix")(s):l(s)}}const XC={name:"definition",tokenize:ZC},KC={partial:!0,tokenize:IC};function ZC(t,l,r){const a=this;let s;return o;function o(v){return t.enter("definition"),c(v)}function c(v){return Wv.call(a,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function d(v){return s=zn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),v===58?(t.enter("definitionMarker"),t.consume(v),t.exit("definitionMarker"),p):r(v)}function p(v){return Je(v)?nu(t,m)(v):m(v)}function m(v){return $v(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function y(v){return t.attempt(KC,g,g)(v)}function g(v){return Oe(v)?Le(t,x,"whitespace")(v):x(v)}function x(v){return v===null||pe(v)?(t.exit("definition"),a.parser.defined.push(s),l(v)):r(v)}}function IC(t,l,r){return a;function a(d){return Je(d)?nu(t,s)(d):r(d)}function s(d){return ex(t,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return Oe(d)?Le(t,c,"whitespace")(d):c(d)}function c(d){return d===null||pe(d)?l(d):r(d)}}const JC={name:"hardBreakEscape",tokenize:PC};function PC(t,l,r){return a;function a(o){return t.enter("hardBreakEscape"),t.consume(o),s}function s(o){return pe(o)?(t.exit("hardBreakEscape"),l(o)):r(o)}}const $C={name:"headingAtx",resolve:WC,tokenize:ek};function WC(t,l){let r=t.length-2,a=3,s,o;return t[a][1].type==="whitespace"&&(a+=2),r-2>a&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&t[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(s={type:"atxHeadingText",start:t[a][1].start,end:t[r][1].end},o={type:"chunkText",start:t[a][1].start,end:t[r][1].end,contentType:"text"},an(t,a,r-a+1,[["enter",s,l],["enter",o,l],["exit",o,l],["exit",s,l]])),t}function ek(t,l,r){let a=0;return s;function s(y){return t.enter("atxHeading"),o(y)}function o(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(t.consume(y),c):y===null||Je(y)?(t.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),p(y)):y===null||pe(y)?(t.exit("atxHeading"),l(y)):Oe(y)?Le(t,d,"whitespace")(y):(t.enter("atxHeadingText"),m(y))}function p(y){return y===35?(t.consume(y),p):(t.exit("atxHeadingSequence"),d(y))}function m(y){return y===null||y===35||Je(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),m)}}const tk=["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"],nb=["pre","script","style","textarea"],nk={concrete:!0,name:"htmlFlow",resolveTo:rk,tokenize:ak},lk={partial:!0,tokenize:sk},ik={partial:!0,tokenize:uk};function rk(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function ak(t,l,r){const a=this;let s,o,c,d,p;return m;function m(w){return y(w)}function y(w){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(w),g}function g(w){return w===33?(t.consume(w),x):w===47?(t.consume(w),o=!0,z):w===63?(t.consume(w),s=3,a.interrupt?l:A):Lt(w)?(t.consume(w),c=String.fromCharCode(w),T):r(w)}function x(w){return w===45?(t.consume(w),s=2,v):w===91?(t.consume(w),s=5,d=0,C):Lt(w)?(t.consume(w),s=4,a.interrupt?l:A):r(w)}function v(w){return w===45?(t.consume(w),a.interrupt?l:A):r(w)}function C(w){const ae="CDATA[";return w===ae.charCodeAt(d++)?(t.consume(w),d===ae.length?a.interrupt?l:$:C):r(w)}function z(w){return Lt(w)?(t.consume(w),c=String.fromCharCode(w),T):r(w)}function T(w){if(w===null||w===47||w===62||Je(w)){const ae=w===47,ye=c.toLowerCase();return!ae&&!o&&nb.includes(ye)?(s=1,a.interrupt?l(w):$(w)):tk.includes(c.toLowerCase())?(s=6,ae?(t.consume(w),k):a.interrupt?l(w):$(w)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(w):o?U(w):D(w))}return w===45||Rt(w)?(t.consume(w),c+=String.fromCharCode(w),T):r(w)}function k(w){return w===62?(t.consume(w),a.interrupt?l:$):r(w)}function U(w){return Oe(w)?(t.consume(w),U):j(w)}function D(w){return w===47?(t.consume(w),j):w===58||w===95||Lt(w)?(t.consume(w),Y):Oe(w)?(t.consume(w),D):j(w)}function Y(w){return w===45||w===46||w===58||w===95||Rt(w)?(t.consume(w),Y):P(w)}function P(w){return w===61?(t.consume(w),B):Oe(w)?(t.consume(w),P):D(w)}function B(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(t.consume(w),p=w,ee):Oe(w)?(t.consume(w),B):V(w)}function ee(w){return w===p?(t.consume(w),p=null,le):w===null||pe(w)?r(w):(t.consume(w),ee)}function V(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Je(w)?P(w):(t.consume(w),V)}function le(w){return w===47||w===62||Oe(w)?D(w):r(w)}function j(w){return w===62?(t.consume(w),ie):r(w)}function ie(w){return w===null||pe(w)?$(w):Oe(w)?(t.consume(w),ie):r(w)}function $(w){return w===45&&s===2?(t.consume(w),Q):w===60&&s===1?(t.consume(w),W):w===62&&s===4?(t.consume(w),M):w===63&&s===3?(t.consume(w),A):w===93&&s===5?(t.consume(w),ve):pe(w)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(lk,K,Se)(w)):w===null||pe(w)?(t.exit("htmlFlowData"),Se(w)):(t.consume(w),$)}function Se(w){return t.check(ik,se,K)(w)}function se(w){return t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),ne}function ne(w){return w===null||pe(w)?Se(w):(t.enter("htmlFlowData"),$(w))}function Q(w){return w===45?(t.consume(w),A):$(w)}function W(w){return w===47?(t.consume(w),c="",ce):$(w)}function ce(w){if(w===62){const ae=c.toLowerCase();return nb.includes(ae)?(t.consume(w),M):$(w)}return Lt(w)&&c.length<8?(t.consume(w),c+=String.fromCharCode(w),ce):$(w)}function ve(w){return w===93?(t.consume(w),A):$(w)}function A(w){return w===62?(t.consume(w),M):w===45&&s===2?(t.consume(w),A):$(w)}function M(w){return w===null||pe(w)?(t.exit("htmlFlowData"),K(w)):(t.consume(w),M)}function K(w){return t.exit("htmlFlow"),l(w)}}function uk(t,l,r){const a=this;return s;function s(c){return pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):r(c)}function o(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}function sk(t,l,r){return a;function a(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(vu,l,r)}}const ok={name:"htmlText",tokenize:ck};function ck(t,l,r){const a=this;let s,o,c;return d;function d(A){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(A),p}function p(A){return A===33?(t.consume(A),m):A===47?(t.consume(A),P):A===63?(t.consume(A),D):Lt(A)?(t.consume(A),V):r(A)}function m(A){return A===45?(t.consume(A),y):A===91?(t.consume(A),o=0,C):Lt(A)?(t.consume(A),U):r(A)}function y(A){return A===45?(t.consume(A),v):r(A)}function g(A){return A===null?r(A):A===45?(t.consume(A),x):pe(A)?(c=g,W(A)):(t.consume(A),g)}function x(A){return A===45?(t.consume(A),v):g(A)}function v(A){return A===62?Q(A):A===45?x(A):g(A)}function C(A){const M="CDATA[";return A===M.charCodeAt(o++)?(t.consume(A),o===M.length?z:C):r(A)}function z(A){return A===null?r(A):A===93?(t.consume(A),T):pe(A)?(c=z,W(A)):(t.consume(A),z)}function T(A){return A===93?(t.consume(A),k):z(A)}function k(A){return A===62?Q(A):A===93?(t.consume(A),k):z(A)}function U(A){return A===null||A===62?Q(A):pe(A)?(c=U,W(A)):(t.consume(A),U)}function D(A){return A===null?r(A):A===63?(t.consume(A),Y):pe(A)?(c=D,W(A)):(t.consume(A),D)}function Y(A){return A===62?Q(A):D(A)}function P(A){return Lt(A)?(t.consume(A),B):r(A)}function B(A){return A===45||Rt(A)?(t.consume(A),B):ee(A)}function ee(A){return pe(A)?(c=ee,W(A)):Oe(A)?(t.consume(A),ee):Q(A)}function V(A){return A===45||Rt(A)?(t.consume(A),V):A===47||A===62||Je(A)?le(A):r(A)}function le(A){return A===47?(t.consume(A),Q):A===58||A===95||Lt(A)?(t.consume(A),j):pe(A)?(c=le,W(A)):Oe(A)?(t.consume(A),le):Q(A)}function j(A){return A===45||A===46||A===58||A===95||Rt(A)?(t.consume(A),j):ie(A)}function ie(A){return A===61?(t.consume(A),$):pe(A)?(c=ie,W(A)):Oe(A)?(t.consume(A),ie):le(A)}function $(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(t.consume(A),s=A,Se):pe(A)?(c=$,W(A)):Oe(A)?(t.consume(A),$):(t.consume(A),se)}function Se(A){return A===s?(t.consume(A),s=void 0,ne):A===null?r(A):pe(A)?(c=Se,W(A)):(t.consume(A),Se)}function se(A){return A===null||A===34||A===39||A===60||A===61||A===96?r(A):A===47||A===62||Je(A)?le(A):(t.consume(A),se)}function ne(A){return A===47||A===62||Je(A)?le(A):r(A)}function Q(A){return A===62?(t.consume(A),t.exit("htmlTextData"),t.exit("htmlText"),l):r(A)}function W(A){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),ce}function ce(A){return Oe(A)?Le(t,ve,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):ve(A)}function ve(A){return t.enter("htmlTextData"),c(A)}}const td={name:"labelEnd",resolveAll:mk,resolveTo:pk,tokenize:gk},fk={tokenize:yk},hk={tokenize:bk},dk={tokenize:vk};function mk(t){let l=-1;const r=[];for(;++l<t.length;){const a=t[l][1];if(r.push(t[l]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",l+=s}}return t.length!==r.length&&an(t,0,t.length,r),t}function pk(t,l){let r=t.length,a=0,s,o,c,d;for(;r--;)if(s=t[r][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=r,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(c=r);const p={type:t[o][1].type==="labelLink"?"link":"image",start:{...t[o][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[o][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[o+a+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",p,l],["enter",m,l]],d=xn(d,t.slice(o+1,o+a+3)),d=xn(d,[["enter",y,l]]),d=xn(d,oo(l.parser.constructs.insideSpan.null,t.slice(o+a+4,c-3),l)),d=xn(d,[["exit",y,l],t[c-2],t[c-1],["exit",m,l]]),d=xn(d,t.slice(c+1)),d=xn(d,[["exit",p,l]]),an(t,o,t.length,d),t}function gk(t,l,r){const a=this;let s=a.events.length,o,c;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){o=a.events[s][1];break}return d;function d(x){return o?o._inactive?g(x):(c=a.parser.defined.includes(zn(a.sliceSerialize({start:o.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(x),t.exit("labelMarker"),t.exit("labelEnd"),p):r(x)}function p(x){return x===40?t.attempt(fk,y,c?y:g)(x):x===91?t.attempt(hk,y,c?m:g)(x):c?y(x):g(x)}function m(x){return t.attempt(dk,y,g)(x)}function y(x){return l(x)}function g(x){return o._balanced=!0,r(x)}}function yk(t,l,r){return a;function a(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),s}function s(g){return Je(g)?nu(t,o)(g):o(g)}function o(g){return g===41?y(g):$v(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Je(g)?nu(t,p)(g):y(g)}function d(g){return r(g)}function p(g){return g===34||g===39||g===40?ex(t,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return Je(g)?nu(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),l):r(g)}}function bk(t,l,r){const a=this;return s;function s(d){return Wv.call(a,t,o,c,"reference","referenceMarker","referenceString")(d)}function o(d){return a.parser.defined.includes(zn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?l(d):r(d)}function c(d){return r(d)}}function vk(t,l,r){return a;function a(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),s}function s(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),l):r(o)}}const xk={name:"labelStartImage",resolveAll:td.resolveAll,tokenize:Sk};function Sk(t,l,r){const a=this;return s;function s(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),o}function o(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):l(d)}}const wk={name:"labelStartLink",resolveAll:td.resolveAll,tokenize:Ek};function Ek(t,l,r){const a=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):l(c)}}const Vf={name:"lineEnding",tokenize:Ck};function Ck(t,l){return r;function r(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Le(t,l,"linePrefix")}}const Ps={name:"thematicBreak",tokenize:kk};function kk(t,l,r){let a=0,s;return o;function o(m){return t.enter("thematicBreak"),c(m)}function c(m){return s=m,d(m)}function d(m){return m===s?(t.enter("thematicBreakSequence"),p(m)):a>=3&&(m===null||pe(m))?(t.exit("thematicBreak"),l(m)):r(m)}function p(m){return m===s?(t.consume(m),a++,p):(t.exit("thematicBreakSequence"),Oe(m)?Le(t,d,"whitespace")(m):d(m))}}const Vt={continuation:{tokenize:Rk},exit:Mk,name:"list",tokenize:zk},Tk={partial:!0,tokenize:Dk},Ak={partial:!0,tokenize:Ok};function zk(t,l,r){const a=this,s=a.events[a.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(v){const C=a.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!a.containerState.marker||v===a.containerState.marker:kh(v)){if(a.containerState.type||(a.containerState.type=C,t.enter(C,{_container:!0})),C==="listUnordered")return t.enter("listItemPrefix"),v===42||v===45?t.check(Ps,r,m)(v):m(v);if(!a.interrupt||v===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(v)}return r(v)}function p(v){return kh(v)&&++c<10?(t.consume(v),p):(!a.interrupt||c<2)&&(a.containerState.marker?v===a.containerState.marker:v===41||v===46)?(t.exit("listItemValue"),m(v)):r(v)}function m(v){return t.enter("listItemMarker"),t.consume(v),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||v,t.check(vu,a.interrupt?r:y,t.attempt(Tk,x,g))}function y(v){return a.containerState.initialBlankLine=!0,o++,x(v)}function g(v){return Oe(v)?(t.enter("listItemPrefixWhitespace"),t.consume(v),t.exit("listItemPrefixWhitespace"),x):r(v)}function x(v){return a.containerState.size=o+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(v)}}function Rk(t,l,r){const a=this;return a.containerState._closeFlow=void 0,t.check(vu,s,o);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Le(t,l,"listItemIndent",a.containerState.size+1)(d)}function o(d){return a.containerState.furtherBlankLines||!Oe(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(Ak,l,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,Le(t,t.attempt(Vt,l,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function Ok(t,l,r){const a=this;return Le(t,s,"listItemIndent",a.containerState.size+1);function s(o){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?l(o):r(o)}}function Mk(t){t.exit(this.containerState.type)}function Dk(t,l,r){const a=this;return Le(t,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=a.events[a.events.length-1];return!Oe(o)&&c&&c[1].type==="listItemPrefixWhitespace"?l(o):r(o)}}const lb={name:"setextUnderline",resolveTo:Nk,tokenize:_k};function Nk(t,l){let r=t.length,a,s,o;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){a=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!o&&t[r][1].type==="definition"&&(o=r);const c={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",o?(t.splice(s,0,["enter",c,l]),t.splice(o+1,0,["exit",t[a][1],l]),t[a][1].end={...t[o][1].end}):t[a][1]=c,t.push(["exit",c,l]),t}function _k(t,l,r){const a=this;let s;return o;function o(m){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(t.enter("setextHeadingLine"),s=m,c(m)):r(m)}function c(m){return t.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===s?(t.consume(m),d):(t.exit("setextHeadingLineSequence"),Oe(m)?Le(t,p,"lineSuffix")(m):p(m))}function p(m){return m===null||pe(m)?(t.exit("setextHeadingLine"),l(m)):r(m)}}const jk={tokenize:Lk};function Lk(t){const l=this,r=t.attempt(vu,a,t.attempt(this.parser.constructs.flowInitial,s,Le(t,t.attempt(this.parser.constructs.flow,s,t.attempt(QC,s)),"linePrefix")));return r;function a(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),l.currentConstruct=void 0,r}function s(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),l.currentConstruct=void 0,r}}const Uk={resolveAll:nx()},Bk=tx("string"),Hk=tx("text");function tx(t){return{resolveAll:nx(t==="text"?qk:void 0),tokenize:l};function l(r){const a=this,s=this.parser.constructs[t],o=r.attempt(s,c,d);return c;function c(y){return m(y)?o(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),p}function p(y){return m(y)?(r.exit("data"),o(y)):(r.consume(y),p)}function m(y){if(y===null)return!0;const g=s[y];let x=-1;if(g)for(;++x<g.length;){const v=g[x];if(!v.previous||v.previous.call(a,a.previous))return!0}return!1}}}function nx(t){return l;function l(r,a){let s=-1,o;for(;++s<=r.length;)o===void 0?r[s]&&r[s][1].type==="data"&&(o=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==o+2&&(r[o][1].end=r[s-1][1].end,r.splice(o+2,s-o-2),s=o+2),o=void 0);return t?t(r,a):r}}function qk(t,l){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const a=t[r-1][1],s=l.sliceStream(a);let o=s.length,c=-1,d=0,p;for(;o--;){const m=s[o];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){o++;break}}if(l._contentTypeTextTrailing&&r===t.length&&(d=0),d){const m={type:r===t.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:a.start._bufferIndex+c,_index:a.start._index+o,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):(t.splice(r,0,["enter",m,l],["exit",m,l]),r+=2)}r++}return t}const Qk={42:Vt,43:Vt,45:Vt,48:Vt,49:Vt,50:Vt,51:Vt,52:Vt,53:Vt,54:Vt,55:Vt,56:Vt,57:Vt,62:Zv},Fk={91:XC},Yk={[-2]:Gf,[-1]:Gf,32:Gf},Gk={35:$C,42:Ps,45:[lb,Ps],60:nk,61:lb,95:Ps,96:tb,126:tb},Vk={38:Jv,92:Iv},Xk={[-5]:Vf,[-4]:Vf,[-3]:Vf,33:xk,38:Jv,42:Th,60:[wC,ok],91:wk,92:[JC,Iv],93:td,95:Th,96:jC},Kk={null:[Th,Uk]},Zk={null:[42,95]},Ik={null:[]},Jk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Zk,contentInitial:Fk,disable:Ik,document:Qk,flow:Gk,flowInitial:Yk,insideSpan:Kk,string:Vk,text:Xk},Symbol.toStringTag,{value:"Module"}));function Pk(t,l,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},o=[];let c=[],d=[];const p={attempt:ee(P),check:ee(B),consume:U,enter:D,exit:Y,interrupt:ee(B,{interrupt:!0})},m={code:null,containerState:{},defineSkip:z,events:[],now:C,parser:t,previous:null,sliceSerialize:x,sliceStream:v,write:g};let y=l.tokenize.call(m,p);return l.resolveAll&&o.push(l),m;function g(ie){return c=xn(c,ie),T(),c[c.length-1]!==null?[]:(V(l,0),m.events=oo(o,m.events,m),m.events)}function x(ie,$){return Wk(v(ie),$)}function v(ie){return $k(c,ie)}function C(){const{_bufferIndex:ie,_index:$,line:Se,column:se,offset:ne}=a;return{_bufferIndex:ie,_index:$,line:Se,column:se,offset:ne}}function z(ie){s[ie.line]=ie.column,j()}function T(){let ie;for(;a._index<c.length;){const $=c[a._index];if(typeof $=="string")for(ie=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ie&&a._bufferIndex<$.length;)k($.charCodeAt(a._bufferIndex));else k($)}}function k(ie){y=y(ie)}function U(ie){pe(ie)?(a.line++,a.column=1,a.offset+=ie===-3?2:1,j()):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=ie}function D(ie,$){const Se=$||{};return Se.type=ie,Se.start=C(),m.events.push(["enter",Se,m]),d.push(Se),Se}function Y(ie){const $=d.pop();return $.end=C(),m.events.push(["exit",$,m]),$}function P(ie,$){V(ie,$.from)}function B(ie,$){$.restore()}function ee(ie,$){return Se;function Se(se,ne,Q){let W,ce,ve,A;return Array.isArray(se)?K(se):"tokenize"in se?K([se]):M(se);function M(de){return Me;function Me(nt){const Ge=nt!==null&&de[nt],un=nt!==null&&de.null,qn=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(un)?un:un?[un]:[]];return K(qn)(nt)}}function K(de){return W=de,ce=0,de.length===0?Q:w(de[ce])}function w(de){return Me;function Me(nt){return A=le(),ve=de,de.partial||(m.currentConstruct=de),de.name&&m.parser.constructs.disable.null.includes(de.name)?ye():de.tokenize.call($?Object.assign(Object.create(m),$):m,p,ae,ye)(nt)}}function ae(de){return ie(ve,A),ne}function ye(de){return A.restore(),++ce<W.length?w(W[ce]):Q}}}function V(ie,$){ie.resolveAll&&!o.includes(ie)&&o.push(ie),ie.resolve&&an(m.events,$,m.events.length-$,ie.resolve(m.events.slice($),m)),ie.resolveTo&&(m.events=ie.resolveTo(m.events,m))}function le(){const ie=C(),$=m.previous,Se=m.currentConstruct,se=m.events.length,ne=Array.from(d);return{from:se,restore:Q};function Q(){a=ie,m.previous=$,m.currentConstruct=Se,m.events.length=se,d=ne,j()}}function j(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function $k(t,l){const r=l.start._index,a=l.start._bufferIndex,s=l.end._index,o=l.end._bufferIndex;let c;if(r===s)c=[t[r].slice(a,o)];else{if(c=t.slice(r,s),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}o>0&&c.push(t[s].slice(0,o))}return c}function Wk(t,l){let r=-1;const a=[];let s;for(;++r<t.length;){const o=t[r];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
167
+ `;break}case-3:{c=`\r
168
+ `;break}case-2:{c=l?" ":" ";break}case-1:{if(!l&&s)continue;c=" ";break}default:c=String.fromCharCode(o)}s=o===-2,a.push(c)}return a.join("")}function eT(t){const a={constructs:Xv([Jk,...(t||{}).extensions||[]]),content:s(pC),defined:[],document:s(yC),flow:s(jk),lazy:{},string:s(Bk),text:s(Hk)};return a;function s(o){return c;function c(d){return Pk(a,o,d)}}}function tT(t){for(;!Pv(t););return t}const ib=/[\0\t\n\r]/g;function nT(){let t=1,l="",r=!0,a;return s;function s(o,c,d){const p=[];let m,y,g,x,v;for(o=l+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),g=0,l="",r&&(o.charCodeAt(0)===65279&&g++,r=void 0);g<o.length;){if(ib.lastIndex=g,m=ib.exec(o),x=m&&m.index!==void 0?m.index:o.length,v=o.charCodeAt(x),!m){l=o.slice(g);break}if(v===10&&g===x&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),g<x&&(p.push(o.slice(g,x)),t+=x-g),v){case 0:{p.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,p.push(-2);t++<y;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:a=!0,t=1}g=x+1}return d&&(a&&p.push(-5),l&&p.push(l),p.push(null)),p}}const lT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function iT(t){return t.replace(lT,rT)}function rT(t,l,r){if(l)return l;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),o=s===120||s===88;return Kv(r.slice(o?2:1),o?16:10)}return ed(r)||t}const lx={}.hasOwnProperty;function aT(t,l,r){return typeof l!="string"&&(r=l,l=void 0),uT(r)(tT(eT(r).document().write(nT()(t,l,!0))))}function uT(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Fi),autolinkProtocol:le,autolinkEmail:le,atxHeading:o(qi),blockQuote:o(un),characterEscape:le,characterReference:le,codeFenced:o(qn),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(qn,c),codeText:o($r,c),codeTextData:le,data:le,codeFlowValue:le,definition:o(Su),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(Qn),hardBreakEscape:o(Qi),hardBreakTrailing:o(Qi),htmlFlow:o(wu,c),htmlFlowData:le,htmlText:o(wu,c),htmlTextData:le,image:o(Eu),label:c,link:o(Fi),listItem:o(Wr),listItemValue:x,listOrdered:o(Yi,g),listUnordered:o(Yi),paragraph:o(mo),reference:w,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(qi),strong:o(po),thematicBreak:o(go)},exit:{atxHeading:p(),atxHeadingSequence:P,autolink:p(),autolinkEmail:Ge,autolinkProtocol:nt,blockQuote:p(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:de,characterReference:Me,codeFenced:p(T),codeFencedFence:z,codeFencedFenceInfo:v,codeFencedFenceMeta:C,codeFlowValue:j,codeIndented:p(k),codeText:p(ne),codeTextData:j,data:j,definition:p(),definitionDestinationString:Y,definitionLabelString:U,definitionTitleString:D,emphasis:p(),hardBreakEscape:p($),hardBreakTrailing:p($),htmlFlow:p(Se),htmlFlowData:j,htmlText:p(se),htmlTextData:j,image:p(W),label:ve,labelText:ce,lineEnding:ie,link:p(Q),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ae,resourceDestinationString:A,resourceTitleString:M,resource:K,setextHeading:p(V),setextHeadingLineSequence:ee,setextHeadingText:B,strong:p(),thematicBreak:p()}};ix(l,(t||{}).mdastExtensions||[]);const r={};return a;function a(Z){let re={type:"root",children:[]};const be={stack:[re],tokenStack:[],config:l,enter:d,exit:m,buffer:c,resume:y,data:r},Ae=[];let qe=-1;for(;++qe<Z.length;)if(Z[qe][1].type==="listOrdered"||Z[qe][1].type==="listUnordered")if(Z[qe][0]==="enter")Ae.push(qe);else{const It=Ae.pop();qe=s(Z,It,qe)}for(qe=-1;++qe<Z.length;){const It=l[Z[qe][0]];lx.call(It,Z[qe][1].type)&&It[Z[qe][1].type].call(Object.assign({sliceSerialize:Z[qe][2].sliceSerialize},be),Z[qe][1])}if(be.tokenStack.length>0){const It=be.tokenStack[be.tokenStack.length-1];(It[1]||rb).call(be,void 0,It[0])}for(re.position={start:Gl(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Gl(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},qe=-1;++qe<l.transforms.length;)re=l.transforms[qe](re)||re;return re}function s(Z,re,be){let Ae=re-1,qe=-1,It=!1,Fn,Dt,pt,Ut;for(;++Ae<=be;){const Ze=Z[Ae];switch(Ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ze[0]==="enter"?qe++:qe--,Ut=void 0;break}case"lineEndingBlank":{Ze[0]==="enter"&&(Fn&&!Ut&&!qe&&!pt&&(pt=Ae),Ut=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ut=void 0}if(!qe&&Ze[0]==="enter"&&Ze[1].type==="listItemPrefix"||qe===-1&&Ze[0]==="exit"&&(Ze[1].type==="listUnordered"||Ze[1].type==="listOrdered")){if(Fn){let yl=Ae;for(Dt=void 0;yl--;){const wn=Z[yl];if(wn[1].type==="lineEnding"||wn[1].type==="lineEndingBlank"){if(wn[0]==="exit")continue;Dt&&(Z[Dt][1].type="lineEndingBlank",It=!0),wn[1].type="lineEnding",Dt=yl}else if(!(wn[1].type==="linePrefix"||wn[1].type==="blockQuotePrefix"||wn[1].type==="blockQuotePrefixWhitespace"||wn[1].type==="blockQuoteMarker"||wn[1].type==="listItemIndent"))break}pt&&(!Dt||pt<Dt)&&(Fn._spread=!0),Fn.end=Object.assign({},Dt?Z[Dt][1].start:Ze[1].end),Z.splice(Dt||Ae,0,["exit",Fn,Ze[2]]),Ae++,be++}if(Ze[1].type==="listItemPrefix"){const yl={type:"listItem",_spread:!1,start:Object.assign({},Ze[1].start),end:void 0};Fn=yl,Z.splice(Ae,0,["enter",yl,Ze[2]]),Ae++,be++,pt=void 0,Ut=!0}}}return Z[re][1]._spread=It,be}function o(Z,re){return be;function be(Ae){d.call(this,Z(Ae),Ae),re&&re.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(Z,re,be){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([re,be||void 0]),Z.position={start:Gl(re.start),end:void 0}}function p(Z){return re;function re(be){Z&&Z.call(this,be),m.call(this,be)}}function m(Z,re){const be=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==Z.type&&(re?re.call(this,Z,Ae[0]):(Ae[1]||rb).call(this,Z,Ae[0]));else throw new Error("Cannot close `"+Z.type+"` ("+tu({start:Z.start,end:Z.end})+"): it’s not open");be.position.end=Gl(Z.end)}function y(){return Wh(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function x(Z){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function v(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.lang=Z}function C(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.meta=Z}function z(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.value=Z.replace(/(\r?\n|\r)$/g,"")}function U(Z){const re=this.resume(),be=this.stack[this.stack.length-1];be.label=re,be.identifier=zn(this.sliceSerialize(Z)).toLowerCase()}function D(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.title=Z}function Y(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.url=Z}function P(Z){const re=this.stack[this.stack.length-1];if(!re.depth){const be=this.sliceSerialize(Z).length;re.depth=be}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function ee(Z){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function le(Z){const be=this.stack[this.stack.length-1].children;let Ae=be[be.length-1];(!Ae||Ae.type!=="text")&&(Ae=Mt(),Ae.position={start:Gl(Z.start),end:void 0},be.push(Ae)),this.stack.push(Ae)}function j(Z){const re=this.stack.pop();re.value+=this.sliceSerialize(Z),re.position.end=Gl(Z.end)}function ie(Z){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=re.children[re.children.length-1];be.position.end=Gl(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(re.type)&&(le.call(this,Z),j.call(this,Z))}function $(){this.data.atHardBreak=!0}function Se(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.value=Z}function se(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.value=Z}function ne(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.value=Z}function Q(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=re,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function W(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=re,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function ce(Z){const re=this.sliceSerialize(Z),be=this.stack[this.stack.length-2];be.label=iT(re),be.identifier=zn(re).toLowerCase()}function ve(){const Z=this.stack[this.stack.length-1],re=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Ae=Z.children;be.children=Ae}else be.alt=re}function A(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.url=Z}function M(){const Z=this.resume(),re=this.stack[this.stack.length-1];re.title=Z}function K(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ae(Z){const re=this.resume(),be=this.stack[this.stack.length-1];be.label=re,be.identifier=zn(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function ye(Z){this.data.characterReferenceType=Z.type}function de(Z){const re=this.sliceSerialize(Z),be=this.data.characterReferenceType;let Ae;be?(Ae=Kv(re,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=ed(re);const qe=this.stack[this.stack.length-1];qe.value+=Ae}function Me(Z){const re=this.stack.pop();re.position.end=Gl(Z.end)}function nt(Z){j.call(this,Z);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(Z)}function Ge(Z){j.call(this,Z);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(Z)}function un(){return{type:"blockquote",children:[]}}function qn(){return{type:"code",lang:null,meta:null,value:""}}function $r(){return{type:"inlineCode",value:""}}function Su(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qn(){return{type:"emphasis",children:[]}}function qi(){return{type:"heading",depth:0,children:[]}}function Qi(){return{type:"break"}}function wu(){return{type:"html",value:""}}function Eu(){return{type:"image",title:null,url:"",alt:null}}function Fi(){return{type:"link",title:null,url:"",children:[]}}function Yi(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Wr(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function mo(){return{type:"paragraph",children:[]}}function po(){return{type:"strong",children:[]}}function Mt(){return{type:"text",value:""}}function go(){return{type:"thematicBreak"}}}function Gl(t){return{line:t.line,column:t.column,offset:t.offset}}function ix(t,l){let r=-1;for(;++r<l.length;){const a=l[r];Array.isArray(a)?ix(t,a):sT(t,a)}}function sT(t,l){let r;for(r in l)if(lx.call(l,r))switch(r){case"canContainEols":{const a=l[r];a&&t[r].push(...a);break}case"transforms":{const a=l[r];a&&t[r].push(...a);break}case"enter":case"exit":{const a=l[r];a&&Object.assign(t[r],a);break}}}function rb(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+tu({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+tu({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+tu({start:l.start,end:l.end})+") is still open")}function oT(t){const l=this;l.parser=r;function r(a){return aT(a,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function cT(t,l){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,r),t.applyData(l,r)}function fT(t,l){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,r),[t.applyData(l,r),{type:"text",value:`
169
+ `}]}function hT(t,l){const r=l.value?l.value+`
170
+ `:"",a={},s=l.lang?l.lang.split(/\s+/):[];s.length>0&&(a.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return l.meta&&(o.data={meta:l.meta}),t.patch(l,o),o=t.applyData(l,o),o={type:"element",tagName:"pre",properties:{},children:[o]},t.patch(l,o),o}function dT(t,l){const r={type:"element",tagName:"del",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function mT(t,l){const r={type:"element",tagName:"em",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function pT(t,l){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(l.identifier).toUpperCase(),s=Pr(a.toLowerCase()),o=t.footnoteOrder.indexOf(a);let c,d=t.footnoteCounts.get(a);d===void 0?(d=0,t.footnoteOrder.push(a),c=t.footnoteOrder.length):c=o+1,d+=1,t.footnoteCounts.set(a,d);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(l,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return t.patch(l,m),t.applyData(l,m)}function gT(t,l){const r={type:"element",tagName:"h"+l.depth,properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function yT(t,l){if(t.options.allowDangerousHtml){const r={type:"raw",value:l.value};return t.patch(l,r),t.applyData(l,r)}}function rx(t,l){const r=l.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+a}];const s=t.all(l),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function bT(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return rx(t,l);const s={src:Pr(a.url||""),alt:l.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"img",properties:s,children:[]};return t.patch(l,o),t.applyData(l,o)}function vT(t,l){const r={src:Pr(l.url)};l.alt!==null&&l.alt!==void 0&&(r.alt=l.alt),l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"img",properties:r,children:[]};return t.patch(l,a),t.applyData(l,a)}function xT(t,l){const r={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};t.patch(l,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(l,a),t.applyData(l,a)}function ST(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return rx(t,l);const s={href:Pr(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const o={type:"element",tagName:"a",properties:s,children:t.all(l)};return t.patch(l,o),t.applyData(l,o)}function wT(t,l){const r={href:Pr(l.url)};l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"a",properties:r,children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function ET(t,l,r){const a=t.all(l),s=r?CT(r):ax(l),o={},c=[];if(typeof l.checked=="boolean"){const y=a[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const y=a[d];(s||d!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
171
+ `}),y.type==="element"&&y.tagName==="p"&&!s?c.push(...y.children):c.push(y)}const p=a[a.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
172
+ `});const m={type:"element",tagName:"li",properties:o,children:c};return t.patch(l,m),t.applyData(l,m)}function CT(t){let l=!1;if(t.type==="list"){l=t.spread||!1;const r=t.children;let a=-1;for(;!l&&++a<r.length;)l=ax(r[a])}return l}function ax(t){const l=t.spread;return l??t.children.length>1}function kT(t,l){const r={},a=t.all(l);let s=-1;for(typeof l.start=="number"&&l.start!==1&&(r.start=l.start);++s<a.length;){const c=a[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const o={type:"element",tagName:l.ordered?"ol":"ul",properties:r,children:t.wrap(a,!0)};return t.patch(l,o),t.applyData(l,o)}function TT(t,l){const r={type:"element",tagName:"p",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function AT(t,l){const r={type:"root",children:t.wrap(t.all(l))};return t.patch(l,r),t.applyData(l,r)}function zT(t,l){const r={type:"element",tagName:"strong",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function RT(t,l){const r=t.all(l),a=r.shift(),s=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(l.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},d=Ih(l.children[1]),p=Hv(l.children[l.children.length-1]);d&&p&&(c.position={start:d,end:p}),s.push(c)}const o={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(l,o),t.applyData(l,o)}function OT(t,l,r){const a=r?r.children:void 0,o=(a?a.indexOf(l):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:l.children.length;let p=-1;const m=[];for(;++p<d;){const g=l.children[p],x={},v=c?c[p]:void 0;v&&(x.align=v);let C={type:"element",tagName:o,properties:x,children:[]};g&&(C.children=t.all(g),t.patch(g,C),C=t.applyData(g,C)),m.push(C)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(l,y),t.applyData(l,y)}function MT(t,l){const r={type:"element",tagName:"td",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}const ab=9,ub=32;function DT(t){const l=String(t),r=/\r?\n|\r/g;let a=r.exec(l),s=0;const o=[];for(;a;)o.push(sb(l.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=r.exec(l);return o.push(sb(l.slice(s),s>0,!1)),o.join("")}function sb(t,l,r){let a=0,s=t.length;if(l){let o=t.codePointAt(a);for(;o===ab||o===ub;)a++,o=t.codePointAt(a)}if(r){let o=t.codePointAt(s-1);for(;o===ab||o===ub;)s--,o=t.codePointAt(s-1)}return s>a?t.slice(a,s):""}function NT(t,l){const r={type:"text",value:DT(String(l.value))};return t.patch(l,r),t.applyData(l,r)}function _T(t,l){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(l,r),t.applyData(l,r)}const jT={blockquote:cT,break:fT,code:hT,delete:dT,emphasis:mT,footnoteReference:pT,heading:gT,html:yT,imageReference:bT,image:vT,inlineCode:xT,linkReference:ST,link:wT,listItem:ET,list:kT,paragraph:TT,root:AT,strong:zT,table:RT,tableCell:MT,tableRow:OT,text:NT,thematicBreak:_T,toml:Gs,yaml:Gs,definition:Gs,footnoteDefinition:Gs};function Gs(){}const ux=-1,co=0,lu=1,no=2,nd=3,ld=4,id=5,rd=6,sx=7,ox=8,ob=typeof self=="object"?self:globalThis,LT=(t,l)=>{const r=(s,o)=>(t.set(o,s),s),a=s=>{if(t.has(s))return t.get(s);const[o,c]=l[s];switch(o){case co:case ux:return r(c,s);case lu:{const d=r([],s);for(const p of c)d.push(a(p));return d}case no:{const d=r({},s);for(const[p,m]of c)d[a(p)]=a(m);return d}case nd:return r(new Date(c),s);case ld:{const{source:d,flags:p}=c;return r(new RegExp(d,p),s)}case id:{const d=r(new Map,s);for(const[p,m]of c)d.set(a(p),a(m));return d}case rd:{const d=r(new Set,s);for(const p of c)d.add(a(p));return d}case sx:{const{name:d,message:p}=c;return r(new ob[d](p),s)}case ox:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(new ob[o](c),s)};return a},cb=t=>LT(new Map,t)(0),Rr="",{toString:UT}={},{keys:BT}=Object,Wa=t=>{const l=typeof t;if(l!=="object"||!t)return[co,l];const r=UT.call(t).slice(8,-1);switch(r){case"Array":return[lu,Rr];case"Object":return[no,Rr];case"Date":return[nd,Rr];case"RegExp":return[ld,Rr];case"Map":return[id,Rr];case"Set":return[rd,Rr];case"DataView":return[lu,r]}return r.includes("Array")?[lu,r]:r.includes("Error")?[sx,r]:[no,r]},Vs=([t,l])=>t===co&&(l==="function"||l==="symbol"),HT=(t,l,r,a)=>{const s=(c,d)=>{const p=a.push(c)-1;return r.set(d,p),p},o=c=>{if(r.has(c))return r.get(c);let[d,p]=Wa(c);switch(d){case co:{let y=c;switch(p){case"bigint":d=ox,y=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return s([ux],c)}return s([d,y],c)}case lu:{if(p){let x=c;return p==="DataView"?x=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(x=new Uint8Array(c)),s([p,[...x]],c)}const y=[],g=s([d,y],c);for(const x of c)y.push(o(x));return g}case no:{if(p)switch(p){case"BigInt":return s([p,c.toString()],c);case"Boolean":case"Number":case"String":return s([p,c.valueOf()],c)}if(l&&"toJSON"in c)return o(c.toJSON());const y=[],g=s([d,y],c);for(const x of BT(c))(t||!Vs(Wa(c[x])))&&y.push([o(x),o(c[x])]);return g}case nd:return s([d,c.toISOString()],c);case ld:{const{source:y,flags:g}=c;return s([d,{source:y,flags:g}],c)}case id:{const y=[],g=s([d,y],c);for(const[x,v]of c)(t||!(Vs(Wa(x))||Vs(Wa(v))))&&y.push([o(x),o(v)]);return g}case rd:{const y=[],g=s([d,y],c);for(const x of c)(t||!Vs(Wa(x)))&&y.push(o(x));return g}}const{message:m}=c;return s([d,{name:p,message:m}],c)};return o},fb=(t,{json:l,lossy:r}={})=>{const a=[];return HT(!(l||r),!!l,new Map,a)(t),a},lo=typeof structuredClone=="function"?(t,l)=>l&&("json"in l||"lossy"in l)?cb(fb(t,l)):structuredClone(t):(t,l)=>cb(fb(t,l));function qT(t,l){const r=[{type:"text",value:"↩"}];return l>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),r}function QT(t,l){return"Back to reference "+(t+1)+(l>1?"-"+l:"")}function FT(t){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||qT,a=t.options.footnoteBackLabel||QT,s=t.options.footnoteLabel||"Footnotes",o=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<t.footnoteOrder.length;){const m=t.footnoteById.get(t.footnoteOrder[p]);if(!m)continue;const y=t.all(m),g=String(m.identifier).toUpperCase(),x=Pr(g.toLowerCase());let v=0;const C=[],z=t.footnoteCounts.get(g);for(;z!==void 0&&++v<=z;){C.length>0&&C.push({type:"text",value:" "});let U=typeof r=="string"?r:r(p,v);typeof U=="string"&&(U={type:"text",value:U}),C.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+x+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(p,v),className:["data-footnote-backref"]},children:Array.isArray(U)?U:[U]})}const T=y[y.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const U=T.children[T.children.length-1];U&&U.type==="text"?U.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...C)}else y.push(...C);const k={type:"element",tagName:"li",properties:{id:l+"fn-"+x},children:t.wrap(y,!0)};t.patch(m,k),d.push(k)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...lo(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
173
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
174
+ `}]}}const fo=(function(t){if(t==null)return XT;if(typeof t=="function")return ho(t);if(typeof t=="object")return Array.isArray(t)?YT(t):GT(t);if(typeof t=="string")return VT(t);throw new Error("Expected function, string, or object as test")});function YT(t){const l=[];let r=-1;for(;++r<t.length;)l[r]=fo(t[r]);return ho(a);function a(...s){let o=-1;for(;++o<l.length;)if(l[o].apply(this,s))return!0;return!1}}function GT(t){const l=t;return ho(r);function r(a){const s=a;let o;for(o in t)if(s[o]!==l[o])return!1;return!0}}function VT(t){return ho(l);function l(r){return r&&r.type===t}}function ho(t){return l;function l(r,a,s){return!!(KT(r)&&t.call(this,r,typeof a=="number"?a:void 0,s||void 0))}}function XT(){return!0}function KT(t){return t!==null&&typeof t=="object"&&"type"in t}const cx=[],ZT=!0,Ah=!1,IT="skip";function fx(t,l,r,a){let s;typeof l=="function"&&typeof r!="function"?(a=r,r=l):s=l;const o=fo(s),c=a?-1:1;d(t,void 0,[])();function d(p,m,y){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return x;function x(){let v=cx,C,z,T;if((!l||o(p,m,y[y.length-1]||void 0))&&(v=JT(r(p,y)),v[0]===Ah))return v;if("children"in p&&p.children){const k=p;if(k.children&&v[0]!==IT)for(z=(a?k.children.length:-1)+c,T=y.concat(k);z>-1&&z<k.children.length;){const U=k.children[z];if(C=d(U,z,T)(),C[0]===Ah)return C;z=typeof C[1]=="number"?C[1]:z+c}}return v}}}function JT(t){return Array.isArray(t)?t:typeof t=="number"?[ZT,t]:t==null?cx:[t]}function ad(t,l,r,a){let s,o,c;typeof l=="function"&&typeof r!="function"?(o=void 0,c=l,s=r):(o=l,c=r,s=a),fx(t,o,d,s);function d(p,m){const y=m[m.length-1],g=y?y.children.indexOf(p):void 0;return c(p,g,y)}}const zh={}.hasOwnProperty,PT={};function $T(t,l){const r=l||PT,a=new Map,s=new Map,o=new Map,c={...jT,...r.handlers},d={all:m,applyData:eA,definitionById:a,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:c,one:p,options:r,patch:WT,wrap:nA};return ad(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?a:s,x=String(y.identifier).toUpperCase();g.has(x)||g.set(x,y)}}),d;function p(y,g){const x=y.type,v=d.handlers[x];if(zh.call(d.handlers,x)&&v)return v(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(x)){if("children"in y){const{children:z,...T}=y,k=lo(T);return k.children=d.all(y),k}return lo(y)}return(d.options.unknownHandler||tA)(d,y,g)}function m(y){const g=[];if("children"in y){const x=y.children;let v=-1;for(;++v<x.length;){const C=d.one(x[v],y);if(C){if(v&&x[v-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=hb(C.value)),!Array.isArray(C)&&C.type==="element")){const z=C.children[0];z&&z.type==="text"&&(z.value=hb(z.value))}Array.isArray(C)?g.push(...C):g.push(C)}}}return g}}function WT(t,l){t.position&&(l.position=QE(t))}function eA(t,l){let r=l;if(t&&t.data){const a=t.data.hName,s=t.data.hChildren,o=t.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const c="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:c}}r.type==="element"&&o&&Object.assign(r.properties,lo(o)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function tA(t,l){const r=l.data||{},a="value"in l&&!(zh.call(r,"hProperties")||zh.call(r,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function nA(t,l){const r=[];let a=-1;for(l&&r.push({type:"text",value:`
175
+ `});++a<t.length;)a&&r.push({type:"text",value:`
176
+ `}),r.push(t[a]);return l&&t.length>0&&r.push({type:"text",value:`
177
+ `}),r}function hb(t){let l=0,r=t.charCodeAt(l);for(;r===9||r===32;)l++,r=t.charCodeAt(l);return t.slice(l)}function db(t,l){const r=$T(t,l),a=r.one(t,void 0),s=FT(r),o=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
178
+ `},s),o}function lA(t,l){return t&&"run"in t?async function(r,a){const s=db(r,{file:a,...l});await t.run(s,a)}:function(r,a){return db(r,{file:a,...t||l})}}function mb(t){if(t)throw t}var Xf,pb;function iA(){if(pb)return Xf;pb=1;var t=Object.prototype.hasOwnProperty,l=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):l.call(m)==="[object Array]"},o=function(m){if(!m||l.call(m)!=="[object Object]")return!1;var y=t.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var x;for(x in m);return typeof x>"u"||t.call(m,x)},c=function(m,y){r&&y.name==="__proto__"?r(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},d=function(m,y){if(y==="__proto__")if(t.call(m,y)){if(a)return a(m,y).value}else return;return m[y]};return Xf=function p(){var m,y,g,x,v,C,z=arguments[0],T=1,k=arguments.length,U=!1;for(typeof z=="boolean"&&(U=z,z=arguments[1]||{},T=2),(z==null||typeof z!="object"&&typeof z!="function")&&(z={});T<k;++T)if(m=arguments[T],m!=null)for(y in m)g=d(z,y),x=d(m,y),z!==x&&(U&&x&&(o(x)||(v=s(x)))?(v?(v=!1,C=g&&s(g)?g:[]):C=g&&o(g)?g:{},c(z,{name:y,newValue:p(U,C,x)})):typeof x<"u"&&c(z,{name:y,newValue:x}));return z},Xf}var rA=iA();const Kf=Hb(rA);function Rh(t){if(typeof t!="object"||t===null)return!1;const l=Object.getPrototypeOf(t);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function aA(){const t=[],l={run:r,use:a};return l;function r(...s){let o=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...s);function d(p,...m){const y=t[++o];let g=-1;if(p){c(p);return}for(;++g<s.length;)(m[g]===null||m[g]===void 0)&&(m[g]=s[g]);s=m,y?uA(y,d)(...m):c(null,...m)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),l}}function uA(t,l){let r;return a;function a(...c){const d=t.length>c.length;let p;d&&c.push(s);try{p=t.apply(this,c)}catch(m){const y=m;if(d&&r)throw y;return s(y)}d||(p&&p.then&&typeof p.then=="function"?p.then(o,s):p instanceof Error?s(p):o(p))}function s(c,...d){r||(r=!0,l(c,...d))}function o(c){s(null,c)}}const _n={basename:sA,dirname:oA,extname:cA,join:fA,sep:"/"};function sA(t,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');xu(t);let r=0,a=-1,s=t.length,o;if(l===void 0||l.length===0||l.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(o){r=s+1;break}}else a<0&&(o=!0,a=s+1);return a<0?"":t.slice(r,a)}if(l===t)return"";let c=-1,d=l.length-1;for(;s--;)if(t.codePointAt(s)===47){if(o){r=s+1;break}}else c<0&&(o=!0,c=s+1),d>-1&&(t.codePointAt(s)===l.codePointAt(d--)?d<0&&(a=s):(d=-1,a=c));return r===a?a=c:a<0&&(a=t.length),t.slice(r,a)}function oA(t){if(xu(t),t.length===0)return".";let l=-1,r=t.length,a;for(;--r;)if(t.codePointAt(r)===47){if(a){l=r;break}}else a||(a=!0);return l<0?t.codePointAt(0)===47?"/":".":l===1&&t.codePointAt(0)===47?"//":t.slice(0,l)}function cA(t){xu(t);let l=t.length,r=-1,a=0,s=-1,o=0,c;for(;l--;){const d=t.codePointAt(l);if(d===47){if(c){a=l+1;break}continue}r<0&&(c=!0,r=l+1),d===46?s<0?s=l:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||r<0||o===0||o===1&&s===r-1&&s===a+1?"":t.slice(s,r)}function fA(...t){let l=-1,r;for(;++l<t.length;)xu(t[l]),t[l]&&(r=r===void 0?t[l]:r+"/"+t[l]);return r===void 0?".":hA(r)}function hA(t){xu(t);const l=t.codePointAt(0)===47;let r=dA(t,!l);return r.length===0&&!l&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),l?"/"+r:r}function dA(t,l){let r="",a=0,s=-1,o=0,c=-1,d,p;for(;++c<=t.length;){if(c<t.length)d=t.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(s===c-1||o===1))if(s!==c-1&&o===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",a=0):(r=r.slice(0,p),a=r.length-1-r.lastIndexOf("/")),s=c,o=0;continue}}else if(r.length>0){r="",a=0,s=c,o=0;continue}}l&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+t.slice(s+1,c):r=t.slice(s+1,c),a=c-s-1;s=c,o=0}else d===46&&o>-1?o++:o=-1}return r}function xu(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const mA={cwd:pA};function pA(){return"/"}function Oh(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function gA(t){if(typeof t=="string")t=new URL(t);else if(!Oh(t)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(t.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return yA(t)}function yA(t){if(t.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 l=t.pathname;let r=-1;for(;++r<l.length;)if(l.codePointAt(r)===37&&l.codePointAt(r+1)===50){const a=l.codePointAt(r+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(l)}const Zf=["history","path","basename","stem","extname","dirname"];class hx{constructor(l){let r;l?Oh(l)?r={path:l}:typeof l=="string"||bA(l)?r={value:l}:r=l:r={},this.cwd="cwd"in r?"":mA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Zf.length;){const o=Zf[a];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let s;for(s in r)Zf.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?_n.basename(this.path):void 0}set basename(l){Jf(l,"basename"),If(l,"basename"),this.path=_n.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?_n.dirname(this.path):void 0}set dirname(l){gb(this.basename,"dirname"),this.path=_n.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?_n.extname(this.path):void 0}set extname(l){if(If(l,"extname"),gb(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=_n.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){Oh(l)&&(l=gA(l)),Jf(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?_n.basename(this.path,this.extname):void 0}set stem(l){Jf(l,"stem"),If(l,"stem"),this.path=_n.join(this.dirname||"",l+(this.extname||""))}fail(l,r,a){const s=this.message(l,r,a);throw s.fatal=!0,s}info(l,r,a){const s=this.message(l,r,a);return s.fatal=void 0,s}message(l,r,a){const s=new Ot(l,r,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function If(t,l){if(t&&t.includes(_n.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+_n.sep+"`")}function Jf(t,l){if(!t)throw new Error("`"+l+"` cannot be empty")}function gb(t,l){if(!t)throw new Error("Setting `"+l+"` requires `path` to be set too")}function bA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const vA=(function(t){const a=this.constructor.prototype,s=a[t],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,a),o}),xA={}.hasOwnProperty;class ud extends vA{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=aA()}copy(){const l=new ud;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];l.use(...a)}return l.data(Kf(!0,{},this.namespace)),l}data(l,r){return typeof l=="string"?arguments.length===2?(Wf("data",this.frozen),this.namespace[l]=r,this):xA.call(this.namespace,l)&&this.namespace[l]||void 0:l?(Wf("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const s=r.call(l,...a);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const r=Xs(l),a=this.parser||this.Parser;return Pf("parse",a),a(String(r),r)}process(l,r){const a=this;return this.freeze(),Pf("process",this.parser||this.Parser),$f("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(o,c){const d=Xs(l),p=a.parse(d);a.run(p,d,function(y,g,x){if(y||!g||!x)return m(y);const v=g,C=a.stringify(v,x);EA(C)?x.value=C:x.result=C,m(y,x)});function m(y,g){y||!g?c(y):o?o(g):r(void 0,g)}}}processSync(l){let r=!1,a;return this.freeze(),Pf("processSync",this.parser||this.Parser),$f("processSync",this.compiler||this.Compiler),this.process(l,s),bb("processSync","process",r),a;function s(o,c){r=!0,mb(o),a=c}}run(l,r,a){yb(l),this.freeze();const s=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?o(void 0,a):new Promise(o);function o(c,d){const p=Xs(r);s.run(l,p,m);function m(y,g,x){const v=g||l;y?d(y):c?c(v):a(void 0,v,x)}}}runSync(l,r){let a=!1,s;return this.run(l,r,o),bb("runSync","run",a),s;function o(c,d){mb(c),s=d,a=!0}}stringify(l,r){this.freeze();const a=Xs(r),s=this.compiler||this.Compiler;return $f("stringify",s),yb(l),s(l,a)}use(l,...r){const a=this.attachers,s=this.namespace;if(Wf("use",this.frozen),l!=null)if(typeof l=="function")p(l,r);else if(typeof l=="object")Array.isArray(l)?d(l):c(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function o(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;p(y,g)}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&&(s.settings=Kf(!0,s.settings,m.settings))}function d(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];o(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,y){let g=-1,x=-1;for(;++g<a.length;)if(a[g][0]===m){x=g;break}if(x===-1)a.push([m,...y]);else if(y.length>0){let[v,...C]=y;const z=a[x][1];Rh(z)&&Rh(v)&&(v=Kf(!0,z,v)),a[x]=[m,v,...C]}}}}const SA=new ud().freeze();function Pf(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function $f(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Wf(t,l){if(l)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function yb(t){if(!Rh(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function bb(t,l,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function Xs(t){return wA(t)?t:new hx(t)}function wA(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function EA(t){return typeof t=="string"||CA(t)}function CA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const kA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vb=[],xb={allowDangerousHtml:!0},TA=/^(https?|ircs?|mailto|xmpp)$/i,AA=[{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:"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 zA(t){const l=RA(t),r=OA(t);return MA(l.runSync(l.parse(r),r),t)}function RA(t){const l=t.rehypePlugins||vb,r=t.remarkPlugins||vb,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...xb}:xb;return SA().use(oT).use(r).use(lA,a).use(l)}function OA(t){const l=t.children||"",r=new hx;return typeof l=="string"&&(r.value=l),r}function MA(t,l){const r=l.allowedElements,a=l.allowElement,s=l.components,o=l.disallowedElements,c=l.skipHtml,d=l.unwrapDisallowed,p=l.urlTransform||DA;for(const y of AA)Object.hasOwn(l,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+kA+y.id,void 0);return l.className&&(t={type:"element",tagName:"div",properties:{className:l.className},children:t.type==="root"?t.children:[t]}),ad(t,m),XE(t,{Fragment:E.Fragment,components:s,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function m(y,g,x){if(y.type==="raw"&&x&&typeof g=="number")return c?x.children.splice(g,1):x.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let v;for(v in Yf)if(Object.hasOwn(Yf,v)&&Object.hasOwn(y.properties,v)){const C=y.properties[v],z=Yf[v];(z===null||z.includes(y.tagName))&&(y.properties[v]=p(String(C||""),v,y))}}if(y.type==="element"){let v=r?!r.includes(y.tagName):o?o.includes(y.tagName):!1;if(!v&&a&&typeof g=="number"&&(v=!a(y,g,x)),v&&x&&typeof g=="number")return d&&y.children?x.children.splice(g,1,...y.children):x.children.splice(g,1),g}}}function DA(t){const l=t.indexOf(":"),r=t.indexOf("?"),a=t.indexOf("#"),s=t.indexOf("/");return l===-1||s!==-1&&l>s||r!==-1&&l>r||a!==-1&&l>a||TA.test(t.slice(0,l))?t:""}function Sb(t,l){const r=String(t);if(typeof l!="string")throw new TypeError("Expected character");let a=0,s=r.indexOf(l);for(;s!==-1;)a++,s=r.indexOf(l,s+l.length);return a}function NA(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function _A(t,l,r){const s=fo((r||{}).ignore||[]),o=jA(l);let c=-1;for(;++c<o.length;)fx(t,"text",d);function d(m,y){let g=-1,x;for(;++g<y.length;){const v=y[g],C=x?x.children:void 0;if(s(v,C?C.indexOf(v):void 0,x))return;x=v}if(x)return p(m,y)}function p(m,y){const g=y[y.length-1],x=o[c][0],v=o[c][1];let C=0;const T=g.children.indexOf(m);let k=!1,U=[];x.lastIndex=0;let D=x.exec(m.value);for(;D;){const Y=D.index,P={index:D.index,input:D.input,stack:[...y,m]};let B=v(...D,P);if(typeof B=="string"&&(B=B.length>0?{type:"text",value:B}:void 0),B===!1?x.lastIndex=Y+1:(C!==Y&&U.push({type:"text",value:m.value.slice(C,Y)}),Array.isArray(B)?U.push(...B):B&&U.push(B),C=Y+D[0].length,k=!0),!x.global)break;D=x.exec(m.value)}return k?(C<m.value.length&&U.push({type:"text",value:m.value.slice(C)}),g.children.splice(T,1,...U)):U=[m],T+U.length}}function jA(t){const l=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let a=-1;for(;++a<r.length;){const s=r[a];l.push([LA(s[0]),UA(s[1])])}return l}function LA(t){return typeof t=="string"?new RegExp(NA(t),"g"):t}function UA(t){return typeof t=="function"?t:function(){return t}}const eh="phrasing",th=["autolink","link","image","label"];function BA(){return{transforms:[VA],enter:{literalAutolink:qA,literalAutolinkEmail:nh,literalAutolinkHttp:nh,literalAutolinkWww:nh},exit:{literalAutolink:GA,literalAutolinkEmail:YA,literalAutolinkHttp:QA,literalAutolinkWww:FA}}}function HA(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:eh,notInConstruct:th},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:eh,notInConstruct:th},{character:":",before:"[ps]",after:"\\/",inConstruct:eh,notInConstruct:th}]}}function qA(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function nh(t){this.config.enter.autolinkProtocol.call(this,t)}function QA(t){this.config.exit.autolinkProtocol.call(this,t)}function FA(t){this.config.exit.data.call(this,t);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(t)}function YA(t){this.config.exit.autolinkEmail.call(this,t)}function GA(t){this.exit(t)}function VA(t){_A(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,XA],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),KA]],{ignore:["link","linkReference"]})}function XA(t,l,r,a,s){let o="";if(!dx(s)||(/^w/i.test(l)&&(r=l+r,l="",o="http://"),!ZA(r)))return!1;const c=IA(r+a);if(!c[0])return!1;const d={type:"link",title:null,url:o+l+c[0],children:[{type:"text",value:l+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function KA(t,l,r,a){return!dx(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+r,children:[{type:"text",value:l+"@"+r}]}}function ZA(t){const l=t.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function IA(t){const l=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!l)return[t,void 0];t=t.slice(0,l.index);let r=l[0],a=r.indexOf(")");const s=Sb(t,"(");let o=Sb(t,")");for(;a!==-1&&s>o;)t+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),o++;return[t,r]}function dx(t,l){const r=t.input.charCodeAt(t.index-1);return(t.index===0||Ui(r)||so(r))&&(!l||r!==47)}mx.peek=i3;function JA(){this.buffer()}function PA(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function $A(){this.buffer()}function WA(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function e3(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=zn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function t3(t){this.exit(t)}function n3(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=zn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function l3(t){this.exit(t)}function i3(){return"["}function mx(t,l,r,a){const s=r.createTracker(a);let o=s.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return o+=s.move(r.safe(r.associationId(t),{after:"]",before:o})),d(),c(),o+=s.move("]"),o}function r3(){return{enter:{gfmFootnoteCallString:JA,gfmFootnoteCall:PA,gfmFootnoteDefinitionLabelString:$A,gfmFootnoteDefinition:WA},exit:{gfmFootnoteCallString:e3,gfmFootnoteCall:t3,gfmFootnoteDefinitionLabelString:n3,gfmFootnoteDefinition:l3}}}function a3(t){let l=!1;return t&&t.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:r,footnoteReference:mx},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,s,o,c){const d=o.createTracker(c);let p=d.move("[^");const m=o.enter("footnoteDefinition"),y=o.enter("label");return p+=d.move(o.safe(o.associationId(a),{before:p,after:"]"})),y(),p+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),p+=d.move((l?`
179
+ `:" ")+o.indentLines(o.containerFlow(a,d.current()),l?px:u3))),m(),p}}function u3(t,l,r){return l===0?t:px(t,l,r)}function px(t,l,r){return(r?"":" ")+t}const s3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];gx.peek=d3;function o3(){return{canContainEols:["delete"],enter:{strikethrough:f3},exit:{strikethrough:h3}}}function c3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:s3}],handlers:{delete:gx}}}function f3(t){this.enter({type:"delete",children:[]},t)}function h3(t){this.exit(t)}function gx(t,l,r,a){const s=r.createTracker(a),o=r.enter("strikethrough");let c=s.move("~~");return c+=r.containerPhrasing(t,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),o(),c}function d3(){return"~"}function m3(t){return t.length}function p3(t,l){const r=l||{},a=(r.align||[]).concat(),s=r.stringLength||m3,o=[],c=[],d=[],p=[];let m=0,y=-1;for(;++y<t.length;){const z=[],T=[];let k=-1;for(t[y].length>m&&(m=t[y].length);++k<t[y].length;){const U=g3(t[y][k]);if(r.alignDelimiters!==!1){const D=s(U);T[k]=D,(p[k]===void 0||D>p[k])&&(p[k]=D)}z.push(U)}c[y]=z,d[y]=T}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<m;)o[g]=wb(a[g]);else{const z=wb(a);for(;++g<m;)o[g]=z}g=-1;const x=[],v=[];for(;++g<m;){const z=o[g];let T="",k="";z===99?(T=":",k=":"):z===108?T=":":z===114&&(k=":");let U=r.alignDelimiters===!1?1:Math.max(1,p[g]-T.length-k.length);const D=T+"-".repeat(U)+k;r.alignDelimiters!==!1&&(U=T.length+U+k.length,U>p[g]&&(p[g]=U),v[g]=U),x[g]=D}c.splice(1,0,x),d.splice(1,0,v),y=-1;const C=[];for(;++y<c.length;){const z=c[y],T=d[y];g=-1;const k=[];for(;++g<m;){const U=z[g]||"";let D="",Y="";if(r.alignDelimiters!==!1){const P=p[g]-(T[g]||0),B=o[g];B===114?D=" ".repeat(P):B===99?P%2?(D=" ".repeat(P/2+.5),Y=" ".repeat(P/2-.5)):(D=" ".repeat(P/2),Y=D):Y=" ".repeat(P)}r.delimiterStart!==!1&&!g&&k.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&U==="")&&(r.delimiterStart!==!1||g)&&k.push(" "),r.alignDelimiters!==!1&&k.push(D),k.push(U),r.alignDelimiters!==!1&&k.push(Y),r.padding!==!1&&k.push(" "),(r.delimiterEnd!==!1||g!==m-1)&&k.push("|")}C.push(r.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return C.join(`
180
+ `)}function g3(t){return t==null?"":String(t)}function wb(t){const l=typeof t=="string"?t.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function y3(t,l,r,a){const s=r.enter("blockquote"),o=r.createTracker(a);o.move("> "),o.shift(2);const c=r.indentLines(r.containerFlow(t,o.current()),b3);return s(),c}function b3(t,l,r){return">"+(r?"":" ")+t}function v3(t,l){return Eb(t,l.inConstruct,!0)&&!Eb(t,l.notInConstruct,!1)}function Eb(t,l,r){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return r;let a=-1;for(;++a<l.length;)if(t.includes(l[a]))return!0;return!1}function Cb(t,l,r,a){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
181
+ `&&v3(r.stack,r.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
182
+ `}function x3(t,l){const r=String(t);let a=r.indexOf(l),s=a,o=0,c=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===s?++o>c&&(c=o):o=1,s=a+l.length,a=r.indexOf(l,s);return c}function S3(t,l){return!!(l.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function w3(t){const l=t.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function E3(t,l,r,a){const s=w3(r),o=t.value||"",c=s==="`"?"GraveAccent":"Tilde";if(S3(t,r)){const g=r.enter("codeIndented"),x=r.indentLines(o,C3);return g(),x}const d=r.createTracker(a),p=s.repeat(Math.max(x3(o,s)+1,3)),m=r.enter("codeFenced");let y=d.move(p);if(t.lang){const g=r.enter(`codeFencedLang${c}`);y+=d.move(r.safe(t.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(t.lang&&t.meta){const g=r.enter(`codeFencedMeta${c}`);y+=d.move(" "),y+=d.move(r.safe(t.meta,{before:y,after:`
183
+ `,encode:["`"],...d.current()})),g()}return y+=d.move(`
184
+ `),o&&(y+=d.move(o+`
185
+ `)),y+=d.move(p),m(),y}function C3(t,l,r){return(r?"":" ")+t}function sd(t){const l=t.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function k3(t,l,r,a){const s=sd(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const p=r.createTracker(a);let m=p.move("[");return m+=p.move(r.safe(r.associationId(t),{before:m,after:"]",...p.current()})),m+=p.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(t.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=r.enter("destinationRaw"),m+=p.move(r.safe(t.url,{before:m,after:t.title?" ":`
186
+ `,...p.current()}))),d(),t.title&&(d=r.enter(`title${o}`),m+=p.move(" "+s),m+=p.move(r.safe(t.title,{before:m,after:s,...p.current()})),m+=p.move(s),d()),c(),m}function T3(t){const l=t.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function uu(t){return"&#x"+t.toString(16).toUpperCase()+";"}function io(t,l,r){const a=Vr(t),s=Vr(l);return a===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}yx.peek=A3;function yx(t,l,r,a){const s=T3(r),o=r.enter("emphasis"),c=r.createTracker(a),d=c.move(s);let p=c.move(r.containerPhrasing(t,{after:s,before:d,...c.current()}));const m=p.charCodeAt(0),y=io(a.before.charCodeAt(a.before.length-1),m,s);y.inside&&(p=uu(m)+p.slice(1));const g=p.charCodeAt(p.length-1),x=io(a.after.charCodeAt(0),g,s);x.inside&&(p=p.slice(0,-1)+uu(g));const v=c.move(s);return o(),r.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},d+p+v}function A3(t,l,r){return r.options.emphasis||"*"}function z3(t,l){let r=!1;return ad(t,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,Ah}),!!((!t.depth||t.depth<3)&&Wh(t)&&(l.options.setext||r))}function R3(t,l,r,a){const s=Math.max(Math.min(6,t.depth||1),1),o=r.createTracker(a);if(z3(t,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),x=r.containerPhrasing(t,{...o.current(),before:`
187
+ `,after:`
188
+ `});return g(),y(),x+`
189
+ `+(s===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
190
+ `))+1))}const c="#".repeat(s),d=r.enter("headingAtx"),p=r.enter("phrasing");o.move(c+" ");let m=r.containerPhrasing(t,{before:"# ",after:`
191
+ `,...o.current()});return/^[\t ]/.test(m)&&(m=uu(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,r.options.closeAtx&&(m+=" "+c),p(),d(),m}bx.peek=O3;function bx(t){return t.value||""}function O3(){return"<"}vx.peek=M3;function vx(t,l,r,a){const s=sd(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const p=r.createTracker(a);let m=p.move("![");return m+=p.move(r.safe(t.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(t.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=r.enter("destinationRaw"),m+=p.move(r.safe(t.url,{before:m,after:t.title?" ":")",...p.current()}))),d(),t.title&&(d=r.enter(`title${o}`),m+=p.move(" "+s),m+=p.move(r.safe(t.title,{before:m,after:s,...p.current()})),m+=p.move(s),d()),m+=p.move(")"),c(),m}function M3(){return"!"}xx.peek=D3;function xx(t,l,r,a){const s=t.referenceType,o=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(a);let p=d.move("![");const m=r.safe(t.alt,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:p,after:"]",...d.current()});return c(),r.stack=y,o(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function D3(){return"!"}Sx.peek=N3;function Sx(t,l,r){let a=t.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++o<r.unsafe.length;){const c=r.unsafe[o],d=r.compilePattern(c);let p;if(c.atBreak)for(;p=d.exec(a);){let m=p.index;a.charCodeAt(m)===10&&a.charCodeAt(m-1)===13&&m--,a=a.slice(0,m)+" "+a.slice(p.index+1)}}return s+a+s}function N3(){return"`"}function wx(t,l){const r=Wh(t);return!!(!l.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Ex.peek=_3;function Ex(t,l,r,a){const s=sd(r),o=s==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let d,p;if(wx(t,r)){const y=r.stack;r.stack=[],d=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(t,{before:g,after:">",...c.current()})),g+=c.move(">"),d(),r.stack=y,g}d=r.enter("link"),p=r.enter("label");let m=c.move("[");return m+=c.move(r.containerPhrasing(t,{before:m,after:"](",...c.current()})),m+=c.move("]("),p(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(p=r.enter("destinationLiteral"),m+=c.move("<"),m+=c.move(r.safe(t.url,{before:m,after:">",...c.current()})),m+=c.move(">")):(p=r.enter("destinationRaw"),m+=c.move(r.safe(t.url,{before:m,after:t.title?" ":")",...c.current()}))),p(),t.title&&(p=r.enter(`title${o}`),m+=c.move(" "+s),m+=c.move(r.safe(t.title,{before:m,after:s,...c.current()})),m+=c.move(s),p()),m+=c.move(")"),d(),m}function _3(t,l,r){return wx(t,r)?"<":"["}Cx.peek=j3;function Cx(t,l,r,a){const s=t.referenceType,o=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(a);let p=d.move("[");const m=r.containerPhrasing(t,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:p,after:"]",...d.current()});return c(),r.stack=y,o(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function j3(){return"["}function od(t){const l=t.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function L3(t){const l=od(t),r=t.options.bulletOther;if(!r)return l==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+r+"`) to be different");return r}function U3(t){const l=t.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function kx(t){const l=t.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function B3(t,l,r,a){const s=r.enter("list"),o=r.bulletCurrent;let c=t.ordered?U3(r):od(r);const d=t.ordered?c==="."?")":".":L3(r);let p=l&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(p=!0),kx(r)===c&&y){let g=-1;for(;++g<t.children.length;){const x=t.children[g];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=d),r.bulletCurrent=c;const m=r.containerFlow(t,a);return r.bulletLastUsed=c,r.bulletCurrent=o,s(),m}function H3(t){const l=t.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function q3(t,l,r,a){const s=H3(r);let o=r.bulletCurrent||od(r);l&&l.type==="list"&&l.ordered&&(o=(typeof l.start=="number"&&l.start>-1?l.start:1)+(r.options.incrementListMarker===!1?0:l.children.indexOf(t))+o);let c=o.length+1;(s==="tab"||s==="mixed"&&(l&&l.type==="list"&&l.spread||t.spread))&&(c=Math.ceil(c/4)*4);const d=r.createTracker(a);d.move(o+" ".repeat(c-o.length)),d.shift(c);const p=r.enter("listItem"),m=r.indentLines(r.containerFlow(t,d.current()),y);return p(),m;function y(g,x,v){return x?(v?"":" ".repeat(c))+g:(v?o:o+" ".repeat(c-o.length))+g}}function Q3(t,l,r,a){const s=r.enter("paragraph"),o=r.enter("phrasing"),c=r.containerPhrasing(t,a);return o(),s(),c}const F3=fo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Y3(t,l,r,a){return(t.children.some(function(c){return F3(c)})?r.containerPhrasing:r.containerFlow).call(r,t,a)}function G3(t){const l=t.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}Tx.peek=V3;function Tx(t,l,r,a){const s=G3(r),o=r.enter("strong"),c=r.createTracker(a),d=c.move(s+s);let p=c.move(r.containerPhrasing(t,{after:s,before:d,...c.current()}));const m=p.charCodeAt(0),y=io(a.before.charCodeAt(a.before.length-1),m,s);y.inside&&(p=uu(m)+p.slice(1));const g=p.charCodeAt(p.length-1),x=io(a.after.charCodeAt(0),g,s);x.inside&&(p=p.slice(0,-1)+uu(g));const v=c.move(s+s);return o(),r.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},d+p+v}function V3(t,l,r){return r.options.strong||"*"}function X3(t,l,r,a){return r.safe(t.value,a)}function K3(t){const l=t.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function Z3(t,l,r){const a=(kx(r)+(r.options.ruleSpaces?" ":"")).repeat(K3(r));return r.options.ruleSpaces?a.slice(0,-1):a}const Ax={blockquote:y3,break:Cb,code:E3,definition:k3,emphasis:yx,hardBreak:Cb,heading:R3,html:bx,image:vx,imageReference:xx,inlineCode:Sx,link:Ex,linkReference:Cx,list:B3,listItem:q3,paragraph:Q3,root:Y3,strong:Tx,text:X3,thematicBreak:Z3};function I3(){return{enter:{table:J3,tableData:kb,tableHeader:kb,tableRow:$3},exit:{codeText:W3,table:P3,tableData:lh,tableHeader:lh,tableRow:lh}}}function J3(t){const l=t._align;this.enter({type:"table",align:l.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function P3(t){this.exit(t),this.data.inTable=void 0}function $3(t){this.enter({type:"tableRow",children:[]},t)}function lh(t){this.exit(t)}function kb(t){this.enter({type:"tableCell",children:[]},t)}function W3(t){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,ez));const r=this.stack[this.stack.length-1];r.type,r.value=l,this.exit(t)}function ez(t,l){return l==="|"?l:t}function tz(t){const l=t||{},r=l.tableCellPadding,a=l.tablePipeAlign,s=l.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
192
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:p,tableRow:d}};function c(v,C,z,T){return m(y(v,z,T),v.align)}function d(v,C,z,T){const k=g(v,z,T),U=m([k]);return U.slice(0,U.indexOf(`
193
+ `))}function p(v,C,z,T){const k=z.enter("tableCell"),U=z.enter("phrasing"),D=z.containerPhrasing(v,{...T,before:o,after:o});return U(),k(),D}function m(v,C){return p3(v,{align:C,alignDelimiters:a,padding:r,stringLength:s})}function y(v,C,z){const T=v.children;let k=-1;const U=[],D=C.enter("table");for(;++k<T.length;)U[k]=g(T[k],C,z);return D(),U}function g(v,C,z){const T=v.children;let k=-1;const U=[],D=C.enter("tableRow");for(;++k<T.length;)U[k]=p(T[k],v,C,z);return D(),U}function x(v,C,z){let T=Ax.inlineCode(v,C,z);return z.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function nz(){return{exit:{taskListCheckValueChecked:Tb,taskListCheckValueUnchecked:Tb,paragraph:iz}}}function lz(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rz}}}function Tb(t){const l=this.stack[this.stack.length-2];l.type,l.checked=t.type==="taskListCheckValueChecked"}function iz(t){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const s=l.children;let o=-1,c;for(;++o<s.length;){const d=s[o];if(d.type==="paragraph"){c=d;break}}c===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function rz(t,l,r,a){const s=t.children[0],o=typeof t.checked=="boolean"&&s&&s.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",d=r.createTracker(a);o&&d.move(c);let p=Ax.listItem(t,l,r,{...a,...d.current()});return o&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(y){return y+c}}function az(){return[BA(),r3(),o3(),I3(),nz()]}function uz(t){return{extensions:[HA(),a3(t),c3(),tz(t),lz()]}}const sz={tokenize:mz,partial:!0},zx={tokenize:pz,partial:!0},Rx={tokenize:gz,partial:!0},Ox={tokenize:yz,partial:!0},oz={tokenize:bz,partial:!0},Mx={name:"wwwAutolink",tokenize:hz,previous:Nx},Dx={name:"protocolAutolink",tokenize:dz,previous:_x},gl={name:"emailAutolink",tokenize:fz,previous:jx},Hn={};function cz(){return{text:Hn}}let Ei=48;for(;Ei<123;)Hn[Ei]=gl,Ei++,Ei===58?Ei=65:Ei===91&&(Ei=97);Hn[43]=gl;Hn[45]=gl;Hn[46]=gl;Hn[95]=gl;Hn[72]=[gl,Dx];Hn[104]=[gl,Dx];Hn[87]=[gl,Mx];Hn[119]=[gl,Mx];function fz(t,l,r){const a=this;let s,o;return c;function c(g){return!Mh(g)||!jx.call(a,a.previous)||cd(a.events)?r(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return Mh(g)?(t.consume(g),d):g===64?(t.consume(g),p):r(g)}function p(g){return g===46?t.check(oz,y,m)(g):g===45||g===95||Rt(g)?(o=!0,t.consume(g),p):y(g)}function m(g){return t.consume(g),s=!0,p}function y(g){return o&&s&&Lt(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),l(g)):r(g)}}function hz(t,l,r){const a=this;return s;function s(c){return c!==87&&c!==119||!Nx.call(a,a.previous)||cd(a.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(sz,t.attempt(zx,t.attempt(Rx,o),r),r)(c))}function o(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),l(c)}}function dz(t,l,r){const a=this;let s="",o=!1;return c;function c(g){return(g===72||g===104)&&_x.call(a,a.previous)&&!cd(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),t.consume(g),d):r(g)}function d(g){if(Lt(g)&&s.length<5)return s+=String.fromCodePoint(g),t.consume(g),d;if(g===58){const x=s.toLowerCase();if(x==="http"||x==="https")return t.consume(g),p}return r(g)}function p(g){return g===47?(t.consume(g),o?m:(o=!0,p)):r(g)}function m(g){return g===null||to(g)||Je(g)||Ui(g)||so(g)?r(g):t.attempt(zx,t.attempt(Rx,y),r)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),l(g)}}function mz(t,l,r){let a=0;return s;function s(c){return(c===87||c===119)&&a<3?(a++,t.consume(c),s):c===46&&a===3?(t.consume(c),o):r(c)}function o(c){return c===null?r(c):l(c)}}function pz(t,l,r){let a,s,o;return c;function c(m){return m===46||m===95?t.check(Ox,p,d)(m):m===null||Je(m)||Ui(m)||m!==45&&so(m)?p(m):(o=!0,t.consume(m),c)}function d(m){return m===95?a=!0:(s=a,a=void 0),t.consume(m),c}function p(m){return s||a||!o?r(m):l(m)}}function gz(t,l){let r=0,a=0;return s;function s(c){return c===40?(r++,t.consume(c),s):c===41&&a<r?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(Ox,l,o)(c):c===null||Je(c)||Ui(c)?l(c):(t.consume(c),s)}function o(c){return c===41&&a++,t.consume(c),s}}function yz(t,l,r){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),a):d===38?(t.consume(d),o):d===93?(t.consume(d),s):d===60||d===null||Je(d)||Ui(d)?l(d):r(d)}function s(d){return d===null||d===40||d===91||Je(d)||Ui(d)?l(d):a(d)}function o(d){return Lt(d)?c(d):r(d)}function c(d){return d===59?(t.consume(d),a):Lt(d)?(t.consume(d),c):r(d)}}function bz(t,l,r){return a;function a(o){return t.consume(o),s}function s(o){return Rt(o)?r(o):l(o)}}function Nx(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Je(t)}function _x(t){return!Lt(t)}function jx(t){return!(t===47||Mh(t))}function Mh(t){return t===43||t===45||t===46||t===95||Rt(t)}function cd(t){let l=t.length,r=!1;for(;l--;){const a=t[l][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const vz={tokenize:Az,partial:!0};function xz(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Cz,continuation:{tokenize:kz},exit:Tz}},text:{91:{name:"gfmFootnoteCall",tokenize:Ez},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Sz,resolveTo:wz}}}}function Sz(t,l,r){const a=this;let s=a.events.length;const o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const p=a.events[s][1];if(p.type==="labelImage"){c=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return d;function d(p){if(!c||!c._balanced)return r(p);const m=zn(a.sliceSerialize({start:c.end,end:a.now()}));return m.codePointAt(0)!==94||!o.includes(m.slice(1))?r(p):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),l(p))}}function wz(t,l){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[t[r+1],t[r+2],["enter",a,l],t[r+3],t[r+4],["enter",s,l],["exit",s,l],["enter",o,l],["enter",c,l],["exit",c,l],["exit",o,l],t[t.length-2],t[t.length-1],["exit",a,l]];return t.splice(r,t.length-r+1,...d),t}function Ez(t,l,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o=0,c;return d;function d(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?r(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(g){if(o>999||g===93&&!c||g===null||g===91||Je(g))return r(g);if(g===93){t.exit("chunkString");const x=t.exit("gfmFootnoteCallString");return s.includes(zn(a.sliceSerialize(x)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),l):r(g)}return Je(g)||(c=!0),o++,t.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(t.consume(g),o++,m):m(g)}}function Cz(t,l,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o,c=0,d;return p;function p(C){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(C),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(C){return C===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(C),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(C)}function y(C){if(c>999||C===93&&!d||C===null||C===91||Je(C))return r(C);if(C===93){t.exit("chunkString");const z=t.exit("gfmFootnoteDefinitionLabelString");return o=zn(a.sliceSerialize(z)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(C),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),x}return Je(C)||(d=!0),c++,t.consume(C),C===92?g:y}function g(C){return C===91||C===92||C===93?(t.consume(C),c++,y):y(C)}function x(C){return C===58?(t.enter("definitionMarker"),t.consume(C),t.exit("definitionMarker"),s.includes(o)||s.push(o),Le(t,v,"gfmFootnoteDefinitionWhitespace")):r(C)}function v(C){return l(C)}}function kz(t,l,r){return t.check(vu,l,t.attempt(vz,l,r))}function Tz(t){t.exit("gfmFootnoteDefinition")}function Az(t,l,r){const a=this;return Le(t,s,"gfmFootnoteDefinitionIndent",5);function s(o){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?l(o):r(o)}}function zz(t){let r=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:o,resolveAll:s};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,d){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let m=p;for(;m--;)if(c[m][0]==="exit"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[m][1].end.offset-c[m][1].start.offset){c[p][1].type="strikethroughSequence",c[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[p][1].end)},g={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[p][1].start)},x=[["enter",y,d],["enter",c[m][1],d],["exit",c[m][1],d],["enter",g,d]],v=d.parser.constructs.insideSpan.null;v&&an(x,x.length,0,oo(v,c.slice(m+1,p),d)),an(x,x.length,0,[["exit",g,d],["enter",c[p][1],d],["exit",c[p][1],d],["exit",y,d]]),an(c,m-1,p-m+3,x),p=m+x.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function o(c,d,p){const m=this.previous,y=this.events;let g=0;return x;function x(C){return m===126&&y[y.length-1][1].type!=="characterEscape"?p(C):(c.enter("strikethroughSequenceTemporary"),v(C))}function v(C){const z=Vr(m);if(C===126)return g>1?p(C):(c.consume(C),g++,v);if(g<2&&!r)return p(C);const T=c.exit("strikethroughSequenceTemporary"),k=Vr(C);return T._open=!k||k===2&&!!z,T._close=!z||z===2&&!!k,d(C)}}}class Rz{constructor(){this.map=[]}add(l,r,a){Oz(this,l,r,a)}consume(l){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(l.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),l.length=this.map[r][0];a.push(l.slice()),l.length=0;let s=a.pop();for(;s;){for(const o of s)l.push(o);s=a.pop()}this.map.length=0}}function Oz(t,l,r,a){let s=0;if(!(r===0&&a.length===0)){for(;s<t.map.length;){if(t.map[s][0]===l){t.map[s][1]+=r,t.map[s][2].push(...a);return}s+=1}t.map.push([l,r,a])}}function Mz(t,l){let r=!1;const a=[];for(;l<t.length;){const s=t[l];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(t[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[l-1][1].type==="tableDelimiterMarker"){const o=a.length-1;a[o]=a[o]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);l+=1}return a}function Dz(){return{flow:{null:{name:"table",tokenize:Nz,resolveAll:_z}}}}function Nz(t,l,r){const a=this;let s=0,o=0,c;return d;function d(j){let ie=a.events.length-1;for(;ie>-1;){const se=a.events[ie][1].type;if(se==="lineEnding"||se==="linePrefix")ie--;else break}const $=ie>-1?a.events[ie][1].type:null,Se=$==="tableHead"||$==="tableRow"?B:p;return Se===B&&a.parser.lazy[a.now().line]?r(j):Se(j)}function p(j){return t.enter("tableHead"),t.enter("tableRow"),m(j)}function m(j){return j===124||(c=!0,o+=1),y(j)}function y(j){return j===null?r(j):pe(j)?o>1?(o=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),v):r(j):Oe(j)?Le(t,y,"whitespace")(j):(o+=1,c&&(c=!1,s+=1),j===124?(t.enter("tableCellDivider"),t.consume(j),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),g(j)))}function g(j){return j===null||j===124||Je(j)?(t.exit("data"),y(j)):(t.consume(j),j===92?x:g)}function x(j){return j===92||j===124?(t.consume(j),g):g(j)}function v(j){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(j):(t.enter("tableDelimiterRow"),c=!1,Oe(j)?Le(t,C,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):C(j))}function C(j){return j===45||j===58?T(j):j===124?(c=!0,t.enter("tableCellDivider"),t.consume(j),t.exit("tableCellDivider"),z):P(j)}function z(j){return Oe(j)?Le(t,T,"whitespace")(j):T(j)}function T(j){return j===58?(o+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(j),t.exit("tableDelimiterMarker"),k):j===45?(o+=1,k(j)):j===null||pe(j)?Y(j):P(j)}function k(j){return j===45?(t.enter("tableDelimiterFiller"),U(j)):P(j)}function U(j){return j===45?(t.consume(j),U):j===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(j),t.exit("tableDelimiterMarker"),D):(t.exit("tableDelimiterFiller"),D(j))}function D(j){return Oe(j)?Le(t,Y,"whitespace")(j):Y(j)}function Y(j){return j===124?C(j):j===null||pe(j)?!c||s!==o?P(j):(t.exit("tableDelimiterRow"),t.exit("tableHead"),l(j)):P(j)}function P(j){return r(j)}function B(j){return t.enter("tableRow"),ee(j)}function ee(j){return j===124?(t.enter("tableCellDivider"),t.consume(j),t.exit("tableCellDivider"),ee):j===null||pe(j)?(t.exit("tableRow"),l(j)):Oe(j)?Le(t,ee,"whitespace")(j):(t.enter("data"),V(j))}function V(j){return j===null||j===124||Je(j)?(t.exit("data"),ee(j)):(t.consume(j),j===92?le:V)}function le(j){return j===92||j===124?(t.consume(j),V):V(j)}}function _z(t,l){let r=-1,a=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,p=0,m,y,g;const x=new Rz;for(;++r<t.length;){const v=t[r],C=v[1];v[0]==="enter"?C.type==="tableHead"?(d=!1,p!==0&&(Ab(x,l,p,m,y),y=void 0,p=0),m={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},x.add(r,0,[["enter",m,l]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(a=!0,g=void 0,o=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},x.add(r,0,[["enter",y,l]])),s=C.type==="tableDelimiterRow"?2:y?3:1):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],g=Ks(x,l,o,s,void 0,g),o=[0,0,0,0]),c[2]=r)):C.type==="tableCellDivider"&&(a?a=!1:(o[1]!==0&&(c[0]=c[1],g=Ks(x,l,o,s,void 0,g)),o=c,c=[o[1],r,0,0])):C.type==="tableHead"?(d=!0,p=r):C.type==="tableRow"||C.type==="tableDelimiterRow"?(p=r,o[1]!==0?(c[0]=c[1],g=Ks(x,l,o,s,r,g)):c[1]!==0&&(g=Ks(x,l,c,s,r,g)),s=0):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(c[3]=r)}for(p!==0&&Ab(x,l,p,m,y),x.consume(l.events),r=-1;++r<l.events.length;){const v=l.events[r];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=Mz(l.events,r))}return t}function Ks(t,l,r,a,s,o){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(o.end=Object.assign({},Or(l.events,r[0])),t.add(r[0],0,[["exit",o,l]]));const p=Or(l.events,r[1]);if(o={type:c,start:Object.assign({},p),end:Object.assign({},p)},t.add(r[1],0,[["enter",o,l]]),r[2]!==0){const m=Or(l.events,r[2]),y=Or(l.events,r[3]),g={type:d,start:Object.assign({},m),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",g,l]]),a!==2){const x=l.events[r[2]],v=l.events[r[3]];if(x[1].end=Object.assign({},v[1].end),x[1].type="chunkText",x[1].contentType="text",r[3]>r[2]+1){const C=r[2]+1,z=r[3]-r[2]-1;t.add(C,z,[])}}t.add(r[3]+1,0,[["exit",g,l]])}return s!==void 0&&(o.end=Object.assign({},Or(l.events,s)),t.add(s,0,[["exit",o,l]]),o=void 0),o}function Ab(t,l,r,a,s){const o=[],c=Or(l.events,r);s&&(s.end=Object.assign({},c),o.push(["exit",s,l])),a.end=Object.assign({},c),o.push(["exit",a,l]),t.add(r+1,0,o)}function Or(t,l){const r=t[l],a=r[0]==="enter"?"start":"end";return r[1][a]}const jz={name:"tasklistCheck",tokenize:Uz};function Lz(){return{text:{91:jz}}}function Uz(t,l,r){const a=this;return s;function s(p){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(p):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),o)}function o(p){return Je(p)?(t.enter("taskListCheckValueUnchecked"),t.consume(p),t.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(t.enter("taskListCheckValueChecked"),t.consume(p),t.exit("taskListCheckValueChecked"),c):r(p)}function c(p){return p===93?(t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):r(p)}function d(p){return pe(p)?l(p):Oe(p)?t.check({tokenize:Bz},l,r)(p):r(p)}}function Bz(t,l,r){return Le(t,a,"whitespace");function a(s){return s===null?r(s):l(s)}}function Hz(t){return Xv([cz(),xz(),zz(t),Dz(),Lz()])}const qz={};function Qz(t){const l=this,r=t||qz,a=l.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(Hz(r)),o.push(az()),c.push(uz(r))}function ro({content:t}){return E.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:E.jsx(zA,{remarkPlugins:[Qz],children:t})})}function Fz(){const{id:t}=T2(),[l,r]=L.useState(null),{data:a,isLoading:s,error:o}=li({queryKey:["task",t],queryFn:()=>tt.get(`/tasks/${t}`)}),c=a==null?void 0:a.task,{data:d}=li({queryKey:["task-output",t,l],queryFn:()=>tt.get(`/tasks/${t}/output/${l}`),enabled:!!l});return s?E.jsx("div",{className:"animate-pulse text-[var(--muted-foreground)]",children:"Loading task..."}):o||!c?E.jsx(yu,{icon:zw,title:"Task not found"}):E.jsxs("div",{children:[E.jsxs(Gh,{to:"/",className:"mb-4 inline-flex items-center gap-1 text-sm text-[var(--muted-foreground)] hover:text-[var(--foreground)]",children:[E.jsx(Cw,{className:"h-4 w-4"})," Back to dashboard"]}),E.jsxs("div",{className:"mb-6",children:[E.jsxs("div",{className:"flex items-center gap-3",children:[E.jsx("h1",{className:"text-2xl font-bold",children:c.taskId}),E.jsx(_i,{status:c.status})]}),E.jsx("p",{className:"mt-1 text-sm text-[var(--muted-foreground)]",children:c.query}),c.createdAt&&E.jsxs("p",{className:"mt-1 text-xs text-[var(--muted-foreground)]",children:["Created: ",new Date(c.createdAt).toLocaleString()]})]}),E.jsxs("div",{className:"mb-6",children:[E.jsx("h2",{className:"mb-3 text-lg font-semibold",children:"Steps"}),E.jsx("div",{className:"flex gap-2",children:c.steps.map(p=>E.jsxs("button",{onClick:()=>r(p.outputPath?p.name:null),className:`flex items-center gap-2 rounded-lg border px-4 py-3 text-left text-sm transition-colors ${l===p.name?"border-blue-500 bg-blue-50 dark:bg-blue-950":"border-[var(--border)] hover:bg-[var(--muted)]"} ${p.isCurrent?"ring-2 ring-blue-300":""}`,children:[E.jsxs("span",{className:"text-xs text-[var(--muted-foreground)]",children:[p.index,"."]}),E.jsx("span",{children:p.name}),E.jsx(_i,{status:p.status})]},p.name))})]}),l&&d&&E.jsxs("div",{className:"rounded-lg border border-[var(--border)] p-6",children:[E.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[E.jsx("h3",{className:"text-lg font-semibold",children:l}),E.jsx(_i,{status:d.frontmatter.status})]}),E.jsx(ro,{content:d.content})]}),!l&&E.jsx("div",{className:"rounded-lg border border-[var(--border)] p-8 text-center text-sm text-[var(--muted-foreground)]",children:"Select a step above to view its output"})]})}function Yz(){const t=du(),[l,r]=L.useState(null),[a,s]=L.useState(null),[o,c]=L.useState(""),[d,p]=L.useState(!1),[m,y]=L.useState(""),{data:g,isLoading:x}=li({queryKey:["steps"],queryFn:()=>tt.get("/steps")}),v=rn({mutationFn:({name:T,content:k})=>tt.put(`/steps/${T}/template`,{content:k}),onSuccess:()=>{t.invalidateQueries({queryKey:["steps"]}),s(null)}}),C=rn({mutationFn:T=>tt.post("/steps",{name:T}),onSuccess:()=>{t.invalidateQueries({queryKey:["steps"]}),p(!1),y("")}}),z=rn({mutationFn:T=>tt.delete(`/steps/${T}`),onSuccess:()=>t.invalidateQueries({queryKey:["steps"]})});return x?E.jsx("div",{className:"animate-pulse text-[var(--muted-foreground)]",children:"Loading steps..."}):!g||g.length===0?E.jsx(yu,{icon:xv,title:"No steps defined",description:"Add steps in your .spets/config.yml"}):E.jsxs("div",{children:[E.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[E.jsx("h1",{className:"text-2xl font-bold",children:"Steps"}),E.jsxs("button",{onClick:()=>p(!0),className:"inline-flex items-center gap-2 rounded-md bg-[var(--primary)] px-3 py-2 text-sm font-medium text-[var(--primary-foreground)] hover:opacity-90",children:[E.jsx(wv,{className:"h-4 w-4"})," Add Step"]})]}),d&&E.jsxs("div",{className:"mb-4 flex items-center gap-2 rounded-lg border border-[var(--border)] p-4",children:[E.jsx("input",{type:"text",value:m,onChange:T=>y(T.target.value),placeholder:"Step name (e.g., 03-test)",className:"flex-1 rounded-md border border-[var(--input)] bg-transparent px-3 py-2 text-sm"}),E.jsx("button",{onClick:()=>m&&C.mutate(m),className:"rounded-md bg-[var(--primary)] px-3 py-2 text-sm font-medium text-[var(--primary-foreground)]",children:"Create"}),E.jsx("button",{onClick:()=>p(!1),className:"rounded-md px-3 py-2 text-sm text-[var(--muted-foreground)]",children:"Cancel"})]}),E.jsx("div",{className:"space-y-2",children:g.map((T,k)=>E.jsxs("div",{className:"rounded-lg border border-[var(--border)]",children:[E.jsxs("div",{className:"flex cursor-pointer items-center justify-between px-4 py-3 hover:bg-[var(--muted)]",onClick:()=>r(l===T.name?null:T.name),children:[E.jsxs("div",{className:"flex items-center gap-3",children:[l===T.name?E.jsx(Tw,{className:"h-4 w-4"}):E.jsx(Aw,{className:"h-4 w-4"}),E.jsxs("span",{className:"text-sm text-[var(--muted-foreground)]",children:[k+1,"."]}),E.jsx("span",{className:"font-medium",children:T.name})]}),E.jsx("button",{onClick:U=>{U.stopPropagation(),confirm(`Delete step "${T.name}"?`)&&z.mutate(T.name)},className:"text-[var(--muted-foreground)] hover:text-red-500",children:E.jsx(Cv,{className:"h-4 w-4"})})]}),l===T.name&&E.jsx("div",{className:"border-t border-[var(--border)] p-4",children:a===T.name?E.jsxs("div",{children:[E.jsx("textarea",{value:o,onChange:U=>c(U.target.value),className:"w-full rounded-md border border-[var(--input)] bg-transparent p-3 font-mono text-sm",rows:15}),E.jsxs("div",{className:"mt-2 flex gap-2",children:[E.jsxs("button",{onClick:()=>v.mutate({name:T.name,content:o}),className:"inline-flex items-center gap-1 rounded-md bg-[var(--primary)] px-3 py-1.5 text-sm text-[var(--primary-foreground)]",children:[E.jsx(Vh,{className:"h-3 w-3"})," Save"]}),E.jsx("button",{onClick:()=>s(null),className:"rounded-md px-3 py-1.5 text-sm text-[var(--muted-foreground)]",children:"Cancel"})]})]}):E.jsxs("div",{children:[E.jsx("button",{onClick:()=>{s(T.name),c(T.template||"")},className:"mb-3 rounded-md border border-[var(--border)] px-3 py-1.5 text-xs text-[var(--muted-foreground)] hover:bg-[var(--muted)]",children:"Edit Template"}),T.template?E.jsx(ro,{content:T.template}):E.jsx("p",{className:"text-sm text-[var(--muted-foreground)]",children:"No template defined"})]})})]},T.name))})]})}function Gz(){var m;const t=du(),[l,r]=L.useState(!1),[a,s]=L.useState(""),{data:o,isLoading:c}=li({queryKey:["config"],queryFn:()=>tt.get("/config")}),{data:d}=li({queryKey:["config-raw"],queryFn:()=>tt.get("/config/raw"),enabled:l}),p=rn({mutationFn:y=>tt.put("/config",{content:y}),onSuccess:()=>{t.invalidateQueries({queryKey:["config"]}),t.invalidateQueries({queryKey:["config-raw"]}),r(!1)}});return d&&!a&&s(d.content),c?E.jsx("div",{className:"animate-pulse text-[var(--muted-foreground)]",children:"Loading config..."}):o?E.jsxs("div",{children:[E.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[E.jsx("h1",{className:"text-2xl font-bold",children:"Configuration"}),E.jsx("button",{onClick:()=>{l?(r(!1),s("")):r(!0)},className:"rounded-md border border-[var(--border)] px-3 py-2 text-sm hover:bg-[var(--muted)]",children:l?"View Mode":"Edit YAML"})]}),l?E.jsxs("div",{children:[E.jsx("textarea",{value:a,onChange:y=>s(y.target.value),className:"w-full rounded-lg border border-[var(--input)] bg-transparent p-4 font-mono text-sm",rows:20}),E.jsxs("div",{className:"mt-3 flex gap-2",children:[E.jsxs("button",{onClick:()=>p.mutate(a),className:"inline-flex items-center gap-2 rounded-md bg-[var(--primary)] px-4 py-2 text-sm font-medium text-[var(--primary-foreground)]",children:[E.jsx(Vh,{className:"h-4 w-4"})," Save"]}),p.isError&&E.jsxs("span",{className:"text-sm text-red-500",children:["Error: ",p.error.message]})]})]}):E.jsxs("div",{className:"space-y-6",children:[E.jsxs("section",{className:"rounded-lg border border-[var(--border)] p-4",children:[E.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase text-[var(--muted-foreground)]",children:"Steps"}),E.jsx("div",{className:"flex flex-wrap gap-2",children:o.steps.map((y,g)=>E.jsxs("div",{className:"inline-flex items-center gap-2 rounded-md bg-[var(--muted)] px-3 py-1.5 text-sm",children:[E.jsxs("span",{className:"text-xs text-[var(--muted-foreground)]",children:[g+1,"."]}),y]},y))})]}),o.agent&&E.jsxs("section",{className:"rounded-lg border border-[var(--border)] p-4",children:[E.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase text-[var(--muted-foreground)]",children:"Agent"}),E.jsx("p",{className:"text-sm",children:o.agent})]}),o.github&&E.jsxs("section",{className:"rounded-lg border border-[var(--border)] p-4",children:[E.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase text-[var(--muted-foreground)]",children:"GitHub"}),E.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm",children:[E.jsx("span",{className:"text-[var(--muted-foreground)]",children:"Owner:"}),E.jsx("span",{children:o.github.owner}),E.jsx("span",{className:"text-[var(--muted-foreground)]",children:"Repo:"}),E.jsx("span",{children:o.github.repo})]})]}),o.hooks&&Object.keys(o.hooks).length>0&&E.jsxs("section",{className:"rounded-lg border border-[var(--border)] p-4",children:[E.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase text-[var(--muted-foreground)]",children:"Hooks"}),E.jsx("div",{className:"space-y-1 text-sm",children:Object.entries(o.hooks).map(([y,g])=>E.jsxs("div",{className:"flex gap-2",children:[E.jsxs("span",{className:"text-[var(--muted-foreground)]",children:[y,":"]}),E.jsx("code",{className:"text-xs",children:g})]},y))})]}),((m=o.output)==null?void 0:m.path)&&E.jsxs("section",{className:"rounded-lg border border-[var(--border)] p-4",children:[E.jsx("h2",{className:"mb-3 text-sm font-semibold uppercase text-[var(--muted-foreground)]",children:"Output"}),E.jsx("code",{className:"text-sm",children:o.output.path})]})]})]}):E.jsx(yu,{icon:Ev,title:"No config found",description:"Run `spets init` to create a config."})}function Vz(){const t=du(),[l,r]=L.useState(null),[a,s]=L.useState(!1),[o,c]=L.useState(""),[d,p]=L.useState(!1),[m,y]=L.useState(""),[g,x]=L.useState(""),{data:v,isLoading:C}=li({queryKey:["knowledge"],queryFn:()=>tt.get("/knowledge")}),{data:z}=li({queryKey:["knowledge-guide"],queryFn:()=>tt.get("/knowledge/guide")}),T=rn({mutationFn:({name:Y,content:P})=>tt.put(`/knowledge/${Y}`,{content:P}),onSuccess:()=>{t.invalidateQueries({queryKey:["knowledge"]}),s(!1)}}),k=rn({mutationFn:({filename:Y,content:P})=>tt.post("/knowledge",{filename:Y,content:P}),onSuccess:()=>{t.invalidateQueries({queryKey:["knowledge"]}),p(!1),y(""),x("")}}),U=rn({mutationFn:Y=>tt.delete(`/knowledge/${Y}`),onSuccess:(Y,P)=>{t.invalidateQueries({queryKey:["knowledge"]}),l===P&&r(null)}}),D=v==null?void 0:v.find(Y=>Y.filename===l);return C?E.jsx("div",{className:"animate-pulse text-[var(--muted-foreground)]",children:"Loading knowledge..."}):E.jsxs("div",{children:[E.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[E.jsx("h1",{className:"text-2xl font-bold",children:"Knowledge"}),E.jsxs("button",{onClick:()=>p(!0),className:"inline-flex items-center gap-2 rounded-md bg-[var(--primary)] px-3 py-2 text-sm font-medium text-[var(--primary-foreground)] hover:opacity-90",children:[E.jsx(wv,{className:"h-4 w-4"})," Add Entry"]})]}),d&&E.jsxs("div",{className:"mb-4 space-y-3 rounded-lg border border-[var(--border)] p-4",children:[E.jsx("input",{type:"text",value:m,onChange:Y=>y(Y.target.value),placeholder:"Filename (without .md)",className:"w-full rounded-md border border-[var(--input)] bg-transparent px-3 py-2 text-sm"}),E.jsx("textarea",{value:g,onChange:Y=>x(Y.target.value),placeholder:"Content (markdown)",className:"w-full rounded-md border border-[var(--input)] bg-transparent p-3 font-mono text-sm",rows:6}),E.jsxs("div",{className:"flex gap-2",children:[E.jsx("button",{onClick:()=>m&&g&&k.mutate({filename:m,content:g}),className:"rounded-md bg-[var(--primary)] px-3 py-2 text-sm font-medium text-[var(--primary-foreground)]",children:"Create"}),E.jsx("button",{onClick:()=>p(!1),className:"rounded-md px-3 py-2 text-sm text-[var(--muted-foreground)]",children:"Cancel"})]})]}),E.jsxs("div",{className:"flex gap-6",style:{minHeight:"400px"},children:[E.jsxs("div",{className:"w-56 space-y-1",children:[(z==null?void 0:z.content)&&E.jsx("button",{onClick:()=>{r("__guide__"),s(!1)},className:`w-full rounded-md px-3 py-2 text-left text-sm ${l==="__guide__"?"bg-[var(--accent)] font-medium":"hover:bg-[var(--muted)]"}`,children:"guide.md"}),v==null?void 0:v.map(Y=>E.jsxs("div",{className:"group flex items-center",children:[E.jsx("button",{onClick:()=>{r(Y.filename),s(!1)},className:`flex-1 rounded-md px-3 py-2 text-left text-sm ${l===Y.filename?"bg-[var(--accent)] font-medium":"hover:bg-[var(--muted)]"}`,children:Y.filename}),E.jsx("button",{onClick:()=>{confirm(`Delete "${Y.filename}"?`)&&U.mutate(Y.filename)},className:"invisible px-1 text-[var(--muted-foreground)] hover:text-red-500 group-hover:visible",children:E.jsx(Cv,{className:"h-3 w-3"})})]},Y.filename)),(!v||v.length===0)&&!(z!=null&&z.content)&&E.jsx("p",{className:"px-3 py-2 text-sm text-[var(--muted-foreground)]",children:"No entries"})]}),E.jsx("div",{className:"flex-1 rounded-lg border border-[var(--border)] p-6",children:l==="__guide__"&&(z!=null&&z.content)?E.jsxs("div",{children:[E.jsx("h2",{className:"mb-4 text-lg font-semibold",children:"guide.md"}),E.jsx(ro,{content:z.content})]}):D?E.jsxs("div",{children:[E.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[E.jsx("h2",{className:"text-lg font-semibold",children:D.filename}),E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsxs("span",{className:"text-xs text-[var(--muted-foreground)]",children:["from ",D.source.taskId," / ",D.source.step]}),E.jsx("button",{onClick:()=>{a?s(!1):(s(!0),c(D.content))},className:"rounded-md border border-[var(--border)] px-2 py-1 text-xs hover:bg-[var(--muted)]",children:a?"Preview":"Edit"})]})]}),a?E.jsxs("div",{children:[E.jsx("textarea",{value:o,onChange:Y=>c(Y.target.value),className:"w-full rounded-md border border-[var(--input)] bg-transparent p-3 font-mono text-sm",rows:15}),E.jsxs("button",{onClick:()=>T.mutate({name:D.filename,content:o}),className:"mt-2 inline-flex items-center gap-1 rounded-md bg-[var(--primary)] px-3 py-1.5 text-sm text-[var(--primary-foreground)]",children:[E.jsx(Vh,{className:"h-3 w-3"})," Save"]})]}):E.jsx(ro,{content:D.content})]}):E.jsx(yu,{icon:vv,title:"Select an entry",description:"Choose a knowledge entry from the sidebar to view."})})]})]})}function Xz(){const[t,l]=L.useState(""),[r,a]=L.useState("claude"),[s,o]=L.useState("api"),[c,d]=L.useState(null),[p,m]=L.useState(""),[y,g]=L.useState([]),[x,v]=L.useState(null),[C,z]=L.useState(""),T=L.useRef(null),k=rn({mutationFn:V=>tt.post("/workflow/start",{query:V}),onSuccess:V=>d(V)}),U=rn({mutationFn:V=>tt.post(`/workflow/${V}/approve`,{}),onSuccess:V=>d(V)}),D=rn({mutationFn:({id:V,feedback:le})=>tt.post(`/workflow/${V}/revise`,{feedback:le}),onSuccess:V=>{d(V),m("")}}),Y=rn({mutationFn:V=>tt.post(`/workflow/${V}/reject`,{}),onSuccess:V=>d(V)}),P=rn({mutationFn:V=>tt.post(`/workflow/${V}/stop`,{}),onSuccess:V=>d(V)}),B=rn({mutationFn:({command:V,args:le})=>tt.post("/terminal/spawn",{command:V,args:le}),onSuccess:V=>{v(V.sessionId),g([`[Session ${V.sessionId} started, PID ${V.pid}]
194
+ `])}});L.useEffect(()=>{if(!x)return;const V=setInterval(async()=>{try{const le=await tt.get(`/terminal/${x}`);le.output.length>0&&g(j=>[...j,...le.output]),le.alive||clearInterval(V)}catch{clearInterval(V)}},500);return()=>clearInterval(V)},[x]),L.useEffect(()=>{T.current&&(T.current.scrollTop=T.current.scrollHeight)},[y]);const ee=()=>{t.trim()&&(s==="terminal"?B.mutate({command:"spets",args:["start",t,"--agent",r]}):k.mutate(t))};return E.jsxs("div",{children:[E.jsx("h1",{className:"mb-6 text-2xl font-bold",children:"Workflow"}),!c&&!x&&E.jsxs("div",{className:"space-y-4 rounded-lg border border-[var(--border)] p-6",children:[E.jsxs("div",{children:[E.jsx("label",{className:"mb-1 block text-sm font-medium",children:"Query"}),E.jsx("input",{type:"text",value:t,onChange:V=>l(V.target.value),placeholder:"Describe the task...",className:"w-full rounded-md border border-[var(--input)] bg-transparent px-3 py-2 text-sm",onKeyDown:V=>V.key==="Enter"&&ee()})]}),E.jsxs("div",{className:"flex gap-4",children:[E.jsxs("div",{children:[E.jsx("label",{className:"mb-1 block text-sm font-medium",children:"Agent"}),E.jsxs("select",{value:r,onChange:V=>a(V.target.value),className:"rounded-md border border-[var(--input)] bg-transparent px-3 py-2 text-sm",children:[E.jsx("option",{value:"claude",children:"Claude"}),E.jsx("option",{value:"codex",children:"Codex"}),E.jsx("option",{value:"gemini",children:"Gemini"})]})]}),E.jsxs("div",{children:[E.jsx("label",{className:"mb-1 block text-sm font-medium",children:"Mode"}),E.jsxs("select",{value:s,onChange:V=>o(V.target.value),className:"rounded-md border border-[var(--input)] bg-transparent px-3 py-2 text-sm",children:[E.jsx("option",{value:"api",children:"API-driven"}),E.jsx("option",{value:"terminal",children:"Terminal"})]})]})]}),E.jsxs("button",{onClick:ee,disabled:!t.trim()||k.isPending,className:"inline-flex items-center gap-2 rounded-md bg-[var(--primary)] px-4 py-2 text-sm font-medium text-[var(--primary-foreground)] hover:opacity-90 disabled:opacity-50",children:[E.jsx(Sv,{className:"h-4 w-4"}),k.isPending?"Starting...":"Start Workflow"]}),k.isError&&E.jsxs("p",{className:"text-sm text-red-500",children:["Error: ",k.error.message]})]}),x&&E.jsxs("div",{children:[E.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[E.jsxs("span",{className:"text-sm text-[var(--muted-foreground)]",children:["Terminal Session: ",x]}),E.jsxs("button",{onClick:async()=>{await tt.delete(`/terminal/${x}`),v(null),g([])},className:"inline-flex items-center gap-1 rounded-md border border-[var(--border)] px-3 py-1 text-sm text-[var(--muted-foreground)] hover:text-red-500",children:[E.jsx(jy,{className:"h-3 w-3"})," Kill"]})]}),E.jsx("div",{ref:T,className:"h-96 overflow-y-auto rounded-lg bg-black p-4 font-mono text-sm text-green-400",children:y.map((V,le)=>E.jsx("pre",{className:"whitespace-pre-wrap",children:V},le))}),E.jsx("div",{className:"mt-2 flex gap-2",children:E.jsx("input",{type:"text",value:C,onChange:V=>z(V.target.value),placeholder:"Send input...",className:"flex-1 rounded-md border border-[var(--input)] bg-transparent px-3 py-2 font-mono text-sm",onKeyDown:async V=>{V.key==="Enter"&&(await tt.post(`/terminal/${x}/input`,{input:C+`
195
+ `}),z(""))}})})]}),c&&E.jsxs("div",{className:"space-y-4",children:[E.jsxs("div",{className:"flex items-center justify-between",children:[E.jsxs("div",{className:"flex items-center gap-3",children:[E.jsxs("span",{className:"text-sm font-medium",children:["Task: ",c.taskId]}),c.step&&E.jsxs("span",{className:"text-sm text-[var(--muted-foreground)]",children:["Step: ",c.step]}),c.phase&&E.jsx(_i,{status:c.phase}),c.status&&E.jsx(_i,{status:c.status})]}),E.jsxs("button",{onClick:()=>c.taskId&&P.mutate(c.taskId),className:"inline-flex items-center gap-1 rounded-md border border-[var(--border)] px-3 py-1 text-sm text-[var(--muted-foreground)] hover:text-red-500",children:[E.jsx(jy,{className:"h-3 w-3"})," Stop"]})]}),c.type==="phase"&&c.prompt&&E.jsxs("div",{className:"rounded-lg border border-[var(--border)] p-4",children:[E.jsxs("h3",{className:"mb-2 text-sm font-semibold text-[var(--muted-foreground)]",children:["Phase: ",c.phase]}),E.jsxs("pre",{className:"max-h-64 overflow-y-auto whitespace-pre-wrap text-sm",children:[c.prompt.slice(0,2e3),"..."]}),E.jsx("p",{className:"mt-3 text-sm text-[var(--muted-foreground)]",children:"Execute this prompt with your AI agent, then use the orchestrate command to report results."})]}),c.type==="checkpoint"&&c.status==="approve_pending"&&E.jsxs("div",{className:"rounded-lg border border-[var(--border)] p-4",children:[E.jsx("h3",{className:"mb-3 text-sm font-semibold",children:"Review"}),c.verifyOutput&&E.jsxs("div",{className:"mb-4 space-y-2",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("span",{className:"text-sm",children:"Verification:"}),E.jsx(_i,{status:c.verifyOutput.passed?"approved":"rejected"})]}),E.jsxs("div",{className:"grid grid-cols-3 gap-3 text-sm",children:[E.jsxs("div",{children:["Accuracy: ",c.verifyOutput.score.accuracy,"/10"]}),E.jsxs("div",{children:["Completeness: ",c.verifyOutput.score.completeness,"/10"]}),E.jsxs("div",{children:["Consistency: ",c.verifyOutput.score.consistency,"/10"]})]}),c.verifyOutput.issues.length>0&&E.jsxs("div",{className:"text-sm text-[var(--muted-foreground)]",children:["Issues: ",c.verifyOutput.issues.join(", ")]})]}),E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsxs("button",{onClick:()=>c.taskId&&U.mutate(c.taskId),className:"inline-flex items-center gap-1 rounded-md bg-green-600 px-4 py-2 text-sm font-medium text-white hover:bg-green-700",children:[E.jsx(kw,{className:"h-4 w-4"})," Approve"]}),E.jsxs("button",{onClick:()=>c.taskId&&Y.mutate(c.taskId),className:"inline-flex items-center gap-1 rounded-md bg-red-600 px-4 py-2 text-sm font-medium text-white hover:bg-red-700",children:[E.jsx(Dw,{className:"h-4 w-4"})," Reject"]})]}),E.jsxs("div",{className:"mt-3 flex gap-2",children:[E.jsx("input",{type:"text",value:p,onChange:V=>m(V.target.value),placeholder:"Revision feedback...",className:"flex-1 rounded-md border border-[var(--input)] bg-transparent px-3 py-2 text-sm"}),E.jsxs("button",{onClick:()=>c.taskId&&p&&D.mutate({id:c.taskId,feedback:p}),className:"inline-flex items-center gap-1 rounded-md border border-[var(--border)] px-3 py-2 text-sm hover:bg-[var(--muted)]",children:[E.jsx(Mw,{className:"h-3 w-3"})," Revise"]})]})]}),c.type==="checkpoint"&&c.decisions&&c.decisions.length>0&&E.jsxs("div",{className:"rounded-lg border border-[var(--border)] p-4",children:[E.jsx("h3",{className:"mb-3 text-sm font-semibold",children:"Decisions Required"}),c.decisions.map(V=>E.jsxs("div",{className:"mb-4",children:[E.jsx("p",{className:"mb-1 font-medium",children:V.decision}),E.jsx("p",{className:"mb-2 text-sm text-[var(--muted-foreground)]",children:V.why}),E.jsx("div",{className:"space-y-1",children:V.options.map(le=>E.jsxs("button",{onClick:()=>{c.taskId&&tt.post(`/workflow/${c.taskId}/clarified`,{answers:[{decisionId:V.id,selectedOptionId:le.id}]}).then(j=>d(j))},className:"block w-full rounded-md border border-[var(--border)] px-3 py-2 text-left text-sm hover:bg-[var(--muted)]",children:[E.jsx("span",{className:"font-medium",children:le.label}),E.jsx("span",{className:"ml-2 text-[var(--muted-foreground)]",children:le.description})]},le.id))})]},V.id))]}),(c.type==="complete"||c.type==="error")&&E.jsxs("div",{className:"rounded-lg border border-[var(--border)] p-4",children:[E.jsx("p",{className:"text-sm",children:c.message||`Workflow ${c.status}`}),E.jsx("button",{onClick:()=>d(null),className:"mt-3 rounded-md border border-[var(--border)] px-4 py-2 text-sm hover:bg-[var(--muted)]",children:"Start New Workflow"})]})]})]})}function Kz(){return E.jsx(F2,{children:E.jsxs(Xl,{element:E.jsx(mE,{}),children:[E.jsx(Xl,{index:!0,element:E.jsx(yE,{})}),E.jsx(Xl,{path:"tasks/:id",element:E.jsx(Fz,{})}),E.jsx(Xl,{path:"steps",element:E.jsx(Yz,{})}),E.jsx(Xl,{path:"config",element:E.jsx(Gz,{})}),E.jsx(Xl,{path:"knowledge",element:E.jsx(Vz,{})}),E.jsx(Xl,{path:"workflow",element:E.jsx(Xz,{})})]})})}const Zz=new RS({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});rS.createRoot(document.getElementById("root")).render(E.jsx(L.StrictMode,{children:E.jsx(OS,{client:Zz,children:E.jsx(hw,{children:E.jsx(Kz,{})})})}));