agentxl 1.1.0 → 1.1.3

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.
@@ -1,194 +0,0 @@
1
- (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const h of s)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function u(s){const h={};return s.integrity&&(h.integrity=s.integrity),s.referrerPolicy&&(h.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?h.credentials="include":s.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(s){if(s.ep)return;s.ep=!0;const h=u(s);fetch(s.href,h)}})();function wp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var wc={exports:{}},ya={};/**
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 zd;function l0(){if(zd)return ya;zd=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function u(r,s,h){var f=null;if(h!==void 0&&(f=""+h),s.key!==void 0&&(f=""+s.key),"key"in s){h={};for(var p in s)p!=="key"&&(h[p]=s[p])}else h=s;return s=h.ref,{$$typeof:n,type:r,key:f,ref:s!==void 0?s:null,props:h}}return ya.Fragment=a,ya.jsx=u,ya.jsxs=u,ya}var Cd;function i0(){return Cd||(Cd=1,wc.exports=l0()),wc.exports}var L=i0(),_c={exports:{}},ye={};/**
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 wd;function a0(){if(wd)return ye;wd=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function v(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,Z={};function O(A,Y,k){this.props=A,this.context=Y,this.refs=Z,this.updater=k||C}O.prototype.isReactComponent={},O.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Y,"setState")},O.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function Q(){}Q.prototype=O.prototype;function H(A,Y,k){this.props=A,this.context=Y,this.refs=Z,this.updater=k||C}var ie=H.prototype=new Q;ie.constructor=H,B(ie,O.prototype),ie.isPureReactComponent=!0;var ae=Array.isArray;function U(){}var W={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function pe(A,Y,k){var P=k.ref;return{$$typeof:n,type:A,key:Y,ref:P!==void 0?P:null,props:k}}function R(A,Y){return pe(A.type,Y,A.props)}function te(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ee(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(k){return Y[k]})}var Se=/\/+/g;function ne(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?ee(""+A.key):Y.toString(36)}function J(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(U,U):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function M(A,Y,k,P,me){var re=typeof A;(re==="undefined"||re==="boolean")&&(A=null);var ze=!1;if(A===null)ze=!0;else switch(re){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(A.$$typeof){case n:case a:ze=!0;break;case x:return ze=A._init,M(ze(A._payload),Y,k,P,me)}}if(ze)return me=me(A),ze=P===""?"."+ne(A,0):P,ae(me)?(k="",ze!=null&&(k=ze.replace(Se,"$&/")+"/"),M(me,Y,k,"",function(Yt){return Yt})):me!=null&&(te(me)&&(me=R(me,k+(me.key==null||A&&A.key===me.key?"":(""+me.key).replace(Se,"$&/")+"/")+ze)),Y.push(me)),1;ze=0;var Fe=P===""?".":P+":";if(ae(A))for(var Ue=0;Ue<A.length;Ue++)P=A[Ue],re=Fe+ne(P,Ue),ze+=M(P,Y,k,re,me);else if(Ue=v(A),typeof Ue=="function")for(A=Ue.call(A),Ue=0;!(P=A.next()).done;)P=P.value,re=Fe+ne(P,Ue++),ze+=M(P,Y,k,re,me);else if(re==="object"){if(typeof A.then=="function")return M(J(A),Y,k,P,me);throw Y=String(A),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ze}function F(A,Y,k){if(A==null)return A;var P=[],me=0;return M(A,P,"","",function(re){return Y.call(k,re,me++)}),P}function $(A){if(A._status===-1){var Y=A._result;Y=Y(),Y.then(function(k){(A._status===0||A._status===-1)&&(A._status=1,A._result=k)},function(k){(A._status===0||A._status===-1)&&(A._status=2,A._result=k)}),A._status===-1&&(A._status=0,A._result=Y)}if(A._status===1)return A._result.default;throw A._result}var ge=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},E={map:F,forEach:function(A,Y,k){F(A,function(){Y.apply(this,arguments)},k)},count:function(A){var Y=0;return F(A,function(){Y++}),Y},toArray:function(A){return F(A,function(Y){return Y})||[]},only:function(A){if(!te(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ye.Activity=y,ye.Children=E,ye.Component=O,ye.Fragment=u,ye.Profiler=s,ye.PureComponent=H,ye.StrictMode=r,ye.Suspense=d,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,ye.__COMPILER_RUNTIME={__proto__:null,c:function(A){return W.H.useMemoCache(A)}},ye.cache=function(A){return function(){return A.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(A,Y,k){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var P=B({},A.props),me=A.key;if(Y!=null)for(re in Y.key!==void 0&&(me=""+Y.key),Y)!se.call(Y,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&Y.ref===void 0||(P[re]=Y[re]);var re=arguments.length-2;if(re===1)P.children=k;else if(1<re){for(var ze=Array(re),Fe=0;Fe<re;Fe++)ze[Fe]=arguments[Fe+2];P.children=ze}return pe(A.type,me,P)},ye.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:h,_context:A},A},ye.createElement=function(A,Y,k){var P,me={},re=null;if(Y!=null)for(P in Y.key!==void 0&&(re=""+Y.key),Y)se.call(Y,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(me[P]=Y[P]);var ze=arguments.length-2;if(ze===1)me.children=k;else if(1<ze){for(var Fe=Array(ze),Ue=0;Ue<ze;Ue++)Fe[Ue]=arguments[Ue+2];me.children=Fe}if(A&&A.defaultProps)for(P in ze=A.defaultProps,ze)me[P]===void 0&&(me[P]=ze[P]);return pe(A,re,me)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(A){return{$$typeof:p,render:A}},ye.isValidElement=te,ye.lazy=function(A){return{$$typeof:x,_payload:{_status:-1,_result:A},_init:$}},ye.memo=function(A,Y){return{$$typeof:m,type:A,compare:Y===void 0?null:Y}},ye.startTransition=function(A){var Y=W.T,k={};W.T=k;try{var P=A(),me=W.S;me!==null&&me(k,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(U,ge)}catch(re){ge(re)}finally{Y!==null&&k.types!==null&&(Y.types=k.types),W.T=Y}},ye.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},ye.use=function(A){return W.H.use(A)},ye.useActionState=function(A,Y,k){return W.H.useActionState(A,Y,k)},ye.useCallback=function(A,Y){return W.H.useCallback(A,Y)},ye.useContext=function(A){return W.H.useContext(A)},ye.useDebugValue=function(){},ye.useDeferredValue=function(A,Y){return W.H.useDeferredValue(A,Y)},ye.useEffect=function(A,Y){return W.H.useEffect(A,Y)},ye.useEffectEvent=function(A){return W.H.useEffectEvent(A)},ye.useId=function(){return W.H.useId()},ye.useImperativeHandle=function(A,Y,k){return W.H.useImperativeHandle(A,Y,k)},ye.useInsertionEffect=function(A,Y){return W.H.useInsertionEffect(A,Y)},ye.useLayoutEffect=function(A,Y){return W.H.useLayoutEffect(A,Y)},ye.useMemo=function(A,Y){return W.H.useMemo(A,Y)},ye.useOptimistic=function(A,Y){return W.H.useOptimistic(A,Y)},ye.useReducer=function(A,Y,k){return W.H.useReducer(A,Y,k)},ye.useRef=function(A){return W.H.useRef(A)},ye.useState=function(A){return W.H.useState(A)},ye.useSyncExternalStore=function(A,Y,k){return W.H.useSyncExternalStore(A,Y,k)},ye.useTransition=function(){return W.H.useTransition()},ye.version="19.2.4",ye}var _d;function cs(){return _d||(_d=1,_c.exports=a0()),_c.exports}var ce=cs(),Dc={exports:{}},xa={},Oc={exports:{}},Mc={};/**
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 Dd;function u0(){return Dd||(Dd=1,(function(n){function a(M,F){var $=M.length;M.push(F);e:for(;0<$;){var ge=$-1>>>1,E=M[ge];if(0<s(E,F))M[ge]=F,M[$]=E,$=ge;else break e}}function u(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var F=M[0],$=M.pop();if($!==F){M[0]=$;e:for(var ge=0,E=M.length,A=E>>>1;ge<A;){var Y=2*(ge+1)-1,k=M[Y],P=Y+1,me=M[P];if(0>s(k,$))P<E&&0>s(me,k)?(M[ge]=me,M[P]=$,ge=P):(M[ge]=k,M[Y]=$,ge=Y);else if(P<E&&0>s(me,$))M[ge]=me,M[P]=$,ge=P;else break e}}return F}function s(M,F){var $=M.sortIndex-F.sortIndex;return $!==0?$:M.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var d=[],m=[],x=1,y=null,S=3,v=!1,C=!1,B=!1,Z=!1,O=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function ie(M){for(var F=u(m);F!==null;){if(F.callback===null)r(m);else if(F.startTime<=M)r(m),F.sortIndex=F.expirationTime,a(d,F);else break;F=u(m)}}function ae(M){if(B=!1,ie(M),!C)if(u(d)!==null)C=!0,U||(U=!0,ee());else{var F=u(m);F!==null&&J(ae,F.startTime-M)}}var U=!1,W=-1,se=5,pe=-1;function R(){return Z?!0:!(n.unstable_now()-pe<se)}function te(){if(Z=!1,U){var M=n.unstable_now();pe=M;var F=!0;try{e:{C=!1,B&&(B=!1,Q(W),W=-1),v=!0;var $=S;try{t:{for(ie(M),y=u(d);y!==null&&!(y.expirationTime>M&&R());){var ge=y.callback;if(typeof ge=="function"){y.callback=null,S=y.priorityLevel;var E=ge(y.expirationTime<=M);if(M=n.unstable_now(),typeof E=="function"){y.callback=E,ie(M),F=!0;break t}y===u(d)&&r(d),ie(M)}else r(d);y=u(d)}if(y!==null)F=!0;else{var A=u(m);A!==null&&J(ae,A.startTime-M),F=!1}}break e}finally{y=null,S=$,v=!1}F=void 0}}finally{F?ee():U=!1}}}var ee;if(typeof H=="function")ee=function(){H(te)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ne=Se.port2;Se.port1.onmessage=te,ee=function(){ne.postMessage(null)}}else ee=function(){O(te,0)};function J(M,F){W=O(function(){M(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(M){switch(S){case 1:case 2:case 3:var F=3;break;default:F=S}var $=S;S=F;try{return M()}finally{S=$}},n.unstable_requestPaint=function(){Z=!0},n.unstable_runWithPriority=function(M,F){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var $=S;S=M;try{return F()}finally{S=$}},n.unstable_scheduleCallback=function(M,F,$){var ge=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ge+$:ge):$=ge,M){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=$+E,M={id:x++,callback:F,priorityLevel:M,startTime:$,expirationTime:E,sortIndex:-1},$>ge?(M.sortIndex=$,a(m,M),u(d)===null&&M===u(m)&&(B?(Q(W),W=-1):B=!0,J(ae,$-ge))):(M.sortIndex=E,a(d,M),C||v||(C=!0,U||(U=!0,ee()))),M},n.unstable_shouldYield=R,n.unstable_wrapCallback=function(M){var F=S;return function(){var $=S;S=F;try{return M.apply(this,arguments)}finally{S=$}}}})(Mc)),Mc}var Od;function r0(){return Od||(Od=1,Oc.exports=u0()),Oc.exports}var Nc={exports:{}},mt={};/**
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 Md;function o0(){if(Md)return mt;Md=1;var n=cs();function a(d){var m="https://react.dev/errors/"+d;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+d+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(a(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},s=Symbol.for("react.portal");function h(d,m,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:d,containerInfo:m,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(d,m){if(d==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mt.createPortal=function(d,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return h(d,m,null,x)},mt.flushSync=function(d){var m=f.T,x=r.p;try{if(f.T=null,r.p=2,d)return d()}finally{f.T=m,r.p=x,r.d.f()}},mt.preconnect=function(d,m){typeof d=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(d,m))},mt.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},mt.preinit=function(d,m){if(typeof d=="string"&&m&&typeof m.as=="string"){var x=m.as,y=p(x,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?r.d.S(d,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:v}):x==="script"&&r.d.X(d,{crossOrigin:y,integrity:S,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},mt.preinitModule=function(d,m){if(typeof d=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=p(m.as,m.crossOrigin);r.d.M(d,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(d)},mt.preload=function(d,m){if(typeof d=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,y=p(x,m.crossOrigin);r.d.L(d,x,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},mt.preloadModule=function(d,m){if(typeof d=="string")if(m){var x=p(m.as,m.crossOrigin);r.d.m(d,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(d)},mt.requestFormReset=function(d){r.d.r(d)},mt.unstable_batchedUpdates=function(d,m){return d(m)},mt.useFormState=function(d,m,x){return f.H.useFormState(d,m,x)},mt.useFormStatus=function(){return f.H.useHostTransitionStatus()},mt.version="19.2.4",mt}var Nd;function c0(){if(Nd)return Nc.exports;Nd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Nc.exports=o0(),Nc.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 Rd;function s0(){if(Rd)return xa;Rd=1;var n=r0(),a=cs(),u=c0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(h(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,i=t;;){var o=l.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){l=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===l)return d(o),e;if(c===i)return d(o),t;c=c.sibling}throw Error(r(188))}if(l.return!==i.return)l=o,i=c;else{for(var g=!1,b=o.child;b;){if(b===l){g=!0,l=o,i=c;break}if(b===i){g=!0,i=o,l=c;break}b=b.sibling}if(!g){for(b=c.child;b;){if(b===l){g=!0,l=c,i=o;break}if(b===i){g=!0,i=c,l=o;break}b=b.sibling}if(!g)throw Error(r(189))}}if(l.alternate!==i)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),H=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function ne(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 B:return"Fragment";case O:return"Profiler";case Z:return"StrictMode";case ae:return"Suspense";case U:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case H:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:ne(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}var J=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},ge=[],E=-1;function A(e){return{current:e}}function Y(e){0>E||(e.current=ge[E],ge[E]=null,E--)}function k(e,t){E++,ge[E]=e.current,e.current=t}var P=A(null),me=A(null),re=A(null),ze=A(null);function Fe(e,t){switch(k(re,t),k(me,e),k(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jm(t),e=Im(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(P),k(P,e)}function Ue(){Y(P),Y(me),Y(re)}function Yt(e){e.memoizedState!==null&&k(ze,e);var t=P.current,l=Im(t,e.type);t!==l&&(k(me,e),k(P,l))}function fn(e){me.current===e&&(Y(P),Y(me)),ze.current===e&&(Y(ze),ma._currentValue=$)}var Ti,Oa;function hn(e){if(Ti===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ti=t&&t[1]||"",Oa=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ti+e+Oa}var wl=!1;function _l(e,t){if(!e||wl)return"";wl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(j){var N=j}Reflect.construct(e,[],G)}else{try{G.call()}catch(j){N=j}e.call(G.prototype)}}else{try{throw Error()}catch(j){N=j}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(j){if(j&&N&&typeof j.stack=="string")return[j.stack,N.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),g=c[0],b=c[1];if(g&&b){var T=g.split(`
44
- `),D=b.split(`
45
- `);for(o=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(i===T.length||o===D.length)for(i=T.length-1,o=D.length-1;1<=i&&0<=o&&T[i]!==D[o];)o--;for(;1<=i&&0<=o;i--,o--)if(T[i]!==D[o]){if(i!==1||o!==1)do if(i--,o--,0>o||T[i]!==D[o]){var q=`
46
- `+T[i].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=i&&0<=o);break}}}finally{wl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?hn(l):""}function Ma(e,t){switch(e.tag){case 26:case 27:case 5:return hn(e.type);case 16:return hn("Lazy");case 13:return e.child!==t&&t!==null?hn("Suspense Fallback"):hn("Suspense");case 19:return hn("SuspenseList");case 0:case 15:return _l(e.type,!1);case 11:return _l(e.type.render,!1);case 1:return _l(e.type,!0);case 31:return hn("Activity");default:return""}}function Na(e){try{var t="",l=null;do t+=Ma(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
47
- Error generating stack: `+i.message+`
48
- `+i.stack}}var Dl=Object.prototype.hasOwnProperty,Ol=n.unstable_scheduleCallback,Ai=n.unstable_cancelCallback,hr=n.unstable_shouldYield,mr=n.unstable_requestPaint,gt=n.unstable_now,dr=n.unstable_getCurrentPriorityLevel,V=n.unstable_ImmediatePriority,I=n.unstable_UserBlockingPriority,de=n.unstable_NormalPriority,ke=n.unstable_LowPriority,Re=n.unstable_IdlePriority,Ot=n.log,mn=n.unstable_setDisableYieldValue,yt=null,it=null;function St(e){if(typeof Ot=="function"&&mn(e),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(yt,e)}catch{}}var Ye=Math.clz32?Math.clz32:Xg,Nn=Math.log,Pt=Math.LN2;function Xg(e){return e>>>=0,e===0?32:31-(Nn(e)/Pt|0)|0}var Ra=256,ja=262144,La=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ua(e,t,l){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~c,i!==0?o=rl(i):(g&=b,g!==0?o=rl(g):l||(l=b&~e,l!==0&&(o=rl(l))))):(b=i&~c,b!==0?o=rl(b):g!==0?o=rl(g):l||(l=i&~e,l!==0&&(o=rl(l)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:o}function zi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _s(){var e=La;return La<<=1,(La&62914560)===0&&(La=4194304),e}function pr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ci(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Gg(e,t,l,i,o,c){var g=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var b=e.entanglements,T=e.expirationTimes,D=e.hiddenUpdates;for(l=g&~l;0<l;){var q=31-Ye(l),G=1<<q;b[q]=0,T[q]=-1;var N=D[q];if(N!==null)for(D[q]=null,q=0;q<N.length;q++){var j=N[q];j!==null&&(j.lane&=-536870913)}l&=~G}i!==0&&Ds(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function Ds(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Ye(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function Os(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var i=31-Ye(l),o=1<<i;o&t|e[i]&t&&(e[i]|=t),l&=~o}}function Ms(e,t){var l=t&-t;return l=(l&42)!==0?1:gr(l),(l&(e.suspendedLanes|t))!==0?0:l}function gr(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 yr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ns(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:bd(e.type))}function Rs(e,t){var l=F.p;try{return F.p=e,t()}finally{F.p=l}}var Rn=Math.random().toString(36).slice(2),ot="__reactFiber$"+Rn,kt="__reactProps$"+Rn,Ml="__reactContainer$"+Rn,xr="__reactEvents$"+Rn,Zg="__reactListeners$"+Rn,Fg="__reactHandles$"+Rn,js="__reactResources$"+Rn,wi="__reactMarker$"+Rn;function br(e){delete e[ot],delete e[kt],delete e[xr],delete e[Zg],delete e[Fg]}function Nl(e){var t=e[ot];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ml]||l[ot]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=ld(e);e!==null;){if(l=e[ot])return l;e=ld(e)}return t}e=l,l=e.parentNode}return null}function Rl(e){if(e=e[ot]||e[Ml]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function _i(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function jl(e){var t=e[js];return t||(t=e[js]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[wi]=!0}var Ls=new Set,Us={};function ol(e,t){Ll(e,t),Ll(e+"Capture",t)}function Ll(e,t){for(Us[e]=t,e=0;e<t.length;e++)Ls.add(t[e])}var Kg=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]*$"),Bs={},Hs={};function Jg(e){return Dl.call(Hs,e)?!0:Dl.call(Bs,e)?!1:Kg.test(e)?Hs[e]=!0:(Bs[e]=!0,!1)}function Ba(e,t,l){if(Jg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ha(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function dn(e,t,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+i)}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ig(e,t,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(g){l=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vr(e){if(!e._valueTracker){var t=qs(e)?"checked":"value";e._valueTracker=Ig(e,t,""+e[t])}}function Ys(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=qs(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function qa(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 $g=/[\n"\\]/g;function Xt(e){return e.replace($g,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Sr(e,t,l,i,o,c,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?kr(e,g,Vt(t)):l!=null?kr(e,g,Vt(l)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Vt(b):e.removeAttribute("name")}function Vs(e,t,l,i,o,c,g,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){vr(e);return}l=l!=null?""+Vt(l):"",t=t!=null?""+Vt(t):l,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),vr(e)}function kr(e,t,l){t==="number"&&qa(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Ul(e,t,l,i){if(e=e.options,t){t={};for(var o=0;o<l.length;o++)t["$"+l[o]]=!0;for(l=0;l<e.length;l++)o=t.hasOwnProperty("$"+e[l].value),e[l].selected!==o&&(e[l].selected=o),o&&i&&(e[l].defaultSelected=!0)}else{for(l=""+Vt(l),t=null,o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Xs(e,t,l){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Vt(l):""}function Qs(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(r(92));if(J(i)){if(1<i.length)throw Error(r(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=Vt(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),vr(e)}function Bl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Wg=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 Gs(e,t,l){var i=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,l):typeof l!="number"||l===0||Wg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Zs(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&l[o]!==i&&Gs(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&Gs(e,c,t[c])}function Er(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 Pg=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"]]),ey=/^[\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 Ya(e){return ey.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pn(){}var Tr=null;function Ar(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hl=null,ql=null;function Fs(e){var t=Rl(e);if(t&&(e=t.stateNode)){var l=e[kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Sr(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Xt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var i=l[t];if(i!==e&&i.form===e.form){var o=i[kt]||null;if(!o)throw Error(r(90));Sr(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)i=l[t],i.form===e.form&&Ys(i)}break e;case"textarea":Xs(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ul(e,!!l.multiple,t,!1)}}}var zr=!1;function Ks(e,t,l){if(zr)return e(t,l);zr=!0;try{var i=e(t);return i}finally{if(zr=!1,(Hl!==null||ql!==null)&&(wu(),Hl&&(t=Hl,e=ql,ql=Hl=null,Fs(t),e)))for(t=0;t<e.length;t++)Fs(e[t])}}function Di(e,t){var l=e.stateNode;if(l===null)return null;var i=l[kt]||null;if(i===null)return null;l=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cr=!1;if(gn)try{var Oi={};Object.defineProperty(Oi,"passive",{get:function(){Cr=!0}}),window.addEventListener("test",Oi,Oi),window.removeEventListener("test",Oi,Oi)}catch{Cr=!1}var jn=null,wr=null,Va=null;function Js(){if(Va)return Va;var e,t=wr,l=t.length,i,o="value"in jn?jn.value:jn.textContent,c=o.length;for(e=0;e<l&&t[e]===o[e];e++);var g=l-e;for(i=1;i<=g&&t[l-i]===o[c-i];i++);return Va=o.slice(e,1<i?1-i:void 0)}function Xa(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Qa(){return!0}function Is(){return!1}function Et(e){function t(l,i,o,c,g){this._reactName=l,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(l=e[b],this[b]=l?l(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Qa:Is,this.isPropagationStopped=Is,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Qa)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Qa)},persist:function(){},isPersistent:Qa}),t}var cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ga=Et(cl),Mi=y({},cl,{view:0,detail:0}),ty=Et(Mi),_r,Dr,Ni,Za=y({},Mi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mr,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!==Ni&&(Ni&&e.type==="mousemove"?(_r=e.screenX-Ni.screenX,Dr=e.screenY-Ni.screenY):Dr=_r=0,Ni=e),_r)},movementY:function(e){return"movementY"in e?e.movementY:Dr}}),$s=Et(Za),ny=y({},Za,{dataTransfer:0}),ly=Et(ny),iy=y({},Mi,{relatedTarget:0}),Or=Et(iy),ay=y({},cl,{animationName:0,elapsedTime:0,pseudoElement:0}),uy=Et(ay),ry=y({},cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oy=Et(ry),cy=y({},cl,{data:0}),Ws=Et(cy),sy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fy={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"},hy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function my(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hy[e])?!!t[e]:!1}function Mr(){return my}var dy=y({},Mi,{key:function(e){if(e.key){var t=sy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mr,charCode:function(e){return e.type==="keypress"?Xa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),py=Et(dy),gy=y({},Za,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ps=Et(gy),yy=y({},Mi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mr}),xy=Et(yy),by=y({},cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),vy=Et(by),Sy=y({},Za,{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}),ky=Et(Sy),Ey=y({},cl,{newState:0,oldState:0}),Ty=Et(Ey),Ay=[9,13,27,32],Nr=gn&&"CompositionEvent"in window,Ri=null;gn&&"documentMode"in document&&(Ri=document.documentMode);var zy=gn&&"TextEvent"in window&&!Ri,ef=gn&&(!Nr||Ri&&8<Ri&&11>=Ri),tf=" ",nf=!1;function lf(e,t){switch(e){case"keyup":return Ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function af(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function Cy(e,t){switch(e){case"compositionend":return af(t);case"keypress":return t.which!==32?null:(nf=!0,tf);case"textInput":return e=t.data,e===tf&&nf?null:e;default:return null}}function wy(e,t){if(Yl)return e==="compositionend"||!Nr&&lf(e,t)?(e=Js(),Va=wr=jn=null,Yl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ef&&t.locale!=="ko"?null:t.data;default:return null}}var _y={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 uf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_y[e.type]:t==="textarea"}function rf(e,t,l,i){Hl?ql?ql.push(i):ql=[i]:Hl=i,t=ju(t,"onChange"),0<t.length&&(l=new Ga("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var ji=null,Li=null;function Dy(e){Xm(e,0)}function Fa(e){var t=_i(e);if(Ys(t))return e}function of(e,t){if(e==="change")return t}var cf=!1;if(gn){var Rr;if(gn){var jr="oninput"in document;if(!jr){var sf=document.createElement("div");sf.setAttribute("oninput","return;"),jr=typeof sf.oninput=="function"}Rr=jr}else Rr=!1;cf=Rr&&(!document.documentMode||9<document.documentMode)}function ff(){ji&&(ji.detachEvent("onpropertychange",hf),Li=ji=null)}function hf(e){if(e.propertyName==="value"&&Fa(Li)){var t=[];rf(t,Li,e,Ar(e)),Ks(Dy,t)}}function Oy(e,t,l){e==="focusin"?(ff(),ji=t,Li=l,ji.attachEvent("onpropertychange",hf)):e==="focusout"&&ff()}function My(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fa(Li)}function Ny(e,t){if(e==="click")return Fa(t)}function Ry(e,t){if(e==="input"||e==="change")return Fa(t)}function jy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:jy;function Ui(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var o=l[i];if(!Dl.call(t,o)||!Mt(e[o],t[o]))return!1}return!0}function mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function df(e,t){var l=mf(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=t&&i>=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=mf(l)}}function pf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qa(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=qa(e.document)}return t}function Lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Ly=gn&&"documentMode"in document&&11>=document.documentMode,Vl=null,Ur=null,Bi=null,Br=!1;function yf(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Br||Vl==null||Vl!==qa(i)||(i=Vl,"selectionStart"in i&&Lr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Bi&&Ui(Bi,i)||(Bi=i,i=ju(Ur,"onSelect"),0<i.length&&(t=new Ga("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=Vl)))}function sl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Xl={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionrun:sl("Transition","TransitionRun"),transitionstart:sl("Transition","TransitionStart"),transitioncancel:sl("Transition","TransitionCancel"),transitionend:sl("Transition","TransitionEnd")},Hr={},xf={};gn&&(xf=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function fl(e){if(Hr[e])return Hr[e];if(!Xl[e])return e;var t=Xl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in xf)return Hr[e]=t[l];return e}var bf=fl("animationend"),vf=fl("animationiteration"),Sf=fl("animationstart"),Uy=fl("transitionrun"),By=fl("transitionstart"),Hy=fl("transitioncancel"),kf=fl("transitionend"),Ef=new Map,qr="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(" ");qr.push("scrollEnd");function en(e,t){Ef.set(e,t),ol(t,[e])}var Ka=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Qt=[],Ql=0,Yr=0;function Ja(){for(var e=Ql,t=Yr=Ql=0;t<e;){var l=Qt[t];Qt[t++]=null;var i=Qt[t];Qt[t++]=null;var o=Qt[t];Qt[t++]=null;var c=Qt[t];if(Qt[t++]=null,i!==null&&o!==null){var g=i.pending;g===null?o.next=o:(o.next=g.next,g.next=o),i.pending=o}c!==0&&Tf(l,o,c)}}function Ia(e,t,l,i){Qt[Ql++]=e,Qt[Ql++]=t,Qt[Ql++]=l,Qt[Ql++]=i,Yr|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Vr(e,t,l,i){return Ia(e,t,l,i),$a(e)}function hl(e,t){return Ia(e,null,null,t),$a(e)}function Tf(e,t,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var o=!1,c=e.return;c!==null;)c.childLanes|=l,i=c.alternate,i!==null&&(i.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Ye(l),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=l|536870912),c):null}function $a(e){if(50<ua)throw ua=0,Wo=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Gl={};function qy(e,t,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,l,i){return new qy(e,t,l,i)}function Xr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yn(e,t){var l=e.alternate;return l===null?(l=Nt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Af(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Wa(e,t,l,i,o,c){var g=0;if(i=e,typeof e=="function")Xr(e)&&(g=1);else if(typeof e=="string")g=G1(e,l,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=Nt(31,l,t,o),e.elementType=pe,e.lanes=c,e;case B:return ml(l.children,o,c,t);case Z:g=8,o|=24;break;case O:return e=Nt(12,l,t,o|2),e.elementType=O,e.lanes=c,e;case ae:return e=Nt(13,l,t,o),e.elementType=ae,e.lanes=c,e;case U:return e=Nt(19,l,t,o),e.elementType=U,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:g=10;break e;case Q:g=9;break e;case ie:g=11;break e;case W:g=14;break e;case se:g=16,i=null;break e}g=29,l=Error(r(130,e===null?"null":typeof e,"")),i=null}return t=Nt(g,l,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function ml(e,t,l,i){return e=Nt(7,e,i,t),e.lanes=l,e}function Qr(e,t,l){return e=Nt(6,e,null,t),e.lanes=l,e}function zf(e){var t=Nt(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,l){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Cf=new WeakMap;function Gt(e,t){if(typeof e=="object"&&e!==null){var l=Cf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Na(t)},Cf.set(e,t),t)}return{value:e,source:t,stack:Na(t)}}var Zl=[],Fl=0,Pa=null,Hi=0,Zt=[],Ft=0,Ln=null,an=1,un="";function xn(e,t){Zl[Fl++]=Hi,Zl[Fl++]=Pa,Pa=e,Hi=t}function wf(e,t,l){Zt[Ft++]=an,Zt[Ft++]=un,Zt[Ft++]=Ln,Ln=e;var i=an;e=un;var o=32-Ye(i)-1;i&=~(1<<o),l+=1;var c=32-Ye(t)+o;if(30<c){var g=o-o%5;c=(i&(1<<g)-1).toString(32),i>>=g,o-=g,an=1<<32-Ye(t)+o|l<<o|i,un=c+e}else an=1<<c|l<<o|i,un=e}function Zr(e){e.return!==null&&(xn(e,1),wf(e,1,0))}function Fr(e){for(;e===Pa;)Pa=Zl[--Fl],Zl[Fl]=null,Hi=Zl[--Fl],Zl[Fl]=null;for(;e===Ln;)Ln=Zt[--Ft],Zt[Ft]=null,un=Zt[--Ft],Zt[Ft]=null,an=Zt[--Ft],Zt[Ft]=null}function _f(e,t){Zt[Ft++]=an,Zt[Ft++]=un,Zt[Ft++]=Ln,an=t.id,un=t.overflow,Ln=e}var ct=null,Ge=null,_e=!1,Un=null,Kt=!1,Kr=Error(r(519));function Bn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qi(Gt(t,e)),Kr}function Df(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[ot]=e,t[kt]=i,l){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(l=0;l<oa.length;l++)Te(oa[l],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),Vs(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),Qs(t,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||i.suppressHydrationWarning===!0||Fm(t.textContent,l)?(i.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),i.onScroll!=null&&Te("scroll",t),i.onScrollEnd!=null&&Te("scrollend",t),i.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||Bn(e,!0)}function Of(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Kt=!1;return;case 27:case 3:Kt=!0;return;default:ct=ct.return}}function Kl(e){if(e!==ct)return!1;if(!_e)return Of(e),_e=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||mc(e.type,e.memoizedProps)),l=!l),l&&Ge&&Bn(e),Of(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ge=nd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ge=nd(e)}else t===27?(t=Ge,Wn(e.type)?(e=xc,xc=null,Ge=e):Ge=t):Ge=ct?It(e.stateNode.nextSibling):null;return!0}function dl(){Ge=ct=null,_e=!1}function Jr(){var e=Un;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),Un=null),e}function qi(e){Un===null?Un=[e]:Un.push(e)}var Ir=A(null),pl=null,bn=null;function Hn(e,t,l){k(Ir,t._currentValue),t._currentValue=l}function vn(e){e._currentValue=Ir.current,Y(Ir)}function $r(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function Wr(e,t,l,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var g=o.child;c=c.firstContext;e:for(;c!==null;){var b=c;c=o;for(var T=0;T<t.length;T++)if(b.context===t[T]){c.lanes|=l,b=c.alternate,b!==null&&(b.lanes|=l),$r(c.return,l,e),i||(g=null);break e}c=b.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(r(341));g.lanes|=l,c=g.alternate,c!==null&&(c.lanes|=l),$r(g,l,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Jl(e,t,l,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var b=o.type;Mt(o.pendingProps.value,g.value)||(e!==null?e.push(b):e=[b])}}else if(o===ze.current){if(g=o.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ma):e=[ma])}o=o.return}e!==null&&Wr(t,e,l,i),t.flags|=262144}function eu(e){for(e=e.firstContext;e!==null;){if(!Mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gl(e){pl=e,bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return Mf(pl,e)}function tu(e,t){return pl===null&&gl(e),Mf(e,t)}function Mf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},bn===null){if(e===null)throw Error(r(308));bn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else bn=bn.next=t;return l}var Yy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Vy=n.unstable_scheduleCallback,Xy=n.unstable_NormalPriority,Pe={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pr(){return{controller:new Yy,data:new Map,refCount:0}}function Yi(e){e.refCount--,e.refCount===0&&Vy(Xy,function(){e.controller.abort()})}var Vi=null,eo=0,Il=0,$l=null;function Qy(e,t){if(Vi===null){var l=Vi=[];eo=0,Il=ic(),$l={status:"pending",value:void 0,then:function(i){l.push(i)}}}return eo++,t.then(Nf,Nf),t}function Nf(){if(--eo===0&&Vi!==null){$l!==null&&($l.status="fulfilled");var e=Vi;Vi=null,Il=0,$l=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Gy(e,t){var l=[],i={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),i}var Rf=M.S;M.S=function(e,t){ym=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Qy(e,t),Rf!==null&&Rf(e,t)};var yl=A(null);function to(){var e=yl.current;return e!==null?e:Ve.pooledCache}function nu(e,t){t===null?k(yl,yl.current):k(yl,t.pool)}function jf(){var e=to();return e===null?null:{parent:Pe._currentValue,pool:e}}var Wl=Error(r(460)),no=Error(r(474)),lu=Error(r(542)),iu={then:function(){}};function Lf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Uf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(pn,pn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hf(e),e;default:if(typeof t.status=="string")t.then(pn,pn);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hf(e),e}throw bl=t,Wl}}function xl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(bl=l,Wl):l}}var bl=null;function Bf(){if(bl===null)throw Error(r(459));var e=bl;return bl=null,e}function Hf(e){if(e===Wl||e===lu)throw Error(r(483))}var Pl=null,Xi=0;function au(e){var t=Xi;return Xi+=1,Pl===null&&(Pl=[]),Uf(Pl,e,t)}function Qi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function uu(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function qf(e){function t(w,z){if(e){var _=w.deletions;_===null?(w.deletions=[z],w.flags|=16):_.push(z)}}function l(w,z){if(!e)return null;for(;z!==null;)t(w,z),z=z.sibling;return null}function i(w){for(var z=new Map;w!==null;)w.key!==null?z.set(w.key,w):z.set(w.index,w),w=w.sibling;return z}function o(w,z){return w=yn(w,z),w.index=0,w.sibling=null,w}function c(w,z,_){return w.index=_,e?(_=w.alternate,_!==null?(_=_.index,_<z?(w.flags|=67108866,z):_):(w.flags|=67108866,z)):(w.flags|=1048576,z)}function g(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function b(w,z,_,X){return z===null||z.tag!==6?(z=Qr(_,w.mode,X),z.return=w,z):(z=o(z,_),z.return=w,z)}function T(w,z,_,X){var oe=_.type;return oe===B?q(w,z,_.props.children,X,_.key):z!==null&&(z.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===se&&xl(oe)===z.type)?(z=o(z,_.props),Qi(z,_),z.return=w,z):(z=Wa(_.type,_.key,_.props,null,w.mode,X),Qi(z,_),z.return=w,z)}function D(w,z,_,X){return z===null||z.tag!==4||z.stateNode.containerInfo!==_.containerInfo||z.stateNode.implementation!==_.implementation?(z=Gr(_,w.mode,X),z.return=w,z):(z=o(z,_.children||[]),z.return=w,z)}function q(w,z,_,X,oe){return z===null||z.tag!==7?(z=ml(_,w.mode,X,oe),z.return=w,z):(z=o(z,_),z.return=w,z)}function G(w,z,_){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Qr(""+z,w.mode,_),z.return=w,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case v:return _=Wa(z.type,z.key,z.props,null,w.mode,_),Qi(_,z),_.return=w,_;case C:return z=Gr(z,w.mode,_),z.return=w,z;case se:return z=xl(z),G(w,z,_)}if(J(z)||ee(z))return z=ml(z,w.mode,_,null),z.return=w,z;if(typeof z.then=="function")return G(w,au(z),_);if(z.$$typeof===H)return G(w,tu(w,z),_);uu(w,z)}return null}function N(w,z,_,X){var oe=z!==null?z.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return oe!==null?null:b(w,z,""+_,X);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case v:return _.key===oe?T(w,z,_,X):null;case C:return _.key===oe?D(w,z,_,X):null;case se:return _=xl(_),N(w,z,_,X)}if(J(_)||ee(_))return oe!==null?null:q(w,z,_,X,null);if(typeof _.then=="function")return N(w,z,au(_),X);if(_.$$typeof===H)return N(w,z,tu(w,_),X);uu(w,_)}return null}function j(w,z,_,X,oe){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return w=w.get(_)||null,b(z,w,""+X,oe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case v:return w=w.get(X.key===null?_:X.key)||null,T(z,w,X,oe);case C:return w=w.get(X.key===null?_:X.key)||null,D(z,w,X,oe);case se:return X=xl(X),j(w,z,_,X,oe)}if(J(X)||ee(X))return w=w.get(_)||null,q(z,w,X,oe,null);if(typeof X.then=="function")return j(w,z,_,au(X),oe);if(X.$$typeof===H)return j(w,z,_,tu(z,X),oe);uu(z,X)}return null}function le(w,z,_,X){for(var oe=null,Oe=null,ue=z,be=z=0,we=null;ue!==null&&be<_.length;be++){ue.index>be?(we=ue,ue=null):we=ue.sibling;var Me=N(w,ue,_[be],X);if(Me===null){ue===null&&(ue=we);break}e&&ue&&Me.alternate===null&&t(w,ue),z=c(Me,z,be),Oe===null?oe=Me:Oe.sibling=Me,Oe=Me,ue=we}if(be===_.length)return l(w,ue),_e&&xn(w,be),oe;if(ue===null){for(;be<_.length;be++)ue=G(w,_[be],X),ue!==null&&(z=c(ue,z,be),Oe===null?oe=ue:Oe.sibling=ue,Oe=ue);return _e&&xn(w,be),oe}for(ue=i(ue);be<_.length;be++)we=j(ue,w,be,_[be],X),we!==null&&(e&&we.alternate!==null&&ue.delete(we.key===null?be:we.key),z=c(we,z,be),Oe===null?oe=we:Oe.sibling=we,Oe=we);return e&&ue.forEach(function(ll){return t(w,ll)}),_e&&xn(w,be),oe}function he(w,z,_,X){if(_==null)throw Error(r(151));for(var oe=null,Oe=null,ue=z,be=z=0,we=null,Me=_.next();ue!==null&&!Me.done;be++,Me=_.next()){ue.index>be?(we=ue,ue=null):we=ue.sibling;var ll=N(w,ue,Me.value,X);if(ll===null){ue===null&&(ue=we);break}e&&ue&&ll.alternate===null&&t(w,ue),z=c(ll,z,be),Oe===null?oe=ll:Oe.sibling=ll,Oe=ll,ue=we}if(Me.done)return l(w,ue),_e&&xn(w,be),oe;if(ue===null){for(;!Me.done;be++,Me=_.next())Me=G(w,Me.value,X),Me!==null&&(z=c(Me,z,be),Oe===null?oe=Me:Oe.sibling=Me,Oe=Me);return _e&&xn(w,be),oe}for(ue=i(ue);!Me.done;be++,Me=_.next())Me=j(ue,w,be,Me.value,X),Me!==null&&(e&&Me.alternate!==null&&ue.delete(Me.key===null?be:Me.key),z=c(Me,z,be),Oe===null?oe=Me:Oe.sibling=Me,Oe=Me);return e&&ue.forEach(function(n0){return t(w,n0)}),_e&&xn(w,be),oe}function qe(w,z,_,X){if(typeof _=="object"&&_!==null&&_.type===B&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case v:e:{for(var oe=_.key;z!==null;){if(z.key===oe){if(oe=_.type,oe===B){if(z.tag===7){l(w,z.sibling),X=o(z,_.props.children),X.return=w,w=X;break e}}else if(z.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===se&&xl(oe)===z.type){l(w,z.sibling),X=o(z,_.props),Qi(X,_),X.return=w,w=X;break e}l(w,z);break}else t(w,z);z=z.sibling}_.type===B?(X=ml(_.props.children,w.mode,X,_.key),X.return=w,w=X):(X=Wa(_.type,_.key,_.props,null,w.mode,X),Qi(X,_),X.return=w,w=X)}return g(w);case C:e:{for(oe=_.key;z!==null;){if(z.key===oe)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){l(w,z.sibling),X=o(z,_.children||[]),X.return=w,w=X;break e}else{l(w,z);break}else t(w,z);z=z.sibling}X=Gr(_,w.mode,X),X.return=w,w=X}return g(w);case se:return _=xl(_),qe(w,z,_,X)}if(J(_))return le(w,z,_,X);if(ee(_)){if(oe=ee(_),typeof oe!="function")throw Error(r(150));return _=oe.call(_),he(w,z,_,X)}if(typeof _.then=="function")return qe(w,z,au(_),X);if(_.$$typeof===H)return qe(w,z,tu(w,_),X);uu(w,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(l(w,z.sibling),X=o(z,_),X.return=w,w=X):(l(w,z),X=Qr(_,w.mode,X),X.return=w,w=X),g(w)):l(w,z)}return function(w,z,_,X){try{Xi=0;var oe=qe(w,z,_,X);return Pl=null,oe}catch(ue){if(ue===Wl||ue===lu)throw ue;var Oe=Nt(29,ue,null,w.mode);return Oe.lanes=X,Oe.return=w,Oe}finally{}}}var vl=qf(!0),Yf=qf(!1),qn=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Yn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ne&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=$a(e),Tf(e,null,l),t}return Ia(e,i,t,l),$a(e)}function Gi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Os(e,l)}}function ao(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var o=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var g={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,l=l.next}while(l!==null);c===null?o=c=t:c=c.next=t}else o=c=t;l={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var uo=!1;function Zi(){if(uo){var e=$l;if(e!==null)throw e}}function Fi(e,t,l,i){uo=!1;var o=e.updateQueue;qn=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var T=b,D=T.next;T.next=null,g===null?c=D:g.next=D,g=T;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==g&&(b===null?q.firstBaseUpdate=D:b.next=D,q.lastBaseUpdate=T))}if(c!==null){var G=o.baseState;g=0,q=D=T=null,b=c;do{var N=b.lane&-536870913,j=N!==b.lane;if(j?(Ce&N)===N:(i&N)===N){N!==0&&N===Il&&(uo=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var le=e,he=b;N=t;var qe=l;switch(he.tag){case 1:if(le=he.payload,typeof le=="function"){G=le.call(qe,G,N);break e}G=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=he.payload,N=typeof le=="function"?le.call(qe,G,N):le,N==null)break e;G=y({},G,N);break e;case 2:qn=!0}}N=b.callback,N!==null&&(e.flags|=64,j&&(e.flags|=8192),j=o.callbacks,j===null?o.callbacks=[N]:j.push(N))}else j={lane:N,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(D=q=j,T=G):q=q.next=j,g|=N;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;j=b,b=j.next,j.next=null,o.lastBaseUpdate=j,o.shared.pending=null}}while(!0);q===null&&(T=G),o.baseState=T,o.firstBaseUpdate=D,o.lastBaseUpdate=q,c===null&&(o.shared.lanes=0),Fn|=g,e.lanes=g,e.memoizedState=G}}function Vf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Xf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Vf(l[e],t)}var ei=A(null),ru=A(0);function Qf(e,t){e=_n,k(ru,e),k(ei,t),_n=e|t.baseLanes}function ro(){k(ru,_n),k(ei,ei.current)}function oo(){_n=ru.current,Y(ei),Y(ru)}var Rt=A(null),Jt=null;function Xn(e){var t=e.alternate;k($e,$e.current&1),k(Rt,e),Jt===null&&(t===null||ei.current!==null||t.memoizedState!==null)&&(Jt=e)}function co(e){k($e,$e.current),k(Rt,e),Jt===null&&(Jt=e)}function Gf(e){e.tag===22?(k($e,$e.current),k(Rt,e),Jt===null&&(Jt=e)):Qn()}function Qn(){k($e,$e.current),k(Rt,Rt.current)}function jt(e){Y(Rt),Jt===e&&(Jt=null),Y($e)}var $e=A(0);function ou(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||gc(l)||yc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Sn=0,xe=null,Be=null,et=null,cu=!1,ti=!1,Sl=!1,su=0,Ki=0,ni=null,Zy=0;function Je(){throw Error(r(321))}function so(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Mt(e[l],t[l]))return!1;return!0}function fo(e,t,l,i,o,c){return Sn=c,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?wh:Co,Sl=!1,c=l(i,o),Sl=!1,ti&&(c=Ff(t,l,i,o)),Zf(e),c}function Zf(e){M.H=$i;var t=Be!==null&&Be.next!==null;if(Sn=0,et=Be=xe=null,cu=!1,Ki=0,ni=null,t)throw Error(r(300));e===null||tt||(e=e.dependencies,e!==null&&eu(e)&&(tt=!0))}function Ff(e,t,l,i){xe=e;var o=0;do{if(ti&&(ni=null),Ki=0,ti=!1,25<=o)throw Error(r(301));if(o+=1,et=Be=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}M.H=_h,c=t(l,i)}while(ti);return c}function Fy(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?Ji(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(xe.flags|=1024),t}function ho(){var e=su!==0;return su=0,e}function mo(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function po(e){if(cu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cu=!1}Sn=0,et=Be=xe=null,ti=!1,Ki=su=0,ni=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?xe.memoizedState=et=e:et=et.next=e,et}function We(){if(Be===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=et===null?xe.memoizedState:et.next;if(t!==null)et=t,Be=e;else{if(e===null)throw xe.alternate===null?Error(r(467)):Error(r(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},et===null?xe.memoizedState=et=e:et=et.next=e}return et}function fu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ji(e){var t=Ki;return Ki+=1,ni===null&&(ni=[]),e=Uf(ni,e,t),t=xe,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?wh:Co),e}function hu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ji(e);if(e.$$typeof===H)return st(e)}throw Error(r(438,String(e)))}function go(e){var t=null,l=xe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=xe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=fu(),xe.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),i=0;i<e;i++)l[i]=R;return t.index++,l}function kn(e,t){return typeof t=="function"?t(e):t}function mu(e){var t=We();return yo(t,Be,e)}function yo(e,t,l){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=l;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var b=g=null,T=null,D=t,q=!1;do{var G=D.lane&-536870913;if(G!==D.lane?(Ce&G)===G:(Sn&G)===G){var N=D.revertLane;if(N===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),G===Il&&(q=!0);else if((Sn&N)===N){D=D.next,N===Il&&(q=!0);continue}else G={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(b=T=G,g=c):T=T.next=G,xe.lanes|=N,Fn|=N;G=D.action,Sl&&l(c,G),c=D.hasEagerState?D.eagerState:l(c,G)}else N={lane:G,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(b=T=N,g=c):T=T.next=N,xe.lanes|=G,Fn|=G;D=D.next}while(D!==null&&D!==t);if(T===null?g=c:T.next=b,!Mt(c,e.memoizedState)&&(tt=!0,q&&(l=$l,l!==null)))throw l;e.memoizedState=c,e.baseState=g,e.baseQueue=T,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function xo(e){var t=We(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var i=l.dispatch,o=l.pending,c=t.memoizedState;if(o!==null){l.pending=null;var g=o=o.next;do c=e(c,g.action),g=g.next;while(g!==o);Mt(c,t.memoizedState)||(tt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,i]}function Kf(e,t,l){var i=xe,o=We(),c=_e;if(c){if(l===void 0)throw Error(r(407));l=l()}else l=t();var g=!Mt((Be||o).memoizedState,l);if(g&&(o.memoizedState=l,tt=!0),o=o.queue,So($f.bind(null,i,o,e),[e]),o.getSnapshot!==t||g||et!==null&&et.memoizedState.tag&1){if(i.flags|=2048,li(9,{destroy:void 0},If.bind(null,i,o,l,t),null),Ve===null)throw Error(r(349));c||(Sn&127)!==0||Jf(i,t,l)}return l}function Jf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=xe.updateQueue,t===null?(t=fu(),xe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function If(e,t,l,i){t.value=l,t.getSnapshot=i,Wf(t)&&Pf(e)}function $f(e,t,l){return l(function(){Wf(t)&&Pf(e)})}function Wf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Mt(e,l)}catch{return!0}}function Pf(e){var t=hl(e,2);t!==null&&wt(t,e,2)}function bo(e){var t=xt();if(typeof e=="function"){var l=e;if(e=l(),Sl){St(!0);try{l()}finally{St(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:e},t}function eh(e,t,l,i){return e.baseState=l,yo(e,Be,typeof i=="function"?i:kn)}function Ky(e,t,l,i,o){if(gu(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};M.T!==null?l(!0):c.isTransition=!1,i(c),l=t.pending,l===null?(c.next=t.pending=c,th(t,c)):(c.next=l.next,t.pending=l.next=c)}}function th(e,t){var l=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=M.T,g={};M.T=g;try{var b=l(o,i),T=M.S;T!==null&&T(g,b),nh(e,t,b)}catch(D){vo(e,t,D)}finally{c!==null&&g.types!==null&&(c.types=g.types),M.T=c}}else try{c=l(o,i),nh(e,t,c)}catch(D){vo(e,t,D)}}function nh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){lh(e,t,i)},function(i){return vo(e,t,i)}):lh(e,t,l)}function lh(e,t,l){t.status="fulfilled",t.value=l,ih(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,th(e,l)))}function vo(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,ih(t),t=t.next;while(t!==i)}e.action=null}function ih(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ah(e,t){return t}function uh(e,t){if(_e){var l=Ve.formState;if(l!==null){e:{var i=xe;if(_e){if(Ge){t:{for(var o=Ge,c=Kt;o.nodeType!==8;){if(!c){o=null;break t}if(o=It(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Ge=It(o.nextSibling),i=o.data==="F!";break e}}Bn(i)}i=!1}i&&(t=l[0])}}return l=xt(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ah,lastRenderedState:t},l.queue=i,l=Ah.bind(null,xe,i),i.dispatch=l,i=bo(!1),c=zo.bind(null,xe,!1,i.queue),i=xt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,l=Ky.bind(null,xe,o,c,l),o.dispatch=l,i.memoizedState=e,[t,l,!1]}function rh(e){var t=We();return oh(t,Be,e)}function oh(e,t,l){if(t=yo(e,t,ah)[0],e=mu(kn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ji(t)}catch(g){throw g===Wl?lu:g}else i=t;t=We();var o=t.queue,c=o.dispatch;return l!==t.memoizedState&&(xe.flags|=2048,li(9,{destroy:void 0},Jy.bind(null,o,l),null)),[i,c,e]}function Jy(e,t){e.action=t}function ch(e){var t=We(),l=Be;if(l!==null)return oh(t,l,e);We(),t=t.memoizedState,l=We();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function li(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=xe.updateQueue,t===null&&(t=fu(),xe.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,t.lastEffect=e),e}function sh(){return We().memoizedState}function du(e,t,l,i){var o=xt();xe.flags|=e,o.memoizedState=li(1|t,{destroy:void 0},l,i===void 0?null:i)}function pu(e,t,l,i){var o=We();i=i===void 0?null:i;var c=o.memoizedState.inst;Be!==null&&i!==null&&so(i,Be.memoizedState.deps)?o.memoizedState=li(t,c,l,i):(xe.flags|=e,o.memoizedState=li(1|t,c,l,i))}function fh(e,t){du(8390656,8,e,t)}function So(e,t){pu(2048,8,e,t)}function Iy(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=fu(),xe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function hh(e){var t=We().memoizedState;return Iy({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function mh(e,t){return pu(4,2,e,t)}function dh(e,t){return pu(4,4,e,t)}function ph(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gh(e,t,l){l=l!=null?l.concat([e]):null,pu(4,4,ph.bind(null,t,e),l)}function ko(){}function yh(e,t){var l=We();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&so(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function xh(e,t){var l=We();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&so(t,i[1]))return i[0];if(i=e(),Sl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[i,t],i}function Eo(e,t,l){return l===void 0||(Sn&1073741824)!==0&&(Ce&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=bm(),xe.lanes|=e,Fn|=e,l)}function bh(e,t,l,i){return Mt(l,t)?l:ei.current!==null?(e=Eo(e,l,i),Mt(e,t)||(tt=!0),e):(Sn&42)===0||(Sn&1073741824)!==0&&(Ce&261930)===0?(tt=!0,e.memoizedState=l):(e=bm(),xe.lanes|=e,Fn|=e,t)}function vh(e,t,l,i,o){var c=F.p;F.p=c!==0&&8>c?c:8;var g=M.T,b={};M.T=b,zo(e,!1,t,l);try{var T=o(),D=M.S;if(D!==null&&D(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var q=Gy(T,i);Ii(e,t,q,Bt(e))}else Ii(e,t,i,Bt(e))}catch(G){Ii(e,t,{then:function(){},status:"rejected",reason:G},Bt())}finally{F.p=c,g!==null&&b.types!==null&&(g.types=b.types),M.T=g}}function $y(){}function To(e,t,l,i){if(e.tag!==5)throw Error(r(476));var o=Sh(e).queue;vh(e,o,t,$,l===null?$y:function(){return kh(e),l(i)})}function Sh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:$},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kh(e){var t=Sh(e);t.next===null&&(t=e.alternate.memoizedState),Ii(e,t.next.queue,{},Bt())}function Ao(){return st(ma)}function Eh(){return We().memoizedState}function Th(){return We().memoizedState}function Wy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Bt();e=Yn(l);var i=Vn(t,e,l);i!==null&&(wt(i,t,l),Gi(i,t,l)),t={cache:Pr()},e.payload=t;return}t=t.return}}function Py(e,t,l){var i=Bt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gu(e)?zh(t,l):(l=Vr(e,t,l,i),l!==null&&(wt(l,e,i),Ch(l,t,i)))}function Ah(e,t,l){var i=Bt();Ii(e,t,l,i)}function Ii(e,t,l,i){var o={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(gu(e))zh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,b=c(g,l);if(o.hasEagerState=!0,o.eagerState=b,Mt(b,g))return Ia(e,t,o,0),Ve===null&&Ja(),!1}catch{}finally{}if(l=Vr(e,t,o,i),l!==null)return wt(l,e,i),Ch(l,t,i),!0}return!1}function zo(e,t,l,i){if(i={lane:2,revertLane:ic(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},gu(e)){if(t)throw Error(r(479))}else t=Vr(e,l,i,2),t!==null&&wt(t,e,2)}function gu(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function zh(e,t){ti=cu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Ch(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Os(e,l)}}var $i={readContext:st,use:hu,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};$i.useEffectEvent=Je;var wh={readContext:st,use:hu,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:fh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,du(4194308,4,ph.bind(null,t,e),l)},useLayoutEffect:function(e,t){return du(4194308,4,e,t)},useInsertionEffect:function(e,t){du(4,2,e,t)},useMemo:function(e,t){var l=xt();t=t===void 0?null:t;var i=e();if(Sl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=xt();if(l!==void 0){var o=l(t);if(Sl){St(!0);try{l(t)}finally{St(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=Py.bind(null,xe,e),[i.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=bo(e);var t=e.queue,l=Ah.bind(null,xe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ko,useDeferredValue:function(e,t){var l=xt();return Eo(l,e,t)},useTransition:function(){var e=bo(!1);return e=vh.bind(null,xe,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=xe,o=xt();if(_e){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ve===null)throw Error(r(349));(Ce&127)!==0||Jf(i,t,l)}o.memoizedState=l;var c={value:l,getSnapshot:t};return o.queue=c,fh($f.bind(null,i,c,e),[e]),i.flags|=2048,li(9,{destroy:void 0},If.bind(null,i,c,l,t),null),l},useId:function(){var e=xt(),t=Ve.identifierPrefix;if(_e){var l=un,i=an;l=(i&~(1<<32-Ye(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=su++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Zy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ao,useFormState:uh,useActionState:uh,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=zo.bind(null,xe,!0,l),l.dispatch=t,[e,t]},useMemoCache:go,useCacheRefresh:function(){return xt().memoizedState=Wy.bind(null,xe)},useEffectEvent:function(e){var t=xt(),l={impl:e};return t.memoizedState=l,function(){if((Ne&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Co={readContext:st,use:hu,useCallback:yh,useContext:st,useEffect:So,useImperativeHandle:gh,useInsertionEffect:mh,useLayoutEffect:dh,useMemo:xh,useReducer:mu,useRef:sh,useState:function(){return mu(kn)},useDebugValue:ko,useDeferredValue:function(e,t){var l=We();return bh(l,Be.memoizedState,e,t)},useTransition:function(){var e=mu(kn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:Kf,useId:Eh,useHostTransitionStatus:Ao,useFormState:rh,useActionState:rh,useOptimistic:function(e,t){var l=We();return eh(l,Be,e,t)},useMemoCache:go,useCacheRefresh:Th};Co.useEffectEvent=hh;var _h={readContext:st,use:hu,useCallback:yh,useContext:st,useEffect:So,useImperativeHandle:gh,useInsertionEffect:mh,useLayoutEffect:dh,useMemo:xh,useReducer:xo,useRef:sh,useState:function(){return xo(kn)},useDebugValue:ko,useDeferredValue:function(e,t){var l=We();return Be===null?Eo(l,e,t):bh(l,Be.memoizedState,e,t)},useTransition:function(){var e=xo(kn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:Kf,useId:Eh,useHostTransitionStatus:Ao,useFormState:ch,useActionState:ch,useOptimistic:function(e,t){var l=We();return Be!==null?eh(l,Be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:go,useCacheRefresh:Th};_h.useEffectEvent=hh;function wo(e,t,l,i){t=e.memoizedState,l=l(i,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var _o={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Bt(),o=Yn(i);o.payload=t,l!=null&&(o.callback=l),t=Vn(e,o,i),t!==null&&(wt(t,e,i),Gi(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=Bt(),o=Yn(i);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=Vn(e,o,i),t!==null&&(wt(t,e,i),Gi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Bt(),i=Yn(l);i.tag=2,t!=null&&(i.callback=t),t=Vn(e,i,l),t!==null&&(wt(t,e,l),Gi(t,e,l))}};function Dh(e,t,l,i,o,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,g):t.prototype&&t.prototype.isPureReactComponent?!Ui(l,i)||!Ui(o,c):!0}function Oh(e,t,l,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,i),t.state!==e&&_o.enqueueReplaceState(t,t.state,null)}function kl(e,t){var l=t;if("ref"in t){l={};for(var i in t)i!=="ref"&&(l[i]=t[i])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var o in e)l[o]===void 0&&(l[o]=e[o])}return l}function Mh(e){Ka(e)}function Nh(e){console.error(e)}function Rh(e){Ka(e)}function yu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function jh(e,t,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Do(e,t,l){return l=Yn(l),l.tag=3,l.payload={element:null},l.callback=function(){yu(e,t)},l}function Lh(e){return e=Yn(e),e.tag=3,e}function Uh(e,t,l,i){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){jh(t,l,i)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){jh(t,l,i),typeof o!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})})}function e1(e,t,l,i,o){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&Jl(t,l,o,!0),l=Rt.current,l!==null){switch(l.tag){case 31:case 13:return Jt===null?_u():l.alternate===null&&Ie===0&&(Ie=3),l.flags&=-257,l.flags|=65536,l.lanes=o,i===iu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),tc(e,i,o)),!1;case 22:return l.flags|=65536,i===iu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([i]):l.add(i)),tc(e,i,o)),!1}throw Error(r(435,l.tag))}return tc(e,i,o),_u(),!1}if(_e)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Kr&&(e=Error(r(422),{cause:i}),qi(Gt(e,l)))):(i!==Kr&&(t=Error(r(423),{cause:i}),qi(Gt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Gt(i,l),o=Do(e.stateNode,i,o),ao(e,o),Ie!==4&&(Ie=2)),!1;var c=Error(r(520),{cause:i});if(c=Gt(c,l),aa===null?aa=[c]:aa.push(c),Ie!==4&&(Ie=2),t===null)return!0;i=Gt(i,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=Do(l.stateNode,i,e),ao(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Kn===null||!Kn.has(c))))return l.flags|=65536,o&=-o,l.lanes|=o,o=Lh(o),Uh(o,e,l,i),ao(l,o),!1}l=l.return}while(l!==null);return!1}var Oo=Error(r(461)),tt=!1;function ft(e,t,l,i){t.child=e===null?Yf(t,null,l,i):vl(t,e.child,l,i)}function Bh(e,t,l,i,o){l=l.render;var c=t.ref;if("ref"in i){var g={};for(var b in i)b!=="ref"&&(g[b]=i[b])}else g=i;return gl(t),i=fo(e,t,l,g,c,o),b=ho(),e!==null&&!tt?(mo(e,t,o),En(e,t,o)):(_e&&b&&Zr(t),t.flags|=1,ft(e,t,i,o),t.child)}function Hh(e,t,l,i,o){if(e===null){var c=l.type;return typeof c=="function"&&!Xr(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,qh(e,t,c,i,o)):(e=Wa(l.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ho(e,o)){var g=c.memoizedProps;if(l=l.compare,l=l!==null?l:Ui,l(g,i)&&e.ref===t.ref)return En(e,t,o)}return t.flags|=1,e=yn(c,i),e.ref=t.ref,e.return=t,t.child=e}function qh(e,t,l,i,o){if(e!==null){var c=e.memoizedProps;if(Ui(c,i)&&e.ref===t.ref)if(tt=!1,t.pendingProps=i=c,Ho(e,o))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,En(e,t,o)}return Mo(e,t,l,i,o)}function Yh(e,t,l,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|l:l,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return Vh(e,t,c,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&nu(t,c!==null?c.cachePool:null),c!==null?Qf(t,c):ro(),Gf(t);else return i=t.lanes=536870912,Vh(e,t,c!==null?c.baseLanes|l:l,l,i)}else c!==null?(nu(t,c.cachePool),Qf(t,c),Qn(),t.memoizedState=null):(e!==null&&nu(t,null),ro(),Qn());return ft(e,t,o,l),t.child}function Wi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vh(e,t,l,i,o){var c=to();return c=c===null?null:{parent:Pe._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&nu(t,null),ro(),Gf(t),e!==null&&Jl(e,t,i,!0),t.childLanes=o,null}function xu(e,t){return t=vu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xh(e,t,l){return vl(t,e.child,null,l),e=xu(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function t1(e,t,l){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(_e){if(i.mode==="hidden")return e=xu(t,i),t.lanes=536870912,Wi(null,e);if(co(t),(e=Ge)?(e=td(e,Kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:un}:null,retryLane:536870912,hydrationErrors:null},l=zf(e),l.return=t,t.child=l,ct=t,Ge=null)):e=null,e===null)throw Bn(t);return t.lanes=536870912,null}return xu(t,i)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(co(t),o)if(t.flags&256)t.flags&=-257,t=Xh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(tt||Jl(e,t,l,!1),o=(l&e.childLanes)!==0,tt||o){if(i=Ve,i!==null&&(g=Ms(i,l),g!==0&&g!==c.retryLane))throw c.retryLane=g,hl(e,g),wt(i,e,g),Oo;_u(),t=Xh(e,t,l)}else e=c.treeContext,Ge=It(g.nextSibling),ct=t,_e=!0,Un=null,Kt=!1,e!==null&&_f(t,e),t=xu(t,i),t.flags|=4096;return t}return e=yn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function bu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Mo(e,t,l,i,o){return gl(t),l=fo(e,t,l,i,void 0,o),i=ho(),e!==null&&!tt?(mo(e,t,o),En(e,t,o)):(_e&&i&&Zr(t),t.flags|=1,ft(e,t,l,o),t.child)}function Qh(e,t,l,i,o,c){return gl(t),t.updateQueue=null,l=Ff(t,i,l,o),Zf(e),i=ho(),e!==null&&!tt?(mo(e,t,c),En(e,t,c)):(_e&&i&&Zr(t),t.flags|=1,ft(e,t,l,c),t.child)}function Gh(e,t,l,i,o){if(gl(t),t.stateNode===null){var c=Gl,g=l.contextType;typeof g=="object"&&g!==null&&(c=st(g)),c=new l(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=_o,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},lo(t),g=l.contextType,c.context=typeof g=="object"&&g!==null?st(g):Gl,c.state=t.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(wo(t,l,g,i),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&_o.enqueueReplaceState(c,c.state,null),Fi(t,i,c,o),Zi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var b=t.memoizedProps,T=kl(l,b);c.props=T;var D=c.context,q=l.contextType;g=Gl,typeof q=="object"&&q!==null&&(g=st(q));var G=l.getDerivedStateFromProps;q=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||D!==g)&&Oh(t,c,i,g),qn=!1;var N=t.memoizedState;c.state=N,Fi(t,i,c,o),Zi(),D=t.memoizedState,b||N!==D||qn?(typeof G=="function"&&(wo(t,l,G,i),D=t.memoizedState),(T=qn||Dh(t,l,T,i,N,D,g))?(q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=D),c.props=i,c.state=D,c.context=g,i=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,io(e,t),g=t.memoizedProps,q=kl(l,g),c.props=q,G=t.pendingProps,N=c.context,D=l.contextType,T=Gl,typeof D=="object"&&D!==null&&(T=st(D)),b=l.getDerivedStateFromProps,(D=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==G||N!==T)&&Oh(t,c,i,T),qn=!1,N=t.memoizedState,c.state=N,Fi(t,i,c,o),Zi();var j=t.memoizedState;g!==G||N!==j||qn||e!==null&&e.dependencies!==null&&eu(e.dependencies)?(typeof b=="function"&&(wo(t,l,b,i),j=t.memoizedState),(q=qn||Dh(t,l,q,i,N,j,T)||e!==null&&e.dependencies!==null&&eu(e.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,j,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,j,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=j),c.props=i,c.state=j,c.context=T,i=q):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,bu(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=vl(t,e.child,null,o),t.child=vl(t,null,l,o)):ft(e,t,l,o),t.memoizedState=c.state,e=t.child):e=En(e,t,o),e}function Zh(e,t,l,i){return dl(),t.flags|=256,ft(e,t,l,i),t.child}var No={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ro(e){return{baseLanes:e,cachePool:jf()}}function jo(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ut),e}function Fh(e,t,l){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(o?Xn(t):Qn(),(e=Ge)?(e=td(e,Kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:un}:null,retryLane:536870912,hydrationErrors:null},l=zf(e),l.return=t,t.child=l,ct=t,Ge=null)):e=null,e===null)throw Bn(t);return yc(e)?t.lanes=32:t.lanes=536870912,null}var b=i.children;return i=i.fallback,o?(Qn(),o=t.mode,b=vu({mode:"hidden",children:b},o),i=ml(i,o,l,null),b.return=t,i.return=t,b.sibling=i,t.child=b,i=t.child,i.memoizedState=Ro(l),i.childLanes=jo(e,g,l),t.memoizedState=No,Wi(null,i)):(Xn(t),Lo(t,b))}var T=e.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(c)t.flags&256?(Xn(t),t.flags&=-257,t=Uo(e,t,l)):t.memoizedState!==null?(Qn(),t.child=e.child,t.flags|=128,t=null):(Qn(),b=i.fallback,o=t.mode,i=vu({mode:"visible",children:i.children},o),b=ml(b,o,l,null),b.flags|=2,i.return=t,b.return=t,i.sibling=b,t.child=i,vl(t,e.child,null,l),i=t.child,i.memoizedState=Ro(l),i.childLanes=jo(e,g,l),t.memoizedState=No,t=Wi(null,i));else if(Xn(t),yc(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var D=g.dgst;g=D,i=Error(r(419)),i.stack="",i.digest=g,qi({value:i,source:null,stack:null}),t=Uo(e,t,l)}else if(tt||Jl(e,t,l,!1),g=(l&e.childLanes)!==0,tt||g){if(g=Ve,g!==null&&(i=Ms(g,l),i!==0&&i!==T.retryLane))throw T.retryLane=i,hl(e,i),wt(g,e,i),Oo;gc(b)||_u(),t=Uo(e,t,l)}else gc(b)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Ge=It(b.nextSibling),ct=t,_e=!0,Un=null,Kt=!1,e!==null&&_f(t,e),t=Lo(t,i.children),t.flags|=4096);return t}return o?(Qn(),b=i.fallback,o=t.mode,T=e.child,D=T.sibling,i=yn(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,D!==null?b=yn(D,b):(b=ml(b,o,l,null),b.flags|=2),b.return=t,i.return=t,i.sibling=b,t.child=i,Wi(null,i),i=t.child,b=e.child.memoizedState,b===null?b=Ro(l):(o=b.cachePool,o!==null?(T=Pe._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=jf(),b={baseLanes:b.baseLanes|l,cachePool:o}),i.memoizedState=b,i.childLanes=jo(e,g,l),t.memoizedState=No,Wi(e.child,i)):(Xn(t),l=e.child,e=l.sibling,l=yn(l,{mode:"visible",children:i.children}),l.return=t,l.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=l,t.memoizedState=null,l)}function Lo(e,t){return t=vu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vu(e,t){return e=Nt(22,e,null,t),e.lanes=0,e}function Uo(e,t,l){return vl(t,e.child,null,l),e=Lo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kh(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),$r(e.return,t,l)}function Bo(e,t,l,i,o,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:o,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=i,g.tail=l,g.tailMode=o,g.treeForkCount=c)}function Jh(e,t,l){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var g=$e.current,b=(g&2)!==0;if(b?(g=g&1|2,t.flags|=128):g&=1,k($e,g),ft(e,t,i,l),i=_e?Hi:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kh(e,l,t);else if(e.tag===19)Kh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&ou(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Bo(t,!1,o,l,c,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ou(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Bo(t,!0,l,null,c,i);break;case"together":Bo(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function En(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Jl(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=yn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=yn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ho(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&eu(e)))}function n1(e,t,l){switch(t.tag){case 3:Fe(t,t.stateNode.containerInfo),Hn(t,Pe,e.memoizedState.cache),dl();break;case 27:case 5:Yt(t);break;case 4:Fe(t,t.stateNode.containerInfo);break;case 10:Hn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,co(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Xn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Fh(e,t,l):(Xn(t),e=En(e,t,l),e!==null?e.sibling:null);Xn(t);break;case 19:var o=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(Jl(e,t,l,!1),i=(l&t.childLanes)!==0),o){if(i)return Jh(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k($e,$e.current),i)break;return null;case 22:return t.lanes=0,Yh(e,t,l,t.pendingProps);case 24:Hn(t,Pe,e.memoizedState.cache)}return En(e,t,l)}function Ih(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!Ho(e,l)&&(t.flags&128)===0)return tt=!1,n1(e,t,l);tt=(e.flags&131072)!==0}else tt=!1,_e&&(t.flags&1048576)!==0&&wf(t,Hi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=xl(t.elementType),t.type=e,typeof e=="function")Xr(e)?(i=kl(e,i),t.tag=1,t=Gh(null,t,e,i,l)):(t.tag=0,t=Mo(null,t,e,i,l));else{if(e!=null){var o=e.$$typeof;if(o===ie){t.tag=11,t=Bh(null,t,e,i,l);break e}else if(o===W){t.tag=14,t=Hh(null,t,e,i,l);break e}}throw t=ne(e)||e,Error(r(306,t,""))}}return t;case 0:return Mo(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,o=kl(i,t.pendingProps),Gh(e,t,i,o,l);case 3:e:{if(Fe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,io(e,t),Fi(t,i,null,l);var g=t.memoizedState;if(i=g.cache,Hn(t,Pe,i),i!==c.cache&&Wr(t,[Pe],l,!0),Zi(),i=g.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Zh(e,t,i,l);break e}else if(i!==o){o=Gt(Error(r(424)),t),qi(o),t=Zh(e,t,i,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=It(e.firstChild),ct=t,_e=!0,Un=null,Kt=!0,l=Yf(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(dl(),i===o){t=En(e,t,l);break e}ft(e,t,i,l)}t=t.child}return t;case 26:return bu(e,t),e===null?(l=rd(t.type,null,t.pendingProps,null))?t.memoizedState=l:_e||(l=t.type,e=t.pendingProps,i=Lu(re.current).createElement(l),i[ot]=t,i[kt]=e,ht(i,l,e),ut(i),t.stateNode=i):t.memoizedState=rd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Yt(t),e===null&&_e&&(i=t.stateNode=id(t.type,t.pendingProps,re.current),ct=t,Kt=!0,o=Ge,Wn(t.type)?(xc=o,Ge=It(i.firstChild)):Ge=o),ft(e,t,t.pendingProps.children,l),bu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((o=i=Ge)&&(i=M1(i,t.type,t.pendingProps,Kt),i!==null?(t.stateNode=i,ct=t,Ge=It(i.firstChild),Kt=!1,o=!0):o=!1),o||Bn(t)),Yt(t),o=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,i=c.children,mc(o,c)?i=null:g!==null&&mc(o,g)&&(t.flags|=32),t.memoizedState!==null&&(o=fo(e,t,Fy,null,null,l),ma._currentValue=o),bu(e,t),ft(e,t,i,l),t.child;case 6:return e===null&&_e&&((e=l=Ge)&&(l=N1(l,t.pendingProps,Kt),l!==null?(t.stateNode=l,ct=t,Ge=null,e=!0):e=!1),e||Bn(t)),null;case 13:return Fh(e,t,l);case 4:return Fe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=vl(t,null,i,l):ft(e,t,i,l),t.child;case 11:return Bh(e,t,t.type,t.pendingProps,l);case 7:return ft(e,t,t.pendingProps,l),t.child;case 8:return ft(e,t,t.pendingProps.children,l),t.child;case 12:return ft(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,Hn(t,t.type,i.value),ft(e,t,i.children,l),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,gl(t),o=st(o),i=i(o),t.flags|=1,ft(e,t,i,l),t.child;case 14:return Hh(e,t,t.type,t.pendingProps,l);case 15:return qh(e,t,t.type,t.pendingProps,l);case 19:return Jh(e,t,l);case 31:return t1(e,t,l);case 22:return Yh(e,t,l,t.pendingProps);case 24:return gl(t),i=st(Pe),e===null?(o=to(),o===null&&(o=Ve,c=Pr(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=l),o=c),t.memoizedState={parent:i,cache:o},lo(t),Hn(t,Pe,o)):((e.lanes&l)!==0&&(io(e,t),Fi(t,null,null,l),Zi()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Hn(t,Pe,i)):(i=c.cache,Hn(t,Pe,i),i!==o.cache&&Wr(t,[Pe],l,!0))),ft(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Tn(e){e.flags|=4}function qo(e,t,l,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Em())e.flags|=8192;else throw bl=iu,no}else e.flags&=-16777217}function $h(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!hd(t))if(Em())e.flags|=8192;else throw bl=iu,no}function Su(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?_s():536870912,e.lanes|=t,ri|=t)}function Pi(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=l,t}function l1(e,t,l){var i=t.pendingProps;switch(Fr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),vn(Pe),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?Tn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jr())),Ze(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Tn(t),c!==null?(Ze(t),$h(t,c)):(Ze(t),qo(t,o,null,i,l))):c?c!==e.memoizedState?(Tn(t),Ze(t),$h(t,c)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Tn(t),Ze(t),qo(t,o,e,i,l)),null;case 27:if(fn(t),l=re.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Tn(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Ze(t),null}e=P.current,Kl(t)?Df(t):(e=id(o,i,l),t.stateNode=e,Tn(t))}return Ze(t),null;case 5:if(fn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Tn(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Ze(t),null}if(c=P.current,Kl(t))Df(t);else{var g=Lu(re.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?g.createElement("select",{is:i.is}):g.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?g.createElement(o,{is:i.is}):g.createElement(o)}}c[ot]=t,c[kt]=i;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(ht(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Tn(t)}}return Ze(t),qo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Tn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=re.current,Kl(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,o=ct,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[ot]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||Fm(e.nodeValue,l)),e||Bn(t,!0)}else e=Lu(e).createTextNode(i),e[ot]=t,t.stateNode=e}return Ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=Kl(t),l!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ot]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else l=Jr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ze(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Kl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[ot]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),o=!1}else o=Jr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Su(t,t.updateQueue),Ze(t),null);case 4:return Ue(),e===null&&oc(t.stateNode.containerInfo),Ze(t),null;case 10:return vn(t.type),Ze(t),null;case 19:if(Y($e),i=t.memoizedState,i===null)return Ze(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)Pi(i,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=ou(e),c!==null){for(t.flags|=128,Pi(i,!1),e=c.updateQueue,t.updateQueue=e,Su(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Af(l,e),l=l.sibling;return k($e,$e.current&1|2),_e&&xn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&gt()>zu&&(t.flags|=128,o=!0,Pi(i,!1),t.lanes=4194304)}else{if(!o)if(e=ou(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Su(t,e),Pi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!_e)return Ze(t),null}else 2*gt()-i.renderingStartTime>zu&&l!==536870912&&(t.flags|=128,o=!0,Pi(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=gt(),e.sibling=null,l=$e.current,k($e,o?l&1|2:l&1),_e&&xn(t,i.treeForkCount),e):(Ze(t),null);case 22:case 23:return jt(t),oo(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(l&536870912)!==0&&(t.flags&128)===0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),l=t.updateQueue,l!==null&&Su(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==l&&(t.flags|=2048),e!==null&&Y(yl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),vn(Pe),Ze(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function i1(e,t){switch(Fr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn(Pe),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fn(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(r(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y($e),null;case 4:return Ue(),null;case 10:return vn(t.type),null;case 22:case 23:return jt(t),oo(),e!==null&&Y(yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vn(Pe),null;case 25:return null;default:return null}}function Wh(e,t){switch(Fr(t),t.tag){case 3:vn(Pe),Ue();break;case 26:case 27:case 5:fn(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:Y($e);break;case 10:vn(t.type);break;case 22:case 23:jt(t),oo(),e!==null&&Y(yl);break;case 24:vn(Pe)}}function ea(e,t){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var o=i.next;l=o;do{if((l.tag&e)===e){i=void 0;var c=l.create,g=l.inst;i=c(),g.destroy=i}l=l.next}while(l!==o)}}catch(b){Le(t,t.return,b)}}function Gn(e,t,l){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var g=i.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,o=t;var T=l,D=b;try{D()}catch(q){Le(o,T,q)}}}i=i.next}while(i!==c)}}catch(q){Le(t,t.return,q)}}function Ph(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Xf(t,l)}catch(i){Le(e,e.return,i)}}}function em(e,t,l){l.props=kl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){Le(e,t,i)}}function ta(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(o){Le(e,t,o)}}function rn(e,t){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(o){Le(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){Le(e,t,o)}else l.current=null}function tm(e){var t=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(o){Le(e,e.return,o)}}function Yo(e,t,l){try{var i=e.stateNode;z1(i,e.type,l,t),i[kt]=t}catch(o){Le(e,e.return,o)}}function nm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wn(e.type)||e.tag===4}function Vo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nm(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&&Wn(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 Xo(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=pn));else if(i!==4&&(i===27&&Wn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Xo(e,t,l),e=e.sibling;e!==null;)Xo(e,t,l),e=e.sibling}function ku(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(i===27&&Wn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(ku(e,t,l),e=e.sibling;e!==null;)ku(e,t,l),e=e.sibling}function lm(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ht(t,i,l),t[ot]=e,t[kt]=l}catch(c){Le(e,e.return,c)}}var An=!1,nt=!1,Qo=!1,im=typeof WeakSet=="function"?WeakSet:Set,rt=null;function a1(e,t){if(e=e.containerInfo,fc=Xu,e=gf(e),Lr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var g=0,b=-1,T=-1,D=0,q=0,G=e,N=null;t:for(;;){for(var j;G!==l||o!==0&&G.nodeType!==3||(b=g+o),G!==c||i!==0&&G.nodeType!==3||(T=g+i),G.nodeType===3&&(g+=G.nodeValue.length),(j=G.firstChild)!==null;)N=G,G=j;for(;;){if(G===e)break t;if(N===l&&++D===o&&(b=g),N===c&&++q===i&&(T=g),(j=G.nextSibling)!==null)break;G=N,N=G.parentNode}G=j}l=b===-1||T===-1?null:{start:b,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(hc={focusedElem:e,selectionRange:l},Xu=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)o=e[l],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,l=t,o=c.memoizedProps,c=c.memoizedState,i=l.stateNode;try{var le=kl(l.type,o);e=i.getSnapshotBeforeUpdate(le,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(he){Le(l,l.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)pc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}}function am(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Cn(e,l),i&4&&ea(5,l);break;case 1:if(Cn(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(g){Le(l,l.return,g)}else{var o=kl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Le(l,l.return,g)}}i&64&&Ph(l),i&512&&ta(l,l.return);break;case 3:if(Cn(e,l),i&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Xf(e,t)}catch(g){Le(l,l.return,g)}}break;case 27:t===null&&i&4&&lm(l);case 26:case 5:Cn(e,l),t===null&&i&4&&tm(l),i&512&&ta(l,l.return);break;case 12:Cn(e,l);break;case 31:Cn(e,l),i&4&&om(e,l);break;case 13:Cn(e,l),i&4&&cm(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=d1.bind(null,l),R1(e,l))));break;case 22:if(i=l.memoizedState!==null||An,!i){t=t!==null&&t.memoizedState!==null||nt,o=An;var c=nt;An=i,(nt=t)&&!c?wn(e,l,(l.subtreeFlags&8772)!==0):Cn(e,l),An=o,nt=c}break;case 30:break;default:Cn(e,l)}}function um(e){var t=e.alternate;t!==null&&(e.alternate=null,um(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&br(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ke=null,Tt=!1;function zn(e,t,l){for(l=l.child;l!==null;)rm(e,t,l),l=l.sibling}function rm(e,t,l){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(yt,l)}catch{}switch(l.tag){case 26:nt||rn(l,t),zn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:nt||rn(l,t);var i=Ke,o=Tt;Wn(l.type)&&(Ke=l.stateNode,Tt=!1),zn(e,t,l),sa(l.stateNode),Ke=i,Tt=o;break;case 5:nt||rn(l,t);case 6:if(i=Ke,o=Tt,Ke=null,zn(e,t,l),Ke=i,Tt=o,Ke!==null)if(Tt)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(l.stateNode)}catch(c){Le(l,t,c)}else try{Ke.removeChild(l.stateNode)}catch(c){Le(l,t,c)}break;case 18:Ke!==null&&(Tt?(e=Ke,Pm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),pi(e)):Pm(Ke,l.stateNode));break;case 4:i=Ke,o=Tt,Ke=l.stateNode.containerInfo,Tt=!0,zn(e,t,l),Ke=i,Tt=o;break;case 0:case 11:case 14:case 15:Gn(2,l,t),nt||Gn(4,l,t),zn(e,t,l);break;case 1:nt||(rn(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&em(l,t,i)),zn(e,t,l);break;case 21:zn(e,t,l);break;case 22:nt=(i=nt)||l.memoizedState!==null,zn(e,t,l),nt=i;break;default:zn(e,t,l)}}function om(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pi(e)}catch(l){Le(t,t.return,l)}}}function cm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pi(e)}catch(l){Le(t,t.return,l)}}function u1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new im),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new im),t;default:throw Error(r(435,e.tag))}}function Eu(e,t){var l=u1(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var o=p1.bind(null,e,i);i.then(o,o)}})}function At(e,t){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var o=l[i],c=e,g=t,b=g;e:for(;b!==null;){switch(b.tag){case 27:if(Wn(b.type)){Ke=b.stateNode,Tt=!1;break e}break;case 5:Ke=b.stateNode,Tt=!1;break e;case 3:case 4:Ke=b.stateNode.containerInfo,Tt=!0;break e}b=b.return}if(Ke===null)throw Error(r(160));rm(c,g,o),Ke=null,Tt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)sm(t,e),t=t.sibling}var tn=null;function sm(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(t,e),zt(e),i&4&&(Gn(3,e,e.return),ea(3,e),Gn(5,e,e.return));break;case 1:At(t,e),zt(e),i&512&&(nt||l===null||rn(l,l.return)),i&64&&An&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var o=tn;if(At(t,e),zt(e),i&512&&(nt||l===null||rn(l,l.return)),i&4){var c=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[wi]||c[ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),ht(c,i,l),c[ot]=e,ut(c),i=c;break e;case"link":var g=sd("link","href",o).get(i+(l.href||""));if(g){for(var b=0;b<g.length;b++)if(c=g[b],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){g.splice(b,1);break t}}c=o.createElement(i),ht(c,i,l),o.head.appendChild(c);break;case"meta":if(g=sd("meta","content",o).get(i+(l.content||""))){for(b=0;b<g.length;b++)if(c=g[b],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){g.splice(b,1);break t}}c=o.createElement(i),ht(c,i,l),o.head.appendChild(c);break;default:throw Error(r(468,i))}c[ot]=e,ut(c),i=c}e.stateNode=i}else fd(o,e.type,e.stateNode);else e.stateNode=cd(o,i,e.memoizedProps);else c!==i?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,i===null?fd(o,e.type,e.stateNode):cd(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Yo(e,e.memoizedProps,l.memoizedProps)}break;case 27:At(t,e),zt(e),i&512&&(nt||l===null||rn(l,l.return)),l!==null&&i&4&&Yo(e,e.memoizedProps,l.memoizedProps);break;case 5:if(At(t,e),zt(e),i&512&&(nt||l===null||rn(l,l.return)),e.flags&32){o=e.stateNode;try{Bl(o,"")}catch(le){Le(e,e.return,le)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Yo(e,o,l!==null?l.memoizedProps:o)),i&1024&&(Qo=!0);break;case 6:if(At(t,e),zt(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(le){Le(e,e.return,le)}}break;case 3:if(Hu=null,o=tn,tn=Uu(t.containerInfo),At(t,e),tn=o,zt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{pi(t.containerInfo)}catch(le){Le(e,e.return,le)}Qo&&(Qo=!1,fm(e));break;case 4:i=tn,tn=Uu(e.stateNode.containerInfo),At(t,e),zt(e),tn=i;break;case 12:At(t,e),zt(e);break;case 31:At(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eu(e,i)));break;case 13:At(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Au=gt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eu(e,i)));break;case 22:o=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,D=An,q=nt;if(An=D||o,nt=q||T,At(t,e),nt=q,An=D,zt(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||T||An||nt||El(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){T=l=t;try{if(c=T.stateNode,o)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{b=T.stateNode;var G=T.memoizedProps.style,N=G!=null&&G.hasOwnProperty("display")?G.display:null;b.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(le){Le(T,T.return,le)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(le){Le(T,T.return,le)}}}else if(t.tag===18){if(l===null){T=t;try{var j=T.stateNode;o?ed(j,!0):ed(T.stateNode,!1)}catch(le){Le(T,T.return,le)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,Eu(e,l))));break;case 19:At(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eu(e,i)));break;case 30:break;case 21:break;default:At(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(nm(i)){l=i;break}i=i.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var o=l.stateNode,c=Vo(e);ku(e,c,o);break;case 5:var g=l.stateNode;l.flags&32&&(Bl(g,""),l.flags&=-33);var b=Vo(e);ku(e,b,g);break;case 3:case 4:var T=l.stateNode.containerInfo,D=Vo(e);Xo(e,D,T);break;default:throw Error(r(161))}}catch(q){Le(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)am(e,t.alternate,t),t=t.sibling}function El(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gn(4,t,t.return),El(t);break;case 1:rn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&em(t,t.return,l),El(t);break;case 27:sa(t.stateNode);case 26:case 5:rn(t,t.return),El(t);break;case 22:t.memoizedState===null&&El(t);break;case 30:El(t);break;default:El(t)}e=e.sibling}}function wn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:wn(o,c,l),ea(4,c);break;case 1:if(wn(o,c,l),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Le(i,i.return,D)}if(i=c,o=i.updateQueue,o!==null){var b=i.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)Vf(T[o],b)}catch(D){Le(i,i.return,D)}}l&&g&64&&Ph(c),ta(c,c.return);break;case 27:lm(c);case 26:case 5:wn(o,c,l),l&&i===null&&g&4&&tm(c),ta(c,c.return);break;case 12:wn(o,c,l);break;case 31:wn(o,c,l),l&&g&4&&om(o,c);break;case 13:wn(o,c,l),l&&g&4&&cm(o,c);break;case 22:c.memoizedState===null&&wn(o,c,l),ta(c,c.return);break;case 30:break;default:wn(o,c,l)}t=t.sibling}}function Go(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Yi(l))}function Zo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yi(e))}function nn(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hm(e,t,l,i),t=t.sibling}function hm(e,t,l,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:nn(e,t,l,i),o&2048&&ea(9,t);break;case 1:nn(e,t,l,i);break;case 3:nn(e,t,l,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yi(e)));break;case 12:if(o&2048){nn(e,t,l,i),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,b=c.onPostCommit;typeof b=="function"&&b(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Le(t,t.return,T)}}else nn(e,t,l,i);break;case 31:nn(e,t,l,i);break;case 13:nn(e,t,l,i);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?nn(e,t,l,i):na(e,t):c._visibility&2?nn(e,t,l,i):(c._visibility|=2,ii(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Go(g,t);break;case 24:nn(e,t,l,i),o&2048&&Zo(t.alternate,t);break;default:nn(e,t,l,i)}}function ii(e,t,l,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,b=l,T=i,D=g.flags;switch(g.tag){case 0:case 11:case 15:ii(c,g,b,T,o),ea(8,g);break;case 23:break;case 22:var q=g.stateNode;g.memoizedState!==null?q._visibility&2?ii(c,g,b,T,o):na(c,g):(q._visibility|=2,ii(c,g,b,T,o)),o&&D&2048&&Go(g.alternate,g);break;case 24:ii(c,g,b,T,o),o&&D&2048&&Zo(g.alternate,g);break;default:ii(c,g,b,T,o)}t=t.sibling}}function na(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,i=t,o=i.flags;switch(i.tag){case 22:na(l,i),o&2048&&Go(i.alternate,i);break;case 24:na(l,i),o&2048&&Zo(i.alternate,i);break;default:na(l,i)}t=t.sibling}}var la=8192;function ai(e,t,l){if(e.subtreeFlags&la)for(e=e.child;e!==null;)mm(e,t,l),e=e.sibling}function mm(e,t,l){switch(e.tag){case 26:ai(e,t,l),e.flags&la&&e.memoizedState!==null&&Z1(l,tn,e.memoizedState,e.memoizedProps);break;case 5:ai(e,t,l);break;case 3:case 4:var i=tn;tn=Uu(e.stateNode.containerInfo),ai(e,t,l),tn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=la,la=16777216,ai(e,t,l),la=i):ai(e,t,l));break;default:ai(e,t,l)}}function dm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ia(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];rt=i,gm(i,e)}dm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pm(e),e=e.sibling}function pm(e){switch(e.tag){case 0:case 11:case 15:ia(e),e.flags&2048&&Gn(9,e,e.return);break;case 3:ia(e);break;case 12:ia(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Tu(e)):ia(e);break;default:ia(e)}}function Tu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];rt=i,gm(i,e)}dm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gn(8,t,t.return),Tu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Tu(t));break;default:Tu(t)}e=e.sibling}}function gm(e,t){for(;rt!==null;){var l=rt;switch(l.tag){case 0:case 11:case 15:Gn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Yi(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,rt=i;else e:for(l=e;rt!==null;){i=rt;var o=i.sibling,c=i.return;if(um(i),i===l){rt=null;break e}if(o!==null){o.return=c,rt=o;break e}rt=c}}}var r1={getCacheForType:function(e){var t=st(Pe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return st(Pe).controller.signal}},o1=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Ve=null,Ee=null,Ce=0,je=0,Lt=null,Zn=!1,ui=!1,Fo=!1,_n=0,Ie=0,Fn=0,Tl=0,Ko=0,Ut=0,ri=0,aa=null,Ct=null,Jo=!1,Au=0,ym=0,zu=1/0,Cu=null,Kn=null,at=0,Jn=null,oi=null,Dn=0,Io=0,$o=null,xm=null,ua=0,Wo=null;function Bt(){return(Ne&2)!==0&&Ce!==0?Ce&-Ce:M.T!==null?ic():Ns()}function bm(){if(Ut===0)if((Ce&536870912)===0||_e){var e=ja;ja<<=1,(ja&3932160)===0&&(ja=262144),Ut=e}else Ut=536870912;return e=Rt.current,e!==null&&(e.flags|=32),Ut}function wt(e,t,l){(e===Ve&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(ci(e,0),In(e,Ce,Ut,!1)),Ci(e,l),((Ne&2)===0||e!==Ve)&&(e===Ve&&((Ne&2)===0&&(Tl|=l),Ie===4&&In(e,Ce,Ut,!1)),on(e))}function vm(e,t,l){if((Ne&6)!==0)throw Error(r(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||zi(e,t),o=i?f1(e,t):ec(e,t,!0),c=i;do{if(o===0){ui&&!i&&In(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!c1(l)){o=ec(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var b=e;o=aa;var T=b.current.memoizedState.isDehydrated;if(T&&(ci(b,g).flags|=256),g=ec(b,g,!1),g!==2){if(Fo&&!T){b.errorRecoveryDisabledLanes|=c,Tl|=c,o=4;break e}c=Ct,Ct=o,c!==null&&(Ct===null?Ct=c:Ct.push.apply(Ct,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){ci(e,0),In(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:In(i,t,Ut,!Zn);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=Au+300-gt(),10<o)){if(In(i,t,Ut,!Zn),Ua(i,0,!0)!==0)break e;Dn=t,i.timeoutHandle=$m(Sm.bind(null,i,l,Ct,Cu,Jo,t,Ut,Tl,ri,Zn,c,"Throttled",-0,0),o);break e}Sm(i,l,Ct,Cu,Jo,t,Ut,Tl,ri,Zn,c,null,-0,0)}}break}while(!0);on(e)}function Sm(e,t,l,i,o,c,g,b,T,D,q,G,N,j){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},mm(t,c,G);var le=(c&62914560)===c?Au-gt():(c&4194048)===c?ym-gt():0;if(le=F1(G,le),le!==null){Dn=c,e.cancelPendingCommit=le(_m.bind(null,e,t,c,l,i,o,g,b,T,q,G,null,N,j)),In(e,c,g,!D);return}}_m(e,t,c,l,i,o,g,b,T)}function c1(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var o=l[i],c=o.getSnapshot;o=o.value;try{if(!Mt(c(),o))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function In(e,t,l,i){t&=~Ko,t&=~Tl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Ye(o),g=1<<c;i[c]=-1,o&=~g}l!==0&&Ds(e,l,t)}function wu(){return(Ne&6)===0?(ra(0),!1):!0}function Po(){if(Ee!==null){if(je===0)var e=Ee.return;else e=Ee,bn=pl=null,po(e),Pl=null,Xi=0,e=Ee;for(;e!==null;)Wh(e.alternate,e),e=e.return;Ee=null}}function ci(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,_1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Dn=0,Po(),Ve=e,Ee=l=yn(e.current,null),Ce=t,je=0,Lt=null,Zn=!1,ui=zi(e,t),Fo=!1,ri=Ut=Ko=Tl=Fn=Ie=0,Ct=aa=null,Jo=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Ye(i),c=1<<o;t|=e[o],i&=~c}return _n=t,Ja(),l}function km(e,t){xe=null,M.H=$i,t===Wl||t===lu?(t=Bf(),je=3):t===no?(t=Bf(),je=4):je=t===Oo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,Ee===null&&(Ie=1,yu(e,Gt(t,e.current)))}function Em(){var e=Rt.current;return e===null?!0:(Ce&4194048)===Ce?Jt===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?e===Jt:!1}function Tm(){var e=M.H;return M.H=$i,e===null?$i:e}function Am(){var e=M.A;return M.A=r1,e}function _u(){Ie=4,Zn||(Ce&4194048)!==Ce&&Rt.current!==null||(ui=!0),(Fn&134217727)===0&&(Tl&134217727)===0||Ve===null||In(Ve,Ce,Ut,!1)}function ec(e,t,l){var i=Ne;Ne|=2;var o=Tm(),c=Am();(Ve!==e||Ce!==t)&&(Cu=null,ci(e,t)),t=!1;var g=Ie;e:do try{if(je!==0&&Ee!==null){var b=Ee,T=Lt;switch(je){case 8:Po(),g=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var D=je;if(je=0,Lt=null,si(e,b,T,D),l&&ui){g=0;break e}break;default:D=je,je=0,Lt=null,si(e,b,T,D)}}s1(),g=Ie;break}catch(q){km(e,q)}while(!0);return t&&e.shellSuspendCounter++,bn=pl=null,Ne=i,M.H=o,M.A=c,Ee===null&&(Ve=null,Ce=0,Ja()),g}function s1(){for(;Ee!==null;)zm(Ee)}function f1(e,t){var l=Ne;Ne|=2;var i=Tm(),o=Am();Ve!==e||Ce!==t?(Cu=null,zu=gt()+500,ci(e,t)):ui=zi(e,t);e:do try{if(je!==0&&Ee!==null){t=Ee;var c=Lt;t:switch(je){case 1:je=0,Lt=null,si(e,t,c,1);break;case 2:case 9:if(Lf(c)){je=0,Lt=null,Cm(t);break}t=function(){je!==2&&je!==9||Ve!==e||(je=7),on(e)},c.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Lf(c)?(je=0,Lt=null,Cm(t)):(je=0,Lt=null,si(e,t,c,7));break;case 5:var g=null;switch(Ee.tag){case 26:g=Ee.memoizedState;case 5:case 27:var b=Ee;if(g?hd(g):b.stateNode.complete){je=0,Lt=null;var T=b.sibling;if(T!==null)Ee=T;else{var D=b.return;D!==null?(Ee=D,Du(D)):Ee=null}break t}}je=0,Lt=null,si(e,t,c,5);break;case 6:je=0,Lt=null,si(e,t,c,6);break;case 8:Po(),Ie=6;break e;default:throw Error(r(462))}}h1();break}catch(q){km(e,q)}while(!0);return bn=pl=null,M.H=i,M.A=o,Ne=l,Ee!==null?0:(Ve=null,Ce=0,Ja(),Ie)}function h1(){for(;Ee!==null&&!hr();)zm(Ee)}function zm(e){var t=Ih(e.alternate,e,_n);e.memoizedProps=e.pendingProps,t===null?Du(e):Ee=t}function Cm(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Qh(l,t,t.pendingProps,t.type,void 0,Ce);break;case 11:t=Qh(l,t,t.pendingProps,t.type.render,t.ref,Ce);break;case 5:po(t);default:Wh(l,t),t=Ee=Af(t,_n),t=Ih(l,t,_n)}e.memoizedProps=e.pendingProps,t===null?Du(e):Ee=t}function si(e,t,l,i){bn=pl=null,po(t),Pl=null,Xi=0;var o=t.return;try{if(e1(e,o,t,l,Ce)){Ie=1,yu(e,Gt(l,e.current)),Ee=null;return}}catch(c){if(o!==null)throw Ee=o,c;Ie=1,yu(e,Gt(l,e.current)),Ee=null;return}t.flags&32768?(_e||i===1?e=!0:ui||(Ce&536870912)!==0?e=!1:(Zn=e=!0,(i===2||i===9||i===3||i===6)&&(i=Rt.current,i!==null&&i.tag===13&&(i.flags|=16384))),wm(t,e)):Du(t)}function Du(e){var t=e;do{if((t.flags&32768)!==0){wm(t,Zn);return}e=t.return;var l=l1(t.alternate,t,_n);if(l!==null){Ee=l;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ie===0&&(Ie=5)}function wm(e,t){do{var l=i1(e.alternate,e);if(l!==null){l.flags&=32767,Ee=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=l}while(e!==null);Ie=6,Ee=null}function _m(e,t,l,i,o,c,g,b,T){e.cancelPendingCommit=null;do Ou();while(at!==0);if((Ne&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Yr,Gg(e,l,c,g,b,T),e===Ve&&(Ee=Ve=null,Ce=0),oi=t,Jn=e,Dn=l,Io=c,$o=o,xm=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,g1(de,function(){return Rm(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=M.T,M.T=null,o=F.p,F.p=2,g=Ne,Ne|=4;try{a1(e,t,l)}finally{Ne=g,F.p=o,M.T=i}}at=1,Dm(),Om(),Mm()}}function Dm(){if(at===1){at=0;var e=Jn,t=oi,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var i=F.p;F.p=2;var o=Ne;Ne|=4;try{sm(t,e);var c=hc,g=gf(e.containerInfo),b=c.focusedElem,T=c.selectionRange;if(g!==b&&b&&b.ownerDocument&&pf(b.ownerDocument.documentElement,b)){if(T!==null&&Lr(b)){var D=T.start,q=T.end;if(q===void 0&&(q=D),"selectionStart"in b)b.selectionStart=D,b.selectionEnd=Math.min(q,b.value.length);else{var G=b.ownerDocument||document,N=G&&G.defaultView||window;if(N.getSelection){var j=N.getSelection(),le=b.textContent.length,he=Math.min(T.start,le),qe=T.end===void 0?he:Math.min(T.end,le);!j.extend&&he>qe&&(g=qe,qe=he,he=g);var w=df(b,he),z=df(b,qe);if(w&&z&&(j.rangeCount!==1||j.anchorNode!==w.node||j.anchorOffset!==w.offset||j.focusNode!==z.node||j.focusOffset!==z.offset)){var _=G.createRange();_.setStart(w.node,w.offset),j.removeAllRanges(),he>qe?(j.addRange(_),j.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),j.addRange(_))}}}}for(G=[],j=b;j=j.parentNode;)j.nodeType===1&&G.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<G.length;b++){var X=G[b];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Xu=!!fc,hc=fc=null}finally{Ne=o,F.p=i,M.T=l}}e.current=t,at=2}}function Om(){if(at===2){at=0;var e=Jn,t=oi,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var i=F.p;F.p=2;var o=Ne;Ne|=4;try{am(e,t.alternate,t)}finally{Ne=o,F.p=i,M.T=l}}at=3}}function Mm(){if(at===4||at===3){at=0,mr();var e=Jn,t=oi,l=Dn,i=xm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,oi=Jn=null,Nm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Kn=null),yr(l),t=t.stateNode,it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(yt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=M.T,o=F.p,F.p=2,M.T=null;try{for(var c=e.onRecoverableError,g=0;g<i.length;g++){var b=i[g];c(b.value,{componentStack:b.stack})}}finally{M.T=t,F.p=o}}(Dn&3)!==0&&Ou(),on(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===Wo?ua++:(ua=0,Wo=e):ua=0,ra(0)}}function Nm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yi(t)))}function Ou(){return Dm(),Om(),Mm(),Rm()}function Rm(){if(at!==5)return!1;var e=Jn,t=Io;Io=0;var l=yr(Dn),i=M.T,o=F.p;try{F.p=32>l?32:l,M.T=null,l=$o,$o=null;var c=Jn,g=Dn;if(at=0,oi=Jn=null,Dn=0,(Ne&6)!==0)throw Error(r(331));var b=Ne;if(Ne|=4,pm(c.current),hm(c,c.current,g,l),Ne=b,ra(0,!1),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(yt,c)}catch{}return!0}finally{F.p=o,M.T=i,Nm(e,t)}}function jm(e,t,l){t=Gt(l,t),t=Do(e.stateNode,t,2),e=Vn(e,t,2),e!==null&&(Ci(e,2),on(e))}function Le(e,t,l){if(e.tag===3)jm(e,e,l);else for(;t!==null;){if(t.tag===3){jm(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Kn===null||!Kn.has(i))){e=Gt(l,e),l=Lh(2),i=Vn(t,l,2),i!==null&&(Uh(l,i,t,e),Ci(i,2),on(i));break}}t=t.return}}function tc(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new o1;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(l)||(Fo=!0,o.add(l),e=m1.bind(null,e,t,l),t.then(e,e))}function m1(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ve===e&&(Ce&l)===l&&(Ie===4||Ie===3&&(Ce&62914560)===Ce&&300>gt()-Au?(Ne&2)===0&&ci(e,0):Ko|=l,ri===Ce&&(ri=0)),on(e)}function Lm(e,t){t===0&&(t=_s()),e=hl(e,t),e!==null&&(Ci(e,t),on(e))}function d1(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Lm(e,l)}function p1(e,t){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),Lm(e,l)}function g1(e,t){return Ol(e,t)}var Mu=null,fi=null,nc=!1,Nu=!1,lc=!1,$n=0;function on(e){e!==fi&&e.next===null&&(fi===null?Mu=fi=e:fi=fi.next=e),Nu=!0,nc||(nc=!0,x1())}function ra(e,t){if(!lc&&Nu){lc=!0;do for(var l=!1,i=Mu;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var g=i.suspendedLanes,b=i.pingedLanes;c=(1<<31-Ye(42|e)+1)-1,c&=o&~(g&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,qm(i,c))}else c=Ce,c=Ua(i,i===Ve?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||zi(i,c)||(l=!0,qm(i,c));i=i.next}while(l);lc=!1}}function y1(){Um()}function Um(){Nu=nc=!1;var e=0;$n!==0&&w1()&&(e=$n);for(var t=gt(),l=null,i=Mu;i!==null;){var o=i.next,c=Bm(i,t);c===0?(i.next=null,l===null?Mu=o:l.next=o,o===null&&(fi=l)):(l=i,(e!==0||(c&3)!==0)&&(Nu=!0)),i=o}at!==0&&at!==5||ra(e),$n!==0&&($n=0)}function Bm(e,t){for(var l=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-Ye(c),b=1<<g,T=o[g];T===-1?((b&l)===0||(b&i)!==0)&&(o[g]=Qg(b,t)):T<=t&&(e.expiredLanes|=b),c&=~b}if(t=Ve,l=Ce,l=Ua(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ai(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||zi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&Ai(i),yr(l)){case 2:case 8:l=I;break;case 32:l=de;break;case 268435456:l=Re;break;default:l=de}return i=Hm.bind(null,e),l=Ol(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&Ai(i),e.callbackPriority=2,e.callbackNode=null,2}function Hm(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ou()&&e.callbackNode!==l)return null;var i=Ce;return i=Ua(e,e===Ve?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(vm(e,i,t),Bm(e,gt()),e.callbackNode!=null&&e.callbackNode===l?Hm.bind(null,e):null)}function qm(e,t){if(Ou())return null;vm(e,t,!0)}function x1(){D1(function(){(Ne&6)!==0?Ol(V,y1):Um()})}function ic(){if($n===0){var e=Il;e===0&&(e=Ra,Ra<<=1,(Ra&261888)===0&&(Ra=256)),$n=e}return $n}function Ym(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ya(""+e)}function Vm(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function b1(e,t,l,i,o){if(t==="submit"&&l&&l.stateNode===o){var c=Ym((o[kt]||null).action),g=i.submitter;g&&(t=(t=g[kt]||null)?Ym(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var b=new Ga("action","action",null,i,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if($n!==0){var T=g?Vm(o,g):new FormData(o);To(l,{pending:!0,data:T,method:o.method,action:c},null,T)}}else typeof c=="function"&&(b.preventDefault(),T=g?Vm(o,g):new FormData(o),To(l,{pending:!0,data:T,method:o.method,action:c},c,T))},currentTarget:o}]})}}for(var ac=0;ac<qr.length;ac++){var uc=qr[ac],v1=uc.toLowerCase(),S1=uc[0].toUpperCase()+uc.slice(1);en(v1,"on"+S1)}en(bf,"onAnimationEnd"),en(vf,"onAnimationIteration"),en(Sf,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(Uy,"onTransitionRun"),en(By,"onTransitionStart"),en(Hy,"onTransitionCancel"),en(kf,"onTransitionEnd"),Ll("onMouseEnter",["mouseout","mouseover"]),Ll("onMouseLeave",["mouseout","mouseover"]),Ll("onPointerEnter",["pointerout","pointerover"]),Ll("onPointerLeave",["pointerout","pointerover"]),ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ol("onBeforeInput",["compositionend","keypress","textInput","paste"]),ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oa="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(" "),k1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oa));function Xm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var g=i.length-1;0<=g;g--){var b=i[g],T=b.instance,D=b.currentTarget;if(b=b.listener,T!==c&&o.isPropagationStopped())break e;c=b,o.currentTarget=D;try{c(o)}catch(q){Ka(q)}o.currentTarget=null,c=T}else for(g=0;g<i.length;g++){if(b=i[g],T=b.instance,D=b.currentTarget,b=b.listener,T!==c&&o.isPropagationStopped())break e;c=b,o.currentTarget=D;try{c(o)}catch(q){Ka(q)}o.currentTarget=null,c=T}}}}function Te(e,t){var l=t[xr];l===void 0&&(l=t[xr]=new Set);var i=e+"__bubble";l.has(i)||(Qm(t,e,2,!1),l.add(i))}function rc(e,t,l){var i=0;t&&(i|=4),Qm(l,e,i,t)}var Ru="_reactListening"+Math.random().toString(36).slice(2);function oc(e){if(!e[Ru]){e[Ru]=!0,Ls.forEach(function(l){l!=="selectionchange"&&(k1.has(l)||rc(l,!1,e),rc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ru]||(t[Ru]=!0,rc("selectionchange",!1,t))}}function Qm(e,t,l,i){switch(bd(t)){case 2:var o=I1;break;case 8:o=$1;break;default:o=Ec}l=o.bind(null,t,l,e),o=void 0,!Cr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,l,{capture:!0,passive:o}):e.addEventListener(t,l,!0):o!==void 0?e.addEventListener(t,l,{passive:o}):e.addEventListener(t,l,!1)}function cc(e,t,l,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var b=i.stateNode.containerInfo;if(b===o)break;if(g===4)for(g=i.return;g!==null;){var T=g.tag;if((T===3||T===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;b!==null;){if(g=Nl(b),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){i=c=g;continue e}b=b.parentNode}}i=i.return}Ks(function(){var D=c,q=Ar(l),G=[];e:{var N=Ef.get(e);if(N!==void 0){var j=Ga,le=e;switch(e){case"keypress":if(Xa(l)===0)break e;case"keydown":case"keyup":j=py;break;case"focusin":le="focus",j=Or;break;case"focusout":le="blur",j=Or;break;case"beforeblur":case"afterblur":j=Or;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=$s;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=ly;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=xy;break;case bf:case vf:case Sf:j=uy;break;case kf:j=vy;break;case"scroll":case"scrollend":j=ty;break;case"wheel":j=ky;break;case"copy":case"cut":case"paste":j=oy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Ps;break;case"toggle":case"beforetoggle":j=Ty}var he=(t&4)!==0,qe=!he&&(e==="scroll"||e==="scrollend"),w=he?N!==null?N+"Capture":null:N;he=[];for(var z=D,_;z!==null;){var X=z;if(_=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||_===null||w===null||(X=Di(z,w),X!=null&&he.push(ca(z,X,_))),qe)break;z=z.return}0<he.length&&(N=new j(N,le,null,l,q),G.push({event:N,listeners:he}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",N&&l!==Tr&&(le=l.relatedTarget||l.fromElement)&&(Nl(le)||le[Ml]))break e;if((j||N)&&(N=q.window===q?q:(N=q.ownerDocument)?N.defaultView||N.parentWindow:window,j?(le=l.relatedTarget||l.toElement,j=D,le=le?Nl(le):null,le!==null&&(qe=h(le),he=le.tag,le!==qe||he!==5&&he!==27&&he!==6)&&(le=null)):(j=null,le=D),j!==le)){if(he=$s,X="onMouseLeave",w="onMouseEnter",z="mouse",(e==="pointerout"||e==="pointerover")&&(he=Ps,X="onPointerLeave",w="onPointerEnter",z="pointer"),qe=j==null?N:_i(j),_=le==null?N:_i(le),N=new he(X,z+"leave",j,l,q),N.target=qe,N.relatedTarget=_,X=null,Nl(q)===D&&(he=new he(w,z+"enter",le,l,q),he.target=_,he.relatedTarget=qe,X=he),qe=X,j&&le)t:{for(he=E1,w=j,z=le,_=0,X=w;X;X=he(X))_++;X=0;for(var oe=z;oe;oe=he(oe))X++;for(;0<_-X;)w=he(w),_--;for(;0<X-_;)z=he(z),X--;for(;_--;){if(w===z||z!==null&&w===z.alternate){he=w;break t}w=he(w),z=he(z)}he=null}else he=null;j!==null&&Gm(G,N,j,he,!1),le!==null&&qe!==null&&Gm(G,qe,le,he,!0)}}e:{if(N=D?_i(D):window,j=N.nodeName&&N.nodeName.toLowerCase(),j==="select"||j==="input"&&N.type==="file")var Oe=of;else if(uf(N))if(cf)Oe=Ry;else{Oe=My;var ue=Oy}else j=N.nodeName,!j||j.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?D&&Er(D.elementType)&&(Oe=of):Oe=Ny;if(Oe&&(Oe=Oe(e,D))){rf(G,Oe,l,q);break e}ue&&ue(e,N,D),e==="focusout"&&D&&N.type==="number"&&D.memoizedProps.value!=null&&kr(N,"number",N.value)}switch(ue=D?_i(D):window,e){case"focusin":(uf(ue)||ue.contentEditable==="true")&&(Vl=ue,Ur=D,Bi=null);break;case"focusout":Bi=Ur=Vl=null;break;case"mousedown":Br=!0;break;case"contextmenu":case"mouseup":case"dragend":Br=!1,yf(G,l,q);break;case"selectionchange":if(Ly)break;case"keydown":case"keyup":yf(G,l,q)}var be;if(Nr)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Yl?lf(e,l)&&(we="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(we="onCompositionStart");we&&(ef&&l.locale!=="ko"&&(Yl||we!=="onCompositionStart"?we==="onCompositionEnd"&&Yl&&(be=Js()):(jn=q,wr="value"in jn?jn.value:jn.textContent,Yl=!0)),ue=ju(D,we),0<ue.length&&(we=new Ws(we,e,null,l,q),G.push({event:we,listeners:ue}),be?we.data=be:(be=af(l),be!==null&&(we.data=be)))),(be=zy?Cy(e,l):wy(e,l))&&(we=ju(D,"onBeforeInput"),0<we.length&&(ue=new Ws("onBeforeInput","beforeinput",null,l,q),G.push({event:ue,listeners:we}),ue.data=be)),b1(G,e,D,l,q)}Xm(G,t)})}function ca(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ju(e,t){for(var l=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Di(e,l),o!=null&&i.unshift(ca(e,o,c)),o=Di(e,t),o!=null&&i.push(ca(e,o,c))),e.tag===3)return i;e=e.return}return[]}function E1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gm(e,t,l,i,o){for(var c=t._reactName,g=[];l!==null&&l!==i;){var b=l,T=b.alternate,D=b.stateNode;if(b=b.tag,T!==null&&T===i)break;b!==5&&b!==26&&b!==27||D===null||(T=D,o?(D=Di(l,c),D!=null&&g.unshift(ca(l,D,T))):o||(D=Di(l,c),D!=null&&g.push(ca(l,D,T)))),l=l.return}g.length!==0&&e.push({event:t,listeners:g})}var T1=/\r\n?/g,A1=/\u0000|\uFFFD/g;function Zm(e){return(typeof e=="string"?e:""+e).replace(T1,`
49
- `).replace(A1,"")}function Fm(e,t){return t=Zm(t),Zm(e)===t}function He(e,t,l,i,o,c){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Bl(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Bl(e,""+i);break;case"className":Ha(e,"class",i);break;case"tabIndex":Ha(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ha(e,l,i);break;case"style":Zs(e,i,c);break;case"data":if(t!=="object"){Ha(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Ya(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(l==="formAction"?(t!=="input"&&He(e,t,"name",o.name,o,null),He(e,t,"formEncType",o.formEncType,o,null),He(e,t,"formMethod",o.formMethod,o,null),He(e,t,"formTarget",o.formTarget,o,null)):(He(e,t,"encType",o.encType,o,null),He(e,t,"method",o.method,o,null),He(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Ya(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=pn);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=Ya(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Ba(e,"popover",i);break;case"xlinkActuate":dn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":dn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":dn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":dn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":dn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":dn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":dn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":dn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":dn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ba(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Pg.get(l)||l,Ba(e,l,i))}}function sc(e,t,l,i,o,c){switch(l){case"style":Zs(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof i=="string"?Bl(e,i):(typeof i=="number"||typeof i=="bigint")&&Bl(e,""+i);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"onClick":i!=null&&(e.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Us.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),t=l.slice(2,o?l.length-7:void 0),c=e[kt]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,i,o);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):Ba(e,l,i)}}}function ht(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var i=!1,o=!1,c;for(c in l)if(l.hasOwnProperty(c)){var g=l[c];if(g!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:He(e,t,c,g,l,null)}}o&&He(e,t,"srcSet",l.srcSet,l,null),i&&He(e,t,"src",l.src,l,null);return;case"input":Te("invalid",e);var b=c=g=o=null,T=null,D=null;for(i in l)if(l.hasOwnProperty(i)){var q=l[i];if(q!=null)switch(i){case"name":o=q;break;case"type":g=q;break;case"checked":T=q;break;case"defaultChecked":D=q;break;case"value":c=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:He(e,t,i,q,l,null)}}Vs(e,c,b,T,D,g,o,!1);return;case"select":Te("invalid",e),i=g=c=null;for(o in l)if(l.hasOwnProperty(o)&&(b=l[o],b!=null))switch(o){case"value":c=b;break;case"defaultValue":g=b;break;case"multiple":i=b;default:He(e,t,o,b,l,null)}t=c,l=g,e.multiple=!!i,t!=null?Ul(e,!!i,t,!1):l!=null&&Ul(e,!!i,l,!0);return;case"textarea":Te("invalid",e),c=o=i=null;for(g in l)if(l.hasOwnProperty(g)&&(b=l[g],b!=null))switch(g){case"value":i=b;break;case"defaultValue":o=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:He(e,t,g,b,l,null)}Qs(e,i,o,c);return;case"option":for(T in l)if(l.hasOwnProperty(T)&&(i=l[T],i!=null))switch(T){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:He(e,t,T,i,l,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(i=0;i<oa.length;i++)Te(oa[i],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("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(D in l)if(l.hasOwnProperty(D)&&(i=l[D],i!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:He(e,t,D,i,l,null)}return;default:if(Er(t)){for(q in l)l.hasOwnProperty(q)&&(i=l[q],i!==void 0&&sc(e,t,q,i,l,void 0));return}}for(b in l)l.hasOwnProperty(b)&&(i=l[b],i!=null&&He(e,t,b,i,l,null))}function z1(e,t,l,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,g=null,b=null,T=null,D=null,q=null;for(j in l){var G=l[j];if(l.hasOwnProperty(j)&&G!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":T=G;default:i.hasOwnProperty(j)||He(e,t,j,null,i,G)}}for(var N in i){var j=i[N];if(G=l[N],i.hasOwnProperty(N)&&(j!=null||G!=null))switch(N){case"type":c=j;break;case"name":o=j;break;case"checked":D=j;break;case"defaultChecked":q=j;break;case"value":g=j;break;case"defaultValue":b=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:j!==G&&He(e,t,N,j,i,G)}}Sr(e,g,b,T,D,q,c,o);return;case"select":j=g=b=N=null;for(c in l)if(T=l[c],l.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":j=T;default:i.hasOwnProperty(c)||He(e,t,c,null,i,T)}for(o in i)if(c=i[o],T=l[o],i.hasOwnProperty(o)&&(c!=null||T!=null))switch(o){case"value":N=c;break;case"defaultValue":b=c;break;case"multiple":g=c;default:c!==T&&He(e,t,o,c,i,T)}t=b,l=g,i=j,N!=null?Ul(e,!!l,N,!1):!!i!=!!l&&(t!=null?Ul(e,!!l,t,!0):Ul(e,!!l,l?[]:"",!1));return;case"textarea":j=N=null;for(b in l)if(o=l[b],l.hasOwnProperty(b)&&o!=null&&!i.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:He(e,t,b,null,i,o)}for(g in i)if(o=i[g],c=l[g],i.hasOwnProperty(g)&&(o!=null||c!=null))switch(g){case"value":N=o;break;case"defaultValue":j=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&He(e,t,g,o,i,c)}Xs(e,N,j);return;case"option":for(var le in l)if(N=l[le],l.hasOwnProperty(le)&&N!=null&&!i.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:He(e,t,le,null,i,N)}for(T in i)if(N=i[T],j=l[T],i.hasOwnProperty(T)&&N!==j&&(N!=null||j!=null))switch(T){case"selected":e.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:He(e,t,T,N,i,j)}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 he in l)N=l[he],l.hasOwnProperty(he)&&N!=null&&!i.hasOwnProperty(he)&&He(e,t,he,null,i,N);for(D in i)if(N=i[D],j=l[D],i.hasOwnProperty(D)&&N!==j&&(N!=null||j!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,t));break;default:He(e,t,D,N,i,j)}return;default:if(Er(t)){for(var qe in l)N=l[qe],l.hasOwnProperty(qe)&&N!==void 0&&!i.hasOwnProperty(qe)&&sc(e,t,qe,void 0,i,N);for(q in i)N=i[q],j=l[q],!i.hasOwnProperty(q)||N===j||N===void 0&&j===void 0||sc(e,t,q,N,i,j);return}}for(var w in l)N=l[w],l.hasOwnProperty(w)&&N!=null&&!i.hasOwnProperty(w)&&He(e,t,w,null,i,N);for(G in i)N=i[G],j=l[G],!i.hasOwnProperty(G)||N===j||N==null&&j==null||He(e,t,G,N,i,j)}function Km(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function C1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var o=l[i],c=o.transferSize,g=o.initiatorType,b=o.duration;if(c&&b&&Km(g)){for(g=0,b=o.responseEnd,i+=1;i<l.length;i++){var T=l[i],D=T.startTime;if(D>b)break;var q=T.transferSize,G=T.initiatorType;q&&Km(G)&&(T=T.responseEnd,g+=q*(T<b?1:(b-D)/(T-D)))}if(--i,t+=8*(c+g)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var fc=null,hc=null;function Lu(e){return e.nodeType===9?e:e.ownerDocument}function Jm(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 Im(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function mc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var dc=null;function w1(){var e=window.event;return e&&e.type==="popstate"?e===dc?!1:(dc=e,!0):(dc=null,!1)}var $m=typeof setTimeout=="function"?setTimeout:void 0,_1=typeof clearTimeout=="function"?clearTimeout:void 0,Wm=typeof Promise=="function"?Promise:void 0,D1=typeof queueMicrotask=="function"?queueMicrotask:typeof Wm<"u"?function(e){return Wm.resolve(null).then(e).catch(O1)}:$m;function O1(e){setTimeout(function(){throw e})}function Wn(e){return e==="head"}function Pm(e,t){var l=t,i=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(o),pi(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")sa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,sa(l);for(var c=l.firstChild;c;){var g=c.nextSibling,b=c.nodeName;c[wi]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=g}}else l==="body"&&sa(e.ownerDocument.body);l=o}while(l);pi(t)}function ed(e,t){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function pc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":pc(l),br(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function M1(e,t,l,i){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[wi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=It(e.nextSibling),e===null)break}return null}function N1(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=It(e.nextSibling),e===null))return null;return e}function td(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(e.nextSibling),e===null))return null;return e}function gc(e){return e.data==="$?"||e.data==="$~"}function yc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function R1(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var i=function(){t(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function It(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var xc=null;function nd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return It(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function ld(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function id(e,t,l){switch(t=Lu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function sa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);br(e)}var $t=new Map,ad=new Set;function Uu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var On=F.d;F.d={f:j1,r:L1,D:U1,C:B1,L:H1,m:q1,X:V1,S:Y1,M:X1};function j1(){var e=On.f(),t=wu();return e||t}function L1(e){var t=Rl(e);t!==null&&t.tag===5&&t.type==="form"?kh(t):On.r(e)}var hi=typeof document>"u"?null:document;function ud(e,t,l){var i=hi;if(i&&typeof t=="string"&&t){var o=Xt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),ad.has(o)||(ad.add(o),e={rel:e,crossOrigin:l,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),ht(t,"link",e),ut(t),i.head.appendChild(t)))}}function U1(e){On.D(e),ud("dns-prefetch",e,null)}function B1(e,t){On.C(e,t),ud("preconnect",e,t)}function H1(e,t,l){On.L(e,t,l);var i=hi;if(i&&e&&t){var o='link[rel="preload"][as="'+Xt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Xt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Xt(l.imageSizes)+'"]')):o+='[href="'+Xt(e)+'"]';var c=o;switch(t){case"style":c=mi(e);break;case"script":c=di(e)}$t.has(c)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),$t.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(fa(c))||t==="script"&&i.querySelector(ha(c))||(t=i.createElement("link"),ht(t,"link",e),ut(t),i.head.appendChild(t)))}}function q1(e,t){On.m(e,t);var l=hi;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Xt(i)+'"][href="'+Xt(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=di(e)}if(!$t.has(c)&&(e=y({rel:"modulepreload",href:e},t),$t.set(c,e),l.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ha(c)))return}i=l.createElement("link"),ht(i,"link",e),ut(i),l.head.appendChild(i)}}}function Y1(e,t,l){On.S(e,t,l);var i=hi;if(i&&e){var o=jl(i).hoistableStyles,c=mi(e);t=t||"default";var g=o.get(c);if(!g){var b={loading:0,preload:null};if(g=i.querySelector(fa(c)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=$t.get(c))&&bc(e,l);var T=g=i.createElement("link");ut(T),ht(T,"link",e),T._p=new Promise(function(D,q){T.onload=D,T.onerror=q}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Bu(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:b},o.set(c,g)}}}function V1(e,t){On.X(e,t);var l=hi;if(l&&e){var i=jl(l).hoistableScripts,o=di(e),c=i.get(o);c||(c=l.querySelector(ha(o)),c||(e=y({src:e,async:!0},t),(t=$t.get(o))&&vc(e,t),c=l.createElement("script"),ut(c),ht(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function X1(e,t){On.M(e,t);var l=hi;if(l&&e){var i=jl(l).hoistableScripts,o=di(e),c=i.get(o);c||(c=l.querySelector(ha(o)),c||(e=y({src:e,async:!0,type:"module"},t),(t=$t.get(o))&&vc(e,t),c=l.createElement("script"),ut(c),ht(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function rd(e,t,l,i){var o=(o=re.current)?Uu(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=mi(l.href),l=jl(o).hoistableStyles,i=l.get(t),i||(i={type:"style",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=mi(l.href);var c=jl(o).hoistableStyles,g=c.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=o.querySelector(fa(e)))&&!c._p&&(g.instance=c,g.state.loading=5),$t.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},$t.set(e,l),c||Q1(o,e,l,g.state))),t&&i===null)throw Error(r(528,""));return g}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=di(l),l=jl(o).hoistableScripts,i=l.get(t),i||(i={type:"script",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function mi(e){return'href="'+Xt(e)+'"'}function fa(e){return'link[rel="stylesheet"]['+e+"]"}function od(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Q1(e,t,l,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),ht(t,"link",l),ut(t),e.head.appendChild(t))}function di(e){return'[src="'+Xt(e)+'"]'}function ha(e){return"script[async]"+e}function cd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Xt(l.href)+'"]');if(i)return t.instance=i,ut(i),i;var o=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ut(i),ht(i,"style",o),Bu(i,l.precedence,e),t.instance=i;case"stylesheet":o=mi(l.href);var c=e.querySelector(fa(o));if(c)return t.state.loading|=4,t.instance=c,ut(c),c;i=od(l),(o=$t.get(o))&&bc(i,o),c=(e.ownerDocument||e).createElement("link"),ut(c);var g=c;return g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),ht(c,"link",i),t.state.loading|=4,Bu(c,l.precedence,e),t.instance=c;case"script":return c=di(l.src),(o=e.querySelector(ha(c)))?(t.instance=o,ut(o),o):(i=l,(o=$t.get(c))&&(i=y({},l),vc(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),ht(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Bu(i,l.precedence,e));return t.instance}function Bu(e,t,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,g=0;g<i.length;g++){var b=i[g];if(b.dataset.precedence===t)c=b;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function bc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hu=null;function sd(e,t,l){if(Hu===null){var i=new Map,o=Hu=new Map;o.set(l,i)}else o=Hu,i=o.get(l),i||(i=new Map,o.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),o=0;o<l.length;o++){var c=l[o];if(!(c[wi]||c[ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var b=i.get(g);b?b.push(c):i.set(g,[c])}}return i}function fd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function G1(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function hd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Z1(e,t,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=mi(i.href),c=t.querySelector(fa(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,ut(c);return}c=t.ownerDocument||t,i=od(i),(o=$t.get(o))&&bc(i,o),c=c.createElement("link"),ut(c);var g=c;g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),ht(c,"link",i),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=qu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Sc=0;function F1(e,t){return e.stylesheets&&e.count===0&&Vu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Sc===0&&(Sc=62500*C1());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Sc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function qu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yu=null;function Vu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yu=new Map,t.forEach(K1,e),Yu=null,qu.call(e))}function K1(e,t){if(!(t.state.loading&4)){var l=Yu.get(e);if(l)var i=l.get(null);else{l=new Map,Yu.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var g=o[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(l.set(g.dataset.precedence,g),i=g)}i&&l.set(null,i)}o=t.instance,g=o.getAttribute("data-precedence"),c=l.get(g)||i,c===i&&l.set(null,o),l.set(g,o),this.count++,i=qu.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ma={$$typeof:H,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function J1(e,t,l,i,o,c,g,b,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=pr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pr(0),this.hiddenUpdates=pr(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function md(e,t,l,i,o,c,g,b,T,D,q,G){return e=new J1(e,t,l,g,T,D,q,G,b),t=1,c===!0&&(t|=24),c=Nt(3,null,null,t),e.current=c,c.stateNode=e,t=Pr(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:l,cache:t},lo(c),e}function dd(e){return e?(e=Gl,e):Gl}function pd(e,t,l,i,o,c){o=dd(o),i.context===null?i.context=o:i.pendingContext=o,i=Yn(t),i.payload={element:l},c=c===void 0?null:c,c!==null&&(i.callback=c),l=Vn(e,i,t),l!==null&&(wt(l,e,t),Gi(l,e,t))}function gd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function kc(e,t){gd(e,t),(e=e.alternate)&&gd(e,t)}function yd(e){if(e.tag===13||e.tag===31){var t=hl(e,67108864);t!==null&&wt(t,e,67108864),kc(e,67108864)}}function xd(e){if(e.tag===13||e.tag===31){var t=Bt();t=gr(t);var l=hl(e,t);l!==null&&wt(l,e,t),kc(e,t)}}var Xu=!0;function I1(e,t,l,i){var o=M.T;M.T=null;var c=F.p;try{F.p=2,Ec(e,t,l,i)}finally{F.p=c,M.T=o}}function $1(e,t,l,i){var o=M.T;M.T=null;var c=F.p;try{F.p=8,Ec(e,t,l,i)}finally{F.p=c,M.T=o}}function Ec(e,t,l,i){if(Xu){var o=Tc(i);if(o===null)cc(e,t,i,Qu,l),vd(e,i);else if(P1(o,e,t,l,i))i.stopPropagation();else if(vd(e,i),t&4&&-1<W1.indexOf(e)){for(;o!==null;){var c=Rl(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=rl(c.pendingLanes);if(g!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;g;){var T=1<<31-Ye(g);b.entanglements[1]|=T,g&=~T}on(c),(Ne&6)===0&&(zu=gt()+500,ra(0))}}break;case 31:case 13:b=hl(c,2),b!==null&&wt(b,c,2),wu(),kc(c,2)}if(c=Tc(i),c===null&&cc(e,t,i,Qu,l),c===o)break;o=c}o!==null&&i.stopPropagation()}else cc(e,t,i,null,l)}}function Tc(e){return e=Ar(e),Ac(e)}var Qu=null;function Ac(e){if(Qu=null,e=Nl(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Qu=e,null}function bd(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(dr()){case V:return 2;case I:return 8;case de:case ke:return 32;case Re:return 268435456;default:return 32}default:return 32}}var zc=!1,Pn=null,el=null,tl=null,da=new Map,pa=new Map,nl=[],W1="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 vd(e,t){switch(e){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":da.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pa.delete(t.pointerId)}}function ga(e,t,l,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Rl(t),t!==null&&yd(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function P1(e,t,l,i,o){switch(t){case"focusin":return Pn=ga(Pn,e,t,l,i,o),!0;case"dragenter":return el=ga(el,e,t,l,i,o),!0;case"mouseover":return tl=ga(tl,e,t,l,i,o),!0;case"pointerover":var c=o.pointerId;return da.set(c,ga(da.get(c)||null,e,t,l,i,o)),!0;case"gotpointercapture":return c=o.pointerId,pa.set(c,ga(pa.get(c)||null,e,t,l,i,o)),!0}return!1}function Sd(e){var t=Nl(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,Rs(e.priority,function(){xd(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,Rs(e.priority,function(){xd(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Tc(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Tr=i,l.target.dispatchEvent(i),Tr=null}else return t=Rl(l),t!==null&&yd(t),e.blockedOn=l,!1;t.shift()}return!0}function kd(e,t,l){Gu(e)&&l.delete(t)}function e0(){zc=!1,Pn!==null&&Gu(Pn)&&(Pn=null),el!==null&&Gu(el)&&(el=null),tl!==null&&Gu(tl)&&(tl=null),da.forEach(kd),pa.forEach(kd)}function Zu(e,t){e.blockedOn===t&&(e.blockedOn=null,zc||(zc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,e0)))}var Fu=null;function Ed(e){Fu!==e&&(Fu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Fu===e&&(Fu=null);for(var t=0;t<e.length;t+=3){var l=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Ac(i||l)===null)continue;break}var c=Rl(l);c!==null&&(e.splice(t,3),t-=3,To(c,{pending:!0,data:o,method:l.method,action:i},i,o))}}))}function pi(e){function t(T){return Zu(T,e)}Pn!==null&&Zu(Pn,e),el!==null&&Zu(el,e),tl!==null&&Zu(tl,e),da.forEach(t),pa.forEach(t);for(var l=0;l<nl.length;l++){var i=nl[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<nl.length&&(l=nl[0],l.blockedOn===null);)Sd(l),l.blockedOn===null&&nl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var o=l[i],c=l[i+1],g=o[kt]||null;if(typeof c=="function")g||Ed(l);else if(g){var b=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[kt]||null)b=g.formAction;else if(Ac(o)!==null)continue}else b=g.action;typeof b=="function"?l[i+1]=b:(l.splice(i,3),i-=3),Ed(l)}}}function Td(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Cc(e){this._internalRoot=e}Ku.prototype.render=Cc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,i=Bt();pd(l,i,e,t,null,null)},Ku.prototype.unmount=Cc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pd(e.current,2,null,e,null,null),wu(),t[Ml]=null}};function Ku(e){this._internalRoot=e}Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ns();e={blockedOn:null,target:e,priority:t};for(var l=0;l<nl.length&&t!==0&&t<nl[l].priority;l++);nl.splice(l,0,e),l===0&&Sd(e)}};var Ad=a.version;if(Ad!=="19.2.4")throw Error(r(527,Ad,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var t0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ju.isDisabled&&Ju.supportsFiber)try{yt=Ju.inject(t0),it=Ju}catch{}}return xa.createRoot=function(e,t){if(!s(e))throw Error(r(299));var l=!1,i="",o=Mh,c=Nh,g=Rh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=md(e,1,!1,null,null,l,i,null,o,c,g,Td),e[Ml]=t.current,oc(e),new Cc(t)},xa.hydrateRoot=function(e,t,l){if(!s(e))throw Error(r(299));var i=!1,o="",c=Mh,g=Nh,b=Rh,T=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(b=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),t=md(e,1,!0,t,l??null,i,o,T,c,g,b,Td),t.context=dd(null),l=t.current,i=Bt(),i=gr(i),o=Yn(i),o.callback=null,Vn(l,o,i),l=i,t.current.lanes=l,Ci(t,l),on(t),e[Ml]=t.current,oc(e),new Ku(t)},xa.version="19.2.4",xa}var jd;function f0(){if(jd)return Dc.exports;jd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Dc.exports=s0(),Dc.exports}var h0=f0();function m0(n){if(!n)return null;const a=n.trim();if(!a)return null;const r=a.replace(/\\/g,"/").split("/").filter(Boolean).pop();return r&&r.length>0?r:null}async function d0(){try{const n=window;return typeof n.Excel>"u"?void 0:await n.Excel.run(async u=>{const r=u.workbook.worksheets.getActiveWorksheet(),s=u.workbook.getSelectedRange();return r.load("name"),s.load("address"),await u.sync(),{activeSheet:r.name,selectedRange:s.address}})}catch{return}}async function p0(){var s,h,f;const n=window,a=n.Office??null,u=typeof((h=(s=a==null?void 0:a.context)==null?void 0:s.document)==null?void 0:h.url)=="string"?a.context.document.url:null;let r=m0(u);try{if(typeof n.Excel<"u"){const d=await n.Excel.run(async m=>{const x=m.workbook;return typeof x.load=="function"&&(x.load("name"),await m.sync()),typeof x.name=="string"?x.name:null});typeof d=="string"&&d.trim().length>0&&(r=d.trim())}}catch{}return{workbookName:r??document.title??"AgentXL Workbook",workbookUrl:u,host:typeof((f=a==null?void 0:a.context)==null?void 0:f.host)=="string"?a.context.host:"browser",source:typeof n.Excel<"u"?"excel-taskpane":"browser-preview"}}const Si=window.location.origin;async function g0(){return d0()}async function y0(){return p0()}async function Ld(){const n=await fetch(`${Si}/api/config/status`);if(!n.ok)throw new Error(`Status check failed: ${n.status}`);return n.json()}async function x0(n){const a=await fetch(`${Si}/api/workbook/resolve`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!a.ok){const u=await a.json().catch(()=>({error:"Workbook resolve failed"}));throw new Error(u.error||`Workbook resolve failed: HTTP ${a.status}`)}return a.json()}async function b0(n){const a=await fetch(`${Si}/api/folder/status?workbookId=${encodeURIComponent(n)}`);if(!a.ok){const u=await a.json().catch(()=>({error:"Folder status failed"}));throw new Error(u.error||`Folder status failed: HTTP ${a.status}`)}return a.json()}async function v0(n){const a=await fetch(`${Si}/api/folder/pick`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({initialPath:n??null})});if(!a.ok){const u=await a.json().catch(()=>({error:"Folder picker failed"}));throw new Error(u.error||`Folder picker failed: HTTP ${a.status}`)}return a.json()}async function S0(n,a,u){const r=await fetch(`${Si}/api/folder/select`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workbookId:n,folderPath:a,workbookName:u.workbookName,workbookUrl:u.workbookUrl??null,host:u.host??null,source:u.source??null})});if(!r.ok){const s=await r.json().catch(()=>({error:"Folder selection failed"}));throw new Error(s.error||`Folder selection failed: HTTP ${r.status}`)}return r.json()}async function k0(n,a,u,r,s){const h=await fetch(`${Si}/api/agent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:n,context:a,workbookId:u}),signal:s});if(!h.ok){const m=await h.json().catch(()=>({error:"Request failed"}));throw new Error(m.error||`HTTP ${h.status}`)}if(!h.body)throw new Error("No response body");const f=h.body.getReader(),p=new TextDecoder;let d="";for(;;){const{done:m,value:x}=await f.read();if(m)break;d+=p.decode(x,{stream:!0});const y=d.split(`
50
- `);d=y.pop()??"";for(const S of y){const v=S.trim();if(v.startsWith("data: "))try{const C=JSON.parse(v.slice(6));r(C)}catch{}}}if(d.trim().startsWith("data: "))try{const m=JSON.parse(d.trim().slice(6));r(m)}catch{}}const Rc=2e3;function E0(){const[n,a]=ce.useState(null),[u,r]=ce.useState(null),[s,h]=ce.useState(!1),f=ce.useRef(null),p=ce.useCallback(async()=>{try{const m=await Ld();return a(m),r(null),h(!1),!0}catch{return!1}},[]);ce.useEffect(()=>{let m=!1,x;async function y(){const S=await p();!m&&!S&&(r("Cannot connect to AgentXL server"),x=setTimeout(y,Rc))}return y(),()=>{m=!0,clearTimeout(x)}},[p]),ce.useEffect(()=>{if(!n||n.authenticated)return;const m=setInterval(async()=>{const x=await Ld().catch(()=>null);x!=null&&x.authenticated&&a(x)},Rc);return()=>clearInterval(m)},[n]);const d=ce.useCallback(()=>{h(!0),!f.current&&(f.current=setInterval(async()=>{await p()&&(clearInterval(f.current),f.current=null,h(!1))},Rc))},[p]);return ce.useEffect(()=>()=>{f.current&&clearInterval(f.current)},[]),{status:n,connectionError:u,serverDown:s,markServerDown:d}}const T0=5e3;function A0(n){const[a,u]=ce.useState(null),[r,s]=ce.useState(null),[h,f]=ce.useState(null),[p,d]=ce.useState(!1),m=ce.useRef(null),x=ce.useRef(null),y=ce.useRef(!1);return ce.useEffect(()=>{x.current=a},[a]),ce.useEffect(()=>{if(!n){u(null),s(null),f(null),d(!1),m.current=null,x.current=null;return}let S=!1;async function v(O=!1){if(!y.current){y.current=!0,S||d(!0);try{const Q=await y0(),H=JSON.stringify(Q);if(S||s(Q),!O&&m.current===H&&x.current){S||f(null);return}const ie=await x0(Q);S||(m.current=H,x.current=ie.workbookId,u(ie.workbookId),f(null))}catch(Q){S||f(Q instanceof Error?Q.message:"Failed to resolve workbook identity")}finally{y.current=!1,S||d(!1)}}}v(!0);const C=()=>{v()},B=()=>{document.visibilityState==="visible"&&v()};window.addEventListener("focus",C),document.addEventListener("visibilitychange",B);const Z=window.setInterval(()=>{v()},T0);return()=>{S=!0,window.removeEventListener("focus",C),document.removeEventListener("visibilitychange",B),window.clearInterval(Z),y.current=!1}},[n]),{workbookId:a,workbookIdentityInput:r,workbookResolveError:h,isResolvingWorkbook:p}}function z0(n,a,u){const[r,s]=ce.useState(null),[h,f]=ce.useState(null),[p,d]=ce.useState(!1),[m,x]=ce.useState(!1),y=ce.useCallback(async()=>{if(!u||!n){s(null);return}d(!0);try{const v=await b0(n);s(v),f(null)}catch(v){f(v instanceof Error?v.message:"Failed to load folder status")}finally{d(!1)}},[u,n]);ce.useEffect(()=>{if(!u||!n){s(null),f(null);return}s(null),f(null),y()},[u,n,y]);const S=ce.useCallback(async v=>{if(!n||!a)return f("Workbook identity is not ready yet"),!1;x(!0);try{const C=await S0(n,v,a);return s(C),f(null),!0}catch(C){return f(C instanceof Error?C.message:"Failed to save folder link"),!1}finally{x(!1)}},[n,a]);return{folderStatus:r,folderError:h,isLoadingFolderStatus:p,isSavingFolder:m,saveFolderLink:S,refreshFolderStatus:y}}const C0={read:{label:"Reading file",iconKey:"file-text"},grep:{label:"Searching files",iconKey:"search"},find:{label:"Finding files",iconKey:"folder-open"},ls:{label:"Listing directory",iconKey:"folder-open"},excel:{label:"Excel",iconKey:"file-text"}};function w0(n,a){if(a){if(n==="read"&&typeof a.path=="string"){const u=a.path.replace(/\\/g,"/").split("/");return u[u.length-1]||a.path}if(n==="grep"&&typeof a.pattern=="string")return`"${a.pattern}"`;if(n==="find"&&typeof a.path=="string"||n==="ls"&&typeof a.path=="string")return a.path;if(n==="excel"&&typeof a.description=="string")return a.description}}function _0(){return{assistantId:crypto.randomUUID(),blocks:[],activeThinkingIdx:-1,activeTextIdx:-1,fullText:"",thinking:[],toolCalls:[]}}function D0(n,a){switch(n.type){case"message_update":{const u=n.assistantMessageEvent;if(!u)return{action:"none"};switch(u.type){case"text_delta":{a.activeTextIdx<0&&(a.activeTextIdx=a.blocks.length,a.blocks.push({type:"text",content:""}));const r=a.blocks[a.activeTextIdx];return r.content+=u.delta,a.fullText+=u.delta,{action:"update_assistant",message:il(a)}}case"thinking_start":{a.activeTextIdx=-1,a.activeThinkingIdx=a.blocks.length;const r={content:"",isStreaming:!0};return a.thinking.push(r),a.blocks.push({type:"thinking",content:"",isStreaming:!0}),{action:"update_assistant",message:il(a)}}case"thinking_delta":{if(a.activeThinkingIdx>=0){const r=a.blocks[a.activeThinkingIdx];r.content+=u.delta;const s=a.thinking.length-1;return s>=0&&(a.thinking[s].content+=u.delta),{action:"update_assistant",message:il(a)}}return{action:"none"}}case"thinking_end":{if(a.activeThinkingIdx>=0){const r=a.blocks[a.activeThinkingIdx];r.isStreaming=!1,u.content&&(r.content=u.content);const s=a.thinking.length-1;return s>=0&&(a.thinking[s].isStreaming=!1,u.content&&(a.thinking[s].content=u.content)),a.activeThinkingIdx=-1,{action:"update_assistant",message:il(a)}}return{action:"none"}}default:return{action:"none"}}}case"tool_execution_start":{const u=n;a.activeTextIdx=-1;const r={id:u.toolCallId,name:u.toolName,status:"running",summary:w0(u.toolName,u.args)};return a.toolCalls.push(r),a.blocks.push({type:"tool_call",tool:r}),{action:"update_assistant",message:il(a)}}case"tool_execution_end":{const u=n;a.activeTextIdx=-1;const r=a.toolCalls.find(s=>s.id===u.toolCallId);return r&&(r.status=u.isError?"error":"done"),{action:"update_assistant",message:il(a)}}case"auto_compaction_start":return a.activeTextIdx=-1,a.blocks.push({type:"status",label:"Compacting conversation history…",state:"running"}),{action:"update_assistant",message:il(a)};case"auto_compaction_end":{const u=n;for(let r=a.blocks.length-1;r>=0;r--){const s=a.blocks[r];if(s.type==="status"&&s.state==="running"){s.state=u.aborted||u.errorMessage?"error":"done",s.label=u.aborted?"Compaction aborted":u.errorMessage?`Compaction failed: ${u.errorMessage}`:"Conversation compacted";break}}return{action:"update_assistant",message:il(a)}}case"error":return{action:"add_system_error",message:{id:crypto.randomUUID(),role:"system",content:n.error||"An error occurred",timestamp:Date.now()}};case"agent_end":return{action:"agent_end"};default:return{action:"none"}}}function il(n){return{id:n.assistantId,role:"assistant",content:n.fullText,thinking:n.thinking.length>0?[...n.thinking]:void 0,toolCalls:n.toolCalls.length>0?[...n.toolCalls]:void 0,blocks:n.blocks.length>0?[...n.blocks]:void 0,timestamp:Date.now()}}const O0=window.location.origin;async function M0(n,a){try{const u=window;if(typeof u.Excel>"u"){await Iu(n,{error:"Excel is not available. The taskpane must be running inside Excel."});return}const r=u.Excel;if(/\.\s*note\s*=/.test(a)){await Iu(n,{error:"Unsupported Office.js pattern: `range.note` / `cell.note` does not create a visible Excel comment in this runtime. Use `worksheet.comments.add(cellAddress, content)` instead, and delete any existing comment first if needed."});return}const s=await r.run(async f=>await new Function("context",`return (async () => { ${a} })()`)(f));let h;s==null?h="Done (no return value)":typeof s=="string"?h=s:h=JSON.stringify(s,null,2),await Iu(n,{result:h})}catch(u){const r=u instanceof Error?u.message:String(u);await Iu(n,{error:r})}}async function Iu(n,a){try{await fetch(`${O0}/api/excel/result`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolCallId:n,...a})})}catch(u){console.error("[excel-executor] Failed to POST result:",u)}}function N0(n,a){const[u,r]=ce.useState([]),[s,h]=ce.useState(!1),f=ce.useRef(null),p=ce.useCallback(async m=>{var Z,O;const x=m.trim();if(!x||s)return;const y={id:crypto.randomUUID(),role:"user",content:x,timestamp:Date.now()};r(Q=>[...Q,y]),h(!0);const S=_0(),v=Q=>{switch(Q.action){case"update_assistant":r(H=>H.find(ae=>ae.id===Q.message.id)?H.map(ae=>ae.id===Q.message.id?Q.message:ae):[...H,Q.message]);break;case"add_system_error":r(H=>[...H,Q.message]);break}},C=await g0(),B=new AbortController;f.current=B;try{await k0(x,C,n,Q=>{var ae;const H=Q,ie=D0(H,S);if(v(ie),H.type==="tool_execution_start"&&H.toolName==="excel"){const U=H,W=(ae=U.args)==null?void 0:ae.code;typeof W=="string"&&U.toolCallId&&M0(U.toolCallId,W).catch(se=>{console.error("[excel] execution failed:",se)})}},B.signal)}catch(Q){Q.name==="AbortError"||((Z=Q.message)!=null&&Z.includes("fetch")||(O=Q.message)!=null&&O.includes("network")||Q.name==="TypeError"?a():r(H=>[...H,{id:crypto.randomUUID(),role:"system",content:Q.message||"Failed to get response",timestamp:Date.now()}]))}finally{h(!1),f.current=null}},[s,a,n]),d=ce.useCallback(()=>{var m;(m=f.current)==null||m.abort()},[]);return{messages:u,isStreaming:s,sendMessage:p,stopStreaming:d}}function R0(){return L.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center",children:[L.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-xl flex items-center justify-center mb-4",children:L.jsx("span",{className:"text-red-500 text-lg",children:"!"})}),L.jsx("p",{className:"text-sm text-gray-700 font-medium mb-2",children:"Can't connect to server"}),L.jsxs("p",{className:"text-xs text-gray-500",children:["Make sure"," ",L.jsx("code",{className:"bg-gray-100 px-1.5 py-0.5 rounded",children:"agentxl start"})," ","is running in your terminal."]}),L.jsxs("div",{className:"mt-4 flex items-center gap-2 text-xs text-gray-400",children:[L.jsx("div",{className:"w-2 h-2 bg-gray-300 rounded-full animate-pulse"}),"Reconnecting…"]})]})}/**
51
- * @license lucide-react v0.564.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */const _p=(...n)=>n.filter((a,u,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===u).join(" ").trim();/**
56
- * @license lucide-react v0.564.0 - ISC
57
- *
58
- * This source code is licensed under the ISC license.
59
- * See the LICENSE file in the root directory of this source tree.
60
- */const j0=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
61
- * @license lucide-react v0.564.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 L0=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,u,r)=>r?r.toUpperCase():u.toLowerCase());/**
66
- * @license lucide-react v0.564.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
- */const Ud=n=>{const a=L0(n);return a.charAt(0).toUpperCase()+a.slice(1)};/**
71
- * @license lucide-react v0.564.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
- */var U0={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"};/**
76
- * @license lucide-react v0.564.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 B0=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
81
- * @license lucide-react v0.564.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 H0=ce.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:u=2,absoluteStrokeWidth:r,className:s="",children:h,iconNode:f,...p},d)=>ce.createElement("svg",{ref:d,...U0,width:a,height:a,stroke:n,strokeWidth:r?Number(u)*24/Number(a):u,className:_p("lucide",s),...!h&&!B0(p)&&{"aria-hidden":"true"},...p},[...f.map(([m,x])=>ce.createElement(m,x)),...Array.isArray(h)?h:[h]]));/**
86
- * @license lucide-react v0.564.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 vt=(n,a)=>{const u=ce.forwardRef(({className:r,...s},h)=>ce.createElement(H0,{ref:h,iconNode:a,className:_p(`lucide-${j0(Ud(n))}`,`lucide-${n}`,r),...s}));return u.displayName=Ud(n),u};/**
91
- * @license lucide-react v0.564.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 q0=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Y0=vt("brain",q0);/**
96
- * @license lucide-react v0.564.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 V0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],X0=vt("chevron-down",V0);/**
101
- * @license lucide-react v0.564.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 Q0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],G0=vt("chevron-right",Q0);/**
106
- * @license lucide-react v0.564.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 Z0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Dp=vt("circle-alert",Z0);/**
111
- * @license lucide-react v0.564.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 F0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Op=vt("circle-check",F0);/**
116
- * @license lucide-react v0.564.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 K0=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],J0=vt("file-spreadsheet",K0);/**
121
- * @license lucide-react v0.564.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 I0=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],nr=vt("file-text",I0);/**
126
- * @license lucide-react v0.564.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 $0=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],ss=vt("folder-open",$0);/**
131
- * @license lucide-react v0.564.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 W0=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],P0=vt("link-2",W0);/**
136
- * @license lucide-react v0.564.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 ex=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Mp=vt("loader-circle",ex);/**
141
- * @license lucide-react v0.564.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 tx=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Np=vt("refresh-cw",tx);/**
146
- * @license lucide-react v0.564.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 nx=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Rp=vt("search",nx);/**
151
- * @license lucide-react v0.564.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 lx=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ix=vt("send",lx);/**
156
- * @license lucide-react v0.564.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 ax=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ux=vt("shield",ax);/**
161
- * @license lucide-react v0.564.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 rx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],ox=vt("square",rx);function cx(){return L.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center",children:[L.jsx("div",{className:"w-14 h-14 bg-amber-100 rounded-xl flex items-center justify-center mb-4",children:L.jsx("span",{className:"text-amber-600 text-xl",children:"🔑"})}),L.jsx("p",{className:"text-sm text-gray-700 font-medium mb-2",children:"Authentication required"}),L.jsxs("p",{className:"text-xs text-gray-500 leading-relaxed mb-4",children:["Run"," ",L.jsx("code",{className:"bg-gray-100 px-1.5 py-0.5 rounded text-gray-700",children:"agentxl login"})," ","in your terminal to set up credentials."]}),L.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-400",children:[L.jsx(Np,{size:12,className:"animate-spin"}),"Waiting for credentials…"]})]})}function sx({workbookId:n,workbookName:a,currentFolderPath:u,isSaving:r,isPickingFolder:s,error:h,onPickFolder:f,onSave:p,onCancel:d}){const[m,x]=ce.useState(u??"");ce.useEffect(()=>{x(u??"")},[u]);async function y(){const S=await f();S&&x(S)}return L.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center",children:[L.jsx("div",{className:"w-12 h-12 bg-emerald-600 rounded-2xl flex items-center justify-center mb-4",children:L.jsx(ss,{size:20,className:"text-white"})}),L.jsx("p",{className:"text-[15px] font-semibold text-gray-900 mb-1",children:"Choose the folder with your supporting documents"}),L.jsx("p",{className:"text-xs text-gray-400 mb-5 max-w-[280px]",children:"Paste a local folder path below. If the picker works in your Excel setup, you can use it as a shortcut."}),L.jsxs("div",{className:"w-full max-w-[320px] rounded-2xl border border-gray-200 bg-white p-4 text-left shadow-sm",children:[L.jsxs("div",{className:"space-y-1 mb-4",children:[a&&L.jsxs("p",{className:"text-[12px] text-gray-700",children:[L.jsx("span",{className:"font-medium",children:"Workbook:"})," ",a]}),L.jsxs("p",{className:"text-[11px] text-gray-400 break-all",children:[L.jsx("span",{className:"font-medium text-gray-500",children:"Workbook ID:"})," ",n]})]}),L.jsx("label",{className:"block text-[12px] font-medium text-gray-700 mb-2",children:"Folder path"}),L.jsx("input",{value:m,onChange:S=>x(S.target.value),placeholder:"C:\\\\Clients\\\\ABC\\\\Support",disabled:r,className:"w-full rounded-xl border border-gray-200 px-3 py-2.5 text-[13px] outline-none focus:border-emerald-500 focus:ring-1 focus:ring-emerald-500/30 disabled:opacity-50"}),L.jsx("div",{className:"mt-3 flex gap-2",children:L.jsx("button",{onClick:y,disabled:r||s,className:"rounded-xl border border-gray-200 px-3 py-2.5 text-[12px] text-gray-700 hover:bg-gray-50 disabled:opacity-40",children:s?"Trying to open…":"Try folder picker"})}),L.jsx("p",{className:"mt-2 text-[11px] text-gray-400",children:s?"If the picker does not appear, keep typing the folder path manually.":"Manual path entry is the most reliable fallback in Excel."}),h&&L.jsx("div",{className:"mt-3 rounded-xl border border-red-100 bg-red-50 px-3 py-2 text-[12px] text-red-700",children:h}),L.jsxs("div",{className:"mt-4 flex gap-2",children:[L.jsxs("button",{onClick:()=>p(m),disabled:!m.trim()||r,className:"btn-press flex-1 inline-flex items-center justify-center gap-2 rounded-xl bg-emerald-600 px-4 py-2.5 text-[13px] font-medium text-white hover:bg-emerald-700 transition-colors disabled:opacity-40 disabled:hover:bg-emerald-600",children:[r?L.jsx(Np,{size:14,className:"animate-spin"}):L.jsx(P0,{size:14}),u?"Update folder":"Link folder"]}),d&&L.jsx("button",{onClick:d,disabled:r,className:"rounded-xl border border-gray-200 px-4 py-2.5 text-[13px] text-gray-600 hover:bg-gray-50 disabled:opacity-40",children:"Cancel"})]})]})]})}const fx=[{icon:ss,label:"Compare source files to this sheet",prompt:"Compare the selected document folder to this sheet and flag mismatches"},{icon:J0,label:"Map a value into Excel",prompt:"Extract the relevant value from the selected document folder and map it into Excel"},{icon:Rp,label:"Trace cells to source files",prompt:"Show me which workbook cells came from which source files"}];function hx({status:n,workbookId:a,linkedFolderPath:u,totalFiles:r,supportedFiles:s,onQuickAction:h,onChangeFolder:f}){return L.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center",children:[L.jsx("div",{className:"w-12 h-12 bg-emerald-600 rounded-2xl flex items-center justify-center mb-4",children:L.jsx("span",{className:"text-white text-lg font-bold tracking-tight",children:"AX"})}),L.jsx("p",{className:"text-[15px] font-semibold text-gray-900 mb-0.5",children:"Choose a folder, then ask a grounded question"}),L.jsx("p",{className:"text-xs text-gray-400 mb-4",children:"AgentXL searches source files and maps answers into Excel"}),L.jsxs("div",{className:"w-full max-w-[280px] rounded-xl border border-gray-200 bg-white px-4 py-3 text-left mb-5",children:[L.jsx("p",{className:"text-[11px] text-gray-400 mb-1",children:"Linked folder"}),L.jsx("p",{className:"text-[12px] text-gray-700 break-all",children:u}),typeof s=="number"&&typeof r=="number"&&L.jsxs("div",{className:"flex items-center gap-1.5 mt-2",children:[L.jsx(nr,{size:12,className:"text-emerald-600 shrink-0"}),L.jsxs("p",{className:"text-[11px] text-gray-500",children:[s," supported file",s!==1?"s":""," ",L.jsxs("span",{className:"text-gray-400",children:["of ",r," total"]})]})]}),L.jsx("button",{onClick:f,className:"mt-3 text-[12px] font-medium text-emerald-600 hover:text-emerald-700",children:"Change folder"})]}),L.jsx("div",{className:"flex flex-col gap-2 w-full max-w-[260px]",children:fx.map(p=>L.jsxs("button",{onClick:()=>h(p.prompt),className:"chip-hover flex items-center gap-3 px-4 py-2.5 rounded-xl border border-gray-200 text-left bg-white",children:[L.jsx(p.icon,{size:15,className:"text-emerald-600 shrink-0"}),L.jsx("span",{className:"text-[13px] text-gray-700",children:p.label})]},p.label))}),L.jsxs("div",{className:"flex items-center gap-1.5 mt-6 text-[11px] text-gray-400",children:[L.jsx(ux,{size:10,className:"shrink-0"}),L.jsx("span",{children:"Your data stays on your machine"})]}),L.jsxs("div",{className:"mt-2 space-y-1",children:[L.jsxs("p",{className:"text-[10px] text-gray-300",children:["Version ",n.version]}),a&&L.jsxs("p",{className:"text-[10px] text-gray-300",children:["Workbook ID: ",a]})]})]})}function mx(n,a){const u={};return(n[n.length-1]===""?[...n,""]:n).join((u.padRight?" ":"")+","+(u.padLeft===!1?"":" ")).trim()}const dx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,px=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gx={};function Bd(n,a){return(gx.jsx?px:dx).test(n)}const yx=/[ \t\n\f\r]/g;function xx(n){return typeof n=="object"?n.type==="text"?Hd(n.value):!1:Hd(n)}function Hd(n){return n.replace(yx,"")===""}class wa{constructor(a,u,r){this.normal=u,this.property=a,r&&(this.space=r)}}wa.prototype.normal={};wa.prototype.property={};wa.prototype.space=void 0;function jp(n,a){const u={},r={};for(const s of n)Object.assign(u,s.property),Object.assign(r,s.normal);return new wa(u,r,a)}function Wc(n){return n.toLowerCase()}class Dt{constructor(a,u){this.attribute=u,this.property=a}}Dt.prototype.attribute="";Dt.prototype.booleanish=!1;Dt.prototype.boolean=!1;Dt.prototype.commaOrSpaceSeparated=!1;Dt.prototype.commaSeparated=!1;Dt.prototype.defined=!1;Dt.prototype.mustUseProperty=!1;Dt.prototype.number=!1;Dt.prototype.overloadedBoolean=!1;Dt.prototype.property="";Dt.prototype.spaceSeparated=!1;Dt.prototype.space=void 0;let bx=0;const ve=Cl(),lt=Cl(),Pc=Cl(),K=Cl(),Qe=Cl(),bi=Cl(),Ht=Cl();function Cl(){return 2**++bx}const es=Object.freeze(Object.defineProperty({__proto__:null,boolean:ve,booleanish:lt,commaOrSpaceSeparated:Ht,commaSeparated:bi,number:K,overloadedBoolean:Pc,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),jc=Object.keys(es);class fs extends Dt{constructor(a,u,r,s){let h=-1;if(super(a,u),qd(this,"space",s),typeof r=="number")for(;++h<jc.length;){const f=jc[h];qd(this,jc[h],(r&es[f])===es[f])}}}fs.prototype.defined=!0;function qd(n,a,u){u&&(n[a]=u)}function ki(n){const a={},u={};for(const[r,s]of Object.entries(n.properties)){const h=new fs(r,n.transform(n.attributes||{},r),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(h.mustUseProperty=!0),a[r]=h,u[Wc(r)]=r,u[Wc(h.attribute)]=r}return new wa(a,u,n.space)}const Lp=ki({properties:{ariaActiveDescendant:null,ariaAtomic:lt,ariaAutoComplete:null,ariaBusy:lt,ariaChecked:lt,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:lt,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:lt,ariaFlowTo:Qe,ariaGrabbed:lt,ariaHasPopup:null,ariaHidden:lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:K,ariaLive:null,ariaModal:lt,ariaMultiLine:lt,ariaMultiSelectable:lt,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:lt,ariaReadOnly:lt,ariaRelevant:null,ariaRequired:lt,ariaRoleDescription:Qe,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:lt,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Up(n,a){return a in n?n[a]:a}function Bp(n,a){return Up(n,a.toLowerCase())}const vx=ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bi,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:Qe,autoFocus:ve,autoPlay:ve,blocking:Qe,capture:null,charSet:null,checked:ve,cite:null,className:Qe,cols:K,colSpan:null,content:null,contentEditable:lt,controls:ve,controlsList:Qe,coords:K|bi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:Pc,draggable:lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:Qe,height:K,hidden:Pc,high:K,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inert:ve,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:ve,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:ve,muted:ve,name:null,nonce:null,noModule:ve,noValidate:ve,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:ve,optimum:K,pattern:null,ping:Qe,placeholder:null,playsInline:ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:Qe,required:ve,reversed:ve,rows:K,rowSpan:K,sandbox:Qe,scope:null,scoped:ve,seamless:ve,selected:ve,shadowRootClonable:ve,shadowRootDelegatesFocus:ve,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:lt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:lt,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ve,declare:ve,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:lt,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ve,disableRemotePlayback:ve,prefix:null,property:null,results:K,security:null,unselectable:null},space:"html",transform:Bp}),Sx=ki({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:Ht,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:Qe,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:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,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:bi,g2:bi,glyphName:bi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,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:K,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:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ht,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ht,rev:Ht,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ht,requiredFeatures:Ht,requiredFonts:Ht,requiredFormats:Ht,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:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ht,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Up}),Hp=ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),qp=ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Bp}),Yp=ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),kx={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"},Ex=/[A-Z]/g,Yd=/-[a-z]/g,Tx=/^data[-\w.:]+$/i;function Ax(n,a){const u=Wc(a);let r=a,s=Dt;if(u in n.normal)return n.property[n.normal[u]];if(u.length>4&&u.slice(0,4)==="data"&&Tx.test(a)){if(a.charAt(4)==="-"){const h=a.slice(5).replace(Yd,Cx);r="data"+h.charAt(0).toUpperCase()+h.slice(1)}else{const h=a.slice(4);if(!Yd.test(h)){let f=h.replace(Ex,zx);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=fs}return new s(r,a)}function zx(n){return"-"+n.toLowerCase()}function Cx(n){return n.charAt(1).toUpperCase()}const wx=jp([Lp,vx,Hp,qp,Yp],"html"),hs=jp([Lp,Sx,Hp,qp,Yp],"svg");function _x(n){return n.join(" ").trim()}var gi={},Lc,Vd;function Dx(){if(Vd)return Lc;Vd=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,u=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,h=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,p=/^\s+|\s+$/g,d=`
166
- `,m="/",x="*",y="",S="comment",v="declaration";function C(Z,O){if(typeof Z!="string")throw new TypeError("First argument must be a string");if(!Z)return[];O=O||{};var Q=1,H=1;function ie(ne){var J=ne.match(a);J&&(Q+=J.length);var M=ne.lastIndexOf(d);H=~M?ne.length-M:H+ne.length}function ae(){var ne={line:Q,column:H};return function(J){return J.position=new U(ne),pe(),J}}function U(ne){this.start=ne,this.end={line:Q,column:H},this.source=O.source}U.prototype.content=Z;function W(ne){var J=new Error(O.source+":"+Q+":"+H+": "+ne);if(J.reason=ne,J.filename=O.source,J.line=Q,J.column=H,J.source=Z,!O.silent)throw J}function se(ne){var J=ne.exec(Z);if(J){var M=J[0];return ie(M),Z=Z.slice(M.length),J}}function pe(){se(u)}function R(ne){var J;for(ne=ne||[];J=te();)J!==!1&&ne.push(J);return ne}function te(){var ne=ae();if(!(m!=Z.charAt(0)||x!=Z.charAt(1))){for(var J=2;y!=Z.charAt(J)&&(x!=Z.charAt(J)||m!=Z.charAt(J+1));)++J;if(J+=2,y===Z.charAt(J-1))return W("End of comment missing");var M=Z.slice(2,J-2);return H+=2,ie(M),Z=Z.slice(J),H+=2,ne({type:S,comment:M})}}function ee(){var ne=ae(),J=se(r);if(J){if(te(),!se(s))return W("property missing ':'");var M=se(h),F=ne({type:v,property:B(J[0].replace(n,y)),value:M?B(M[0].replace(n,y)):y});return se(f),F}}function Se(){var ne=[];R(ne);for(var J;J=ee();)J!==!1&&(ne.push(J),R(ne));return ne}return pe(),Se()}function B(Z){return Z?Z.replace(p,y):y}return Lc=C,Lc}var Xd;function Ox(){if(Xd)return gi;Xd=1;var n=gi&&gi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(gi,"__esModule",{value:!0}),gi.default=u;const a=n(Dx());function u(r,s){let h=null;if(!r||typeof r!="string")return h;const f=(0,a.default)(r),p=typeof s=="function";return f.forEach(d=>{if(d.type!=="declaration")return;const{property:m,value:x}=d;p?s(m,x,d):x&&(h=h||{},h[m]=x)}),h}return gi}var ba={},Qd;function Mx(){if(Qd)return ba;Qd=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,u=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,h=function(m){return!m||u.test(m)||n.test(m)},f=function(m,x){return x.toUpperCase()},p=function(m,x){return"".concat(x,"-")},d=function(m,x){return x===void 0&&(x={}),h(m)?m:(m=m.toLowerCase(),x.reactCompat?m=m.replace(s,p):m=m.replace(r,p),m.replace(a,f))};return ba.camelCase=d,ba}var va,Gd;function Nx(){if(Gd)return va;Gd=1;var n=va&&va.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(Ox()),u=Mx();function r(s,h){var f={};return!s||typeof s!="string"||(0,a.default)(s,function(p,d){p&&d&&(f[(0,u.camelCase)(p,h)]=d)}),f}return r.default=r,va=r,va}var Rx=Nx();const jx=wp(Rx),Vp=Xp("end"),ms=Xp("start");function Xp(n){return a;function a(u){const r=u&&u.position&&u.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Lx(n){const a=ms(n),u=Vp(n);if(a&&u)return{start:a,end:u}}function Ea(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Zd(n.position):"start"in n||"end"in n?Zd(n):"line"in n||"column"in n?ts(n):""}function ts(n){return Fd(n&&n.line)+":"+Fd(n&&n.column)}function Zd(n){return ts(n&&n.start)+"-"+ts(n&&n.end)}function Fd(n){return n&&typeof n=="number"?n:1}class pt extends Error{constructor(a,u,r){super(),typeof u=="string"&&(r=u,u=void 0);let s="",h={},f=!1;if(u&&("line"in u&&"column"in u?h={place:u}:"start"in u&&"end"in u?h={place:u}:"type"in u?h={ancestors:[u],place:u.position}:h={...u}),typeof a=="string"?s=a:!h.cause&&a&&(f=!0,s=a.message,h.cause=a),!h.ruleId&&!h.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?h.ruleId=r:(h.source=r.slice(0,d),h.ruleId=r.slice(d+1))}if(!h.place&&h.ancestors&&h.ancestors){const d=h.ancestors[h.ancestors.length-1];d&&(h.place=d.position)}const p=h.place&&"start"in h.place?h.place.start:h.place;this.ancestors=h.ancestors||void 0,this.cause=h.cause||void 0,this.column=p?p.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=p?p.line:void 0,this.name=Ea(h.place)||"1:1",this.place=h.place||void 0,this.reason=this.message,this.ruleId=h.ruleId||void 0,this.source=h.source||void 0,this.stack=f&&h.cause&&typeof h.cause.stack=="string"?h.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}pt.prototype.file="";pt.prototype.name="";pt.prototype.reason="";pt.prototype.message="";pt.prototype.stack="";pt.prototype.column=void 0;pt.prototype.line=void 0;pt.prototype.ancestors=void 0;pt.prototype.cause=void 0;pt.prototype.fatal=void 0;pt.prototype.place=void 0;pt.prototype.ruleId=void 0;pt.prototype.source=void 0;const ds={}.hasOwnProperty,Ux=new Map,Bx=/[A-Z]/g,Hx=new Set(["table","tbody","thead","tfoot","tr"]),qx=new Set(["td","th"]),Qp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Yx(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const u=a.filePath||void 0;let r;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Jx(u,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Kx(u,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:r,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:u,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?hs:wx,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},h=Gp(s,n,void 0);return h&&typeof h!="string"?h:s.create(n,s.Fragment,{children:h||void 0},void 0)}function Gp(n,a,u){if(a.type==="element")return Vx(n,a,u);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Xx(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Gx(n,a,u);if(a.type==="mdxjsEsm")return Qx(n,a);if(a.type==="root")return Zx(n,a,u);if(a.type==="text")return Fx(n,a)}function Vx(n,a,u){const r=n.schema;let s=r;a.tagName.toLowerCase()==="svg"&&r.space==="html"&&(s=hs,n.schema=s),n.ancestors.push(a);const h=Fp(n,a.tagName,!1),f=Ix(n,a);let p=gs(n,a);return Hx.has(a.tagName)&&(p=p.filter(function(d){return typeof d=="string"?!xx(d):!0})),Zp(n,f,h,a),ps(f,p),n.ancestors.pop(),n.schema=r,n.create(a,h,f,u)}function Xx(n,a){if(a.data&&a.data.estree&&n.evaluater){const r=a.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}za(n,a.position)}function Qx(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);za(n,a.position)}function Gx(n,a,u){const r=n.schema;let s=r;a.name==="svg"&&r.space==="html"&&(s=hs,n.schema=s),n.ancestors.push(a);const h=a.name===null?n.Fragment:Fp(n,a.name,!0),f=$x(n,a),p=gs(n,a);return Zp(n,f,h,a),ps(f,p),n.ancestors.pop(),n.schema=r,n.create(a,h,f,u)}function Zx(n,a,u){const r={};return ps(r,gs(n,a)),n.create(a,n.Fragment,r,u)}function Fx(n,a){return a.value}function Zp(n,a,u,r){typeof u!="string"&&u!==n.Fragment&&n.passNode&&(a.node=r)}function ps(n,a){if(a.length>0){const u=a.length>1?a:a[0];u&&(n.children=u)}}function Kx(n,a,u){return r;function r(s,h,f,p){const m=Array.isArray(f.children)?u:a;return p?m(h,f,p):m(h,f)}}function Jx(n,a){return u;function u(r,s,h,f){const p=Array.isArray(h.children),d=ms(r);return a(s,h,f,p,{columnNumber:d?d.column-1:void 0,fileName:n,lineNumber:d?d.line:void 0},void 0)}}function Ix(n,a){const u={};let r,s;for(s in a.properties)if(s!=="children"&&ds.call(a.properties,s)){const h=Wx(n,s,a.properties[s]);if(h){const[f,p]=h;n.tableCellAlignToStyle&&f==="align"&&typeof p=="string"&&qx.has(a.tagName)?r=p:u[f]=p}}if(r){const h=u.style||(u.style={});h[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return u}function $x(n,a){const u={};for(const r of a.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const h=r.data.estree.body[0];h.type;const f=h.expression;f.type;const p=f.properties[0];p.type,Object.assign(u,n.evaluater.evaluateExpression(p.argument))}else za(n,a.position);else{const s=r.name;let h;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const p=r.value.data.estree.body[0];p.type,h=n.evaluater.evaluateExpression(p.expression)}else za(n,a.position);else h=r.value===null?!0:r.value;u[s]=h}return u}function gs(n,a){const u=[];let r=-1;const s=n.passKeys?new Map:Ux;for(;++r<a.children.length;){const h=a.children[r];let f;if(n.passKeys){const d=h.type==="element"?h.tagName:h.type==="mdxJsxFlowElement"||h.type==="mdxJsxTextElement"?h.name:void 0;if(d){const m=s.get(d)||0;f=d+"-"+m,s.set(d,m+1)}}const p=Gp(n,h,f);p!==void 0&&u.push(p)}return u}function Wx(n,a,u){const r=Ax(n.schema,a);if(!(u==null||typeof u=="number"&&Number.isNaN(u))){if(Array.isArray(u)&&(u=r.commaSeparated?mx(u):_x(u)),r.property==="style"){let s=typeof u=="object"?u:Px(n,String(u));return n.stylePropertyNameCase==="css"&&(s=eb(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&r.space?kx[r.property]||r.property:r.attribute,u]}}function Px(n,a){try{return jx(a,{reactCompat:!0})}catch(u){if(n.ignoreInvalidStyle)return{};const r=u,s=new pt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=Qp+"#cannot-parse-style-attribute",s}}function Fp(n,a,u){let r;if(!u)r={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let h=-1,f;for(;++h<s.length;){const p=Bd(s[h])?{type:"Identifier",name:s[h]}:{type:"Literal",value:s[h]};f=f?{type:"MemberExpression",object:f,property:p,computed:!!(h&&p.type==="Literal"),optional:!1}:p}r=f}else r=Bd(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(r.type==="Literal"){const s=r.value;return ds.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(r);za(n)}function za(n,a){const u=new pt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw u.file=n.filePath||void 0,u.url=Qp+"#cannot-handle-mdx-estrees-without-createevaluater",u}function eb(n){const a={};let u;for(u in n)ds.call(n,u)&&(a[tb(u)]=n[u]);return a}function tb(n){let a=n.replace(Bx,nb);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function nb(n){return"-"+n.toLowerCase()}const Uc={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"]},lb={};function ys(n,a){const u=lb,r=typeof u.includeImageAlt=="boolean"?u.includeImageAlt:!0,s=typeof u.includeHtml=="boolean"?u.includeHtml:!0;return Kp(n,r,s)}function Kp(n,a,u){if(ib(n)){if("value"in n)return n.type==="html"&&!u?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Kd(n.children,a,u)}return Array.isArray(n)?Kd(n,a,u):""}function Kd(n,a,u){const r=[];let s=-1;for(;++s<n.length;)r[s]=Kp(n[s],a,u);return r.join("")}function ib(n){return!!(n&&typeof n=="object")}const Jd=document.createElement("i");function xs(n){const a="&"+n+";";Jd.innerHTML=a;const u=Jd.textContent;return u.charCodeAt(u.length-1)===59&&n!=="semi"||u===a?!1:u}function qt(n,a,u,r){const s=n.length;let h=0,f;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,u=u>0?u:0,r.length<1e4)f=Array.from(r),f.unshift(a,u),n.splice(...f);else for(u&&n.splice(a,u);h<r.length;)f=r.slice(h,h+1e4),f.unshift(a,0),n.splice(...f),h+=1e4,a+=1e4}function Wt(n,a){return n.length>0?(qt(n,n.length,0,a),n):a}const Id={}.hasOwnProperty;function Jp(n){const a={};let u=-1;for(;++u<n.length;)ab(a,n[u]);return a}function ab(n,a){let u;for(u in a){const s=(Id.call(n,u)?n[u]:void 0)||(n[u]={}),h=a[u];let f;if(h)for(f in h){Id.call(s,f)||(s[f]=[]);const p=h[f];ub(s[f],Array.isArray(p)?p:p?[p]:[])}}}function ub(n,a){let u=-1;const r=[];for(;++u<a.length;)(a[u].add==="after"?n:r).push(a[u]);qt(n,0,0,r)}function Ip(n,a){const u=Number.parseInt(n,a);return u<9||u===11||u>13&&u<32||u>126&&u<160||u>55295&&u<57344||u>64975&&u<65008||(u&65535)===65535||(u&65535)===65534||u>1114111?"�":String.fromCodePoint(u)}function ln(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bt=ul(/[A-Za-z]/),dt=ul(/[\dA-Za-z]/),rb=ul(/[#-'*+\--9=?A-Z^-~]/);function lr(n){return n!==null&&(n<32||n===127)}const ns=ul(/\d/),ob=ul(/[\dA-Fa-f]/),cb=ul(/[!-/:-@[-`{-~]/);function fe(n){return n!==null&&n<-2}function Xe(n){return n!==null&&(n<0||n===32)}function Ae(n){return n===-2||n===-1||n===32}const rr=ul(new RegExp("\\p{P}|\\p{S}","u")),zl=ul(/\s/);function ul(n){return a;function a(u){return u!==null&&u>-1&&n.test(String.fromCharCode(u))}}function Ei(n){const a=[];let u=-1,r=0,s=0;for(;++u<n.length;){const h=n.charCodeAt(u);let f="";if(h===37&&dt(n.charCodeAt(u+1))&&dt(n.charCodeAt(u+2)))s=2;else if(h<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(h))||(f=String.fromCharCode(h));else if(h>55295&&h<57344){const p=n.charCodeAt(u+1);h<56320&&p>56319&&p<57344?(f=String.fromCharCode(h,p),s=1):f="�"}else f=String.fromCharCode(h);f&&(a.push(n.slice(r,u),encodeURIComponent(f)),r=u+s+1,f=""),s&&(u+=s,s=0)}return a.join("")+n.slice(r)}function De(n,a,u,r){const s=r?r-1:Number.POSITIVE_INFINITY;let h=0;return f;function f(d){return Ae(d)?(n.enter(u),p(d)):a(d)}function p(d){return Ae(d)&&h++<s?(n.consume(d),p):(n.exit(u),a(d))}}const sb={tokenize:fb};function fb(n){const a=n.attempt(this.parser.constructs.contentInitial,r,s);let u;return a;function r(p){if(p===null){n.consume(p);return}return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),De(n,a,"linePrefix")}function s(p){return n.enter("paragraph"),h(p)}function h(p){const d=n.enter("chunkText",{contentType:"text",previous:u});return u&&(u.next=d),u=d,f(p)}function f(p){if(p===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(p);return}return fe(p)?(n.consume(p),n.exit("chunkText"),h):(n.consume(p),f)}}const hb={tokenize:mb},$d={tokenize:db};function mb(n){const a=this,u=[];let r=0,s,h,f;return p;function p(H){if(r<u.length){const ie=u[r];return a.containerState=ie[1],n.attempt(ie[0].continuation,d,m)(H)}return m(H)}function d(H){if(r++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&Q();const ie=a.events.length;let ae=ie,U;for(;ae--;)if(a.events[ae][0]==="exit"&&a.events[ae][1].type==="chunkFlow"){U=a.events[ae][1].end;break}O(r);let W=ie;for(;W<a.events.length;)a.events[W][1].end={...U},W++;return qt(a.events,ae+1,0,a.events.slice(ie)),a.events.length=W,m(H)}return p(H)}function m(H){if(r===u.length){if(!s)return S(H);if(s.currentConstruct&&s.currentConstruct.concrete)return C(H);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check($d,x,y)(H)}function x(H){return s&&Q(),O(r),S(H)}function y(H){return a.parser.lazy[a.now().line]=r!==u.length,f=a.now().offset,C(H)}function S(H){return a.containerState={},n.attempt($d,v,C)(H)}function v(H){return r++,u.push([a.currentConstruct,a.containerState]),S(H)}function C(H){if(H===null){s&&Q(),O(0),n.consume(H);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:h}),B(H)}function B(H){if(H===null){Z(n.exit("chunkFlow"),!0),O(0),n.consume(H);return}return fe(H)?(n.consume(H),Z(n.exit("chunkFlow")),r=0,a.interrupt=void 0,p):(n.consume(H),B)}function Z(H,ie){const ae=a.sliceStream(H);if(ie&&ae.push(null),H.previous=h,h&&(h.next=H),h=H,s.defineSkip(H.start),s.write(ae),a.parser.lazy[H.start.line]){let U=s.events.length;for(;U--;)if(s.events[U][1].start.offset<f&&(!s.events[U][1].end||s.events[U][1].end.offset>f))return;const W=a.events.length;let se=W,pe,R;for(;se--;)if(a.events[se][0]==="exit"&&a.events[se][1].type==="chunkFlow"){if(pe){R=a.events[se][1].end;break}pe=!0}for(O(r),U=W;U<a.events.length;)a.events[U][1].end={...R},U++;qt(a.events,se+1,0,a.events.slice(W)),a.events.length=U}}function O(H){let ie=u.length;for(;ie-- >H;){const ae=u[ie];a.containerState=ae[1],ae[0].exit.call(a,n)}u.length=H}function Q(){s.write([null]),h=void 0,s=void 0,a.containerState._closeFlow=void 0}}function db(n,a,u){return De(n,n.attempt(this.parser.constructs.document,a,u),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function vi(n){if(n===null||Xe(n)||zl(n))return 1;if(rr(n))return 2}function or(n,a,u){const r=[];let s=-1;for(;++s<n.length;){const h=n[s].resolveAll;h&&!r.includes(h)&&(a=h(a,u),r.push(h))}return a}const ls={name:"attention",resolveAll:pb,tokenize:gb};function pb(n,a){let u=-1,r,s,h,f,p,d,m,x;for(;++u<n.length;)if(n[u][0]==="enter"&&n[u][1].type==="attentionSequence"&&n[u][1]._close){for(r=u;r--;)if(n[r][0]==="exit"&&n[r][1].type==="attentionSequence"&&n[r][1]._open&&a.sliceSerialize(n[r][1]).charCodeAt(0)===a.sliceSerialize(n[u][1]).charCodeAt(0)){if((n[r][1]._close||n[u][1]._open)&&(n[u][1].end.offset-n[u][1].start.offset)%3&&!((n[r][1].end.offset-n[r][1].start.offset+n[u][1].end.offset-n[u][1].start.offset)%3))continue;d=n[r][1].end.offset-n[r][1].start.offset>1&&n[u][1].end.offset-n[u][1].start.offset>1?2:1;const y={...n[r][1].end},S={...n[u][1].start};Wd(y,-d),Wd(S,d),f={type:d>1?"strongSequence":"emphasisSequence",start:y,end:{...n[r][1].end}},p={type:d>1?"strongSequence":"emphasisSequence",start:{...n[u][1].start},end:S},h={type:d>1?"strongText":"emphasisText",start:{...n[r][1].end},end:{...n[u][1].start}},s={type:d>1?"strong":"emphasis",start:{...f.start},end:{...p.end}},n[r][1].end={...f.start},n[u][1].start={...p.end},m=[],n[r][1].end.offset-n[r][1].start.offset&&(m=Wt(m,[["enter",n[r][1],a],["exit",n[r][1],a]])),m=Wt(m,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",h,a]]),m=Wt(m,or(a.parser.constructs.insideSpan.null,n.slice(r+1,u),a)),m=Wt(m,[["exit",h,a],["enter",p,a],["exit",p,a],["exit",s,a]]),n[u][1].end.offset-n[u][1].start.offset?(x=2,m=Wt(m,[["enter",n[u][1],a],["exit",n[u][1],a]])):x=0,qt(n,r-1,u-r+3,m),u=r+m.length-x-2;break}}for(u=-1;++u<n.length;)n[u][1].type==="attentionSequence"&&(n[u][1].type="data");return n}function gb(n,a){const u=this.parser.constructs.attentionMarkers.null,r=this.previous,s=vi(r);let h;return f;function f(d){return h=d,n.enter("attentionSequence"),p(d)}function p(d){if(d===h)return n.consume(d),p;const m=n.exit("attentionSequence"),x=vi(d),y=!x||x===2&&s||u.includes(d),S=!s||s===2&&x||u.includes(r);return m._open=!!(h===42?y:y&&(s||!S)),m._close=!!(h===42?S:S&&(x||!y)),a(d)}}function Wd(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const yb={name:"autolink",tokenize:xb};function xb(n,a,u){let r=0;return s;function s(v){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),h}function h(v){return bt(v)?(n.consume(v),f):v===64?u(v):m(v)}function f(v){return v===43||v===45||v===46||dt(v)?(r=1,p(v)):m(v)}function p(v){return v===58?(n.consume(v),r=0,d):(v===43||v===45||v===46||dt(v))&&r++<32?(n.consume(v),p):(r=0,m(v))}function d(v){return v===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):v===null||v===32||v===60||lr(v)?u(v):(n.consume(v),d)}function m(v){return v===64?(n.consume(v),x):rb(v)?(n.consume(v),m):u(v)}function x(v){return dt(v)?y(v):u(v)}function y(v){return v===46?(n.consume(v),r=0,x):v===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):S(v)}function S(v){if((v===45||dt(v))&&r++<63){const C=v===45?S:y;return n.consume(v),C}return u(v)}}const _a={partial:!0,tokenize:bb};function bb(n,a,u){return r;function r(h){return Ae(h)?De(n,s,"linePrefix")(h):s(h)}function s(h){return h===null||fe(h)?a(h):u(h)}}const $p={continuation:{tokenize:Sb},exit:kb,name:"blockQuote",tokenize:vb};function vb(n,a,u){const r=this;return s;function s(f){if(f===62){const p=r.containerState;return p.open||(n.enter("blockQuote",{_container:!0}),p.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),h}return u(f)}function h(f){return Ae(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function Sb(n,a,u){const r=this;return s;function s(f){return Ae(f)?De(n,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):h(f)}function h(f){return n.attempt($p,a,u)(f)}}function kb(n){n.exit("blockQuote")}const Wp={name:"characterEscape",tokenize:Eb};function Eb(n,a,u){return r;function r(h){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(h),n.exit("escapeMarker"),s}function s(h){return cb(h)?(n.enter("characterEscapeValue"),n.consume(h),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):u(h)}}const Pp={name:"characterReference",tokenize:Tb};function Tb(n,a,u){const r=this;let s=0,h,f;return p;function p(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),d}function d(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),m):(n.enter("characterReferenceValue"),h=31,f=dt,x(y))}function m(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),h=6,f=ob,x):(n.enter("characterReferenceValue"),h=7,f=ns,x(y))}function x(y){if(y===59&&s){const S=n.exit("characterReferenceValue");return f===dt&&!xs(r.sliceSerialize(S))?u(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return f(y)&&s++<h?(n.consume(y),x):u(y)}}const Pd={partial:!0,tokenize:zb},ep={concrete:!0,name:"codeFenced",tokenize:Ab};function Ab(n,a,u){const r=this,s={partial:!0,tokenize:ae};let h=0,f=0,p;return d;function d(U){return m(U)}function m(U){const W=r.events[r.events.length-1];return h=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,p=U,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(U)}function x(U){return U===p?(f++,n.consume(U),x):f<3?u(U):(n.exit("codeFencedFenceSequence"),Ae(U)?De(n,y,"whitespace")(U):y(U))}function y(U){return U===null||fe(U)?(n.exit("codeFencedFence"),r.interrupt?a(U):n.check(Pd,B,ie)(U)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(U))}function S(U){return U===null||fe(U)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(U)):Ae(U)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),De(n,v,"whitespace")(U)):U===96&&U===p?u(U):(n.consume(U),S)}function v(U){return U===null||fe(U)?y(U):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),C(U))}function C(U){return U===null||fe(U)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(U)):U===96&&U===p?u(U):(n.consume(U),C)}function B(U){return n.attempt(s,ie,Z)(U)}function Z(U){return n.enter("lineEnding"),n.consume(U),n.exit("lineEnding"),O}function O(U){return h>0&&Ae(U)?De(n,Q,"linePrefix",h+1)(U):Q(U)}function Q(U){return U===null||fe(U)?n.check(Pd,B,ie)(U):(n.enter("codeFlowValue"),H(U))}function H(U){return U===null||fe(U)?(n.exit("codeFlowValue"),Q(U)):(n.consume(U),H)}function ie(U){return n.exit("codeFenced"),a(U)}function ae(U,W,se){let pe=0;return R;function R(J){return U.enter("lineEnding"),U.consume(J),U.exit("lineEnding"),te}function te(J){return U.enter("codeFencedFence"),Ae(J)?De(U,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):ee(J)}function ee(J){return J===p?(U.enter("codeFencedFenceSequence"),Se(J)):se(J)}function Se(J){return J===p?(pe++,U.consume(J),Se):pe>=f?(U.exit("codeFencedFenceSequence"),Ae(J)?De(U,ne,"whitespace")(J):ne(J)):se(J)}function ne(J){return J===null||fe(J)?(U.exit("codeFencedFence"),W(J)):se(J)}}}function zb(n,a,u){const r=this;return s;function s(f){return f===null?u(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),h)}function h(f){return r.parser.lazy[r.now().line]?u(f):a(f)}}const Bc={name:"codeIndented",tokenize:wb},Cb={partial:!0,tokenize:_b};function wb(n,a,u){const r=this;return s;function s(m){return n.enter("codeIndented"),De(n,h,"linePrefix",5)(m)}function h(m){const x=r.events[r.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?f(m):u(m)}function f(m){return m===null?d(m):fe(m)?n.attempt(Cb,f,d)(m):(n.enter("codeFlowValue"),p(m))}function p(m){return m===null||fe(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),p)}function d(m){return n.exit("codeIndented"),a(m)}}function _b(n,a,u){const r=this;return s;function s(f){return r.parser.lazy[r.now().line]?u(f):fe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):De(n,h,"linePrefix",5)(f)}function h(f){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(f):fe(f)?s(f):u(f)}}const Db={name:"codeText",previous:Mb,resolve:Ob,tokenize:Nb};function Ob(n){let a=n.length-4,u=3,r,s;if((n[u][1].type==="lineEnding"||n[u][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(r=u;++r<a;)if(n[r][1].type==="codeTextData"){n[u][1].type="codeTextPadding",n[a][1].type="codeTextPadding",u+=2,a-=2;break}}for(r=u-1,a++;++r<=a;)s===void 0?r!==a&&n[r][1].type!=="lineEnding"&&(s=r):(r===a||n[r][1].type==="lineEnding")&&(n[s][1].type="codeTextData",r!==s+2&&(n[s][1].end=n[r-1][1].end,n.splice(s+2,r-s-2),a-=r-s-2,r=s+2),s=void 0);return n}function Mb(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Nb(n,a,u){let r=0,s,h;return f;function f(y){return n.enter("codeText"),n.enter("codeTextSequence"),p(y)}function p(y){return y===96?(n.consume(y),r++,p):(n.exit("codeTextSequence"),d(y))}function d(y){return y===null?u(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),d):y===96?(h=n.enter("codeTextSequence"),s=0,x(y)):fe(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),d):(n.enter("codeTextData"),m(y))}function m(y){return y===null||y===32||y===96||fe(y)?(n.exit("codeTextData"),d(y)):(n.consume(y),m)}function x(y){return y===96?(n.consume(y),s++,x):s===r?(n.exit("codeTextSequence"),n.exit("codeText"),a(y)):(h.type="codeTextData",m(y))}}class Rb{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,u){const r=u??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(a,r):a>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(a,u,r){const s=u||0;this.setCursor(Math.trunc(a));const h=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return r&&Sa(this.left,r),h.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Sa(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Sa(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const u=this.left.splice(a,Number.POSITIVE_INFINITY);Sa(this.right,u.reverse())}else{const u=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Sa(this.left,u.reverse())}}}function Sa(n,a){let u=0;if(a.length<1e4)n.push(...a);else for(;u<a.length;)n.push(...a.slice(u,u+1e4)),u+=1e4}function eg(n){const a={};let u=-1,r,s,h,f,p,d,m;const x=new Rb(n);for(;++u<x.length;){for(;u in a;)u=a[u];if(r=x.get(u),u&&r[1].type==="chunkFlow"&&x.get(u-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,h=0,h<d.length&&d[h][1].type==="lineEndingBlank"&&(h+=2),h<d.length&&d[h][1].type==="content"))for(;++h<d.length&&d[h][1].type!=="content";)d[h][1].type==="chunkText"&&(d[h][1]._isInFirstContentOfListItem=!0,h++);if(r[0]==="enter")r[1].contentType&&(Object.assign(a,jb(x,u)),u=a[u],m=!0);else if(r[1]._container){for(h=u,s=void 0;h--;)if(f=x.get(h),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(x.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=h);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(r[1].end={...x.get(s)[1].start},p=x.slice(s,u),p.unshift(r),x.splice(s,u-s+1,p))}}return qt(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!m}function jb(n,a){const u=n.get(a)[1],r=n.get(a)[2];let s=a-1;const h=[];let f=u._tokenizer;f||(f=r.parser[u.contentType](u.start),u._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const p=f.events,d=[],m={};let x,y,S=-1,v=u,C=0,B=0;const Z=[B];for(;v;){for(;n.get(++s)[1]!==v;);h.push(s),v._tokenizer||(x=r.sliceStream(v),v.next||x.push(null),y&&f.defineSkip(v.start),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(x),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),y=v,v=v.next}for(v=u;++S<p.length;)p[S][0]==="exit"&&p[S-1][0]==="enter"&&p[S][1].type===p[S-1][1].type&&p[S][1].start.line!==p[S][1].end.line&&(B=S+1,Z.push(B),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):Z.pop(),S=Z.length;S--;){const O=p.slice(Z[S],Z[S+1]),Q=h.pop();d.push([Q,Q+O.length-1]),n.splice(Q,2,O)}for(d.reverse(),S=-1;++S<d.length;)m[C+d[S][0]]=C+d[S][1],C+=d[S][1]-d[S][0]-1;return m}const Lb={resolve:Bb,tokenize:Hb},Ub={partial:!0,tokenize:qb};function Bb(n){return eg(n),n}function Hb(n,a){let u;return r;function r(p){return n.enter("content"),u=n.enter("chunkContent",{contentType:"content"}),s(p)}function s(p){return p===null?h(p):fe(p)?n.check(Ub,f,h)(p):(n.consume(p),s)}function h(p){return n.exit("chunkContent"),n.exit("content"),a(p)}function f(p){return n.consume(p),n.exit("chunkContent"),u.next=n.enter("chunkContent",{contentType:"content",previous:u}),u=u.next,s}}function qb(n,a,u){const r=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),De(n,h,"linePrefix")}function h(f){if(f===null||fe(f))return u(f);const p=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(f):n.interrupt(r.parser.constructs.flow,u,a)(f)}}function tg(n,a,u,r,s,h,f,p,d){const m=d||Number.POSITIVE_INFINITY;let x=0;return y;function y(O){return O===60?(n.enter(r),n.enter(s),n.enter(h),n.consume(O),n.exit(h),S):O===null||O===32||O===41||lr(O)?u(O):(n.enter(r),n.enter(f),n.enter(p),n.enter("chunkString",{contentType:"string"}),B(O))}function S(O){return O===62?(n.enter(h),n.consume(O),n.exit(h),n.exit(s),n.exit(r),a):(n.enter(p),n.enter("chunkString",{contentType:"string"}),v(O))}function v(O){return O===62?(n.exit("chunkString"),n.exit(p),S(O)):O===null||O===60||fe(O)?u(O):(n.consume(O),O===92?C:v)}function C(O){return O===60||O===62||O===92?(n.consume(O),v):v(O)}function B(O){return!x&&(O===null||O===41||Xe(O))?(n.exit("chunkString"),n.exit(p),n.exit(f),n.exit(r),a(O)):x<m&&O===40?(n.consume(O),x++,B):O===41?(n.consume(O),x--,B):O===null||O===32||O===40||lr(O)?u(O):(n.consume(O),O===92?Z:B)}function Z(O){return O===40||O===41||O===92?(n.consume(O),B):B(O)}}function ng(n,a,u,r,s,h){const f=this;let p=0,d;return m;function m(v){return n.enter(r),n.enter(s),n.consume(v),n.exit(s),n.enter(h),x}function x(v){return p>999||v===null||v===91||v===93&&!d||v===94&&!p&&"_hiddenFootnoteSupport"in f.parser.constructs?u(v):v===93?(n.exit(h),n.enter(s),n.consume(v),n.exit(s),n.exit(r),a):fe(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===null||v===91||v===93||fe(v)||p++>999?(n.exit("chunkString"),x(v)):(n.consume(v),d||(d=!Ae(v)),v===92?S:y)}function S(v){return v===91||v===92||v===93?(n.consume(v),p++,y):y(v)}}function lg(n,a,u,r,s,h){let f;return p;function p(S){return S===34||S===39||S===40?(n.enter(r),n.enter(s),n.consume(S),n.exit(s),f=S===40?41:S,d):u(S)}function d(S){return S===f?(n.enter(s),n.consume(S),n.exit(s),n.exit(r),a):(n.enter(h),m(S))}function m(S){return S===f?(n.exit(h),d(f)):S===null?u(S):fe(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),De(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(S))}function x(S){return S===f||S===null||fe(S)?(n.exit("chunkString"),m(S)):(n.consume(S),S===92?y:x)}function y(S){return S===f||S===92?(n.consume(S),x):x(S)}}function Ta(n,a){let u;return r;function r(s){return fe(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),u=!0,r):Ae(s)?De(n,r,u?"linePrefix":"lineSuffix")(s):a(s)}}const Yb={name:"definition",tokenize:Xb},Vb={partial:!0,tokenize:Qb};function Xb(n,a,u){const r=this;let s;return h;function h(v){return n.enter("definition"),f(v)}function f(v){return ng.call(r,n,p,u,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function p(v){return s=ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),v===58?(n.enter("definitionMarker"),n.consume(v),n.exit("definitionMarker"),d):u(v)}function d(v){return Xe(v)?Ta(n,m)(v):m(v)}function m(v){return tg(n,x,u,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function x(v){return n.attempt(Vb,y,y)(v)}function y(v){return Ae(v)?De(n,S,"whitespace")(v):S(v)}function S(v){return v===null||fe(v)?(n.exit("definition"),r.parser.defined.push(s),a(v)):u(v)}}function Qb(n,a,u){return r;function r(p){return Xe(p)?Ta(n,s)(p):u(p)}function s(p){return lg(n,h,u,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}function h(p){return Ae(p)?De(n,f,"whitespace")(p):f(p)}function f(p){return p===null||fe(p)?a(p):u(p)}}const Gb={name:"hardBreakEscape",tokenize:Zb};function Zb(n,a,u){return r;function r(h){return n.enter("hardBreakEscape"),n.consume(h),s}function s(h){return fe(h)?(n.exit("hardBreakEscape"),a(h)):u(h)}}const Fb={name:"headingAtx",resolve:Kb,tokenize:Jb};function Kb(n,a){let u=n.length-2,r=3,s,h;return n[r][1].type==="whitespace"&&(r+=2),u-2>r&&n[u][1].type==="whitespace"&&(u-=2),n[u][1].type==="atxHeadingSequence"&&(r===u-1||u-4>r&&n[u-2][1].type==="whitespace")&&(u-=r+1===u?2:4),u>r&&(s={type:"atxHeadingText",start:n[r][1].start,end:n[u][1].end},h={type:"chunkText",start:n[r][1].start,end:n[u][1].end,contentType:"text"},qt(n,r,u-r+1,[["enter",s,a],["enter",h,a],["exit",h,a],["exit",s,a]])),n}function Jb(n,a,u){let r=0;return s;function s(x){return n.enter("atxHeading"),h(x)}function h(x){return n.enter("atxHeadingSequence"),f(x)}function f(x){return x===35&&r++<6?(n.consume(x),f):x===null||Xe(x)?(n.exit("atxHeadingSequence"),p(x)):u(x)}function p(x){return x===35?(n.enter("atxHeadingSequence"),d(x)):x===null||fe(x)?(n.exit("atxHeading"),a(x)):Ae(x)?De(n,p,"whitespace")(x):(n.enter("atxHeadingText"),m(x))}function d(x){return x===35?(n.consume(x),d):(n.exit("atxHeadingSequence"),p(x))}function m(x){return x===null||x===35||Xe(x)?(n.exit("atxHeadingText"),p(x)):(n.consume(x),m)}}const Ib=["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"],tp=["pre","script","style","textarea"],$b={concrete:!0,name:"htmlFlow",resolveTo:ev,tokenize:tv},Wb={partial:!0,tokenize:lv},Pb={partial:!0,tokenize:nv};function ev(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function tv(n,a,u){const r=this;let s,h,f,p,d;return m;function m(k){return x(k)}function x(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),y}function y(k){return k===33?(n.consume(k),S):k===47?(n.consume(k),h=!0,B):k===63?(n.consume(k),s=3,r.interrupt?a:E):bt(k)?(n.consume(k),f=String.fromCharCode(k),Z):u(k)}function S(k){return k===45?(n.consume(k),s=2,v):k===91?(n.consume(k),s=5,p=0,C):bt(k)?(n.consume(k),s=4,r.interrupt?a:E):u(k)}function v(k){return k===45?(n.consume(k),r.interrupt?a:E):u(k)}function C(k){const P="CDATA[";return k===P.charCodeAt(p++)?(n.consume(k),p===P.length?r.interrupt?a:ee:C):u(k)}function B(k){return bt(k)?(n.consume(k),f=String.fromCharCode(k),Z):u(k)}function Z(k){if(k===null||k===47||k===62||Xe(k)){const P=k===47,me=f.toLowerCase();return!P&&!h&&tp.includes(me)?(s=1,r.interrupt?a(k):ee(k)):Ib.includes(f.toLowerCase())?(s=6,P?(n.consume(k),O):r.interrupt?a(k):ee(k)):(s=7,r.interrupt&&!r.parser.lazy[r.now().line]?u(k):h?Q(k):H(k))}return k===45||dt(k)?(n.consume(k),f+=String.fromCharCode(k),Z):u(k)}function O(k){return k===62?(n.consume(k),r.interrupt?a:ee):u(k)}function Q(k){return Ae(k)?(n.consume(k),Q):R(k)}function H(k){return k===47?(n.consume(k),R):k===58||k===95||bt(k)?(n.consume(k),ie):Ae(k)?(n.consume(k),H):R(k)}function ie(k){return k===45||k===46||k===58||k===95||dt(k)?(n.consume(k),ie):ae(k)}function ae(k){return k===61?(n.consume(k),U):Ae(k)?(n.consume(k),ae):H(k)}function U(k){return k===null||k===60||k===61||k===62||k===96?u(k):k===34||k===39?(n.consume(k),d=k,W):Ae(k)?(n.consume(k),U):se(k)}function W(k){return k===d?(n.consume(k),d=null,pe):k===null||fe(k)?u(k):(n.consume(k),W)}function se(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Xe(k)?ae(k):(n.consume(k),se)}function pe(k){return k===47||k===62||Ae(k)?H(k):u(k)}function R(k){return k===62?(n.consume(k),te):u(k)}function te(k){return k===null||fe(k)?ee(k):Ae(k)?(n.consume(k),te):u(k)}function ee(k){return k===45&&s===2?(n.consume(k),M):k===60&&s===1?(n.consume(k),F):k===62&&s===4?(n.consume(k),A):k===63&&s===3?(n.consume(k),E):k===93&&s===5?(n.consume(k),ge):fe(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(Wb,Y,Se)(k)):k===null||fe(k)?(n.exit("htmlFlowData"),Se(k)):(n.consume(k),ee)}function Se(k){return n.check(Pb,ne,Y)(k)}function ne(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),J}function J(k){return k===null||fe(k)?Se(k):(n.enter("htmlFlowData"),ee(k))}function M(k){return k===45?(n.consume(k),E):ee(k)}function F(k){return k===47?(n.consume(k),f="",$):ee(k)}function $(k){if(k===62){const P=f.toLowerCase();return tp.includes(P)?(n.consume(k),A):ee(k)}return bt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),$):ee(k)}function ge(k){return k===93?(n.consume(k),E):ee(k)}function E(k){return k===62?(n.consume(k),A):k===45&&s===2?(n.consume(k),E):ee(k)}function A(k){return k===null||fe(k)?(n.exit("htmlFlowData"),Y(k)):(n.consume(k),A)}function Y(k){return n.exit("htmlFlow"),a(k)}}function nv(n,a,u){const r=this;return s;function s(f){return fe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),h):u(f)}function h(f){return r.parser.lazy[r.now().line]?u(f):a(f)}}function lv(n,a,u){return r;function r(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(_a,a,u)}}const iv={name:"htmlText",tokenize:av};function av(n,a,u){const r=this;let s,h,f;return p;function p(E){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(E),d}function d(E){return E===33?(n.consume(E),m):E===47?(n.consume(E),ae):E===63?(n.consume(E),H):bt(E)?(n.consume(E),se):u(E)}function m(E){return E===45?(n.consume(E),x):E===91?(n.consume(E),h=0,C):bt(E)?(n.consume(E),Q):u(E)}function x(E){return E===45?(n.consume(E),v):u(E)}function y(E){return E===null?u(E):E===45?(n.consume(E),S):fe(E)?(f=y,F(E)):(n.consume(E),y)}function S(E){return E===45?(n.consume(E),v):y(E)}function v(E){return E===62?M(E):E===45?S(E):y(E)}function C(E){const A="CDATA[";return E===A.charCodeAt(h++)?(n.consume(E),h===A.length?B:C):u(E)}function B(E){return E===null?u(E):E===93?(n.consume(E),Z):fe(E)?(f=B,F(E)):(n.consume(E),B)}function Z(E){return E===93?(n.consume(E),O):B(E)}function O(E){return E===62?M(E):E===93?(n.consume(E),O):B(E)}function Q(E){return E===null||E===62?M(E):fe(E)?(f=Q,F(E)):(n.consume(E),Q)}function H(E){return E===null?u(E):E===63?(n.consume(E),ie):fe(E)?(f=H,F(E)):(n.consume(E),H)}function ie(E){return E===62?M(E):H(E)}function ae(E){return bt(E)?(n.consume(E),U):u(E)}function U(E){return E===45||dt(E)?(n.consume(E),U):W(E)}function W(E){return fe(E)?(f=W,F(E)):Ae(E)?(n.consume(E),W):M(E)}function se(E){return E===45||dt(E)?(n.consume(E),se):E===47||E===62||Xe(E)?pe(E):u(E)}function pe(E){return E===47?(n.consume(E),M):E===58||E===95||bt(E)?(n.consume(E),R):fe(E)?(f=pe,F(E)):Ae(E)?(n.consume(E),pe):M(E)}function R(E){return E===45||E===46||E===58||E===95||dt(E)?(n.consume(E),R):te(E)}function te(E){return E===61?(n.consume(E),ee):fe(E)?(f=te,F(E)):Ae(E)?(n.consume(E),te):pe(E)}function ee(E){return E===null||E===60||E===61||E===62||E===96?u(E):E===34||E===39?(n.consume(E),s=E,Se):fe(E)?(f=ee,F(E)):Ae(E)?(n.consume(E),ee):(n.consume(E),ne)}function Se(E){return E===s?(n.consume(E),s=void 0,J):E===null?u(E):fe(E)?(f=Se,F(E)):(n.consume(E),Se)}function ne(E){return E===null||E===34||E===39||E===60||E===61||E===96?u(E):E===47||E===62||Xe(E)?pe(E):(n.consume(E),ne)}function J(E){return E===47||E===62||Xe(E)?pe(E):u(E)}function M(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),a):u(E)}function F(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),$}function $(E){return Ae(E)?De(n,ge,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ge(E)}function ge(E){return n.enter("htmlTextData"),f(E)}}const bs={name:"labelEnd",resolveAll:cv,resolveTo:sv,tokenize:fv},uv={tokenize:hv},rv={tokenize:mv},ov={tokenize:dv};function cv(n){let a=-1;const u=[];for(;++a<n.length;){const r=n[a][1];if(u.push(n[a]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const s=r.type==="labelImage"?4:2;r.type="data",a+=s}}return n.length!==u.length&&qt(n,0,n.length,u),n}function sv(n,a){let u=n.length,r=0,s,h,f,p;for(;u--;)if(s=n[u][1],h){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[u][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(n[u][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(h=u,s.type!=="labelLink")){r=2;break}}else s.type==="labelEnd"&&(f=u);const d={type:n[h][1].type==="labelLink"?"link":"image",start:{...n[h][1].start},end:{...n[n.length-1][1].end}},m={type:"label",start:{...n[h][1].start},end:{...n[f][1].end}},x={type:"labelText",start:{...n[h+r+2][1].end},end:{...n[f-2][1].start}};return p=[["enter",d,a],["enter",m,a]],p=Wt(p,n.slice(h+1,h+r+3)),p=Wt(p,[["enter",x,a]]),p=Wt(p,or(a.parser.constructs.insideSpan.null,n.slice(h+r+4,f-3),a)),p=Wt(p,[["exit",x,a],n[f-2],n[f-1],["exit",m,a]]),p=Wt(p,n.slice(f+1)),p=Wt(p,[["exit",d,a]]),qt(n,h,n.length,p),n}function fv(n,a,u){const r=this;let s=r.events.length,h,f;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){h=r.events[s][1];break}return p;function p(S){return h?h._inactive?y(S):(f=r.parser.defined.includes(ln(r.sliceSerialize({start:h.end,end:r.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(S),n.exit("labelMarker"),n.exit("labelEnd"),d):u(S)}function d(S){return S===40?n.attempt(uv,x,f?x:y)(S):S===91?n.attempt(rv,x,f?m:y)(S):f?x(S):y(S)}function m(S){return n.attempt(ov,x,y)(S)}function x(S){return a(S)}function y(S){return h._balanced=!0,u(S)}}function hv(n,a,u){return r;function r(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),s}function s(y){return Xe(y)?Ta(n,h)(y):h(y)}function h(y){return y===41?x(y):tg(n,f,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return Xe(y)?Ta(n,d)(y):x(y)}function p(y){return u(y)}function d(y){return y===34||y===39||y===40?lg(n,m,u,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):x(y)}function m(y){return Xe(y)?Ta(n,x)(y):x(y)}function x(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),a):u(y)}}function mv(n,a,u){const r=this;return s;function s(p){return ng.call(r,n,h,f,"reference","referenceMarker","referenceString")(p)}function h(p){return r.parser.defined.includes(ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?a(p):u(p)}function f(p){return u(p)}}function dv(n,a,u){return r;function r(h){return n.enter("reference"),n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),s}function s(h){return h===93?(n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),n.exit("reference"),a):u(h)}}const pv={name:"labelStartImage",resolveAll:bs.resolveAll,tokenize:gv};function gv(n,a,u){const r=this;return s;function s(p){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(p),n.exit("labelImageMarker"),h}function h(p){return p===91?(n.enter("labelMarker"),n.consume(p),n.exit("labelMarker"),n.exit("labelImage"),f):u(p)}function f(p){return p===94&&"_hiddenFootnoteSupport"in r.parser.constructs?u(p):a(p)}}const yv={name:"labelStartLink",resolveAll:bs.resolveAll,tokenize:xv};function xv(n,a,u){const r=this;return s;function s(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),h}function h(f){return f===94&&"_hiddenFootnoteSupport"in r.parser.constructs?u(f):a(f)}}const Hc={name:"lineEnding",tokenize:bv};function bv(n,a){return u;function u(r){return n.enter("lineEnding"),n.consume(r),n.exit("lineEnding"),De(n,a,"linePrefix")}}const tr={name:"thematicBreak",tokenize:vv};function vv(n,a,u){let r=0,s;return h;function h(m){return n.enter("thematicBreak"),f(m)}function f(m){return s=m,p(m)}function p(m){return m===s?(n.enter("thematicBreakSequence"),d(m)):r>=3&&(m===null||fe(m))?(n.exit("thematicBreak"),a(m)):u(m)}function d(m){return m===s?(n.consume(m),r++,d):(n.exit("thematicBreakSequence"),Ae(m)?De(n,p,"whitespace")(m):p(m))}}const _t={continuation:{tokenize:Tv},exit:zv,name:"list",tokenize:Ev},Sv={partial:!0,tokenize:Cv},kv={partial:!0,tokenize:Av};function Ev(n,a,u){const r=this,s=r.events[r.events.length-1];let h=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return p;function p(v){const C=r.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!r.containerState.marker||v===r.containerState.marker:ns(v)){if(r.containerState.type||(r.containerState.type=C,n.enter(C,{_container:!0})),C==="listUnordered")return n.enter("listItemPrefix"),v===42||v===45?n.check(tr,u,m)(v):m(v);if(!r.interrupt||v===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),d(v)}return u(v)}function d(v){return ns(v)&&++f<10?(n.consume(v),d):(!r.interrupt||f<2)&&(r.containerState.marker?v===r.containerState.marker:v===41||v===46)?(n.exit("listItemValue"),m(v)):u(v)}function m(v){return n.enter("listItemMarker"),n.consume(v),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||v,n.check(_a,r.interrupt?u:x,n.attempt(Sv,S,y))}function x(v){return r.containerState.initialBlankLine=!0,h++,S(v)}function y(v){return Ae(v)?(n.enter("listItemPrefixWhitespace"),n.consume(v),n.exit("listItemPrefixWhitespace"),S):u(v)}function S(v){return r.containerState.size=h+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(v)}}function Tv(n,a,u){const r=this;return r.containerState._closeFlow=void 0,n.check(_a,s,h);function s(p){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,De(n,a,"listItemIndent",r.containerState.size+1)(p)}function h(p){return r.containerState.furtherBlankLines||!Ae(p)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,f(p)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(kv,a,f)(p))}function f(p){return r.containerState._closeFlow=!0,r.interrupt=void 0,De(n,n.attempt(_t,a,u),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function Av(n,a,u){const r=this;return De(n,s,"listItemIndent",r.containerState.size+1);function s(h){const f=r.events[r.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===r.containerState.size?a(h):u(h)}}function zv(n){n.exit(this.containerState.type)}function Cv(n,a,u){const r=this;return De(n,s,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(h){const f=r.events[r.events.length-1];return!Ae(h)&&f&&f[1].type==="listItemPrefixWhitespace"?a(h):u(h)}}const np={name:"setextUnderline",resolveTo:wv,tokenize:_v};function wv(n,a){let u=n.length,r,s,h;for(;u--;)if(n[u][0]==="enter"){if(n[u][1].type==="content"){r=u;break}n[u][1].type==="paragraph"&&(s=u)}else n[u][1].type==="content"&&n.splice(u,1),!h&&n[u][1].type==="definition"&&(h=u);const f={type:"setextHeading",start:{...n[r][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",h?(n.splice(s,0,["enter",f,a]),n.splice(h+1,0,["exit",n[r][1],a]),n[r][1].end={...n[h][1].end}):n[r][1]=f,n.push(["exit",f,a]),n}function _v(n,a,u){const r=this;let s;return h;function h(m){let x=r.events.length,y;for(;x--;)if(r.events[x][1].type!=="lineEnding"&&r.events[x][1].type!=="linePrefix"&&r.events[x][1].type!=="content"){y=r.events[x][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||y)?(n.enter("setextHeadingLine"),s=m,f(m)):u(m)}function f(m){return n.enter("setextHeadingLineSequence"),p(m)}function p(m){return m===s?(n.consume(m),p):(n.exit("setextHeadingLineSequence"),Ae(m)?De(n,d,"lineSuffix")(m):d(m))}function d(m){return m===null||fe(m)?(n.exit("setextHeadingLine"),a(m)):u(m)}}const Dv={tokenize:Ov};function Ov(n){const a=this,u=n.attempt(_a,r,n.attempt(this.parser.constructs.flowInitial,s,De(n,n.attempt(this.parser.constructs.flow,s,n.attempt(Lb,s)),"linePrefix")));return u;function r(h){if(h===null){n.consume(h);return}return n.enter("lineEndingBlank"),n.consume(h),n.exit("lineEndingBlank"),a.currentConstruct=void 0,u}function s(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),a.currentConstruct=void 0,u}}const Mv={resolveAll:ag()},Nv=ig("string"),Rv=ig("text");function ig(n){return{resolveAll:ag(n==="text"?jv:void 0),tokenize:a};function a(u){const r=this,s=this.parser.constructs[n],h=u.attempt(s,f,p);return f;function f(x){return m(x)?h(x):p(x)}function p(x){if(x===null){u.consume(x);return}return u.enter("data"),u.consume(x),d}function d(x){return m(x)?(u.exit("data"),h(x)):(u.consume(x),d)}function m(x){if(x===null)return!0;const y=s[x];let S=-1;if(y)for(;++S<y.length;){const v=y[S];if(!v.previous||v.previous.call(r,r.previous))return!0}return!1}}}function ag(n){return a;function a(u,r){let s=-1,h;for(;++s<=u.length;)h===void 0?u[s]&&u[s][1].type==="data"&&(h=s,s++):(!u[s]||u[s][1].type!=="data")&&(s!==h+2&&(u[h][1].end=u[s-1][1].end,u.splice(h+2,s-h-2),s=h+2),h=void 0);return n?n(u,r):u}}function jv(n,a){let u=0;for(;++u<=n.length;)if((u===n.length||n[u][1].type==="lineEnding")&&n[u-1][1].type==="data"){const r=n[u-1][1],s=a.sliceStream(r);let h=s.length,f=-1,p=0,d;for(;h--;){const m=s[h];if(typeof m=="string"){for(f=m.length;m.charCodeAt(f-1)===32;)p++,f--;if(f)break;f=-1}else if(m===-2)d=!0,p++;else if(m!==-1){h++;break}}if(a._contentTypeTextTrailing&&u===n.length&&(p=0),p){const m={type:u===n.length||d||p<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:h?f:r.start._bufferIndex+f,_index:r.start._index+h,line:r.end.line,column:r.end.column-p,offset:r.end.offset-p},end:{...r.end}};r.end={...m.start},r.start.offset===r.end.offset?Object.assign(r,m):(n.splice(u,0,["enter",m,a],["exit",m,a]),u+=2)}u++}return n}const Lv={42:_t,43:_t,45:_t,48:_t,49:_t,50:_t,51:_t,52:_t,53:_t,54:_t,55:_t,56:_t,57:_t,62:$p},Uv={91:Yb},Bv={[-2]:Bc,[-1]:Bc,32:Bc},Hv={35:Fb,42:tr,45:[np,tr],60:$b,61:np,95:tr,96:ep,126:ep},qv={38:Pp,92:Wp},Yv={[-5]:Hc,[-4]:Hc,[-3]:Hc,33:pv,38:Pp,42:ls,60:[yb,iv],91:yv,92:[Gb,Wp],93:bs,95:ls,96:Db},Vv={null:[ls,Mv]},Xv={null:[42,95]},Qv={null:[]},Gv=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Xv,contentInitial:Uv,disable:Qv,document:Lv,flow:Hv,flowInitial:Bv,insideSpan:Vv,string:qv,text:Yv},Symbol.toStringTag,{value:"Module"}));function Zv(n,a,u){let r={_bufferIndex:-1,_index:0,line:u&&u.line||1,column:u&&u.column||1,offset:u&&u.offset||0};const s={},h=[];let f=[],p=[];const d={attempt:W(ae),check:W(U),consume:Q,enter:H,exit:ie,interrupt:W(U,{interrupt:!0})},m={code:null,containerState:{},defineSkip:B,events:[],now:C,parser:n,previous:null,sliceSerialize:S,sliceStream:v,write:y};let x=a.tokenize.call(m,d);return a.resolveAll&&h.push(a),m;function y(te){return f=Wt(f,te),Z(),f[f.length-1]!==null?[]:(se(a,0),m.events=or(h,m.events,m),m.events)}function S(te,ee){return Kv(v(te),ee)}function v(te){return Fv(f,te)}function C(){const{_bufferIndex:te,_index:ee,line:Se,column:ne,offset:J}=r;return{_bufferIndex:te,_index:ee,line:Se,column:ne,offset:J}}function B(te){s[te.line]=te.column,R()}function Z(){let te;for(;r._index<f.length;){const ee=f[r._index];if(typeof ee=="string")for(te=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===te&&r._bufferIndex<ee.length;)O(ee.charCodeAt(r._bufferIndex));else O(ee)}}function O(te){x=x(te)}function Q(te){fe(te)?(r.line++,r.column=1,r.offset+=te===-3?2:1,R()):te!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===f[r._index].length&&(r._bufferIndex=-1,r._index++)),m.previous=te}function H(te,ee){const Se=ee||{};return Se.type=te,Se.start=C(),m.events.push(["enter",Se,m]),p.push(Se),Se}function ie(te){const ee=p.pop();return ee.end=C(),m.events.push(["exit",ee,m]),ee}function ae(te,ee){se(te,ee.from)}function U(te,ee){ee.restore()}function W(te,ee){return Se;function Se(ne,J,M){let F,$,ge,E;return Array.isArray(ne)?Y(ne):"tokenize"in ne?Y([ne]):A(ne);function A(re){return ze;function ze(Fe){const Ue=Fe!==null&&re[Fe],Yt=Fe!==null&&re.null,fn=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(Yt)?Yt:Yt?[Yt]:[]];return Y(fn)(Fe)}}function Y(re){return F=re,$=0,re.length===0?M:k(re[$])}function k(re){return ze;function ze(Fe){return E=pe(),ge=re,re.partial||(m.currentConstruct=re),re.name&&m.parser.constructs.disable.null.includes(re.name)?me():re.tokenize.call(ee?Object.assign(Object.create(m),ee):m,d,P,me)(Fe)}}function P(re){return te(ge,E),J}function me(re){return E.restore(),++$<F.length?k(F[$]):M}}}function se(te,ee){te.resolveAll&&!h.includes(te)&&h.push(te),te.resolve&&qt(m.events,ee,m.events.length-ee,te.resolve(m.events.slice(ee),m)),te.resolveTo&&(m.events=te.resolveTo(m.events,m))}function pe(){const te=C(),ee=m.previous,Se=m.currentConstruct,ne=m.events.length,J=Array.from(p);return{from:ne,restore:M};function M(){r=te,m.previous=ee,m.currentConstruct=Se,m.events.length=ne,p=J,R()}}function R(){r.line in s&&r.column<2&&(r.column=s[r.line],r.offset+=s[r.line]-1)}}function Fv(n,a){const u=a.start._index,r=a.start._bufferIndex,s=a.end._index,h=a.end._bufferIndex;let f;if(u===s)f=[n[u].slice(r,h)];else{if(f=n.slice(u,s),r>-1){const p=f[0];typeof p=="string"?f[0]=p.slice(r):f.shift()}h>0&&f.push(n[s].slice(0,h))}return f}function Kv(n,a){let u=-1;const r=[];let s;for(;++u<n.length;){const h=n[u];let f;if(typeof h=="string")f=h;else switch(h){case-5:{f="\r";break}case-4:{f=`
167
- `;break}case-3:{f=`\r
168
- `;break}case-2:{f=a?" ":" ";break}case-1:{if(!a&&s)continue;f=" ";break}default:f=String.fromCharCode(h)}s=h===-2,r.push(f)}return r.join("")}function Jv(n){const r={constructs:Jp([Gv,...(n||{}).extensions||[]]),content:s(sb),defined:[],document:s(hb),flow:s(Dv),lazy:{},string:s(Nv),text:s(Rv)};return r;function s(h){return f;function f(p){return Zv(r,h,p)}}}function Iv(n){for(;!eg(n););return n}const lp=/[\0\t\n\r]/g;function $v(){let n=1,a="",u=!0,r;return s;function s(h,f,p){const d=[];let m,x,y,S,v;for(h=a+(typeof h=="string"?h.toString():new TextDecoder(f||void 0).decode(h)),y=0,a="",u&&(h.charCodeAt(0)===65279&&y++,u=void 0);y<h.length;){if(lp.lastIndex=y,m=lp.exec(h),S=m&&m.index!==void 0?m.index:h.length,v=h.charCodeAt(S),!m){a=h.slice(y);break}if(v===10&&y===S&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),y<S&&(d.push(h.slice(y,S)),n+=S-y),v){case 0:{d.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,d.push(-2);n++<x;)d.push(-1);break}case 10:{d.push(-4),n=1;break}default:r=!0,n=1}y=S+1}return p&&(r&&d.push(-5),a&&d.push(a),d.push(null)),d}}const Wv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pv(n){return n.replace(Wv,eS)}function eS(n,a,u){if(a)return a;if(u.charCodeAt(0)===35){const s=u.charCodeAt(1),h=s===120||s===88;return Ip(u.slice(h?2:1),h?16:10)}return xs(u)||n}const ug={}.hasOwnProperty;function tS(n,a,u){return a&&typeof a=="object"&&(u=a,a=void 0),nS(u)(Iv(Jv(u).document().write($v()(n,a,!0))))}function nS(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(Dl),autolinkProtocol:pe,autolinkEmail:pe,atxHeading:h(wl),blockQuote:h(Yt),characterEscape:pe,characterReference:pe,codeFenced:h(fn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:h(fn,f),codeText:h(Ti,f),codeTextData:pe,data:pe,codeFlowValue:pe,definition:h(Oa),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:h(hn),hardBreakEscape:h(_l),hardBreakTrailing:h(_l),htmlFlow:h(Ma,f),htmlFlowData:pe,htmlText:h(Ma,f),htmlTextData:pe,image:h(Na),label:f,link:h(Dl),listItem:h(Ai),listItemValue:S,listOrdered:h(Ol,y),listUnordered:h(Ol),paragraph:h(hr),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:h(wl),strong:h(mr),thematicBreak:h(dr)},exit:{atxHeading:d(),atxHeadingSequence:ae,autolink:d(),autolinkEmail:Ue,autolinkProtocol:Fe,blockQuote:d(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:re,characterReference:ze,codeFenced:d(Z),codeFencedFence:B,codeFencedFenceInfo:v,codeFencedFenceMeta:C,codeFlowValue:R,codeIndented:d(O),codeText:d(J),codeTextData:R,data:R,definition:d(),definitionDestinationString:ie,definitionLabelString:Q,definitionTitleString:H,emphasis:d(),hardBreakEscape:d(ee),hardBreakTrailing:d(ee),htmlFlow:d(Se),htmlFlowData:R,htmlText:d(ne),htmlTextData:R,image:d(F),label:ge,labelText:$,lineEnding:te,link:d(M),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:P,resourceDestinationString:E,resourceTitleString:A,resource:Y,setextHeading:d(se),setextHeadingLineSequence:W,setextHeadingText:U,strong:d(),thematicBreak:d()}};rg(a,(n||{}).mdastExtensions||[]);const u={};return r;function r(V){let I={type:"root",children:[]};const de={stack:[I],tokenStack:[],config:a,enter:p,exit:m,buffer:f,resume:x,data:u},ke=[];let Re=-1;for(;++Re<V.length;)if(V[Re][1].type==="listOrdered"||V[Re][1].type==="listUnordered")if(V[Re][0]==="enter")ke.push(Re);else{const Ot=ke.pop();Re=s(V,Ot,Re)}for(Re=-1;++Re<V.length;){const Ot=a[V[Re][0]];ug.call(Ot,V[Re][1].type)&&Ot[V[Re][1].type].call(Object.assign({sliceSerialize:V[Re][2].sliceSerialize},de),V[Re][1])}if(de.tokenStack.length>0){const Ot=de.tokenStack[de.tokenStack.length-1];(Ot[1]||ip).call(de,void 0,Ot[0])}for(I.position={start:al(V.length>0?V[0][1].start:{line:1,column:1,offset:0}),end:al(V.length>0?V[V.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<a.transforms.length;)I=a.transforms[Re](I)||I;return I}function s(V,I,de){let ke=I-1,Re=-1,Ot=!1,mn,yt,it,St;for(;++ke<=de;){const Ye=V[ke];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?Re++:Re--,St=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(mn&&!St&&!Re&&!it&&(it=ke),St=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:St=void 0}if(!Re&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||Re===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(mn){let Nn=ke;for(yt=void 0;Nn--;){const Pt=V[Nn];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;yt&&(V[yt][1].type="lineEndingBlank",Ot=!0),Pt[1].type="lineEnding",yt=Nn}else if(!(Pt[1].type==="linePrefix"||Pt[1].type==="blockQuotePrefix"||Pt[1].type==="blockQuotePrefixWhitespace"||Pt[1].type==="blockQuoteMarker"||Pt[1].type==="listItemIndent"))break}it&&(!yt||it<yt)&&(mn._spread=!0),mn.end=Object.assign({},yt?V[yt][1].start:Ye[1].end),V.splice(yt||ke,0,["exit",mn,Ye[2]]),ke++,de++}if(Ye[1].type==="listItemPrefix"){const Nn={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};mn=Nn,V.splice(ke,0,["enter",Nn,Ye[2]]),ke++,de++,it=void 0,St=!0}}}return V[I][1]._spread=Ot,de}function h(V,I){return de;function de(ke){p.call(this,V(ke),ke),I&&I.call(this,ke)}}function f(){this.stack.push({type:"fragment",children:[]})}function p(V,I,de){this.stack[this.stack.length-1].children.push(V),this.stack.push(V),this.tokenStack.push([I,de||void 0]),V.position={start:al(I.start),end:void 0}}function d(V){return I;function I(de){V&&V.call(this,de),m.call(this,de)}}function m(V,I){const de=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==V.type&&(I?I.call(this,V,ke[0]):(ke[1]||ip).call(this,V,ke[0]));else throw new Error("Cannot close `"+V.type+"` ("+Ea({start:V.start,end:V.end})+"): it’s not open");de.position.end=al(V.end)}function x(){return ys(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function S(V){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(V),10),this.data.expectingFirstListItemValue=void 0}}function v(){const V=this.resume(),I=this.stack[this.stack.length-1];I.lang=V}function C(){const V=this.resume(),I=this.stack[this.stack.length-1];I.meta=V}function B(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Z(){const V=this.resume(),I=this.stack[this.stack.length-1];I.value=V.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const V=this.resume(),I=this.stack[this.stack.length-1];I.value=V.replace(/(\r?\n|\r)$/g,"")}function Q(V){const I=this.resume(),de=this.stack[this.stack.length-1];de.label=I,de.identifier=ln(this.sliceSerialize(V)).toLowerCase()}function H(){const V=this.resume(),I=this.stack[this.stack.length-1];I.title=V}function ie(){const V=this.resume(),I=this.stack[this.stack.length-1];I.url=V}function ae(V){const I=this.stack[this.stack.length-1];if(!I.depth){const de=this.sliceSerialize(V).length;I.depth=de}}function U(){this.data.setextHeadingSlurpLineEnding=!0}function W(V){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(V).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function pe(V){const de=this.stack[this.stack.length-1].children;let ke=de[de.length-1];(!ke||ke.type!=="text")&&(ke=gt(),ke.position={start:al(V.start),end:void 0},de.push(ke)),this.stack.push(ke)}function R(V){const I=this.stack.pop();I.value+=this.sliceSerialize(V),I.position.end=al(V.end)}function te(V){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=I.children[I.children.length-1];de.position.end=al(V.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(I.type)&&(pe.call(this,V),R.call(this,V))}function ee(){this.data.atHardBreak=!0}function Se(){const V=this.resume(),I=this.stack[this.stack.length-1];I.value=V}function ne(){const V=this.resume(),I=this.stack[this.stack.length-1];I.value=V}function J(){const V=this.resume(),I=this.stack[this.stack.length-1];I.value=V}function M(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=I,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function F(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=I,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function $(V){const I=this.sliceSerialize(V),de=this.stack[this.stack.length-2];de.label=Pv(I),de.identifier=ln(I).toLowerCase()}function ge(){const V=this.stack[this.stack.length-1],I=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const ke=V.children;de.children=ke}else de.alt=I}function E(){const V=this.resume(),I=this.stack[this.stack.length-1];I.url=V}function A(){const V=this.resume(),I=this.stack[this.stack.length-1];I.title=V}function Y(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function P(V){const I=this.resume(),de=this.stack[this.stack.length-1];de.label=I,de.identifier=ln(this.sliceSerialize(V)).toLowerCase(),this.data.referenceType="full"}function me(V){this.data.characterReferenceType=V.type}function re(V){const I=this.sliceSerialize(V),de=this.data.characterReferenceType;let ke;de?(ke=Ip(I,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=xs(I);const Re=this.stack[this.stack.length-1];Re.value+=ke}function ze(V){const I=this.stack.pop();I.position.end=al(V.end)}function Fe(V){R.call(this,V);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(V)}function Ue(V){R.call(this,V);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(V)}function Yt(){return{type:"blockquote",children:[]}}function fn(){return{type:"code",lang:null,meta:null,value:""}}function Ti(){return{type:"inlineCode",value:""}}function Oa(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function hn(){return{type:"emphasis",children:[]}}function wl(){return{type:"heading",depth:0,children:[]}}function _l(){return{type:"break"}}function Ma(){return{type:"html",value:""}}function Na(){return{type:"image",title:null,url:"",alt:null}}function Dl(){return{type:"link",title:null,url:"",children:[]}}function Ol(V){return{type:"list",ordered:V.type==="listOrdered",start:null,spread:V._spread,children:[]}}function Ai(V){return{type:"listItem",spread:V._spread,checked:null,children:[]}}function hr(){return{type:"paragraph",children:[]}}function mr(){return{type:"strong",children:[]}}function gt(){return{type:"text",value:""}}function dr(){return{type:"thematicBreak"}}}function al(n){return{line:n.line,column:n.column,offset:n.offset}}function rg(n,a){let u=-1;for(;++u<a.length;){const r=a[u];Array.isArray(r)?rg(n,r):lS(n,r)}}function lS(n,a){let u;for(u in a)if(ug.call(a,u))switch(u){case"canContainEols":{const r=a[u];r&&n[u].push(...r);break}case"transforms":{const r=a[u];r&&n[u].push(...r);break}case"enter":case"exit":{const r=a[u];r&&Object.assign(n[u],r);break}}}function ip(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Ea({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Ea({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Ea({start:a.start,end:a.end})+") is still open")}function iS(n){const a=this;a.parser=u;function u(r){return tS(r,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function aS(n,a){const u={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,u),n.applyData(a,u)}function uS(n,a){const u={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,u),[n.applyData(a,u),{type:"text",value:`
169
- `}]}function rS(n,a){const u=a.value?a.value+`
170
- `:"",r={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(r.className=["language-"+s[0]]);let h={type:"element",tagName:"code",properties:r,children:[{type:"text",value:u}]};return a.meta&&(h.data={meta:a.meta}),n.patch(a,h),h=n.applyData(a,h),h={type:"element",tagName:"pre",properties:{},children:[h]},n.patch(a,h),h}function oS(n,a){const u={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function cS(n,a){const u={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function sS(n,a){const u=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=String(a.identifier).toUpperCase(),s=Ei(r.toLowerCase()),h=n.footnoteOrder.indexOf(r);let f,p=n.footnoteCounts.get(r);p===void 0?(p=0,n.footnoteOrder.push(r),f=n.footnoteOrder.length):f=h+1,p+=1,n.footnoteCounts.set(r,p);const d={type:"element",tagName:"a",properties:{href:"#"+u+"fn-"+s,id:u+"fnref-"+s+(p>1?"-"+p:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(a,d);const m={type:"element",tagName:"sup",properties:{},children:[d]};return n.patch(a,m),n.applyData(a,m)}function fS(n,a){const u={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function hS(n,a){if(n.options.allowDangerousHtml){const u={type:"raw",value:a.value};return n.patch(a,u),n.applyData(a,u)}}function og(n,a){const u=a.referenceType;let r="]";if(u==="collapsed"?r+="[]":u==="full"&&(r+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+r}];const s=n.all(a),h=s[0];h&&h.type==="text"?h.value="["+h.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=r:s.push({type:"text",value:r}),s}function mS(n,a){const u=String(a.identifier).toUpperCase(),r=n.definitionById.get(u);if(!r)return og(n,a);const s={src:Ei(r.url||""),alt:a.alt};r.title!==null&&r.title!==void 0&&(s.title=r.title);const h={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,h),n.applyData(a,h)}function dS(n,a){const u={src:Ei(a.url)};a.alt!==null&&a.alt!==void 0&&(u.alt=a.alt),a.title!==null&&a.title!==void 0&&(u.title=a.title);const r={type:"element",tagName:"img",properties:u,children:[]};return n.patch(a,r),n.applyData(a,r)}function pS(n,a){const u={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,u);const r={type:"element",tagName:"code",properties:{},children:[u]};return n.patch(a,r),n.applyData(a,r)}function gS(n,a){const u=String(a.identifier).toUpperCase(),r=n.definitionById.get(u);if(!r)return og(n,a);const s={href:Ei(r.url||"")};r.title!==null&&r.title!==void 0&&(s.title=r.title);const h={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,h),n.applyData(a,h)}function yS(n,a){const u={href:Ei(a.url)};a.title!==null&&a.title!==void 0&&(u.title=a.title);const r={type:"element",tagName:"a",properties:u,children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function xS(n,a,u){const r=n.all(a),s=u?bS(u):cg(a),h={},f=[];if(typeof a.checked=="boolean"){const x=r[0];let y;x&&x.type==="element"&&x.tagName==="p"?y=x:(y={type:"element",tagName:"p",properties:{},children:[]},r.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),h.className=["task-list-item"]}let p=-1;for(;++p<r.length;){const x=r[p];(s||p!==0||x.type!=="element"||x.tagName!=="p")&&f.push({type:"text",value:`
171
- `}),x.type==="element"&&x.tagName==="p"&&!s?f.push(...x.children):f.push(x)}const d=r[r.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&f.push({type:"text",value:`
172
- `});const m={type:"element",tagName:"li",properties:h,children:f};return n.patch(a,m),n.applyData(a,m)}function bS(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const u=n.children;let r=-1;for(;!a&&++r<u.length;)a=cg(u[r])}return a}function cg(n){const a=n.spread;return a??n.children.length>1}function vS(n,a){const u={},r=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(u.start=a.start);++s<r.length;){const f=r[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){u.className=["contains-task-list"];break}}const h={type:"element",tagName:a.ordered?"ol":"ul",properties:u,children:n.wrap(r,!0)};return n.patch(a,h),n.applyData(a,h)}function SS(n,a){const u={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function kS(n,a){const u={type:"root",children:n.wrap(n.all(a))};return n.patch(a,u),n.applyData(a,u)}function ES(n,a){const u={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function TS(n,a){const u=n.all(a),r=u.shift(),s=[];if(r){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([r],!0)};n.patch(a.children[0],f),s.push(f)}if(u.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(u,!0)},p=ms(a.children[1]),d=Vp(a.children[a.children.length-1]);p&&d&&(f.position={start:p,end:d}),s.push(f)}const h={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(a,h),n.applyData(a,h)}function AS(n,a,u){const r=u?u.children:void 0,h=(r?r.indexOf(a):1)===0?"th":"td",f=u&&u.type==="table"?u.align:void 0,p=f?f.length:a.children.length;let d=-1;const m=[];for(;++d<p;){const y=a.children[d],S={},v=f?f[d]:void 0;v&&(S.align=v);let C={type:"element",tagName:h,properties:S,children:[]};y&&(C.children=n.all(y),n.patch(y,C),C=n.applyData(y,C)),m.push(C)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(a,x),n.applyData(a,x)}function zS(n,a){const u={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}const ap=9,up=32;function CS(n){const a=String(n),u=/\r?\n|\r/g;let r=u.exec(a),s=0;const h=[];for(;r;)h.push(rp(a.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=u.exec(a);return h.push(rp(a.slice(s),s>0,!1)),h.join("")}function rp(n,a,u){let r=0,s=n.length;if(a){let h=n.codePointAt(r);for(;h===ap||h===up;)r++,h=n.codePointAt(r)}if(u){let h=n.codePointAt(s-1);for(;h===ap||h===up;)s--,h=n.codePointAt(s-1)}return s>r?n.slice(r,s):""}function wS(n,a){const u={type:"text",value:CS(String(a.value))};return n.patch(a,u),n.applyData(a,u)}function _S(n,a){const u={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,u),n.applyData(a,u)}const DS={blockquote:aS,break:uS,code:rS,delete:oS,emphasis:cS,footnoteReference:sS,heading:fS,html:hS,imageReference:mS,image:dS,inlineCode:pS,linkReference:gS,link:yS,listItem:xS,list:vS,paragraph:SS,root:kS,strong:ES,table:TS,tableCell:zS,tableRow:AS,text:wS,thematicBreak:_S,toml:$u,yaml:$u,definition:$u,footnoteDefinition:$u};function $u(){}const sg=-1,cr=0,Aa=1,ir=2,vs=3,Ss=4,ks=5,Es=6,fg=7,hg=8,op=typeof self=="object"?self:globalThis,OS=(n,a)=>{const u=(s,h)=>(n.set(h,s),s),r=s=>{if(n.has(s))return n.get(s);const[h,f]=a[s];switch(h){case cr:case sg:return u(f,s);case Aa:{const p=u([],s);for(const d of f)p.push(r(d));return p}case ir:{const p=u({},s);for(const[d,m]of f)p[r(d)]=r(m);return p}case vs:return u(new Date(f),s);case Ss:{const{source:p,flags:d}=f;return u(new RegExp(p,d),s)}case ks:{const p=u(new Map,s);for(const[d,m]of f)p.set(r(d),r(m));return p}case Es:{const p=u(new Set,s);for(const d of f)p.add(r(d));return p}case fg:{const{name:p,message:d}=f;return u(new op[p](d),s)}case hg:return u(BigInt(f),s);case"BigInt":return u(Object(BigInt(f)),s);case"ArrayBuffer":return u(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:p}=new Uint8Array(f);return u(new DataView(p),f)}}return u(new op[h](f),s)};return r},cp=n=>OS(new Map,n)(0),yi="",{toString:MS}={},{keys:NS}=Object,ka=n=>{const a=typeof n;if(a!=="object"||!n)return[cr,a];const u=MS.call(n).slice(8,-1);switch(u){case"Array":return[Aa,yi];case"Object":return[ir,yi];case"Date":return[vs,yi];case"RegExp":return[Ss,yi];case"Map":return[ks,yi];case"Set":return[Es,yi];case"DataView":return[Aa,u]}return u.includes("Array")?[Aa,u]:u.includes("Error")?[fg,u]:[ir,u]},Wu=([n,a])=>n===cr&&(a==="function"||a==="symbol"),RS=(n,a,u,r)=>{const s=(f,p)=>{const d=r.push(f)-1;return u.set(p,d),d},h=f=>{if(u.has(f))return u.get(f);let[p,d]=ka(f);switch(p){case cr:{let x=f;switch(d){case"bigint":p=hg,x=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+d);x=null;break;case"undefined":return s([sg],f)}return s([p,x],f)}case Aa:{if(d){let S=f;return d==="DataView"?S=new Uint8Array(f.buffer):d==="ArrayBuffer"&&(S=new Uint8Array(f)),s([d,[...S]],f)}const x=[],y=s([p,x],f);for(const S of f)x.push(h(S));return y}case ir:{if(d)switch(d){case"BigInt":return s([d,f.toString()],f);case"Boolean":case"Number":case"String":return s([d,f.valueOf()],f)}if(a&&"toJSON"in f)return h(f.toJSON());const x=[],y=s([p,x],f);for(const S of NS(f))(n||!Wu(ka(f[S])))&&x.push([h(S),h(f[S])]);return y}case vs:return s([p,f.toISOString()],f);case Ss:{const{source:x,flags:y}=f;return s([p,{source:x,flags:y}],f)}case ks:{const x=[],y=s([p,x],f);for(const[S,v]of f)(n||!(Wu(ka(S))||Wu(ka(v))))&&x.push([h(S),h(v)]);return y}case Es:{const x=[],y=s([p,x],f);for(const S of f)(n||!Wu(ka(S)))&&x.push(h(S));return y}}const{message:m}=f;return s([p,{name:d,message:m}],f)};return h},sp=(n,{json:a,lossy:u}={})=>{const r=[];return RS(!(a||u),!!a,new Map,r)(n),r},ar=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?cp(sp(n,a)):structuredClone(n):(n,a)=>cp(sp(n,a));function jS(n,a){const u=[{type:"text",value:"↩"}];return a>1&&u.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),u}function LS(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function US(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=n.options.footnoteBackContent||jS,r=n.options.footnoteBackLabel||LS,s=n.options.footnoteLabel||"Footnotes",h=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let d=-1;for(;++d<n.footnoteOrder.length;){const m=n.footnoteById.get(n.footnoteOrder[d]);if(!m)continue;const x=n.all(m),y=String(m.identifier).toUpperCase(),S=Ei(y.toLowerCase());let v=0;const C=[],B=n.footnoteCounts.get(y);for(;B!==void 0&&++v<=B;){C.length>0&&C.push({type:"text",value:" "});let Q=typeof u=="string"?u:u(d,v);typeof Q=="string"&&(Q={type:"text",value:Q}),C.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+S+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,v),className:["data-footnote-backref"]},children:Array.isArray(Q)?Q:[Q]})}const Z=x[x.length-1];if(Z&&Z.type==="element"&&Z.tagName==="p"){const Q=Z.children[Z.children.length-1];Q&&Q.type==="text"?Q.value+=" ":Z.children.push({type:"text",value:" "}),Z.children.push(...C)}else x.push(...C);const O={type:"element",tagName:"li",properties:{id:a+"fn-"+S},children:n.wrap(x,!0)};n.patch(m,O),p.push(O)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:h,properties:{...ar(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
173
- `},{type:"element",tagName:"ol",properties:{},children:n.wrap(p,!0)},{type:"text",value:`
174
- `}]}}const sr=(function(n){if(n==null)return YS;if(typeof n=="function")return fr(n);if(typeof n=="object")return Array.isArray(n)?BS(n):HS(n);if(typeof n=="string")return qS(n);throw new Error("Expected function, string, or object as test")});function BS(n){const a=[];let u=-1;for(;++u<n.length;)a[u]=sr(n[u]);return fr(r);function r(...s){let h=-1;for(;++h<a.length;)if(a[h].apply(this,s))return!0;return!1}}function HS(n){const a=n;return fr(u);function u(r){const s=r;let h;for(h in n)if(s[h]!==a[h])return!1;return!0}}function qS(n){return fr(a);function a(u){return u&&u.type===n}}function fr(n){return a;function a(u,r,s){return!!(VS(u)&&n.call(this,u,typeof r=="number"?r:void 0,s||void 0))}}function YS(){return!0}function VS(n){return n!==null&&typeof n=="object"&&"type"in n}const mg=[],XS=!0,is=!1,QS="skip";function dg(n,a,u,r){let s;typeof a=="function"&&typeof u!="function"?(r=u,u=a):s=a;const h=sr(s),f=r?-1:1;p(n,void 0,[])();function p(d,m,x){const y=d&&typeof d=="object"?d:{};if(typeof y.type=="string"){const v=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(d.type+(v?"<"+v+">":""))+")"})}return S;function S(){let v=mg,C,B,Z;if((!a||h(d,m,x[x.length-1]||void 0))&&(v=GS(u(d,x)),v[0]===is))return v;if("children"in d&&d.children){const O=d;if(O.children&&v[0]!==QS)for(B=(r?O.children.length:-1)+f,Z=x.concat(O);B>-1&&B<O.children.length;){const Q=O.children[B];if(C=p(Q,B,Z)(),C[0]===is)return C;B=typeof C[1]=="number"?C[1]:B+f}}return v}}}function GS(n){return Array.isArray(n)?n:typeof n=="number"?[XS,n]:n==null?mg:[n]}function Ts(n,a,u,r){let s,h,f;typeof a=="function"&&typeof u!="function"?(h=void 0,f=a,s=u):(h=a,f=u,s=r),dg(n,h,p,s);function p(d,m){const x=m[m.length-1],y=x?x.children.indexOf(d):void 0;return f(d,y,x)}}const as={}.hasOwnProperty,ZS={};function FS(n,a){const u=a||ZS,r=new Map,s=new Map,h=new Map,f={...DS,...u.handlers},p={all:m,applyData:JS,definitionById:r,footnoteById:s,footnoteCounts:h,footnoteOrder:[],handlers:f,one:d,options:u,patch:KS,wrap:$S};return Ts(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const y=x.type==="definition"?r:s,S=String(x.identifier).toUpperCase();y.has(S)||y.set(S,x)}}),p;function d(x,y){const S=x.type,v=p.handlers[S];if(as.call(p.handlers,S)&&v)return v(p,x,y);if(p.options.passThrough&&p.options.passThrough.includes(S)){if("children"in x){const{children:B,...Z}=x,O=ar(Z);return O.children=p.all(x),O}return ar(x)}return(p.options.unknownHandler||IS)(p,x,y)}function m(x){const y=[];if("children"in x){const S=x.children;let v=-1;for(;++v<S.length;){const C=p.one(S[v],x);if(C){if(v&&S[v-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=fp(C.value)),!Array.isArray(C)&&C.type==="element")){const B=C.children[0];B&&B.type==="text"&&(B.value=fp(B.value))}Array.isArray(C)?y.push(...C):y.push(C)}}}return y}}function KS(n,a){n.position&&(a.position=Lx(n))}function JS(n,a){let u=a;if(n&&n.data){const r=n.data.hName,s=n.data.hChildren,h=n.data.hProperties;if(typeof r=="string")if(u.type==="element")u.tagName=r;else{const f="children"in u?u.children:[u];u={type:"element",tagName:r,properties:{},children:f}}u.type==="element"&&h&&Object.assign(u.properties,ar(h)),"children"in u&&u.children&&s!==null&&s!==void 0&&(u.children=s)}return u}function IS(n,a){const u=a.data||{},r="value"in a&&!(as.call(u,"hProperties")||as.call(u,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function $S(n,a){const u=[];let r=-1;for(a&&u.push({type:"text",value:`
175
- `});++r<n.length;)r&&u.push({type:"text",value:`
176
- `}),u.push(n[r]);return a&&n.length>0&&u.push({type:"text",value:`
177
- `}),u}function fp(n){let a=0,u=n.charCodeAt(a);for(;u===9||u===32;)a++,u=n.charCodeAt(a);return n.slice(a)}function hp(n,a){const u=FS(n,a),r=u.one(n,void 0),s=US(u),h=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return s&&h.children.push({type:"text",value:`
178
- `},s),h}function WS(n,a){return n&&"run"in n?async function(u,r){const s=hp(u,{file:r,...a});await n.run(s,r)}:function(u,r){return hp(u,{file:r,...n||a})}}function mp(n){if(n)throw n}var qc,dp;function PS(){if(dp)return qc;dp=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,u=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):a.call(m)==="[object Array]"},h=function(m){if(!m||a.call(m)!=="[object Object]")return!1;var x=n.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!x&&!y)return!1;var S;for(S in m);return typeof S>"u"||n.call(m,S)},f=function(m,x){u&&x.name==="__proto__"?u(m,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):m[x.name]=x.newValue},p=function(m,x){if(x==="__proto__")if(n.call(m,x)){if(r)return r(m,x).value}else return;return m[x]};return qc=function d(){var m,x,y,S,v,C,B=arguments[0],Z=1,O=arguments.length,Q=!1;for(typeof B=="boolean"&&(Q=B,B=arguments[1]||{},Z=2),(B==null||typeof B!="object"&&typeof B!="function")&&(B={});Z<O;++Z)if(m=arguments[Z],m!=null)for(x in m)y=p(B,x),S=p(m,x),B!==S&&(Q&&S&&(h(S)||(v=s(S)))?(v?(v=!1,C=y&&s(y)?y:[]):C=y&&h(y)?y:{},f(B,{name:x,newValue:d(Q,C,S)})):typeof S<"u"&&f(B,{name:x,newValue:S}));return B},qc}var e2=PS();const Yc=wp(e2);function us(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function t2(){const n=[],a={run:u,use:r};return a;function u(...s){let h=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);p(null,...s);function p(d,...m){const x=n[++h];let y=-1;if(d){f(d);return}for(;++y<s.length;)(m[y]===null||m[y]===void 0)&&(m[y]=s[y]);s=m,x?n2(x,p)(...m):f(null,...m)}}function r(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function n2(n,a){let u;return r;function r(...f){const p=n.length>f.length;let d;p&&f.push(s);try{d=n.apply(this,f)}catch(m){const x=m;if(p&&u)throw x;return s(x)}p||(d&&d.then&&typeof d.then=="function"?d.then(h,s):d instanceof Error?s(d):h(d))}function s(f,...p){u||(u=!0,a(f,...p))}function h(f){s(null,f)}}const cn={basename:l2,dirname:i2,extname:a2,join:u2,sep:"/"};function l2(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Da(n);let u=0,r=-1,s=n.length,h;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(h){u=s+1;break}}else r<0&&(h=!0,r=s+1);return r<0?"":n.slice(u,r)}if(a===n)return"";let f=-1,p=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(h){u=s+1;break}}else f<0&&(h=!0,f=s+1),p>-1&&(n.codePointAt(s)===a.codePointAt(p--)?p<0&&(r=s):(p=-1,r=f));return u===r?r=f:r<0&&(r=n.length),n.slice(u,r)}function i2(n){if(Da(n),n.length===0)return".";let a=-1,u=n.length,r;for(;--u;)if(n.codePointAt(u)===47){if(r){a=u;break}}else r||(r=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function a2(n){Da(n);let a=n.length,u=-1,r=0,s=-1,h=0,f;for(;a--;){const p=n.codePointAt(a);if(p===47){if(f){r=a+1;break}continue}u<0&&(f=!0,u=a+1),p===46?s<0?s=a:h!==1&&(h=1):s>-1&&(h=-1)}return s<0||u<0||h===0||h===1&&s===u-1&&s===r+1?"":n.slice(s,u)}function u2(...n){let a=-1,u;for(;++a<n.length;)Da(n[a]),n[a]&&(u=u===void 0?n[a]:u+"/"+n[a]);return u===void 0?".":r2(u)}function r2(n){Da(n);const a=n.codePointAt(0)===47;let u=o2(n,!a);return u.length===0&&!a&&(u="."),u.length>0&&n.codePointAt(n.length-1)===47&&(u+="/"),a?"/"+u:u}function o2(n,a){let u="",r=0,s=-1,h=0,f=-1,p,d;for(;++f<=n.length;){if(f<n.length)p=n.codePointAt(f);else{if(p===47)break;p=47}if(p===47){if(!(s===f-1||h===1))if(s!==f-1&&h===2){if(u.length<2||r!==2||u.codePointAt(u.length-1)!==46||u.codePointAt(u.length-2)!==46){if(u.length>2){if(d=u.lastIndexOf("/"),d!==u.length-1){d<0?(u="",r=0):(u=u.slice(0,d),r=u.length-1-u.lastIndexOf("/")),s=f,h=0;continue}}else if(u.length>0){u="",r=0,s=f,h=0;continue}}a&&(u=u.length>0?u+"/..":"..",r=2)}else u.length>0?u+="/"+n.slice(s+1,f):u=n.slice(s+1,f),r=f-s-1;s=f,h=0}else p===46&&h>-1?h++:h=-1}return u}function Da(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const c2={cwd:s2};function s2(){return"/"}function rs(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function f2(n){if(typeof n=="string")n=new URL(n);else if(!rs(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return h2(n)}function h2(n){if(n.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const a=n.pathname;let u=-1;for(;++u<a.length;)if(a.codePointAt(u)===37&&a.codePointAt(u+1)===50){const r=a.codePointAt(u+2);if(r===70||r===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const Vc=["history","path","basename","stem","extname","dirname"];class pg{constructor(a){let u;a?rs(a)?u={path:a}:typeof a=="string"||m2(a)?u={value:a}:u=a:u={},this.cwd="cwd"in u?"":c2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Vc.length;){const h=Vc[r];h in u&&u[h]!==void 0&&u[h]!==null&&(this[h]=h==="history"?[...u[h]]:u[h])}let s;for(s in u)Vc.includes(s)||(this[s]=u[s])}get basename(){return typeof this.path=="string"?cn.basename(this.path):void 0}set basename(a){Qc(a,"basename"),Xc(a,"basename"),this.path=cn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?cn.dirname(this.path):void 0}set dirname(a){pp(this.basename,"dirname"),this.path=cn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?cn.extname(this.path):void 0}set extname(a){if(Xc(a,"extname"),pp(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=cn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){rs(a)&&(a=f2(a)),Qc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?cn.basename(this.path,this.extname):void 0}set stem(a){Qc(a,"stem"),Xc(a,"stem"),this.path=cn.join(this.dirname||"",a+(this.extname||""))}fail(a,u,r){const s=this.message(a,u,r);throw s.fatal=!0,s}info(a,u,r){const s=this.message(a,u,r);return s.fatal=void 0,s}message(a,u,r){const s=new pt(a,u,r);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Xc(n,a){if(n&&n.includes(cn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+cn.sep+"`")}function Qc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function pp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function m2(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const d2=(function(n){const r=this.constructor.prototype,s=r[n],h=function(){return s.apply(h,arguments)};return Object.setPrototypeOf(h,r),h}),p2={}.hasOwnProperty;class As extends d2{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=t2()}copy(){const a=new As;let u=-1;for(;++u<this.attachers.length;){const r=this.attachers[u];a.use(...r)}return a.data(Yc(!0,{},this.namespace)),a}data(a,u){return typeof a=="string"?arguments.length===2?(Fc("data",this.frozen),this.namespace[a]=u,this):p2.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Fc("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[u,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const s=u.call(a,...r);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const u=Pu(a),r=this.parser||this.Parser;return Gc("parse",r),r(String(u),u)}process(a,u){const r=this;return this.freeze(),Gc("process",this.parser||this.Parser),Zc("process",this.compiler||this.Compiler),u?s(void 0,u):new Promise(s);function s(h,f){const p=Pu(a),d=r.parse(p);r.run(d,p,function(x,y,S){if(x||!y||!S)return m(x);const v=y,C=r.stringify(v,S);x2(C)?S.value=C:S.result=C,m(x,S)});function m(x,y){x||!y?f(x):h?h(y):u(void 0,y)}}}processSync(a){let u=!1,r;return this.freeze(),Gc("processSync",this.parser||this.Parser),Zc("processSync",this.compiler||this.Compiler),this.process(a,s),yp("processSync","process",u),r;function s(h,f){u=!0,mp(h),r=f}}run(a,u,r){gp(a),this.freeze();const s=this.transformers;return!r&&typeof u=="function"&&(r=u,u=void 0),r?h(void 0,r):new Promise(h);function h(f,p){const d=Pu(u);s.run(a,d,m);function m(x,y,S){const v=y||a;x?p(x):f?f(v):r(void 0,v,S)}}}runSync(a,u){let r=!1,s;return this.run(a,u,h),yp("runSync","run",r),s;function h(f,p){mp(f),s=p,r=!0}}stringify(a,u){this.freeze();const r=Pu(u),s=this.compiler||this.Compiler;return Zc("stringify",s),gp(a),s(a,r)}use(a,...u){const r=this.attachers,s=this.namespace;if(Fc("use",this.frozen),a!=null)if(typeof a=="function")d(a,u);else if(typeof a=="object")Array.isArray(a)?p(a):f(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function h(m){if(typeof m=="function")d(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[x,...y]=m;d(x,y)}else f(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function f(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");p(m.plugins),m.settings&&(s.settings=Yc(!0,s.settings,m.settings))}function p(m){let x=-1;if(m!=null)if(Array.isArray(m))for(;++x<m.length;){const y=m[x];h(y)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function d(m,x){let y=-1,S=-1;for(;++y<r.length;)if(r[y][0]===m){S=y;break}if(S===-1)r.push([m,...x]);else if(x.length>0){let[v,...C]=x;const B=r[S][1];us(B)&&us(v)&&(v=Yc(!0,B,v)),r[S]=[m,v,...C]}}}}const g2=new As().freeze();function Gc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Zc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Fc(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function gp(n){if(!us(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function yp(n,a,u){if(!u)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function Pu(n){return y2(n)?n:new pg(n)}function y2(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function x2(n){return typeof n=="string"||b2(n)}function b2(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const v2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",xp=[],bp={allowDangerousHtml:!0},S2=/^(https?|ircs?|mailto|xmpp)$/i,k2=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function gg(n){const a=E2(n),u=T2(n);return A2(a.runSync(a.parse(u),u),n)}function E2(n){const a=n.rehypePlugins||xp,u=n.remarkPlugins||xp,r=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...bp}:bp;return g2().use(iS).use(u).use(WS,r).use(a)}function T2(n){const a=n.children||"",u=new pg;return typeof a=="string"&&(u.value=a),u}function A2(n,a){const u=a.allowedElements,r=a.allowElement,s=a.components,h=a.disallowedElements,f=a.skipHtml,p=a.unwrapDisallowed,d=a.urlTransform||z2;for(const x of k2)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+v2+x.id,void 0);return Ts(n,m),Yx(n,{Fragment:L.Fragment,components:s,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function m(x,y,S){if(x.type==="raw"&&S&&typeof y=="number")return f?S.children.splice(y,1):S.children[y]={type:"text",value:x.value},y;if(x.type==="element"){let v;for(v in Uc)if(Object.hasOwn(Uc,v)&&Object.hasOwn(x.properties,v)){const C=x.properties[v],B=Uc[v];(B===null||B.includes(x.tagName))&&(x.properties[v]=d(String(C||""),v,x))}}if(x.type==="element"){let v=u?!u.includes(x.tagName):h?h.includes(x.tagName):!1;if(!v&&r&&typeof y=="number"&&(v=!r(x,y,S)),v&&S&&typeof y=="number")return p&&x.children?S.children.splice(y,1,...x.children):S.children.splice(y,1),y}}}function z2(n){const a=n.indexOf(":"),u=n.indexOf("?"),r=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||u!==-1&&a>u||r!==-1&&a>r||S2.test(n.slice(0,a))?n:""}function vp(n,a){const u=String(n);if(typeof a!="string")throw new TypeError("Expected character");let r=0,s=u.indexOf(a);for(;s!==-1;)r++,s=u.indexOf(a,s+a.length);return r}function C2(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function w2(n,a,u){const s=sr((u||{}).ignore||[]),h=_2(a);let f=-1;for(;++f<h.length;)dg(n,"text",p);function p(m,x){let y=-1,S;for(;++y<x.length;){const v=x[y],C=S?S.children:void 0;if(s(v,C?C.indexOf(v):void 0,S))return;S=v}if(S)return d(m,x)}function d(m,x){const y=x[x.length-1],S=h[f][0],v=h[f][1];let C=0;const Z=y.children.indexOf(m);let O=!1,Q=[];S.lastIndex=0;let H=S.exec(m.value);for(;H;){const ie=H.index,ae={index:H.index,input:H.input,stack:[...x,m]};let U=v(...H,ae);if(typeof U=="string"&&(U=U.length>0?{type:"text",value:U}:void 0),U===!1?S.lastIndex=ie+1:(C!==ie&&Q.push({type:"text",value:m.value.slice(C,ie)}),Array.isArray(U)?Q.push(...U):U&&Q.push(U),C=ie+H[0].length,O=!0),!S.global)break;H=S.exec(m.value)}return O?(C<m.value.length&&Q.push({type:"text",value:m.value.slice(C)}),y.children.splice(Z,1,...Q)):Q=[m],Z+Q.length}}function _2(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const u=!n[0]||Array.isArray(n[0])?n:[n];let r=-1;for(;++r<u.length;){const s=u[r];a.push([D2(s[0]),O2(s[1])])}return a}function D2(n){return typeof n=="string"?new RegExp(C2(n),"g"):n}function O2(n){return typeof n=="function"?n:function(){return n}}const Kc="phrasing",Jc=["autolink","link","image","label"];function M2(){return{transforms:[H2],enter:{literalAutolink:R2,literalAutolinkEmail:Ic,literalAutolinkHttp:Ic,literalAutolinkWww:Ic},exit:{literalAutolink:B2,literalAutolinkEmail:U2,literalAutolinkHttp:j2,literalAutolinkWww:L2}}}function N2(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Kc,notInConstruct:Jc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Kc,notInConstruct:Jc},{character:":",before:"[ps]",after:"\\/",inConstruct:Kc,notInConstruct:Jc}]}}function R2(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Ic(n){this.config.enter.autolinkProtocol.call(this,n)}function j2(n){this.config.exit.autolinkProtocol.call(this,n)}function L2(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function U2(n){this.config.exit.autolinkEmail.call(this,n)}function B2(n){this.exit(n)}function H2(n){w2(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,q2],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Y2]],{ignore:["link","linkReference"]})}function q2(n,a,u,r,s){let h="";if(!yg(s)||(/^w/i.test(a)&&(u=a+u,a="",h="http://"),!V2(u)))return!1;const f=X2(u+r);if(!f[0])return!1;const p={type:"link",title:null,url:h+a+f[0],children:[{type:"text",value:a+f[0]}]};return f[1]?[p,{type:"text",value:f[1]}]:p}function Y2(n,a,u,r){return!yg(r,!0)||/[-\d_]$/.test(u)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+u,children:[{type:"text",value:a+"@"+u}]}}function V2(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function X2(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let u=a[0],r=u.indexOf(")");const s=vp(n,"(");let h=vp(n,")");for(;r!==-1&&s>h;)n+=u.slice(0,r+1),u=u.slice(r+1),r=u.indexOf(")"),h++;return[n,u]}function yg(n,a){const u=n.input.charCodeAt(n.index-1);return(n.index===0||zl(u)||rr(u))&&(!a||u!==47)}xg.peek=W2;function Q2(){this.buffer()}function G2(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Z2(){this.buffer()}function F2(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function K2(n){const a=this.resume(),u=this.stack[this.stack.length-1];u.type,u.identifier=ln(this.sliceSerialize(n)).toLowerCase(),u.label=a}function J2(n){this.exit(n)}function I2(n){const a=this.resume(),u=this.stack[this.stack.length-1];u.type,u.identifier=ln(this.sliceSerialize(n)).toLowerCase(),u.label=a}function $2(n){this.exit(n)}function W2(){return"["}function xg(n,a,u,r){const s=u.createTracker(r);let h=s.move("[^");const f=u.enter("footnoteReference"),p=u.enter("reference");return h+=s.move(u.safe(u.associationId(n),{after:"]",before:h})),p(),f(),h+=s.move("]"),h}function P2(){return{enter:{gfmFootnoteCallString:Q2,gfmFootnoteCall:G2,gfmFootnoteDefinitionLabelString:Z2,gfmFootnoteDefinition:F2},exit:{gfmFootnoteCallString:K2,gfmFootnoteCall:J2,gfmFootnoteDefinitionLabelString:I2,gfmFootnoteDefinition:$2}}}function ek(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:u,footnoteReference:xg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function u(r,s,h,f){const p=h.createTracker(f);let d=p.move("[^");const m=h.enter("footnoteDefinition"),x=h.enter("label");return d+=p.move(h.safe(h.associationId(r),{before:d,after:"]"})),x(),d+=p.move("]:"),r.children&&r.children.length>0&&(p.shift(4),d+=p.move((a?`
179
- `:" ")+h.indentLines(h.containerFlow(r,p.current()),a?bg:tk))),m(),d}}function tk(n,a,u){return a===0?n:bg(n,a,u)}function bg(n,a,u){return(u?"":" ")+n}const nk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];vg.peek=rk;function lk(){return{canContainEols:["delete"],enter:{strikethrough:ak},exit:{strikethrough:uk}}}function ik(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:nk}],handlers:{delete:vg}}}function ak(n){this.enter({type:"delete",children:[]},n)}function uk(n){this.exit(n)}function vg(n,a,u,r){const s=u.createTracker(r),h=u.enter("strikethrough");let f=s.move("~~");return f+=u.containerPhrasing(n,{...s.current(),before:f,after:"~"}),f+=s.move("~~"),h(),f}function rk(){return"~"}function ok(n){return n.length}function ck(n,a){const u=a||{},r=(u.align||[]).concat(),s=u.stringLength||ok,h=[],f=[],p=[],d=[];let m=0,x=-1;for(;++x<n.length;){const B=[],Z=[];let O=-1;for(n[x].length>m&&(m=n[x].length);++O<n[x].length;){const Q=sk(n[x][O]);if(u.alignDelimiters!==!1){const H=s(Q);Z[O]=H,(d[O]===void 0||H>d[O])&&(d[O]=H)}B.push(Q)}f[x]=B,p[x]=Z}let y=-1;if(typeof r=="object"&&"length"in r)for(;++y<m;)h[y]=Sp(r[y]);else{const B=Sp(r);for(;++y<m;)h[y]=B}y=-1;const S=[],v=[];for(;++y<m;){const B=h[y];let Z="",O="";B===99?(Z=":",O=":"):B===108?Z=":":B===114&&(O=":");let Q=u.alignDelimiters===!1?1:Math.max(1,d[y]-Z.length-O.length);const H=Z+"-".repeat(Q)+O;u.alignDelimiters!==!1&&(Q=Z.length+Q+O.length,Q>d[y]&&(d[y]=Q),v[y]=Q),S[y]=H}f.splice(1,0,S),p.splice(1,0,v),x=-1;const C=[];for(;++x<f.length;){const B=f[x],Z=p[x];y=-1;const O=[];for(;++y<m;){const Q=B[y]||"";let H="",ie="";if(u.alignDelimiters!==!1){const ae=d[y]-(Z[y]||0),U=h[y];U===114?H=" ".repeat(ae):U===99?ae%2?(H=" ".repeat(ae/2+.5),ie=" ".repeat(ae/2-.5)):(H=" ".repeat(ae/2),ie=H):ie=" ".repeat(ae)}u.delimiterStart!==!1&&!y&&O.push("|"),u.padding!==!1&&!(u.alignDelimiters===!1&&Q==="")&&(u.delimiterStart!==!1||y)&&O.push(" "),u.alignDelimiters!==!1&&O.push(H),O.push(Q),u.alignDelimiters!==!1&&O.push(ie),u.padding!==!1&&O.push(" "),(u.delimiterEnd!==!1||y!==m-1)&&O.push("|")}C.push(u.delimiterEnd===!1?O.join("").replace(/ +$/,""):O.join(""))}return C.join(`
180
- `)}function sk(n){return n==null?"":String(n)}function Sp(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function fk(n,a,u,r){const s=u.enter("blockquote"),h=u.createTracker(r);h.move("> "),h.shift(2);const f=u.indentLines(u.containerFlow(n,h.current()),hk);return s(),f}function hk(n,a,u){return">"+(u?"":" ")+n}function mk(n,a){return kp(n,a.inConstruct,!0)&&!kp(n,a.notInConstruct,!1)}function kp(n,a,u){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return u;let r=-1;for(;++r<a.length;)if(n.includes(a[r]))return!0;return!1}function Ep(n,a,u,r){let s=-1;for(;++s<u.unsafe.length;)if(u.unsafe[s].character===`
181
- `&&mk(u.stack,u.unsafe[s]))return/[ \t]/.test(r.before)?"":" ";return`\\
182
- `}function dk(n,a){const u=String(n);let r=u.indexOf(a),s=r,h=0,f=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===s?++h>f&&(f=h):h=1,s=r+a.length,r=u.indexOf(a,s);return f}function pk(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function gk(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function yk(n,a,u,r){const s=gk(u),h=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(pk(n,u)){const y=u.enter("codeIndented"),S=u.indentLines(h,xk);return y(),S}const p=u.createTracker(r),d=s.repeat(Math.max(dk(h,s)+1,3)),m=u.enter("codeFenced");let x=p.move(d);if(n.lang){const y=u.enter(`codeFencedLang${f}`);x+=p.move(u.safe(n.lang,{before:x,after:" ",encode:["`"],...p.current()})),y()}if(n.lang&&n.meta){const y=u.enter(`codeFencedMeta${f}`);x+=p.move(" "),x+=p.move(u.safe(n.meta,{before:x,after:`
183
- `,encode:["`"],...p.current()})),y()}return x+=p.move(`
184
- `),h&&(x+=p.move(h+`
185
- `)),x+=p.move(d),m(),x}function xk(n,a,u){return(u?"":" ")+n}function zs(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function bk(n,a,u,r){const s=zs(u),h=s==='"'?"Quote":"Apostrophe",f=u.enter("definition");let p=u.enter("label");const d=u.createTracker(r);let m=d.move("[");return m+=d.move(u.safe(u.associationId(n),{before:m,after:"]",...d.current()})),m+=d.move("]: "),p(),!n.url||/[\0- \u007F]/.test(n.url)?(p=u.enter("destinationLiteral"),m+=d.move("<"),m+=d.move(u.safe(n.url,{before:m,after:">",...d.current()})),m+=d.move(">")):(p=u.enter("destinationRaw"),m+=d.move(u.safe(n.url,{before:m,after:n.title?" ":`
186
- `,...d.current()}))),p(),n.title&&(p=u.enter(`title${h}`),m+=d.move(" "+s),m+=d.move(u.safe(n.title,{before:m,after:s,...d.current()})),m+=d.move(s),p()),f(),m}function vk(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Ca(n){return"&#x"+n.toString(16).toUpperCase()+";"}function ur(n,a,u){const r=vi(n),s=vi(a);return r===void 0?s===void 0?u==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===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}}Sg.peek=Sk;function Sg(n,a,u,r){const s=vk(u),h=u.enter("emphasis"),f=u.createTracker(r),p=f.move(s);let d=f.move(u.containerPhrasing(n,{after:s,before:p,...f.current()}));const m=d.charCodeAt(0),x=ur(r.before.charCodeAt(r.before.length-1),m,s);x.inside&&(d=Ca(m)+d.slice(1));const y=d.charCodeAt(d.length-1),S=ur(r.after.charCodeAt(0),y,s);S.inside&&(d=d.slice(0,-1)+Ca(y));const v=f.move(s);return h(),u.attentionEncodeSurroundingInfo={after:S.outside,before:x.outside},p+d+v}function Sk(n,a,u){return u.options.emphasis||"*"}function kk(n,a){let u=!1;return Ts(n,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return u=!0,is}),!!((!n.depth||n.depth<3)&&ys(n)&&(a.options.setext||u))}function Ek(n,a,u,r){const s=Math.max(Math.min(6,n.depth||1),1),h=u.createTracker(r);if(kk(n,u)){const x=u.enter("headingSetext"),y=u.enter("phrasing"),S=u.containerPhrasing(n,{...h.current(),before:`
187
- `,after:`
188
- `});return y(),x(),S+`
189
- `+(s===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
190
- `))+1))}const f="#".repeat(s),p=u.enter("headingAtx"),d=u.enter("phrasing");h.move(f+" ");let m=u.containerPhrasing(n,{before:"# ",after:`
191
- `,...h.current()});return/^[\t ]/.test(m)&&(m=Ca(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,u.options.closeAtx&&(m+=" "+f),d(),p(),m}kg.peek=Tk;function kg(n){return n.value||""}function Tk(){return"<"}Eg.peek=Ak;function Eg(n,a,u,r){const s=zs(u),h=s==='"'?"Quote":"Apostrophe",f=u.enter("image");let p=u.enter("label");const d=u.createTracker(r);let m=d.move("![");return m+=d.move(u.safe(n.alt,{before:m,after:"]",...d.current()})),m+=d.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=u.enter("destinationLiteral"),m+=d.move("<"),m+=d.move(u.safe(n.url,{before:m,after:">",...d.current()})),m+=d.move(">")):(p=u.enter("destinationRaw"),m+=d.move(u.safe(n.url,{before:m,after:n.title?" ":")",...d.current()}))),p(),n.title&&(p=u.enter(`title${h}`),m+=d.move(" "+s),m+=d.move(u.safe(n.title,{before:m,after:s,...d.current()})),m+=d.move(s),p()),m+=d.move(")"),f(),m}function Ak(){return"!"}Tg.peek=zk;function Tg(n,a,u,r){const s=n.referenceType,h=u.enter("imageReference");let f=u.enter("label");const p=u.createTracker(r);let d=p.move("![");const m=u.safe(n.alt,{before:d,after:"]",...p.current()});d+=p.move(m+"]["),f();const x=u.stack;u.stack=[],f=u.enter("reference");const y=u.safe(u.associationId(n),{before:d,after:"]",...p.current()});return f(),u.stack=x,h(),s==="full"||!m||m!==y?d+=p.move(y+"]"):s==="shortcut"?d=d.slice(0,-1):d+=p.move("]"),d}function zk(){return"!"}Ag.peek=Ck;function Ag(n,a,u){let r=n.value||"",s="`",h=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(r);)s+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++h<u.unsafe.length;){const f=u.unsafe[h],p=u.compilePattern(f);let d;if(f.atBreak)for(;d=p.exec(r);){let m=d.index;r.charCodeAt(m)===10&&r.charCodeAt(m-1)===13&&m--,r=r.slice(0,m)+" "+r.slice(d.index+1)}}return s+r+s}function Ck(){return"`"}function zg(n,a){const u=ys(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(u===n.url||"mailto:"+u===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}Cg.peek=wk;function Cg(n,a,u,r){const s=zs(u),h=s==='"'?"Quote":"Apostrophe",f=u.createTracker(r);let p,d;if(zg(n,u)){const x=u.stack;u.stack=[],p=u.enter("autolink");let y=f.move("<");return y+=f.move(u.containerPhrasing(n,{before:y,after:">",...f.current()})),y+=f.move(">"),p(),u.stack=x,y}p=u.enter("link"),d=u.enter("label");let m=f.move("[");return m+=f.move(u.containerPhrasing(n,{before:m,after:"](",...f.current()})),m+=f.move("]("),d(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(d=u.enter("destinationLiteral"),m+=f.move("<"),m+=f.move(u.safe(n.url,{before:m,after:">",...f.current()})),m+=f.move(">")):(d=u.enter("destinationRaw"),m+=f.move(u.safe(n.url,{before:m,after:n.title?" ":")",...f.current()}))),d(),n.title&&(d=u.enter(`title${h}`),m+=f.move(" "+s),m+=f.move(u.safe(n.title,{before:m,after:s,...f.current()})),m+=f.move(s),d()),m+=f.move(")"),p(),m}function wk(n,a,u){return zg(n,u)?"<":"["}wg.peek=_k;function wg(n,a,u,r){const s=n.referenceType,h=u.enter("linkReference");let f=u.enter("label");const p=u.createTracker(r);let d=p.move("[");const m=u.containerPhrasing(n,{before:d,after:"]",...p.current()});d+=p.move(m+"]["),f();const x=u.stack;u.stack=[],f=u.enter("reference");const y=u.safe(u.associationId(n),{before:d,after:"]",...p.current()});return f(),u.stack=x,h(),s==="full"||!m||m!==y?d+=p.move(y+"]"):s==="shortcut"?d=d.slice(0,-1):d+=p.move("]"),d}function _k(){return"["}function Cs(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function Dk(n){const a=Cs(n),u=n.options.bulletOther;if(!u)return a==="*"?"-":"*";if(u!=="*"&&u!=="+"&&u!=="-")throw new Error("Cannot serialize items with `"+u+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(u===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+u+"`) to be different");return u}function Ok(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function _g(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function Mk(n,a,u,r){const s=u.enter("list"),h=u.bulletCurrent;let f=n.ordered?Ok(u):Cs(u);const p=n.ordered?f==="."?")":".":Dk(u);let d=a&&u.bulletLastUsed?f===u.bulletLastUsed:!1;if(!n.ordered){const x=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&x&&(!x.children||!x.children[0])&&u.stack[u.stack.length-1]==="list"&&u.stack[u.stack.length-2]==="listItem"&&u.stack[u.stack.length-3]==="list"&&u.stack[u.stack.length-4]==="listItem"&&u.indexStack[u.indexStack.length-1]===0&&u.indexStack[u.indexStack.length-2]===0&&u.indexStack[u.indexStack.length-3]===0&&(d=!0),_g(u)===f&&x){let y=-1;for(;++y<n.children.length;){const S=n.children[y];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(f=p),u.bulletCurrent=f;const m=u.containerFlow(n,r);return u.bulletLastUsed=f,u.bulletCurrent=h,s(),m}function Nk(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function Rk(n,a,u,r){const s=Nk(u);let h=u.bulletCurrent||Cs(u);a&&a.type==="list"&&a.ordered&&(h=(typeof a.start=="number"&&a.start>-1?a.start:1)+(u.options.incrementListMarker===!1?0:a.children.indexOf(n))+h);let f=h.length+1;(s==="tab"||s==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(f=Math.ceil(f/4)*4);const p=u.createTracker(r);p.move(h+" ".repeat(f-h.length)),p.shift(f);const d=u.enter("listItem"),m=u.indentLines(u.containerFlow(n,p.current()),x);return d(),m;function x(y,S,v){return S?(v?"":" ".repeat(f))+y:(v?h:h+" ".repeat(f-h.length))+y}}function jk(n,a,u,r){const s=u.enter("paragraph"),h=u.enter("phrasing"),f=u.containerPhrasing(n,r);return h(),s(),f}const Lk=sr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Uk(n,a,u,r){return(n.children.some(function(f){return Lk(f)})?u.containerPhrasing:u.containerFlow).call(u,n,r)}function Bk(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}Dg.peek=Hk;function Dg(n,a,u,r){const s=Bk(u),h=u.enter("strong"),f=u.createTracker(r),p=f.move(s+s);let d=f.move(u.containerPhrasing(n,{after:s,before:p,...f.current()}));const m=d.charCodeAt(0),x=ur(r.before.charCodeAt(r.before.length-1),m,s);x.inside&&(d=Ca(m)+d.slice(1));const y=d.charCodeAt(d.length-1),S=ur(r.after.charCodeAt(0),y,s);S.inside&&(d=d.slice(0,-1)+Ca(y));const v=f.move(s+s);return h(),u.attentionEncodeSurroundingInfo={after:S.outside,before:x.outside},p+d+v}function Hk(n,a,u){return u.options.strong||"*"}function qk(n,a,u,r){return u.safe(n.value,r)}function Yk(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function Vk(n,a,u){const r=(_g(u)+(u.options.ruleSpaces?" ":"")).repeat(Yk(u));return u.options.ruleSpaces?r.slice(0,-1):r}const Og={blockquote:fk,break:Ep,code:yk,definition:bk,emphasis:Sg,hardBreak:Ep,heading:Ek,html:kg,image:Eg,imageReference:Tg,inlineCode:Ag,link:Cg,linkReference:wg,list:Mk,listItem:Rk,paragraph:jk,root:Uk,strong:Dg,text:qk,thematicBreak:Vk};function Xk(){return{enter:{table:Qk,tableData:Tp,tableHeader:Tp,tableRow:Zk},exit:{codeText:Fk,table:Gk,tableData:$c,tableHeader:$c,tableRow:$c}}}function Qk(n){const a=n._align;this.enter({type:"table",align:a.map(function(u){return u==="none"?null:u}),children:[]},n),this.data.inTable=!0}function Gk(n){this.exit(n),this.data.inTable=void 0}function Zk(n){this.enter({type:"tableRow",children:[]},n)}function $c(n){this.exit(n)}function Tp(n){this.enter({type:"tableCell",children:[]},n)}function Fk(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,Kk));const u=this.stack[this.stack.length-1];u.type,u.value=a,this.exit(n)}function Kk(n,a){return a==="|"?a:n}function Jk(n){const a=n||{},u=a.tableCellPadding,r=a.tablePipeAlign,s=a.stringLength,h=u?" ":"|";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:S,table:f,tableCell:d,tableRow:p}};function f(v,C,B,Z){return m(x(v,B,Z),v.align)}function p(v,C,B,Z){const O=y(v,B,Z),Q=m([O]);return Q.slice(0,Q.indexOf(`
193
- `))}function d(v,C,B,Z){const O=B.enter("tableCell"),Q=B.enter("phrasing"),H=B.containerPhrasing(v,{...Z,before:h,after:h});return Q(),O(),H}function m(v,C){return ck(v,{align:C,alignDelimiters:r,padding:u,stringLength:s})}function x(v,C,B){const Z=v.children;let O=-1;const Q=[],H=C.enter("table");for(;++O<Z.length;)Q[O]=y(Z[O],C,B);return H(),Q}function y(v,C,B){const Z=v.children;let O=-1;const Q=[],H=C.enter("tableRow");for(;++O<Z.length;)Q[O]=d(Z[O],v,C,B);return H(),Q}function S(v,C,B){let Z=Og.inlineCode(v,C,B);return B.stack.includes("tableCell")&&(Z=Z.replace(/\|/g,"\\$&")),Z}}function Ik(){return{exit:{taskListCheckValueChecked:Ap,taskListCheckValueUnchecked:Ap,paragraph:Wk}}}function $k(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Pk}}}function Ap(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function Wk(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const u=this.stack[this.stack.length-1];u.type;const r=u.children[0];if(r&&r.type==="text"){const s=a.children;let h=-1,f;for(;++h<s.length;){const p=s[h];if(p.type==="paragraph"){f=p;break}}f===u&&(r.value=r.value.slice(1),r.value.length===0?u.children.shift():u.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,u.position.start=Object.assign({},r.position.start)))}}this.exit(n)}function Pk(n,a,u,r){const s=n.children[0],h=typeof n.checked=="boolean"&&s&&s.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",p=u.createTracker(r);h&&p.move(f);let d=Og.listItem(n,a,u,{...r,...p.current()});return h&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),d;function m(x){return x+f}}function eE(){return[M2(),P2(),lk(),Xk(),Ik()]}function tE(n){return{extensions:[N2(),ek(n),ik(),Jk(n),$k()]}}const nE={tokenize:oE,partial:!0},Mg={tokenize:cE,partial:!0},Ng={tokenize:sE,partial:!0},Rg={tokenize:fE,partial:!0},lE={tokenize:hE,partial:!0},jg={name:"wwwAutolink",tokenize:uE,previous:Ug},Lg={name:"protocolAutolink",tokenize:rE,previous:Bg},Mn={name:"emailAutolink",tokenize:aE,previous:Hg},sn={};function iE(){return{text:sn}}let Al=48;for(;Al<123;)sn[Al]=Mn,Al++,Al===58?Al=65:Al===91&&(Al=97);sn[43]=Mn;sn[45]=Mn;sn[46]=Mn;sn[95]=Mn;sn[72]=[Mn,Lg];sn[104]=[Mn,Lg];sn[87]=[Mn,jg];sn[119]=[Mn,jg];function aE(n,a,u){const r=this;let s,h;return f;function f(y){return!os(y)||!Hg.call(r,r.previous)||ws(r.events)?u(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),p(y))}function p(y){return os(y)?(n.consume(y),p):y===64?(n.consume(y),d):u(y)}function d(y){return y===46?n.check(lE,x,m)(y):y===45||y===95||dt(y)?(h=!0,n.consume(y),d):x(y)}function m(y){return n.consume(y),s=!0,d}function x(y){return h&&s&&bt(r.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(y)):u(y)}}function uE(n,a,u){const r=this;return s;function s(f){return f!==87&&f!==119||!Ug.call(r,r.previous)||ws(r.events)?u(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(nE,n.attempt(Mg,n.attempt(Ng,h),u),u)(f))}function h(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function rE(n,a,u){const r=this;let s="",h=!1;return f;function f(y){return(y===72||y===104)&&Bg.call(r,r.previous)&&!ws(r.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),n.consume(y),p):u(y)}function p(y){if(bt(y)&&s.length<5)return s+=String.fromCodePoint(y),n.consume(y),p;if(y===58){const S=s.toLowerCase();if(S==="http"||S==="https")return n.consume(y),d}return u(y)}function d(y){return y===47?(n.consume(y),h?m:(h=!0,d)):u(y)}function m(y){return y===null||lr(y)||Xe(y)||zl(y)||rr(y)?u(y):n.attempt(Mg,n.attempt(Ng,x),u)(y)}function x(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(y)}}function oE(n,a,u){let r=0;return s;function s(f){return(f===87||f===119)&&r<3?(r++,n.consume(f),s):f===46&&r===3?(n.consume(f),h):u(f)}function h(f){return f===null?u(f):a(f)}}function cE(n,a,u){let r,s,h;return f;function f(m){return m===46||m===95?n.check(Rg,d,p)(m):m===null||Xe(m)||zl(m)||m!==45&&rr(m)?d(m):(h=!0,n.consume(m),f)}function p(m){return m===95?r=!0:(s=r,r=void 0),n.consume(m),f}function d(m){return s||r||!h?u(m):a(m)}}function sE(n,a){let u=0,r=0;return s;function s(f){return f===40?(u++,n.consume(f),s):f===41&&r<u?h(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(Rg,a,h)(f):f===null||Xe(f)||zl(f)?a(f):(n.consume(f),s)}function h(f){return f===41&&r++,n.consume(f),s}}function fE(n,a,u){return r;function r(p){return p===33||p===34||p===39||p===41||p===42||p===44||p===46||p===58||p===59||p===63||p===95||p===126?(n.consume(p),r):p===38?(n.consume(p),h):p===93?(n.consume(p),s):p===60||p===null||Xe(p)||zl(p)?a(p):u(p)}function s(p){return p===null||p===40||p===91||Xe(p)||zl(p)?a(p):r(p)}function h(p){return bt(p)?f(p):u(p)}function f(p){return p===59?(n.consume(p),r):bt(p)?(n.consume(p),f):u(p)}}function hE(n,a,u){return r;function r(h){return n.consume(h),s}function s(h){return dt(h)?u(h):a(h)}}function Ug(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Xe(n)}function Bg(n){return!bt(n)}function Hg(n){return!(n===47||os(n))}function os(n){return n===43||n===45||n===46||n===95||dt(n)}function ws(n){let a=n.length,u=!1;for(;a--;){const r=n[a][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){u=!0;break}if(r._gfmAutolinkLiteralWalkedInto){u=!1;break}}return n.length>0&&!u&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),u}const mE={tokenize:SE,partial:!0};function dE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:xE,continuation:{tokenize:bE},exit:vE}},text:{91:{name:"gfmFootnoteCall",tokenize:yE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:pE,resolveTo:gE}}}}function pE(n,a,u){const r=this;let s=r.events.length;const h=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let f;for(;s--;){const d=r.events[s][1];if(d.type==="labelImage"){f=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return p;function p(d){if(!f||!f._balanced)return u(d);const m=ln(r.sliceSerialize({start:f.end,end:r.now()}));return m.codePointAt(0)!==94||!h.includes(m.slice(1))?u(d):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(d),n.exit("gfmFootnoteCallLabelMarker"),a(d))}}function gE(n,a){let u=n.length;for(;u--;)if(n[u][1].type==="labelImage"&&n[u][0]==="enter"){n[u][1];break}n[u+1][1].type="data",n[u+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},n[u+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[u+3][1].end),end:Object.assign({},n[u+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const h={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},h.start),end:Object.assign({},h.end)},p=[n[u+1],n[u+2],["enter",r,a],n[u+3],n[u+4],["enter",s,a],["exit",s,a],["enter",h,a],["enter",f,a],["exit",f,a],["exit",h,a],n[n.length-2],n[n.length-1],["exit",r,a]];return n.splice(u,n.length-u+1,...p),n}function yE(n,a,u){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h=0,f;return p;function p(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),d}function d(y){return y!==94?u(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",m)}function m(y){if(h>999||y===93&&!f||y===null||y===91||Xe(y))return u(y);if(y===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return s.includes(ln(r.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):u(y)}return Xe(y)||(f=!0),h++,n.consume(y),y===92?x:m}function x(y){return y===91||y===92||y===93?(n.consume(y),h++,m):m(y)}}function xE(n,a,u){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h,f=0,p;return d;function d(C){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(C),n.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(C){return C===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(C),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):u(C)}function x(C){if(f>999||C===93&&!p||C===null||C===91||Xe(C))return u(C);if(C===93){n.exit("chunkString");const B=n.exit("gfmFootnoteDefinitionLabelString");return h=ln(r.sliceSerialize(B)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(C),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return Xe(C)||(p=!0),f++,n.consume(C),C===92?y:x}function y(C){return C===91||C===92||C===93?(n.consume(C),f++,x):x(C)}function S(C){return C===58?(n.enter("definitionMarker"),n.consume(C),n.exit("definitionMarker"),s.includes(h)||s.push(h),De(n,v,"gfmFootnoteDefinitionWhitespace")):u(C)}function v(C){return a(C)}}function bE(n,a,u){return n.check(_a,a,n.attempt(mE,a,u))}function vE(n){n.exit("gfmFootnoteDefinition")}function SE(n,a,u){const r=this;return De(n,s,"gfmFootnoteDefinitionIndent",5);function s(h){const f=r.events[r.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?a(h):u(h)}}function kE(n){let u=(n||{}).singleTilde;const r={name:"strikethrough",tokenize:h,resolveAll:s};return u==null&&(u=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function s(f,p){let d=-1;for(;++d<f.length;)if(f[d][0]==="enter"&&f[d][1].type==="strikethroughSequenceTemporary"&&f[d][1]._close){let m=d;for(;m--;)if(f[m][0]==="exit"&&f[m][1].type==="strikethroughSequenceTemporary"&&f[m][1]._open&&f[d][1].end.offset-f[d][1].start.offset===f[m][1].end.offset-f[m][1].start.offset){f[d][1].type="strikethroughSequence",f[m][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},f[m][1].start),end:Object.assign({},f[d][1].end)},y={type:"strikethroughText",start:Object.assign({},f[m][1].end),end:Object.assign({},f[d][1].start)},S=[["enter",x,p],["enter",f[m][1],p],["exit",f[m][1],p],["enter",y,p]],v=p.parser.constructs.insideSpan.null;v&&qt(S,S.length,0,or(v,f.slice(m+1,d),p)),qt(S,S.length,0,[["exit",y,p],["enter",f[d][1],p],["exit",f[d][1],p],["exit",x,p]]),qt(f,m-1,d-m+3,S),d=m+S.length-2;break}}for(d=-1;++d<f.length;)f[d][1].type==="strikethroughSequenceTemporary"&&(f[d][1].type="data");return f}function h(f,p,d){const m=this.previous,x=this.events;let y=0;return S;function S(C){return m===126&&x[x.length-1][1].type!=="characterEscape"?d(C):(f.enter("strikethroughSequenceTemporary"),v(C))}function v(C){const B=vi(m);if(C===126)return y>1?d(C):(f.consume(C),y++,v);if(y<2&&!u)return d(C);const Z=f.exit("strikethroughSequenceTemporary"),O=vi(C);return Z._open=!O||O===2&&!!B,Z._close=!B||B===2&&!!O,p(C)}}}class EE{constructor(){this.map=[]}add(a,u,r){TE(this,a,u,r)}consume(a){if(this.map.sort(function(h,f){return h[0]-f[0]}),this.map.length===0)return;let u=this.map.length;const r=[];for(;u>0;)u-=1,r.push(a.slice(this.map[u][0]+this.map[u][1]),this.map[u][2]),a.length=this.map[u][0];r.push(a.slice()),a.length=0;let s=r.pop();for(;s;){for(const h of s)a.push(h);s=r.pop()}this.map.length=0}}function TE(n,a,u,r){let s=0;if(!(u===0&&r.length===0)){for(;s<n.map.length;){if(n.map[s][0]===a){n.map[s][1]+=u,n.map[s][2].push(...r);return}s+=1}n.map.push([a,u,r])}}function AE(n,a){let u=!1;const r=[];for(;a<n.length;){const s=n[a];if(u){if(s[0]==="enter")s[1].type==="tableContent"&&r.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const h=r.length-1;r[h]=r[h]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(u=!0);a+=1}return r}function zE(){return{flow:{null:{name:"table",tokenize:CE,resolveAll:wE}}}}function CE(n,a,u){const r=this;let s=0,h=0,f;return p;function p(R){let te=r.events.length-1;for(;te>-1;){const ne=r.events[te][1].type;if(ne==="lineEnding"||ne==="linePrefix")te--;else break}const ee=te>-1?r.events[te][1].type:null,Se=ee==="tableHead"||ee==="tableRow"?U:d;return Se===U&&r.parser.lazy[r.now().line]?u(R):Se(R)}function d(R){return n.enter("tableHead"),n.enter("tableRow"),m(R)}function m(R){return R===124||(f=!0,h+=1),x(R)}function x(R){return R===null?u(R):fe(R)?h>1?(h=0,r.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(R),n.exit("lineEnding"),v):u(R):Ae(R)?De(n,x,"whitespace")(R):(h+=1,f&&(f=!1,s+=1),R===124?(n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),f=!0,x):(n.enter("data"),y(R)))}function y(R){return R===null||R===124||Xe(R)?(n.exit("data"),x(R)):(n.consume(R),R===92?S:y)}function S(R){return R===92||R===124?(n.consume(R),y):y(R)}function v(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?u(R):(n.enter("tableDelimiterRow"),f=!1,Ae(R)?De(n,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):C(R))}function C(R){return R===45||R===58?Z(R):R===124?(f=!0,n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),B):ae(R)}function B(R){return Ae(R)?De(n,Z,"whitespace")(R):Z(R)}function Z(R){return R===58?(h+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(R),n.exit("tableDelimiterMarker"),O):R===45?(h+=1,O(R)):R===null||fe(R)?ie(R):ae(R)}function O(R){return R===45?(n.enter("tableDelimiterFiller"),Q(R)):ae(R)}function Q(R){return R===45?(n.consume(R),Q):R===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(R),n.exit("tableDelimiterMarker"),H):(n.exit("tableDelimiterFiller"),H(R))}function H(R){return Ae(R)?De(n,ie,"whitespace")(R):ie(R)}function ie(R){return R===124?C(R):R===null||fe(R)?!f||s!==h?ae(R):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(R)):ae(R)}function ae(R){return u(R)}function U(R){return n.enter("tableRow"),W(R)}function W(R){return R===124?(n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),W):R===null||fe(R)?(n.exit("tableRow"),a(R)):Ae(R)?De(n,W,"whitespace")(R):(n.enter("data"),se(R))}function se(R){return R===null||R===124||Xe(R)?(n.exit("data"),W(R)):(n.consume(R),R===92?pe:se)}function pe(R){return R===92||R===124?(n.consume(R),se):se(R)}}function wE(n,a){let u=-1,r=!0,s=0,h=[0,0,0,0],f=[0,0,0,0],p=!1,d=0,m,x,y;const S=new EE;for(;++u<n.length;){const v=n[u],C=v[1];v[0]==="enter"?C.type==="tableHead"?(p=!1,d!==0&&(zp(S,a,d,m,x),x=void 0,d=0),m={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},S.add(u,0,[["enter",m,a]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(r=!0,y=void 0,h=[0,0,0,0],f=[0,u+1,0,0],p&&(p=!1,x={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},S.add(u,0,[["enter",x,a]])),s=C.type==="tableDelimiterRow"?2:x?3:1):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(r=!1,f[2]===0&&(h[1]!==0&&(f[0]=f[1],y=er(S,a,h,s,void 0,y),h=[0,0,0,0]),f[2]=u)):C.type==="tableCellDivider"&&(r?r=!1:(h[1]!==0&&(f[0]=f[1],y=er(S,a,h,s,void 0,y)),h=f,f=[h[1],u,0,0])):C.type==="tableHead"?(p=!0,d=u):C.type==="tableRow"||C.type==="tableDelimiterRow"?(d=u,h[1]!==0?(f[0]=f[1],y=er(S,a,h,s,u,y)):f[1]!==0&&(y=er(S,a,f,s,u,y)),s=0):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(f[3]=u)}for(d!==0&&zp(S,a,d,m,x),S.consume(a.events),u=-1;++u<a.events.length;){const v=a.events[u];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=AE(a.events,u))}return n}function er(n,a,u,r,s,h){const f=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",p="tableContent";u[0]!==0&&(h.end=Object.assign({},xi(a.events,u[0])),n.add(u[0],0,[["exit",h,a]]));const d=xi(a.events,u[1]);if(h={type:f,start:Object.assign({},d),end:Object.assign({},d)},n.add(u[1],0,[["enter",h,a]]),u[2]!==0){const m=xi(a.events,u[2]),x=xi(a.events,u[3]),y={type:p,start:Object.assign({},m),end:Object.assign({},x)};if(n.add(u[2],0,[["enter",y,a]]),r!==2){const S=a.events[u[2]],v=a.events[u[3]];if(S[1].end=Object.assign({},v[1].end),S[1].type="chunkText",S[1].contentType="text",u[3]>u[2]+1){const C=u[2]+1,B=u[3]-u[2]-1;n.add(C,B,[])}}n.add(u[3]+1,0,[["exit",y,a]])}return s!==void 0&&(h.end=Object.assign({},xi(a.events,s)),n.add(s,0,[["exit",h,a]]),h=void 0),h}function zp(n,a,u,r,s){const h=[],f=xi(a.events,u);s&&(s.end=Object.assign({},f),h.push(["exit",s,a])),r.end=Object.assign({},f),h.push(["exit",r,a]),n.add(u+1,0,h)}function xi(n,a){const u=n[a],r=u[0]==="enter"?"start":"end";return u[1][r]}const _E={name:"tasklistCheck",tokenize:OE};function DE(){return{text:{91:_E}}}function OE(n,a,u){const r=this;return s;function s(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?u(d):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(d),n.exit("taskListCheckMarker"),h)}function h(d){return Xe(d)?(n.enter("taskListCheckValueUnchecked"),n.consume(d),n.exit("taskListCheckValueUnchecked"),f):d===88||d===120?(n.enter("taskListCheckValueChecked"),n.consume(d),n.exit("taskListCheckValueChecked"),f):u(d)}function f(d){return d===93?(n.enter("taskListCheckMarker"),n.consume(d),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),p):u(d)}function p(d){return fe(d)?a(d):Ae(d)?n.check({tokenize:ME},a,u)(d):u(d)}}function ME(n,a,u){return De(n,r,"whitespace");function r(s){return s===null?u(s):a(s)}}function NE(n){return Jp([iE(),dE(),kE(n),zE(),DE()])}const RE={};function qg(n){const a=this,u=n||RE,r=a.data(),s=r.micromarkExtensions||(r.micromarkExtensions=[]),h=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),f=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);s.push(NE(u)),h.push(eE()),f.push(tE(u))}function Yg({content:n,isStreaming:a}){const[u,r]=ce.useState(!1);if(!n)return null;const s=n.split(`
194
- `)[0],h=s.length>60?s.slice(0,60)+"…":s;return L.jsxs("div",{className:"my-2",children:[L.jsxs("button",{onClick:()=>r(!u),className:"flex items-center gap-1.5 text-xs text-gray-400 hover:text-gray-600 transition-colors",children:[L.jsx(Y0,{size:12,className:a?"animate-pulse":""}),u?L.jsx(X0,{size:12}):L.jsx(G0,{size:12}),L.jsx("span",{className:"italic",children:a?"Thinking…":h})]}),u&&L.jsx("div",{className:"mt-1.5 ml-5 text-xs text-gray-400 italic whitespace-pre-wrap leading-relaxed border-l-2 border-gray-200 pl-3",children:n})]})}const jE={"file-text":nr,search:Rp,"folder-open":ss};function Vg({tool:n}){const a=C0[n.name],u=a?jE[a.iconKey]??nr:nr,r=(a==null?void 0:a.label)??n.name;return L.jsxs("div",{className:"inline-flex items-center gap-1.5 rounded-lg border border-gray-200 bg-white px-2.5 py-1.5 text-[11px] text-gray-600",children:[n.status==="running"?L.jsx(Mp,{size:12,className:"text-emerald-500 animate-spin shrink-0"}):n.status==="error"?L.jsx(Dp,{size:12,className:"text-red-400 shrink-0"}):L.jsx(Op,{size:12,className:"text-emerald-500 shrink-0"}),L.jsx(u,{size:12,className:"text-gray-400 shrink-0"}),L.jsx("span",{children:r}),n.summary&&L.jsx("span",{className:"text-gray-400 truncate max-w-[120px]",children:n.summary})]})}function LE({label:n,state:a}){return L.jsxs("div",{className:"inline-flex items-center gap-1.5 rounded-lg border border-gray-200 bg-white px-2.5 py-1.5 text-[11px] text-gray-500 my-1.5",children:[a==="running"?L.jsx(Mp,{size:12,className:"text-blue-400 animate-spin shrink-0"}):a==="error"?L.jsx(Dp,{size:12,className:"text-amber-400 shrink-0"}):L.jsx(Op,{size:12,className:"text-blue-400 shrink-0"}),L.jsx("span",{children:n})]})}function UE({block:n,index:a}){switch(n.type){case"thinking":return L.jsx(Yg,{content:n.content,isStreaming:n.isStreaming},`thinking-${a}`);case"text":return n.content?L.jsx("div",{className:"agentxl-prose prose prose-sm max-w-none text-gray-800 prose-p:my-1.5 prose-p:leading-relaxed prose-headings:my-2 prose-headings:text-gray-900 prose-h1:text-base prose-h1:font-semibold prose-h2:text-[13px] prose-h2:font-semibold prose-h3:text-[12px] prose-h3:font-semibold prose-ul:my-1.5 prose-ol:my-1.5 prose-li:my-0.5 prose-li:text-[13px] prose-pre:my-2 prose-code:text-emerald-700 prose-code:bg-emerald-50 prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:text-xs prose-code:before:content-none prose-code:after:content-none prose-pre:bg-gray-900 prose-pre:text-gray-100 prose-pre:text-xs prose-pre:overflow-x-auto prose-a:text-emerald-600 prose-table:text-xs prose-strong:text-gray-900 prose-strong:font-semibold prose-blockquote:text-[12px] prose-blockquote:text-gray-500 prose-blockquote:border-gray-200 prose-blockquote:my-2 prose-hr:my-3",children:L.jsx(gg,{remarkPlugins:[qg],children:n.content})},`text-${a}`):null;case"tool_call":return L.jsx("div",{className:"my-1.5",children:L.jsx(Vg,{tool:n.tool})},`tool-${n.tool.id}`);case"status":return L.jsx("div",{children:L.jsx(LE,{label:n.label,state:n.state})},`status-${a}`);default:return null}}function BE({message:n}){var u;if(n.role==="system")return L.jsx("div",{className:"flex justify-center animate-message-in",children:L.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg px-3 py-2 text-xs text-red-600 max-w-[90%]",children:n.content})});if(n.role==="user")return L.jsx("div",{className:"flex justify-end animate-message-in",children:L.jsx("div",{className:"bg-emerald-600 text-white rounded-2xl rounded-br-md px-3.5 py-2.5 text-[14px] leading-relaxed max-w-[85%]",children:n.content})});const a=n.blocks&&n.blocks.length>0;return L.jsx("div",{className:"flex justify-start animate-message-in",children:L.jsx("div",{className:"max-w-[95%] border border-gray-100 rounded-xl px-4 py-3 bg-gray-50/60",children:a?n.blocks.map((r,s)=>L.jsx(UE,{block:r,index:s},s)):L.jsxs(L.Fragment,{children:[(u=n.thinking)==null?void 0:u.map((r,s)=>L.jsx(Yg,{content:r.content,isStreaming:r.isStreaming},s)),n.toolCalls&&n.toolCalls.length>0&&L.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2",children:n.toolCalls.map(r=>L.jsx(Vg,{tool:r},r.id))}),n.content&&L.jsx("div",{className:"agentxl-prose prose prose-sm max-w-none text-gray-800",children:L.jsx(gg,{remarkPlugins:[qg],children:n.content})})]})})})}function HE({value:n,onChange:a,onSend:u,onStop:r,isStreaming:s,disabled:h}){const f=ce.useRef(null);ce.useEffect(()=>{const d=f.current;d&&(d.style.height="auto",d.style.height=Math.min(d.scrollHeight,120)+"px")},[n]),ce.useEffect(()=>{var d;s||(d=f.current)==null||d.focus()},[s]);const p=ce.useCallback(d=>{d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),u(n))},[n,u]);return L.jsx("div",{className:"border-t border-gray-100 p-3",children:L.jsxs("div",{className:"flex items-end gap-2",children:[L.jsx("textarea",{ref:f,value:n,onChange:d=>a(d.target.value),onKeyDown:p,placeholder:"Ask about your source files…",disabled:s||h,rows:1,className:"flex-1 resize-none rounded-xl border border-gray-200 px-3 py-2.5 text-[14px] outline-none focus:border-emerald-500 focus:ring-1 focus:ring-emerald-500/30 disabled:opacity-50 disabled:bg-gray-50 placeholder:text-gray-400"}),s?L.jsx("button",{onClick:r,className:"btn-press shrink-0 w-9 h-9 flex items-center justify-center rounded-xl bg-red-500 text-white hover:bg-red-600 transition-colors",title:"Stop",children:L.jsx(ox,{size:14})}):L.jsx("button",{onClick:()=>u(n),disabled:!n.trim()||h,className:"btn-press shrink-0 w-9 h-9 flex items-center justify-center rounded-xl bg-emerald-600 text-white hover:bg-emerald-700 transition-colors disabled:opacity-30 disabled:hover:bg-emerald-600",title:"Send",children:L.jsx(ix,{size:14})})]})})}function qE(){const{status:n,connectionError:a,serverDown:u,markServerDown:r}=E0(),{workbookId:s,workbookIdentityInput:h,workbookResolveError:f,isResolvingWorkbook:p}=A0(!!(n!=null&&n.authenticated)),{folderStatus:d,folderError:m,isLoadingFolderStatus:x,isSavingFolder:y,saveFolderLink:S}=z0(s,h,!!(n!=null&&n.authenticated)),{messages:v,isStreaming:C,sendMessage:B,stopStreaming:Z}=N0(s,r),[O,Q]=ce.useState(""),[H,ie]=ce.useState(!1),[ae,U]=ce.useState(!1),[W,se]=ce.useState(null),pe=ce.useRef(null);ce.useEffect(()=>{var $;($=pe.current)==null||$.scrollIntoView({behavior:"smooth"})},[v]);const R=ce.useCallback($=>{const ge=$.trim();ge&&(B(ge),Q(""))},[B]),te=ce.useCallback($=>{Q($)},[]),ee=ce.useCallback(async $=>{se(null),await S($)&&ie(!1)},[S]),Se=ce.useCallback(async()=>{se(null),U(!0);try{return(await v0((d==null?void 0:d.folderPath)??null)).folderPath}catch($){return se($ instanceof Error?$.message:"Could not open the folder picker. Paste the folder path manually instead."),null}finally{U(!1)}},[d==null?void 0:d.folderPath]);if(ce.useEffect(()=>{se(null)},[s]),a&&!n)return L.jsx(R0,{});if(!n)return L.jsx("div",{className:"flex items-center justify-center h-full",children:L.jsx("div",{className:"text-sm text-gray-400",children:"Connecting…"})});if(!n.authenticated)return L.jsx(cx,{});if(p&&!s)return L.jsx("div",{className:"flex items-center justify-center h-full",children:L.jsx("div",{className:"text-sm text-gray-400",children:"Resolving workbook…"})});const ne=!!(d!=null&&d.linked&&d.folderPath),J=!s||x||!ne||H,M=v.length>0,F=u||!s||!!f||!!m||!ne||H;return L.jsxs("div",{className:"flex flex-col h-full bg-white",children:[u&&L.jsxs("div",{className:"bg-amber-50 border-b border-amber-100 px-4 py-2 flex items-center gap-2 text-xs text-amber-700",children:[L.jsx("div",{className:"w-2 h-2 bg-amber-400 rounded-full animate-pulse"}),"Server disconnected — reconnecting…"]}),f&&L.jsx("div",{className:"bg-red-50 border-b border-red-100 px-4 py-2 text-xs text-red-700",children:"Could not resolve workbook identity. Reopen the taskpane or workbook and try again."}),L.jsx("div",{className:"flex-1 overflow-y-auto",children:J?s?L.jsx(sx,{workbookId:s,workbookName:(h==null?void 0:h.workbookName)??null,currentFolderPath:(d==null?void 0:d.folderPath)??null,isSaving:y||x,isPickingFolder:ae,error:W??m,onPickFolder:Se,onSave:ee,onCancel:ne?()=>ie(!1):void 0}):L.jsx("div",{className:"flex items-center justify-center h-full",children:L.jsx("div",{className:"text-sm text-gray-400",children:"Preparing folder link…"})}):M?L.jsxs("div",{className:"p-4 space-y-4",children:[s&&L.jsxs("div",{className:"space-y-1 px-1",children:[L.jsxs("div",{className:"text-[11px] text-gray-400",children:["Workbook ID: ",s]}),(d==null?void 0:d.folderPath)&&L.jsxs("div",{className:"text-[11px] text-gray-400 break-all",children:["Linked folder: ",d.folderPath]})]}),v.map($=>L.jsx(BE,{message:$},$.id)),C&&!v.some($=>{var ge;return $.role==="assistant"&&($.content||((ge=$.thinking)==null?void 0:ge.length))})&&L.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-400 pl-1 animate-message-in",children:[L.jsx("div",{className:"w-2 h-2 bg-emerald-400 rounded-full animate-pulse"}),L.jsx("span",{children:"Thinking…"})]}),L.jsx("div",{ref:pe})]}):L.jsx(hx,{status:n,workbookId:s,linkedFolderPath:d.folderPath,totalFiles:d.totalFiles,supportedFiles:d.supportedFiles,onQuickAction:te,onChangeFolder:()=>ie(!0)})}),ne&&!H&&L.jsx(HE,{value:O,onChange:Q,onSend:R,onStop:Z,isStreaming:C,disabled:F})]})}function Cp(){const n=document.getElementById("root");if(!n)throw new Error("Root element not found");h0.createRoot(n).render(L.jsx(ce.StrictMode,{children:L.jsx(qE,{})}))}typeof Office<"u"&&Office.onReady?Office.onReady(()=>{Cp()}):Cp();