agentxl 1.1.3 → 1.1.4
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.
- package/README.md +17 -37
- package/bin/agentxl.js +460 -521
- package/dist/agent/models.d.ts +2 -3
- package/dist/agent/models.d.ts.map +1 -1
- package/dist/agent/models.js +14 -18
- package/dist/agent/models.js.map +1 -1
- package/dist/agent/session.d.ts +13 -1
- package/dist/agent/session.d.ts.map +1 -1
- package/dist/agent/session.js +29 -3
- package/dist/agent/session.js.map +1 -1
- package/dist/server/excel-bridge.d.ts.map +1 -1
- package/dist/server/excel-bridge.js +6 -1
- package/dist/server/excel-bridge.js.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +6 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/routes/agent.d.ts.map +1 -1
- package/dist/server/routes/agent.js +87 -0
- package/dist/server/routes/agent.js.map +1 -1
- package/dist/server/routes/auth.d.ts +12 -0
- package/dist/server/routes/auth.d.ts.map +1 -0
- package/dist/server/routes/auth.js +50 -0
- package/dist/server/routes/auth.js.map +1 -0
- package/package.json +5 -5
- package/taskpane/dist/assets/index-BMcoQ8v_.js +229 -0
- package/taskpane/dist/assets/index-DY4oaVhg.css +1 -0
- package/taskpane/dist/index.html +2 -2
- package/taskpane/dist/assets/index-BnD8psE_.js +0 -224
- package/taskpane/dist/assets/index-BuAcDfRq.css +0 -1
|
@@ -0,0 +1,229 @@
|
|
|
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"]'))u(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"&&u(f)}).observe(document,{childList:!0,subtree:!0});function r(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 u(s){if(s.ep)return;s.ep=!0;const h=r(s);fetch(s.href,h)}})();function Rp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _c={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 Nm;function s0(){if(Nm)return ya;Nm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(u,s,h){var f=null;if(h!==void 0&&(f=""+h),s.key!==void 0&&(f=""+s.key),"key"in s){h={};for(var m in s)m!=="key"&&(h[m]=s[m])}else h=s;return s=h.ref,{$$typeof:n,type:u,key:f,ref:s!==void 0?s:null,props:h}}return ya.Fragment=a,ya.jsx=r,ya.jsxs=r,ya}var Dm;function f0(){return Dm||(Dm=1,_c.exports=s0()),_c.exports}var E=f0(),Nc={exports:{}},ge={};/**
|
|
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 Om;function h0(){if(Om)return ge;Om=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function v(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,G={};function O(w,L,k){this.props=w,this.context=L,this.refs=G,this.updater=k||C}O.prototype.isReactComponent={},O.prototype.setState=function(w,L){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,L,"setState")},O.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function Q(){}Q.prototype=O.prototype;function q(w,L,k){this.props=w,this.context=L,this.refs=G,this.updater=k||C}var te=q.prototype=new Q;te.constructor=q,H(te,O.prototype),te.isPureReactComponent=!0;var ne=Array.isArray;function B(){}var $={H:null,A:null,T:null,S:null},he=Object.prototype.hasOwnProperty;function me(w,L,k){var P=k.ref;return{$$typeof:n,type:w,key:L,ref:P!==void 0?P:null,props:k}}function R(w,L){return me(w.type,L,w.props)}function ee(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function W(w){var L={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(k){return L[k]})}var Se=/\/+/g;function ae(w,L){return typeof w=="object"&&w!==null&&w.key!=null?W(""+w.key):L.toString(36)}function J(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(B,B):(w.status="pending",w.then(function(L){w.status==="pending"&&(w.status="fulfilled",w.value=L)},function(L){w.status==="pending"&&(w.status="rejected",w.reason=L)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,L,k,P,de){var oe=typeof w;(oe==="undefined"||oe==="boolean")&&(w=null);var we=!1;if(w===null)we=!0;else switch(oe){case"bigint":case"string":case"number":we=!0;break;case"object":switch(w.$$typeof){case n:case a:we=!0;break;case x:return we=w._init,M(we(w._payload),L,k,P,de)}}if(we)return de=de(w),we=P===""?"."+ae(w,0):P,ne(de)?(k="",we!=null&&(k=we.replace(Se,"$&/")+"/"),M(de,L,k,"",function(Yt){return Yt})):de!=null&&(ee(de)&&(de=R(de,k+(de.key==null||w&&w.key===de.key?"":(""+de.key).replace(Se,"$&/")+"/")+we)),L.push(de)),1;we=0;var Fe=P===""?".":P+":";if(ne(w))for(var Ue=0;Ue<w.length;Ue++)P=w[Ue],oe=Fe+ae(P,Ue),we+=M(P,L,k,oe,de);else if(Ue=v(w),typeof Ue=="function")for(w=Ue.call(w),Ue=0;!(P=w.next()).done;)P=P.value,oe=Fe+ae(P,Ue++),we+=M(P,L,k,oe,de);else if(oe==="object"){if(typeof w.then=="function")return M(J(w),L,k,P,de);throw L=String(w),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return we}function F(w,L,k){if(w==null)return w;var P=[],de=0;return M(w,P,"","",function(oe){return L.call(k,oe,de++)}),P}function ie(w){if(w._status===-1){var L=w._result;L=L(),L.then(function(k){(w._status===0||w._status===-1)&&(w._status=1,w._result=k)},function(k){(w._status===0||w._status===-1)&&(w._status=2,w._result=k)}),w._status===-1&&(w._status=0,w._result=L)}if(w._status===1)return w._result.default;throw w._result}var ve=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},A={map:F,forEach:function(w,L,k){F(w,function(){L.apply(this,arguments)},k)},count:function(w){var L=0;return F(w,function(){L++}),L},toArray:function(w){return F(w,function(L){return L})||[]},only:function(w){if(!ee(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return ge.Activity=y,ge.Children=A,ge.Component=O,ge.Fragment=r,ge.Profiler=s,ge.PureComponent=q,ge.StrictMode=u,ge.Suspense=p,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ge.__COMPILER_RUNTIME={__proto__:null,c:function(w){return $.H.useMemoCache(w)}},ge.cache=function(w){return function(){return w.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(w,L,k){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var P=H({},w.props),de=w.key;if(L!=null)for(oe in L.key!==void 0&&(de=""+L.key),L)!he.call(L,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&L.ref===void 0||(P[oe]=L[oe]);var oe=arguments.length-2;if(oe===1)P.children=k;else if(1<oe){for(var we=Array(oe),Fe=0;Fe<oe;Fe++)we[Fe]=arguments[Fe+2];P.children=we}return me(w.type,de,P)},ge.createContext=function(w){return w={$$typeof:f,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:h,_context:w},w},ge.createElement=function(w,L,k){var P,de={},oe=null;if(L!=null)for(P in L.key!==void 0&&(oe=""+L.key),L)he.call(L,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(de[P]=L[P]);var we=arguments.length-2;if(we===1)de.children=k;else if(1<we){for(var Fe=Array(we),Ue=0;Ue<we;Ue++)Fe[Ue]=arguments[Ue+2];de.children=Fe}if(w&&w.defaultProps)for(P in we=w.defaultProps,we)de[P]===void 0&&(de[P]=we[P]);return me(w,oe,de)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(w){return{$$typeof:m,render:w}},ge.isValidElement=ee,ge.lazy=function(w){return{$$typeof:x,_payload:{_status:-1,_result:w},_init:ie}},ge.memo=function(w,L){return{$$typeof:d,type:w,compare:L===void 0?null:L}},ge.startTransition=function(w){var L=$.T,k={};$.T=k;try{var P=w(),de=$.S;de!==null&&de(k,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(B,ve)}catch(oe){ve(oe)}finally{L!==null&&k.types!==null&&(L.types=k.types),$.T=L}},ge.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ge.use=function(w){return $.H.use(w)},ge.useActionState=function(w,L,k){return $.H.useActionState(w,L,k)},ge.useCallback=function(w,L){return $.H.useCallback(w,L)},ge.useContext=function(w){return $.H.useContext(w)},ge.useDebugValue=function(){},ge.useDeferredValue=function(w,L){return $.H.useDeferredValue(w,L)},ge.useEffect=function(w,L){return $.H.useEffect(w,L)},ge.useEffectEvent=function(w){return $.H.useEffectEvent(w)},ge.useId=function(){return $.H.useId()},ge.useImperativeHandle=function(w,L,k){return $.H.useImperativeHandle(w,L,k)},ge.useInsertionEffect=function(w,L){return $.H.useInsertionEffect(w,L)},ge.useLayoutEffect=function(w,L){return $.H.useLayoutEffect(w,L)},ge.useMemo=function(w,L){return $.H.useMemo(w,L)},ge.useOptimistic=function(w,L){return $.H.useOptimistic(w,L)},ge.useReducer=function(w,L,k){return $.H.useReducer(w,L,k)},ge.useRef=function(w){return $.H.useRef(w)},ge.useState=function(w){return $.H.useState(w)},ge.useSyncExternalStore=function(w,L,k){return $.H.useSyncExternalStore(w,L,k)},ge.useTransition=function(){return $.H.useTransition()},ge.version="19.2.4",ge}var Mm;function fs(){return Mm||(Mm=1,Nc.exports=h0()),Nc.exports}var ue=fs(),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 jm;function d0(){return jm||(jm=1,(function(n){function a(M,F){var ie=M.length;M.push(F);e:for(;0<ie;){var ve=ie-1>>>1,A=M[ve];if(0<s(A,F))M[ve]=F,M[ie]=A,ie=ve;else break e}}function r(M){return M.length===0?null:M[0]}function u(M){if(M.length===0)return null;var F=M[0],ie=M.pop();if(ie!==F){M[0]=ie;e:for(var ve=0,A=M.length,w=A>>>1;ve<w;){var L=2*(ve+1)-1,k=M[L],P=L+1,de=M[P];if(0>s(k,ie))P<A&&0>s(de,k)?(M[ve]=de,M[P]=ie,ve=P):(M[ve]=k,M[L]=ie,ve=L);else if(P<A&&0>s(de,ie))M[ve]=de,M[P]=ie,ve=P;else break e}}return F}function s(M,F){var ie=M.sortIndex-F.sortIndex;return ie!==0?ie: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,m=f.now();n.unstable_now=function(){return f.now()-m}}var p=[],d=[],x=1,y=null,S=3,v=!1,C=!1,H=!1,G=!1,O=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function te(M){for(var F=r(d);F!==null;){if(F.callback===null)u(d);else if(F.startTime<=M)u(d),F.sortIndex=F.expirationTime,a(p,F);else break;F=r(d)}}function ne(M){if(H=!1,te(M),!C)if(r(p)!==null)C=!0,B||(B=!0,W());else{var F=r(d);F!==null&&J(ne,F.startTime-M)}}var B=!1,$=-1,he=5,me=-1;function R(){return G?!0:!(n.unstable_now()-me<he)}function ee(){if(G=!1,B){var M=n.unstable_now();me=M;var F=!0;try{e:{C=!1,H&&(H=!1,Q($),$=-1),v=!0;var ie=S;try{t:{for(te(M),y=r(p);y!==null&&!(y.expirationTime>M&&R());){var ve=y.callback;if(typeof ve=="function"){y.callback=null,S=y.priorityLevel;var A=ve(y.expirationTime<=M);if(M=n.unstable_now(),typeof A=="function"){y.callback=A,te(M),F=!0;break t}y===r(p)&&u(p),te(M)}else u(p);y=r(p)}if(y!==null)F=!0;else{var w=r(d);w!==null&&J(ne,w.startTime-M),F=!1}}break e}finally{y=null,S=ie,v=!1}F=void 0}}finally{F?W():B=!1}}}var W;if(typeof q=="function")W=function(){q(ee)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ae=Se.port2;Se.port1.onmessage=ee,W=function(){ae.postMessage(null)}}else W=function(){O(ee,0)};function J(M,F){$=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"):he=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 ie=S;S=F;try{return M()}finally{S=ie}},n.unstable_requestPaint=function(){G=!0},n.unstable_runWithPriority=function(M,F){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ie=S;S=M;try{return F()}finally{S=ie}},n.unstable_scheduleCallback=function(M,F,ie){var ve=n.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?ve+ie:ve):ie=ve,M){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=ie+A,M={id:x++,callback:F,priorityLevel:M,startTime:ie,expirationTime:A,sortIndex:-1},ie>ve?(M.sortIndex=ie,a(d,M),r(p)===null&&M===r(d)&&(H?(Q($),$=-1):H=!0,J(ne,ie-ve))):(M.sortIndex=A,a(p,M),C||v||(C=!0,B||(B=!0,W()))),M},n.unstable_shouldYield=R,n.unstable_wrapCallback=function(M){var F=S;return function(){var ie=S;S=F;try{return M.apply(this,arguments)}finally{S=ie}}}})(Mc)),Mc}var Rm;function m0(){return Rm||(Rm=1,Oc.exports=d0()),Oc.exports}var jc={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 Lm;function p0(){if(Lm)return mt;Lm=1;var n=fs();function a(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)d+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function h(p,d,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:p,containerInfo:d,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,mt.createPortal=function(p,d){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(a(299));return h(p,d,null,x)},mt.flushSync=function(p){var d=f.T,x=u.p;try{if(f.T=null,u.p=2,p)return p()}finally{f.T=d,u.p=x,u.d.f()}},mt.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,u.d.C(p,d))},mt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},mt.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var x=d.as,y=m(x,d.crossOrigin),S=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;x==="style"?u.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:v}):x==="script"&&u.d.X(p,{crossOrigin:y,integrity:S,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},mt.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var x=m(d.as,d.crossOrigin);u.d.M(p,{crossOrigin:x,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&u.d.M(p)},mt.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var x=d.as,y=m(x,d.crossOrigin);u.d.L(p,x,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},mt.preloadModule=function(p,d){if(typeof p=="string")if(d){var x=m(d.as,d.crossOrigin);u.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:x,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else u.d.m(p)},mt.requestFormReset=function(p){u.d.r(p)},mt.unstable_batchedUpdates=function(p,d){return p(d)},mt.useFormState=function(p,d,x){return f.H.useFormState(p,d,x)},mt.useFormStatus=function(){return f.H.useHostTransitionStatus()},mt.version="19.2.4",mt}var Um;function g0(){if(Um)return jc.exports;Um=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(),jc.exports=p0(),jc.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 Bm;function y0(){if(Bm)return xa;Bm=1;var n=m0(),a=fs(),r=g0();function u(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 m(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 p(e){if(h(e)!==e)throw Error(u(188))}function d(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(u(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 p(o),e;if(c===i)return p(o),t;c=c.sibling}throw Error(u(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(u(189))}}if(l.alternate!==i)throw Error(u(190))}if(l.tag!==3)throw Error(u(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"),H=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),q=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function ae(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 H:return"Fragment";case O:return"Profiler";case G:return"StrictMode";case ne:return"Suspense";case B:return"SuspenseList";case me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case q:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case te:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case he:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var J=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},ve=[],A=-1;function w(e){return{current:e}}function L(e){0>A||(e.current=ve[A],ve[A]=null,A--)}function k(e,t){A++,ve[A]=e.current,e.current=t}var P=w(null),de=w(null),oe=w(null),we=w(null);function Fe(e,t){switch(k(oe,t),k(de,e),k(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Pd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Pd(t),e=em(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(P),k(P,e)}function Ue(){L(P),L(de),L(oe)}function Yt(e){e.memoizedState!==null&&k(we,e);var t=P.current,l=em(t,e.type);t!==l&&(k(de,e),k(P,l))}function fn(e){de.current===e&&(L(P),L(de)),we.current===e&&(L(we),da._currentValue=ie)}var Ai,Da;function hn(e){if(Ai===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ai=t&&t[1]||"",Da=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ai+e+Da}var _l=!1;function Nl(e,t){if(!e||_l)return"";_l=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(U){var j=U}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(U){j=U}e.call(Z.prototype)}}else{try{throw Error()}catch(U){j=U}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(U){if(U&&j&&typeof U.stack=="string")return[U.stack,j.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 Y=`
|
|
46
|
+
`+T[i].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=i&&0<=o);break}}}finally{_l=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?hn(l):""}function Oa(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 Nl(e.type,!1);case 11:return Nl(e.type.render,!1);case 1:return Nl(e.type,!0);case 31:return hn("Activity");default:return""}}function Ma(e){try{var t="",l=null;do t+=Oa(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,Ti=n.unstable_cancelCallback,du=n.unstable_shouldYield,mu=n.unstable_requestPaint,yt=n.unstable_now,pu=n.unstable_getCurrentPriorityLevel,X=n.unstable_ImmediatePriority,I=n.unstable_UserBlockingPriority,pe=n.unstable_NormalPriority,ke=n.unstable_LowPriority,je=n.unstable_IdlePriority,Dt=n.log,dn=n.unstable_setDisableYieldValue,xt=null,at=null;function St(e){if(typeof Dt=="function"&&dn(e),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(xt,e)}catch{}}var Ye=Math.clz32?Math.clz32:Ig,Mn=Math.log,Pt=Math.LN2;function Ig(e){return e>>>=0,e===0?32:31-(Mn(e)/Pt|0)|0}var ja=256,Ra=262144,La=4194304;function ul(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=ul(i):(g&=b,g!==0?o=ul(g):l||(l=b&~e,l!==0&&(o=ul(l))))):(b=i&~c,b!==0?o=ul(b):g!==0?o=ul(g):l||(l=i&~e,l!==0&&(o=ul(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 wi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $g(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 Ms(){var e=La;return La<<=1,(La&62914560)===0&&(La=4194304),e}function gu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function zi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Wg(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 Y=31-Ye(l),Z=1<<Y;b[Y]=0,T[Y]=-1;var j=D[Y];if(j!==null)for(D[Y]=null,Y=0;Y<j.length;Y++){var U=j[Y];U!==null&&(U.lane&=-536870913)}l&=~Z}i!==0&&js(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function js(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 Rs(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 Ls(e,t){var l=t&-t;return l=(l&42)!==0?1:yu(l),(l&(e.suspendedLanes|t))!==0?0:l}function yu(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 xu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Us(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:Em(e.type))}function Bs(e,t){var l=F.p;try{return F.p=e,t()}finally{F.p=l}}var jn=Math.random().toString(36).slice(2),ct="__reactFiber$"+jn,kt="__reactProps$"+jn,Ml="__reactContainer$"+jn,bu="__reactEvents$"+jn,Pg="__reactListeners$"+jn,ey="__reactHandles$"+jn,Hs="__reactResources$"+jn,Ci="__reactMarker$"+jn;function vu(e){delete e[ct],delete e[kt],delete e[bu],delete e[Pg],delete e[ey]}function jl(e){var t=e[ct];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ml]||l[ct]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=um(e);e!==null;){if(l=e[ct])return l;e=um(e)}return t}e=l,l=e.parentNode}return null}function Rl(e){if(e=e[ct]||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(u(33))}function Ll(e){var t=e[Hs];return t||(t=e[Hs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Ci]=!0}var qs=new Set,Ys={};function ol(e,t){Ul(e,t),Ul(e+"Capture",t)}function Ul(e,t){for(Ys[e]=t,e=0;e<t.length;e++)qs.add(t[e])}var ty=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]*$"),Xs={},Vs={};function ny(e){return Dl.call(Vs,e)?!0:Dl.call(Xs,e)?!1:ty.test(e)?Vs[e]=!0:(Xs[e]=!0,!1)}function Ba(e,t,l){if(ny(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 mn(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 Xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ly(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 Su(e){if(!e._valueTracker){var t=Gs(e)?"checked":"value";e._valueTracker=ly(e,t,""+e[t])}}function Qs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=Gs(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 iy=/[\n"\\]/g;function Vt(e){return e.replace(iy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ku(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=""+Xt(t)):e.value!==""+Xt(t)&&(e.value=""+Xt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Eu(e,g,Xt(t)):l!=null?Eu(e,g,Xt(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=""+Xt(b):e.removeAttribute("name")}function Zs(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)){Su(e);return}l=l!=null?""+Xt(l):"",t=t!=null?""+Xt(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),Su(e)}function Eu(e,t,l){t==="number"&&qa(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Bl(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=""+Xt(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 Fs(e,t,l){if(t!=null&&(t=""+Xt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Xt(l):""}function Ks(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(u(92));if(J(i)){if(1<i.length)throw Error(u(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=Xt(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),Su(e)}function Hl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var ay=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 Js(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||ay.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Is(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(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&&Js(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&Js(e,c,t[c])}function Au(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 ry=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"]]),uy=/^[\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 uy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pn(){}var Tu=null;function wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ql=null,Yl=null;function $s(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(ku(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="'+Vt(""+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(u(90));ku(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&&Qs(i)}break e;case"textarea":Fs(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Bl(e,!!l.multiple,t,!1)}}}var zu=!1;function Ws(e,t,l){if(zu)return e(t,l);zu=!0;try{var i=e(t);return i}finally{if(zu=!1,(ql!==null||Yl!==null)&&(Cr(),ql&&(t=ql,e=Yl,Yl=ql=null,$s(t),e)))for(t=0;t<e.length;t++)$s(e[t])}}function Ni(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(u(231,t,typeof l));return l}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cu=!1;if(gn)try{var Di={};Object.defineProperty(Di,"passive",{get:function(){Cu=!0}}),window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Cu=!1}var Rn=null,_u=null,Xa=null;function Ps(){if(Xa)return Xa;var e,t=_u,l=t.length,i,o="value"in Rn?Rn.value:Rn.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 Xa=o.slice(e,1<i?1-i:void 0)}function Va(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 Ga(){return!0}function ef(){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)?Ga:ef,this.isPropagationStopped=ef,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=Ga)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ga)},persist:function(){},isPersistent:Ga}),t}var cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qa=Et(cl),Oi=y({},cl,{view:0,detail:0}),oy=Et(Oi),Nu,Du,Mi,Za=y({},Oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mu,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!==Mi&&(Mi&&e.type==="mousemove"?(Nu=e.screenX-Mi.screenX,Du=e.screenY-Mi.screenY):Du=Nu=0,Mi=e),Nu)},movementY:function(e){return"movementY"in e?e.movementY:Du}}),tf=Et(Za),cy=y({},Za,{dataTransfer:0}),sy=Et(cy),fy=y({},Oi,{relatedTarget:0}),Ou=Et(fy),hy=y({},cl,{animationName:0,elapsedTime:0,pseudoElement:0}),dy=Et(hy),my=y({},cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),py=Et(my),gy=y({},cl,{data:0}),nf=Et(gy),yy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xy={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"},by={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=by[e])?!!t[e]:!1}function Mu(){return vy}var Sy=y({},Oi,{key:function(e){if(e.key){var t=yy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Va(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mu,charCode:function(e){return e.type==="keypress"?Va(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Va(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ky=Et(Sy),Ey=y({},Za,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lf=Et(Ey),Ay=y({},Oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mu}),Ty=Et(Ay),wy=y({},cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),zy=Et(wy),Cy=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}),_y=Et(Cy),Ny=y({},cl,{newState:0,oldState:0}),Dy=Et(Ny),Oy=[9,13,27,32],ju=gn&&"CompositionEvent"in window,ji=null;gn&&"documentMode"in document&&(ji=document.documentMode);var My=gn&&"TextEvent"in window&&!ji,af=gn&&(!ju||ji&&8<ji&&11>=ji),rf=" ",uf=!1;function of(e,t){switch(e){case"keyup":return Oy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xl=!1;function jy(e,t){switch(e){case"compositionend":return cf(t);case"keypress":return t.which!==32?null:(uf=!0,rf);case"textInput":return e=t.data,e===rf&&uf?null:e;default:return null}}function Ry(e,t){if(Xl)return e==="compositionend"||!ju&&of(e,t)?(e=Ps(),Xa=_u=Rn=null,Xl=!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 af&&t.locale!=="ko"?null:t.data;default:return null}}var Ly={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 sf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ly[e.type]:t==="textarea"}function ff(e,t,l,i){ql?Yl?Yl.push(i):Yl=[i]:ql=i,t=Rr(t,"onChange"),0<t.length&&(l=new Qa("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var Ri=null,Li=null;function Uy(e){Fd(e,0)}function Fa(e){var t=_i(e);if(Qs(t))return e}function hf(e,t){if(e==="change")return t}var df=!1;if(gn){var Ru;if(gn){var Lu="oninput"in document;if(!Lu){var mf=document.createElement("div");mf.setAttribute("oninput","return;"),Lu=typeof mf.oninput=="function"}Ru=Lu}else Ru=!1;df=Ru&&(!document.documentMode||9<document.documentMode)}function pf(){Ri&&(Ri.detachEvent("onpropertychange",gf),Li=Ri=null)}function gf(e){if(e.propertyName==="value"&&Fa(Li)){var t=[];ff(t,Li,e,wu(e)),Ws(Uy,t)}}function By(e,t,l){e==="focusin"?(pf(),Ri=t,Li=l,Ri.attachEvent("onpropertychange",gf)):e==="focusout"&&pf()}function Hy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fa(Li)}function qy(e,t){if(e==="click")return Fa(t)}function Yy(e,t){if(e==="input"||e==="change")return Fa(t)}function Xy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:Xy;function Ui(e,t){if(Ot(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)||!Ot(e[o],t[o]))return!1}return!0}function yf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xf(e,t){var l=yf(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=yf(l)}}function bf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vf(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 Uu(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 Vy=gn&&"documentMode"in document&&11>=document.documentMode,Vl=null,Bu=null,Bi=null,Hu=!1;function Sf(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hu||Vl==null||Vl!==qa(i)||(i=Vl,"selectionStart"in i&&Uu(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=Rr(Bu,"onSelect"),0<i.length&&(t=new Qa("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 Gl={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")},qu={},kf={};gn&&(kf=document.createElement("div").style,"AnimationEvent"in window||(delete Gl.animationend.animation,delete Gl.animationiteration.animation,delete Gl.animationstart.animation),"TransitionEvent"in window||delete Gl.transitionend.transition);function fl(e){if(qu[e])return qu[e];if(!Gl[e])return e;var t=Gl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in kf)return qu[e]=t[l];return e}var Ef=fl("animationend"),Af=fl("animationiteration"),Tf=fl("animationstart"),Gy=fl("transitionrun"),Qy=fl("transitionstart"),Zy=fl("transitioncancel"),wf=fl("transitionend"),zf=new Map,Yu="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(" ");Yu.push("scrollEnd");function en(e,t){zf.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)},Gt=[],Ql=0,Xu=0;function Ja(){for(var e=Ql,t=Xu=Ql=0;t<e;){var l=Gt[t];Gt[t++]=null;var i=Gt[t];Gt[t++]=null;var o=Gt[t];Gt[t++]=null;var c=Gt[t];if(Gt[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&&Cf(l,o,c)}}function Ia(e,t,l,i){Gt[Ql++]=e,Gt[Ql++]=t,Gt[Ql++]=l,Gt[Ql++]=i,Xu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Vu(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 Cf(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<ra)throw ra=0,Po=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Zl={};function Fy(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 Mt(e,t,l,i){return new Fy(e,t,l,i)}function Gu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yn(e,t){var l=e.alternate;return l===null?(l=Mt(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 _f(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")Gu(e)&&(g=1);else if(typeof e=="string")g=W1(e,l,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case me:return e=Mt(31,l,t,o),e.elementType=me,e.lanes=c,e;case H:return dl(l.children,o,c,t);case G:g=8,o|=24;break;case O:return e=Mt(12,l,t,o|2),e.elementType=O,e.lanes=c,e;case ne:return e=Mt(13,l,t,o),e.elementType=ne,e.lanes=c,e;case B:return e=Mt(19,l,t,o),e.elementType=B,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:g=10;break e;case Q:g=9;break e;case te:g=11;break e;case $:g=14;break e;case he:g=16,i=null;break e}g=29,l=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=Mt(g,l,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function dl(e,t,l,i){return e=Mt(7,e,i,t),e.lanes=l,e}function Qu(e,t,l){return e=Mt(6,e,null,t),e.lanes=l,e}function Nf(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function Zu(e,t,l){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Df=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var l=Df.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ma(t)},Df.set(e,t),t)}return{value:e,source:t,stack:Ma(t)}}var Fl=[],Kl=0,Pa=null,Hi=0,Zt=[],Ft=0,Ln=null,an=1,rn="";function xn(e,t){Fl[Kl++]=Hi,Fl[Kl++]=Pa,Pa=e,Hi=t}function Of(e,t,l){Zt[Ft++]=an,Zt[Ft++]=rn,Zt[Ft++]=Ln,Ln=e;var i=an;e=rn;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,rn=c+e}else an=1<<c|l<<o|i,rn=e}function Fu(e){e.return!==null&&(xn(e,1),Of(e,1,0))}function Ku(e){for(;e===Pa;)Pa=Fl[--Kl],Fl[Kl]=null,Hi=Fl[--Kl],Fl[Kl]=null;for(;e===Ln;)Ln=Zt[--Ft],Zt[Ft]=null,rn=Zt[--Ft],Zt[Ft]=null,an=Zt[--Ft],Zt[Ft]=null}function Mf(e,t){Zt[Ft++]=an,Zt[Ft++]=rn,Zt[Ft++]=Ln,an=t.id,rn=t.overflow,Ln=e}var st=null,Qe=null,_e=!1,Un=null,Kt=!1,Ju=Error(u(519));function Bn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qi(Qt(t,e)),Ju}function jf(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[ct]=e,t[kt]=i,l){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(l=0;l<oa.length;l++)Ae(oa[l],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),Zs(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),Ks(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||$d(t.textContent,l)?(i.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),i.onScroll!=null&&Ae("scroll",t),i.onScrollEnd!=null&&Ae("scrollend",t),i.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||Bn(e,!0)}function Rf(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Kt=!1;return;case 27:case 3:Kt=!0;return;default:st=st.return}}function Jl(e){if(e!==st)return!1;if(!_e)return Rf(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&&Qe&&Bn(e),Rf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Qe=rm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Qe=rm(e)}else t===27?(t=Qe,Wn(e.type)?(e=bc,bc=null,Qe=e):Qe=t):Qe=st?It(e.stateNode.nextSibling):null;return!0}function ml(){Qe=st=null,_e=!1}function Iu(){var e=Un;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),Un=null),e}function qi(e){Un===null?Un=[e]:Un.push(e)}var $u=w(null),pl=null,bn=null;function Hn(e,t,l){k($u,t._currentValue),t._currentValue=l}function vn(e){e._currentValue=$u.current,L($u)}function Wu(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 Pu(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),Wu(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(u(341));g.lanes|=l,c=g.alternate,c!==null&&(c.lanes|=l),Wu(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 Il(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(u(387));if(g=g.memoizedProps,g!==null){var b=o.type;Ot(o.pendingProps.value,g.value)||(e!==null?e.push(b):e=[b])}}else if(o===we.current){if(g=o.alternate,g===null)throw Error(u(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(da):e=[da])}o=o.return}e!==null&&Pu(t,e,l,i),t.flags|=262144}function er(e){for(e=e.firstContext;e!==null;){if(!Ot(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 ft(e){return Lf(pl,e)}function tr(e,t){return pl===null&&gl(e),Lf(e,t)}function Lf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},bn===null){if(e===null)throw Error(u(308));bn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else bn=bn.next=t;return l}var Ky=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()})}},Jy=n.unstable_scheduleCallback,Iy=n.unstable_NormalPriority,et={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function eo(){return{controller:new Ky,data:new Map,refCount:0}}function Yi(e){e.refCount--,e.refCount===0&&Jy(Iy,function(){e.controller.abort()})}var Xi=null,to=0,$l=0,Wl=null;function $y(e,t){if(Xi===null){var l=Xi=[];to=0,$l=ac(),Wl={status:"pending",value:void 0,then:function(i){l.push(i)}}}return to++,t.then(Uf,Uf),t}function Uf(){if(--to===0&&Xi!==null){Wl!==null&&(Wl.status="fulfilled");var e=Xi;Xi=null,$l=0,Wl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Wy(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 Bf=M.S;M.S=function(e,t){Sd=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&$y(e,t),Bf!==null&&Bf(e,t)};var yl=w(null);function no(){var e=yl.current;return e!==null?e:Xe.pooledCache}function nr(e,t){t===null?k(yl,yl.current):k(yl,t.pool)}function Hf(){var e=no();return e===null?null:{parent:et._currentValue,pool:e}}var Pl=Error(u(460)),lo=Error(u(474)),lr=Error(u(542)),ir={then:function(){}};function qf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yf(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,Vf(e),e;default:if(typeof t.status=="string")t.then(pn,pn);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(u(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,Vf(e),e}throw bl=t,Pl}}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,Pl):l}}var bl=null;function Xf(){if(bl===null)throw Error(u(459));var e=bl;return bl=null,e}function Vf(e){if(e===Pl||e===lr)throw Error(u(483))}var ei=null,Vi=0;function ar(e){var t=Vi;return Vi+=1,ei===null&&(ei=[]),Yf(ei,e,t)}function Gi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function rr(e,t){throw t.$$typeof===S?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Gf(e){function t(_,z){if(e){var N=_.deletions;N===null?(_.deletions=[z],_.flags|=16):N.push(z)}}function l(_,z){if(!e)return null;for(;z!==null;)t(_,z),z=z.sibling;return null}function i(_){for(var z=new Map;_!==null;)_.key!==null?z.set(_.key,_):z.set(_.index,_),_=_.sibling;return z}function o(_,z){return _=yn(_,z),_.index=0,_.sibling=null,_}function c(_,z,N){return _.index=N,e?(N=_.alternate,N!==null?(N=N.index,N<z?(_.flags|=67108866,z):N):(_.flags|=67108866,z)):(_.flags|=1048576,z)}function g(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function b(_,z,N,V){return z===null||z.tag!==6?(z=Qu(N,_.mode,V),z.return=_,z):(z=o(z,N),z.return=_,z)}function T(_,z,N,V){var ce=N.type;return ce===H?Y(_,z,N.props.children,V,N.key):z!==null&&(z.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===he&&xl(ce)===z.type)?(z=o(z,N.props),Gi(z,N),z.return=_,z):(z=Wa(N.type,N.key,N.props,null,_.mode,V),Gi(z,N),z.return=_,z)}function D(_,z,N,V){return z===null||z.tag!==4||z.stateNode.containerInfo!==N.containerInfo||z.stateNode.implementation!==N.implementation?(z=Zu(N,_.mode,V),z.return=_,z):(z=o(z,N.children||[]),z.return=_,z)}function Y(_,z,N,V,ce){return z===null||z.tag!==7?(z=dl(N,_.mode,V,ce),z.return=_,z):(z=o(z,N),z.return=_,z)}function Z(_,z,N){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Qu(""+z,_.mode,N),z.return=_,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case v:return N=Wa(z.type,z.key,z.props,null,_.mode,N),Gi(N,z),N.return=_,N;case C:return z=Zu(z,_.mode,N),z.return=_,z;case he:return z=xl(z),Z(_,z,N)}if(J(z)||W(z))return z=dl(z,_.mode,N,null),z.return=_,z;if(typeof z.then=="function")return Z(_,ar(z),N);if(z.$$typeof===q)return Z(_,tr(_,z),N);rr(_,z)}return null}function j(_,z,N,V){var ce=z!==null?z.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return ce!==null?null:b(_,z,""+N,V);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case v:return N.key===ce?T(_,z,N,V):null;case C:return N.key===ce?D(_,z,N,V):null;case he:return N=xl(N),j(_,z,N,V)}if(J(N)||W(N))return ce!==null?null:Y(_,z,N,V,null);if(typeof N.then=="function")return j(_,z,ar(N),V);if(N.$$typeof===q)return j(_,z,tr(_,N),V);rr(_,N)}return null}function U(_,z,N,V,ce){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return _=_.get(N)||null,b(z,_,""+V,ce);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case v:return _=_.get(V.key===null?N:V.key)||null,T(z,_,V,ce);case C:return _=_.get(V.key===null?N:V.key)||null,D(z,_,V,ce);case he:return V=xl(V),U(_,z,N,V,ce)}if(J(V)||W(V))return _=_.get(N)||null,Y(z,_,V,ce,null);if(typeof V.then=="function")return U(_,z,N,ar(V),ce);if(V.$$typeof===q)return U(_,z,N,tr(z,V),ce);rr(z,V)}return null}function le(_,z,N,V){for(var ce=null,De=null,re=z,xe=z=0,Ce=null;re!==null&&xe<N.length;xe++){re.index>xe?(Ce=re,re=null):Ce=re.sibling;var Oe=j(_,re,N[xe],V);if(Oe===null){re===null&&(re=Ce);break}e&&re&&Oe.alternate===null&&t(_,re),z=c(Oe,z,xe),De===null?ce=Oe:De.sibling=Oe,De=Oe,re=Ce}if(xe===N.length)return l(_,re),_e&&xn(_,xe),ce;if(re===null){for(;xe<N.length;xe++)re=Z(_,N[xe],V),re!==null&&(z=c(re,z,xe),De===null?ce=re:De.sibling=re,De=re);return _e&&xn(_,xe),ce}for(re=i(re);xe<N.length;xe++)Ce=U(re,_,xe,N[xe],V),Ce!==null&&(e&&Ce.alternate!==null&&re.delete(Ce.key===null?xe:Ce.key),z=c(Ce,z,xe),De===null?ce=Ce:De.sibling=Ce,De=Ce);return e&&re.forEach(function(ll){return t(_,ll)}),_e&&xn(_,xe),ce}function fe(_,z,N,V){if(N==null)throw Error(u(151));for(var ce=null,De=null,re=z,xe=z=0,Ce=null,Oe=N.next();re!==null&&!Oe.done;xe++,Oe=N.next()){re.index>xe?(Ce=re,re=null):Ce=re.sibling;var ll=j(_,re,Oe.value,V);if(ll===null){re===null&&(re=Ce);break}e&&re&&ll.alternate===null&&t(_,re),z=c(ll,z,xe),De===null?ce=ll:De.sibling=ll,De=ll,re=Ce}if(Oe.done)return l(_,re),_e&&xn(_,xe),ce;if(re===null){for(;!Oe.done;xe++,Oe=N.next())Oe=Z(_,Oe.value,V),Oe!==null&&(z=c(Oe,z,xe),De===null?ce=Oe:De.sibling=Oe,De=Oe);return _e&&xn(_,xe),ce}for(re=i(re);!Oe.done;xe++,Oe=N.next())Oe=U(re,_,xe,Oe.value,V),Oe!==null&&(e&&Oe.alternate!==null&&re.delete(Oe.key===null?xe:Oe.key),z=c(Oe,z,xe),De===null?ce=Oe:De.sibling=Oe,De=Oe);return e&&re.forEach(function(c0){return t(_,c0)}),_e&&xn(_,xe),ce}function qe(_,z,N,V){if(typeof N=="object"&&N!==null&&N.type===H&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case v:e:{for(var ce=N.key;z!==null;){if(z.key===ce){if(ce=N.type,ce===H){if(z.tag===7){l(_,z.sibling),V=o(z,N.props.children),V.return=_,_=V;break e}}else if(z.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===he&&xl(ce)===z.type){l(_,z.sibling),V=o(z,N.props),Gi(V,N),V.return=_,_=V;break e}l(_,z);break}else t(_,z);z=z.sibling}N.type===H?(V=dl(N.props.children,_.mode,V,N.key),V.return=_,_=V):(V=Wa(N.type,N.key,N.props,null,_.mode,V),Gi(V,N),V.return=_,_=V)}return g(_);case C:e:{for(ce=N.key;z!==null;){if(z.key===ce)if(z.tag===4&&z.stateNode.containerInfo===N.containerInfo&&z.stateNode.implementation===N.implementation){l(_,z.sibling),V=o(z,N.children||[]),V.return=_,_=V;break e}else{l(_,z);break}else t(_,z);z=z.sibling}V=Zu(N,_.mode,V),V.return=_,_=V}return g(_);case he:return N=xl(N),qe(_,z,N,V)}if(J(N))return le(_,z,N,V);if(W(N)){if(ce=W(N),typeof ce!="function")throw Error(u(150));return N=ce.call(N),fe(_,z,N,V)}if(typeof N.then=="function")return qe(_,z,ar(N),V);if(N.$$typeof===q)return qe(_,z,tr(_,N),V);rr(_,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,z!==null&&z.tag===6?(l(_,z.sibling),V=o(z,N),V.return=_,_=V):(l(_,z),V=Qu(N,_.mode,V),V.return=_,_=V),g(_)):l(_,z)}return function(_,z,N,V){try{Vi=0;var ce=qe(_,z,N,V);return ei=null,ce}catch(re){if(re===Pl||re===lr)throw re;var De=Mt(29,re,null,_.mode);return De.lanes=V,De.return=_,De}finally{}}}var vl=Gf(!0),Qf=Gf(!1),qn=!1;function io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ao(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 Xn(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Me&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),Cf(e,null,l),t}return Ia(e,i,t,l),$a(e)}function Qi(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,Rs(e,l)}}function ro(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=Wl;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 Y=e.alternate;Y!==null&&(Y=Y.updateQueue,b=Y.lastBaseUpdate,b!==g&&(b===null?Y.firstBaseUpdate=D:b.next=D,Y.lastBaseUpdate=T))}if(c!==null){var Z=o.baseState;g=0,Y=D=T=null,b=c;do{var j=b.lane&-536870913,U=j!==b.lane;if(U?(ze&j)===j:(i&j)===j){j!==0&&j===$l&&(uo=!0),Y!==null&&(Y=Y.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var le=e,fe=b;j=t;var qe=l;switch(fe.tag){case 1:if(le=fe.payload,typeof le=="function"){Z=le.call(qe,Z,j);break e}Z=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=fe.payload,j=typeof le=="function"?le.call(qe,Z,j):le,j==null)break e;Z=y({},Z,j);break e;case 2:qn=!0}}j=b.callback,j!==null&&(e.flags|=64,U&&(e.flags|=8192),U=o.callbacks,U===null?o.callbacks=[j]:U.push(j))}else U={lane:j,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Y===null?(D=Y=U,T=Z):Y=Y.next=U,g|=j;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;U=b,b=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);Y===null&&(T=Z),o.baseState=T,o.firstBaseUpdate=D,o.lastBaseUpdate=Y,c===null&&(o.shared.lanes=0),Fn|=g,e.lanes=g,e.memoizedState=Z}}function Zf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Zf(l[e],t)}var ti=w(null),ur=w(0);function Kf(e,t){e=_n,k(ur,e),k(ti,t),_n=e|t.baseLanes}function oo(){k(ur,_n),k(ti,ti.current)}function co(){_n=ur.current,L(ti),L(ur)}var jt=w(null),Jt=null;function Vn(e){var t=e.alternate;k(We,We.current&1),k(jt,e),Jt===null&&(t===null||ti.current!==null||t.memoizedState!==null)&&(Jt=e)}function so(e){k(We,We.current),k(jt,e),Jt===null&&(Jt=e)}function Jf(e){e.tag===22?(k(We,We.current),k(jt,e),Jt===null&&(Jt=e)):Gn()}function Gn(){k(We,We.current),k(jt,jt.current)}function Rt(e){L(jt),Jt===e&&(Jt=null),L(We)}var We=w(0);function or(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||yc(l)||xc(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,ye=null,Be=null,tt=null,cr=!1,ni=!1,Sl=!1,sr=0,Ki=0,li=null,Py=0;function Je(){throw Error(u(321))}function fo(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ot(e[l],t[l]))return!1;return!0}function ho(e,t,l,i,o,c){return Sn=c,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Oh:Co,Sl=!1,c=l(i,o),Sl=!1,ni&&(c=$f(t,l,i,o)),If(e),c}function If(e){M.H=$i;var t=Be!==null&&Be.next!==null;if(Sn=0,tt=Be=ye=null,cr=!1,Ki=0,li=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&er(e)&&(nt=!0))}function $f(e,t,l,i){ye=e;var o=0;do{if(ni&&(li=null),Ki=0,ni=!1,25<=o)throw Error(u(301));if(o+=1,tt=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=Mh,c=t(l,i)}while(ni);return c}function e1(){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&&(ye.flags|=1024),t}function mo(){var e=sr!==0;return sr=0,e}function po(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function go(e){if(cr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cr=!1}Sn=0,tt=Be=ye=null,ni=!1,Ki=sr=0,li=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?ye.memoizedState=tt=e:tt=tt.next=e,tt}function Pe(){if(Be===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=tt===null?ye.memoizedState:tt.next;if(t!==null)tt=t,Be=e;else{if(e===null)throw ye.alternate===null?Error(u(467)):Error(u(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},tt===null?ye.memoizedState=tt=e:tt=tt.next=e}return tt}function fr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ji(e){var t=Ki;return Ki+=1,li===null&&(li=[]),e=Yf(li,e,t),t=ye,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Oh:Co),e}function hr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ji(e);if(e.$$typeof===q)return ft(e)}throw Error(u(438,String(e)))}function yo(e){var t=null,l=ye.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=ye.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=fr(),ye.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 dr(e){var t=Pe();return xo(t,Be,e)}function xo(e,t,l){var i=e.queue;if(i===null)throw Error(u(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,Y=!1;do{var Z=D.lane&-536870913;if(Z!==D.lane?(ze&Z)===Z:(Sn&Z)===Z){var j=D.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Z===$l&&(Y=!0);else if((Sn&j)===j){D=D.next,j===$l&&(Y=!0);continue}else Z={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(b=T=Z,g=c):T=T.next=Z,ye.lanes|=j,Fn|=j;Z=D.action,Sl&&l(c,Z),c=D.hasEagerState?D.eagerState:l(c,Z)}else j={lane:Z,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(b=T=j,g=c):T=T.next=j,ye.lanes|=Z,Fn|=Z;D=D.next}while(D!==null&&D!==t);if(T===null?g=c:T.next=b,!Ot(c,e.memoizedState)&&(nt=!0,Y&&(l=Wl,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 bo(e){var t=Pe(),l=t.queue;if(l===null)throw Error(u(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);Ot(c,t.memoizedState)||(nt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,i]}function Wf(e,t,l){var i=ye,o=Pe(),c=_e;if(c){if(l===void 0)throw Error(u(407));l=l()}else l=t();var g=!Ot((Be||o).memoizedState,l);if(g&&(o.memoizedState=l,nt=!0),o=o.queue,ko(th.bind(null,i,o,e),[e]),o.getSnapshot!==t||g||tt!==null&&tt.memoizedState.tag&1){if(i.flags|=2048,ii(9,{destroy:void 0},eh.bind(null,i,o,l,t),null),Xe===null)throw Error(u(349));c||(Sn&127)!==0||Pf(i,t,l)}return l}function Pf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ye.updateQueue,t===null?(t=fr(),ye.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function eh(e,t,l,i){t.value=l,t.getSnapshot=i,nh(t)&&lh(e)}function th(e,t,l){return l(function(){nh(t)&&lh(e)})}function nh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ot(e,l)}catch{return!0}}function lh(e){var t=hl(e,2);t!==null&&Ct(t,e,2)}function vo(e){var t=bt();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 ih(e,t,l,i){return e.baseState=l,xo(e,Be,typeof i=="function"?i:kn)}function t1(e,t,l,i,o){if(gr(e))throw Error(u(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,ah(t,c)):(c.next=l.next,t.pending=l.next=c)}}function ah(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),rh(e,t,b)}catch(D){So(e,t,D)}finally{c!==null&&g.types!==null&&(c.types=g.types),M.T=c}}else try{c=l(o,i),rh(e,t,c)}catch(D){So(e,t,D)}}function rh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){uh(e,t,i)},function(i){return So(e,t,i)}):uh(e,t,l)}function uh(e,t,l){t.status="fulfilled",t.value=l,oh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ah(e,l)))}function So(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,oh(t),t=t.next;while(t!==i)}e.action=null}function oh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ch(e,t){return t}function sh(e,t){if(_e){var l=Xe.formState;if(l!==null){e:{var i=ye;if(_e){if(Qe){t:{for(var o=Qe,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){Qe=It(o.nextSibling),i=o.data==="F!";break e}}Bn(i)}i=!1}i&&(t=l[0])}}return l=bt(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ch,lastRenderedState:t},l.queue=i,l=_h.bind(null,ye,i),i.dispatch=l,i=vo(!1),c=zo.bind(null,ye,!1,i.queue),i=bt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,l=t1.bind(null,ye,o,c,l),o.dispatch=l,i.memoizedState=e,[t,l,!1]}function fh(e){var t=Pe();return hh(t,Be,e)}function hh(e,t,l){if(t=xo(e,t,ch)[0],e=dr(kn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ji(t)}catch(g){throw g===Pl?lr:g}else i=t;t=Pe();var o=t.queue,c=o.dispatch;return l!==t.memoizedState&&(ye.flags|=2048,ii(9,{destroy:void 0},n1.bind(null,o,l),null)),[i,c,e]}function n1(e,t){e.action=t}function dh(e){var t=Pe(),l=Be;if(l!==null)return hh(t,l,e);Pe(),t=t.memoizedState,l=Pe();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function ii(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=ye.updateQueue,t===null&&(t=fr(),ye.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 mh(){return Pe().memoizedState}function mr(e,t,l,i){var o=bt();ye.flags|=e,o.memoizedState=ii(1|t,{destroy:void 0},l,i===void 0?null:i)}function pr(e,t,l,i){var o=Pe();i=i===void 0?null:i;var c=o.memoizedState.inst;Be!==null&&i!==null&&fo(i,Be.memoizedState.deps)?o.memoizedState=ii(t,c,l,i):(ye.flags|=e,o.memoizedState=ii(1|t,c,l,i))}function ph(e,t){mr(8390656,8,e,t)}function ko(e,t){pr(2048,8,e,t)}function l1(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=fr(),ye.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function gh(e){var t=Pe().memoizedState;return l1({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function yh(e,t){return pr(4,2,e,t)}function xh(e,t){return pr(4,4,e,t)}function bh(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 vh(e,t,l){l=l!=null?l.concat([e]):null,pr(4,4,bh.bind(null,t,e),l)}function Eo(){}function Sh(e,t){var l=Pe();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&fo(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function kh(e,t){var l=Pe();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&fo(t,i[1]))return i[0];if(i=e(),Sl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[i,t],i}function Ao(e,t,l){return l===void 0||(Sn&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ed(),ye.lanes|=e,Fn|=e,l)}function Eh(e,t,l,i){return Ot(l,t)?l:ti.current!==null?(e=Ao(e,l,i),Ot(e,t)||(nt=!0),e):(Sn&42)===0||(Sn&1073741824)!==0&&(ze&261930)===0?(nt=!0,e.memoizedState=l):(e=Ed(),ye.lanes|=e,Fn|=e,t)}function Ah(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 Y=Wy(T,i);Ii(e,t,Y,Bt(e))}else Ii(e,t,i,Bt(e))}catch(Z){Ii(e,t,{then:function(){},status:"rejected",reason:Z},Bt())}finally{F.p=c,g!==null&&b.types!==null&&(g.types=b.types),M.T=g}}function i1(){}function To(e,t,l,i){if(e.tag!==5)throw Error(u(476));var o=Th(e).queue;Ah(e,o,t,ie,l===null?i1:function(){return wh(e),l(i)})}function Th(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:ie},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 wh(e){var t=Th(e);t.next===null&&(t=e.alternate.memoizedState),Ii(e,t.next.queue,{},Bt())}function wo(){return ft(da)}function zh(){return Pe().memoizedState}function Ch(){return Pe().memoizedState}function a1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Bt();e=Yn(l);var i=Xn(t,e,l);i!==null&&(Ct(i,t,l),Qi(i,t,l)),t={cache:eo()},e.payload=t;return}t=t.return}}function r1(e,t,l){var i=Bt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gr(e)?Nh(t,l):(l=Vu(e,t,l,i),l!==null&&(Ct(l,e,i),Dh(l,t,i)))}function _h(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(gr(e))Nh(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,Ot(b,g))return Ia(e,t,o,0),Xe===null&&Ja(),!1}catch{}finally{}if(l=Vu(e,t,o,i),l!==null)return Ct(l,e,i),Dh(l,t,i),!0}return!1}function zo(e,t,l,i){if(i={lane:2,revertLane:ac(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},gr(e)){if(t)throw Error(u(479))}else t=Vu(e,l,i,2),t!==null&&Ct(t,e,2)}function gr(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Nh(e,t){ni=cr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dh(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Rs(e,l)}}var $i={readContext:ft,use:hr,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 Oh={readContext:ft,use:hr,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:ph,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,mr(4194308,4,bh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return mr(4194308,4,e,t)},useInsertionEffect:function(e,t){mr(4,2,e,t)},useMemo:function(e,t){var l=bt();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=bt();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=r1.bind(null,ye,e),[i.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=vo(e);var t=e.queue,l=_h.bind(null,ye,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Eo,useDeferredValue:function(e,t){var l=bt();return Ao(l,e,t)},useTransition:function(){var e=vo(!1);return e=Ah.bind(null,ye,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=ye,o=bt();if(_e){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Xe===null)throw Error(u(349));(ze&127)!==0||Pf(i,t,l)}o.memoizedState=l;var c={value:l,getSnapshot:t};return o.queue=c,ph(th.bind(null,i,c,e),[e]),i.flags|=2048,ii(9,{destroy:void 0},eh.bind(null,i,c,l,t),null),l},useId:function(){var e=bt(),t=Xe.identifierPrefix;if(_e){var l=rn,i=an;l=(i&~(1<<32-Ye(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=sr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Py++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:wo,useFormState:sh,useActionState:sh,useOptimistic:function(e){var t=bt();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,ye,!0,l),l.dispatch=t,[e,t]},useMemoCache:yo,useCacheRefresh:function(){return bt().memoizedState=a1.bind(null,ye)},useEffectEvent:function(e){var t=bt(),l={impl:e};return t.memoizedState=l,function(){if((Me&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Co={readContext:ft,use:hr,useCallback:Sh,useContext:ft,useEffect:ko,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:kh,useReducer:dr,useRef:mh,useState:function(){return dr(kn)},useDebugValue:Eo,useDeferredValue:function(e,t){var l=Pe();return Eh(l,Be.memoizedState,e,t)},useTransition:function(){var e=dr(kn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:Wf,useId:zh,useHostTransitionStatus:wo,useFormState:fh,useActionState:fh,useOptimistic:function(e,t){var l=Pe();return ih(l,Be,e,t)},useMemoCache:yo,useCacheRefresh:Ch};Co.useEffectEvent=gh;var Mh={readContext:ft,use:hr,useCallback:Sh,useContext:ft,useEffect:ko,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:kh,useReducer:bo,useRef:mh,useState:function(){return bo(kn)},useDebugValue:Eo,useDeferredValue:function(e,t){var l=Pe();return Be===null?Ao(l,e,t):Eh(l,Be.memoizedState,e,t)},useTransition:function(){var e=bo(kn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:Wf,useId:zh,useHostTransitionStatus:wo,useFormState:dh,useActionState:dh,useOptimistic:function(e,t){var l=Pe();return Be!==null?ih(l,Be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:yo,useCacheRefresh:Ch};Mh.useEffectEvent=gh;function _o(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 No={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Bt(),o=Yn(i);o.payload=t,l!=null&&(o.callback=l),t=Xn(e,o,i),t!==null&&(Ct(t,e,i),Qi(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=Xn(e,o,i),t!==null&&(Ct(t,e,i),Qi(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=Xn(e,i,l),t!==null&&(Ct(t,e,l),Qi(t,e,l))}};function jh(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 Rh(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&&No.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 Lh(e){Ka(e)}function Uh(e){console.error(e)}function Bh(e){Ka(e)}function yr(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Hh(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(){yr(e,t)},l}function qh(e){return e=Yn(e),e.tag=3,e}function Yh(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(){Hh(t,l,i)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Hh(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 u1(e,t,l,i,o){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&Il(t,l,o,!0),l=jt.current,l!==null){switch(l.tag){case 31:case 13:return Jt===null?_r():l.alternate===null&&Ie===0&&(Ie=3),l.flags&=-257,l.flags|=65536,l.lanes=o,i===ir?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),nc(e,i,o)),!1;case 22:return l.flags|=65536,i===ir?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)),nc(e,i,o)),!1}throw Error(u(435,l.tag))}return nc(e,i,o),_r(),!1}if(_e)return t=jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Ju&&(e=Error(u(422),{cause:i}),qi(Qt(e,l)))):(i!==Ju&&(t=Error(u(423),{cause:i}),qi(Qt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Qt(i,l),o=Do(e.stateNode,i,o),ro(e,o),Ie!==4&&(Ie=2)),!1;var c=Error(u(520),{cause:i});if(c=Qt(c,l),aa===null?aa=[c]:aa.push(c),Ie!==4&&(Ie=2),t===null)return!0;i=Qt(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),ro(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=qh(o),Yh(o,e,l,i),ro(l,o),!1}l=l.return}while(l!==null);return!1}var Oo=Error(u(461)),nt=!1;function ht(e,t,l,i){t.child=e===null?Qf(t,null,l,i):vl(t,e.child,l,i)}function Xh(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=ho(e,t,l,g,c,o),b=mo(),e!==null&&!nt?(po(e,t,o),En(e,t,o)):(_e&&b&&Fu(t),t.flags|=1,ht(e,t,i,o),t.child)}function Vh(e,t,l,i,o){if(e===null){var c=l.type;return typeof c=="function"&&!Gu(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,Gh(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,!qo(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 Gh(e,t,l,i,o){if(e!==null){var c=e.memoizedProps;if(Ui(c,i)&&e.ref===t.ref)if(nt=!1,t.pendingProps=i=c,qo(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,En(e,t,o)}return Mo(e,t,l,i,o)}function Qh(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 Zh(e,t,c,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&nr(t,c!==null?c.cachePool:null),c!==null?Kf(t,c):oo(),Jf(t);else return i=t.lanes=536870912,Zh(e,t,c!==null?c.baseLanes|l:l,l,i)}else c!==null?(nr(t,c.cachePool),Kf(t,c),Gn(),t.memoizedState=null):(e!==null&&nr(t,null),oo(),Gn());return ht(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 Zh(e,t,l,i,o){var c=no();return c=c===null?null:{parent:et._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&nr(t,null),oo(),Jf(t),e!==null&&Il(e,t,i,!0),t.childLanes=o,null}function xr(e,t){return t=vr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Fh(e,t,l){return vl(t,e.child,null,l),e=xr(t,t.pendingProps),e.flags|=2,Rt(t),t.memoizedState=null,e}function o1(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=xr(t,i),t.lanes=536870912,Wi(null,e);if(so(t),(e=Qe)?(e=am(e,Kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=Nf(e),l.return=t,t.child=l,st=t,Qe=null)):e=null,e===null)throw Bn(t);return t.lanes=536870912,null}return xr(t,i)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(so(t),o)if(t.flags&256)t.flags&=-257,t=Fh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||Il(e,t,l,!1),o=(l&e.childLanes)!==0,nt||o){if(i=Xe,i!==null&&(g=Ls(i,l),g!==0&&g!==c.retryLane))throw c.retryLane=g,hl(e,g),Ct(i,e,g),Oo;_r(),t=Fh(e,t,l)}else e=c.treeContext,Qe=It(g.nextSibling),st=t,_e=!0,Un=null,Kt=!1,e!==null&&Mf(t,e),t=xr(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 br(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(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Mo(e,t,l,i,o){return gl(t),l=ho(e,t,l,i,void 0,o),i=mo(),e!==null&&!nt?(po(e,t,o),En(e,t,o)):(_e&&i&&Fu(t),t.flags|=1,ht(e,t,l,o),t.child)}function Kh(e,t,l,i,o,c){return gl(t),t.updateQueue=null,l=$f(t,i,l,o),If(e),i=mo(),e!==null&&!nt?(po(e,t,c),En(e,t,c)):(_e&&i&&Fu(t),t.flags|=1,ht(e,t,l,c),t.child)}function Jh(e,t,l,i,o){if(gl(t),t.stateNode===null){var c=Zl,g=l.contextType;typeof g=="object"&&g!==null&&(c=ft(g)),c=new l(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=No,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},io(t),g=l.contextType,c.context=typeof g=="object"&&g!==null?ft(g):Zl,c.state=t.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(_o(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&&No.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,Y=l.contextType;g=Zl,typeof Y=="object"&&Y!==null&&(g=ft(Y));var Z=l.getDerivedStateFromProps;Y=typeof Z=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,Y||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||D!==g)&&Rh(t,c,i,g),qn=!1;var j=t.memoizedState;c.state=j,Fi(t,i,c,o),Zi(),D=t.memoizedState,b||j!==D||qn?(typeof Z=="function"&&(_o(t,l,Z,i),D=t.memoizedState),(T=qn||jh(t,l,T,i,j,D,g))?(Y||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,ao(e,t),g=t.memoizedProps,Y=kl(l,g),c.props=Y,Z=t.pendingProps,j=c.context,D=l.contextType,T=Zl,typeof D=="object"&&D!==null&&(T=ft(D)),b=l.getDerivedStateFromProps,(D=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==Z||j!==T)&&Rh(t,c,i,T),qn=!1,j=t.memoizedState,c.state=j,Fi(t,i,c,o),Zi();var U=t.memoizedState;g!==Z||j!==U||qn||e!==null&&e.dependencies!==null&&er(e.dependencies)?(typeof b=="function"&&(_o(t,l,b,i),U=t.memoizedState),(Y=qn||jh(t,l,Y,i,j,U,T)||e!==null&&e.dependencies!==null&&er(e.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,U,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,U,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=U),c.props=i,c.state=U,c.context=T,i=Y):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,br(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)):ht(e,t,l,o),t.memoizedState=c.state,e=t.child):e=En(e,t,o),e}function Ih(e,t,l,i){return ml(),t.flags|=256,ht(e,t,l,i),t.child}var jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ro(e){return{baseLanes:e,cachePool:Hf()}}function Lo(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ut),e}function $h(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:(We.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(o?Vn(t):Gn(),(e=Qe)?(e=am(e,Kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=Nf(e),l.return=t,t.child=l,st=t,Qe=null)):e=null,e===null)throw Bn(t);return xc(e)?t.lanes=32:t.lanes=536870912,null}var b=i.children;return i=i.fallback,o?(Gn(),o=t.mode,b=vr({mode:"hidden",children:b},o),i=dl(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=Lo(e,g,l),t.memoizedState=jo,Wi(null,i)):(Vn(t),Uo(t,b))}var T=e.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(c)t.flags&256?(Vn(t),t.flags&=-257,t=Bo(e,t,l)):t.memoizedState!==null?(Gn(),t.child=e.child,t.flags|=128,t=null):(Gn(),b=i.fallback,o=t.mode,i=vr({mode:"visible",children:i.children},o),b=dl(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=Lo(e,g,l),t.memoizedState=jo,t=Wi(null,i));else if(Vn(t),xc(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var D=g.dgst;g=D,i=Error(u(419)),i.stack="",i.digest=g,qi({value:i,source:null,stack:null}),t=Bo(e,t,l)}else if(nt||Il(e,t,l,!1),g=(l&e.childLanes)!==0,nt||g){if(g=Xe,g!==null&&(i=Ls(g,l),i!==0&&i!==T.retryLane))throw T.retryLane=i,hl(e,i),Ct(g,e,i),Oo;yc(b)||_r(),t=Bo(e,t,l)}else yc(b)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Qe=It(b.nextSibling),st=t,_e=!0,Un=null,Kt=!1,e!==null&&Mf(t,e),t=Uo(t,i.children),t.flags|=4096);return t}return o?(Gn(),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=dl(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=et._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Hf(),b={baseLanes:b.baseLanes|l,cachePool:o}),i.memoizedState=b,i.childLanes=Lo(e,g,l),t.memoizedState=jo,Wi(e.child,i)):(Vn(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 Uo(e,t){return t=vr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vr(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function Bo(e,t,l){return vl(t,e.child,null,l),e=Uo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wh(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Wu(e.return,t,l)}function Ho(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 Ph(e,t,l){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var g=We.current,b=(g&2)!==0;if(b?(g=g&1|2,t.flags|=128):g&=1,k(We,g),ht(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&&Wh(e,l,t);else if(e.tag===19)Wh(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&&or(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Ho(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&&or(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Ho(t,!0,l,null,c,i);break;case"together":Ho(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(Il(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(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 qo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&er(e)))}function c1(e,t,l){switch(t.tag){case 3:Fe(t,t.stateNode.containerInfo),Hn(t,et,e.memoizedState.cache),ml();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,so(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Vn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?$h(e,t,l):(Vn(t),e=En(e,t,l),e!==null?e.sibling:null);Vn(t);break;case 19:var o=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(Il(e,t,l,!1),i=(l&t.childLanes)!==0),o){if(i)return Ph(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(We,We.current),i)break;return null;case 22:return t.lanes=0,Qh(e,t,l,t.pendingProps);case 24:Hn(t,et,e.memoizedState.cache)}return En(e,t,l)}function ed(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!qo(e,l)&&(t.flags&128)===0)return nt=!1,c1(e,t,l);nt=(e.flags&131072)!==0}else nt=!1,_e&&(t.flags&1048576)!==0&&Of(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")Gu(e)?(i=kl(e,i),t.tag=1,t=Jh(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===te){t.tag=11,t=Xh(null,t,e,i,l);break e}else if(o===$){t.tag=14,t=Vh(null,t,e,i,l);break e}}throw t=ae(e)||e,Error(u(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),Jh(e,t,i,o,l);case 3:e:{if(Fe(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,ao(e,t),Fi(t,i,null,l);var g=t.memoizedState;if(i=g.cache,Hn(t,et,i),i!==c.cache&&Pu(t,[et],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=Ih(e,t,i,l);break e}else if(i!==o){o=Qt(Error(u(424)),t),qi(o),t=Ih(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(Qe=It(e.firstChild),st=t,_e=!0,Un=null,Kt=!0,l=Qf(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ml(),i===o){t=En(e,t,l);break e}ht(e,t,i,l)}t=t.child}return t;case 26:return br(e,t),e===null?(l=fm(t.type,null,t.pendingProps,null))?t.memoizedState=l:_e||(l=t.type,e=t.pendingProps,i=Lr(oe.current).createElement(l),i[ct]=t,i[kt]=e,dt(i,l,e),ut(i),t.stateNode=i):t.memoizedState=fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Yt(t),e===null&&_e&&(i=t.stateNode=om(t.type,t.pendingProps,oe.current),st=t,Kt=!0,o=Qe,Wn(t.type)?(bc=o,Qe=It(i.firstChild)):Qe=o),ht(e,t,t.pendingProps.children,l),br(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((o=i=Qe)&&(i=H1(i,t.type,t.pendingProps,Kt),i!==null?(t.stateNode=i,st=t,Qe=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=ho(e,t,e1,null,null,l),da._currentValue=o),br(e,t),ht(e,t,i,l),t.child;case 6:return e===null&&_e&&((e=l=Qe)&&(l=q1(l,t.pendingProps,Kt),l!==null?(t.stateNode=l,st=t,Qe=null,e=!0):e=!1),e||Bn(t)),null;case 13:return $h(e,t,l);case 4:return Fe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=vl(t,null,i,l):ht(e,t,i,l),t.child;case 11:return Xh(e,t,t.type,t.pendingProps,l);case 7:return ht(e,t,t.pendingProps,l),t.child;case 8:return ht(e,t,t.pendingProps.children,l),t.child;case 12:return ht(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,Hn(t,t.type,i.value),ht(e,t,i.children,l),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,gl(t),o=ft(o),i=i(o),t.flags|=1,ht(e,t,i,l),t.child;case 14:return Vh(e,t,t.type,t.pendingProps,l);case 15:return Gh(e,t,t.type,t.pendingProps,l);case 19:return Ph(e,t,l);case 31:return o1(e,t,l);case 22:return Qh(e,t,l,t.pendingProps);case 24:return gl(t),i=ft(et),e===null?(o=no(),o===null&&(o=Xe,c=eo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=l),o=c),t.memoizedState={parent:i,cache:o},io(t),Hn(t,et,o)):((e.lanes&l)!==0&&(ao(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,et,i)):(i=c.cache,Hn(t,et,i),i!==o.cache&&Pu(t,[et],l,!0))),ht(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function An(e){e.flags|=4}function Yo(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(zd())e.flags|=8192;else throw bl=ir,lo}else e.flags&=-16777217}function td(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!gm(t))if(zd())e.flags|=8192;else throw bl=ir,lo}function Sr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ms():536870912,e.lanes|=t,oi|=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 s1(e,t,l){var i=t.pendingProps;switch(Ku(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(et),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Jl(t)?An(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Iu())),Ze(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(An(t),c!==null?(Ze(t),td(t,c)):(Ze(t),Yo(t,o,null,i,l))):c?c!==e.memoizedState?(An(t),Ze(t),td(t,c)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&An(t),Ze(t),Yo(t,o,e,i,l)),null;case 27:if(fn(t),l=oe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&An(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ze(t),null}e=P.current,Jl(t)?jf(t):(e=om(o,i,l),t.stateNode=e,An(t))}return Ze(t),null;case 5:if(fn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&An(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ze(t),null}if(c=P.current,Jl(t))jf(t);else{var g=Lr(oe.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[ct]=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(dt(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&&An(t)}}return Ze(t),Yo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&An(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=oe.current,Jl(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,o=st,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||$d(e.nodeValue,l)),e||Bn(t,!0)}else e=Lr(e).createTextNode(i),e[ct]=t,t.stateNode=e}return Ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=Jl(t),l!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else l=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Rt(t),t):(Rt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ze(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Jl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[ct]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),o=!1}else o=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Rt(t),t):(Rt(t),null)}return Rt(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),Sr(t,t.updateQueue),Ze(t),null);case 4:return Ue(),e===null&&cc(t.stateNode.containerInfo),Ze(t),null;case 10:return vn(t.type),Ze(t),null;case 19:if(L(We),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=or(e),c!==null){for(t.flags|=128,Pi(i,!1),e=c.updateQueue,t.updateQueue=e,Sr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)_f(l,e),l=l.sibling;return k(We,We.current&1|2),_e&&xn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&yt()>wr&&(t.flags|=128,o=!0,Pi(i,!1),t.lanes=4194304)}else{if(!o)if(e=or(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Sr(t,e),Pi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!_e)return Ze(t),null}else 2*yt()-i.renderingStartTime>wr&&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=yt(),e.sibling=null,l=We.current,k(We,o?l&1|2:l&1),_e&&xn(t,i.treeForkCount),e):(Ze(t),null);case 22:case 23:return Rt(t),co(),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&&Sr(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&&L(yl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),vn(et),Ze(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function f1(e,t){switch(Ku(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn(et),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(Rt(t),t.alternate===null)throw Error(u(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Rt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(We),null;case 4:return Ue(),null;case 10:return vn(t.type),null;case 22:case 23:return Rt(t),co(),e!==null&&L(yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vn(et),null;case 25:return null;default:return null}}function nd(e,t){switch(Ku(t),t.tag){case 3:vn(et),Ue();break;case 26:case 27:case 5:fn(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19:L(We);break;case 10:vn(t.type);break;case 22:case 23:Rt(t),co(),e!==null&&L(yl);break;case 24:vn(et)}}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 Qn(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(Y){Le(o,T,Y)}}}i=i.next}while(i!==c)}}catch(Y){Le(t,t.return,Y)}}function ld(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(i){Le(e,e.return,i)}}}function id(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 un(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 ad(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 Xo(e,t,l){try{var i=e.stateNode;M1(i,e.type,l,t),i[kt]=t}catch(o){Le(e,e.return,o)}}function rd(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||rd(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 Go(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(Go(e,t,l),e=e.sibling;e!==null;)Go(e,t,l),e=e.sibling}function kr(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(kr(e,t,l),e=e.sibling;e!==null;)kr(e,t,l),e=e.sibling}function ud(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);dt(t,i,l),t[ct]=e,t[kt]=l}catch(c){Le(e,e.return,c)}}var Tn=!1,lt=!1,Qo=!1,od=typeof WeakSet=="function"?WeakSet:Set,ot=null;function h1(e,t){if(e=e.containerInfo,hc=Vr,e=vf(e),Uu(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,Y=0,Z=e,j=null;t:for(;;){for(var U;Z!==l||o!==0&&Z.nodeType!==3||(b=g+o),Z!==c||i!==0&&Z.nodeType!==3||(T=g+i),Z.nodeType===3&&(g+=Z.nodeValue.length),(U=Z.firstChild)!==null;)j=Z,Z=U;for(;;){if(Z===e)break t;if(j===l&&++D===o&&(b=g),j===c&&++Y===i&&(T=g),(U=Z.nextSibling)!==null)break;Z=j,j=Z.parentNode}Z=U}l=b===-1||T===-1?null:{start:b,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(dc={focusedElem:e,selectionRange:l},Vr=!1,ot=t;ot!==null;)if(t=ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ot=e;else for(;ot!==null;){switch(t=ot,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(fe){Le(l,l.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)gc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":gc(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,ot=e;break}ot=t.return}}function cd(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:zn(e,l),i&4&&ea(5,l);break;case 1:if(zn(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&&ld(l),i&512&&ta(l,l.return);break;case 3:if(zn(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{Ff(e,t)}catch(g){Le(l,l.return,g)}}break;case 27:t===null&&i&4&&ud(l);case 26:case 5:zn(e,l),t===null&&i&4&&ad(l),i&512&&ta(l,l.return);break;case 12:zn(e,l);break;case 31:zn(e,l),i&4&&hd(e,l);break;case 13:zn(e,l),i&4&&dd(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=S1.bind(null,l),Y1(e,l))));break;case 22:if(i=l.memoizedState!==null||Tn,!i){t=t!==null&&t.memoizedState!==null||lt,o=Tn;var c=lt;Tn=i,(lt=t)&&!c?Cn(e,l,(l.subtreeFlags&8772)!==0):zn(e,l),Tn=o,lt=c}break;case 30:break;default:zn(e,l)}}function sd(e){var t=e.alternate;t!==null&&(e.alternate=null,sd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vu(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,At=!1;function wn(e,t,l){for(l=l.child;l!==null;)fd(e,t,l),l=l.sibling}function fd(e,t,l){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(xt,l)}catch{}switch(l.tag){case 26:lt||un(l,t),wn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||un(l,t);var i=Ke,o=At;Wn(l.type)&&(Ke=l.stateNode,At=!1),wn(e,t,l),sa(l.stateNode),Ke=i,At=o;break;case 5:lt||un(l,t);case 6:if(i=Ke,o=At,Ke=null,wn(e,t,l),Ke=i,At=o,Ke!==null)if(At)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&&(At?(e=Ke,lm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),gi(e)):lm(Ke,l.stateNode));break;case 4:i=Ke,o=At,Ke=l.stateNode.containerInfo,At=!0,wn(e,t,l),Ke=i,At=o;break;case 0:case 11:case 14:case 15:Qn(2,l,t),lt||Qn(4,l,t),wn(e,t,l);break;case 1:lt||(un(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&id(l,t,i)),wn(e,t,l);break;case 21:wn(e,t,l);break;case 22:lt=(i=lt)||l.memoizedState!==null,wn(e,t,l),lt=i;break;default:wn(e,t,l)}}function hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{gi(e)}catch(l){Le(t,t.return,l)}}}function dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gi(e)}catch(l){Le(t,t.return,l)}}function d1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new od),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new od),t;default:throw Error(u(435,e.tag))}}function Er(e,t){var l=d1(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var o=k1.bind(null,e,i);i.then(o,o)}})}function Tt(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,At=!1;break e}break;case 5:Ke=b.stateNode,At=!1;break e;case 3:case 4:Ke=b.stateNode.containerInfo,At=!0;break e}b=b.return}if(Ke===null)throw Error(u(160));fd(c,g,o),Ke=null,At=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)md(t,e),t=t.sibling}var tn=null;function md(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Tt(t,e),wt(e),i&4&&(Qn(3,e,e.return),ea(3,e),Qn(5,e,e.return));break;case 1:Tt(t,e),wt(e),i&512&&(lt||l===null||un(l,l.return)),i&64&&Tn&&(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(Tt(t,e),wt(e),i&512&&(lt||l===null||un(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[Ci]||c[ct]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),dt(c,i,l),c[ct]=e,ut(c),i=c;break e;case"link":var g=mm("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),dt(c,i,l),o.head.appendChild(c);break;case"meta":if(g=mm("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),dt(c,i,l),o.head.appendChild(c);break;default:throw Error(u(468,i))}c[ct]=e,ut(c),i=c}e.stateNode=i}else pm(o,e.type,e.stateNode);else e.stateNode=dm(o,i,e.memoizedProps);else c!==i?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,i===null?pm(o,e.type,e.stateNode):dm(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Xo(e,e.memoizedProps,l.memoizedProps)}break;case 27:Tt(t,e),wt(e),i&512&&(lt||l===null||un(l,l.return)),l!==null&&i&4&&Xo(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Tt(t,e),wt(e),i&512&&(lt||l===null||un(l,l.return)),e.flags&32){o=e.stateNode;try{Hl(o,"")}catch(le){Le(e,e.return,le)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Xo(e,o,l!==null?l.memoizedProps:o)),i&1024&&(Qo=!0);break;case 6:if(Tt(t,e),wt(e),i&4){if(e.stateNode===null)throw Error(u(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(le){Le(e,e.return,le)}}break;case 3:if(Hr=null,o=tn,tn=Ur(t.containerInfo),Tt(t,e),tn=o,wt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{gi(t.containerInfo)}catch(le){Le(e,e.return,le)}Qo&&(Qo=!1,pd(e));break;case 4:i=tn,tn=Ur(e.stateNode.containerInfo),Tt(t,e),wt(e),tn=i;break;case 12:Tt(t,e),wt(e);break;case 31:Tt(t,e),wt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Er(e,i)));break;case 13:Tt(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Tr=yt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Er(e,i)));break;case 22:o=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,D=Tn,Y=lt;if(Tn=D||o,lt=Y||T,Tt(t,e),lt=Y,Tn=D,wt(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||T||Tn||lt||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 Z=T.memoizedProps.style,j=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;b.style.display=j==null||typeof j=="boolean"?"":(""+j).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 U=T.stateNode;o?im(U,!0):im(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,Er(e,l))));break;case 19:Tt(t,e),wt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Er(e,i)));break;case 30:break;case 21:break;default:Tt(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(rd(i)){l=i;break}i=i.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,c=Vo(e);kr(e,c,o);break;case 5:var g=l.stateNode;l.flags&32&&(Hl(g,""),l.flags&=-33);var b=Vo(e);kr(e,b,g);break;case 3:case 4:var T=l.stateNode.containerInfo,D=Vo(e);Go(e,D,T);break;default:throw Error(u(161))}}catch(Y){Le(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;pd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function zn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cd(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:Qn(4,t,t.return),El(t);break;case 1:un(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&id(t,t.return,l),El(t);break;case 27:sa(t.stateNode);case 26:case 5:un(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 Cn(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:Cn(o,c,l),ea(4,c);break;case 1:if(Cn(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++)Zf(T[o],b)}catch(D){Le(i,i.return,D)}}l&&g&64&&ld(c),ta(c,c.return);break;case 27:ud(c);case 26:case 5:Cn(o,c,l),l&&i===null&&g&4&&ad(c),ta(c,c.return);break;case 12:Cn(o,c,l);break;case 31:Cn(o,c,l),l&&g&4&&hd(o,c);break;case 13:Cn(o,c,l),l&&g&4&&dd(o,c);break;case 22:c.memoizedState===null&&Cn(o,c,l),ta(c,c.return);break;case 30:break;default:Cn(o,c,l)}t=t.sibling}}function Zo(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 Fo(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;)gd(e,t,l,i),t=t.sibling}function gd(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,ai(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Zo(g,t);break;case 24:nn(e,t,l,i),o&2048&&Fo(t.alternate,t);break;default:nn(e,t,l,i)}}function ai(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:ai(c,g,b,T,o),ea(8,g);break;case 23:break;case 22:var Y=g.stateNode;g.memoizedState!==null?Y._visibility&2?ai(c,g,b,T,o):na(c,g):(Y._visibility|=2,ai(c,g,b,T,o)),o&&D&2048&&Zo(g.alternate,g);break;case 24:ai(c,g,b,T,o),o&&D&2048&&Fo(g.alternate,g);break;default:ai(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&&Zo(i.alternate,i);break;case 24:na(l,i),o&2048&&Fo(i.alternate,i);break;default:na(l,i)}t=t.sibling}}var la=8192;function ri(e,t,l){if(e.subtreeFlags&la)for(e=e.child;e!==null;)yd(e,t,l),e=e.sibling}function yd(e,t,l){switch(e.tag){case 26:ri(e,t,l),e.flags&la&&e.memoizedState!==null&&P1(l,tn,e.memoizedState,e.memoizedProps);break;case 5:ri(e,t,l);break;case 3:case 4:var i=tn;tn=Ur(e.stateNode.containerInfo),ri(e,t,l),tn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=la,la=16777216,ri(e,t,l),la=i):ri(e,t,l));break;default:ri(e,t,l)}}function xd(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];ot=i,vd(i,e)}xd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bd(e),e=e.sibling}function bd(e){switch(e.tag){case 0:case 11:case 15:ia(e),e.flags&2048&&Qn(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,Ar(e)):ia(e);break;default:ia(e)}}function Ar(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];ot=i,vd(i,e)}xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),Ar(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Ar(t));break;default:Ar(t)}e=e.sibling}}function vd(e,t){for(;ot!==null;){var l=ot;switch(l.tag){case 0:case 11:case 15:Qn(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,ot=i;else e:for(l=e;ot!==null;){i=ot;var o=i.sibling,c=i.return;if(sd(i),i===l){ot=null;break e}if(o!==null){o.return=c,ot=o;break e}ot=c}}}var m1={getCacheForType:function(e){var t=ft(et),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ft(et).controller.signal}},p1=typeof WeakMap=="function"?WeakMap:Map,Me=0,Xe=null,Ee=null,ze=0,Re=0,Lt=null,Zn=!1,ui=!1,Ko=!1,_n=0,Ie=0,Fn=0,Al=0,Jo=0,Ut=0,oi=0,aa=null,zt=null,Io=!1,Tr=0,Sd=0,wr=1/0,zr=null,Kn=null,rt=0,Jn=null,ci=null,Nn=0,$o=0,Wo=null,kd=null,ra=0,Po=null;function Bt(){return(Me&2)!==0&&ze!==0?ze&-ze:M.T!==null?ac():Us()}function Ed(){if(Ut===0)if((ze&536870912)===0||_e){var e=Ra;Ra<<=1,(Ra&3932160)===0&&(Ra=262144),Ut=e}else Ut=536870912;return e=jt.current,e!==null&&(e.flags|=32),Ut}function Ct(e,t,l){(e===Xe&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(si(e,0),In(e,ze,Ut,!1)),zi(e,l),((Me&2)===0||e!==Xe)&&(e===Xe&&((Me&2)===0&&(Al|=l),Ie===4&&In(e,ze,Ut,!1)),on(e))}function Ad(e,t,l){if((Me&6)!==0)throw Error(u(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||wi(e,t),o=i?x1(e,t):tc(e,t,!0),c=i;do{if(o===0){ui&&!i&&In(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!g1(l)){o=tc(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&&(si(b,g).flags|=256),g=tc(b,g,!1),g!==2){if(Ko&&!T){b.errorRecoveryDisabledLanes|=c,Al|=c,o=4;break e}c=zt,zt=o,c!==null&&(zt===null?zt=c:zt.push.apply(zt,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){si(e,0),In(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:In(i,t,Ut,!Zn);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Tr+300-yt(),10<o)){if(In(i,t,Ut,!Zn),Ua(i,0,!0)!==0)break e;Nn=t,i.timeoutHandle=tm(Td.bind(null,i,l,zt,zr,Io,t,Ut,Al,oi,Zn,c,"Throttled",-0,0),o);break e}Td(i,l,zt,zr,Io,t,Ut,Al,oi,Zn,c,null,-0,0)}}break}while(!0);on(e)}function Td(e,t,l,i,o,c,g,b,T,D,Y,Z,j,U){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},yd(t,c,Z);var le=(c&62914560)===c?Tr-yt():(c&4194048)===c?Sd-yt():0;if(le=e0(Z,le),le!==null){Nn=c,e.cancelPendingCommit=le(Md.bind(null,e,t,c,l,i,o,g,b,T,Y,Z,null,j,U)),In(e,c,g,!D);return}}Md(e,t,c,l,i,o,g,b,T)}function g1(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(!Ot(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&=~Jo,t&=~Al,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&&js(e,l,t)}function Cr(){return(Me&6)===0?(ua(0),!1):!0}function ec(){if(Ee!==null){if(Re===0)var e=Ee.return;else e=Ee,bn=pl=null,go(e),ei=null,Vi=0,e=Ee;for(;e!==null;)nd(e.alternate,e),e=e.return;Ee=null}}function si(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,L1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Nn=0,ec(),Xe=e,Ee=l=yn(e.current,null),ze=t,Re=0,Lt=null,Zn=!1,ui=wi(e,t),Ko=!1,oi=Ut=Jo=Al=Fn=Ie=0,zt=aa=null,Io=!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 wd(e,t){ye=null,M.H=$i,t===Pl||t===lr?(t=Xf(),Re=3):t===lo?(t=Xf(),Re=4):Re=t===Oo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,Ee===null&&(Ie=1,yr(e,Qt(t,e.current)))}function zd(){var e=jt.current;return e===null?!0:(ze&4194048)===ze?Jt===null:(ze&62914560)===ze||(ze&536870912)!==0?e===Jt:!1}function Cd(){var e=M.H;return M.H=$i,e===null?$i:e}function _d(){var e=M.A;return M.A=m1,e}function _r(){Ie=4,Zn||(ze&4194048)!==ze&&jt.current!==null||(ui=!0),(Fn&134217727)===0&&(Al&134217727)===0||Xe===null||In(Xe,ze,Ut,!1)}function tc(e,t,l){var i=Me;Me|=2;var o=Cd(),c=_d();(Xe!==e||ze!==t)&&(zr=null,si(e,t)),t=!1;var g=Ie;e:do try{if(Re!==0&&Ee!==null){var b=Ee,T=Lt;switch(Re){case 8:ec(),g=6;break e;case 3:case 2:case 9:case 6:jt.current===null&&(t=!0);var D=Re;if(Re=0,Lt=null,fi(e,b,T,D),l&&ui){g=0;break e}break;default:D=Re,Re=0,Lt=null,fi(e,b,T,D)}}y1(),g=Ie;break}catch(Y){wd(e,Y)}while(!0);return t&&e.shellSuspendCounter++,bn=pl=null,Me=i,M.H=o,M.A=c,Ee===null&&(Xe=null,ze=0,Ja()),g}function y1(){for(;Ee!==null;)Nd(Ee)}function x1(e,t){var l=Me;Me|=2;var i=Cd(),o=_d();Xe!==e||ze!==t?(zr=null,wr=yt()+500,si(e,t)):ui=wi(e,t);e:do try{if(Re!==0&&Ee!==null){t=Ee;var c=Lt;t:switch(Re){case 1:Re=0,Lt=null,fi(e,t,c,1);break;case 2:case 9:if(qf(c)){Re=0,Lt=null,Dd(t);break}t=function(){Re!==2&&Re!==9||Xe!==e||(Re=7),on(e)},c.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:qf(c)?(Re=0,Lt=null,Dd(t)):(Re=0,Lt=null,fi(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?gm(g):b.stateNode.complete){Re=0,Lt=null;var T=b.sibling;if(T!==null)Ee=T;else{var D=b.return;D!==null?(Ee=D,Nr(D)):Ee=null}break t}}Re=0,Lt=null,fi(e,t,c,5);break;case 6:Re=0,Lt=null,fi(e,t,c,6);break;case 8:ec(),Ie=6;break e;default:throw Error(u(462))}}b1();break}catch(Y){wd(e,Y)}while(!0);return bn=pl=null,M.H=i,M.A=o,Me=l,Ee!==null?0:(Xe=null,ze=0,Ja(),Ie)}function b1(){for(;Ee!==null&&!du();)Nd(Ee)}function Nd(e){var t=ed(e.alternate,e,_n);e.memoizedProps=e.pendingProps,t===null?Nr(e):Ee=t}function Dd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Kh(l,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Kh(l,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:go(t);default:nd(l,t),t=Ee=_f(t,_n),t=ed(l,t,_n)}e.memoizedProps=e.pendingProps,t===null?Nr(e):Ee=t}function fi(e,t,l,i){bn=pl=null,go(t),ei=null,Vi=0;var o=t.return;try{if(u1(e,o,t,l,ze)){Ie=1,yr(e,Qt(l,e.current)),Ee=null;return}}catch(c){if(o!==null)throw Ee=o,c;Ie=1,yr(e,Qt(l,e.current)),Ee=null;return}t.flags&32768?(_e||i===1?e=!0:ui||(ze&536870912)!==0?e=!1:(Zn=e=!0,(i===2||i===9||i===3||i===6)&&(i=jt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Od(t,e)):Nr(t)}function Nr(e){var t=e;do{if((t.flags&32768)!==0){Od(t,Zn);return}e=t.return;var l=s1(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 Od(e,t){do{var l=f1(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 Md(e,t,l,i,o,c,g,b,T){e.cancelPendingCommit=null;do Dr();while(rt!==0);if((Me&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(c=t.lanes|t.childLanes,c|=Xu,Wg(e,l,c,g,b,T),e===Xe&&(Ee=Xe=null,ze=0),ci=t,Jn=e,Nn=l,$o=c,Wo=o,kd=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,E1(pe,function(){return Bd(),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=Me,Me|=4;try{h1(e,t,l)}finally{Me=g,F.p=o,M.T=i}}rt=1,jd(),Rd(),Ld()}}function jd(){if(rt===1){rt=0;var e=Jn,t=ci,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=Me;Me|=4;try{md(t,e);var c=dc,g=vf(e.containerInfo),b=c.focusedElem,T=c.selectionRange;if(g!==b&&b&&b.ownerDocument&&bf(b.ownerDocument.documentElement,b)){if(T!==null&&Uu(b)){var D=T.start,Y=T.end;if(Y===void 0&&(Y=D),"selectionStart"in b)b.selectionStart=D,b.selectionEnd=Math.min(Y,b.value.length);else{var Z=b.ownerDocument||document,j=Z&&Z.defaultView||window;if(j.getSelection){var U=j.getSelection(),le=b.textContent.length,fe=Math.min(T.start,le),qe=T.end===void 0?fe:Math.min(T.end,le);!U.extend&&fe>qe&&(g=qe,qe=fe,fe=g);var _=xf(b,fe),z=xf(b,qe);if(_&&z&&(U.rangeCount!==1||U.anchorNode!==_.node||U.anchorOffset!==_.offset||U.focusNode!==z.node||U.focusOffset!==z.offset)){var N=Z.createRange();N.setStart(_.node,_.offset),U.removeAllRanges(),fe>qe?(U.addRange(N),U.extend(z.node,z.offset)):(N.setEnd(z.node,z.offset),U.addRange(N))}}}}for(Z=[],U=b;U=U.parentNode;)U.nodeType===1&&Z.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Z.length;b++){var V=Z[b];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Vr=!!hc,dc=hc=null}finally{Me=o,F.p=i,M.T=l}}e.current=t,rt=2}}function Rd(){if(rt===2){rt=0;var e=Jn,t=ci,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=Me;Me|=4;try{cd(e,t.alternate,t)}finally{Me=o,F.p=i,M.T=l}}rt=3}}function Ld(){if(rt===4||rt===3){rt=0,mu();var e=Jn,t=ci,l=Nn,i=kd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,ci=Jn=null,Ud(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Kn=null),xu(l),t=t.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(xt,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}}(Nn&3)!==0&&Dr(),on(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===Po?ra++:(ra=0,Po=e):ra=0,ua(0)}}function Ud(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yi(t)))}function Dr(){return jd(),Rd(),Ld(),Bd()}function Bd(){if(rt!==5)return!1;var e=Jn,t=$o;$o=0;var l=xu(Nn),i=M.T,o=F.p;try{F.p=32>l?32:l,M.T=null,l=Wo,Wo=null;var c=Jn,g=Nn;if(rt=0,ci=Jn=null,Nn=0,(Me&6)!==0)throw Error(u(331));var b=Me;if(Me|=4,bd(c.current),gd(c,c.current,g,l),Me=b,ua(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(xt,c)}catch{}return!0}finally{F.p=o,M.T=i,Ud(e,t)}}function Hd(e,t,l){t=Qt(l,t),t=Do(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(zi(e,2),on(e))}function Le(e,t,l){if(e.tag===3)Hd(e,e,l);else for(;t!==null;){if(t.tag===3){Hd(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=Qt(l,e),l=qh(2),i=Xn(t,l,2),i!==null&&(Yh(l,i,t,e),zi(i,2),on(i));break}}t=t.return}}function nc(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new p1;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)||(Ko=!0,o.add(l),e=v1.bind(null,e,t,l),t.then(e,e))}function v1(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Xe===e&&(ze&l)===l&&(Ie===4||Ie===3&&(ze&62914560)===ze&&300>yt()-Tr?(Me&2)===0&&si(e,0):Jo|=l,oi===ze&&(oi=0)),on(e)}function qd(e,t){t===0&&(t=Ms()),e=hl(e,t),e!==null&&(zi(e,t),on(e))}function S1(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),qd(e,l)}function k1(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(u(314))}i!==null&&i.delete(t),qd(e,l)}function E1(e,t){return Ol(e,t)}var Or=null,hi=null,lc=!1,Mr=!1,ic=!1,$n=0;function on(e){e!==hi&&e.next===null&&(hi===null?Or=hi=e:hi=hi.next=e),Mr=!0,lc||(lc=!0,T1())}function ua(e,t){if(!ic&&Mr){ic=!0;do for(var l=!1,i=Or;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,Gd(i,c))}else c=ze,c=Ua(i,i===Xe?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||wi(i,c)||(l=!0,Gd(i,c));i=i.next}while(l);ic=!1}}function A1(){Yd()}function Yd(){Mr=lc=!1;var e=0;$n!==0&&R1()&&(e=$n);for(var t=yt(),l=null,i=Or;i!==null;){var o=i.next,c=Xd(i,t);c===0?(i.next=null,l===null?Or=o:l.next=o,o===null&&(hi=l)):(l=i,(e!==0||(c&3)!==0)&&(Mr=!0)),i=o}rt!==0&&rt!==5||ua(e),$n!==0&&($n=0)}function Xd(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]=$g(b,t)):T<=t&&(e.expiredLanes|=b),c&=~b}if(t=Xe,l=ze,l=Ua(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ti(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||wi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&Ti(i),xu(l)){case 2:case 8:l=I;break;case 32:l=pe;break;case 268435456:l=je;break;default:l=pe}return i=Vd.bind(null,e),l=Ol(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&Ti(i),e.callbackPriority=2,e.callbackNode=null,2}function Vd(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Dr()&&e.callbackNode!==l)return null;var i=ze;return i=Ua(e,e===Xe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Ad(e,i,t),Xd(e,yt()),e.callbackNode!=null&&e.callbackNode===l?Vd.bind(null,e):null)}function Gd(e,t){if(Dr())return null;Ad(e,t,!0)}function T1(){U1(function(){(Me&6)!==0?Ol(X,A1):Yd()})}function ac(){if($n===0){var e=$l;e===0&&(e=ja,ja<<=1,(ja&261888)===0&&(ja=256)),$n=e}return $n}function Qd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ya(""+e)}function Zd(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 w1(e,t,l,i,o){if(t==="submit"&&l&&l.stateNode===o){var c=Qd((o[kt]||null).action),g=i.submitter;g&&(t=(t=g[kt]||null)?Qd(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var b=new Qa("action","action",null,i,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if($n!==0){var T=g?Zd(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?Zd(o,g):new FormData(o),To(l,{pending:!0,data:T,method:o.method,action:c},c,T))},currentTarget:o}]})}}for(var rc=0;rc<Yu.length;rc++){var uc=Yu[rc],z1=uc.toLowerCase(),C1=uc[0].toUpperCase()+uc.slice(1);en(z1,"on"+C1)}en(Ef,"onAnimationEnd"),en(Af,"onAnimationIteration"),en(Tf,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(Gy,"onTransitionRun"),en(Qy,"onTransitionStart"),en(Zy,"onTransitionCancel"),en(wf,"onTransitionEnd"),Ul("onMouseEnter",["mouseout","mouseover"]),Ul("onMouseLeave",["mouseout","mouseover"]),Ul("onPointerEnter",["pointerout","pointerover"]),Ul("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(" "),_1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oa));function Fd(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(Y){Ka(Y)}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(Y){Ka(Y)}o.currentTarget=null,c=T}}}}function Ae(e,t){var l=t[bu];l===void 0&&(l=t[bu]=new Set);var i=e+"__bubble";l.has(i)||(Kd(t,e,2,!1),l.add(i))}function oc(e,t,l){var i=0;t&&(i|=4),Kd(l,e,i,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function cc(e){if(!e[jr]){e[jr]=!0,qs.forEach(function(l){l!=="selectionchange"&&(_1.has(l)||oc(l,!1,e),oc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jr]||(t[jr]=!0,oc("selectionchange",!1,t))}}function Kd(e,t,l,i){switch(Em(t)){case 2:var o=l0;break;case 8:o=i0;break;default:o=Ac}l=o.bind(null,t,l,e),o=void 0,!Cu||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 sc(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=jl(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}Ws(function(){var D=c,Y=wu(l),Z=[];e:{var j=zf.get(e);if(j!==void 0){var U=Qa,le=e;switch(e){case"keypress":if(Va(l)===0)break e;case"keydown":case"keyup":U=ky;break;case"focusin":le="focus",U=Ou;break;case"focusout":le="blur",U=Ou;break;case"beforeblur":case"afterblur":U=Ou;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":U=tf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=sy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Ty;break;case Ef:case Af:case Tf:U=dy;break;case wf:U=zy;break;case"scroll":case"scrollend":U=oy;break;case"wheel":U=_y;break;case"copy":case"cut":case"paste":U=py;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=lf;break;case"toggle":case"beforetoggle":U=Dy}var fe=(t&4)!==0,qe=!fe&&(e==="scroll"||e==="scrollend"),_=fe?j!==null?j+"Capture":null:j;fe=[];for(var z=D,N;z!==null;){var V=z;if(N=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||N===null||_===null||(V=Ni(z,_),V!=null&&fe.push(ca(z,V,N))),qe)break;z=z.return}0<fe.length&&(j=new U(j,le,null,l,Y),Z.push({event:j,listeners:fe}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",j&&l!==Tu&&(le=l.relatedTarget||l.fromElement)&&(jl(le)||le[Ml]))break e;if((U||j)&&(j=Y.window===Y?Y:(j=Y.ownerDocument)?j.defaultView||j.parentWindow:window,U?(le=l.relatedTarget||l.toElement,U=D,le=le?jl(le):null,le!==null&&(qe=h(le),fe=le.tag,le!==qe||fe!==5&&fe!==27&&fe!==6)&&(le=null)):(U=null,le=D),U!==le)){if(fe=tf,V="onMouseLeave",_="onMouseEnter",z="mouse",(e==="pointerout"||e==="pointerover")&&(fe=lf,V="onPointerLeave",_="onPointerEnter",z="pointer"),qe=U==null?j:_i(U),N=le==null?j:_i(le),j=new fe(V,z+"leave",U,l,Y),j.target=qe,j.relatedTarget=N,V=null,jl(Y)===D&&(fe=new fe(_,z+"enter",le,l,Y),fe.target=N,fe.relatedTarget=qe,V=fe),qe=V,U&&le)t:{for(fe=N1,_=U,z=le,N=0,V=_;V;V=fe(V))N++;V=0;for(var ce=z;ce;ce=fe(ce))V++;for(;0<N-V;)_=fe(_),N--;for(;0<V-N;)z=fe(z),V--;for(;N--;){if(_===z||z!==null&&_===z.alternate){fe=_;break t}_=fe(_),z=fe(z)}fe=null}else fe=null;U!==null&&Jd(Z,j,U,fe,!1),le!==null&&qe!==null&&Jd(Z,qe,le,fe,!0)}}e:{if(j=D?_i(D):window,U=j.nodeName&&j.nodeName.toLowerCase(),U==="select"||U==="input"&&j.type==="file")var De=hf;else if(sf(j))if(df)De=Yy;else{De=Hy;var re=By}else U=j.nodeName,!U||U.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?D&&Au(D.elementType)&&(De=hf):De=qy;if(De&&(De=De(e,D))){ff(Z,De,l,Y);break e}re&&re(e,j,D),e==="focusout"&&D&&j.type==="number"&&D.memoizedProps.value!=null&&Eu(j,"number",j.value)}switch(re=D?_i(D):window,e){case"focusin":(sf(re)||re.contentEditable==="true")&&(Vl=re,Bu=D,Bi=null);break;case"focusout":Bi=Bu=Vl=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,Sf(Z,l,Y);break;case"selectionchange":if(Vy)break;case"keydown":case"keyup":Sf(Z,l,Y)}var xe;if(ju)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Xl?of(e,l)&&(Ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ce="onCompositionStart");Ce&&(af&&l.locale!=="ko"&&(Xl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Xl&&(xe=Ps()):(Rn=Y,_u="value"in Rn?Rn.value:Rn.textContent,Xl=!0)),re=Rr(D,Ce),0<re.length&&(Ce=new nf(Ce,e,null,l,Y),Z.push({event:Ce,listeners:re}),xe?Ce.data=xe:(xe=cf(l),xe!==null&&(Ce.data=xe)))),(xe=My?jy(e,l):Ry(e,l))&&(Ce=Rr(D,"onBeforeInput"),0<Ce.length&&(re=new nf("onBeforeInput","beforeinput",null,l,Y),Z.push({event:re,listeners:Ce}),re.data=xe)),w1(Z,e,D,l,Y)}Fd(Z,t)})}function ca(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Rr(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=Ni(e,l),o!=null&&i.unshift(ca(e,o,c)),o=Ni(e,t),o!=null&&i.push(ca(e,o,c))),e.tag===3)return i;e=e.return}return[]}function N1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jd(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=Ni(l,c),D!=null&&g.unshift(ca(l,D,T))):o||(D=Ni(l,c),D!=null&&g.push(ca(l,D,T)))),l=l.return}g.length!==0&&e.push({event:t,listeners:g})}var D1=/\r\n?/g,O1=/\u0000|\uFFFD/g;function Id(e){return(typeof e=="string"?e:""+e).replace(D1,`
|
|
49
|
+
`).replace(O1,"")}function $d(e,t){return t=Id(t),Id(e)===t}function He(e,t,l,i,o,c){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Hl(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Hl(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":Is(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&&Ae("scroll",e);break;case"onScrollEnd":i!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(u(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":Ae("beforetoggle",e),Ae("toggle",e),Ba(e,"popover",i);break;case"xlinkActuate":mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":mn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":mn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":mn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":mn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":mn(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=ry.get(l)||l,Ba(e,l,i))}}function fc(e,t,l,i,o,c){switch(l){case"style":Is(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof i=="string"?Hl(e,i):(typeof i=="number"||typeof i=="bigint")&&Hl(e,""+i);break;case"onScroll":i!=null&&Ae("scroll",e);break;case"onScrollEnd":i!=null&&Ae("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(!Ys.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 dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("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(u(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":Ae("invalid",e);var b=c=g=o=null,T=null,D=null;for(i in l)if(l.hasOwnProperty(i)){var Y=l[i];if(Y!=null)switch(i){case"name":o=Y;break;case"type":g=Y;break;case"checked":T=Y;break;case"defaultChecked":D=Y;break;case"value":c=Y;break;case"defaultValue":b=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(u(137,t));break;default:He(e,t,i,Y,l,null)}}Zs(e,c,b,T,D,g,o,!1);return;case"select":Ae("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?Bl(e,!!i,t,!1):l!=null&&Bl(e,!!i,l,!0);return;case"textarea":Ae("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(u(91));break;default:He(e,t,g,b,l,null)}Ks(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":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(i=0;i<oa.length;i++)Ae(oa[i],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("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(u(137,t));default:He(e,t,D,i,l,null)}return;default:if(Au(t)){for(Y in l)l.hasOwnProperty(Y)&&(i=l[Y],i!==void 0&&fc(e,t,Y,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 M1(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,Y=null;for(U in l){var Z=l[U];if(l.hasOwnProperty(U)&&Z!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":T=Z;default:i.hasOwnProperty(U)||He(e,t,U,null,i,Z)}}for(var j in i){var U=i[j];if(Z=l[j],i.hasOwnProperty(j)&&(U!=null||Z!=null))switch(j){case"type":c=U;break;case"name":o=U;break;case"checked":D=U;break;case"defaultChecked":Y=U;break;case"value":g=U;break;case"defaultValue":b=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,t));break;default:U!==Z&&He(e,t,j,U,i,Z)}}ku(e,g,b,T,D,Y,c,o);return;case"select":U=g=b=j=null;for(c in l)if(T=l[c],l.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":U=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":j=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=U,j!=null?Bl(e,!!l,j,!1):!!i!=!!l&&(t!=null?Bl(e,!!l,t,!0):Bl(e,!!l,l?[]:"",!1));return;case"textarea":U=j=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":j=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&He(e,t,g,o,i,c)}Fs(e,j,U);return;case"option":for(var le in l)if(j=l[le],l.hasOwnProperty(le)&&j!=null&&!i.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:He(e,t,le,null,i,j)}for(T in i)if(j=i[T],U=l[T],i.hasOwnProperty(T)&&j!==U&&(j!=null||U!=null))switch(T){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:He(e,t,T,j,i,U)}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 fe in l)j=l[fe],l.hasOwnProperty(fe)&&j!=null&&!i.hasOwnProperty(fe)&&He(e,t,fe,null,i,j);for(D in i)if(j=i[D],U=l[D],i.hasOwnProperty(D)&&j!==U&&(j!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,t));break;default:He(e,t,D,j,i,U)}return;default:if(Au(t)){for(var qe in l)j=l[qe],l.hasOwnProperty(qe)&&j!==void 0&&!i.hasOwnProperty(qe)&&fc(e,t,qe,void 0,i,j);for(Y in i)j=i[Y],U=l[Y],!i.hasOwnProperty(Y)||j===U||j===void 0&&U===void 0||fc(e,t,Y,j,i,U);return}}for(var _ in l)j=l[_],l.hasOwnProperty(_)&&j!=null&&!i.hasOwnProperty(_)&&He(e,t,_,null,i,j);for(Z in i)j=i[Z],U=l[Z],!i.hasOwnProperty(Z)||j===U||j==null&&U==null||He(e,t,Z,j,i,U)}function Wd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function j1(){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&&Wd(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 Y=T.transferSize,Z=T.initiatorType;Y&&Wd(Z)&&(T=T.responseEnd,g+=Y*(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 hc=null,dc=null;function Lr(e){return e.nodeType===9?e:e.ownerDocument}function Pd(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 em(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 pc=null;function R1(){var e=window.event;return e&&e.type==="popstate"?e===pc?!1:(pc=e,!0):(pc=null,!1)}var tm=typeof setTimeout=="function"?setTimeout:void 0,L1=typeof clearTimeout=="function"?clearTimeout:void 0,nm=typeof Promise=="function"?Promise:void 0,U1=typeof queueMicrotask=="function"?queueMicrotask:typeof nm<"u"?function(e){return nm.resolve(null).then(e).catch(B1)}:tm;function B1(e){setTimeout(function(){throw e})}function Wn(e){return e==="head"}function lm(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),gi(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[Ci]||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);gi(t)}function im(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 gc(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":gc(l),vu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function H1(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[Ci])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 q1(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 am(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 yc(e){return e.data==="$?"||e.data==="$~"}function xc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Y1(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 bc=null;function rm(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 um(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 om(e,t,l){switch(t=Lr(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function sa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vu(e)}var $t=new Map,cm=new Set;function Ur(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=F.d;F.d={f:X1,r:V1,D:G1,C:Q1,L:Z1,m:F1,X:J1,S:K1,M:I1};function X1(){var e=Dn.f(),t=Cr();return e||t}function V1(e){var t=Rl(e);t!==null&&t.tag===5&&t.type==="form"?wh(t):Dn.r(e)}var di=typeof document>"u"?null:document;function sm(e,t,l){var i=di;if(i&&typeof t=="string"&&t){var o=Vt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),cm.has(o)||(cm.add(o),e={rel:e,crossOrigin:l,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),dt(t,"link",e),ut(t),i.head.appendChild(t)))}}function G1(e){Dn.D(e),sm("dns-prefetch",e,null)}function Q1(e,t){Dn.C(e,t),sm("preconnect",e,t)}function Z1(e,t,l){Dn.L(e,t,l);var i=di;if(i&&e&&t){var o='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Vt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Vt(l.imageSizes)+'"]')):o+='[href="'+Vt(e)+'"]';var c=o;switch(t){case"style":c=mi(e);break;case"script":c=pi(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"),dt(t,"link",e),ut(t),i.head.appendChild(t)))}}function F1(e,t){Dn.m(e,t);var l=di;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Vt(i)+'"][href="'+Vt(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=pi(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"),dt(i,"link",e),ut(i),l.head.appendChild(i)}}}function K1(e,t,l){Dn.S(e,t,l);var i=di;if(i&&e){var o=Ll(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))&&vc(e,l);var T=g=i.createElement("link");ut(T),dt(T,"link",e),T._p=new Promise(function(D,Y){T.onload=D,T.onerror=Y}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Br(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:b},o.set(c,g)}}}function J1(e,t){Dn.X(e,t);var l=di;if(l&&e){var i=Ll(l).hoistableScripts,o=pi(e),c=i.get(o);c||(c=l.querySelector(ha(o)),c||(e=y({src:e,async:!0},t),(t=$t.get(o))&&Sc(e,t),c=l.createElement("script"),ut(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function I1(e,t){Dn.M(e,t);var l=di;if(l&&e){var i=Ll(l).hoistableScripts,o=pi(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))&&Sc(e,t),c=l.createElement("script"),ut(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function fm(e,t,l,i){var o=(o=oe.current)?Ur(o):null;if(!o)throw Error(u(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=Ll(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=Ll(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||$1(o,e,l,g.state))),t&&i===null)throw Error(u(528,""));return g}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=pi(l),l=Ll(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(u(444,e))}}function mi(e){return'href="'+Vt(e)+'"'}function fa(e){return'link[rel="stylesheet"]['+e+"]"}function hm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function $1(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}),dt(t,"link",l),ut(t),e.head.appendChild(t))}function pi(e){return'[src="'+Vt(e)+'"]'}function ha(e){return"script[async]"+e}function dm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Vt(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),dt(i,"style",o),Br(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=hm(l),(o=$t.get(o))&&vc(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}),dt(c,"link",i),t.state.loading|=4,Br(c,l.precedence,e),t.instance=c;case"script":return c=pi(l.src),(o=e.querySelector(ha(c)))?(t.instance=o,ut(o),o):(i=l,(o=$t.get(c))&&(i=y({},l),Sc(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),dt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Br(i,l.precedence,e));return t.instance}function Br(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 vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hr=null;function mm(e,t,l){if(Hr===null){var i=new Map,o=Hr=new Map;o.set(l,i)}else o=Hr,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[Ci]||c[ct]||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 pm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function W1(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 gm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function P1(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=qr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,ut(c);return}c=t.ownerDocument||t,i=hm(i),(o=$t.get(o))&&vc(i,o),c=c.createElement("link"),ut(c);var g=c;g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),dt(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=qr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var kc=0;function e0(e,t){return e.stylesheets&&e.count===0&&Xr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&kc===0&&(kc=62500*j1());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>kc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function qr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yr=null;function Xr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yr=new Map,t.forEach(t0,e),Yr=null,qr.call(e))}function t0(e,t){if(!(t.state.loading&4)){var l=Yr.get(e);if(l)var i=l.get(null);else{l=new Map,Yr.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=qr.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 da={$$typeof:q,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function n0(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=gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gu(0),this.hiddenUpdates=gu(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 ym(e,t,l,i,o,c,g,b,T,D,Y,Z){return e=new n0(e,t,l,g,T,D,Y,Z,b),t=1,c===!0&&(t|=24),c=Mt(3,null,null,t),e.current=c,c.stateNode=e,t=eo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:l,cache:t},io(c),e}function xm(e){return e?(e=Zl,e):Zl}function bm(e,t,l,i,o,c){o=xm(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=Xn(e,i,t),l!==null&&(Ct(l,e,t),Qi(l,e,t))}function vm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ec(e,t){vm(e,t),(e=e.alternate)&&vm(e,t)}function Sm(e){if(e.tag===13||e.tag===31){var t=hl(e,67108864);t!==null&&Ct(t,e,67108864),Ec(e,67108864)}}function km(e){if(e.tag===13||e.tag===31){var t=Bt();t=yu(t);var l=hl(e,t);l!==null&&Ct(l,e,t),Ec(e,t)}}var Vr=!0;function l0(e,t,l,i){var o=M.T;M.T=null;var c=F.p;try{F.p=2,Ac(e,t,l,i)}finally{F.p=c,M.T=o}}function i0(e,t,l,i){var o=M.T;M.T=null;var c=F.p;try{F.p=8,Ac(e,t,l,i)}finally{F.p=c,M.T=o}}function Ac(e,t,l,i){if(Vr){var o=Tc(i);if(o===null)sc(e,t,i,Gr,l),Am(e,i);else if(r0(o,e,t,l,i))i.stopPropagation();else if(Am(e,i),t&4&&-1<a0.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=ul(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),(Me&6)===0&&(wr=yt()+500,ua(0))}}break;case 31:case 13:b=hl(c,2),b!==null&&Ct(b,c,2),Cr(),Ec(c,2)}if(c=Tc(i),c===null&&sc(e,t,i,Gr,l),c===o)break;o=c}o!==null&&i.stopPropagation()}else sc(e,t,i,null,l)}}function Tc(e){return e=wu(e),wc(e)}var Gr=null;function wc(e){if(Gr=null,e=jl(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=m(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 Gr=e,null}function Em(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(pu()){case X:return 2;case I:return 8;case pe:case ke:return 32;case je:return 268435456;default:return 32}default:return 32}}var zc=!1,Pn=null,el=null,tl=null,ma=new Map,pa=new Map,nl=[],a0="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 Am(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":ma.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&&Sm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function r0(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 ma.set(c,ga(ma.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 Tm(e){var t=jl(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,Bs(e.priority,function(){km(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Bs(e.priority,function(){km(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 Qr(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);Tu=i,l.target.dispatchEvent(i),Tu=null}else return t=Rl(l),t!==null&&Sm(t),e.blockedOn=l,!1;t.shift()}return!0}function wm(e,t,l){Qr(e)&&l.delete(t)}function u0(){zc=!1,Pn!==null&&Qr(Pn)&&(Pn=null),el!==null&&Qr(el)&&(el=null),tl!==null&&Qr(tl)&&(tl=null),ma.forEach(wm),pa.forEach(wm)}function Zr(e,t){e.blockedOn===t&&(e.blockedOn=null,zc||(zc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,u0)))}var Fr=null;function zm(e){Fr!==e&&(Fr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Fr===e&&(Fr=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(wc(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 gi(e){function t(T){return Zr(T,e)}Pn!==null&&Zr(Pn,e),el!==null&&Zr(el,e),tl!==null&&Zr(tl,e),ma.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);)Tm(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||zm(l);else if(g){var b=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[kt]||null)b=g.formAction;else if(wc(o)!==null)continue}else b=g.action;typeof b=="function"?l[i+1]=b:(l.splice(i,3),i-=3),zm(l)}}}function Cm(){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}Kr.prototype.render=Cc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,i=Bt();bm(l,i,e,t,null,null)},Kr.prototype.unmount=Cc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bm(e.current,2,null,e,null,null),Cr(),t[Ml]=null}};function Kr(e){this._internalRoot=e}Kr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Us();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&&Tm(e)}};var _m=a.version;if(_m!=="19.2.4")throw Error(u(527,_m,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=d(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var o0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jr.isDisabled&&Jr.supportsFiber)try{xt=Jr.inject(o0),at=Jr}catch{}}return xa.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,i="",o=Lh,c=Uh,g=Bh;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=ym(e,1,!1,null,null,l,i,null,o,c,g,Cm),e[Ml]=t.current,cc(e),new Cc(t)},xa.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var i=!1,o="",c=Lh,g=Uh,b=Bh,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=ym(e,1,!0,t,l??null,i,o,T,c,g,b,Cm),t.context=xm(null),l=t.current,i=Bt(),i=yu(i),o=Yn(i),o.callback=null,Xn(l,o,i),l=i,t.current.lanes=l,zi(t,l),on(t),e[Ml]=t.current,cc(e),new Kr(t)},xa.version="19.2.4",xa}var Hm;function x0(){if(Hm)return Dc.exports;Hm=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=y0(),Dc.exports}var b0=x0();function v0(n){if(!n)return null;const a=n.trim();if(!a)return null;const u=a.replace(/\\/g,"/").split("/").filter(Boolean).pop();return u&&u.length>0?u:null}async function S0(){try{const n=window;return typeof n.Excel>"u"?void 0:await n.Excel.run(async r=>{const u=r.workbook.worksheets.getActiveWorksheet(),s=r.workbook.getSelectedRange();return u.load("name"),s.load("address"),await r.sync(),{activeSheet:u.name,selectedRange:s.address}})}catch{return}}async function k0(){var s,h,f;const n=window,a=n.Office??null,r=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 u=v0(r);try{if(typeof n.Excel<"u"){const p=await n.Excel.run(async d=>{const x=d.workbook;return typeof x.load=="function"&&(x.load("name"),await d.sync()),typeof x.name=="string"?x.name:null});typeof p=="string"&&p.trim().length>0&&(u=p.trim())}}catch{}return{workbookName:u??document.title??"AgentXL Workbook",workbookUrl:r,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 zl=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"?window.location.origin:"https://localhost:3001",E0={anthropic:"Claude","openai-codex":"ChatGPT",openrouter:"OpenRouter",openai:"OpenAI","github-copilot":"GitHub Copilot","google-gemini-cli":"Gemini","google-antigravity":"Antigravity"};function A0(n){return n?E0[n]??n:"AI"}async function T0(){return S0()}async function w0(){return k0()}async function qm(){const n=await fetch(`${zl}/api/config/status`);if(!n.ok)throw new Error(`Status check failed: ${n.status}`);return n.json()}async function z0(n,a){const r=await fetch(`${zl}/api/auth/apikey`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:n})}),u=await r.json().catch(()=>({}));if(!r.ok)throw new Error(u.error||`Save failed: HTTP ${r.status}`);return u}async function C0(n){const a=await fetch(`${zl}/api/workbook/resolve`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!a.ok){const r=await a.json().catch(()=>({error:"Workbook resolve failed"}));throw new Error(r.error||`Workbook resolve failed: HTTP ${a.status}`)}return a.json()}async function _0(n){const a=await fetch(`${zl}/api/folder/status?workbookId=${encodeURIComponent(n)}`);if(!a.ok){const r=await a.json().catch(()=>({error:"Folder status failed"}));throw new Error(r.error||`Folder status failed: HTTP ${a.status}`)}return a.json()}async function N0(n){const a=await fetch(`${zl}/api/folder/pick`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({initialPath:n??null})});if(!a.ok){const r=await a.json().catch(()=>({error:"Folder picker failed"}));throw new Error(r.error||`Folder picker failed: HTTP ${a.status}`)}return a.json()}async function D0(n,a,r){const u=await fetch(`${zl}/api/folder/select`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workbookId:n,folderPath:a,workbookName:r.workbookName,workbookUrl:r.workbookUrl??null,host:r.host??null,source:r.source??null})});if(!u.ok){const s=await u.json().catch(()=>({error:"Folder selection failed"}));throw new Error(s.error||`Folder selection failed: HTTP ${u.status}`)}return u.json()}async function O0(n,a,r,u,s){const h=await fetch(`${zl}/api/agent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:n,context:a,workbookId:r}),signal:s});if(!h.ok){const d=await h.json().catch(()=>({error:"Request failed"}));throw new Error(d.error||`HTTP ${h.status}`)}if(!h.body)throw new Error("No response body");const f=h.body.getReader(),m=new TextDecoder;let p="";for(;;){const{done:d,value:x}=await f.read();if(d)break;p+=m.decode(x,{stream:!0});const y=p.split(`
|
|
50
|
+
`);p=y.pop()??"";for(const S of y){const v=S.trim();if(v.startsWith("data: "))try{const C=JSON.parse(v.slice(6));u(C)}catch{}}}if(p.trim().startsWith("data: "))try{const d=JSON.parse(p.trim().slice(6));u(d)}catch{}}const Rc=2e3;function M0(){const[n,a]=ue.useState(null),[r,u]=ue.useState(null),[s,h]=ue.useState(!1),f=ue.useRef(null),m=ue.useCallback(async()=>{try{const x=await qm();return a(x),u(null),h(!1),!0}catch{return!1}},[]);ue.useEffect(()=>{let x=!1,y;async function S(){const v=await m();!x&&!v&&(u("Cannot connect to AgentXL server"),y=setTimeout(S,Rc))}return S(),()=>{x=!0,clearTimeout(y)}},[m]),ue.useEffect(()=>{if(!n||n.authenticated)return;const x=setInterval(async()=>{const y=await qm().catch(()=>null);y!=null&&y.authenticated&&a(y)},Rc);return()=>clearInterval(x)},[n]);const p=ue.useCallback(()=>{h(!0),!f.current&&(f.current=setInterval(async()=>{await m()&&(clearInterval(f.current),f.current=null,h(!1))},Rc))},[m]);ue.useEffect(()=>()=>{f.current&&clearInterval(f.current)},[]);const d=ue.useCallback(async()=>{await m()},[m]);return{status:n,connectionError:r,serverDown:s,markServerDown:p,refreshStatus:d}}const j0=5e3;function R0(n){const[a,r]=ue.useState(null),[u,s]=ue.useState(null),[h,f]=ue.useState(null),[m,p]=ue.useState(!1),d=ue.useRef(null),x=ue.useRef(null),y=ue.useRef(!1);return ue.useEffect(()=>{x.current=a},[a]),ue.useEffect(()=>{if(!n){r(null),s(null),f(null),p(!1),d.current=null,x.current=null;return}let S=!1;async function v(O=!1){if(!y.current){y.current=!0,S||p(!0);try{const Q=await w0(),q=JSON.stringify(Q);if(S||s(Q),!O&&d.current===q&&x.current){S||f(null);return}const te=await C0(Q);S||(d.current=q,x.current=te.workbookId,r(te.workbookId),f(null))}catch(Q){S||f(Q instanceof Error?Q.message:"Failed to resolve workbook identity")}finally{y.current=!1,S||p(!1)}}}v(!0);const C=()=>{v()},H=()=>{document.visibilityState==="visible"&&v()};window.addEventListener("focus",C),document.addEventListener("visibilitychange",H);const G=window.setInterval(()=>{v()},j0);return()=>{S=!0,window.removeEventListener("focus",C),document.removeEventListener("visibilitychange",H),window.clearInterval(G),y.current=!1}},[n]),{workbookId:a,workbookIdentityInput:u,workbookResolveError:h,isResolvingWorkbook:m}}function L0(n,a,r){const[u,s]=ue.useState(null),[h,f]=ue.useState(null),[m,p]=ue.useState(!1),[d,x]=ue.useState(!1),y=ue.useCallback(async()=>{if(!r||!n){s(null);return}p(!0);try{const v=await _0(n);s(v),f(null)}catch(v){f(v instanceof Error?v.message:"Failed to load folder status")}finally{p(!1)}},[r,n]);ue.useEffect(()=>{if(!r||!n){s(null),f(null);return}s(null),f(null),y()},[r,n,y]);const S=ue.useCallback(async v=>{if(!n||!a)return f("Workbook identity is not ready yet"),!1;x(!0);try{const C=await D0(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:u,folderError:h,isLoadingFolderStatus:m,isSavingFolder:d,saveFolderLink:S,refreshFolderStatus:y}}const U0={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 B0(n,a){if(a){if(n==="read"&&typeof a.path=="string"){const r=a.path.replace(/\\/g,"/").split("/");return r[r.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 H0(){return{assistantId:crypto.randomUUID(),blocks:[],activeThinkingIdx:-1,activeTextIdx:-1,fullText:"",thinking:[],toolCalls:[]}}function q0(n,a){switch(n.type){case"message_update":{const r=n.assistantMessageEvent;if(!r)return{action:"none"};switch(r.type){case"text_delta":{a.activeTextIdx<0&&(a.activeTextIdx=a.blocks.length,a.blocks.push({type:"text",content:""}));const u=a.blocks[a.activeTextIdx];return u.content+=r.delta,a.fullText+=r.delta,{action:"update_assistant",message:il(a)}}case"thinking_start":{a.activeTextIdx=-1,a.activeThinkingIdx=a.blocks.length;const u={content:"",isStreaming:!0};return a.thinking.push(u),a.blocks.push({type:"thinking",content:"",isStreaming:!0}),{action:"update_assistant",message:il(a)}}case"thinking_delta":{if(a.activeThinkingIdx>=0){const u=a.blocks[a.activeThinkingIdx];u.content+=r.delta;const s=a.thinking.length-1;return s>=0&&(a.thinking[s].content+=r.delta),{action:"update_assistant",message:il(a)}}return{action:"none"}}case"thinking_end":{if(a.activeThinkingIdx>=0){const u=a.blocks[a.activeThinkingIdx];u.isStreaming=!1,r.content&&(u.content=r.content);const s=a.thinking.length-1;return s>=0&&(a.thinking[s].isStreaming=!1,r.content&&(a.thinking[s].content=r.content)),a.activeThinkingIdx=-1,{action:"update_assistant",message:il(a)}}return{action:"none"}}default:return{action:"none"}}}case"tool_execution_start":{const r=n;a.activeTextIdx=-1;const u={id:r.toolCallId,name:r.toolName,status:"running",summary:B0(r.toolName,r.args)};return a.toolCalls.push(u),a.blocks.push({type:"tool_call",tool:u}),{action:"update_assistant",message:il(a)}}case"tool_execution_end":{const r=n;a.activeTextIdx=-1;const u=a.toolCalls.find(s=>s.id===r.toolCallId);return u&&(u.status=r.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 r=n;for(let u=a.blocks.length-1;u>=0;u--){const s=a.blocks[u];if(s.type==="status"&&s.state==="running"){s.state=r.aborted||r.errorMessage?"error":"done",s.label=r.aborted?"Compaction aborted":r.errorMessage?`Compaction failed: ${r.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 Y0=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"?window.location.origin:"https://localhost:3001";async function X0(n,a){try{const r=window;if(typeof r.Excel>"u"){await Ir(n,{error:"Excel is not available. The taskpane must be running inside Excel."});return}const u=r.Excel;if(/\.\s*note\s*=/.test(a)){await Ir(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 u.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 Ir(n,{result:h})}catch(r){const u=r instanceof Error?r.message:String(r);await Ir(n,{error:u})}}async function Ir(n,a){try{await fetch(`${Y0}/api/excel/result`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolCallId:n,...a})})}catch(r){console.error("[excel-executor] Failed to POST result:",r)}}function V0(n,a){const[r,u]=ue.useState([]),[s,h]=ue.useState(!1),f=ue.useRef(null),m=ue.useCallback(async d=>{var G,O;const x=d.trim();if(!x||s)return;const y={id:crypto.randomUUID(),role:"user",content:x,timestamp:Date.now()};u(Q=>[...Q,y]),h(!0);const S=H0(),v=Q=>{switch(Q.action){case"update_assistant":u(q=>q.find(ne=>ne.id===Q.message.id)?q.map(ne=>ne.id===Q.message.id?Q.message:ne):[...q,Q.message]);break;case"add_system_error":u(q=>[...q,Q.message]);break}},C=await T0(),H=new AbortController;f.current=H;try{await O0(x,C,n,Q=>{var ne;const q=Q,te=q0(q,S);if(v(te),q.type==="tool_execution_start"&&q.toolName==="excel"){const B=q,$=(ne=B.args)==null?void 0:ne.code;typeof $=="string"&&B.toolCallId&&X0(B.toolCallId,$).catch(he=>{console.error("[excel] execution failed:",he)})}},H.signal)}catch(Q){Q.name==="AbortError"||((G=Q.message)!=null&&G.includes("fetch")||(O=Q.message)!=null&&O.includes("network")||Q.name==="TypeError"?a():u(q=>[...q,{id:crypto.randomUUID(),role:"system",content:Q.message||"Failed to get response",timestamp:Date.now()}]))}finally{h(!1),f.current=null}},[s,a,n]),p=ue.useCallback(()=>{var d;(d=f.current)==null||d.abort()},[]);return{messages:r,isStreaming:s,sendMessage:m,stopStreaming:p}}/**
|
|
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 Lp=(...n)=>n.filter((a,r,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===r).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 G0=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 Q0=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,u)=>u?u.toUpperCase():r.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 Ym=n=>{const a=Q0(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 Z0={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 F0=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 K0=ue.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:s="",children:h,iconNode:f,...m},p)=>ue.createElement("svg",{ref:p,...Z0,width:a,height:a,stroke:n,strokeWidth:u?Number(r)*24/Number(a):r,className:Lp("lucide",s),...!h&&!F0(m)&&{"aria-hidden":"true"},...m},[...f.map(([d,x])=>ue.createElement(d,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 $e=(n,a)=>{const r=ue.forwardRef(({className:u,...s},h)=>ue.createElement(K0,{ref:h,iconNode:a,className:Lp(`lucide-${G0(Ym(n))}`,`lucide-${n}`,u),...s}));return r.displayName=Ym(n),r};/**
|
|
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 J0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],I0=$e("arrow-right",J0);/**
|
|
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 $0=[["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"}]],W0=$e("brain",$0);/**
|
|
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 P0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ex=$e("chevron-down",P0);/**
|
|
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 tx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Up=$e("chevron-right",tx);/**
|
|
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 nx=[["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"}]],hs=$e("circle-alert",nx);/**
|
|
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 lx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Bp=$e("circle-check",lx);/**
|
|
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 ix=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ax=$e("download",ix);/**
|
|
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 rx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Lc=$e("external-link",rx);/**
|
|
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 ux=[["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"}]],ox=$e("file-spreadsheet",ux);/**
|
|
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 cx=[["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"}]],nu=$e("file-text",cx);/**
|
|
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 sx=[["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"}]],ds=$e("folder-open",sx);/**
|
|
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 fx=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Xm=$e("key-round",fx);/**
|
|
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 hx=[["rect",{width:"18",height:"12",x:"3",y:"4",rx:"2",ry:"2",key:"1qhy41"}],["line",{x1:"2",x2:"22",y1:"20",y2:"20",key:"ni3hll"}]],dx=$e("laptop-minimal",hx);/**
|
|
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 mx=[["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"}]],px=$e("link-2",mx);/**
|
|
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 gx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Hp=$e("loader-circle",gx);/**
|
|
166
|
+
* @license lucide-react v0.564.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const yx=[["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"}]],ms=$e("refresh-cw",yx);/**
|
|
171
|
+
* @license lucide-react v0.564.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const xx=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],qp=$e("search",xx);/**
|
|
176
|
+
* @license lucide-react v0.564.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const bx=[["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"}]],vx=$e("send",bx);/**
|
|
181
|
+
* @license lucide-react v0.564.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const Sx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Yp=$e("shield-check",Sx);/**
|
|
186
|
+
* @license lucide-react v0.564.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const kx=[["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"}]],Ex=$e("shield",kx);/**
|
|
191
|
+
* @license lucide-react v0.564.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const Ax=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Tx=$e("sparkles",Ax);/**
|
|
196
|
+
* @license lucide-react v0.564.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const wx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],zx=$e("square",wx),Vm=[{id:1,label:"Connect"},{id:2,label:"Folder"},{id:3,label:"Ask"}];function uu({currentStep:n,title:a,subtitle:r,badge:u="AgentXL onboarding",children:s,footer:h}){return E.jsx("div",{className:"min-h-full overflow-y-auto bg-[radial-gradient(circle_at_top,_rgba(22,163,74,0.14),_transparent_38%),linear-gradient(180deg,_#f5fbf5_0%,_#f8fafc_48%,_#ffffff_100%)]",children:E.jsx("div",{className:"mx-auto flex min-h-full w-full max-w-[360px] flex-col justify-center px-4 py-5",children:E.jsxs("div",{className:"rounded-[28px] border border-emerald-100/80 bg-white/95 p-5 shadow-[0_24px_60px_rgba(15,23,42,0.08)] backdrop-blur",children:[E.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[E.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-emerald-100 bg-emerald-50 px-3 py-1 text-[11px] font-medium text-emerald-800",children:[E.jsx("span",{className:"inline-flex h-5 w-5 items-center justify-center rounded-full bg-emerald-600 text-[10px] font-semibold text-white",children:"AX"}),u]}),n?E.jsxs("div",{className:"text-[11px] font-medium text-gray-400",children:["Step ",n," of ",Vm.length]}):null]}),n?E.jsx("div",{className:"mb-5 grid grid-cols-3 gap-2",children:Vm.map(f=>{const m=f.id===n,p=f.id<n;return E.jsxs("div",{className:["rounded-2xl border px-2.5 py-2 text-center transition-colors",m?"border-emerald-200 bg-emerald-50 text-emerald-800":p?"border-emerald-100 bg-emerald-50/60 text-emerald-700":"border-gray-200 bg-gray-50 text-gray-400"].join(" "),children:[E.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.18em]",children:f.id}),E.jsx("div",{className:"mt-1 text-[11px] font-medium",children:f.label})]},f.id)})}):null,E.jsxs("div",{className:"mb-5",children:[E.jsx("h1",{className:"text-[22px] font-semibold tracking-[-0.03em] text-gray-950",children:a}),E.jsx("p",{className:"mt-2 text-[13px] leading-6 text-gray-500",children:r})]}),E.jsx("div",{className:"space-y-4",children:s}),h?E.jsx("div",{className:"mt-5 border-t border-gray-100 pt-4",children:h}):null]})})})}const Gm=window.location.hostname!=="localhost"&&window.location.hostname!=="127.0.0.1";function Cx(){return E.jsxs(uu,{title:"Start AgentXL first",subtitle:Gm?"The add-in is loaded, but the local AgentXL server is not reachable at localhost:3001.":"Excel can see the add-in, but the local AgentXL server is not reachable yet.",badge:"AgentXL setup",footer:E.jsxs("div",{className:"flex items-center gap-2 text-[12px] text-gray-400",children:[E.jsx(ms,{size:13,className:"animate-spin"}),"Reconnecting…"]}),children:[E.jsx("div",{className:"rounded-3xl border border-red-100 bg-[linear-gradient(135deg,_#fff5f5_0%,_#ffffff_100%)] p-4",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 flex h-10 w-10 shrink-0 items-center justify-center rounded-2xl bg-red-100 text-red-600",children:E.jsx(hs,{size:18})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[13px] font-semibold text-gray-900",children:"The local server is not running"}),E.jsx("p",{className:"mt-1 text-[12px] leading-5 text-gray-600",children:"AgentXL needs a local server for document processing and AI. Start it, then this screen will recover automatically."})]})]})}),E.jsxs("div",{className:"grid gap-3",children:[Gm&&E.jsx("div",{className:"rounded-2xl border border-emerald-200 bg-emerald-50/50 px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(ax,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"Don't have AgentXL installed?"}),E.jsxs("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:["Download the latest release from"," ",E.jsx("a",{href:"https://github.com/satish860/agentxl/releases",target:"_blank",rel:"noopener noreferrer",className:"text-emerald-700 underline",children:"GitHub Releases"}),". Extract the ZIP, double-click ",E.jsx("span",{className:"font-medium text-gray-700",children:"AgentXL.vbs"}),"."]})]})]})}),E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(dx,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"Windows release"}),E.jsxs("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:["Double-click ",E.jsx("span",{className:"font-medium text-gray-700",children:"AgentXL.vbs"})," from the extracted release folder. It starts the server silently."]})]})]})}),E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(I0,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"npm users"}),E.jsxs("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:["Run ",E.jsx("code",{className:"rounded bg-gray-50 px-1.5 py-0.5 text-[11px] text-gray-700",children:"agentxl start"})," and wait for ",E.jsx("span",{className:"font-medium text-gray-700",children:"https://localhost:3001"})," to come up."]})]})]})})]})]})}function _x(n){const a=n.trim();return a.startsWith("sk-ant-")?"anthropic":a.startsWith("sk-or-")?"openrouter":a.startsWith("sk-")?"openai":null}const Nx={anthropic:"Anthropic (Claude)",openrouter:"OpenRouter",openai:"OpenAI"};function Dx({onSaved:n}){const[a,r]=ue.useState(""),[u,s]=ue.useState(!1),[h,f]=ue.useState(null),m=a.trim(),p=_x(m);async function d(){if(f(null),m.length<16){f("That key looks too short. Paste the full API key.");return}s(!0);try{const x=await z0(m);n==null||n(x.provider)}catch(x){f(x instanceof Error?x.message:"Could not save the API key.")}finally{s(!1)}}return E.jsxs(uu,{currentStep:1,title:"Connect your model provider",subtitle:"Paste an API key to get started. AgentXL stores it locally and uses it only to call your chosen provider.",footer:E.jsxs("div",{className:"flex items-start gap-2 text-[11px] leading-5 text-gray-400",children:[E.jsx(Yp,{size:13,className:"mt-0.5 shrink-0"}),E.jsxs("span",{children:["Saved to ",E.jsx("code",{className:"rounded bg-white px-1 py-0.5 text-[10px]",children:"~/.agentxl/auth.json"}),". Your key never leaves your machine except to call the provider you chose."]})]}),children:[E.jsx("div",{className:"rounded-3xl border border-emerald-100 bg-[linear-gradient(135deg,_#ecfdf3_0%,_#ffffff_100%)] p-4",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 flex h-10 w-10 shrink-0 items-center justify-center rounded-2xl bg-emerald-600 text-white",children:E.jsx(Xm,{size:18})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[13px] font-semibold text-gray-900",children:"Paste an API key"}),E.jsx("p",{className:"mt-1 text-[12px] leading-5 text-gray-600",children:"The provider is detected from the key prefix."})]})]})}),E.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-4",children:[E.jsx("label",{className:"block text-[12px] font-medium text-gray-700",children:"API key"}),E.jsx("input",{type:"password",autoComplete:"off",spellCheck:!1,value:a,onChange:x=>r(x.target.value),placeholder:"sk-or-...",disabled:u,className:"mt-2 w-full rounded-2xl border border-gray-200 px-3 py-3 font-mono text-[12px] outline-none transition focus:border-emerald-500 focus:ring-2 focus:ring-emerald-500/15 disabled:opacity-50",onKeyDown:x=>{x.key==="Enter"&&!u&&m&&d()}}),E.jsx("div",{className:"mt-2 flex items-center justify-between text-[11px] text-gray-500",children:E.jsx("span",{children:m.length===0?"Supported prefixes: sk-or-… (OpenRouter), sk-ant-… (Anthropic), sk-… (OpenAI)":p?`Detected: ${Nx[p]}`:"Provider not detected — we'll ask you to confirm."})}),h?E.jsx("div",{className:"mt-3 rounded-2xl border border-red-100 bg-red-50 px-3 py-2.5 text-[12px] leading-5 text-red-700",children:h}):null,E.jsxs("button",{onClick:d,disabled:!m||u,className:"btn-press mt-3 inline-flex w-full items-center justify-center gap-2 rounded-2xl bg-emerald-600 px-4 py-3 text-[13px] font-medium text-white transition hover:bg-emerald-700 disabled:opacity-40 disabled:hover:bg-emerald-600",children:[u?E.jsx(ms,{size:14,className:"animate-spin"}):E.jsx(Xm,{size:14}),u?"Saving…":"Save and continue"]})]}),E.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"Don't have a key?"}),E.jsxs("ul",{className:"mt-2 grid gap-2 text-[11px] leading-5 text-gray-600",children:[E.jsxs("li",{children:[E.jsxs("a",{href:"https://openrouter.ai/keys",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-emerald-700 hover:underline",children:["OpenRouter ",E.jsx(Lc,{size:11})]})," ","— recommended, 100+ models, free tier."]}),E.jsxs("li",{children:[E.jsxs("a",{href:"https://console.anthropic.com/settings/keys",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-emerald-700 hover:underline",children:["Anthropic ",E.jsx(Lc,{size:11})]})," ","— direct Claude API access."]}),E.jsxs("li",{children:[E.jsxs("a",{href:"https://platform.openai.com/api-keys",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-emerald-700 hover:underline",children:["OpenAI ",E.jsx(Lc,{size:11})]})," ","— GPT-4o."]})]})]})]})}function Ox({workbookId:n,workbookName:a,currentFolderPath:r,isSaving:u,isPickingFolder:s,error:h,onPickFolder:f,onSave:m,onCancel:p,onSkip:d}){const[x,y]=ue.useState(r??"");ue.useEffect(()=>{y(r??"")},[r]);const S=x.trim(),v=ue.useMemo(()=>s?"If the picker does not appear, keep typing the folder path manually.":"Tip: pick the engagement folder that contains the supporting evidence you want AgentXL to search.",[s]);async function C(){const H=await f();H&&y(H)}return E.jsxs(uu,{currentStep:2,title:"Choose the folder with your supporting documents",subtitle:"Start from the evidence folder, not from spreadsheet chat. AgentXL will search the files you point it to and map the grounded result back into Excel.",footer:E.jsxs("div",{className:"flex items-start gap-2 text-[11px] leading-5 text-gray-400",children:[E.jsx(Yp,{size:13,className:"mt-0.5 shrink-0"}),E.jsx("span",{children:"Folder links are saved per workbook so the next session can reopen in the same context."})]}),children:[E.jsx("div",{className:"rounded-3xl border border-emerald-100 bg-[linear-gradient(135deg,_#effcf3_0%,_#ffffff_100%)] p-4",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 flex h-10 w-10 shrink-0 items-center justify-center rounded-2xl bg-emerald-600 text-white",children:E.jsx(ds,{size:18})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[13px] font-semibold text-gray-900",children:"One workbook, one evidence folder"}),E.jsx("p",{className:"mt-1 text-[12px] leading-5 text-gray-600",children:"Choose the local folder that contains the documents for this workbook. You can change it later."})]})]})}),E.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-4",children:[E.jsxs("div",{className:"mb-4 grid gap-2",children:[a?E.jsxs("div",{className:"rounded-2xl bg-gray-50 px-3 py-2.5",children:[E.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-gray-400",children:"Workbook"}),E.jsx("p",{className:"mt-1 text-[12px] font-medium text-gray-800 break-words",children:a})]}):null,E.jsxs("div",{className:"rounded-2xl bg-gray-50 px-3 py-2.5",children:[E.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-gray-400",children:"Workbook ID"}),E.jsx("p",{className:"mt-1 break-all text-[11px] text-gray-500",children:n})]})]}),E.jsx("label",{className:"block text-[12px] font-medium text-gray-700",children:"Folder path"}),E.jsx("input",{value:x,onChange:H=>y(H.target.value),placeholder:"C:\\\\Clients\\\\ABC\\\\Support",disabled:u,className:"mt-2 w-full rounded-2xl border border-gray-200 px-3 py-3 text-[13px] outline-none transition focus:border-emerald-500 focus:ring-2 focus:ring-emerald-500/15 disabled:opacity-50"}),E.jsx("div",{className:"mt-3 flex gap-2",children:E.jsx("button",{onClick:C,disabled:u||s,className:"rounded-2xl border border-gray-200 px-3 py-2.5 text-[12px] font-medium text-gray-700 transition hover:bg-gray-50 disabled:opacity-40",children:s?"Trying to open…":"Browse for folder"})}),E.jsx("p",{className:"mt-3 text-[11px] leading-5 text-gray-400",children:v}),h?E.jsx("div",{className:"mt-4 rounded-2xl border border-red-100 bg-red-50 px-3 py-2.5 text-[12px] leading-5 text-red-700",children:h}):null,E.jsxs("div",{className:"mt-4 flex gap-2",children:[E.jsxs("button",{onClick:()=>m(S),disabled:!S||u,className:"btn-press inline-flex flex-1 items-center justify-center gap-2 rounded-2xl bg-emerald-600 px-4 py-3 text-[13px] font-medium text-white transition hover:bg-emerald-700 disabled:opacity-40 disabled:hover:bg-emerald-600",children:[u?E.jsx(ms,{size:14,className:"animate-spin"}):E.jsx(px,{size:14}),r?"Update folder":"Link folder"]}),p?E.jsx("button",{onClick:p,disabled:u,className:"rounded-2xl border border-gray-200 px-4 py-3 text-[13px] font-medium text-gray-600 transition hover:bg-gray-50 disabled:opacity-40",children:"Cancel"}):null]}),d?E.jsx("button",{onClick:d,disabled:u,className:"mt-3 w-full rounded-2xl border border-dashed border-gray-300 px-4 py-2.5 text-[12px] font-medium text-gray-600 transition hover:bg-gray-50 disabled:opacity-40",children:"Skip for now — chat without a folder"}):null]}),E.jsxs("div",{className:"grid gap-2",children:[E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(nu,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"What AgentXL will do from here"}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:"Search the linked folder, read the relevant files, and prepare grounded outputs that can be written into Excel."})]})]})}),E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(Up,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"Next step"}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:"After linking the folder, you can ask for a mismatch review, a mapped value, or source traceability."})]})]})})]})]})}const Mx=[{icon:ds,label:"Compare source files to this sheet",description:"Find mismatches between supporting documents and workbook values.",prompt:"Compare the selected document folder to this sheet and flag mismatches"},{icon:ox,label:"Map a value into Excel",description:"Extract a grounded value from the folder and place it in the workbook.",prompt:"Extract the relevant value from the selected document folder and map it into Excel"},{icon:qp,label:"Trace cells to source files",description:"See which files support the numbers already written into Excel.",prompt:"Show me which workbook cells came from which source files"}];function jx({status:n,workbookId:a,linkedFolderPath:r,totalFiles:u,supportedFiles:s,onQuickAction:h,onChangeFolder:f}){const m=A0(n.provider);return E.jsxs(uu,{currentStep:3,title:"Ask a grounded question about this folder",subtitle:"AgentXL will search the linked documents, answer from evidence, and help map the result into Excel with traceability.",badge:"AgentXL ready",footer:E.jsxs("div",{className:"space-y-1.5 text-[11px] text-gray-400",children:[E.jsxs("p",{children:["Version ",n.version]}),a?E.jsxs("p",{className:"break-all",children:["Workbook ID: ",a]}):null]}),children:[E.jsxs("div",{className:"rounded-3xl border border-emerald-100 bg-[linear-gradient(135deg,_#ecfdf3_0%,_#ffffff_100%)] p-4",children:[E.jsxs("div",{className:"flex items-start justify-between gap-3",children:[E.jsxs("div",{children:[E.jsx("p",{className:"text-[13px] font-semibold text-gray-900",children:"Linked evidence folder"}),E.jsx("p",{className:"mt-1 break-all text-[12px] leading-5 text-gray-600",children:r})]}),E.jsx("button",{onClick:f,className:"shrink-0 rounded-full border border-emerald-200 bg-white px-3 py-1.5 text-[11px] font-medium text-emerald-700 transition hover:bg-emerald-50",children:"Change"})]}),E.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[E.jsxs("div",{className:"rounded-2xl bg-white px-3 py-2.5",children:[E.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-gray-400",children:"Model"}),E.jsx("p",{className:"mt-1 text-[12px] font-medium text-gray-800",children:m})]}),E.jsxs("div",{className:"rounded-2xl bg-white px-3 py-2.5",children:[E.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-gray-400",children:"Files"}),E.jsxs("p",{className:"mt-1 text-[12px] font-medium text-gray-800",children:[typeof s=="number"?s:"—",typeof u=="number"?E.jsxs("span",{className:"font-normal text-gray-500",children:[" / ",u," supported"]}):null]})]})]})]}),E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(Ex,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"High-trust workflow"}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:"Ask from the source folder first. AgentXL is built to show what files support the answer before important workbook writes."})]})]})}),E.jsx("div",{className:"space-y-2",children:Mx.map(p=>E.jsx("button",{onClick:()=>h(p.prompt),className:"chip-hover w-full rounded-2xl border border-gray-200 bg-white px-4 py-3 text-left transition",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(p.icon,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[13px] font-medium text-gray-800",children:p.label}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:p.description})]})]})},p.label))}),E.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white px-4 py-3",children:E.jsxs("div",{className:"flex items-start gap-3",children:[E.jsx("div",{className:"mt-0.5 text-emerald-600",children:E.jsx(Tx,{size:16})}),E.jsxs("div",{children:[E.jsx("p",{className:"text-[12px] font-medium text-gray-800",children:"Good first prompt"}),E.jsx("p",{className:"mt-1 text-[11px] leading-5 text-gray-500",children:"“Extract the relevant value from the selected document folder and map it into Excel with a citation.”"})]})]})})]})}function Rx(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Lx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ux=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bx={};function Qm(n,a){return(Bx.jsx?Ux:Lx).test(n)}const Hx=/[ \t\n\f\r]/g;function qx(n){return typeof n=="object"?n.type==="text"?Zm(n.value):!1:Zm(n)}function Zm(n){return n.replace(Hx,"")===""}class Ca{constructor(a,r,u){this.normal=r,this.property=a,u&&(this.space=u)}}Ca.prototype.normal={};Ca.prototype.property={};Ca.prototype.space=void 0;function Xp(n,a){const r={},u={};for(const s of n)Object.assign(r,s.property),Object.assign(u,s.normal);return new Ca(r,u,a)}function es(n){return n.toLowerCase()}class Nt{constructor(a,r){this.attribute=r,this.property=a}}Nt.prototype.attribute="";Nt.prototype.booleanish=!1;Nt.prototype.boolean=!1;Nt.prototype.commaOrSpaceSeparated=!1;Nt.prototype.commaSeparated=!1;Nt.prototype.defined=!1;Nt.prototype.mustUseProperty=!1;Nt.prototype.number=!1;Nt.prototype.overloadedBoolean=!1;Nt.prototype.property="";Nt.prototype.spaceSeparated=!1;Nt.prototype.space=void 0;let Yx=0;const be=Cl(),it=Cl(),ts=Cl(),K=Cl(),Ge=Cl(),vi=Cl(),Ht=Cl();function Cl(){return 2**++Yx}const ns=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:it,commaOrSpaceSeparated:Ht,commaSeparated:vi,number:K,overloadedBoolean:ts,spaceSeparated:Ge},Symbol.toStringTag,{value:"Module"})),Uc=Object.keys(ns);class ps extends Nt{constructor(a,r,u,s){let h=-1;if(super(a,r),Fm(this,"space",s),typeof u=="number")for(;++h<Uc.length;){const f=Uc[h];Fm(this,Uc[h],(u&ns[f])===ns[f])}}}ps.prototype.defined=!0;function Fm(n,a,r){r&&(n[a]=r)}function ki(n){const a={},r={};for(const[u,s]of Object.entries(n.properties)){const h=new ps(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(h.mustUseProperty=!0),a[u]=h,r[es(u)]=u,r[es(h.attribute)]=u}return new Ca(a,r,n.space)}const Vp=ki({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:Ge,ariaCurrent:null,ariaDescribedBy:Ge,ariaDetails:null,ariaDisabled:it,ariaDropEffect:Ge,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:Ge,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ge,ariaLevel:K,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:Ge,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:Ge,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:it,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 Gp(n,a){return a in n?n[a]:a}function Qp(n,a){return Gp(n,a.toLowerCase())}const Xx=ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vi,acceptCharset:Ge,accessKey:Ge,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Ge,autoFocus:be,autoPlay:be,blocking:Ge,capture:null,charSet:null,checked:be,cite:null,className:Ge,cols:K,colSpan:null,content:null,contentEditable:it,controls:be,controlsList:Ge,coords:K|vi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:ts,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Ge,height:K,hidden:ts,high:K,href:null,hrefLang:null,htmlFor:Ge,httpEquiv:Ge,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Ge,itemRef:Ge,itemScope:be,itemType:Ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,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:be,optimum:K,pattern:null,ping:Ge,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Ge,required:be,reversed:be,rows:K,rowSpan:K,sandbox:Ge,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:it,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:be,useMap:null,value:it,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ge,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:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:it,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:be,disableRemotePlayback:be,prefix:null,property:null,results:K,security:null,unselectable:null},space:"html",transform:Qp}),Vx=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:Ge,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:be,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:vi,g2:vi,glyphName:vi,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:Ge,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:Gp}),Zp=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()}}),Fp=ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Qp}),Kp=ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),Gx={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"},Qx=/[A-Z]/g,Km=/-[a-z]/g,Zx=/^data[-\w.:]+$/i;function Fx(n,a){const r=es(a);let u=a,s=Nt;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Zx.test(a)){if(a.charAt(4)==="-"){const h=a.slice(5).replace(Km,Jx);u="data"+h.charAt(0).toUpperCase()+h.slice(1)}else{const h=a.slice(4);if(!Km.test(h)){let f=h.replace(Qx,Kx);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=ps}return new s(u,a)}function Kx(n){return"-"+n.toLowerCase()}function Jx(n){return n.charAt(1).toUpperCase()}const Ix=Xp([Vp,Xx,Zp,Fp,Kp],"html"),gs=Xp([Vp,Vx,Zp,Fp,Kp],"svg");function $x(n){return n.join(" ").trim()}var yi={},Bc,Jm;function Wx(){if(Jm)return Bc;Jm=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,h=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,m=/^\s+|\s+$/g,p=`
|
|
201
|
+
`,d="/",x="*",y="",S="comment",v="declaration";function C(G,O){if(typeof G!="string")throw new TypeError("First argument must be a string");if(!G)return[];O=O||{};var Q=1,q=1;function te(ae){var J=ae.match(a);J&&(Q+=J.length);var M=ae.lastIndexOf(p);q=~M?ae.length-M:q+ae.length}function ne(){var ae={line:Q,column:q};return function(J){return J.position=new B(ae),me(),J}}function B(ae){this.start=ae,this.end={line:Q,column:q},this.source=O.source}B.prototype.content=G;function $(ae){var J=new Error(O.source+":"+Q+":"+q+": "+ae);if(J.reason=ae,J.filename=O.source,J.line=Q,J.column=q,J.source=G,!O.silent)throw J}function he(ae){var J=ae.exec(G);if(J){var M=J[0];return te(M),G=G.slice(M.length),J}}function me(){he(r)}function R(ae){var J;for(ae=ae||[];J=ee();)J!==!1&&ae.push(J);return ae}function ee(){var ae=ne();if(!(d!=G.charAt(0)||x!=G.charAt(1))){for(var J=2;y!=G.charAt(J)&&(x!=G.charAt(J)||d!=G.charAt(J+1));)++J;if(J+=2,y===G.charAt(J-1))return $("End of comment missing");var M=G.slice(2,J-2);return q+=2,te(M),G=G.slice(J),q+=2,ae({type:S,comment:M})}}function W(){var ae=ne(),J=he(u);if(J){if(ee(),!he(s))return $("property missing ':'");var M=he(h),F=ae({type:v,property:H(J[0].replace(n,y)),value:M?H(M[0].replace(n,y)):y});return he(f),F}}function Se(){var ae=[];R(ae);for(var J;J=W();)J!==!1&&(ae.push(J),R(ae));return ae}return me(),Se()}function H(G){return G?G.replace(m,y):y}return Bc=C,Bc}var Im;function Px(){if(Im)return yi;Im=1;var n=yi&&yi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=r;const a=n(Wx());function r(u,s){let h=null;if(!u||typeof u!="string")return h;const f=(0,a.default)(u),m=typeof s=="function";return f.forEach(p=>{if(p.type!=="declaration")return;const{property:d,value:x}=p;m?s(d,x,p):x&&(h=h||{},h[d]=x)}),h}return yi}var ba={},$m;function eb(){if($m)return ba;$m=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,h=function(d){return!d||r.test(d)||n.test(d)},f=function(d,x){return x.toUpperCase()},m=function(d,x){return"".concat(x,"-")},p=function(d,x){return x===void 0&&(x={}),h(d)?d:(d=d.toLowerCase(),x.reactCompat?d=d.replace(s,m):d=d.replace(u,m),d.replace(a,f))};return ba.camelCase=p,ba}var va,Wm;function tb(){if(Wm)return va;Wm=1;var n=va&&va.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(Px()),r=eb();function u(s,h){var f={};return!s||typeof s!="string"||(0,a.default)(s,function(m,p){m&&p&&(f[(0,r.camelCase)(m,h)]=p)}),f}return u.default=u,va=u,va}var nb=tb();const lb=Rp(nb),Jp=Ip("end"),ys=Ip("start");function Ip(n){return a;function a(r){const u=r&&r.position&&r.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function ib(n){const a=ys(n),r=Jp(n);if(a&&r)return{start:a,end:r}}function Ea(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Pm(n.position):"start"in n||"end"in n?Pm(n):"line"in n||"column"in n?ls(n):""}function ls(n){return ep(n&&n.line)+":"+ep(n&&n.column)}function Pm(n){return ls(n&&n.start)+"-"+ls(n&&n.end)}function ep(n){return n&&typeof n=="number"?n:1}class gt extends Error{constructor(a,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let s="",h={},f=!1;if(r&&("line"in r&&"column"in r?h={place:r}:"start"in r&&"end"in r?h={place:r}:"type"in r?h={ancestors:[r],place:r.position}:h={...r}),typeof a=="string"?s=a:!h.cause&&a&&(f=!0,s=a.message,h.cause=a),!h.ruleId&&!h.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?h.ruleId=u:(h.source=u.slice(0,p),h.ruleId=u.slice(p+1))}if(!h.place&&h.ancestors&&h.ancestors){const p=h.ancestors[h.ancestors.length-1];p&&(h.place=p.position)}const m=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=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=m?m.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}}gt.prototype.file="";gt.prototype.name="";gt.prototype.reason="";gt.prototype.message="";gt.prototype.stack="";gt.prototype.column=void 0;gt.prototype.line=void 0;gt.prototype.ancestors=void 0;gt.prototype.cause=void 0;gt.prototype.fatal=void 0;gt.prototype.place=void 0;gt.prototype.ruleId=void 0;gt.prototype.source=void 0;const xs={}.hasOwnProperty,ab=new Map,rb=/[A-Z]/g,ub=new Set(["table","tbody","thead","tfoot","tr"]),ob=new Set(["td","th"]),$p="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function cb(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=a.filePath||void 0;let u;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=yb(r,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");u=gb(r,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:u,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?gs:Ix,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},h=Wp(s,n,void 0);return h&&typeof h!="string"?h:s.create(n,s.Fragment,{children:h||void 0},void 0)}function Wp(n,a,r){if(a.type==="element")return sb(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return fb(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return db(n,a,r);if(a.type==="mdxjsEsm")return hb(n,a);if(a.type==="root")return mb(n,a,r);if(a.type==="text")return pb(n,a)}function sb(n,a,r){const u=n.schema;let s=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=gs,n.schema=s),n.ancestors.push(a);const h=eg(n,a.tagName,!1),f=xb(n,a);let m=vs(n,a);return ub.has(a.tagName)&&(m=m.filter(function(p){return typeof p=="string"?!qx(p):!0})),Pp(n,f,h,a),bs(f,m),n.ancestors.pop(),n.schema=u,n.create(a,h,f,r)}function fb(n,a){if(a.data&&a.data.estree&&n.evaluater){const u=a.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}wa(n,a.position)}function hb(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);wa(n,a.position)}function db(n,a,r){const u=n.schema;let s=u;a.name==="svg"&&u.space==="html"&&(s=gs,n.schema=s),n.ancestors.push(a);const h=a.name===null?n.Fragment:eg(n,a.name,!0),f=bb(n,a),m=vs(n,a);return Pp(n,f,h,a),bs(f,m),n.ancestors.pop(),n.schema=u,n.create(a,h,f,r)}function mb(n,a,r){const u={};return bs(u,vs(n,a)),n.create(a,n.Fragment,u,r)}function pb(n,a){return a.value}function Pp(n,a,r,u){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=u)}function bs(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function gb(n,a,r){return u;function u(s,h,f,m){const d=Array.isArray(f.children)?r:a;return m?d(h,f,m):d(h,f)}}function yb(n,a){return r;function r(u,s,h,f){const m=Array.isArray(h.children),p=ys(u);return a(s,h,f,m,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function xb(n,a){const r={};let u,s;for(s in a.properties)if(s!=="children"&&xs.call(a.properties,s)){const h=vb(n,s,a.properties[s]);if(h){const[f,m]=h;n.tableCellAlignToStyle&&f==="align"&&typeof m=="string"&&ob.has(a.tagName)?u=m:r[f]=m}}if(u){const h=r.style||(r.style={});h[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function bb(n,a){const r={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const h=u.data.estree.body[0];h.type;const f=h.expression;f.type;const m=f.properties[0];m.type,Object.assign(r,n.evaluater.evaluateExpression(m.argument))}else wa(n,a.position);else{const s=u.name;let h;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const m=u.value.data.estree.body[0];m.type,h=n.evaluater.evaluateExpression(m.expression)}else wa(n,a.position);else h=u.value===null?!0:u.value;r[s]=h}return r}function vs(n,a){const r=[];let u=-1;const s=n.passKeys?new Map:ab;for(;++u<a.children.length;){const h=a.children[u];let f;if(n.passKeys){const p=h.type==="element"?h.tagName:h.type==="mdxJsxFlowElement"||h.type==="mdxJsxTextElement"?h.name:void 0;if(p){const d=s.get(p)||0;f=p+"-"+d,s.set(p,d+1)}}const m=Wp(n,h,f);m!==void 0&&r.push(m)}return r}function vb(n,a,r){const u=Fx(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?Rx(r):$x(r)),u.property==="style"){let s=typeof r=="object"?r:Sb(n,String(r));return n.stylePropertyNameCase==="css"&&(s=kb(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?Gx[u.property]||u.property:u.attribute,r]}}function Sb(n,a){try{return lb(a,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const u=r,s=new gt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=$p+"#cannot-parse-style-attribute",s}}function eg(n,a,r){let u;if(!r)u={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let h=-1,f;for(;++h<s.length;){const m=Qm(s[h])?{type:"Identifier",name:s[h]}:{type:"Literal",value:s[h]};f=f?{type:"MemberExpression",object:f,property:m,computed:!!(h&&m.type==="Literal"),optional:!1}:m}u=f}else u=Qm(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const s=u.value;return xs.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);wa(n)}function wa(n,a){const r=new gt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=$p+"#cannot-handle-mdx-estrees-without-createevaluater",r}function kb(n){const a={};let r;for(r in n)xs.call(n,r)&&(a[Eb(r)]=n[r]);return a}function Eb(n){let a=n.replace(rb,Ab);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function Ab(n){return"-"+n.toLowerCase()}const Hc={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"]},Tb={};function Ss(n,a){const r=Tb,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return tg(n,u,s)}function tg(n,a,r){if(wb(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return tp(n.children,a,r)}return Array.isArray(n)?tp(n,a,r):""}function tp(n,a,r){const u=[];let s=-1;for(;++s<n.length;)u[s]=tg(n[s],a,r);return u.join("")}function wb(n){return!!(n&&typeof n=="object")}const np=document.createElement("i");function ks(n){const a="&"+n+";";np.innerHTML=a;const r=np.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===a?!1:r}function qt(n,a,r,u){const s=n.length;let h=0,f;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,r=r>0?r:0,u.length<1e4)f=Array.from(u),f.unshift(a,r),n.splice(...f);else for(r&&n.splice(a,r);h<u.length;)f=u.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 lp={}.hasOwnProperty;function ng(n){const a={};let r=-1;for(;++r<n.length;)zb(a,n[r]);return a}function zb(n,a){let r;for(r in a){const s=(lp.call(n,r)?n[r]:void 0)||(n[r]={}),h=a[r];let f;if(h)for(f in h){lp.call(s,f)||(s[f]=[]);const m=h[f];Cb(s[f],Array.isArray(m)?m:m?[m]:[])}}}function Cb(n,a){let r=-1;const u=[];for(;++r<a.length;)(a[r].add==="after"?n:u).push(a[r]);qt(n,0,0,u)}function lg(n,a){const r=Number.parseInt(n,a);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function ln(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vt=rl(/[A-Za-z]/),pt=rl(/[\dA-Za-z]/),_b=rl(/[#-'*+\--9=?A-Z^-~]/);function lu(n){return n!==null&&(n<32||n===127)}const is=rl(/\d/),Nb=rl(/[\dA-Fa-f]/),Db=rl(/[!-/:-@[-`{-~]/);function se(n){return n!==null&&n<-2}function Ve(n){return n!==null&&(n<0||n===32)}function Te(n){return n===-2||n===-1||n===32}const ou=rl(new RegExp("\\p{P}|\\p{S}","u")),wl=rl(/\s/);function rl(n){return a;function a(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function Ei(n){const a=[];let r=-1,u=0,s=0;for(;++r<n.length;){const h=n.charCodeAt(r);let f="";if(h===37&&pt(n.charCodeAt(r+1))&&pt(n.charCodeAt(r+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 m=n.charCodeAt(r+1);h<56320&&m>56319&&m<57344?(f=String.fromCharCode(h,m),s=1):f="�"}else f=String.fromCharCode(h);f&&(a.push(n.slice(u,r),encodeURIComponent(f)),u=r+s+1,f=""),s&&(r+=s,s=0)}return a.join("")+n.slice(u)}function Ne(n,a,r,u){const s=u?u-1:Number.POSITIVE_INFINITY;let h=0;return f;function f(p){return Te(p)?(n.enter(r),m(p)):a(p)}function m(p){return Te(p)&&h++<s?(n.consume(p),m):(n.exit(r),a(p))}}const Ob={tokenize:Mb};function Mb(n){const a=n.attempt(this.parser.constructs.contentInitial,u,s);let r;return a;function u(m){if(m===null){n.consume(m);return}return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),Ne(n,a,"linePrefix")}function s(m){return n.enter("paragraph"),h(m)}function h(m){const p=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,f(m)}function f(m){if(m===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(m);return}return se(m)?(n.consume(m),n.exit("chunkText"),h):(n.consume(m),f)}}const jb={tokenize:Rb},ip={tokenize:Lb};function Rb(n){const a=this,r=[];let u=0,s,h,f;return m;function m(q){if(u<r.length){const te=r[u];return a.containerState=te[1],n.attempt(te[0].continuation,p,d)(q)}return d(q)}function p(q){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&Q();const te=a.events.length;let ne=te,B;for(;ne--;)if(a.events[ne][0]==="exit"&&a.events[ne][1].type==="chunkFlow"){B=a.events[ne][1].end;break}O(u);let $=te;for(;$<a.events.length;)a.events[$][1].end={...B},$++;return qt(a.events,ne+1,0,a.events.slice(te)),a.events.length=$,d(q)}return m(q)}function d(q){if(u===r.length){if(!s)return S(q);if(s.currentConstruct&&s.currentConstruct.concrete)return C(q);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(ip,x,y)(q)}function x(q){return s&&Q(),O(u),S(q)}function y(q){return a.parser.lazy[a.now().line]=u!==r.length,f=a.now().offset,C(q)}function S(q){return a.containerState={},n.attempt(ip,v,C)(q)}function v(q){return u++,r.push([a.currentConstruct,a.containerState]),S(q)}function C(q){if(q===null){s&&Q(),O(0),n.consume(q);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:h}),H(q)}function H(q){if(q===null){G(n.exit("chunkFlow"),!0),O(0),n.consume(q);return}return se(q)?(n.consume(q),G(n.exit("chunkFlow")),u=0,a.interrupt=void 0,m):(n.consume(q),H)}function G(q,te){const ne=a.sliceStream(q);if(te&&ne.push(null),q.previous=h,h&&(h.next=q),h=q,s.defineSkip(q.start),s.write(ne),a.parser.lazy[q.start.line]){let B=s.events.length;for(;B--;)if(s.events[B][1].start.offset<f&&(!s.events[B][1].end||s.events[B][1].end.offset>f))return;const $=a.events.length;let he=$,me,R;for(;he--;)if(a.events[he][0]==="exit"&&a.events[he][1].type==="chunkFlow"){if(me){R=a.events[he][1].end;break}me=!0}for(O(u),B=$;B<a.events.length;)a.events[B][1].end={...R},B++;qt(a.events,he+1,0,a.events.slice($)),a.events.length=B}}function O(q){let te=r.length;for(;te-- >q;){const ne=r[te];a.containerState=ne[1],ne[0].exit.call(a,n)}r.length=q}function Q(){s.write([null]),h=void 0,s=void 0,a.containerState._closeFlow=void 0}}function Lb(n,a,r){return Ne(n,n.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Si(n){if(n===null||Ve(n)||wl(n))return 1;if(ou(n))return 2}function cu(n,a,r){const u=[];let s=-1;for(;++s<n.length;){const h=n[s].resolveAll;h&&!u.includes(h)&&(a=h(a,r),u.push(h))}return a}const as={name:"attention",resolveAll:Ub,tokenize:Bb};function Ub(n,a){let r=-1,u,s,h,f,m,p,d,x;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(u=r;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&a.sliceSerialize(n[u][1]).charCodeAt(0)===a.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[u][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;p=n[u][1].end.offset-n[u][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const y={...n[u][1].end},S={...n[r][1].start};ap(y,-p),ap(S,p),f={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...n[u][1].end}},m={type:p>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:S},h={type:p>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[r][1].start}},s={type:p>1?"strong":"emphasis",start:{...f.start},end:{...m.end}},n[u][1].end={...f.start},n[r][1].start={...m.end},d=[],n[u][1].end.offset-n[u][1].start.offset&&(d=Wt(d,[["enter",n[u][1],a],["exit",n[u][1],a]])),d=Wt(d,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",h,a]]),d=Wt(d,cu(a.parser.constructs.insideSpan.null,n.slice(u+1,r),a)),d=Wt(d,[["exit",h,a],["enter",m,a],["exit",m,a],["exit",s,a]]),n[r][1].end.offset-n[r][1].start.offset?(x=2,d=Wt(d,[["enter",n[r][1],a],["exit",n[r][1],a]])):x=0,qt(n,u-1,r-u+3,d),r=u+d.length-x-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function Bb(n,a){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,s=Si(u);let h;return f;function f(p){return h=p,n.enter("attentionSequence"),m(p)}function m(p){if(p===h)return n.consume(p),m;const d=n.exit("attentionSequence"),x=Si(p),y=!x||x===2&&s||r.includes(p),S=!s||s===2&&x||r.includes(u);return d._open=!!(h===42?y:y&&(s||!S)),d._close=!!(h===42?S:S&&(x||!y)),a(p)}}function ap(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const Hb={name:"autolink",tokenize:qb};function qb(n,a,r){let u=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 vt(v)?(n.consume(v),f):v===64?r(v):d(v)}function f(v){return v===43||v===45||v===46||pt(v)?(u=1,m(v)):d(v)}function m(v){return v===58?(n.consume(v),u=0,p):(v===43||v===45||v===46||pt(v))&&u++<32?(n.consume(v),m):(u=0,d(v))}function p(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||lu(v)?r(v):(n.consume(v),p)}function d(v){return v===64?(n.consume(v),x):_b(v)?(n.consume(v),d):r(v)}function x(v){return pt(v)?y(v):r(v)}function y(v){return v===46?(n.consume(v),u=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||pt(v))&&u++<63){const C=v===45?S:y;return n.consume(v),C}return r(v)}}const _a={partial:!0,tokenize:Yb};function Yb(n,a,r){return u;function u(h){return Te(h)?Ne(n,s,"linePrefix")(h):s(h)}function s(h){return h===null||se(h)?a(h):r(h)}}const ig={continuation:{tokenize:Vb},exit:Gb,name:"blockQuote",tokenize:Xb};function Xb(n,a,r){const u=this;return s;function s(f){if(f===62){const m=u.containerState;return m.open||(n.enter("blockQuote",{_container:!0}),m.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),h}return r(f)}function h(f){return Te(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function Vb(n,a,r){const u=this;return s;function s(f){return Te(f)?Ne(n,h,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):h(f)}function h(f){return n.attempt(ig,a,r)(f)}}function Gb(n){n.exit("blockQuote")}const ag={name:"characterEscape",tokenize:Qb};function Qb(n,a,r){return u;function u(h){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(h),n.exit("escapeMarker"),s}function s(h){return Db(h)?(n.enter("characterEscapeValue"),n.consume(h),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(h)}}const rg={name:"characterReference",tokenize:Zb};function Zb(n,a,r){const u=this;let s=0,h,f;return m;function m(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),p}function p(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),d):(n.enter("characterReferenceValue"),h=31,f=pt,x(y))}function d(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),h=6,f=Nb,x):(n.enter("characterReferenceValue"),h=7,f=is,x(y))}function x(y){if(y===59&&s){const S=n.exit("characterReferenceValue");return f===pt&&!ks(u.sliceSerialize(S))?r(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return f(y)&&s++<h?(n.consume(y),x):r(y)}}const rp={partial:!0,tokenize:Kb},up={concrete:!0,name:"codeFenced",tokenize:Fb};function Fb(n,a,r){const u=this,s={partial:!0,tokenize:ne};let h=0,f=0,m;return p;function p(B){return d(B)}function d(B){const $=u.events[u.events.length-1];return h=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,m=B,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(B)}function x(B){return B===m?(f++,n.consume(B),x):f<3?r(B):(n.exit("codeFencedFenceSequence"),Te(B)?Ne(n,y,"whitespace")(B):y(B))}function y(B){return B===null||se(B)?(n.exit("codeFencedFence"),u.interrupt?a(B):n.check(rp,H,te)(B)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(B))}function S(B){return B===null||se(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(B)):Te(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Ne(n,v,"whitespace")(B)):B===96&&B===m?r(B):(n.consume(B),S)}function v(B){return B===null||se(B)?y(B):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),C(B))}function C(B){return B===null||se(B)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(B)):B===96&&B===m?r(B):(n.consume(B),C)}function H(B){return n.attempt(s,te,G)(B)}function G(B){return n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),O}function O(B){return h>0&&Te(B)?Ne(n,Q,"linePrefix",h+1)(B):Q(B)}function Q(B){return B===null||se(B)?n.check(rp,H,te)(B):(n.enter("codeFlowValue"),q(B))}function q(B){return B===null||se(B)?(n.exit("codeFlowValue"),Q(B)):(n.consume(B),q)}function te(B){return n.exit("codeFenced"),a(B)}function ne(B,$,he){let me=0;return R;function R(J){return B.enter("lineEnding"),B.consume(J),B.exit("lineEnding"),ee}function ee(J){return B.enter("codeFencedFence"),Te(J)?Ne(B,W,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):W(J)}function W(J){return J===m?(B.enter("codeFencedFenceSequence"),Se(J)):he(J)}function Se(J){return J===m?(me++,B.consume(J),Se):me>=f?(B.exit("codeFencedFenceSequence"),Te(J)?Ne(B,ae,"whitespace")(J):ae(J)):he(J)}function ae(J){return J===null||se(J)?(B.exit("codeFencedFence"),$(J)):he(J)}}}function Kb(n,a,r){const u=this;return s;function s(f){return f===null?r(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),h)}function h(f){return u.parser.lazy[u.now().line]?r(f):a(f)}}const qc={name:"codeIndented",tokenize:Ib},Jb={partial:!0,tokenize:$b};function Ib(n,a,r){const u=this;return s;function s(d){return n.enter("codeIndented"),Ne(n,h,"linePrefix",5)(d)}function h(d){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?f(d):r(d)}function f(d){return d===null?p(d):se(d)?n.attempt(Jb,f,p)(d):(n.enter("codeFlowValue"),m(d))}function m(d){return d===null||se(d)?(n.exit("codeFlowValue"),f(d)):(n.consume(d),m)}function p(d){return n.exit("codeIndented"),a(d)}}function $b(n,a,r){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?r(f):se(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):Ne(n,h,"linePrefix",5)(f)}function h(f){const m=u.events[u.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(f):se(f)?s(f):r(f)}}const Wb={name:"codeText",previous:ev,resolve:Pb,tokenize:tv};function Pb(n){let a=n.length-4,r=3,u,s;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(u=r;++u<a;)if(n[u][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(u=r-1,a++;++u<=a;)s===void 0?u!==a&&n[u][1].type!=="lineEnding"&&(s=u):(u===a||n[u][1].type==="lineEnding")&&(n[s][1].type="codeTextData",u!==s+2&&(n[s][1].end=n[u-1][1].end,n.splice(s+2,u-s-2),a-=u-s-2,u=s+2),s=void 0);return n}function ev(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tv(n,a,r){let u=0,s,h;return f;function f(y){return n.enter("codeText"),n.enter("codeTextSequence"),m(y)}function m(y){return y===96?(n.consume(y),u++,m):(n.exit("codeTextSequence"),p(y))}function p(y){return y===null?r(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),p):y===96?(h=n.enter("codeTextSequence"),s=0,x(y)):se(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),p):(n.enter("codeTextData"),d(y))}function d(y){return y===null||y===32||y===96||se(y)?(n.exit("codeTextData"),p(y)):(n.consume(y),d)}function x(y){return y===96?(n.consume(y),s++,x):s===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(y)):(h.type="codeTextData",d(y))}}class nv{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,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(a,u):a>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(a,r,u){const s=r||0;this.setCursor(Math.trunc(a));const h=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return u&&Sa(this.left,u),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 r=this.left.splice(a,Number.POSITIVE_INFINITY);Sa(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Sa(this.left,r.reverse())}}}function Sa(n,a){let r=0;if(a.length<1e4)n.push(...a);else for(;r<a.length;)n.push(...a.slice(r,r+1e4)),r+=1e4}function ug(n){const a={};let r=-1,u,s,h,f,m,p,d;const x=new nv(n);for(;++r<x.length;){for(;r in a;)r=a[r];if(u=x.get(r),r&&u[1].type==="chunkFlow"&&x.get(r-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,h=0,h<p.length&&p[h][1].type==="lineEndingBlank"&&(h+=2),h<p.length&&p[h][1].type==="content"))for(;++h<p.length&&p[h][1].type!=="content";)p[h][1].type==="chunkText"&&(p[h][1]._isInFirstContentOfListItem=!0,h++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,lv(x,r)),r=a[r],d=!0);else if(u[1]._container){for(h=r,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&&(u[1].end={...x.get(s)[1].start},m=x.slice(s,r),m.unshift(u),x.splice(s,r-s+1,m))}}return qt(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!d}function lv(n,a){const r=n.get(a)[1],u=n.get(a)[2];let s=a-1;const h=[];let f=r._tokenizer;f||(f=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const m=f.events,p=[],d={};let x,y,S=-1,v=r,C=0,H=0;const G=[H];for(;v;){for(;n.get(++s)[1]!==v;);h.push(s),v._tokenizer||(x=u.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=r;++S<m.length;)m[S][0]==="exit"&&m[S-1][0]==="enter"&&m[S][1].type===m[S-1][1].type&&m[S][1].start.line!==m[S][1].end.line&&(H=S+1,G.push(H),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):G.pop(),S=G.length;S--;){const O=m.slice(G[S],G[S+1]),Q=h.pop();p.push([Q,Q+O.length-1]),n.splice(Q,2,O)}for(p.reverse(),S=-1;++S<p.length;)d[C+p[S][0]]=C+p[S][1],C+=p[S][1]-p[S][0]-1;return d}const iv={resolve:rv,tokenize:uv},av={partial:!0,tokenize:ov};function rv(n){return ug(n),n}function uv(n,a){let r;return u;function u(m){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),s(m)}function s(m){return m===null?h(m):se(m)?n.check(av,f,h)(m):(n.consume(m),s)}function h(m){return n.exit("chunkContent"),n.exit("content"),a(m)}function f(m){return n.consume(m),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function ov(n,a,r){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),Ne(n,h,"linePrefix")}function h(f){if(f===null||se(f))return r(f);const m=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(f):n.interrupt(u.parser.constructs.flow,r,a)(f)}}function og(n,a,r,u,s,h,f,m,p){const d=p||Number.POSITIVE_INFINITY;let x=0;return y;function y(O){return O===60?(n.enter(u),n.enter(s),n.enter(h),n.consume(O),n.exit(h),S):O===null||O===32||O===41||lu(O)?r(O):(n.enter(u),n.enter(f),n.enter(m),n.enter("chunkString",{contentType:"string"}),H(O))}function S(O){return O===62?(n.enter(h),n.consume(O),n.exit(h),n.exit(s),n.exit(u),a):(n.enter(m),n.enter("chunkString",{contentType:"string"}),v(O))}function v(O){return O===62?(n.exit("chunkString"),n.exit(m),S(O)):O===null||O===60||se(O)?r(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 H(O){return!x&&(O===null||O===41||Ve(O))?(n.exit("chunkString"),n.exit(m),n.exit(f),n.exit(u),a(O)):x<d&&O===40?(n.consume(O),x++,H):O===41?(n.consume(O),x--,H):O===null||O===32||O===40||lu(O)?r(O):(n.consume(O),O===92?G:H)}function G(O){return O===40||O===41||O===92?(n.consume(O),H):H(O)}}function cg(n,a,r,u,s,h){const f=this;let m=0,p;return d;function d(v){return n.enter(u),n.enter(s),n.consume(v),n.exit(s),n.enter(h),x}function x(v){return m>999||v===null||v===91||v===93&&!p||v===94&&!m&&"_hiddenFootnoteSupport"in f.parser.constructs?r(v):v===93?(n.exit(h),n.enter(s),n.consume(v),n.exit(s),n.exit(u),a):se(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||se(v)||m++>999?(n.exit("chunkString"),x(v)):(n.consume(v),p||(p=!Te(v)),v===92?S:y)}function S(v){return v===91||v===92||v===93?(n.consume(v),m++,y):y(v)}}function sg(n,a,r,u,s,h){let f;return m;function m(S){return S===34||S===39||S===40?(n.enter(u),n.enter(s),n.consume(S),n.exit(s),f=S===40?41:S,p):r(S)}function p(S){return S===f?(n.enter(s),n.consume(S),n.exit(s),n.exit(u),a):(n.enter(h),d(S))}function d(S){return S===f?(n.exit(h),p(f)):S===null?r(S):se(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),Ne(n,d,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(S))}function x(S){return S===f||S===null||se(S)?(n.exit("chunkString"),d(S)):(n.consume(S),S===92?y:x)}function y(S){return S===f||S===92?(n.consume(S),x):x(S)}}function Aa(n,a){let r;return u;function u(s){return se(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),r=!0,u):Te(s)?Ne(n,u,r?"linePrefix":"lineSuffix")(s):a(s)}}const cv={name:"definition",tokenize:fv},sv={partial:!0,tokenize:hv};function fv(n,a,r){const u=this;let s;return h;function h(v){return n.enter("definition"),f(v)}function f(v){return cg.call(u,n,m,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function m(v){return s=ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),v===58?(n.enter("definitionMarker"),n.consume(v),n.exit("definitionMarker"),p):r(v)}function p(v){return Ve(v)?Aa(n,d)(v):d(v)}function d(v){return og(n,x,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function x(v){return n.attempt(sv,y,y)(v)}function y(v){return Te(v)?Ne(n,S,"whitespace")(v):S(v)}function S(v){return v===null||se(v)?(n.exit("definition"),u.parser.defined.push(s),a(v)):r(v)}}function hv(n,a,r){return u;function u(m){return Ve(m)?Aa(n,s)(m):r(m)}function s(m){return sg(n,h,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function h(m){return Te(m)?Ne(n,f,"whitespace")(m):f(m)}function f(m){return m===null||se(m)?a(m):r(m)}}const dv={name:"hardBreakEscape",tokenize:mv};function mv(n,a,r){return u;function u(h){return n.enter("hardBreakEscape"),n.consume(h),s}function s(h){return se(h)?(n.exit("hardBreakEscape"),a(h)):r(h)}}const pv={name:"headingAtx",resolve:gv,tokenize:yv};function gv(n,a){let r=n.length-2,u=3,s,h;return n[u][1].type==="whitespace"&&(u+=2),r-2>u&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&n[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(s={type:"atxHeadingText",start:n[u][1].start,end:n[r][1].end},h={type:"chunkText",start:n[u][1].start,end:n[r][1].end,contentType:"text"},qt(n,u,r-u+1,[["enter",s,a],["enter",h,a],["exit",h,a],["exit",s,a]])),n}function yv(n,a,r){let u=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&&u++<6?(n.consume(x),f):x===null||Ve(x)?(n.exit("atxHeadingSequence"),m(x)):r(x)}function m(x){return x===35?(n.enter("atxHeadingSequence"),p(x)):x===null||se(x)?(n.exit("atxHeading"),a(x)):Te(x)?Ne(n,m,"whitespace")(x):(n.enter("atxHeadingText"),d(x))}function p(x){return x===35?(n.consume(x),p):(n.exit("atxHeadingSequence"),m(x))}function d(x){return x===null||x===35||Ve(x)?(n.exit("atxHeadingText"),m(x)):(n.consume(x),d)}}const xv=["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"],op=["pre","script","style","textarea"],bv={concrete:!0,name:"htmlFlow",resolveTo:kv,tokenize:Ev},vv={partial:!0,tokenize:Tv},Sv={partial:!0,tokenize:Av};function kv(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 Ev(n,a,r){const u=this;let s,h,f,m,p;return d;function d(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,H):k===63?(n.consume(k),s=3,u.interrupt?a:A):vt(k)?(n.consume(k),f=String.fromCharCode(k),G):r(k)}function S(k){return k===45?(n.consume(k),s=2,v):k===91?(n.consume(k),s=5,m=0,C):vt(k)?(n.consume(k),s=4,u.interrupt?a:A):r(k)}function v(k){return k===45?(n.consume(k),u.interrupt?a:A):r(k)}function C(k){const P="CDATA[";return k===P.charCodeAt(m++)?(n.consume(k),m===P.length?u.interrupt?a:W:C):r(k)}function H(k){return vt(k)?(n.consume(k),f=String.fromCharCode(k),G):r(k)}function G(k){if(k===null||k===47||k===62||Ve(k)){const P=k===47,de=f.toLowerCase();return!P&&!h&&op.includes(de)?(s=1,u.interrupt?a(k):W(k)):xv.includes(f.toLowerCase())?(s=6,P?(n.consume(k),O):u.interrupt?a(k):W(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(k):h?Q(k):q(k))}return k===45||pt(k)?(n.consume(k),f+=String.fromCharCode(k),G):r(k)}function O(k){return k===62?(n.consume(k),u.interrupt?a:W):r(k)}function Q(k){return Te(k)?(n.consume(k),Q):R(k)}function q(k){return k===47?(n.consume(k),R):k===58||k===95||vt(k)?(n.consume(k),te):Te(k)?(n.consume(k),q):R(k)}function te(k){return k===45||k===46||k===58||k===95||pt(k)?(n.consume(k),te):ne(k)}function ne(k){return k===61?(n.consume(k),B):Te(k)?(n.consume(k),ne):q(k)}function B(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(n.consume(k),p=k,$):Te(k)?(n.consume(k),B):he(k)}function $(k){return k===p?(n.consume(k),p=null,me):k===null||se(k)?r(k):(n.consume(k),$)}function he(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Ve(k)?ne(k):(n.consume(k),he)}function me(k){return k===47||k===62||Te(k)?q(k):r(k)}function R(k){return k===62?(n.consume(k),ee):r(k)}function ee(k){return k===null||se(k)?W(k):Te(k)?(n.consume(k),ee):r(k)}function W(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),w):k===63&&s===3?(n.consume(k),A):k===93&&s===5?(n.consume(k),ve):se(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(vv,L,Se)(k)):k===null||se(k)?(n.exit("htmlFlowData"),Se(k)):(n.consume(k),W)}function Se(k){return n.check(Sv,ae,L)(k)}function ae(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),J}function J(k){return k===null||se(k)?Se(k):(n.enter("htmlFlowData"),W(k))}function M(k){return k===45?(n.consume(k),A):W(k)}function F(k){return k===47?(n.consume(k),f="",ie):W(k)}function ie(k){if(k===62){const P=f.toLowerCase();return op.includes(P)?(n.consume(k),w):W(k)}return vt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),ie):W(k)}function ve(k){return k===93?(n.consume(k),A):W(k)}function A(k){return k===62?(n.consume(k),w):k===45&&s===2?(n.consume(k),A):W(k)}function w(k){return k===null||se(k)?(n.exit("htmlFlowData"),L(k)):(n.consume(k),w)}function L(k){return n.exit("htmlFlow"),a(k)}}function Av(n,a,r){const u=this;return s;function s(f){return se(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),h):r(f)}function h(f){return u.parser.lazy[u.now().line]?r(f):a(f)}}function Tv(n,a,r){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(_a,a,r)}}const wv={name:"htmlText",tokenize:zv};function zv(n,a,r){const u=this;let s,h,f;return m;function m(A){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(A),p}function p(A){return A===33?(n.consume(A),d):A===47?(n.consume(A),ne):A===63?(n.consume(A),q):vt(A)?(n.consume(A),he):r(A)}function d(A){return A===45?(n.consume(A),x):A===91?(n.consume(A),h=0,C):vt(A)?(n.consume(A),Q):r(A)}function x(A){return A===45?(n.consume(A),v):r(A)}function y(A){return A===null?r(A):A===45?(n.consume(A),S):se(A)?(f=y,F(A)):(n.consume(A),y)}function S(A){return A===45?(n.consume(A),v):y(A)}function v(A){return A===62?M(A):A===45?S(A):y(A)}function C(A){const w="CDATA[";return A===w.charCodeAt(h++)?(n.consume(A),h===w.length?H:C):r(A)}function H(A){return A===null?r(A):A===93?(n.consume(A),G):se(A)?(f=H,F(A)):(n.consume(A),H)}function G(A){return A===93?(n.consume(A),O):H(A)}function O(A){return A===62?M(A):A===93?(n.consume(A),O):H(A)}function Q(A){return A===null||A===62?M(A):se(A)?(f=Q,F(A)):(n.consume(A),Q)}function q(A){return A===null?r(A):A===63?(n.consume(A),te):se(A)?(f=q,F(A)):(n.consume(A),q)}function te(A){return A===62?M(A):q(A)}function ne(A){return vt(A)?(n.consume(A),B):r(A)}function B(A){return A===45||pt(A)?(n.consume(A),B):$(A)}function $(A){return se(A)?(f=$,F(A)):Te(A)?(n.consume(A),$):M(A)}function he(A){return A===45||pt(A)?(n.consume(A),he):A===47||A===62||Ve(A)?me(A):r(A)}function me(A){return A===47?(n.consume(A),M):A===58||A===95||vt(A)?(n.consume(A),R):se(A)?(f=me,F(A)):Te(A)?(n.consume(A),me):M(A)}function R(A){return A===45||A===46||A===58||A===95||pt(A)?(n.consume(A),R):ee(A)}function ee(A){return A===61?(n.consume(A),W):se(A)?(f=ee,F(A)):Te(A)?(n.consume(A),ee):me(A)}function W(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(n.consume(A),s=A,Se):se(A)?(f=W,F(A)):Te(A)?(n.consume(A),W):(n.consume(A),ae)}function Se(A){return A===s?(n.consume(A),s=void 0,J):A===null?r(A):se(A)?(f=Se,F(A)):(n.consume(A),Se)}function ae(A){return A===null||A===34||A===39||A===60||A===61||A===96?r(A):A===47||A===62||Ve(A)?me(A):(n.consume(A),ae)}function J(A){return A===47||A===62||Ve(A)?me(A):r(A)}function M(A){return A===62?(n.consume(A),n.exit("htmlTextData"),n.exit("htmlText"),a):r(A)}function F(A){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(A),n.exit("lineEnding"),ie}function ie(A){return Te(A)?Ne(n,ve,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):ve(A)}function ve(A){return n.enter("htmlTextData"),f(A)}}const Es={name:"labelEnd",resolveAll:Dv,resolveTo:Ov,tokenize:Mv},Cv={tokenize:jv},_v={tokenize:Rv},Nv={tokenize:Lv};function Dv(n){let a=-1;const r=[];for(;++a<n.length;){const u=n[a][1];if(r.push(n[a]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const s=u.type==="labelImage"?4:2;u.type="data",a+=s}}return n.length!==r.length&&qt(n,0,n.length,r),n}function Ov(n,a){let r=n.length,u=0,s,h,f,m;for(;r--;)if(s=n[r][1],h){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(n[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(h=r,s.type!=="labelLink")){u=2;break}}else s.type==="labelEnd"&&(f=r);const p={type:n[h][1].type==="labelLink"?"link":"image",start:{...n[h][1].start},end:{...n[n.length-1][1].end}},d={type:"label",start:{...n[h][1].start},end:{...n[f][1].end}},x={type:"labelText",start:{...n[h+u+2][1].end},end:{...n[f-2][1].start}};return m=[["enter",p,a],["enter",d,a]],m=Wt(m,n.slice(h+1,h+u+3)),m=Wt(m,[["enter",x,a]]),m=Wt(m,cu(a.parser.constructs.insideSpan.null,n.slice(h+u+4,f-3),a)),m=Wt(m,[["exit",x,a],n[f-2],n[f-1],["exit",d,a]]),m=Wt(m,n.slice(f+1)),m=Wt(m,[["exit",p,a]]),qt(n,h,n.length,m),n}function Mv(n,a,r){const u=this;let s=u.events.length,h,f;for(;s--;)if((u.events[s][1].type==="labelImage"||u.events[s][1].type==="labelLink")&&!u.events[s][1]._balanced){h=u.events[s][1];break}return m;function m(S){return h?h._inactive?y(S):(f=u.parser.defined.includes(ln(u.sliceSerialize({start:h.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(S),n.exit("labelMarker"),n.exit("labelEnd"),p):r(S)}function p(S){return S===40?n.attempt(Cv,x,f?x:y)(S):S===91?n.attempt(_v,x,f?d:y)(S):f?x(S):y(S)}function d(S){return n.attempt(Nv,x,y)(S)}function x(S){return a(S)}function y(S){return h._balanced=!0,r(S)}}function jv(n,a,r){return u;function u(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),s}function s(y){return Ve(y)?Aa(n,h)(y):h(y)}function h(y){return y===41?x(y):og(n,f,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return Ve(y)?Aa(n,p)(y):x(y)}function m(y){return r(y)}function p(y){return y===34||y===39||y===40?sg(n,d,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):x(y)}function d(y){return Ve(y)?Aa(n,x)(y):x(y)}function x(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),a):r(y)}}function Rv(n,a,r){const u=this;return s;function s(m){return cg.call(u,n,h,f,"reference","referenceMarker","referenceString")(m)}function h(m){return u.parser.defined.includes(ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(m):r(m)}function f(m){return r(m)}}function Lv(n,a,r){return u;function u(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):r(h)}}const Uv={name:"labelStartImage",resolveAll:Es.resolveAll,tokenize:Bv};function Bv(n,a,r){const u=this;return s;function s(m){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(m),n.exit("labelImageMarker"),h}function h(m){return m===91?(n.enter("labelMarker"),n.consume(m),n.exit("labelMarker"),n.exit("labelImage"),f):r(m)}function f(m){return m===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(m):a(m)}}const Hv={name:"labelStartLink",resolveAll:Es.resolveAll,tokenize:qv};function qv(n,a,r){const u=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 u.parser.constructs?r(f):a(f)}}const Yc={name:"lineEnding",tokenize:Yv};function Yv(n,a){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Ne(n,a,"linePrefix")}}const tu={name:"thematicBreak",tokenize:Xv};function Xv(n,a,r){let u=0,s;return h;function h(d){return n.enter("thematicBreak"),f(d)}function f(d){return s=d,m(d)}function m(d){return d===s?(n.enter("thematicBreakSequence"),p(d)):u>=3&&(d===null||se(d))?(n.exit("thematicBreak"),a(d)):r(d)}function p(d){return d===s?(n.consume(d),u++,p):(n.exit("thematicBreakSequence"),Te(d)?Ne(n,m,"whitespace")(d):m(d))}}const _t={continuation:{tokenize:Zv},exit:Kv,name:"list",tokenize:Qv},Vv={partial:!0,tokenize:Jv},Gv={partial:!0,tokenize:Fv};function Qv(n,a,r){const u=this,s=u.events[u.events.length-1];let h=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return m;function m(v){const C=u.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!u.containerState.marker||v===u.containerState.marker:is(v)){if(u.containerState.type||(u.containerState.type=C,n.enter(C,{_container:!0})),C==="listUnordered")return n.enter("listItemPrefix"),v===42||v===45?n.check(tu,r,d)(v):d(v);if(!u.interrupt||v===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(v)}return r(v)}function p(v){return is(v)&&++f<10?(n.consume(v),p):(!u.interrupt||f<2)&&(u.containerState.marker?v===u.containerState.marker:v===41||v===46)?(n.exit("listItemValue"),d(v)):r(v)}function d(v){return n.enter("listItemMarker"),n.consume(v),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||v,n.check(_a,u.interrupt?r:x,n.attempt(Vv,S,y))}function x(v){return u.containerState.initialBlankLine=!0,h++,S(v)}function y(v){return Te(v)?(n.enter("listItemPrefixWhitespace"),n.consume(v),n.exit("listItemPrefixWhitespace"),S):r(v)}function S(v){return u.containerState.size=h+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(v)}}function Zv(n,a,r){const u=this;return u.containerState._closeFlow=void 0,n.check(_a,s,h);function s(m){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Ne(n,a,"listItemIndent",u.containerState.size+1)(m)}function h(m){return u.containerState.furtherBlankLines||!Te(m)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,f(m)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(Gv,a,f)(m))}function f(m){return u.containerState._closeFlow=!0,u.interrupt=void 0,Ne(n,n.attempt(_t,a,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function Fv(n,a,r){const u=this;return Ne(n,s,"listItemIndent",u.containerState.size+1);function s(h){const f=u.events[u.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===u.containerState.size?a(h):r(h)}}function Kv(n){n.exit(this.containerState.type)}function Jv(n,a,r){const u=this;return Ne(n,s,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(h){const f=u.events[u.events.length-1];return!Te(h)&&f&&f[1].type==="listItemPrefixWhitespace"?a(h):r(h)}}const cp={name:"setextUnderline",resolveTo:Iv,tokenize:$v};function Iv(n,a){let r=n.length,u,s,h;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){u=r;break}n[r][1].type==="paragraph"&&(s=r)}else n[r][1].type==="content"&&n.splice(r,1),!h&&n[r][1].type==="definition"&&(h=r);const f={type:"setextHeading",start:{...n[u][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[u][1],a]),n[u][1].end={...n[h][1].end}):n[u][1]=f,n.push(["exit",f,a]),n}function $v(n,a,r){const u=this;let s;return h;function h(d){let x=u.events.length,y;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){y=u.events[x][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||y)?(n.enter("setextHeadingLine"),s=d,f(d)):r(d)}function f(d){return n.enter("setextHeadingLineSequence"),m(d)}function m(d){return d===s?(n.consume(d),m):(n.exit("setextHeadingLineSequence"),Te(d)?Ne(n,p,"lineSuffix")(d):p(d))}function p(d){return d===null||se(d)?(n.exit("setextHeadingLine"),a(d)):r(d)}}const Wv={tokenize:Pv};function Pv(n){const a=this,r=n.attempt(_a,u,n.attempt(this.parser.constructs.flowInitial,s,Ne(n,n.attempt(this.parser.constructs.flow,s,n.attempt(iv,s)),"linePrefix")));return r;function u(h){if(h===null){n.consume(h);return}return n.enter("lineEndingBlank"),n.consume(h),n.exit("lineEndingBlank"),a.currentConstruct=void 0,r}function s(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),a.currentConstruct=void 0,r}}const e2={resolveAll:hg()},t2=fg("string"),n2=fg("text");function fg(n){return{resolveAll:hg(n==="text"?l2:void 0),tokenize:a};function a(r){const u=this,s=this.parser.constructs[n],h=r.attempt(s,f,m);return f;function f(x){return d(x)?h(x):m(x)}function m(x){if(x===null){r.consume(x);return}return r.enter("data"),r.consume(x),p}function p(x){return d(x)?(r.exit("data"),h(x)):(r.consume(x),p)}function d(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(u,u.previous))return!0}return!1}}}function hg(n){return a;function a(r,u){let s=-1,h;for(;++s<=r.length;)h===void 0?r[s]&&r[s][1].type==="data"&&(h=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==h+2&&(r[h][1].end=r[s-1][1].end,r.splice(h+2,s-h-2),s=h+2),h=void 0);return n?n(r,u):r}}function l2(n,a){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const u=n[r-1][1],s=a.sliceStream(u);let h=s.length,f=-1,m=0,p;for(;h--;){const d=s[h];if(typeof d=="string"){for(f=d.length;d.charCodeAt(f-1)===32;)m++,f--;if(f)break;f=-1}else if(d===-2)p=!0,m++;else if(d!==-1){h++;break}}if(a._contentTypeTextTrailing&&r===n.length&&(m=0),m){const d={type:r===n.length||p||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:h?f:u.start._bufferIndex+f,_index:u.start._index+h,line:u.end.line,column:u.end.column-m,offset:u.end.offset-m},end:{...u.end}};u.end={...d.start},u.start.offset===u.end.offset?Object.assign(u,d):(n.splice(r,0,["enter",d,a],["exit",d,a]),r+=2)}r++}return n}const i2={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:ig},a2={91:cv},r2={[-2]:qc,[-1]:qc,32:qc},u2={35:pv,42:tu,45:[cp,tu],60:bv,61:cp,95:tu,96:up,126:up},o2={38:rg,92:ag},c2={[-5]:Yc,[-4]:Yc,[-3]:Yc,33:Uv,38:rg,42:as,60:[Hb,wv],91:Hv,92:[dv,ag],93:Es,95:as,96:Wb},s2={null:[as,e2]},f2={null:[42,95]},h2={null:[]},d2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:f2,contentInitial:a2,disable:h2,document:i2,flow:u2,flowInitial:r2,insideSpan:s2,string:o2,text:c2},Symbol.toStringTag,{value:"Module"}));function m2(n,a,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},h=[];let f=[],m=[];const p={attempt:$(ne),check:$(B),consume:Q,enter:q,exit:te,interrupt:$(B,{interrupt:!0})},d={code:null,containerState:{},defineSkip:H,events:[],now:C,parser:n,previous:null,sliceSerialize:S,sliceStream:v,write:y};let x=a.tokenize.call(d,p);return a.resolveAll&&h.push(a),d;function y(ee){return f=Wt(f,ee),G(),f[f.length-1]!==null?[]:(he(a,0),d.events=cu(h,d.events,d),d.events)}function S(ee,W){return g2(v(ee),W)}function v(ee){return p2(f,ee)}function C(){const{_bufferIndex:ee,_index:W,line:Se,column:ae,offset:J}=u;return{_bufferIndex:ee,_index:W,line:Se,column:ae,offset:J}}function H(ee){s[ee.line]=ee.column,R()}function G(){let ee;for(;u._index<f.length;){const W=f[u._index];if(typeof W=="string")for(ee=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ee&&u._bufferIndex<W.length;)O(W.charCodeAt(u._bufferIndex));else O(W)}}function O(ee){x=x(ee)}function Q(ee){se(ee)?(u.line++,u.column=1,u.offset+=ee===-3?2:1,R()):ee!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===f[u._index].length&&(u._bufferIndex=-1,u._index++)),d.previous=ee}function q(ee,W){const Se=W||{};return Se.type=ee,Se.start=C(),d.events.push(["enter",Se,d]),m.push(Se),Se}function te(ee){const W=m.pop();return W.end=C(),d.events.push(["exit",W,d]),W}function ne(ee,W){he(ee,W.from)}function B(ee,W){W.restore()}function $(ee,W){return Se;function Se(ae,J,M){let F,ie,ve,A;return Array.isArray(ae)?L(ae):"tokenize"in ae?L([ae]):w(ae);function w(oe){return we;function we(Fe){const Ue=Fe!==null&&oe[Fe],Yt=Fe!==null&&oe.null,fn=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(Yt)?Yt:Yt?[Yt]:[]];return L(fn)(Fe)}}function L(oe){return F=oe,ie=0,oe.length===0?M:k(oe[ie])}function k(oe){return we;function we(Fe){return A=me(),ve=oe,oe.partial||(d.currentConstruct=oe),oe.name&&d.parser.constructs.disable.null.includes(oe.name)?de():oe.tokenize.call(W?Object.assign(Object.create(d),W):d,p,P,de)(Fe)}}function P(oe){return ee(ve,A),J}function de(oe){return A.restore(),++ie<F.length?k(F[ie]):M}}}function he(ee,W){ee.resolveAll&&!h.includes(ee)&&h.push(ee),ee.resolve&&qt(d.events,W,d.events.length-W,ee.resolve(d.events.slice(W),d)),ee.resolveTo&&(d.events=ee.resolveTo(d.events,d))}function me(){const ee=C(),W=d.previous,Se=d.currentConstruct,ae=d.events.length,J=Array.from(m);return{from:ae,restore:M};function M(){u=ee,d.previous=W,d.currentConstruct=Se,d.events.length=ae,m=J,R()}}function R(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function p2(n,a){const r=a.start._index,u=a.start._bufferIndex,s=a.end._index,h=a.end._bufferIndex;let f;if(r===s)f=[n[r].slice(u,h)];else{if(f=n.slice(r,s),u>-1){const m=f[0];typeof m=="string"?f[0]=m.slice(u):f.shift()}h>0&&f.push(n[s].slice(0,h))}return f}function g2(n,a){let r=-1;const u=[];let s;for(;++r<n.length;){const h=n[r];let f;if(typeof h=="string")f=h;else switch(h){case-5:{f="\r";break}case-4:{f=`
|
|
202
|
+
`;break}case-3:{f=`\r
|
|
203
|
+
`;break}case-2:{f=a?" ":" ";break}case-1:{if(!a&&s)continue;f=" ";break}default:f=String.fromCharCode(h)}s=h===-2,u.push(f)}return u.join("")}function y2(n){const u={constructs:ng([d2,...(n||{}).extensions||[]]),content:s(Ob),defined:[],document:s(jb),flow:s(Wv),lazy:{},string:s(t2),text:s(n2)};return u;function s(h){return f;function f(m){return m2(u,h,m)}}}function x2(n){for(;!ug(n););return n}const sp=/[\0\t\n\r]/g;function b2(){let n=1,a="",r=!0,u;return s;function s(h,f,m){const p=[];let d,x,y,S,v;for(h=a+(typeof h=="string"?h.toString():new TextDecoder(f||void 0).decode(h)),y=0,a="",r&&(h.charCodeAt(0)===65279&&y++,r=void 0);y<h.length;){if(sp.lastIndex=y,d=sp.exec(h),S=d&&d.index!==void 0?d.index:h.length,v=h.charCodeAt(S),!d){a=h.slice(y);break}if(v===10&&y===S&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),y<S&&(p.push(h.slice(y,S)),n+=S-y),v){case 0:{p.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,p.push(-2);n++<x;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}y=S+1}return m&&(u&&p.push(-5),a&&p.push(a),p.push(null)),p}}const v2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function S2(n){return n.replace(v2,k2)}function k2(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),h=s===120||s===88;return lg(r.slice(h?2:1),h?16:10)}return ks(r)||n}const dg={}.hasOwnProperty;function E2(n,a,r){return a&&typeof a=="object"&&(r=a,a=void 0),A2(r)(x2(y2(r).document().write(b2()(n,a,!0))))}function A2(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(Dl),autolinkProtocol:me,autolinkEmail:me,atxHeading:h(_l),blockQuote:h(Yt),characterEscape:me,characterReference:me,codeFenced:h(fn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:h(fn,f),codeText:h(Ai,f),codeTextData:me,data:me,codeFlowValue:me,definition:h(Da),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:h(hn),hardBreakEscape:h(Nl),hardBreakTrailing:h(Nl),htmlFlow:h(Oa,f),htmlFlowData:me,htmlText:h(Oa,f),htmlTextData:me,image:h(Ma),label:f,link:h(Dl),listItem:h(Ti),listItemValue:S,listOrdered:h(Ol,y),listUnordered:h(Ol),paragraph:h(du),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:h(_l),strong:h(mu),thematicBreak:h(pu)},exit:{atxHeading:p(),atxHeadingSequence:ne,autolink:p(),autolinkEmail:Ue,autolinkProtocol:Fe,blockQuote:p(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:oe,characterReference:we,codeFenced:p(G),codeFencedFence:H,codeFencedFenceInfo:v,codeFencedFenceMeta:C,codeFlowValue:R,codeIndented:p(O),codeText:p(J),codeTextData:R,data:R,definition:p(),definitionDestinationString:te,definitionLabelString:Q,definitionTitleString:q,emphasis:p(),hardBreakEscape:p(W),hardBreakTrailing:p(W),htmlFlow:p(Se),htmlFlowData:R,htmlText:p(ae),htmlTextData:R,image:p(F),label:ve,labelText:ie,lineEnding:ee,link:p(M),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:P,resourceDestinationString:A,resourceTitleString:w,resource:L,setextHeading:p(he),setextHeadingLineSequence:$,setextHeadingText:B,strong:p(),thematicBreak:p()}};mg(a,(n||{}).mdastExtensions||[]);const r={};return u;function u(X){let I={type:"root",children:[]};const pe={stack:[I],tokenStack:[],config:a,enter:m,exit:d,buffer:f,resume:x,data:r},ke=[];let je=-1;for(;++je<X.length;)if(X[je][1].type==="listOrdered"||X[je][1].type==="listUnordered")if(X[je][0]==="enter")ke.push(je);else{const Dt=ke.pop();je=s(X,Dt,je)}for(je=-1;++je<X.length;){const Dt=a[X[je][0]];dg.call(Dt,X[je][1].type)&&Dt[X[je][1].type].call(Object.assign({sliceSerialize:X[je][2].sliceSerialize},pe),X[je][1])}if(pe.tokenStack.length>0){const Dt=pe.tokenStack[pe.tokenStack.length-1];(Dt[1]||fp).call(pe,void 0,Dt[0])}for(I.position={start:al(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:al(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},je=-1;++je<a.transforms.length;)I=a.transforms[je](I)||I;return I}function s(X,I,pe){let ke=I-1,je=-1,Dt=!1,dn,xt,at,St;for(;++ke<=pe;){const Ye=X[ke];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?je++:je--,St=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(dn&&!St&&!je&&!at&&(at=ke),St=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:St=void 0}if(!je&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||je===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(dn){let Mn=ke;for(xt=void 0;Mn--;){const Pt=X[Mn];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;xt&&(X[xt][1].type="lineEndingBlank",Dt=!0),Pt[1].type="lineEnding",xt=Mn}else if(!(Pt[1].type==="linePrefix"||Pt[1].type==="blockQuotePrefix"||Pt[1].type==="blockQuotePrefixWhitespace"||Pt[1].type==="blockQuoteMarker"||Pt[1].type==="listItemIndent"))break}at&&(!xt||at<xt)&&(dn._spread=!0),dn.end=Object.assign({},xt?X[xt][1].start:Ye[1].end),X.splice(xt||ke,0,["exit",dn,Ye[2]]),ke++,pe++}if(Ye[1].type==="listItemPrefix"){const Mn={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};dn=Mn,X.splice(ke,0,["enter",Mn,Ye[2]]),ke++,pe++,at=void 0,St=!0}}}return X[I][1]._spread=Dt,pe}function h(X,I){return pe;function pe(ke){m.call(this,X(ke),ke),I&&I.call(this,ke)}}function f(){this.stack.push({type:"fragment",children:[]})}function m(X,I,pe){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([I,pe||void 0]),X.position={start:al(I.start),end:void 0}}function p(X){return I;function I(pe){X&&X.call(this,pe),d.call(this,pe)}}function d(X,I){const pe=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==X.type&&(I?I.call(this,X,ke[0]):(ke[1]||fp).call(this,X,ke[0]));else throw new Error("Cannot close `"+X.type+"` ("+Ea({start:X.start,end:X.end})+"): it’s not open");pe.position.end=al(X.end)}function x(){return Ss(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function S(X){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function v(){const X=this.resume(),I=this.stack[this.stack.length-1];I.lang=X}function C(){const X=this.resume(),I=this.stack[this.stack.length-1];I.meta=X}function H(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function G(){const X=this.resume(),I=this.stack[this.stack.length-1];I.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const X=this.resume(),I=this.stack[this.stack.length-1];I.value=X.replace(/(\r?\n|\r)$/g,"")}function Q(X){const I=this.resume(),pe=this.stack[this.stack.length-1];pe.label=I,pe.identifier=ln(this.sliceSerialize(X)).toLowerCase()}function q(){const X=this.resume(),I=this.stack[this.stack.length-1];I.title=X}function te(){const X=this.resume(),I=this.stack[this.stack.length-1];I.url=X}function ne(X){const I=this.stack[this.stack.length-1];if(!I.depth){const pe=this.sliceSerialize(X).length;I.depth=pe}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function $(X){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function he(){this.data.setextHeadingSlurpLineEnding=void 0}function me(X){const pe=this.stack[this.stack.length-1].children;let ke=pe[pe.length-1];(!ke||ke.type!=="text")&&(ke=yt(),ke.position={start:al(X.start),end:void 0},pe.push(ke)),this.stack.push(ke)}function R(X){const I=this.stack.pop();I.value+=this.sliceSerialize(X),I.position.end=al(X.end)}function ee(X){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const pe=I.children[I.children.length-1];pe.position.end=al(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(I.type)&&(me.call(this,X),R.call(this,X))}function W(){this.data.atHardBreak=!0}function Se(){const X=this.resume(),I=this.stack[this.stack.length-1];I.value=X}function ae(){const X=this.resume(),I=this.stack[this.stack.length-1];I.value=X}function J(){const X=this.resume(),I=this.stack[this.stack.length-1];I.value=X}function M(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=I,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function F(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=I,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function ie(X){const I=this.sliceSerialize(X),pe=this.stack[this.stack.length-2];pe.label=S2(I),pe.identifier=ln(I).toLowerCase()}function ve(){const X=this.stack[this.stack.length-1],I=this.resume(),pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,pe.type==="link"){const ke=X.children;pe.children=ke}else pe.alt=I}function A(){const X=this.resume(),I=this.stack[this.stack.length-1];I.url=X}function w(){const X=this.resume(),I=this.stack[this.stack.length-1];I.title=X}function L(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function P(X){const I=this.resume(),pe=this.stack[this.stack.length-1];pe.label=I,pe.identifier=ln(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function de(X){this.data.characterReferenceType=X.type}function oe(X){const I=this.sliceSerialize(X),pe=this.data.characterReferenceType;let ke;pe?(ke=lg(I,pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=ks(I);const je=this.stack[this.stack.length-1];je.value+=ke}function we(X){const I=this.stack.pop();I.position.end=al(X.end)}function Fe(X){R.call(this,X);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(X)}function Ue(X){R.call(this,X);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(X)}function Yt(){return{type:"blockquote",children:[]}}function fn(){return{type:"code",lang:null,meta:null,value:""}}function Ai(){return{type:"inlineCode",value:""}}function Da(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function hn(){return{type:"emphasis",children:[]}}function _l(){return{type:"heading",depth:0,children:[]}}function Nl(){return{type:"break"}}function Oa(){return{type:"html",value:""}}function Ma(){return{type:"image",title:null,url:"",alt:null}}function Dl(){return{type:"link",title:null,url:"",children:[]}}function Ol(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Ti(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function du(){return{type:"paragraph",children:[]}}function mu(){return{type:"strong",children:[]}}function yt(){return{type:"text",value:""}}function pu(){return{type:"thematicBreak"}}}function al(n){return{line:n.line,column:n.column,offset:n.offset}}function mg(n,a){let r=-1;for(;++r<a.length;){const u=a[r];Array.isArray(u)?mg(n,u):T2(n,u)}}function T2(n,a){let r;for(r in a)if(dg.call(a,r))switch(r){case"canContainEols":{const u=a[r];u&&n[r].push(...u);break}case"transforms":{const u=a[r];u&&n[r].push(...u);break}case"enter":case"exit":{const u=a[r];u&&Object.assign(n[r],u);break}}}function fp(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 w2(n){const a=this;a.parser=r;function r(u){return E2(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function z2(n,a){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,r),n.applyData(a,r)}function C2(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
|
|
204
|
+
`}]}function _2(n,a){const r=a.value?a.value+`
|
|
205
|
+
`:"",u={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(u.className=["language-"+s[0]]);let h={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};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 N2(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function D2(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function O2(n,a){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),s=Ei(u.toLowerCase()),h=n.footnoteOrder.indexOf(u);let f,m=n.footnoteCounts.get(u);m===void 0?(m=0,n.footnoteOrder.push(u),f=n.footnoteOrder.length):f=h+1,m+=1,n.footnoteCounts.set(u,m);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(a,p);const d={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(a,d),n.applyData(a,d)}function M2(n,a){const r={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function j2(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function pg(n,a){const r=a.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];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+=u:s.push({type:"text",value:u}),s}function R2(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return pg(n,a);const s={src:Ei(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(s.title=u.title);const h={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,h),n.applyData(a,h)}function L2(n,a){const r={src:Ei(a.url)};a.alt!==null&&a.alt!==void 0&&(r.alt=a.alt),a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"img",properties:r,children:[]};return n.patch(a,u),n.applyData(a,u)}function U2(n,a){const r={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(a,u),n.applyData(a,u)}function B2(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return pg(n,a);const s={href:Ei(u.url||"")};u.title!==null&&u.title!==void 0&&(s.title=u.title);const h={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,h),n.applyData(a,h)}function H2(n,a){const r={href:Ei(a.url)};a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"a",properties:r,children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function q2(n,a,r){const u=n.all(a),s=r?Y2(r):gg(a),h={},f=[];if(typeof a.checked=="boolean"){const x=u[0];let y;x&&x.type==="element"&&x.tagName==="p"?y=x:(y={type:"element",tagName:"p",properties:{},children:[]},u.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 m=-1;for(;++m<u.length;){const x=u[m];(s||m!==0||x.type!=="element"||x.tagName!=="p")&&f.push({type:"text",value:`
|
|
206
|
+
`}),x.type==="element"&&x.tagName==="p"&&!s?f.push(...x.children):f.push(x)}const p=u[u.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&f.push({type:"text",value:`
|
|
207
|
+
`});const d={type:"element",tagName:"li",properties:h,children:f};return n.patch(a,d),n.applyData(a,d)}function Y2(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const r=n.children;let u=-1;for(;!a&&++u<r.length;)a=gg(r[u])}return a}function gg(n){const a=n.spread;return a??n.children.length>1}function X2(n,a){const r={},u=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(r.start=a.start);++s<u.length;){const f=u[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const h={type:"element",tagName:a.ordered?"ol":"ul",properties:r,children:n.wrap(u,!0)};return n.patch(a,h),n.applyData(a,h)}function V2(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function G2(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function Q2(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Z2(n,a){const r=n.all(a),u=r.shift(),s=[];if(u){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(a.children[0],f),s.push(f)}if(r.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},m=ys(a.children[1]),p=Jp(a.children[a.children.length-1]);m&&p&&(f.position={start:m,end:p}),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 F2(n,a,r){const u=r?r.children:void 0,h=(u?u.indexOf(a):1)===0?"th":"td",f=r&&r.type==="table"?r.align:void 0,m=f?f.length:a.children.length;let p=-1;const d=[];for(;++p<m;){const y=a.children[p],S={},v=f?f[p]: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)),d.push(C)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(d,!0)};return n.patch(a,x),n.applyData(a,x)}function K2(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const hp=9,dp=32;function J2(n){const a=String(n),r=/\r?\n|\r/g;let u=r.exec(a),s=0;const h=[];for(;u;)h.push(mp(a.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=r.exec(a);return h.push(mp(a.slice(s),s>0,!1)),h.join("")}function mp(n,a,r){let u=0,s=n.length;if(a){let h=n.codePointAt(u);for(;h===hp||h===dp;)u++,h=n.codePointAt(u)}if(r){let h=n.codePointAt(s-1);for(;h===hp||h===dp;)s--,h=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function I2(n,a){const r={type:"text",value:J2(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function $2(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const W2={blockquote:z2,break:C2,code:_2,delete:N2,emphasis:D2,footnoteReference:O2,heading:M2,html:j2,imageReference:R2,image:L2,inlineCode:U2,linkReference:B2,link:H2,listItem:q2,list:X2,paragraph:V2,root:G2,strong:Q2,table:Z2,tableCell:K2,tableRow:F2,text:I2,thematicBreak:$2,toml:$r,yaml:$r,definition:$r,footnoteDefinition:$r};function $r(){}const yg=-1,su=0,Ta=1,iu=2,As=3,Ts=4,ws=5,zs=6,xg=7,bg=8,pp=typeof self=="object"?self:globalThis,P2=(n,a)=>{const r=(s,h)=>(n.set(h,s),s),u=s=>{if(n.has(s))return n.get(s);const[h,f]=a[s];switch(h){case su:case yg:return r(f,s);case Ta:{const m=r([],s);for(const p of f)m.push(u(p));return m}case iu:{const m=r({},s);for(const[p,d]of f)m[u(p)]=u(d);return m}case As:return r(new Date(f),s);case Ts:{const{source:m,flags:p}=f;return r(new RegExp(m,p),s)}case ws:{const m=r(new Map,s);for(const[p,d]of f)m.set(u(p),u(d));return m}case zs:{const m=r(new Set,s);for(const p of f)m.add(u(p));return m}case xg:{const{name:m,message:p}=f;return r(new pp[m](p),s)}case bg:return r(BigInt(f),s);case"BigInt":return r(Object(BigInt(f)),s);case"ArrayBuffer":return r(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:m}=new Uint8Array(f);return r(new DataView(m),f)}}return r(new pp[h](f),s)};return u},gp=n=>P2(new Map,n)(0),xi="",{toString:eS}={},{keys:tS}=Object,ka=n=>{const a=typeof n;if(a!=="object"||!n)return[su,a];const r=eS.call(n).slice(8,-1);switch(r){case"Array":return[Ta,xi];case"Object":return[iu,xi];case"Date":return[As,xi];case"RegExp":return[Ts,xi];case"Map":return[ws,xi];case"Set":return[zs,xi];case"DataView":return[Ta,r]}return r.includes("Array")?[Ta,r]:r.includes("Error")?[xg,r]:[iu,r]},Wr=([n,a])=>n===su&&(a==="function"||a==="symbol"),nS=(n,a,r,u)=>{const s=(f,m)=>{const p=u.push(f)-1;return r.set(m,p),p},h=f=>{if(r.has(f))return r.get(f);let[m,p]=ka(f);switch(m){case su:{let x=f;switch(p){case"bigint":m=bg,x=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);x=null;break;case"undefined":return s([yg],f)}return s([m,x],f)}case Ta:{if(p){let S=f;return p==="DataView"?S=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(S=new Uint8Array(f)),s([p,[...S]],f)}const x=[],y=s([m,x],f);for(const S of f)x.push(h(S));return y}case iu:{if(p)switch(p){case"BigInt":return s([p,f.toString()],f);case"Boolean":case"Number":case"String":return s([p,f.valueOf()],f)}if(a&&"toJSON"in f)return h(f.toJSON());const x=[],y=s([m,x],f);for(const S of tS(f))(n||!Wr(ka(f[S])))&&x.push([h(S),h(f[S])]);return y}case As:return s([m,f.toISOString()],f);case Ts:{const{source:x,flags:y}=f;return s([m,{source:x,flags:y}],f)}case ws:{const x=[],y=s([m,x],f);for(const[S,v]of f)(n||!(Wr(ka(S))||Wr(ka(v))))&&x.push([h(S),h(v)]);return y}case zs:{const x=[],y=s([m,x],f);for(const S of f)(n||!Wr(ka(S)))&&x.push(h(S));return y}}const{message:d}=f;return s([m,{name:p,message:d}],f)};return h},yp=(n,{json:a,lossy:r}={})=>{const u=[];return nS(!(a||r),!!a,new Map,u)(n),u},au=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?gp(yp(n,a)):structuredClone(n):(n,a)=>gp(yp(n,a));function lS(n,a){const r=[{type:"text",value:"↩"}];return a>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),r}function iS(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function aS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||lS,u=n.options.footnoteBackLabel||iS,s=n.options.footnoteLabel||"Footnotes",h=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let p=-1;for(;++p<n.footnoteOrder.length;){const d=n.footnoteById.get(n.footnoteOrder[p]);if(!d)continue;const x=n.all(d),y=String(d.identifier).toUpperCase(),S=Ei(y.toLowerCase());let v=0;const C=[],H=n.footnoteCounts.get(y);for(;H!==void 0&&++v<=H;){C.length>0&&C.push({type:"text",value:" "});let Q=typeof r=="string"?r:r(p,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 u=="string"?u:u(p,v),className:["data-footnote-backref"]},children:Array.isArray(Q)?Q:[Q]})}const G=x[x.length-1];if(G&&G.type==="element"&&G.tagName==="p"){const Q=G.children[G.children.length-1];Q&&Q.type==="text"?Q.value+=" ":G.children.push({type:"text",value:" "}),G.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(d,O),m.push(O)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:h,properties:{...au(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
208
|
+
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(m,!0)},{type:"text",value:`
|
|
209
|
+
`}]}}const fu=(function(n){if(n==null)return cS;if(typeof n=="function")return hu(n);if(typeof n=="object")return Array.isArray(n)?rS(n):uS(n);if(typeof n=="string")return oS(n);throw new Error("Expected function, string, or object as test")});function rS(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=fu(n[r]);return hu(u);function u(...s){let h=-1;for(;++h<a.length;)if(a[h].apply(this,s))return!0;return!1}}function uS(n){const a=n;return hu(r);function r(u){const s=u;let h;for(h in n)if(s[h]!==a[h])return!1;return!0}}function oS(n){return hu(a);function a(r){return r&&r.type===n}}function hu(n){return a;function a(r,u,s){return!!(sS(r)&&n.call(this,r,typeof u=="number"?u:void 0,s||void 0))}}function cS(){return!0}function sS(n){return n!==null&&typeof n=="object"&&"type"in n}const vg=[],fS=!0,rs=!1,hS="skip";function Sg(n,a,r,u){let s;typeof a=="function"&&typeof r!="function"?(u=r,r=a):s=a;const h=fu(s),f=u?-1:1;m(n,void 0,[])();function m(p,d,x){const y=p&&typeof p=="object"?p:{};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 ("+(p.type+(v?"<"+v+">":""))+")"})}return S;function S(){let v=vg,C,H,G;if((!a||h(p,d,x[x.length-1]||void 0))&&(v=dS(r(p,x)),v[0]===rs))return v;if("children"in p&&p.children){const O=p;if(O.children&&v[0]!==hS)for(H=(u?O.children.length:-1)+f,G=x.concat(O);H>-1&&H<O.children.length;){const Q=O.children[H];if(C=m(Q,H,G)(),C[0]===rs)return C;H=typeof C[1]=="number"?C[1]:H+f}}return v}}}function dS(n){return Array.isArray(n)?n:typeof n=="number"?[fS,n]:n==null?vg:[n]}function Cs(n,a,r,u){let s,h,f;typeof a=="function"&&typeof r!="function"?(h=void 0,f=a,s=r):(h=a,f=r,s=u),Sg(n,h,m,s);function m(p,d){const x=d[d.length-1],y=x?x.children.indexOf(p):void 0;return f(p,y,x)}}const us={}.hasOwnProperty,mS={};function pS(n,a){const r=a||mS,u=new Map,s=new Map,h=new Map,f={...W2,...r.handlers},m={all:d,applyData:yS,definitionById:u,footnoteById:s,footnoteCounts:h,footnoteOrder:[],handlers:f,one:p,options:r,patch:gS,wrap:bS};return Cs(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const y=x.type==="definition"?u:s,S=String(x.identifier).toUpperCase();y.has(S)||y.set(S,x)}}),m;function p(x,y){const S=x.type,v=m.handlers[S];if(us.call(m.handlers,S)&&v)return v(m,x,y);if(m.options.passThrough&&m.options.passThrough.includes(S)){if("children"in x){const{children:H,...G}=x,O=au(G);return O.children=m.all(x),O}return au(x)}return(m.options.unknownHandler||xS)(m,x,y)}function d(x){const y=[];if("children"in x){const S=x.children;let v=-1;for(;++v<S.length;){const C=m.one(S[v],x);if(C){if(v&&S[v-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=xp(C.value)),!Array.isArray(C)&&C.type==="element")){const H=C.children[0];H&&H.type==="text"&&(H.value=xp(H.value))}Array.isArray(C)?y.push(...C):y.push(C)}}}return y}}function gS(n,a){n.position&&(a.position=ib(n))}function yS(n,a){let r=a;if(n&&n.data){const u=n.data.hName,s=n.data.hChildren,h=n.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const f="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:f}}r.type==="element"&&h&&Object.assign(r.properties,au(h)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function xS(n,a){const r=a.data||{},u="value"in a&&!(us.call(r,"hProperties")||us.call(r,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function bS(n,a){const r=[];let u=-1;for(a&&r.push({type:"text",value:`
|
|
210
|
+
`});++u<n.length;)u&&r.push({type:"text",value:`
|
|
211
|
+
`}),r.push(n[u]);return a&&n.length>0&&r.push({type:"text",value:`
|
|
212
|
+
`}),r}function xp(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function bp(n,a){const r=pS(n,a),u=r.one(n,void 0),s=aS(r),h=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return s&&h.children.push({type:"text",value:`
|
|
213
|
+
`},s),h}function vS(n,a){return n&&"run"in n?async function(r,u){const s=bp(r,{file:u,...a});await n.run(s,u)}:function(r,u){return bp(r,{file:u,...n||a})}}function vp(n){if(n)throw n}var Xc,Sp;function SS(){if(Sp)return Xc;Sp=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):a.call(d)==="[object Array]"},h=function(d){if(!d||a.call(d)!=="[object Object]")return!1;var x=n.call(d,"constructor"),y=d.constructor&&d.constructor.prototype&&n.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!x&&!y)return!1;var S;for(S in d);return typeof S>"u"||n.call(d,S)},f=function(d,x){r&&x.name==="__proto__"?r(d,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):d[x.name]=x.newValue},m=function(d,x){if(x==="__proto__")if(n.call(d,x)){if(u)return u(d,x).value}else return;return d[x]};return Xc=function p(){var d,x,y,S,v,C,H=arguments[0],G=1,O=arguments.length,Q=!1;for(typeof H=="boolean"&&(Q=H,H=arguments[1]||{},G=2),(H==null||typeof H!="object"&&typeof H!="function")&&(H={});G<O;++G)if(d=arguments[G],d!=null)for(x in d)y=m(H,x),S=m(d,x),H!==S&&(Q&&S&&(h(S)||(v=s(S)))?(v?(v=!1,C=y&&s(y)?y:[]):C=y&&h(y)?y:{},f(H,{name:x,newValue:p(Q,C,S)})):typeof S<"u"&&f(H,{name:x,newValue:S}));return H},Xc}var kS=SS();const Vc=Rp(kS);function os(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 ES(){const n=[],a={run:r,use:u};return a;function r(...s){let h=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);m(null,...s);function m(p,...d){const x=n[++h];let y=-1;if(p){f(p);return}for(;++y<s.length;)(d[y]===null||d[y]===void 0)&&(d[y]=s[y]);s=d,x?AS(x,m)(...d):f(null,...d)}}function u(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function AS(n,a){let r;return u;function u(...f){const m=n.length>f.length;let p;m&&f.push(s);try{p=n.apply(this,f)}catch(d){const x=d;if(m&&r)throw x;return s(x)}m||(p&&p.then&&typeof p.then=="function"?p.then(h,s):p instanceof Error?s(p):h(p))}function s(f,...m){r||(r=!0,a(f,...m))}function h(f){s(null,f)}}const cn={basename:TS,dirname:wS,extname:zS,join:CS,sep:"/"};function TS(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Na(n);let r=0,u=-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){r=s+1;break}}else u<0&&(h=!0,u=s+1);return u<0?"":n.slice(r,u)}if(a===n)return"";let f=-1,m=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(h){r=s+1;break}}else f<0&&(h=!0,f=s+1),m>-1&&(n.codePointAt(s)===a.codePointAt(m--)?m<0&&(u=s):(m=-1,u=f));return r===u?u=f:u<0&&(u=n.length),n.slice(r,u)}function wS(n){if(Na(n),n.length===0)return".";let a=-1,r=n.length,u;for(;--r;)if(n.codePointAt(r)===47){if(u){a=r;break}}else u||(u=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function zS(n){Na(n);let a=n.length,r=-1,u=0,s=-1,h=0,f;for(;a--;){const m=n.codePointAt(a);if(m===47){if(f){u=a+1;break}continue}r<0&&(f=!0,r=a+1),m===46?s<0?s=a:h!==1&&(h=1):s>-1&&(h=-1)}return s<0||r<0||h===0||h===1&&s===r-1&&s===u+1?"":n.slice(s,r)}function CS(...n){let a=-1,r;for(;++a<n.length;)Na(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":_S(r)}function _S(n){Na(n);const a=n.codePointAt(0)===47;let r=NS(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function NS(n,a){let r="",u=0,s=-1,h=0,f=-1,m,p;for(;++f<=n.length;){if(f<n.length)m=n.codePointAt(f);else{if(m===47)break;m=47}if(m===47){if(!(s===f-1||h===1))if(s!==f-1&&h===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",u=0):(r=r.slice(0,p),u=r.length-1-r.lastIndexOf("/")),s=f,h=0;continue}}else if(r.length>0){r="",u=0,s=f,h=0;continue}}a&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+n.slice(s+1,f):r=n.slice(s+1,f),u=f-s-1;s=f,h=0}else m===46&&h>-1?h++:h=-1}return r}function Na(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const DS={cwd:OS};function OS(){return"/"}function cs(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function MS(n){if(typeof n=="string")n=new URL(n);else if(!cs(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 jS(n)}function jS(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const a=n.pathname;let r=-1;for(;++r<a.length;)if(a.codePointAt(r)===37&&a.codePointAt(r+1)===50){const u=a.codePointAt(r+2);if(u===70||u===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 Gc=["history","path","basename","stem","extname","dirname"];class kg{constructor(a){let r;a?cs(a)?r={path:a}:typeof a=="string"||RS(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":DS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Gc.length;){const h=Gc[u];h in r&&r[h]!==void 0&&r[h]!==null&&(this[h]=h==="history"?[...r[h]]:r[h])}let s;for(s in r)Gc.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?cn.basename(this.path):void 0}set basename(a){Zc(a,"basename"),Qc(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){kp(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(Qc(a,"extname"),kp(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){cs(a)&&(a=MS(a)),Zc(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){Zc(a,"stem"),Qc(a,"stem"),this.path=cn.join(this.dirname||"",a+(this.extname||""))}fail(a,r,u){const s=this.message(a,r,u);throw s.fatal=!0,s}info(a,r,u){const s=this.message(a,r,u);return s.fatal=void 0,s}message(a,r,u){const s=new gt(a,r,u);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 Qc(n,a){if(n&&n.includes(cn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+cn.sep+"`")}function Zc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function kp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function RS(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const LS=(function(n){const u=this.constructor.prototype,s=u[n],h=function(){return s.apply(h,arguments)};return Object.setPrototypeOf(h,u),h}),US={}.hasOwnProperty;class _s extends LS{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=ES()}copy(){const a=new _s;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];a.use(...u)}return a.data(Vc(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(Jc("data",this.frozen),this.namespace[a]=r,this):US.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Jc("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[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const s=r.call(a,...u);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const r=Pr(a),u=this.parser||this.Parser;return Fc("parse",u),u(String(r),r)}process(a,r){const u=this;return this.freeze(),Fc("process",this.parser||this.Parser),Kc("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(h,f){const m=Pr(a),p=u.parse(m);u.run(p,m,function(x,y,S){if(x||!y||!S)return d(x);const v=y,C=u.stringify(v,S);qS(C)?S.value=C:S.result=C,d(x,S)});function d(x,y){x||!y?f(x):h?h(y):r(void 0,y)}}}processSync(a){let r=!1,u;return this.freeze(),Fc("processSync",this.parser||this.Parser),Kc("processSync",this.compiler||this.Compiler),this.process(a,s),Ap("processSync","process",r),u;function s(h,f){r=!0,vp(h),u=f}}run(a,r,u){Ep(a),this.freeze();const s=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?h(void 0,u):new Promise(h);function h(f,m){const p=Pr(r);s.run(a,p,d);function d(x,y,S){const v=y||a;x?m(x):f?f(v):u(void 0,v,S)}}}runSync(a,r){let u=!1,s;return this.run(a,r,h),Ap("runSync","run",u),s;function h(f,m){vp(f),s=m,u=!0}}stringify(a,r){this.freeze();const u=Pr(r),s=this.compiler||this.Compiler;return Kc("stringify",s),Ep(a),s(a,u)}use(a,...r){const u=this.attachers,s=this.namespace;if(Jc("use",this.frozen),a!=null)if(typeof a=="function")p(a,r);else if(typeof a=="object")Array.isArray(a)?m(a):f(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function h(d){if(typeof d=="function")p(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[x,...y]=d;p(x,y)}else f(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function f(d){if(!("plugins"in d)&&!("settings"in d))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");m(d.plugins),d.settings&&(s.settings=Vc(!0,s.settings,d.settings))}function m(d){let x=-1;if(d!=null)if(Array.isArray(d))for(;++x<d.length;){const y=d[x];h(y)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function p(d,x){let y=-1,S=-1;for(;++y<u.length;)if(u[y][0]===d){S=y;break}if(S===-1)u.push([d,...x]);else if(x.length>0){let[v,...C]=x;const H=u[S][1];os(H)&&os(v)&&(v=Vc(!0,H,v)),u[S]=[d,v,...C]}}}}const BS=new _s().freeze();function Fc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Kc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Jc(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 Ep(n){if(!os(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Ap(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function Pr(n){return HS(n)?n:new kg(n)}function HS(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function qS(n){return typeof n=="string"||YS(n)}function YS(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const XS="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Tp=[],wp={allowDangerousHtml:!0},VS=/^(https?|ircs?|mailto|xmpp)$/i,GS=[{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 Eg(n){const a=QS(n),r=ZS(n);return FS(a.runSync(a.parse(r),r),n)}function QS(n){const a=n.rehypePlugins||Tp,r=n.remarkPlugins||Tp,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...wp}:wp;return BS().use(w2).use(r).use(vS,u).use(a)}function ZS(n){const a=n.children||"",r=new kg;return typeof a=="string"&&(r.value=a),r}function FS(n,a){const r=a.allowedElements,u=a.allowElement,s=a.components,h=a.disallowedElements,f=a.skipHtml,m=a.unwrapDisallowed,p=a.urlTransform||KS;for(const x of GS)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+XS+x.id,void 0);return Cs(n,d),cb(n,{Fragment:E.Fragment,components:s,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function d(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 Hc)if(Object.hasOwn(Hc,v)&&Object.hasOwn(x.properties,v)){const C=x.properties[v],H=Hc[v];(H===null||H.includes(x.tagName))&&(x.properties[v]=p(String(C||""),v,x))}}if(x.type==="element"){let v=r?!r.includes(x.tagName):h?h.includes(x.tagName):!1;if(!v&&u&&typeof y=="number"&&(v=!u(x,y,S)),v&&S&&typeof y=="number")return m&&x.children?S.children.splice(y,1,...x.children):S.children.splice(y,1),y}}}function KS(n){const a=n.indexOf(":"),r=n.indexOf("?"),u=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||r!==-1&&a>r||u!==-1&&a>u||VS.test(n.slice(0,a))?n:""}function zp(n,a){const r=String(n);if(typeof a!="string")throw new TypeError("Expected character");let u=0,s=r.indexOf(a);for(;s!==-1;)u++,s=r.indexOf(a,s+a.length);return u}function JS(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function IS(n,a,r){const s=fu((r||{}).ignore||[]),h=$S(a);let f=-1;for(;++f<h.length;)Sg(n,"text",m);function m(d,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 p(d,x)}function p(d,x){const y=x[x.length-1],S=h[f][0],v=h[f][1];let C=0;const G=y.children.indexOf(d);let O=!1,Q=[];S.lastIndex=0;let q=S.exec(d.value);for(;q;){const te=q.index,ne={index:q.index,input:q.input,stack:[...x,d]};let B=v(...q,ne);if(typeof B=="string"&&(B=B.length>0?{type:"text",value:B}:void 0),B===!1?S.lastIndex=te+1:(C!==te&&Q.push({type:"text",value:d.value.slice(C,te)}),Array.isArray(B)?Q.push(...B):B&&Q.push(B),C=te+q[0].length,O=!0),!S.global)break;q=S.exec(d.value)}return O?(C<d.value.length&&Q.push({type:"text",value:d.value.slice(C)}),y.children.splice(G,1,...Q)):Q=[d],G+Q.length}}function $S(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!n[0]||Array.isArray(n[0])?n:[n];let u=-1;for(;++u<r.length;){const s=r[u];a.push([WS(s[0]),PS(s[1])])}return a}function WS(n){return typeof n=="string"?new RegExp(JS(n),"g"):n}function PS(n){return typeof n=="function"?n:function(){return n}}const Ic="phrasing",$c=["autolink","link","image","label"];function ek(){return{transforms:[uk],enter:{literalAutolink:nk,literalAutolinkEmail:Wc,literalAutolinkHttp:Wc,literalAutolinkWww:Wc},exit:{literalAutolink:rk,literalAutolinkEmail:ak,literalAutolinkHttp:lk,literalAutolinkWww:ik}}}function tk(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ic,notInConstruct:$c},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ic,notInConstruct:$c},{character:":",before:"[ps]",after:"\\/",inConstruct:Ic,notInConstruct:$c}]}}function nk(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Wc(n){this.config.enter.autolinkProtocol.call(this,n)}function lk(n){this.config.exit.autolinkProtocol.call(this,n)}function ik(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 ak(n){this.config.exit.autolinkEmail.call(this,n)}function rk(n){this.exit(n)}function uk(n){IS(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ok],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ck]],{ignore:["link","linkReference"]})}function ok(n,a,r,u,s){let h="";if(!Ag(s)||(/^w/i.test(a)&&(r=a+r,a="",h="http://"),!sk(r)))return!1;const f=fk(r+u);if(!f[0])return!1;const m={type:"link",title:null,url:h+a+f[0],children:[{type:"text",value:a+f[0]}]};return f[1]?[m,{type:"text",value:f[1]}]:m}function ck(n,a,r,u){return!Ag(u,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+r,children:[{type:"text",value:a+"@"+r}]}}function sk(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 fk(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let r=a[0],u=r.indexOf(")");const s=zp(n,"(");let h=zp(n,")");for(;u!==-1&&s>h;)n+=r.slice(0,u+1),r=r.slice(u+1),u=r.indexOf(")"),h++;return[n,r]}function Ag(n,a){const r=n.input.charCodeAt(n.index-1);return(n.index===0||wl(r)||ou(r))&&(!a||r!==47)}Tg.peek=vk;function hk(){this.buffer()}function dk(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function mk(){this.buffer()}function pk(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function gk(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ln(this.sliceSerialize(n)).toLowerCase(),r.label=a}function yk(n){this.exit(n)}function xk(n){const a=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=ln(this.sliceSerialize(n)).toLowerCase(),r.label=a}function bk(n){this.exit(n)}function vk(){return"["}function Tg(n,a,r,u){const s=r.createTracker(u);let h=s.move("[^");const f=r.enter("footnoteReference"),m=r.enter("reference");return h+=s.move(r.safe(r.associationId(n),{after:"]",before:h})),m(),f(),h+=s.move("]"),h}function Sk(){return{enter:{gfmFootnoteCallString:hk,gfmFootnoteCall:dk,gfmFootnoteDefinitionLabelString:mk,gfmFootnoteDefinition:pk},exit:{gfmFootnoteCallString:gk,gfmFootnoteCall:yk,gfmFootnoteDefinitionLabelString:xk,gfmFootnoteDefinition:bk}}}function kk(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:r,footnoteReference:Tg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(u,s,h,f){const m=h.createTracker(f);let p=m.move("[^");const d=h.enter("footnoteDefinition"),x=h.enter("label");return p+=m.move(h.safe(h.associationId(u),{before:p,after:"]"})),x(),p+=m.move("]:"),u.children&&u.children.length>0&&(m.shift(4),p+=m.move((a?`
|
|
214
|
+
`:" ")+h.indentLines(h.containerFlow(u,m.current()),a?wg:Ek))),d(),p}}function Ek(n,a,r){return a===0?n:wg(n,a,r)}function wg(n,a,r){return(r?"":" ")+n}const Ak=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];zg.peek=_k;function Tk(){return{canContainEols:["delete"],enter:{strikethrough:zk},exit:{strikethrough:Ck}}}function wk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ak}],handlers:{delete:zg}}}function zk(n){this.enter({type:"delete",children:[]},n)}function Ck(n){this.exit(n)}function zg(n,a,r,u){const s=r.createTracker(u),h=r.enter("strikethrough");let f=s.move("~~");return f+=r.containerPhrasing(n,{...s.current(),before:f,after:"~"}),f+=s.move("~~"),h(),f}function _k(){return"~"}function Nk(n){return n.length}function Dk(n,a){const r=a||{},u=(r.align||[]).concat(),s=r.stringLength||Nk,h=[],f=[],m=[],p=[];let d=0,x=-1;for(;++x<n.length;){const H=[],G=[];let O=-1;for(n[x].length>d&&(d=n[x].length);++O<n[x].length;){const Q=Ok(n[x][O]);if(r.alignDelimiters!==!1){const q=s(Q);G[O]=q,(p[O]===void 0||q>p[O])&&(p[O]=q)}H.push(Q)}f[x]=H,m[x]=G}let y=-1;if(typeof u=="object"&&"length"in u)for(;++y<d;)h[y]=Cp(u[y]);else{const H=Cp(u);for(;++y<d;)h[y]=H}y=-1;const S=[],v=[];for(;++y<d;){const H=h[y];let G="",O="";H===99?(G=":",O=":"):H===108?G=":":H===114&&(O=":");let Q=r.alignDelimiters===!1?1:Math.max(1,p[y]-G.length-O.length);const q=G+"-".repeat(Q)+O;r.alignDelimiters!==!1&&(Q=G.length+Q+O.length,Q>p[y]&&(p[y]=Q),v[y]=Q),S[y]=q}f.splice(1,0,S),m.splice(1,0,v),x=-1;const C=[];for(;++x<f.length;){const H=f[x],G=m[x];y=-1;const O=[];for(;++y<d;){const Q=H[y]||"";let q="",te="";if(r.alignDelimiters!==!1){const ne=p[y]-(G[y]||0),B=h[y];B===114?q=" ".repeat(ne):B===99?ne%2?(q=" ".repeat(ne/2+.5),te=" ".repeat(ne/2-.5)):(q=" ".repeat(ne/2),te=q):te=" ".repeat(ne)}r.delimiterStart!==!1&&!y&&O.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&Q==="")&&(r.delimiterStart!==!1||y)&&O.push(" "),r.alignDelimiters!==!1&&O.push(q),O.push(Q),r.alignDelimiters!==!1&&O.push(te),r.padding!==!1&&O.push(" "),(r.delimiterEnd!==!1||y!==d-1)&&O.push("|")}C.push(r.delimiterEnd===!1?O.join("").replace(/ +$/,""):O.join(""))}return C.join(`
|
|
215
|
+
`)}function Ok(n){return n==null?"":String(n)}function Cp(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 Mk(n,a,r,u){const s=r.enter("blockquote"),h=r.createTracker(u);h.move("> "),h.shift(2);const f=r.indentLines(r.containerFlow(n,h.current()),jk);return s(),f}function jk(n,a,r){return">"+(r?"":" ")+n}function Rk(n,a){return _p(n,a.inConstruct,!0)&&!_p(n,a.notInConstruct,!1)}function _p(n,a,r){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return r;let u=-1;for(;++u<a.length;)if(n.includes(a[u]))return!0;return!1}function Np(n,a,r,u){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
|
|
216
|
+
`&&Rk(r.stack,r.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
217
|
+
`}function Lk(n,a){const r=String(n);let u=r.indexOf(a),s=u,h=0,f=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===s?++h>f&&(f=h):h=1,s=u+a.length,u=r.indexOf(a,s);return f}function Uk(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 Bk(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 Hk(n,a,r,u){const s=Bk(r),h=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(Uk(n,r)){const y=r.enter("codeIndented"),S=r.indentLines(h,qk);return y(),S}const m=r.createTracker(u),p=s.repeat(Math.max(Lk(h,s)+1,3)),d=r.enter("codeFenced");let x=m.move(p);if(n.lang){const y=r.enter(`codeFencedLang${f}`);x+=m.move(r.safe(n.lang,{before:x,after:" ",encode:["`"],...m.current()})),y()}if(n.lang&&n.meta){const y=r.enter(`codeFencedMeta${f}`);x+=m.move(" "),x+=m.move(r.safe(n.meta,{before:x,after:`
|
|
218
|
+
`,encode:["`"],...m.current()})),y()}return x+=m.move(`
|
|
219
|
+
`),h&&(x+=m.move(h+`
|
|
220
|
+
`)),x+=m.move(p),d(),x}function qk(n,a,r){return(r?"":" ")+n}function Ns(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 Yk(n,a,r,u){const s=Ns(r),h=s==='"'?"Quote":"Apostrophe",f=r.enter("definition");let m=r.enter("label");const p=r.createTracker(u);let d=p.move("[");return d+=p.move(r.safe(r.associationId(n),{before:d,after:"]",...p.current()})),d+=p.move("]: "),m(),!n.url||/[\0- \u007F]/.test(n.url)?(m=r.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(r.safe(n.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(m=r.enter("destinationRaw"),d+=p.move(r.safe(n.url,{before:d,after:n.title?" ":`
|
|
221
|
+
`,...p.current()}))),m(),n.title&&(m=r.enter(`title${h}`),d+=p.move(" "+s),d+=p.move(r.safe(n.title,{before:d,after:s,...p.current()})),d+=p.move(s),m()),f(),d}function Xk(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 za(n){return"&#x"+n.toString(16).toUpperCase()+";"}function ru(n,a,r){const u=Si(n),s=Si(a);return u===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===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}}Cg.peek=Vk;function Cg(n,a,r,u){const s=Xk(r),h=r.enter("emphasis"),f=r.createTracker(u),m=f.move(s);let p=f.move(r.containerPhrasing(n,{after:s,before:m,...f.current()}));const d=p.charCodeAt(0),x=ru(u.before.charCodeAt(u.before.length-1),d,s);x.inside&&(p=za(d)+p.slice(1));const y=p.charCodeAt(p.length-1),S=ru(u.after.charCodeAt(0),y,s);S.inside&&(p=p.slice(0,-1)+za(y));const v=f.move(s);return h(),r.attentionEncodeSurroundingInfo={after:S.outside,before:x.outside},m+p+v}function Vk(n,a,r){return r.options.emphasis||"*"}function Gk(n,a){let r=!1;return Cs(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return r=!0,rs}),!!((!n.depth||n.depth<3)&&Ss(n)&&(a.options.setext||r))}function Qk(n,a,r,u){const s=Math.max(Math.min(6,n.depth||1),1),h=r.createTracker(u);if(Gk(n,r)){const x=r.enter("headingSetext"),y=r.enter("phrasing"),S=r.containerPhrasing(n,{...h.current(),before:`
|
|
222
|
+
`,after:`
|
|
223
|
+
`});return y(),x(),S+`
|
|
224
|
+
`+(s===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
|
|
225
|
+
`))+1))}const f="#".repeat(s),m=r.enter("headingAtx"),p=r.enter("phrasing");h.move(f+" ");let d=r.containerPhrasing(n,{before:"# ",after:`
|
|
226
|
+
`,...h.current()});return/^[\t ]/.test(d)&&(d=za(d.charCodeAt(0))+d.slice(1)),d=d?f+" "+d:f,r.options.closeAtx&&(d+=" "+f),p(),m(),d}_g.peek=Zk;function _g(n){return n.value||""}function Zk(){return"<"}Ng.peek=Fk;function Ng(n,a,r,u){const s=Ns(r),h=s==='"'?"Quote":"Apostrophe",f=r.enter("image");let m=r.enter("label");const p=r.createTracker(u);let d=p.move("![");return d+=p.move(r.safe(n.alt,{before:d,after:"]",...p.current()})),d+=p.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=r.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(r.safe(n.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(m=r.enter("destinationRaw"),d+=p.move(r.safe(n.url,{before:d,after:n.title?" ":")",...p.current()}))),m(),n.title&&(m=r.enter(`title${h}`),d+=p.move(" "+s),d+=p.move(r.safe(n.title,{before:d,after:s,...p.current()})),d+=p.move(s),m()),d+=p.move(")"),f(),d}function Fk(){return"!"}Dg.peek=Kk;function Dg(n,a,r,u){const s=n.referenceType,h=r.enter("imageReference");let f=r.enter("label");const m=r.createTracker(u);let p=m.move("![");const d=r.safe(n.alt,{before:p,after:"]",...m.current()});p+=m.move(d+"]["),f();const x=r.stack;r.stack=[],f=r.enter("reference");const y=r.safe(r.associationId(n),{before:p,after:"]",...m.current()});return f(),r.stack=x,h(),s==="full"||!d||d!==y?p+=m.move(y+"]"):s==="shortcut"?p=p.slice(0,-1):p+=m.move("]"),p}function Kk(){return"!"}Og.peek=Jk;function Og(n,a,r){let u=n.value||"",s="`",h=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(u);)s+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++h<r.unsafe.length;){const f=r.unsafe[h],m=r.compilePattern(f);let p;if(f.atBreak)for(;p=m.exec(u);){let d=p.index;u.charCodeAt(d)===10&&u.charCodeAt(d-1)===13&&d--,u=u.slice(0,d)+" "+u.slice(p.index+1)}}return s+u+s}function Jk(){return"`"}function Mg(n,a){const r=Ss(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(r===n.url||"mailto:"+r===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}jg.peek=Ik;function jg(n,a,r,u){const s=Ns(r),h=s==='"'?"Quote":"Apostrophe",f=r.createTracker(u);let m,p;if(Mg(n,r)){const x=r.stack;r.stack=[],m=r.enter("autolink");let y=f.move("<");return y+=f.move(r.containerPhrasing(n,{before:y,after:">",...f.current()})),y+=f.move(">"),m(),r.stack=x,y}m=r.enter("link"),p=r.enter("label");let d=f.move("[");return d+=f.move(r.containerPhrasing(n,{before:d,after:"](",...f.current()})),d+=f.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=r.enter("destinationLiteral"),d+=f.move("<"),d+=f.move(r.safe(n.url,{before:d,after:">",...f.current()})),d+=f.move(">")):(p=r.enter("destinationRaw"),d+=f.move(r.safe(n.url,{before:d,after:n.title?" ":")",...f.current()}))),p(),n.title&&(p=r.enter(`title${h}`),d+=f.move(" "+s),d+=f.move(r.safe(n.title,{before:d,after:s,...f.current()})),d+=f.move(s),p()),d+=f.move(")"),m(),d}function Ik(n,a,r){return Mg(n,r)?"<":"["}Rg.peek=$k;function Rg(n,a,r,u){const s=n.referenceType,h=r.enter("linkReference");let f=r.enter("label");const m=r.createTracker(u);let p=m.move("[");const d=r.containerPhrasing(n,{before:p,after:"]",...m.current()});p+=m.move(d+"]["),f();const x=r.stack;r.stack=[],f=r.enter("reference");const y=r.safe(r.associationId(n),{before:p,after:"]",...m.current()});return f(),r.stack=x,h(),s==="full"||!d||d!==y?p+=m.move(y+"]"):s==="shortcut"?p=p.slice(0,-1):p+=m.move("]"),p}function $k(){return"["}function Ds(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 Wk(n){const a=Ds(n),r=n.options.bulletOther;if(!r)return a==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Pk(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 Lg(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 eE(n,a,r,u){const s=r.enter("list"),h=r.bulletCurrent;let f=n.ordered?Pk(r):Ds(r);const m=n.ordered?f==="."?")":".":Wk(r);let p=a&&r.bulletLastUsed?f===r.bulletLastUsed:!1;if(!n.ordered){const x=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&x&&(!x.children||!x.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(p=!0),Lg(r)===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"){p=!0;break}}}}p&&(f=m),r.bulletCurrent=f;const d=r.containerFlow(n,u);return r.bulletLastUsed=f,r.bulletCurrent=h,s(),d}function tE(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 nE(n,a,r,u){const s=tE(r);let h=r.bulletCurrent||Ds(r);a&&a.type==="list"&&a.ordered&&(h=(typeof a.start=="number"&&a.start>-1?a.start:1)+(r.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 m=r.createTracker(u);m.move(h+" ".repeat(f-h.length)),m.shift(f);const p=r.enter("listItem"),d=r.indentLines(r.containerFlow(n,m.current()),x);return p(),d;function x(y,S,v){return S?(v?"":" ".repeat(f))+y:(v?h:h+" ".repeat(f-h.length))+y}}function lE(n,a,r,u){const s=r.enter("paragraph"),h=r.enter("phrasing"),f=r.containerPhrasing(n,u);return h(),s(),f}const iE=fu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function aE(n,a,r,u){return(n.children.some(function(f){return iE(f)})?r.containerPhrasing:r.containerFlow).call(r,n,u)}function rE(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}Ug.peek=uE;function Ug(n,a,r,u){const s=rE(r),h=r.enter("strong"),f=r.createTracker(u),m=f.move(s+s);let p=f.move(r.containerPhrasing(n,{after:s,before:m,...f.current()}));const d=p.charCodeAt(0),x=ru(u.before.charCodeAt(u.before.length-1),d,s);x.inside&&(p=za(d)+p.slice(1));const y=p.charCodeAt(p.length-1),S=ru(u.after.charCodeAt(0),y,s);S.inside&&(p=p.slice(0,-1)+za(y));const v=f.move(s+s);return h(),r.attentionEncodeSurroundingInfo={after:S.outside,before:x.outside},m+p+v}function uE(n,a,r){return r.options.strong||"*"}function oE(n,a,r,u){return r.safe(n.value,u)}function cE(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 sE(n,a,r){const u=(Lg(r)+(r.options.ruleSpaces?" ":"")).repeat(cE(r));return r.options.ruleSpaces?u.slice(0,-1):u}const Bg={blockquote:Mk,break:Np,code:Hk,definition:Yk,emphasis:Cg,hardBreak:Np,heading:Qk,html:_g,image:Ng,imageReference:Dg,inlineCode:Og,link:jg,linkReference:Rg,list:eE,listItem:nE,paragraph:lE,root:aE,strong:Ug,text:oE,thematicBreak:sE};function fE(){return{enter:{table:hE,tableData:Dp,tableHeader:Dp,tableRow:mE},exit:{codeText:pE,table:dE,tableData:Pc,tableHeader:Pc,tableRow:Pc}}}function hE(n){const a=n._align;this.enter({type:"table",align:a.map(function(r){return r==="none"?null:r}),children:[]},n),this.data.inTable=!0}function dE(n){this.exit(n),this.data.inTable=void 0}function mE(n){this.enter({type:"tableRow",children:[]},n)}function Pc(n){this.exit(n)}function Dp(n){this.enter({type:"tableCell",children:[]},n)}function pE(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,gE));const r=this.stack[this.stack.length-1];r.type,r.value=a,this.exit(n)}function gE(n,a){return a==="|"?a:n}function yE(n){const a=n||{},r=a.tableCellPadding,u=a.tablePipeAlign,s=a.stringLength,h=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
227
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:S,table:f,tableCell:p,tableRow:m}};function f(v,C,H,G){return d(x(v,H,G),v.align)}function m(v,C,H,G){const O=y(v,H,G),Q=d([O]);return Q.slice(0,Q.indexOf(`
|
|
228
|
+
`))}function p(v,C,H,G){const O=H.enter("tableCell"),Q=H.enter("phrasing"),q=H.containerPhrasing(v,{...G,before:h,after:h});return Q(),O(),q}function d(v,C){return Dk(v,{align:C,alignDelimiters:u,padding:r,stringLength:s})}function x(v,C,H){const G=v.children;let O=-1;const Q=[],q=C.enter("table");for(;++O<G.length;)Q[O]=y(G[O],C,H);return q(),Q}function y(v,C,H){const G=v.children;let O=-1;const Q=[],q=C.enter("tableRow");for(;++O<G.length;)Q[O]=p(G[O],v,C,H);return q(),Q}function S(v,C,H){let G=Bg.inlineCode(v,C,H);return H.stack.includes("tableCell")&&(G=G.replace(/\|/g,"\\$&")),G}}function xE(){return{exit:{taskListCheckValueChecked:Op,taskListCheckValueUnchecked:Op,paragraph:vE}}}function bE(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:SE}}}function Op(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function vE(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const u=r.children[0];if(u&&u.type==="text"){const s=a.children;let h=-1,f;for(;++h<s.length;){const m=s[h];if(m.type==="paragraph"){f=m;break}}f===r&&(u.value=u.value.slice(1),u.value.length===0?r.children.shift():r.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,r.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function SE(n,a,r,u){const s=n.children[0],h=typeof n.checked=="boolean"&&s&&s.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",m=r.createTracker(u);h&&m.move(f);let p=Bg.listItem(n,a,r,{...u,...m.current()});return h&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),p;function d(x){return x+f}}function kE(){return[ek(),Sk(),Tk(),fE(),xE()]}function EE(n){return{extensions:[tk(),kk(n),wk(),yE(n),bE()]}}const AE={tokenize:NE,partial:!0},Hg={tokenize:DE,partial:!0},qg={tokenize:OE,partial:!0},Yg={tokenize:ME,partial:!0},TE={tokenize:jE,partial:!0},Xg={name:"wwwAutolink",tokenize:CE,previous:Gg},Vg={name:"protocolAutolink",tokenize:_E,previous:Qg},On={name:"emailAutolink",tokenize:zE,previous:Zg},sn={};function wE(){return{text:sn}}let Tl=48;for(;Tl<123;)sn[Tl]=On,Tl++,Tl===58?Tl=65:Tl===91&&(Tl=97);sn[43]=On;sn[45]=On;sn[46]=On;sn[95]=On;sn[72]=[On,Vg];sn[104]=[On,Vg];sn[87]=[On,Xg];sn[119]=[On,Xg];function zE(n,a,r){const u=this;let s,h;return f;function f(y){return!ss(y)||!Zg.call(u,u.previous)||Os(u.events)?r(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),m(y))}function m(y){return ss(y)?(n.consume(y),m):y===64?(n.consume(y),p):r(y)}function p(y){return y===46?n.check(TE,x,d)(y):y===45||y===95||pt(y)?(h=!0,n.consume(y),p):x(y)}function d(y){return n.consume(y),s=!0,p}function x(y){return h&&s&&vt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(y)):r(y)}}function CE(n,a,r){const u=this;return s;function s(f){return f!==87&&f!==119||!Gg.call(u,u.previous)||Os(u.events)?r(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(AE,n.attempt(Hg,n.attempt(qg,h),r),r)(f))}function h(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function _E(n,a,r){const u=this;let s="",h=!1;return f;function f(y){return(y===72||y===104)&&Qg.call(u,u.previous)&&!Os(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),n.consume(y),m):r(y)}function m(y){if(vt(y)&&s.length<5)return s+=String.fromCodePoint(y),n.consume(y),m;if(y===58){const S=s.toLowerCase();if(S==="http"||S==="https")return n.consume(y),p}return r(y)}function p(y){return y===47?(n.consume(y),h?d:(h=!0,p)):r(y)}function d(y){return y===null||lu(y)||Ve(y)||wl(y)||ou(y)?r(y):n.attempt(Hg,n.attempt(qg,x),r)(y)}function x(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(y)}}function NE(n,a,r){let u=0;return s;function s(f){return(f===87||f===119)&&u<3?(u++,n.consume(f),s):f===46&&u===3?(n.consume(f),h):r(f)}function h(f){return f===null?r(f):a(f)}}function DE(n,a,r){let u,s,h;return f;function f(d){return d===46||d===95?n.check(Yg,p,m)(d):d===null||Ve(d)||wl(d)||d!==45&&ou(d)?p(d):(h=!0,n.consume(d),f)}function m(d){return d===95?u=!0:(s=u,u=void 0),n.consume(d),f}function p(d){return s||u||!h?r(d):a(d)}}function OE(n,a){let r=0,u=0;return s;function s(f){return f===40?(r++,n.consume(f),s):f===41&&u<r?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(Yg,a,h)(f):f===null||Ve(f)||wl(f)?a(f):(n.consume(f),s)}function h(f){return f===41&&u++,n.consume(f),s}}function ME(n,a,r){return u;function u(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(n.consume(m),u):m===38?(n.consume(m),h):m===93?(n.consume(m),s):m===60||m===null||Ve(m)||wl(m)?a(m):r(m)}function s(m){return m===null||m===40||m===91||Ve(m)||wl(m)?a(m):u(m)}function h(m){return vt(m)?f(m):r(m)}function f(m){return m===59?(n.consume(m),u):vt(m)?(n.consume(m),f):r(m)}}function jE(n,a,r){return u;function u(h){return n.consume(h),s}function s(h){return pt(h)?r(h):a(h)}}function Gg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Ve(n)}function Qg(n){return!vt(n)}function Zg(n){return!(n===47||ss(n))}function ss(n){return n===43||n===45||n===46||n===95||pt(n)}function Os(n){let a=n.length,r=!1;for(;a--;){const u=n[a][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){r=!0;break}if(u._gfmAutolinkLiteralWalkedInto){r=!1;break}}return n.length>0&&!r&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const RE={tokenize:VE,partial:!0};function LE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:qE,continuation:{tokenize:YE},exit:XE}},text:{91:{name:"gfmFootnoteCall",tokenize:HE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:UE,resolveTo:BE}}}}function UE(n,a,r){const u=this;let s=u.events.length;const h=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f;for(;s--;){const p=u.events[s][1];if(p.type==="labelImage"){f=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return m;function m(p){if(!f||!f._balanced)return r(p);const d=ln(u.sliceSerialize({start:f.end,end:u.now()}));return d.codePointAt(0)!==94||!h.includes(d.slice(1))?r(p):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(p),n.exit("gfmFootnoteCallLabelMarker"),a(p))}}function BE(n,a){let r=n.length;for(;r--;)if(n[r][1].type==="labelImage"&&n[r][0]==="enter"){n[r][1];break}n[r+1][1].type="data",n[r+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},n[r+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[r+3][1].end),end:Object.assign({},n[r+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)},m=[n[r+1],n[r+2],["enter",u,a],n[r+3],n[r+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",u,a]];return n.splice(r,n.length-r+1,...m),n}function HE(n,a,r){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let h=0,f;return m;function m(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),p}function p(y){return y!==94?r(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",d)}function d(y){if(h>999||y===93&&!f||y===null||y===91||Ve(y))return r(y);if(y===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return s.includes(ln(u.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):r(y)}return Ve(y)||(f=!0),h++,n.consume(y),y===92?x:d}function x(y){return y===91||y===92||y===93?(n.consume(y),h++,d):d(y)}}function qE(n,a,r){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let h,f=0,m;return p;function p(C){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(C),n.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(C){return C===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(C),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):r(C)}function x(C){if(f>999||C===93&&!m||C===null||C===91||Ve(C))return r(C);if(C===93){n.exit("chunkString");const H=n.exit("gfmFootnoteDefinitionLabelString");return h=ln(u.sliceSerialize(H)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(C),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return Ve(C)||(m=!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),Ne(n,v,"gfmFootnoteDefinitionWhitespace")):r(C)}function v(C){return a(C)}}function YE(n,a,r){return n.check(_a,a,n.attempt(RE,a,r))}function XE(n){n.exit("gfmFootnoteDefinition")}function VE(n,a,r){const u=this;return Ne(n,s,"gfmFootnoteDefinitionIndent",5);function s(h){const f=u.events[u.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?a(h):r(h)}}function GE(n){let r=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:h,resolveAll:s};return r==null&&(r=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function s(f,m){let p=-1;for(;++p<f.length;)if(f[p][0]==="enter"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._close){let d=p;for(;d--;)if(f[d][0]==="exit"&&f[d][1].type==="strikethroughSequenceTemporary"&&f[d][1]._open&&f[p][1].end.offset-f[p][1].start.offset===f[d][1].end.offset-f[d][1].start.offset){f[p][1].type="strikethroughSequence",f[d][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},f[d][1].start),end:Object.assign({},f[p][1].end)},y={type:"strikethroughText",start:Object.assign({},f[d][1].end),end:Object.assign({},f[p][1].start)},S=[["enter",x,m],["enter",f[d][1],m],["exit",f[d][1],m],["enter",y,m]],v=m.parser.constructs.insideSpan.null;v&&qt(S,S.length,0,cu(v,f.slice(d+1,p),m)),qt(S,S.length,0,[["exit",y,m],["enter",f[p][1],m],["exit",f[p][1],m],["exit",x,m]]),qt(f,d-1,p-d+3,S),p=d+S.length-2;break}}for(p=-1;++p<f.length;)f[p][1].type==="strikethroughSequenceTemporary"&&(f[p][1].type="data");return f}function h(f,m,p){const d=this.previous,x=this.events;let y=0;return S;function S(C){return d===126&&x[x.length-1][1].type!=="characterEscape"?p(C):(f.enter("strikethroughSequenceTemporary"),v(C))}function v(C){const H=Si(d);if(C===126)return y>1?p(C):(f.consume(C),y++,v);if(y<2&&!r)return p(C);const G=f.exit("strikethroughSequenceTemporary"),O=Si(C);return G._open=!O||O===2&&!!H,G._close=!H||H===2&&!!O,m(C)}}}class QE{constructor(){this.map=[]}add(a,r,u){ZE(this,a,r,u)}consume(a){if(this.map.sort(function(h,f){return h[0]-f[0]}),this.map.length===0)return;let r=this.map.length;const u=[];for(;r>0;)r-=1,u.push(a.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),a.length=this.map[r][0];u.push(a.slice()),a.length=0;let s=u.pop();for(;s;){for(const h of s)a.push(h);s=u.pop()}this.map.length=0}}function ZE(n,a,r,u){let s=0;if(!(r===0&&u.length===0)){for(;s<n.map.length;){if(n.map[s][0]===a){n.map[s][1]+=r,n.map[s][2].push(...u);return}s+=1}n.map.push([a,r,u])}}function FE(n,a){let r=!1;const u=[];for(;a<n.length;){const s=n[a];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&u.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const h=u.length-1;u[h]=u[h]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);a+=1}return u}function KE(){return{flow:{null:{name:"table",tokenize:JE,resolveAll:IE}}}}function JE(n,a,r){const u=this;let s=0,h=0,f;return m;function m(R){let ee=u.events.length-1;for(;ee>-1;){const ae=u.events[ee][1].type;if(ae==="lineEnding"||ae==="linePrefix")ee--;else break}const W=ee>-1?u.events[ee][1].type:null,Se=W==="tableHead"||W==="tableRow"?B:p;return Se===B&&u.parser.lazy[u.now().line]?r(R):Se(R)}function p(R){return n.enter("tableHead"),n.enter("tableRow"),d(R)}function d(R){return R===124||(f=!0,h+=1),x(R)}function x(R){return R===null?r(R):se(R)?h>1?(h=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(R),n.exit("lineEnding"),v):r(R):Te(R)?Ne(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||Ve(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 u.interrupt=!1,u.parser.lazy[u.now().line]?r(R):(n.enter("tableDelimiterRow"),f=!1,Te(R)?Ne(n,C,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):C(R))}function C(R){return R===45||R===58?G(R):R===124?(f=!0,n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),H):ne(R)}function H(R){return Te(R)?Ne(n,G,"whitespace")(R):G(R)}function G(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||se(R)?te(R):ne(R)}function O(R){return R===45?(n.enter("tableDelimiterFiller"),Q(R)):ne(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"),q):(n.exit("tableDelimiterFiller"),q(R))}function q(R){return Te(R)?Ne(n,te,"whitespace")(R):te(R)}function te(R){return R===124?C(R):R===null||se(R)?!f||s!==h?ne(R):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(R)):ne(R)}function ne(R){return r(R)}function B(R){return n.enter("tableRow"),$(R)}function $(R){return R===124?(n.enter("tableCellDivider"),n.consume(R),n.exit("tableCellDivider"),$):R===null||se(R)?(n.exit("tableRow"),a(R)):Te(R)?Ne(n,$,"whitespace")(R):(n.enter("data"),he(R))}function he(R){return R===null||R===124||Ve(R)?(n.exit("data"),$(R)):(n.consume(R),R===92?me:he)}function me(R){return R===92||R===124?(n.consume(R),he):he(R)}}function IE(n,a){let r=-1,u=!0,s=0,h=[0,0,0,0],f=[0,0,0,0],m=!1,p=0,d,x,y;const S=new QE;for(;++r<n.length;){const v=n[r],C=v[1];v[0]==="enter"?C.type==="tableHead"?(m=!1,p!==0&&(Mp(S,a,p,d,x),x=void 0,p=0),d={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},S.add(r,0,[["enter",d,a]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(u=!0,y=void 0,h=[0,0,0,0],f=[0,r+1,0,0],m&&(m=!1,x={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},S.add(r,0,[["enter",x,a]])),s=C.type==="tableDelimiterRow"?2:x?3:1):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(h[1]!==0&&(f[0]=f[1],y=eu(S,a,h,s,void 0,y),h=[0,0,0,0]),f[2]=r)):C.type==="tableCellDivider"&&(u?u=!1:(h[1]!==0&&(f[0]=f[1],y=eu(S,a,h,s,void 0,y)),h=f,f=[h[1],r,0,0])):C.type==="tableHead"?(m=!0,p=r):C.type==="tableRow"||C.type==="tableDelimiterRow"?(p=r,h[1]!==0?(f[0]=f[1],y=eu(S,a,h,s,r,y)):f[1]!==0&&(y=eu(S,a,f,s,r,y)),s=0):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(f[3]=r)}for(p!==0&&Mp(S,a,p,d,x),S.consume(a.events),r=-1;++r<a.events.length;){const v=a.events[r];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=FE(a.events,r))}return n}function eu(n,a,r,u,s,h){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",m="tableContent";r[0]!==0&&(h.end=Object.assign({},bi(a.events,r[0])),n.add(r[0],0,[["exit",h,a]]));const p=bi(a.events,r[1]);if(h={type:f,start:Object.assign({},p),end:Object.assign({},p)},n.add(r[1],0,[["enter",h,a]]),r[2]!==0){const d=bi(a.events,r[2]),x=bi(a.events,r[3]),y={type:m,start:Object.assign({},d),end:Object.assign({},x)};if(n.add(r[2],0,[["enter",y,a]]),u!==2){const S=a.events[r[2]],v=a.events[r[3]];if(S[1].end=Object.assign({},v[1].end),S[1].type="chunkText",S[1].contentType="text",r[3]>r[2]+1){const C=r[2]+1,H=r[3]-r[2]-1;n.add(C,H,[])}}n.add(r[3]+1,0,[["exit",y,a]])}return s!==void 0&&(h.end=Object.assign({},bi(a.events,s)),n.add(s,0,[["exit",h,a]]),h=void 0),h}function Mp(n,a,r,u,s){const h=[],f=bi(a.events,r);s&&(s.end=Object.assign({},f),h.push(["exit",s,a])),u.end=Object.assign({},f),h.push(["exit",u,a]),n.add(r+1,0,h)}function bi(n,a){const r=n[a],u=r[0]==="enter"?"start":"end";return r[1][u]}const $E={name:"tasklistCheck",tokenize:PE};function WE(){return{text:{91:$E}}}function PE(n,a,r){const u=this;return s;function s(p){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?r(p):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),h)}function h(p){return Ve(p)?(n.enter("taskListCheckValueUnchecked"),n.consume(p),n.exit("taskListCheckValueUnchecked"),f):p===88||p===120?(n.enter("taskListCheckValueChecked"),n.consume(p),n.exit("taskListCheckValueChecked"),f):r(p)}function f(p){return p===93?(n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),m):r(p)}function m(p){return se(p)?a(p):Te(p)?n.check({tokenize:e4},a,r)(p):r(p)}}function e4(n,a,r){return Ne(n,u,"whitespace");function u(s){return s===null?r(s):a(s)}}function t4(n){return ng([wE(),LE(),GE(n),KE(),WE()])}const n4={};function Fg(n){const a=this,r=n||n4,u=a.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),h=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(t4(r)),h.push(kE()),f.push(EE(r))}function Kg({content:n,isStreaming:a}){const[r,u]=ue.useState(!1);if(!n)return null;const s=n.split(`
|
|
229
|
+
`)[0],h=s.length>60?s.slice(0,60)+"…":s;return E.jsxs("div",{className:"my-2",children:[E.jsxs("button",{onClick:()=>u(!r),className:"flex items-center gap-1.5 text-xs text-gray-400 hover:text-gray-600 transition-colors",children:[E.jsx(W0,{size:12,className:a?"animate-pulse":""}),r?E.jsx(ex,{size:12}):E.jsx(Up,{size:12}),E.jsx("span",{className:"italic",children:a?"Thinking…":h})]}),r&&E.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 l4={"file-text":nu,search:qp,"folder-open":ds};function Jg({tool:n}){const a=U0[n.name],r=a?l4[a.iconKey]??nu:nu,u=(a==null?void 0:a.label)??n.name;return E.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"?E.jsx(Hp,{size:12,className:"text-emerald-500 animate-spin shrink-0"}):n.status==="error"?E.jsx(hs,{size:12,className:"text-red-400 shrink-0"}):E.jsx(Bp,{size:12,className:"text-emerald-500 shrink-0"}),E.jsx(r,{size:12,className:"text-gray-400 shrink-0"}),E.jsx("span",{children:u}),n.summary&&E.jsx("span",{className:"text-gray-400 truncate max-w-[120px]",children:n.summary})]})}function i4({label:n,state:a}){return E.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"?E.jsx(Hp,{size:12,className:"text-blue-400 animate-spin shrink-0"}):a==="error"?E.jsx(hs,{size:12,className:"text-amber-400 shrink-0"}):E.jsx(Bp,{size:12,className:"text-blue-400 shrink-0"}),E.jsx("span",{children:n})]})}function a4({block:n,index:a}){switch(n.type){case"thinking":return E.jsx(Kg,{content:n.content,isStreaming:n.isStreaming},`thinking-${a}`);case"text":return n.content?E.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:E.jsx(Eg,{remarkPlugins:[Fg],children:n.content})},`text-${a}`):null;case"tool_call":return E.jsx("div",{className:"my-1.5",children:E.jsx(Jg,{tool:n.tool})},`tool-${n.tool.id}`);case"status":return E.jsx("div",{children:E.jsx(i4,{label:n.label,state:n.state})},`status-${a}`);default:return null}}function r4({message:n}){var r;if(n.role==="system")return E.jsx("div",{className:"flex justify-center animate-message-in",children:E.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 E.jsx("div",{className:"flex justify-end animate-message-in",children:E.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 E.jsx("div",{className:"flex justify-start animate-message-in",children:E.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((u,s)=>E.jsx(a4,{block:u,index:s},s)):E.jsxs(E.Fragment,{children:[(r=n.thinking)==null?void 0:r.map((u,s)=>E.jsx(Kg,{content:u.content,isStreaming:u.isStreaming},s)),n.toolCalls&&n.toolCalls.length>0&&E.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2",children:n.toolCalls.map(u=>E.jsx(Jg,{tool:u},u.id))}),n.content&&E.jsx("div",{className:"agentxl-prose prose prose-sm max-w-none text-gray-800",children:E.jsx(Eg,{remarkPlugins:[Fg],children:n.content})})]})})})}function u4({value:n,onChange:a,onSend:r,onStop:u,isStreaming:s,disabled:h}){const f=ue.useRef(null);ue.useEffect(()=>{const p=f.current;p&&(p.style.height="auto",p.style.height=Math.min(p.scrollHeight,120)+"px")},[n]),ue.useEffect(()=>{var p;s||(p=f.current)==null||p.focus()},[s]);const m=ue.useCallback(p=>{p.key==="Enter"&&!p.shiftKey&&(p.preventDefault(),r(n))},[n,r]);return E.jsx("div",{className:"border-t border-gray-100 p-3",children:E.jsxs("div",{className:"flex items-end gap-2",children:[E.jsx("textarea",{ref:f,value:n,onChange:p=>a(p.target.value),onKeyDown:m,placeholder:"Ask a grounded question about the selected folder…",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?E.jsx("button",{onClick:u,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:E.jsx(zx,{size:14})}):E.jsx("button",{onClick:()=>r(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:E.jsx(vx,{size:14})})]})})}function o4(){const{status:n,connectionError:a,serverDown:r,markServerDown:u,refreshStatus:s}=M0(),{workbookId:h,workbookIdentityInput:f,workbookResolveError:m,isResolvingWorkbook:p}=R0(!!(n!=null&&n.authenticated)),{folderStatus:d,folderError:x,isLoadingFolderStatus:y,isSavingFolder:S,saveFolderLink:v}=L0(h,f,!!(n!=null&&n.authenticated)),{messages:C,isStreaming:H,sendMessage:G,stopStreaming:O}=V0(h,u),[Q,q]=ue.useState(""),[te,ne]=ue.useState(!1),[B,$]=ue.useState(!1),[he,me]=ue.useState(null),[R,ee]=ue.useState(!1),W=ue.useRef(null);ue.useEffect(()=>{var L;(L=W.current)==null||L.scrollIntoView({behavior:"smooth"})},[C]);const Se=ue.useCallback(L=>{const k=L.trim();k&&(G(k),q(""))},[G]),ae=ue.useCallback(L=>{q(L)},[]),J=ue.useCallback(async L=>{me(null),await v(L)&&ne(!1)},[v]),M=ue.useCallback(async()=>{me(null),$(!0);try{return(await N0((d==null?void 0:d.folderPath)??null)).folderPath}catch(L){return me(L instanceof Error?L.message:"Could not open the folder picker. Paste the folder path manually instead."),null}finally{$(!1)}},[d==null?void 0:d.folderPath]);if(ue.useEffect(()=>{me(null),ee(!1)},[h]),a&&!n)return E.jsx(Cx,{});if(!n)return E.jsx("div",{className:"flex items-center justify-center h-full",children:E.jsx("div",{className:"text-sm text-gray-400",children:"Connecting…"})});if(!n.authenticated)return E.jsx(Dx,{onSaved:()=>void s()});if(p&&!h)return E.jsx("div",{className:"flex items-center justify-center h-full",children:E.jsx("div",{className:"text-sm text-gray-400",children:"Resolving workbook…"})});const F=!!(d!=null&&d.linked&&d.folderPath),ie=F||R,ve=!h||y||!ie||te,A=C.length>0,w=r||!h||!!m||!!x||!ie||te;return E.jsxs("div",{className:"flex flex-col h-full bg-white",children:[r&&E.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:[E.jsx("div",{className:"w-2 h-2 bg-amber-400 rounded-full animate-pulse"}),"Server disconnected — reconnecting…"]}),m&&E.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."}),E.jsx("div",{className:"flex-1 overflow-y-auto",children:ve?h?E.jsx(Ox,{workbookId:h,workbookName:(f==null?void 0:f.workbookName)??null,currentFolderPath:(d==null?void 0:d.folderPath)??null,isSaving:S||y,isPickingFolder:B,error:he??x,onPickFolder:M,onSave:J,onCancel:F?()=>ne(!1):void 0,onSkip:te?void 0:()=>{ee(!0),me(null)}}):E.jsx("div",{className:"flex items-center justify-center h-full",children:E.jsx("div",{className:"text-sm text-gray-400",children:"Preparing folder link…"})}):A?E.jsxs("div",{className:"p-4 space-y-4",children:[h&&E.jsxs("div",{className:"space-y-1 px-1",children:[E.jsxs("div",{className:"text-[11px] text-gray-400",children:["Workbook ID: ",h]}),(d==null?void 0:d.folderPath)&&E.jsxs("div",{className:"text-[11px] text-gray-400 break-all",children:["Linked folder: ",d.folderPath]})]}),C.map(L=>E.jsx(r4,{message:L},L.id)),H&&!C.some(L=>{var k;return L.role==="assistant"&&(L.content||((k=L.thinking)==null?void 0:k.length))})&&E.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-400 pl-1 animate-message-in",children:[E.jsx("div",{className:"w-2 h-2 bg-emerald-400 rounded-full animate-pulse"}),E.jsx("span",{children:"Thinking…"})]}),E.jsx("div",{ref:W})]}):F?E.jsx(jx,{status:n,workbookId:h,linkedFolderPath:d.folderPath,totalFiles:d.totalFiles,supportedFiles:d.supportedFiles,onQuickAction:ae,onChangeFolder:()=>ne(!0)}):E.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 px-6 text-center",children:[E.jsx("p",{className:"text-[13px] font-medium text-gray-700",children:"Chatting without a linked folder"}),E.jsx("p",{className:"text-[12px] leading-5 text-gray-500",children:"AgentXL won't have access to source documents. You can link a folder anytime to enable grounded answers with citations."}),E.jsx("button",{onClick:()=>{ee(!1),ne(!0)},className:"rounded-2xl border border-emerald-200 bg-white px-4 py-2 text-[12px] font-medium text-emerald-700 transition hover:bg-emerald-50",children:"Link a folder"})]})}),ie&&!te&&E.jsx(u4,{value:Q,onChange:q,onSend:Se,onStop:O,isStreaming:H,disabled:w})]})}function jp(){const n=document.getElementById("root");if(!n)throw new Error("Root element not found");b0.createRoot(n).render(E.jsx(ue.StrictMode,{children:E.jsx(o4,{})}))}typeof Office<"u"&&Office.onReady?Office.onReady(()=>{jp()}):jp();
|