claude-run 0.2.0 → 0.2.1
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 +1 -1
- package/dist/index.js +9 -2
- package/dist/web/assets/index-BlBAFDQv.js +289 -0
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/dist/web/assets/index-BvMYS-GY.js +0 -289
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function i(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(s){if(s.ep)return;s.ep=!0;const c=i(s);fetch(s.href,c)}})();function Bp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var No={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 x1(){if(Nm)return ya;Nm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(u,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:n,type:u,key:f,ref:s!==void 0?s:null,props:c}}return ya.Fragment=a,ya.jsx=i,ya.jsxs=i,ya}var _m;function b1(){return _m||(_m=1,No.exports=x1()),No.exports}var S=b1(),_o={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 Mm;function v1(){if(Mm)return ge;Mm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function v(T){return T===null||typeof T!="object"?null:(T=b&&T[b]||T["@@iterator"],typeof T=="function"?T:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,Y={};function _(T,G,k){this.props=T,this.context=G,this.refs=Y,this.updater=k||w}_.prototype.isReactComponent={},_.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,G,"setState")},_.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function q(){}q.prototype=_.prototype;function B(T,G,k){this.props=T,this.context=G,this.refs=Y,this.updater=k||w}var F=B.prototype=new q;F.constructor=B,M(F,_.prototype),F.isPureReactComponent=!0;var K=Array.isArray;function L(){}var $={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function pe(T,G,k){var ee=k.ref;return{$$typeof:n,type:T,key:G,ref:ee!==void 0?ee:null,props:k}}function U(T,G){return pe(T.type,G,T.props)}function te(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function ne(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(k){return G[k]})}var Se=/\/+/g;function ae(T,G){return typeof T=="object"&&T!==null&&T.key!=null?ne(""+T.key):G.toString(36)}function W(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(L,L):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function R(T,G,k,ee,de){var se=typeof T;(se==="undefined"||se==="boolean")&&(T=null);var we=!1;if(T===null)we=!0;else switch(se){case"bigint":case"string":case"number":we=!0;break;case"object":switch(T.$$typeof){case n:case a:we=!0;break;case x:return we=T._init,R(we(T._payload),G,k,ee,de)}}if(we)return de=de(T),we=ee===""?"."+ae(T,0):ee,K(de)?(k="",we!=null&&(k=we.replace(Se,"$&/")+"/"),R(de,G,k,"",function(Yt){return Yt})):de!=null&&(te(de)&&(de=U(de,k+(de.key==null||T&&T.key===de.key?"":(""+de.key).replace(Se,"$&/")+"/")+we)),G.push(de)),1;we=0;var Ke=ee===""?".":ee+":";if(K(T))for(var Ue=0;Ue<T.length;Ue++)ee=T[Ue],se=Ke+ae(ee,Ue),we+=R(ee,G,k,se,de);else if(Ue=v(T),typeof Ue=="function")for(T=Ue.call(T),Ue=0;!(ee=T.next()).done;)ee=ee.value,se=Ke+ae(ee,Ue++),we+=R(ee,G,k,se,de);else if(se==="object"){if(typeof T.then=="function")return R(W(T),G,k,ee,de);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return we}function J(T,G,k){if(T==null)return T;var ee=[],de=0;return R(T,ee,"","",function(se){return G.call(k,se,de++)}),ee}function ue(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(k){(T._status===0||T._status===-1)&&(T._status=1,T._result=k)},function(k){(T._status===0||T._status===-1)&&(T._status=2,T._result=k)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var ve=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},E={map:J,forEach:function(T,G,k){J(T,function(){G.apply(this,arguments)},k)},count:function(T){var G=0;return J(T,function(){G++}),G},toArray:function(T){return J(T,function(G){return G})||[]},only:function(T){if(!te(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ge.Activity=g,ge.Children=E,ge.Component=_,ge.Fragment=i,ge.Profiler=s,ge.PureComponent=B,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(T){return $.H.useMemoCache(T)}},ge.cache=function(T){return function(){return T.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(T,G,k){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ee=M({},T.props),de=T.key;if(G!=null)for(se in G.key!==void 0&&(de=""+G.key),G)!ie.call(G,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&G.ref===void 0||(ee[se]=G[se]);var se=arguments.length-2;if(se===1)ee.children=k;else if(1<se){for(var we=Array(se),Ke=0;Ke<se;Ke++)we[Ke]=arguments[Ke+2];ee.children=we}return pe(T.type,de,ee)},ge.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:c,_context:T},T},ge.createElement=function(T,G,k){var ee,de={},se=null;if(G!=null)for(ee in G.key!==void 0&&(se=""+G.key),G)ie.call(G,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(de[ee]=G[ee]);var we=arguments.length-2;if(we===1)de.children=k;else if(1<we){for(var Ke=Array(we),Ue=0;Ue<we;Ue++)Ke[Ue]=arguments[Ue+2];de.children=Ke}if(T&&T.defaultProps)for(ee in we=T.defaultProps,we)de[ee]===void 0&&(de[ee]=we[ee]);return pe(T,se,de)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(T){return{$$typeof:d,render:T}},ge.isValidElement=te,ge.lazy=function(T){return{$$typeof:x,_payload:{_status:-1,_result:T},_init:ue}},ge.memo=function(T,G){return{$$typeof:m,type:T,compare:G===void 0?null:G}},ge.startTransition=function(T){var G=$.T,k={};$.T=k;try{var ee=T(),de=$.S;de!==null&&de(k,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(L,ve)}catch(se){ve(se)}finally{G!==null&&k.types!==null&&(G.types=k.types),$.T=G}},ge.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ge.use=function(T){return $.H.use(T)},ge.useActionState=function(T,G,k){return $.H.useActionState(T,G,k)},ge.useCallback=function(T,G){return $.H.useCallback(T,G)},ge.useContext=function(T){return $.H.useContext(T)},ge.useDebugValue=function(){},ge.useDeferredValue=function(T,G){return $.H.useDeferredValue(T,G)},ge.useEffect=function(T,G){return $.H.useEffect(T,G)},ge.useEffectEvent=function(T){return $.H.useEffectEvent(T)},ge.useId=function(){return $.H.useId()},ge.useImperativeHandle=function(T,G,k){return $.H.useImperativeHandle(T,G,k)},ge.useInsertionEffect=function(T,G){return $.H.useInsertionEffect(T,G)},ge.useLayoutEffect=function(T,G){return $.H.useLayoutEffect(T,G)},ge.useMemo=function(T,G){return $.H.useMemo(T,G)},ge.useOptimistic=function(T,G){return $.H.useOptimistic(T,G)},ge.useReducer=function(T,G,k){return $.H.useReducer(T,G,k)},ge.useRef=function(T){return $.H.useRef(T)},ge.useState=function(T){return $.H.useState(T)},ge.useSyncExternalStore=function(T,G,k){return $.H.useSyncExternalStore(T,G,k)},ge.useTransition=function(){return $.H.useTransition()},ge.version="19.2.3",ge}var jm;function fc(){return jm||(jm=1,_o.exports=v1()),_o.exports}var ce=fc(),Mo={exports:{}},xa={},jo={exports:{}},Oo={};/**
|
|
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 Om;function S1(){return Om||(Om=1,(function(n){function a(R,J){var ue=R.length;R.push(J);e:for(;0<ue;){var ve=ue-1>>>1,E=R[ve];if(0<s(E,J))R[ve]=J,R[ue]=E,ue=ve;else break e}}function i(R){return R.length===0?null:R[0]}function u(R){if(R.length===0)return null;var J=R[0],ue=R.pop();if(ue!==J){R[0]=ue;e:for(var ve=0,E=R.length,T=E>>>1;ve<T;){var G=2*(ve+1)-1,k=R[G],ee=G+1,de=R[ee];if(0>s(k,ue))ee<E&&0>s(de,k)?(R[ve]=de,R[ee]=ue,ve=ee):(R[ve]=k,R[G]=ue,ve=G);else if(ee<E&&0>s(de,ue))R[ve]=de,R[ee]=ue,ve=ee;else break e}}return J}function s(R,J){var ue=R.sortIndex-J.sortIndex;return ue!==0?ue:R.id-J.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();n.unstable_now=function(){return f.now()-d}}var p=[],m=[],x=1,g=null,b=3,v=!1,w=!1,M=!1,Y=!1,_=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function F(R){for(var J=i(m);J!==null;){if(J.callback===null)u(m);else if(J.startTime<=R)u(m),J.sortIndex=J.expirationTime,a(p,J);else break;J=i(m)}}function K(R){if(M=!1,F(R),!w)if(i(p)!==null)w=!0,L||(L=!0,ne());else{var J=i(m);J!==null&&W(K,J.startTime-R)}}var L=!1,$=-1,ie=5,pe=-1;function U(){return Y?!0:!(n.unstable_now()-pe<ie)}function te(){if(Y=!1,L){var R=n.unstable_now();pe=R;var J=!0;try{e:{w=!1,M&&(M=!1,q($),$=-1),v=!0;var ue=b;try{t:{for(F(R),g=i(p);g!==null&&!(g.expirationTime>R&&U());){var ve=g.callback;if(typeof ve=="function"){g.callback=null,b=g.priorityLevel;var E=ve(g.expirationTime<=R);if(R=n.unstable_now(),typeof E=="function"){g.callback=E,F(R),J=!0;break t}g===i(p)&&u(p),F(R)}else u(p);g=i(p)}if(g!==null)J=!0;else{var T=i(m);T!==null&&W(K,T.startTime-R),J=!1}}break e}finally{g=null,b=ue,v=!1}J=void 0}}finally{J?ne():L=!1}}}var ne;if(typeof B=="function")ne=function(){B(te)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ae=Se.port2;Se.port1.onmessage=te,ne=function(){ae.postMessage(null)}}else ne=function(){_(te,0)};function W(R,J){$=_(function(){R(n.unstable_now())},J)}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(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(R){switch(b){case 1:case 2:case 3:var J=3;break;default:J=b}var ue=b;b=J;try{return R()}finally{b=ue}},n.unstable_requestPaint=function(){Y=!0},n.unstable_runWithPriority=function(R,J){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var ue=b;b=R;try{return J()}finally{b=ue}},n.unstable_scheduleCallback=function(R,J,ue){var ve=n.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?ve+ue:ve):ue=ve,R){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=ue+E,R={id:x++,callback:J,priorityLevel:R,startTime:ue,expirationTime:E,sortIndex:-1},ue>ve?(R.sortIndex=ue,a(m,R),i(p)===null&&R===i(m)&&(M?(q($),$=-1):M=!0,W(K,ue-ve))):(R.sortIndex=E,a(p,R),w||v||(w=!0,L||(L=!0,ne()))),R},n.unstable_shouldYield=U,n.unstable_wrapCallback=function(R){var J=b;return function(){var ue=b;b=J;try{return R.apply(this,arguments)}finally{b=ue}}}})(Oo)),Oo}var Dm;function z1(){return Dm||(Dm=1,jo.exports=S1()),jo.exports}var Do={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 Rm;function k1(){if(Rm)return mt;Rm=1;var n=fc();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,m,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:p,containerInfo:m,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,mt.createPortal=function(p,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(p,m,null,x)},mt.flushSync=function(p){var m=f.T,x=u.p;try{if(f.T=null,u.p=2,p)return p()}finally{f.T=m,u.p=x,u.d.f()}},mt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(p,m))},mt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},mt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var x=m.as,g=d(x,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:v}):x==="script"&&u.d.X(p,{crossOrigin:g,integrity:b,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},mt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=d(m.as,m.crossOrigin);u.d.M(p,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(p)},mt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,g=d(x,m.crossOrigin);u.d.L(p,x,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},mt.preloadModule=function(p,m){if(typeof p=="string")if(m){var x=d(m.as,m.crossOrigin);u.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(p)},mt.requestFormReset=function(p){u.d.r(p)},mt.unstable_batchedUpdates=function(p,m){return p(m)},mt.useFormState=function(p,m,x){return f.H.useFormState(p,m,x)},mt.useFormStatus=function(){return f.H.useHostTransitionStatus()},mt.version="19.2.3",mt}var Lm;function Up(){if(Lm)return Do.exports;Lm=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(),Do.exports=k1(),Do.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 E1(){if(Bm)return xa;Bm=1;var n=z1(),a=fc(),i=Up();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 c(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 d(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(c(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,r=t;;){var o=l.return;if(o===null)break;var h=o.alternate;if(h===null){if(r=o.return,r!==null){l=r;continue}break}if(o.child===h.child){for(h=o.child;h;){if(h===l)return p(o),e;if(h===r)return p(o),t;h=h.sibling}throw Error(u(188))}if(l.return!==r.return)l=o,r=h;else{for(var y=!1,z=o.child;z;){if(z===l){y=!0,l=o,r=h;break}if(z===r){y=!0,r=o,l=h;break}z=z.sibling}if(!y){for(z=h.child;z;){if(z===l){y=!0,l=h,r=o;break}if(z===r){y=!0,r=h,l=o;break}z=z.sibling}if(!y)throw Error(u(189))}}if(l.alternate!==r)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 g=Object.assign,b=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),B=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function 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 M:return"Fragment";case _:return"Profiler";case Y:return"StrictMode";case K:return"Suspense";case L:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case B:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case F: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 ie:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var W=Array.isArray,R=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},ve=[],E=-1;function T(e){return{current:e}}function G(e){0>E||(e.current=ve[E],ve[E]=null,E--)}function k(e,t){E++,ve[E]=e.current,e.current=t}var ee=T(null),de=T(null),se=T(null),we=T(null);function Ke(e,t){switch(k(se,t),k(de,e),k(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Pd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(ee),k(ee,e)}function Ue(){G(ee),G(de),G(se)}function Yt(e){e.memoizedState!==null&&k(we,e);var t=ee.current,l=Pd(t,e.type);t!==l&&(k(de,e),k(ee,l))}function fn(e){de.current===e&&(G(ee),G(de)),we.current===e&&(G(we),da._currentValue=ue)}var Ei,Oa;function hn(e){if(Ei===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ei=t&&t[1]||"",Oa=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Ei+e+Oa}var Tl=!1;function Al(e,t){if(!e||Tl)return"";Tl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={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(H){var D=H}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(H){D=H}e.call(Z.prototype)}}else{try{throw Error()}catch(H){D=H}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(H){if(H&&D&&typeof H.stack=="string")return[H.stack,D.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=r.DetermineComponentFrameRoot(),y=h[0],z=h[1];if(y&&z){var C=y.split(`
|
|
44
|
-
`),O=z.split(`
|
|
45
|
-
`);for(o=r=0;r<C.length&&!C[r].includes("DetermineComponentFrameRoot");)r++;for(;o<O.length&&!O[o].includes("DetermineComponentFrameRoot");)o++;if(r===C.length||o===O.length)for(r=C.length-1,o=O.length-1;1<=r&&0<=o&&C[r]!==O[o];)o--;for(;1<=r&&0<=o;r--,o--)if(C[r]!==O[o]){if(r!==1||o!==1)do if(r--,o--,0>o||C[r]!==O[o]){var V=`
|
|
46
|
-
`+C[r].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=r&&0<=o);break}}}finally{Tl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?hn(l):""}function Da(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 Al(e.type,!1);case 11:return Al(e.type.render,!1);case 1:return Al(e.type,!0);case 31:return hn("Activity");default:return""}}function Ra(e){try{var t="",l=null;do t+=Da(e,l),l=e,e=e.return;while(e);return t}catch(r){return`
|
|
47
|
-
Error generating stack: `+r.message+`
|
|
48
|
-
`+r.stack}}var Nl=Object.prototype.hasOwnProperty,_l=n.unstable_scheduleCallback,Ci=n.unstable_cancelCallback,du=n.unstable_shouldYield,mu=n.unstable_requestPaint,yt=n.unstable_now,pu=n.unstable_getCurrentPriorityLevel,Q=n.unstable_ImmediatePriority,P=n.unstable_UserBlockingPriority,me=n.unstable_NormalPriority,ze=n.unstable_LowPriority,Re=n.unstable_IdlePriority,Mt=n.log,dn=n.unstable_setDisableYieldValue,xt=null,at=null;function St(e){if(typeof Mt=="function"&&dn(e),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(xt,e)}catch{}}var Ve=Math.clz32?Math.clz32:ig,On=Math.log,Pt=Math.LN2;function ig(e){return e>>>=0,e===0?32:31-(On(e)/Pt|0)|0}var La=256,Ba=262144,Ua=4194304;function rl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ha(e,t,l){var r=e.pendingLanes;if(r===0)return 0;var o=0,h=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var z=r&134217727;return z!==0?(r=z&~h,r!==0?o=rl(r):(y&=z,y!==0?o=rl(y):l||(l=z&~e,l!==0&&(o=rl(l))))):(z=r&~h,z!==0?o=rl(z):y!==0?o=rl(y):l||(l=r&~e,l!==0&&(o=rl(l)))),o===0?0:t!==0&&t!==o&&(t&h)===0&&(h=o&-o,l=t&-t,h>=l||h===32&&(l&4194048)!==0)?t:o}function wi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ag(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 jc(){var e=Ua;return Ua<<=1,(Ua&62914560)===0&&(Ua=4194304),e}function gu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ti(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rg(e,t,l,r,o,h){var y=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 z=e.entanglements,C=e.expirationTimes,O=e.hiddenUpdates;for(l=y&~l;0<l;){var V=31-Ve(l),Z=1<<V;z[V]=0,C[V]=-1;var D=O[V];if(D!==null)for(O[V]=null,V=0;V<D.length;V++){var H=D[V];H!==null&&(H.lane&=-536870913)}l&=~Z}r!==0&&Oc(e,r,0),h!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=h&~(y&~t))}function Oc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ve(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|l&261930}function Dc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var r=31-Ve(l),o=1<<r;o&t|e[r]&t&&(e[r]|=t),l&=~o}}function Rc(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 Lc(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:zm(e.type))}function Bc(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var Dn=Math.random().toString(36).slice(2),ot="__reactFiber$"+Dn,zt="__reactProps$"+Dn,Ml="__reactContainer$"+Dn,bu="__reactEvents$"+Dn,ug="__reactListeners$"+Dn,sg="__reactHandles$"+Dn,Uc="__reactResources$"+Dn,Ai="__reactMarker$"+Dn;function vu(e){delete e[ot],delete e[zt],delete e[bu],delete e[ug],delete e[sg]}function jl(e){var t=e[ot];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ml]||l[ot]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=rm(e);e!==null;){if(l=e[ot])return l;e=rm(e)}return t}e=l,l=e.parentNode}return null}function Ol(e){if(e=e[ot]||e[Ml]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ni(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Dl(e){var t=e[Uc];return t||(t=e[Uc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Ai]=!0}var Hc=new Set,qc={};function ul(e,t){Rl(e,t),Rl(e+"Capture",t)}function Rl(e,t){for(qc[e]=t,e=0;e<t.length;e++)Hc.add(t[e])}var og=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]*$"),Yc={},Vc={};function cg(e){return Nl.call(Vc,e)?!0:Nl.call(Yc,e)?!1:og.test(e)?Vc[e]=!0:(Yc[e]=!0,!1)}function qa(e,t,l){if(cg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ya(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,r){if(r===null)e.removeAttribute(l);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+r)}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fg(e,t,l){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,h=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(y){l=""+y,h.call(this,y)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Su(e){if(!e._valueTracker){var t=Gc(e)?"checked":"value";e._valueTracker=fg(e,t,""+e[t])}}function Qc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),r="";return e&&(r=Gc(e)?e.checked?"true":"false":e.value),e=r,e!==l?(t.setValue(e),!0):!1}function Va(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 hg=/[\n"\\]/g;function Gt(e){return e.replace(hg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zu(e,t,l,r,o,h,y,z){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?ku(e,y,Vt(t)):l!=null?ku(e,y,Vt(l)):r!=null&&e.removeAttribute("value"),o==null&&h!=null&&(e.defaultChecked=!!h),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?e.name=""+Vt(z):e.removeAttribute("name")}function Xc(e,t,l,r,o,h,y,z){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),t!=null||l!=null){if(!(h!=="submit"&&h!=="reset"||t!=null)){Su(e);return}l=l!=null?""+Vt(l):"",t=t!=null?""+Vt(t):l,z||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=z?e.checked:!!r,e.defaultChecked=!!r,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Su(e)}function ku(e,t,l){t==="number"&&Va(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Ll(e,t,l,r){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&&r&&(e[l].defaultSelected=!0)}else{for(l=""+Vt(l),t=null,o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Zc(e,t,l){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Vt(l):""}function Fc(e,t,l,r){if(t==null){if(r!=null){if(l!=null)throw Error(u(92));if(W(r)){if(1<r.length)throw Error(u(93));r=r[0]}l=r}l==null&&(l=""),t=l}l=Vt(t),e.defaultValue=l,r=e.textContent,r===l&&r!==""&&r!==null&&(e.value=r),Su(e)}function Bl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var dg=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 Kc(e,t,l){var r=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,l):typeof l!="number"||l===0||dg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Jc(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var r in l)!l.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&l[o]!==r&&Kc(e,o,r)}else for(var h in t)t.hasOwnProperty(h)&&Kc(e,h,t[h])}function Eu(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 mg=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"]]),pg=/^[\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 Ga(e){return pg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pn(){}var Cu=null;function wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ul=null,Hl=null;function Ic(e){var t=Ol(e);if(t&&(e=t.stateNode)){var l=e[zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(zu(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="'+Gt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var r=l[t];if(r!==e&&r.form===e.form){var o=r[zt]||null;if(!o)throw Error(u(90));zu(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)r=l[t],r.form===e.form&&Qc(r)}break e;case"textarea":Zc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ll(e,!!l.multiple,t,!1)}}}var Tu=!1;function $c(e,t,l){if(Tu)return e(t,l);Tu=!0;try{var r=e(t);return r}finally{if(Tu=!1,(Ul!==null||Hl!==null)&&(_r(),Ul&&(t=Ul,e=Hl,Hl=Ul=null,Ic(t),e)))for(t=0;t<e.length;t++)Ic(e[t])}}function _i(e,t){var l=e.stateNode;if(l===null)return null;var r=l[zt]||null;if(r===null)return null;l=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;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"),Au=!1;if(gn)try{var Mi={};Object.defineProperty(Mi,"passive",{get:function(){Au=!0}}),window.addEventListener("test",Mi,Mi),window.removeEventListener("test",Mi,Mi)}catch{Au=!1}var Rn=null,Nu=null,Qa=null;function Wc(){if(Qa)return Qa;var e,t=Nu,l=t.length,r,o="value"in Rn?Rn.value:Rn.textContent,h=o.length;for(e=0;e<l&&t[e]===o[e];e++);var y=l-e;for(r=1;r<=y&&t[l-r]===o[h-r];r++);return Qa=o.slice(e,1<r?1-r:void 0)}function Xa(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Za(){return!0}function Pc(){return!1}function kt(e){function t(l,r,o,h,y){this._reactName=l,this._targetInst=o,this.type=r,this.nativeEvent=h,this.target=y,this.currentTarget=null;for(var z in e)e.hasOwnProperty(z)&&(l=e[z],this[z]=l?l(h):h[z]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Za:Pc,this.isPropagationStopped=Pc,this}return g(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=Za)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Za)},persist:function(){},isPersistent:Za}),t}var sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=kt(sl),ji=g({},sl,{view:0,detail:0}),gg=kt(ji),_u,Mu,Oi,Ka=g({},ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ou,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!==Oi&&(Oi&&e.type==="mousemove"?(_u=e.screenX-Oi.screenX,Mu=e.screenY-Oi.screenY):Mu=_u=0,Oi=e),_u)},movementY:function(e){return"movementY"in e?e.movementY:Mu}}),ef=kt(Ka),yg=g({},Ka,{dataTransfer:0}),xg=kt(yg),bg=g({},ji,{relatedTarget:0}),ju=kt(bg),vg=g({},sl,{animationName:0,elapsedTime:0,pseudoElement:0}),Sg=kt(vg),zg=g({},sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kg=kt(zg),Eg=g({},sl,{data:0}),tf=kt(Eg),Cg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wg={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"},Tg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ag(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tg[e])?!!t[e]:!1}function Ou(){return Ag}var Ng=g({},ji,{key:function(e){if(e.key){var t=Cg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ou,charCode:function(e){return e.type==="keypress"?Xa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_g=kt(Ng),Mg=g({},Ka,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nf=kt(Mg),jg=g({},ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),Og=kt(jg),Dg=g({},sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rg=kt(Dg),Lg=g({},Ka,{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}),Bg=kt(Lg),Ug=g({},sl,{newState:0,oldState:0}),Hg=kt(Ug),qg=[9,13,27,32],Du=gn&&"CompositionEvent"in window,Di=null;gn&&"documentMode"in document&&(Di=document.documentMode);var Yg=gn&&"TextEvent"in window&&!Di,lf=gn&&(!Du||Di&&8<Di&&11>=Di),af=" ",rf=!1;function uf(e,t){switch(e){case"keyup":return qg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ql=!1;function Vg(e,t){switch(e){case"compositionend":return sf(t);case"keypress":return t.which!==32?null:(rf=!0,af);case"textInput":return e=t.data,e===af&&rf?null:e;default:return null}}function Gg(e,t){if(ql)return e==="compositionend"||!Du&&uf(e,t)?(e=Wc(),Qa=Nu=Rn=null,ql=!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 lf&&t.locale!=="ko"?null:t.data;default:return null}}var Qg={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 of(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qg[e.type]:t==="textarea"}function cf(e,t,l,r){Ul?Hl?Hl.push(r):Hl=[r]:Ul=r,t=Br(t,"onChange"),0<t.length&&(l=new Fa("onChange","change",null,l,r),e.push({event:l,listeners:t}))}var Ri=null,Li=null;function Xg(e){Zd(e,0)}function Ja(e){var t=Ni(e);if(Qc(t))return e}function ff(e,t){if(e==="change")return t}var hf=!1;if(gn){var Ru;if(gn){var Lu="oninput"in document;if(!Lu){var df=document.createElement("div");df.setAttribute("oninput","return;"),Lu=typeof df.oninput=="function"}Ru=Lu}else Ru=!1;hf=Ru&&(!document.documentMode||9<document.documentMode)}function mf(){Ri&&(Ri.detachEvent("onpropertychange",pf),Li=Ri=null)}function pf(e){if(e.propertyName==="value"&&Ja(Li)){var t=[];cf(t,Li,e,wu(e)),$c(Xg,t)}}function Zg(e,t,l){e==="focusin"?(mf(),Ri=t,Li=l,Ri.attachEvent("onpropertychange",pf)):e==="focusout"&&mf()}function Fg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ja(Li)}function Kg(e,t){if(e==="click")return Ja(t)}function Jg(e,t){if(e==="input"||e==="change")return Ja(t)}function Ig(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:Ig;function Bi(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),r=Object.keys(t);if(l.length!==r.length)return!1;for(r=0;r<l.length;r++){var o=l[r];if(!Nl.call(t,o)||!jt(e[o],t[o]))return!1}return!0}function gf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yf(e,t){var l=gf(e);e=0;for(var r;l;){if(l.nodeType===3){if(r=e+l.textContent.length,e<=t&&r>=t)return{node:l,offset:t-e};e=r}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=gf(l)}}function xf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Va(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=Va(e.document)}return t}function Bu(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 $g=gn&&"documentMode"in document&&11>=document.documentMode,Yl=null,Uu=null,Ui=null,Hu=!1;function vf(e,t,l){var r=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hu||Yl==null||Yl!==Va(r)||(r=Yl,"selectionStart"in r&&Bu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ui&&Bi(Ui,r)||(Ui=r,r=Br(Uu,"onSelect"),0<r.length&&(t=new Fa("onSelect","select",null,t,l),e.push({event:t,listeners:r}),t.target=Yl)))}function ol(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Vl={animationend:ol("Animation","AnimationEnd"),animationiteration:ol("Animation","AnimationIteration"),animationstart:ol("Animation","AnimationStart"),transitionrun:ol("Transition","TransitionRun"),transitionstart:ol("Transition","TransitionStart"),transitioncancel:ol("Transition","TransitionCancel"),transitionend:ol("Transition","TransitionEnd")},qu={},Sf={};gn&&(Sf=document.createElement("div").style,"AnimationEvent"in window||(delete Vl.animationend.animation,delete Vl.animationiteration.animation,delete Vl.animationstart.animation),"TransitionEvent"in window||delete Vl.transitionend.transition);function cl(e){if(qu[e])return qu[e];if(!Vl[e])return e;var t=Vl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Sf)return qu[e]=t[l];return e}var zf=cl("animationend"),kf=cl("animationiteration"),Ef=cl("animationstart"),Wg=cl("transitionrun"),Pg=cl("transitionstart"),ey=cl("transitioncancel"),Cf=cl("transitionend"),wf=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){wf.set(e,t),ul(t,[e])}var Ia=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Qt=[],Gl=0,Vu=0;function $a(){for(var e=Gl,t=Vu=Gl=0;t<e;){var l=Qt[t];Qt[t++]=null;var r=Qt[t];Qt[t++]=null;var o=Qt[t];Qt[t++]=null;var h=Qt[t];if(Qt[t++]=null,r!==null&&o!==null){var y=r.pending;y===null?o.next=o:(o.next=y.next,y.next=o),r.pending=o}h!==0&&Tf(l,o,h)}}function Wa(e,t,l,r){Qt[Gl++]=e,Qt[Gl++]=t,Qt[Gl++]=l,Qt[Gl++]=r,Vu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Gu(e,t,l,r){return Wa(e,t,l,r),Pa(e)}function fl(e,t){return Wa(e,null,null,t),Pa(e)}function Tf(e,t,l){e.lanes|=l;var r=e.alternate;r!==null&&(r.lanes|=l);for(var o=!1,h=e.return;h!==null;)h.childLanes|=l,r=h.alternate,r!==null&&(r.childLanes|=l),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(o=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,o&&t!==null&&(o=31-Ve(l),e=h.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=l|536870912),h):null}function Pa(e){if(50<ra)throw ra=0,Ws=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ql={};function ty(e,t,l,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,l,r){return new ty(e,t,l,r)}function Qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yn(e,t){var l=e.alternate;return l===null?(l=Ot(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Af(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function er(e,t,l,r,o,h){var y=0;if(r=e,typeof e=="function")Qu(e)&&(y=1);else if(typeof e=="string")y=r1(e,l,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=Ot(31,l,t,o),e.elementType=pe,e.lanes=h,e;case M:return hl(l.children,o,h,t);case Y:y=8,o|=24;break;case _:return e=Ot(12,l,t,o|2),e.elementType=_,e.lanes=h,e;case K:return e=Ot(13,l,t,o),e.elementType=K,e.lanes=h,e;case L:return e=Ot(19,l,t,o),e.elementType=L,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:y=10;break e;case q:y=9;break e;case F:y=11;break e;case $:y=14;break e;case ie:y=16,r=null;break e}y=29,l=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=Ot(y,l,t,o),t.elementType=e,t.type=r,t.lanes=h,t}function hl(e,t,l,r){return e=Ot(7,e,r,t),e.lanes=l,e}function Xu(e,t,l){return e=Ot(6,e,null,t),e.lanes=l,e}function Nf(e){var t=Ot(18,null,null,0);return t.stateNode=e,t}function Zu(e,t,l){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _f=new WeakMap;function Xt(e,t){if(typeof e=="object"&&e!==null){var l=_f.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ra(t)},_f.set(e,t),t)}return{value:e,source:t,stack:Ra(t)}}var Xl=[],Zl=0,tr=null,Hi=0,Zt=[],Ft=0,Ln=null,an=1,rn="";function xn(e,t){Xl[Zl++]=Hi,Xl[Zl++]=tr,tr=e,Hi=t}function Mf(e,t,l){Zt[Ft++]=an,Zt[Ft++]=rn,Zt[Ft++]=Ln,Ln=e;var r=an;e=rn;var o=32-Ve(r)-1;r&=~(1<<o),l+=1;var h=32-Ve(t)+o;if(30<h){var y=o-o%5;h=(r&(1<<y)-1).toString(32),r>>=y,o-=y,an=1<<32-Ve(t)+o|l<<o|r,rn=h+e}else an=1<<h|l<<o|r,rn=e}function Fu(e){e.return!==null&&(xn(e,1),Mf(e,1,0))}function Ku(e){for(;e===tr;)tr=Xl[--Zl],Xl[Zl]=null,Hi=Xl[--Zl],Xl[Zl]=null;for(;e===Ln;)Ln=Zt[--Ft],Zt[Ft]=null,rn=Zt[--Ft],Zt[Ft]=null,an=Zt[--Ft],Zt[Ft]=null}function jf(e,t){Zt[Ft++]=an,Zt[Ft++]=rn,Zt[Ft++]=Ln,an=t.id,rn=t.overflow,Ln=e}var ct=null,Ze=null,Ne=!1,Bn=null,Kt=!1,Ju=Error(u(519));function Un(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qi(Xt(t,e)),Ju}function Of(e){var t=e.stateNode,l=e.type,r=e.memoizedProps;switch(t[ot]=e,t[zt]=r,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<sa.length;l++)Ee(sa[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),Xc(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),Fc(t,r.value,r.defaultValue,r.children)}l=r.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||r.suppressHydrationWarning===!0||Id(t.textContent,l)?(r.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),r.onScroll!=null&&Ee("scroll",t),r.onScrollEnd!=null&&Ee("scrollend",t),r.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||Un(e,!0)}function Df(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Kt=!1;return;case 27:case 3:Kt=!0;return;default:ct=ct.return}}function Fl(e){if(e!==ct)return!1;if(!Ne)return Df(e),Ne=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||mo(e.type,e.memoizedProps)),l=!l),l&&Ze&&Un(e),Df(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=am(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=am(e)}else t===27?(t=Ze,Wn(e.type)?(e=bo,bo=null,Ze=e):Ze=t):Ze=ct?It(e.stateNode.nextSibling):null;return!0}function dl(){Ze=ct=null,Ne=!1}function Iu(){var e=Bn;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),Bn=null),e}function qi(e){Bn===null?Bn=[e]:Bn.push(e)}var $u=T(null),ml=null,bn=null;function Hn(e,t,l){k($u,t._currentValue),t._currentValue=l}function vn(e){e._currentValue=$u.current,G($u)}function Wu(e,t,l){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===l)break;e=e.return}}function Pu(e,t,l,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var h=o.dependencies;if(h!==null){var y=o.child;h=h.firstContext;e:for(;h!==null;){var z=h;h=o;for(var C=0;C<t.length;C++)if(z.context===t[C]){h.lanes|=l,z=h.alternate,z!==null&&(z.lanes|=l),Wu(h.return,l,e),r||(y=null);break e}h=z.next}}else if(o.tag===18){if(y=o.return,y===null)throw Error(u(341));y.lanes|=l,h=y.alternate,h!==null&&(h.lanes|=l),Wu(y,l,e),y=null}else y=o.child;if(y!==null)y.return=o;else for(y=o;y!==null;){if(y===e){y=null;break}if(o=y.sibling,o!==null){o.return=y.return,y=o;break}y=y.return}o=y}}function Kl(e,t,l,r){e=null;for(var o=t,h=!1;o!==null;){if(!h){if((o.flags&524288)!==0)h=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var y=o.alternate;if(y===null)throw Error(u(387));if(y=y.memoizedProps,y!==null){var z=o.type;jt(o.pendingProps.value,y.value)||(e!==null?e.push(z):e=[z])}}else if(o===we.current){if(y=o.alternate,y===null)throw Error(u(387));y.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(da):e=[da])}o=o.return}e!==null&&Pu(t,e,l,r),t.flags|=262144}function nr(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pl(e){ml=e,bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return Rf(ml,e)}function lr(e,t){return ml===null&&pl(e),Rf(e,t)}function Rf(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 ny=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},ly=n.unstable_scheduleCallback,iy=n.unstable_NormalPriority,et={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function es(){return{controller:new ny,data:new Map,refCount:0}}function Yi(e){e.refCount--,e.refCount===0&&ly(iy,function(){e.controller.abort()})}var Vi=null,ts=0,Jl=0,Il=null;function ay(e,t){if(Vi===null){var l=Vi=[];ts=0,Jl=io(),Il={status:"pending",value:void 0,then:function(r){l.push(r)}}}return ts++,t.then(Lf,Lf),t}function Lf(){if(--ts===0&&Vi!==null){Il!==null&&(Il.status="fulfilled");var e=Vi;Vi=null,Jl=0,Il=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ry(e,t){var l=[],r={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),r}var Bf=R.S;R.S=function(e,t){vd=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ay(e,t),Bf!==null&&Bf(e,t)};var gl=T(null);function ns(){var e=gl.current;return e!==null?e:Ge.pooledCache}function ir(e,t){t===null?k(gl,gl.current):k(gl,t.pool)}function Uf(){var e=ns();return e===null?null:{parent:et._currentValue,pool:e}}var $l=Error(u(460)),ls=Error(u(474)),ar=Error(u(542)),rr={then:function(){}};function Hf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qf(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=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vf(e),e}throw xl=t,$l}}function yl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(xl=l,$l):l}}var xl=null;function Yf(){if(xl===null)throw Error(u(459));var e=xl;return xl=null,e}function Vf(e){if(e===$l||e===ar)throw Error(u(483))}var Wl=null,Gi=0;function ur(e){var t=Gi;return Gi+=1,Wl===null&&(Wl=[]),qf(Wl,e,t)}function Qi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function sr(e,t){throw t.$$typeof===b?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(N,A){if(e){var j=N.deletions;j===null?(N.deletions=[A],N.flags|=16):j.push(A)}}function l(N,A){if(!e)return null;for(;A!==null;)t(N,A),A=A.sibling;return null}function r(N){for(var A=new Map;N!==null;)N.key!==null?A.set(N.key,N):A.set(N.index,N),N=N.sibling;return A}function o(N,A){return N=yn(N,A),N.index=0,N.sibling=null,N}function h(N,A,j){return N.index=j,e?(j=N.alternate,j!==null?(j=j.index,j<A?(N.flags|=67108866,A):j):(N.flags|=67108866,A)):(N.flags|=1048576,A)}function y(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function z(N,A,j,X){return A===null||A.tag!==6?(A=Xu(j,N.mode,X),A.return=N,A):(A=o(A,j),A.return=N,A)}function C(N,A,j,X){var oe=j.type;return oe===M?V(N,A,j.props.children,X,j.key):A!==null&&(A.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===ie&&yl(oe)===A.type)?(A=o(A,j.props),Qi(A,j),A.return=N,A):(A=er(j.type,j.key,j.props,null,N.mode,X),Qi(A,j),A.return=N,A)}function O(N,A,j,X){return A===null||A.tag!==4||A.stateNode.containerInfo!==j.containerInfo||A.stateNode.implementation!==j.implementation?(A=Zu(j,N.mode,X),A.return=N,A):(A=o(A,j.children||[]),A.return=N,A)}function V(N,A,j,X,oe){return A===null||A.tag!==7?(A=hl(j,N.mode,X,oe),A.return=N,A):(A=o(A,j),A.return=N,A)}function Z(N,A,j){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Xu(""+A,N.mode,j),A.return=N,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case v:return j=er(A.type,A.key,A.props,null,N.mode,j),Qi(j,A),j.return=N,j;case w:return A=Zu(A,N.mode,j),A.return=N,A;case ie:return A=yl(A),Z(N,A,j)}if(W(A)||ne(A))return A=hl(A,N.mode,j,null),A.return=N,A;if(typeof A.then=="function")return Z(N,ur(A),j);if(A.$$typeof===B)return Z(N,lr(N,A),j);sr(N,A)}return null}function D(N,A,j,X){var oe=A!==null?A.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return oe!==null?null:z(N,A,""+j,X);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case v:return j.key===oe?C(N,A,j,X):null;case w:return j.key===oe?O(N,A,j,X):null;case ie:return j=yl(j),D(N,A,j,X)}if(W(j)||ne(j))return oe!==null?null:V(N,A,j,X,null);if(typeof j.then=="function")return D(N,A,ur(j),X);if(j.$$typeof===B)return D(N,A,lr(N,j),X);sr(N,j)}return null}function H(N,A,j,X,oe){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return N=N.get(j)||null,z(A,N,""+X,oe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case v:return N=N.get(X.key===null?j:X.key)||null,C(A,N,X,oe);case w:return N=N.get(X.key===null?j:X.key)||null,O(A,N,X,oe);case ie:return X=yl(X),H(N,A,j,X,oe)}if(W(X)||ne(X))return N=N.get(j)||null,V(A,N,X,oe,null);if(typeof X.then=="function")return H(N,A,j,ur(X),oe);if(X.$$typeof===B)return H(N,A,j,lr(A,X),oe);sr(A,X)}return null}function le(N,A,j,X){for(var oe=null,je=null,re=A,xe=A=0,Ae=null;re!==null&&xe<j.length;xe++){re.index>xe?(Ae=re,re=null):Ae=re.sibling;var Oe=D(N,re,j[xe],X);if(Oe===null){re===null&&(re=Ae);break}e&&re&&Oe.alternate===null&&t(N,re),A=h(Oe,A,xe),je===null?oe=Oe:je.sibling=Oe,je=Oe,re=Ae}if(xe===j.length)return l(N,re),Ne&&xn(N,xe),oe;if(re===null){for(;xe<j.length;xe++)re=Z(N,j[xe],X),re!==null&&(A=h(re,A,xe),je===null?oe=re:je.sibling=re,je=re);return Ne&&xn(N,xe),oe}for(re=r(re);xe<j.length;xe++)Ae=H(re,N,xe,j[xe],X),Ae!==null&&(e&&Ae.alternate!==null&&re.delete(Ae.key===null?xe:Ae.key),A=h(Ae,A,xe),je===null?oe=Ae:je.sibling=Ae,je=Ae);return e&&re.forEach(function(ll){return t(N,ll)}),Ne&&xn(N,xe),oe}function he(N,A,j,X){if(j==null)throw Error(u(151));for(var oe=null,je=null,re=A,xe=A=0,Ae=null,Oe=j.next();re!==null&&!Oe.done;xe++,Oe=j.next()){re.index>xe?(Ae=re,re=null):Ae=re.sibling;var ll=D(N,re,Oe.value,X);if(ll===null){re===null&&(re=Ae);break}e&&re&&ll.alternate===null&&t(N,re),A=h(ll,A,xe),je===null?oe=ll:je.sibling=ll,je=ll,re=Ae}if(Oe.done)return l(N,re),Ne&&xn(N,xe),oe;if(re===null){for(;!Oe.done;xe++,Oe=j.next())Oe=Z(N,Oe.value,X),Oe!==null&&(A=h(Oe,A,xe),je===null?oe=Oe:je.sibling=Oe,je=Oe);return Ne&&xn(N,xe),oe}for(re=r(re);!Oe.done;xe++,Oe=j.next())Oe=H(re,N,xe,Oe.value,X),Oe!==null&&(e&&Oe.alternate!==null&&re.delete(Oe.key===null?xe:Oe.key),A=h(Oe,A,xe),je===null?oe=Oe:je.sibling=Oe,je=Oe);return e&&re.forEach(function(y1){return t(N,y1)}),Ne&&xn(N,xe),oe}function Ye(N,A,j,X){if(typeof j=="object"&&j!==null&&j.type===M&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case v:e:{for(var oe=j.key;A!==null;){if(A.key===oe){if(oe=j.type,oe===M){if(A.tag===7){l(N,A.sibling),X=o(A,j.props.children),X.return=N,N=X;break e}}else if(A.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===ie&&yl(oe)===A.type){l(N,A.sibling),X=o(A,j.props),Qi(X,j),X.return=N,N=X;break e}l(N,A);break}else t(N,A);A=A.sibling}j.type===M?(X=hl(j.props.children,N.mode,X,j.key),X.return=N,N=X):(X=er(j.type,j.key,j.props,null,N.mode,X),Qi(X,j),X.return=N,N=X)}return y(N);case w:e:{for(oe=j.key;A!==null;){if(A.key===oe)if(A.tag===4&&A.stateNode.containerInfo===j.containerInfo&&A.stateNode.implementation===j.implementation){l(N,A.sibling),X=o(A,j.children||[]),X.return=N,N=X;break e}else{l(N,A);break}else t(N,A);A=A.sibling}X=Zu(j,N.mode,X),X.return=N,N=X}return y(N);case ie:return j=yl(j),Ye(N,A,j,X)}if(W(j))return le(N,A,j,X);if(ne(j)){if(oe=ne(j),typeof oe!="function")throw Error(u(150));return j=oe.call(j),he(N,A,j,X)}if(typeof j.then=="function")return Ye(N,A,ur(j),X);if(j.$$typeof===B)return Ye(N,A,lr(N,j),X);sr(N,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,A!==null&&A.tag===6?(l(N,A.sibling),X=o(A,j),X.return=N,N=X):(l(N,A),X=Xu(j,N.mode,X),X.return=N,N=X),y(N)):l(N,A)}return function(N,A,j,X){try{Gi=0;var oe=Ye(N,A,j,X);return Wl=null,oe}catch(re){if(re===$l||re===ar)throw re;var je=Ot(29,re,null,N.mode);return je.lanes=X,je.return=N,je}finally{}}}var bl=Gf(!0),Qf=Gf(!1),qn=!1;function is(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function as(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Yn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,l){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(De&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Pa(e),Tf(e,null,l),t}return Wa(e,r,t,l),Pa(e)}function Xi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,Dc(e,l)}}function rs(e,t){var l=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,l===r)){var o=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var y={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?o=h=y:h=h.next=y,l=l.next}while(l!==null);h===null?o=h=t:h=h.next=t}else o=h=t;l={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:h,shared:r.shared,callbacks:r.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var us=!1;function Zi(){if(us){var e=Il;if(e!==null)throw e}}function Fi(e,t,l,r){us=!1;var o=e.updateQueue;qn=!1;var h=o.firstBaseUpdate,y=o.lastBaseUpdate,z=o.shared.pending;if(z!==null){o.shared.pending=null;var C=z,O=C.next;C.next=null,y===null?h=O:y.next=O,y=C;var V=e.alternate;V!==null&&(V=V.updateQueue,z=V.lastBaseUpdate,z!==y&&(z===null?V.firstBaseUpdate=O:z.next=O,V.lastBaseUpdate=C))}if(h!==null){var Z=o.baseState;y=0,V=O=C=null,z=h;do{var D=z.lane&-536870913,H=D!==z.lane;if(H?(Te&D)===D:(r&D)===D){D!==0&&D===Jl&&(us=!0),V!==null&&(V=V.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var le=e,he=z;D=t;var Ye=l;switch(he.tag){case 1:if(le=he.payload,typeof le=="function"){Z=le.call(Ye,Z,D);break e}Z=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=he.payload,D=typeof le=="function"?le.call(Ye,Z,D):le,D==null)break e;Z=g({},Z,D);break e;case 2:qn=!0}}D=z.callback,D!==null&&(e.flags|=64,H&&(e.flags|=8192),H=o.callbacks,H===null?o.callbacks=[D]:H.push(D))}else H={lane:D,tag:z.tag,payload:z.payload,callback:z.callback,next:null},V===null?(O=V=H,C=Z):V=V.next=H,y|=D;if(z=z.next,z===null){if(z=o.shared.pending,z===null)break;H=z,z=H.next,H.next=null,o.lastBaseUpdate=H,o.shared.pending=null}}while(!0);V===null&&(C=Z),o.baseState=C,o.firstBaseUpdate=O,o.lastBaseUpdate=V,h===null&&(o.shared.lanes=0),Fn|=y,e.lanes=y,e.memoizedState=Z}}function Xf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Zf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Xf(l[e],t)}var Pl=T(null),or=T(0);function Ff(e,t){e=Nn,k(or,e),k(Pl,t),Nn=e|t.baseLanes}function ss(){k(or,Nn),k(Pl,Pl.current)}function os(){Nn=or.current,G(Pl),G(or)}var Dt=T(null),Jt=null;function Gn(e){var t=e.alternate;k(We,We.current&1),k(Dt,e),Jt===null&&(t===null||Pl.current!==null||t.memoizedState!==null)&&(Jt=e)}function cs(e){k(We,We.current),k(Dt,e),Jt===null&&(Jt=e)}function Kf(e){e.tag===22?(k(We,We.current),k(Dt,e),Jt===null&&(Jt=e)):Qn()}function Qn(){k(We,We.current),k(Dt,Dt.current)}function Rt(e){G(Dt),Jt===e&&(Jt=null),G(We)}var We=T(0);function cr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||yo(l)||xo(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,He=null,tt=null,fr=!1,ei=!1,vl=!1,hr=0,Ki=0,ti=null,uy=0;function Ie(){throw Error(u(321))}function fs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!jt(e[l],t[l]))return!1;return!0}function hs(e,t,l,r,o,h){return Sn=h,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?Mh:Ts,vl=!1,h=l(r,o),vl=!1,ei&&(h=If(t,l,r,o)),Jf(e),h}function Jf(e){R.H=$i;var t=He!==null&&He.next!==null;if(Sn=0,tt=He=ye=null,fr=!1,Ki=0,ti=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&nr(e)&&(nt=!0))}function If(e,t,l,r){ye=e;var o=0;do{if(ei&&(ti=null),Ki=0,ei=!1,25<=o)throw Error(u(301));if(o+=1,tt=He=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}R.H=jh,h=t(l,r)}while(ei);return h}function sy(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?Ji(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(ye.flags|=1024),t}function ds(){var e=hr!==0;return hr=0,e}function ms(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ps(e){if(fr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fr=!1}Sn=0,tt=He=ye=null,ei=!1,Ki=hr=0,ti=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(He===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=tt===null?ye.memoizedState:tt.next;if(t!==null)tt=t,He=e;else{if(e===null)throw ye.alternate===null?Error(u(467)):Error(u(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},tt===null?ye.memoizedState=tt=e:tt=tt.next=e}return tt}function dr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ji(e){var t=Ki;return Ki+=1,ti===null&&(ti=[]),e=qf(ti,e,t),t=ye,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?Mh:Ts),e}function mr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ji(e);if(e.$$typeof===B)return ft(e)}throw Error(u(438,String(e)))}function gs(e){var t=null,l=ye.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var r=ye.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=dr(),ye.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),r=0;r<e;r++)l[r]=U;return t.index++,l}function zn(e,t){return typeof t=="function"?t(e):t}function pr(e){var t=Pe();return ys(t,He,e)}function ys(e,t,l){var r=e.queue;if(r===null)throw Error(u(311));r.lastRenderedReducer=l;var o=e.baseQueue,h=r.pending;if(h!==null){if(o!==null){var y=o.next;o.next=h.next,h.next=y}t.baseQueue=o=h,r.pending=null}if(h=e.baseState,o===null)e.memoizedState=h;else{t=o.next;var z=y=null,C=null,O=t,V=!1;do{var Z=O.lane&-536870913;if(Z!==O.lane?(Te&Z)===Z:(Sn&Z)===Z){var D=O.revertLane;if(D===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Z===Jl&&(V=!0);else if((Sn&D)===D){O=O.next,D===Jl&&(V=!0);continue}else Z={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},C===null?(z=C=Z,y=h):C=C.next=Z,ye.lanes|=D,Fn|=D;Z=O.action,vl&&l(h,Z),h=O.hasEagerState?O.eagerState:l(h,Z)}else D={lane:Z,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},C===null?(z=C=D,y=h):C=C.next=D,ye.lanes|=Z,Fn|=Z;O=O.next}while(O!==null&&O!==t);if(C===null?y=h:C.next=z,!jt(h,e.memoizedState)&&(nt=!0,V&&(l=Il,l!==null)))throw l;e.memoizedState=h,e.baseState=y,e.baseQueue=C,r.lastRenderedState=h}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function xs(e){var t=Pe(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var r=l.dispatch,o=l.pending,h=t.memoizedState;if(o!==null){l.pending=null;var y=o=o.next;do h=e(h,y.action),y=y.next;while(y!==o);jt(h,t.memoizedState)||(nt=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),l.lastRenderedState=h}return[h,r]}function $f(e,t,l){var r=ye,o=Pe(),h=Ne;if(h){if(l===void 0)throw Error(u(407));l=l()}else l=t();var y=!jt((He||o).memoizedState,l);if(y&&(o.memoizedState=l,nt=!0),o=o.queue,Ss(eh.bind(null,r,o,e),[e]),o.getSnapshot!==t||y||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,ni(9,{destroy:void 0},Pf.bind(null,r,o,l,t),null),Ge===null)throw Error(u(349));h||(Sn&127)!==0||Wf(r,t,l)}return l}function Wf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ye.updateQueue,t===null?(t=dr(),ye.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Pf(e,t,l,r){t.value=l,t.getSnapshot=r,th(t)&&nh(e)}function eh(e,t,l){return l(function(){th(t)&&nh(e)})}function th(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!jt(e,l)}catch{return!0}}function nh(e){var t=fl(e,2);t!==null&&At(t,e,2)}function bs(e){var t=bt();if(typeof e=="function"){var l=e;if(e=l(),vl){St(!0);try{l()}finally{St(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:e},t}function lh(e,t,l,r){return e.baseState=l,ys(e,He,typeof r=="function"?r:zn)}function oy(e,t,l,r,o){if(xr(e))throw Error(u(485));if(e=t.action,e!==null){var h={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){h.listeners.push(y)}};R.T!==null?l(!0):h.isTransition=!1,r(h),l=t.pending,l===null?(h.next=t.pending=h,ih(t,h)):(h.next=l.next,t.pending=l.next=h)}}function ih(e,t){var l=t.action,r=t.payload,o=e.state;if(t.isTransition){var h=R.T,y={};R.T=y;try{var z=l(o,r),C=R.S;C!==null&&C(y,z),ah(e,t,z)}catch(O){vs(e,t,O)}finally{h!==null&&y.types!==null&&(h.types=y.types),R.T=h}}else try{h=l(o,r),ah(e,t,h)}catch(O){vs(e,t,O)}}function ah(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(r){rh(e,t,r)},function(r){return vs(e,t,r)}):rh(e,t,l)}function rh(e,t,l){t.status="fulfilled",t.value=l,uh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ih(e,l)))}function vs(e,t,l){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=l,uh(t),t=t.next;while(t!==r)}e.action=null}function uh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sh(e,t){return t}function oh(e,t){if(Ne){var l=Ge.formState;if(l!==null){e:{var r=ye;if(Ne){if(Ze){t:{for(var o=Ze,h=Kt;o.nodeType!==8;){if(!h){o=null;break t}if(o=It(o.nextSibling),o===null){o=null;break t}}h=o.data,o=h==="F!"||h==="F"?o:null}if(o){Ze=It(o.nextSibling),r=o.data==="F!";break e}}Un(r)}r=!1}r&&(t=l[0])}}return l=bt(),l.memoizedState=l.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sh,lastRenderedState:t},l.queue=r,l=Ah.bind(null,ye,r),r.dispatch=l,r=bs(!1),h=ws.bind(null,ye,!1,r.queue),r=bt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,l=oy.bind(null,ye,o,h,l),o.dispatch=l,r.memoizedState=e,[t,l,!1]}function ch(e){var t=Pe();return fh(t,He,e)}function fh(e,t,l){if(t=ys(e,t,sh)[0],e=pr(zn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ji(t)}catch(y){throw y===$l?ar:y}else r=t;t=Pe();var o=t.queue,h=o.dispatch;return l!==t.memoizedState&&(ye.flags|=2048,ni(9,{destroy:void 0},cy.bind(null,o,l),null)),[r,h,e]}function cy(e,t){e.action=t}function hh(e){var t=Pe(),l=He;if(l!==null)return fh(t,l,e);Pe(),t=t.memoizedState,l=Pe();var r=l.queue.dispatch;return l.memoizedState=e,[t,r,!1]}function ni(e,t,l,r){return e={tag:e,create:l,deps:r,inst:t,next:null},t=ye.updateQueue,t===null&&(t=dr(),ye.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(r=l.next,l.next=e,e.next=r,t.lastEffect=e),e}function dh(){return Pe().memoizedState}function gr(e,t,l,r){var o=bt();ye.flags|=e,o.memoizedState=ni(1|t,{destroy:void 0},l,r===void 0?null:r)}function yr(e,t,l,r){var o=Pe();r=r===void 0?null:r;var h=o.memoizedState.inst;He!==null&&r!==null&&fs(r,He.memoizedState.deps)?o.memoizedState=ni(t,h,l,r):(ye.flags|=e,o.memoizedState=ni(1|t,h,l,r))}function mh(e,t){gr(8390656,8,e,t)}function Ss(e,t){yr(2048,8,e,t)}function fy(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=dr(),ye.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ph(e){var t=Pe().memoizedState;return fy({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function gh(e,t){return yr(4,2,e,t)}function yh(e,t){return yr(4,4,e,t)}function xh(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 bh(e,t,l){l=l!=null?l.concat([e]):null,yr(4,4,xh.bind(null,t,e),l)}function zs(){}function vh(e,t){var l=Pe();t=t===void 0?null:t;var r=l.memoizedState;return t!==null&&fs(t,r[1])?r[0]:(l.memoizedState=[e,t],e)}function Sh(e,t){var l=Pe();t=t===void 0?null:t;var r=l.memoizedState;if(t!==null&&fs(t,r[1]))return r[0];if(r=e(),vl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[r,t],r}function ks(e,t,l){return l===void 0||(Sn&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=zd(),ye.lanes|=e,Fn|=e,l)}function zh(e,t,l,r){return jt(l,t)?l:Pl.current!==null?(e=ks(e,l,r),jt(e,t)||(nt=!0),e):(Sn&42)===0||(Sn&1073741824)!==0&&(Te&261930)===0?(nt=!0,e.memoizedState=l):(e=zd(),ye.lanes|=e,Fn|=e,t)}function kh(e,t,l,r,o){var h=J.p;J.p=h!==0&&8>h?h:8;var y=R.T,z={};R.T=z,ws(e,!1,t,l);try{var C=o(),O=R.S;if(O!==null&&O(z,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var V=ry(C,r);Ii(e,t,V,Ut(e))}else Ii(e,t,r,Ut(e))}catch(Z){Ii(e,t,{then:function(){},status:"rejected",reason:Z},Ut())}finally{J.p=h,y!==null&&z.types!==null&&(y.types=z.types),R.T=y}}function hy(){}function Es(e,t,l,r){if(e.tag!==5)throw Error(u(476));var o=Eh(e).queue;kh(e,o,t,ue,l===null?hy:function(){return Ch(e),l(r)})}function Eh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:ue},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ch(e){var t=Eh(e);t.next===null&&(t=e.alternate.memoizedState),Ii(e,t.next.queue,{},Ut())}function Cs(){return ft(da)}function wh(){return Pe().memoizedState}function Th(){return Pe().memoizedState}function dy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ut();e=Yn(l);var r=Vn(t,e,l);r!==null&&(At(r,t,l),Xi(r,t,l)),t={cache:es()},e.payload=t;return}t=t.return}}function my(e,t,l){var r=Ut();l={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},xr(e)?Nh(t,l):(l=Gu(e,t,l,r),l!==null&&(At(l,e,r),_h(l,t,r)))}function Ah(e,t,l){var r=Ut();Ii(e,t,l,r)}function Ii(e,t,l,r){var o={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(xr(e))Nh(t,o);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var y=t.lastRenderedState,z=h(y,l);if(o.hasEagerState=!0,o.eagerState=z,jt(z,y))return Wa(e,t,o,0),Ge===null&&$a(),!1}catch{}finally{}if(l=Gu(e,t,o,r),l!==null)return At(l,e,r),_h(l,t,r),!0}return!1}function ws(e,t,l,r){if(r={lane:2,revertLane:io(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},xr(e)){if(t)throw Error(u(479))}else t=Gu(e,l,r,2),t!==null&&At(t,e,2)}function xr(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Nh(e,t){ei=fr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function _h(e,t,l){if((l&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,Dc(e,l)}}var $i={readContext:ft,use:mr,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};$i.useEffectEvent=Ie;var Mh={readContext:ft,use:mr,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:mh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,gr(4194308,4,xh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return gr(4194308,4,e,t)},useInsertionEffect:function(e,t){gr(4,2,e,t)},useMemo:function(e,t){var l=bt();t=t===void 0?null:t;var r=e();if(vl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[r,t],r},useReducer:function(e,t,l){var r=bt();if(l!==void 0){var o=l(t);if(vl){St(!0);try{l(t)}finally{St(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=my.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,l=Ah.bind(null,ye,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:zs,useDeferredValue:function(e,t){var l=bt();return ks(l,e,t)},useTransition:function(){var e=bs(!1);return e=kh.bind(null,ye,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var r=ye,o=bt();if(Ne){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Ge===null)throw Error(u(349));(Te&127)!==0||Wf(r,t,l)}o.memoizedState=l;var h={value:l,getSnapshot:t};return o.queue=h,mh(eh.bind(null,r,h,e),[e]),r.flags|=2048,ni(9,{destroy:void 0},Pf.bind(null,r,h,l,t),null),l},useId:function(){var e=bt(),t=Ge.identifierPrefix;if(Ne){var l=rn,r=an;l=(r&~(1<<32-Ve(r)-1)).toString(32)+l,t="_"+t+"R_"+l,l=hr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=uy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Cs,useFormState:oh,useActionState:oh,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=ws.bind(null,ye,!0,l),l.dispatch=t,[e,t]},useMemoCache:gs,useCacheRefresh:function(){return bt().memoizedState=dy.bind(null,ye)},useEffectEvent:function(e){var t=bt(),l={impl:e};return t.memoizedState=l,function(){if((De&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Ts={readContext:ft,use:mr,useCallback:vh,useContext:ft,useEffect:Ss,useImperativeHandle:bh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:Sh,useReducer:pr,useRef:dh,useState:function(){return pr(zn)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Pe();return zh(l,He.memoizedState,e,t)},useTransition:function(){var e=pr(zn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:$f,useId:wh,useHostTransitionStatus:Cs,useFormState:ch,useActionState:ch,useOptimistic:function(e,t){var l=Pe();return lh(l,He,e,t)},useMemoCache:gs,useCacheRefresh:Th};Ts.useEffectEvent=ph;var jh={readContext:ft,use:mr,useCallback:vh,useContext:ft,useEffect:Ss,useImperativeHandle:bh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:Sh,useReducer:xs,useRef:dh,useState:function(){return xs(zn)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Pe();return He===null?ks(l,e,t):zh(l,He.memoizedState,e,t)},useTransition:function(){var e=xs(zn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:$f,useId:wh,useHostTransitionStatus:Cs,useFormState:hh,useActionState:hh,useOptimistic:function(e,t){var l=Pe();return He!==null?lh(l,He,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:gs,useCacheRefresh:Th};jh.useEffectEvent=ph;function As(e,t,l,r){t=e.memoizedState,l=l(r,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ns={enqueueSetState:function(e,t,l){e=e._reactInternals;var r=Ut(),o=Yn(r);o.payload=t,l!=null&&(o.callback=l),t=Vn(e,o,r),t!==null&&(At(t,e,r),Xi(t,e,r))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var r=Ut(),o=Yn(r);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=Vn(e,o,r),t!==null&&(At(t,e,r),Xi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ut(),r=Yn(l);r.tag=2,t!=null&&(r.callback=t),t=Vn(e,r,l),t!==null&&(At(t,e,l),Xi(t,e,l))}};function Oh(e,t,l,r,o,h,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,h,y):t.prototype&&t.prototype.isPureReactComponent?!Bi(l,r)||!Bi(o,h):!0}function Dh(e,t,l,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,r),t.state!==e&&Ns.enqueueReplaceState(t,t.state,null)}function Sl(e,t){var l=t;if("ref"in t){l={};for(var r in t)r!=="ref"&&(l[r]=t[r])}if(e=e.defaultProps){l===t&&(l=g({},l));for(var o in e)l[o]===void 0&&(l[o]=e[o])}return l}function Rh(e){Ia(e)}function Lh(e){console.error(e)}function Bh(e){Ia(e)}function br(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Uh(e,t,l){try{var r=e.onCaughtError;r(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function _s(e,t,l){return l=Yn(l),l.tag=3,l.payload={element:null},l.callback=function(){br(e,t)},l}function Hh(e){return e=Yn(e),e.tag=3,e}function qh(e,t,l,r){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var h=r.value;e.payload=function(){return o(h)},e.callback=function(){Uh(t,l,r)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Uh(t,l,r),typeof o!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var z=r.stack;this.componentDidCatch(r.value,{componentStack:z!==null?z:""})})}function py(e,t,l,r,o){if(l.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=l.alternate,t!==null&&Kl(t,l,o,!0),l=Dt.current,l!==null){switch(l.tag){case 31:case 13:return Jt===null?Mr():l.alternate===null&&$e===0&&($e=3),l.flags&=-257,l.flags|=65536,l.lanes=o,r===rr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([r]):t.add(r),to(e,r,o)),!1;case 22:return l.flags|=65536,r===rr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([r]):l.add(r)),to(e,r,o)),!1}throw Error(u(435,l.tag))}return to(e,r,o),Mr(),!1}if(Ne)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==Ju&&(e=Error(u(422),{cause:r}),qi(Xt(e,l)))):(r!==Ju&&(t=Error(u(423),{cause:r}),qi(Xt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Xt(r,l),o=_s(e.stateNode,r,o),rs(e,o),$e!==4&&($e=2)),!1;var h=Error(u(520),{cause:r});if(h=Xt(h,l),aa===null?aa=[h]:aa.push(h),$e!==4&&($e=2),t===null)return!0;r=Xt(r,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=_s(l.stateNode,r,e),rs(l,e),!1;case 1:if(t=l.type,h=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Kn===null||!Kn.has(h))))return l.flags|=65536,o&=-o,l.lanes|=o,o=Hh(o),qh(o,e,l,r),rs(l,o),!1}l=l.return}while(l!==null);return!1}var Ms=Error(u(461)),nt=!1;function ht(e,t,l,r){t.child=e===null?Qf(t,null,l,r):bl(t,e.child,l,r)}function Yh(e,t,l,r,o){l=l.render;var h=t.ref;if("ref"in r){var y={};for(var z in r)z!=="ref"&&(y[z]=r[z])}else y=r;return pl(t),r=hs(e,t,l,y,h,o),z=ds(),e!==null&&!nt?(ms(e,t,o),kn(e,t,o)):(Ne&&z&&Fu(t),t.flags|=1,ht(e,t,r,o),t.child)}function Vh(e,t,l,r,o){if(e===null){var h=l.type;return typeof h=="function"&&!Qu(h)&&h.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=h,Gh(e,t,h,r,o)):(e=er(l.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!Hs(e,o)){var y=h.memoizedProps;if(l=l.compare,l=l!==null?l:Bi,l(y,r)&&e.ref===t.ref)return kn(e,t,o)}return t.flags|=1,e=yn(h,r),e.ref=t.ref,e.return=t,t.child=e}function Gh(e,t,l,r,o){if(e!==null){var h=e.memoizedProps;if(Bi(h,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=h,Hs(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,kn(e,t,o)}return js(e,t,l,r,o)}function Qh(e,t,l,r){var o=r.children,h=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~h}else r=0,t.child=null;return Xh(e,t,h,l,r)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ir(t,h!==null?h.cachePool:null),h!==null?Ff(t,h):ss(),Kf(t);else return r=t.lanes=536870912,Xh(e,t,h!==null?h.baseLanes|l:l,l,r)}else h!==null?(ir(t,h.cachePool),Ff(t,h),Qn(),t.memoizedState=null):(e!==null&&ir(t,null),ss(),Qn());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 Xh(e,t,l,r,o){var h=ns();return h=h===null?null:{parent:et._currentValue,pool:h},t.memoizedState={baseLanes:l,cachePool:h},e!==null&&ir(t,null),ss(),Kf(t),e!==null&&Kl(e,t,r,!0),t.childLanes=o,null}function vr(e,t){return t=zr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zh(e,t,l){return bl(t,e.child,null,l),e=vr(t,t.pendingProps),e.flags|=2,Rt(t),t.memoizedState=null,e}function gy(e,t,l){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(r.mode==="hidden")return e=vr(t,r),t.lanes=536870912,Wi(null,e);if(cs(t),(e=Ze)?(e=im(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,ct=t,Ze=null)):e=null,e===null)throw Un(t);return t.lanes=536870912,null}return vr(t,r)}var h=e.memoizedState;if(h!==null){var y=h.dehydrated;if(cs(t),o)if(t.flags&256)t.flags&=-257,t=Zh(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||Kl(e,t,l,!1),o=(l&e.childLanes)!==0,nt||o){if(r=Ge,r!==null&&(y=Rc(r,l),y!==0&&y!==h.retryLane))throw h.retryLane=y,fl(e,y),At(r,e,y),Ms;Mr(),t=Zh(e,t,l)}else e=h.treeContext,Ze=It(y.nextSibling),ct=t,Ne=!0,Bn=null,Kt=!1,e!==null&&jf(t,e),t=vr(t,r),t.flags|=4096;return t}return e=yn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Sr(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 js(e,t,l,r,o){return pl(t),l=hs(e,t,l,r,void 0,o),r=ds(),e!==null&&!nt?(ms(e,t,o),kn(e,t,o)):(Ne&&r&&Fu(t),t.flags|=1,ht(e,t,l,o),t.child)}function Fh(e,t,l,r,o,h){return pl(t),t.updateQueue=null,l=If(t,r,l,o),Jf(e),r=ds(),e!==null&&!nt?(ms(e,t,h),kn(e,t,h)):(Ne&&r&&Fu(t),t.flags|=1,ht(e,t,l,h),t.child)}function Kh(e,t,l,r,o){if(pl(t),t.stateNode===null){var h=Ql,y=l.contextType;typeof y=="object"&&y!==null&&(h=ft(y)),h=new l(r,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ns,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=r,h.state=t.memoizedState,h.refs={},is(t),y=l.contextType,h.context=typeof y=="object"&&y!==null?ft(y):Ql,h.state=t.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(As(t,l,y,r),h.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(y=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),y!==h.state&&Ns.enqueueReplaceState(h,h.state,null),Fi(t,r,h,o),Zi(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){h=t.stateNode;var z=t.memoizedProps,C=Sl(l,z);h.props=C;var O=h.context,V=l.contextType;y=Ql,typeof V=="object"&&V!==null&&(y=ft(V));var Z=l.getDerivedStateFromProps;V=typeof Z=="function"||typeof h.getSnapshotBeforeUpdate=="function",z=t.pendingProps!==z,V||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(z||O!==y)&&Dh(t,h,r,y),qn=!1;var D=t.memoizedState;h.state=D,Fi(t,r,h,o),Zi(),O=t.memoizedState,z||D!==O||qn?(typeof Z=="function"&&(As(t,l,Z,r),O=t.memoizedState),(C=qn||Oh(t,l,C,r,D,O,y))?(V||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=O),h.props=r,h.state=O,h.context=y,r=C):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{h=t.stateNode,as(e,t),y=t.memoizedProps,V=Sl(l,y),h.props=V,Z=t.pendingProps,D=h.context,O=l.contextType,C=Ql,typeof O=="object"&&O!==null&&(C=ft(O)),z=l.getDerivedStateFromProps,(O=typeof z=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==Z||D!==C)&&Dh(t,h,r,C),qn=!1,D=t.memoizedState,h.state=D,Fi(t,r,h,o),Zi();var H=t.memoizedState;y!==Z||D!==H||qn||e!==null&&e.dependencies!==null&&nr(e.dependencies)?(typeof z=="function"&&(As(t,l,z,r),H=t.memoizedState),(V=qn||Oh(t,l,V,r,D,H,C)||e!==null&&e.dependencies!==null&&nr(e.dependencies))?(O||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(r,H,C),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(r,H,C)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=H),h.props=r,h.state=H,h.context=C,r=V):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),r=!1)}return h=r,Sr(e,t),r=(t.flags&128)!==0,h||r?(h=t.stateNode,l=r&&typeof l.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&r?(t.child=bl(t,e.child,null,o),t.child=bl(t,null,l,o)):ht(e,t,l,o),t.memoizedState=h.state,e=t.child):e=kn(e,t,o),e}function Jh(e,t,l,r){return dl(),t.flags|=256,ht(e,t,l,r),t.child}var Os={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ds(e){return{baseLanes:e,cachePool:Uf()}}function Rs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Bt),e}function Ih(e,t,l){var r=t.pendingProps,o=!1,h=(t.flags&128)!==0,y;if((y=h)||(y=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),y&&(o=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(o?Gn(t):Qn(),(e=Ze)?(e=im(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,ct=t,Ze=null)):e=null,e===null)throw Un(t);return xo(e)?t.lanes=32:t.lanes=536870912,null}var z=r.children;return r=r.fallback,o?(Qn(),o=t.mode,z=zr({mode:"hidden",children:z},o),r=hl(r,o,l,null),z.return=t,r.return=t,z.sibling=r,t.child=z,r=t.child,r.memoizedState=Ds(l),r.childLanes=Rs(e,y,l),t.memoizedState=Os,Wi(null,r)):(Gn(t),Ls(t,z))}var C=e.memoizedState;if(C!==null&&(z=C.dehydrated,z!==null)){if(h)t.flags&256?(Gn(t),t.flags&=-257,t=Bs(e,t,l)):t.memoizedState!==null?(Qn(),t.child=e.child,t.flags|=128,t=null):(Qn(),z=r.fallback,o=t.mode,r=zr({mode:"visible",children:r.children},o),z=hl(z,o,l,null),z.flags|=2,r.return=t,z.return=t,r.sibling=z,t.child=r,bl(t,e.child,null,l),r=t.child,r.memoizedState=Ds(l),r.childLanes=Rs(e,y,l),t.memoizedState=Os,t=Wi(null,r));else if(Gn(t),xo(z)){if(y=z.nextSibling&&z.nextSibling.dataset,y)var O=y.dgst;y=O,r=Error(u(419)),r.stack="",r.digest=y,qi({value:r,source:null,stack:null}),t=Bs(e,t,l)}else if(nt||Kl(e,t,l,!1),y=(l&e.childLanes)!==0,nt||y){if(y=Ge,y!==null&&(r=Rc(y,l),r!==0&&r!==C.retryLane))throw C.retryLane=r,fl(e,r),At(y,e,r),Ms;yo(z)||Mr(),t=Bs(e,t,l)}else yo(z)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Ze=It(z.nextSibling),ct=t,Ne=!0,Bn=null,Kt=!1,e!==null&&jf(t,e),t=Ls(t,r.children),t.flags|=4096);return t}return o?(Qn(),z=r.fallback,o=t.mode,C=e.child,O=C.sibling,r=yn(C,{mode:"hidden",children:r.children}),r.subtreeFlags=C.subtreeFlags&65011712,O!==null?z=yn(O,z):(z=hl(z,o,l,null),z.flags|=2),z.return=t,r.return=t,r.sibling=z,t.child=r,Wi(null,r),r=t.child,z=e.child.memoizedState,z===null?z=Ds(l):(o=z.cachePool,o!==null?(C=et._currentValue,o=o.parent!==C?{parent:C,pool:C}:o):o=Uf(),z={baseLanes:z.baseLanes|l,cachePool:o}),r.memoizedState=z,r.childLanes=Rs(e,y,l),t.memoizedState=Os,Wi(e.child,r)):(Gn(t),l=e.child,e=l.sibling,l=yn(l,{mode:"visible",children:r.children}),l.return=t,l.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=l,t.memoizedState=null,l)}function Ls(e,t){return t=zr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function zr(e,t){return e=Ot(22,e,null,t),e.lanes=0,e}function Bs(e,t,l){return bl(t,e.child,null,l),e=Ls(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $h(e,t,l){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wu(e.return,t,l)}function Us(e,t,l,r,o,h){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:l,tailMode:o,treeForkCount:h}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=r,y.tail=l,y.tailMode=o,y.treeForkCount=h)}function Wh(e,t,l){var r=t.pendingProps,o=r.revealOrder,h=r.tail;r=r.children;var y=We.current,z=(y&2)!==0;if(z?(y=y&1|2,t.flags|=128):y&=1,k(We,y),ht(e,t,r,l),r=Ne?Hi:0,!z&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$h(e,l,t);else if(e.tag===19)$h(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&&cr(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Us(t,!1,o,l,h,r);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&cr(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Us(t,!0,l,null,h,r);break;case"together":Us(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function kn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Kl(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 Hs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&nr(e)))}function yy(e,t,l){switch(t.tag){case 3:Ke(t,t.stateNode.containerInfo),Hn(t,et,e.memoizedState.cache),dl();break;case 27:case 5:Yt(t);break;case 4:Ke(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,cs(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Gn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Ih(e,t,l):(Gn(t),e=kn(e,t,l),e!==null?e.sibling:null);Gn(t);break;case 19:var o=(e.flags&128)!==0;if(r=(l&t.childLanes)!==0,r||(Kl(e,t,l,!1),r=(l&t.childLanes)!==0),o){if(r)return Wh(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),r)break;return null;case 22:return t.lanes=0,Qh(e,t,l,t.pendingProps);case 24:Hn(t,et,e.memoizedState.cache)}return kn(e,t,l)}function Ph(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Hs(e,l)&&(t.flags&128)===0)return nt=!1,yy(e,t,l);nt=(e.flags&131072)!==0}else nt=!1,Ne&&(t.flags&1048576)!==0&&Mf(t,Hi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=yl(t.elementType),t.type=e,typeof e=="function")Qu(e)?(r=Sl(e,r),t.tag=1,t=Kh(null,t,e,r,l)):(t.tag=0,t=js(null,t,e,r,l));else{if(e!=null){var o=e.$$typeof;if(o===F){t.tag=11,t=Yh(null,t,e,r,l);break e}else if(o===$){t.tag=14,t=Vh(null,t,e,r,l);break e}}throw t=ae(e)||e,Error(u(306,t,""))}}return t;case 0:return js(e,t,t.type,t.pendingProps,l);case 1:return r=t.type,o=Sl(r,t.pendingProps),Kh(e,t,r,o,l);case 3:e:{if(Ke(t,t.stateNode.containerInfo),e===null)throw Error(u(387));r=t.pendingProps;var h=t.memoizedState;o=h.element,as(e,t),Fi(t,r,null,l);var y=t.memoizedState;if(r=y.cache,Hn(t,et,r),r!==h.cache&&Pu(t,[et],l,!0),Zi(),r=y.element,h.isDehydrated)if(h={element:r,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=Jh(e,t,r,l);break e}else if(r!==o){o=Xt(Error(u(424)),t),qi(o),t=Jh(e,t,r,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(Ze=It(e.firstChild),ct=t,Ne=!0,Bn=null,Kt=!0,l=Qf(t,null,r,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(dl(),r===o){t=kn(e,t,l);break e}ht(e,t,r,l)}t=t.child}return t;case 26:return Sr(e,t),e===null?(l=cm(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ne||(l=t.type,e=t.pendingProps,r=Ur(se.current).createElement(l),r[ot]=t,r[zt]=e,dt(r,l,e),ut(r),t.stateNode=r):t.memoizedState=cm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Yt(t),e===null&&Ne&&(r=t.stateNode=um(t.type,t.pendingProps,se.current),ct=t,Kt=!0,o=Ze,Wn(t.type)?(bo=o,Ze=It(r.firstChild)):Ze=o),ht(e,t,t.pendingProps.children,l),Sr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((o=r=Ze)&&(r=Fy(r,t.type,t.pendingProps,Kt),r!==null?(t.stateNode=r,ct=t,Ze=It(r.firstChild),Kt=!1,o=!0):o=!1),o||Un(t)),Yt(t),o=t.type,h=t.pendingProps,y=e!==null?e.memoizedProps:null,r=h.children,mo(o,h)?r=null:y!==null&&mo(o,y)&&(t.flags|=32),t.memoizedState!==null&&(o=hs(e,t,sy,null,null,l),da._currentValue=o),Sr(e,t),ht(e,t,r,l),t.child;case 6:return e===null&&Ne&&((e=l=Ze)&&(l=Ky(l,t.pendingProps,Kt),l!==null?(t.stateNode=l,ct=t,Ze=null,e=!0):e=!1),e||Un(t)),null;case 13:return Ih(e,t,l);case 4:return Ke(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bl(t,null,r,l):ht(e,t,r,l),t.child;case 11:return Yh(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 r=t.pendingProps,Hn(t,t.type,r.value),ht(e,t,r.children,l),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,pl(t),o=ft(o),r=r(o),t.flags|=1,ht(e,t,r,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 Wh(e,t,l);case 31:return gy(e,t,l);case 22:return Qh(e,t,l,t.pendingProps);case 24:return pl(t),r=ft(et),e===null?(o=ns(),o===null&&(o=Ge,h=es(),o.pooledCache=h,h.refCount++,h!==null&&(o.pooledCacheLanes|=l),o=h),t.memoizedState={parent:r,cache:o},is(t),Hn(t,et,o)):((e.lanes&l)!==0&&(as(e,t),Fi(t,null,null,l),Zi()),o=e.memoizedState,h=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Hn(t,et,r)):(r=h.cache,Hn(t,et,r),r!==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 En(e){e.flags|=4}function qs(e,t,l,r,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(wd())e.flags|=8192;else throw xl=rr,ls}else e.flags&=-16777217}function ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!pm(t))if(wd())e.flags|=8192;else throw xl=rr,ls}function kr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jc():536870912,e.lanes|=t,ri|=t)}function Pi(e,t){if(!Ne)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 r=null;l!==null;)l.alternate!==null&&(r=l),l=l.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,r=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=l,t}function xy(e,t,l){var r=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 Fe(t),null;case 1:return Fe(t),null;case 3:return l=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),vn(et),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Fl(t)?En(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Iu())),Fe(t),null;case 26:var o=t.type,h=t.memoizedState;return e===null?(En(t),h!==null?(Fe(t),ed(t,h)):(Fe(t),qs(t,o,null,r,l))):h?h!==e.memoizedState?(En(t),Fe(t),ed(t,h)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&En(t),Fe(t),qs(t,o,e,r,l)),null;case 27:if(fn(t),l=se.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&En(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return Fe(t),null}e=ee.current,Fl(t)?Of(t):(e=um(o,r,l),t.stateNode=e,En(t))}return Fe(t),null;case 5:if(fn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&En(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return Fe(t),null}if(h=ee.current,Fl(t))Of(t);else{var y=Ur(se.current);switch(h){case 1:h=y.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:h=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":h=y.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":h=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":h=y.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof r.is=="string"?y.createElement("select",{is:r.is}):y.createElement("select"),r.multiple?h.multiple=!0:r.size&&(h.size=r.size);break;default:h=typeof r.is=="string"?y.createElement(o,{is:r.is}):y.createElement(o)}}h[ot]=t,h[zt]=r;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)h.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=h;e:switch(dt(h,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&En(t)}}return Fe(t),qs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&En(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=se.current,Fl(t)){if(e=t.stateNode,l=t.memoizedProps,r=null,o=ct,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ot]=t,e=!!(e.nodeValue===l||r!==null&&r.suppressHydrationWarning===!0||Id(e.nodeValue,l)),e||Un(t,!0)}else e=Ur(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Fe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(r=Fl(t),l!==null){if(e===null){if(!r)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ot]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(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 Fe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Fl(t),r!==null&&r.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[ot]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(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=r!==null,e=e!==null&&e.memoizedState!==null,l&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),h=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(h=r.memoizedState.cachePool.pool),h!==o&&(r.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),kr(t,t.updateQueue),Fe(t),null);case 4:return Ue(),e===null&&so(t.stateNode.containerInfo),Fe(t),null;case 10:return vn(t.type),Fe(t),null;case 19:if(G(We),r=t.memoizedState,r===null)return Fe(t),null;if(o=(t.flags&128)!==0,h=r.rendering,h===null)if(o)Pi(r,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=cr(e),h!==null){for(t.flags|=128,Pi(r,!1),e=h.updateQueue,t.updateQueue=e,kr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Af(l,e),l=l.sibling;return k(We,We.current&1|2),Ne&&xn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&yt()>Ar&&(t.flags|=128,o=!0,Pi(r,!1),t.lanes=4194304)}else{if(!o)if(e=cr(h),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,kr(t,e),Pi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!h.alternate&&!Ne)return Fe(t),null}else 2*yt()-r.renderingStartTime>Ar&&l!==536870912&&(t.flags|=128,o=!0,Pi(r,!1),t.lanes=4194304);r.isBackwards?(h.sibling=t.child,t.child=h):(e=r.last,e!==null?e.sibling=h:t.child=h,r.last=h)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=yt(),e.sibling=null,l=We.current,k(We,o?l&1|2:l&1),Ne&&xn(t,r.treeForkCount),e):(Fe(t),null);case 22:case 23:return Rt(t),os(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(l&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),l=t.updateQueue,l!==null&&kr(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==l&&(t.flags|=2048),e!==null&&G(gl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),vn(et),Fe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function by(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));dl()}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));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(We),null;case 4:return Ue(),null;case 10:return vn(t.type),null;case 22:case 23:return Rt(t),os(),e!==null&&G(gl),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 td(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:G(We);break;case 10:vn(t.type);break;case 22:case 23:Rt(t),os(),e!==null&&G(gl);break;case 24:vn(et)}}function ea(e,t){try{var l=t.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var o=r.next;l=o;do{if((l.tag&e)===e){r=void 0;var h=l.create,y=l.inst;r=h(),y.destroy=r}l=l.next}while(l!==o)}}catch(z){Be(t,t.return,z)}}function Xn(e,t,l){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var h=o.next;r=h;do{if((r.tag&e)===e){var y=r.inst,z=y.destroy;if(z!==void 0){y.destroy=void 0,o=t;var C=l,O=z;try{O()}catch(V){Be(o,C,V)}}}r=r.next}while(r!==h)}}catch(V){Be(t,t.return,V)}}function nd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Zf(t,l)}catch(r){Be(e,e.return,r)}}}function ld(e,t,l){l.props=Sl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(r){Be(e,t,r)}}function ta(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof l=="function"?e.refCleanup=l(r):l.current=r}}catch(o){Be(e,t,o)}}function un(e,t){var l=e.ref,r=e.refCleanup;if(l!==null)if(typeof r=="function")try{r()}catch(o){Be(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){Be(e,t,o)}else l.current=null}function id(e){var t=e.type,l=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break e;case"img":l.src?r.src=l.src:l.srcSet&&(r.srcset=l.srcSet)}}catch(o){Be(e,e.return,o)}}function Ys(e,t,l){try{var r=e.stateNode;Yy(r,e.type,l,t),r[zt]=t}catch(o){Be(e,e.return,o)}}function ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wn(e.type)||e.tag===4}function Vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ad(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 Gs(e,t,l){var r=e.tag;if(r===5||r===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(r!==4&&(r===27&&Wn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Gs(e,t,l),e=e.sibling;e!==null;)Gs(e,t,l),e=e.sibling}function Er(e,t,l){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(r!==4&&(r===27&&Wn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Er(e,t,l),e=e.sibling;e!==null;)Er(e,t,l),e=e.sibling}function rd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);dt(t,r,l),t[ot]=e,t[zt]=l}catch(h){Be(e,e.return,h)}}var Cn=!1,lt=!1,Qs=!1,ud=typeof WeakSet=="function"?WeakSet:Set,st=null;function vy(e,t){if(e=e.containerInfo,fo=Xr,e=bf(e),Bu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var r=l.getSelection&&l.getSelection();if(r&&r.rangeCount!==0){l=r.anchorNode;var o=r.anchorOffset,h=r.focusNode;r=r.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var y=0,z=-1,C=-1,O=0,V=0,Z=e,D=null;t:for(;;){for(var H;Z!==l||o!==0&&Z.nodeType!==3||(z=y+o),Z!==h||r!==0&&Z.nodeType!==3||(C=y+r),Z.nodeType===3&&(y+=Z.nodeValue.length),(H=Z.firstChild)!==null;)D=Z,Z=H;for(;;){if(Z===e)break t;if(D===l&&++O===o&&(z=y),D===h&&++V===r&&(C=y),(H=Z.nextSibling)!==null)break;Z=D,D=Z.parentNode}Z=H}l=z===-1||C===-1?null:{start:z,end:C}}else l=null}l=l||{start:0,end:0}}else l=null;for(ho={focusedElem:e,selectionRange:l},Xr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,h=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&&h!==null){e=void 0,l=t,o=h.memoizedProps,h=h.memoizedState,r=l.stateNode;try{var le=Sl(l.type,o);e=r.getSnapshotBeforeUpdate(le,h),r.__reactInternalSnapshotBeforeUpdate=e}catch(he){Be(l,l.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)go(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":go(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,st=e;break}st=t.return}}function sd(e,t,l){var r=l.flags;switch(l.tag){case 0:case 11:case 15:Tn(e,l),r&4&&ea(5,l);break;case 1:if(Tn(e,l),r&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(y){Be(l,l.return,y)}else{var o=Sl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Be(l,l.return,y)}}r&64&&nd(l),r&512&&ta(l,l.return);break;case 3:if(Tn(e,l),r&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{Zf(e,t)}catch(y){Be(l,l.return,y)}}break;case 27:t===null&&r&4&&rd(l);case 26:case 5:Tn(e,l),t===null&&r&4&&id(l),r&512&&ta(l,l.return);break;case 12:Tn(e,l);break;case 31:Tn(e,l),r&4&&fd(e,l);break;case 13:Tn(e,l),r&4&&hd(e,l),r&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Ny.bind(null,l),Jy(e,l))));break;case 22:if(r=l.memoizedState!==null||Cn,!r){t=t!==null&&t.memoizedState!==null||lt,o=Cn;var h=lt;Cn=r,(lt=t)&&!h?An(e,l,(l.subtreeFlags&8772)!==0):Tn(e,l),Cn=o,lt=h}break;case 30:break;default:Tn(e,l)}}function od(e){var t=e.alternate;t!==null&&(e.alternate=null,od(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 Je=null,Et=!1;function wn(e,t,l){for(l=l.child;l!==null;)cd(e,t,l),l=l.sibling}function cd(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 r=Je,o=Et;Wn(l.type)&&(Je=l.stateNode,Et=!1),wn(e,t,l),ca(l.stateNode),Je=r,Et=o;break;case 5:lt||un(l,t);case 6:if(r=Je,o=Et,Je=null,wn(e,t,l),Je=r,Et=o,Je!==null)if(Et)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(l.stateNode)}catch(h){Be(l,t,h)}else try{Je.removeChild(l.stateNode)}catch(h){Be(l,t,h)}break;case 18:Je!==null&&(Et?(e=Je,nm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),mi(e)):nm(Je,l.stateNode));break;case 4:r=Je,o=Et,Je=l.stateNode.containerInfo,Et=!0,wn(e,t,l),Je=r,Et=o;break;case 0:case 11:case 14:case 15:Xn(2,l,t),lt||Xn(4,l,t),wn(e,t,l);break;case 1:lt||(un(l,t),r=l.stateNode,typeof r.componentWillUnmount=="function"&&ld(l,t,r)),wn(e,t,l);break;case 21:wn(e,t,l);break;case 22:lt=(r=lt)||l.memoizedState!==null,wn(e,t,l),lt=r;break;default:wn(e,t,l)}}function fd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{mi(e)}catch(l){Be(t,t.return,l)}}}function hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{mi(e)}catch(l){Be(t,t.return,l)}}function Sy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ud),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ud),t;default:throw Error(u(435,e.tag))}}function Cr(e,t){var l=Sy(e);t.forEach(function(r){if(!l.has(r)){l.add(r);var o=_y.bind(null,e,r);r.then(o,o)}})}function Ct(e,t){var l=t.deletions;if(l!==null)for(var r=0;r<l.length;r++){var o=l[r],h=e,y=t,z=y;e:for(;z!==null;){switch(z.tag){case 27:if(Wn(z.type)){Je=z.stateNode,Et=!1;break e}break;case 5:Je=z.stateNode,Et=!1;break e;case 3:case 4:Je=z.stateNode.containerInfo,Et=!0;break e}z=z.return}if(Je===null)throw Error(u(160));cd(h,y,o),Je=null,Et=!1,h=o.alternate,h!==null&&(h.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dd(t,e),t=t.sibling}var tn=null;function dd(e,t){var l=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ct(t,e),wt(e),r&4&&(Xn(3,e,e.return),ea(3,e),Xn(5,e,e.return));break;case 1:Ct(t,e),wt(e),r&512&&(lt||l===null||un(l,l.return)),r&64&&Cn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?r:l.concat(r))));break;case 26:var o=tn;if(Ct(t,e),wt(e),r&512&&(lt||l===null||un(l,l.return)),r&4){var h=l!==null?l.memoizedState:null;if(r=e.memoizedState,l===null)if(r===null)if(e.stateNode===null){e:{r=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":h=o.getElementsByTagName("title")[0],(!h||h[Ai]||h[ot]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=o.createElement(r),o.head.insertBefore(h,o.querySelector("head > title"))),dt(h,r,l),h[ot]=e,ut(h),r=h;break e;case"link":var y=dm("link","href",o).get(r+(l.href||""));if(y){for(var z=0;z<y.length;z++)if(h=y[z],h.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&h.getAttribute("rel")===(l.rel==null?null:l.rel)&&h.getAttribute("title")===(l.title==null?null:l.title)&&h.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){y.splice(z,1);break t}}h=o.createElement(r),dt(h,r,l),o.head.appendChild(h);break;case"meta":if(y=dm("meta","content",o).get(r+(l.content||""))){for(z=0;z<y.length;z++)if(h=y[z],h.getAttribute("content")===(l.content==null?null:""+l.content)&&h.getAttribute("name")===(l.name==null?null:l.name)&&h.getAttribute("property")===(l.property==null?null:l.property)&&h.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&h.getAttribute("charset")===(l.charSet==null?null:l.charSet)){y.splice(z,1);break t}}h=o.createElement(r),dt(h,r,l),o.head.appendChild(h);break;default:throw Error(u(468,r))}h[ot]=e,ut(h),r=h}e.stateNode=r}else mm(o,e.type,e.stateNode);else e.stateNode=hm(o,r,e.memoizedProps);else h!==r?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,r===null?mm(o,e.type,e.stateNode):hm(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Ys(e,e.memoizedProps,l.memoizedProps)}break;case 27:Ct(t,e),wt(e),r&512&&(lt||l===null||un(l,l.return)),l!==null&&r&4&&Ys(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Ct(t,e),wt(e),r&512&&(lt||l===null||un(l,l.return)),e.flags&32){o=e.stateNode;try{Bl(o,"")}catch(le){Be(e,e.return,le)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,Ys(e,o,l!==null?l.memoizedProps:o)),r&1024&&(Qs=!0);break;case 6:if(Ct(t,e),wt(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,l=e.stateNode;try{l.nodeValue=r}catch(le){Be(e,e.return,le)}}break;case 3:if(Yr=null,o=tn,tn=Hr(t.containerInfo),Ct(t,e),tn=o,wt(e),r&4&&l!==null&&l.memoizedState.isDehydrated)try{mi(t.containerInfo)}catch(le){Be(e,e.return,le)}Qs&&(Qs=!1,md(e));break;case 4:r=tn,tn=Hr(e.stateNode.containerInfo),Ct(t,e),wt(e),tn=r;break;case 12:Ct(t,e),wt(e);break;case 31:Ct(t,e),wt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cr(e,r)));break;case 13:Ct(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Tr=yt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cr(e,r)));break;case 22:o=e.memoizedState!==null;var C=l!==null&&l.memoizedState!==null,O=Cn,V=lt;if(Cn=O||o,lt=V||C,Ct(t,e),lt=V,Cn=O,wt(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||C||Cn||lt||zl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){C=l=t;try{if(h=C.stateNode,o)y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{z=C.stateNode;var Z=C.memoizedProps.style,D=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;z.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(le){Be(C,C.return,le)}}}else if(t.tag===6){if(l===null){C=t;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(le){Be(C,C.return,le)}}}else if(t.tag===18){if(l===null){C=t;try{var H=C.stateNode;o?lm(H,!0):lm(C.stateNode,!1)}catch(le){Be(C,C.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}r&4&&(r=e.updateQueue,r!==null&&(l=r.retryQueue,l!==null&&(r.retryQueue=null,Cr(e,l))));break;case 19:Ct(t,e),wt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cr(e,r)));break;case 30:break;case 21:break;default:Ct(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var l,r=e.return;r!==null;){if(ad(r)){l=r;break}r=r.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,h=Vs(e);Er(e,h,o);break;case 5:var y=l.stateNode;l.flags&32&&(Bl(y,""),l.flags&=-33);var z=Vs(e);Er(e,z,y);break;case 3:case 4:var C=l.stateNode.containerInfo,O=Vs(e);Gs(e,O,C);break;default:throw Error(u(161))}}catch(V){Be(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function md(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;md(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sd(e,t.alternate,t),t=t.sibling}function zl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xn(4,t,t.return),zl(t);break;case 1:un(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ld(t,t.return,l),zl(t);break;case 27:ca(t.stateNode);case 26:case 5:un(t,t.return),zl(t);break;case 22:t.memoizedState===null&&zl(t);break;case 30:zl(t);break;default:zl(t)}e=e.sibling}}function An(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,h=t,y=h.flags;switch(h.tag){case 0:case 11:case 15:An(o,h,l),ea(4,h);break;case 1:if(An(o,h,l),r=h,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(O){Be(r,r.return,O)}if(r=h,o=r.updateQueue,o!==null){var z=r.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)Xf(C[o],z)}catch(O){Be(r,r.return,O)}}l&&y&64&&nd(h),ta(h,h.return);break;case 27:rd(h);case 26:case 5:An(o,h,l),l&&r===null&&y&4&&id(h),ta(h,h.return);break;case 12:An(o,h,l);break;case 31:An(o,h,l),l&&y&4&&fd(o,h);break;case 13:An(o,h,l),l&&y&4&&hd(o,h);break;case 22:h.memoizedState===null&&An(o,h,l),ta(h,h.return);break;case 30:break;default:An(o,h,l)}t=t.sibling}}function Xs(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 Zs(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,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pd(e,t,l,r),t=t.sibling}function pd(e,t,l,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:nn(e,t,l,r),o&2048&&ea(9,t);break;case 1:nn(e,t,l,r);break;case 3:nn(e,t,l,r),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,r),e=t.stateNode;try{var h=t.memoizedProps,y=h.id,z=h.onPostCommit;typeof z=="function"&&z(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Be(t,t.return,C)}}else nn(e,t,l,r);break;case 31:nn(e,t,l,r);break;case 13:nn(e,t,l,r);break;case 23:break;case 22:h=t.stateNode,y=t.alternate,t.memoizedState!==null?h._visibility&2?nn(e,t,l,r):na(e,t):h._visibility&2?nn(e,t,l,r):(h._visibility|=2,li(e,t,l,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Xs(y,t);break;case 24:nn(e,t,l,r),o&2048&&Zs(t.alternate,t);break;default:nn(e,t,l,r)}}function li(e,t,l,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var h=e,y=t,z=l,C=r,O=y.flags;switch(y.tag){case 0:case 11:case 15:li(h,y,z,C,o),ea(8,y);break;case 23:break;case 22:var V=y.stateNode;y.memoizedState!==null?V._visibility&2?li(h,y,z,C,o):na(h,y):(V._visibility|=2,li(h,y,z,C,o)),o&&O&2048&&Xs(y.alternate,y);break;case 24:li(h,y,z,C,o),o&&O&2048&&Zs(y.alternate,y);break;default:li(h,y,z,C,o)}t=t.sibling}}function na(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,r=t,o=r.flags;switch(r.tag){case 22:na(l,r),o&2048&&Xs(r.alternate,r);break;case 24:na(l,r),o&2048&&Zs(r.alternate,r);break;default:na(l,r)}t=t.sibling}}var la=8192;function ii(e,t,l){if(e.subtreeFlags&la)for(e=e.child;e!==null;)gd(e,t,l),e=e.sibling}function gd(e,t,l){switch(e.tag){case 26:ii(e,t,l),e.flags&la&&e.memoizedState!==null&&u1(l,tn,e.memoizedState,e.memoizedProps);break;case 5:ii(e,t,l);break;case 3:case 4:var r=tn;tn=Hr(e.stateNode.containerInfo),ii(e,t,l),tn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=la,la=16777216,ii(e,t,l),la=r):ii(e,t,l));break;default:ii(e,t,l)}}function yd(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 r=t[l];st=r,bd(r,e)}yd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xd(e),e=e.sibling}function xd(e){switch(e.tag){case 0:case 11:case 15:ia(e),e.flags&2048&&Xn(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,wr(e)):ia(e);break;default:ia(e)}}function wr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var r=t[l];st=r,bd(r,e)}yd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xn(8,t,t.return),wr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,wr(t));break;default:wr(t)}e=e.sibling}}function bd(e,t){for(;st!==null;){var l=st;switch(l.tag){case 0:case 11:case 15:Xn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var r=l.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Yi(l.memoizedState.cache)}if(r=l.child,r!==null)r.return=l,st=r;else e:for(l=e;st!==null;){r=st;var o=r.sibling,h=r.return;if(od(r),r===l){st=null;break e}if(o!==null){o.return=h,st=o;break e}st=h}}}var zy={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}},ky=typeof WeakMap=="function"?WeakMap:Map,De=0,Ge=null,ke=null,Te=0,Le=0,Lt=null,Zn=!1,ai=!1,Fs=!1,Nn=0,$e=0,Fn=0,kl=0,Ks=0,Bt=0,ri=0,aa=null,Tt=null,Js=!1,Tr=0,vd=0,Ar=1/0,Nr=null,Kn=null,rt=0,Jn=null,ui=null,_n=0,Is=0,$s=null,Sd=null,ra=0,Ws=null;function Ut(){return(De&2)!==0&&Te!==0?Te&-Te:R.T!==null?io():Lc()}function zd(){if(Bt===0)if((Te&536870912)===0||Ne){var e=Ba;Ba<<=1,(Ba&3932160)===0&&(Ba=262144),Bt=e}else Bt=536870912;return e=Dt.current,e!==null&&(e.flags|=32),Bt}function At(e,t,l){(e===Ge&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(si(e,0),In(e,Te,Bt,!1)),Ti(e,l),((De&2)===0||e!==Ge)&&(e===Ge&&((De&2)===0&&(kl|=l),$e===4&&In(e,Te,Bt,!1)),sn(e))}function kd(e,t,l){if((De&6)!==0)throw Error(u(327));var r=!l&&(t&127)===0&&(t&e.expiredLanes)===0||wi(e,t),o=r?wy(e,t):eo(e,t,!0),h=r;do{if(o===0){ai&&!r&&In(e,t,0,!1);break}else{if(l=e.current.alternate,h&&!Ey(l)){o=eo(e,t,!1),h=!1;continue}if(o===2){if(h=t,e.errorRecoveryDisabledLanes&h)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var z=e;o=aa;var C=z.current.memoizedState.isDehydrated;if(C&&(si(z,y).flags|=256),y=eo(z,y,!1),y!==2){if(Fs&&!C){z.errorRecoveryDisabledLanes|=h,kl|=h,o=4;break e}h=Tt,Tt=o,h!==null&&(Tt===null?Tt=h:Tt.push.apply(Tt,h))}o=y}if(h=!1,o!==2)continue}}if(o===1){si(e,0),In(e,t,0,!0);break}e:{switch(r=e,h=o,h){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:In(r,t,Bt,!Zn);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Tr+300-yt(),10<o)){if(In(r,t,Bt,!Zn),Ha(r,0,!0)!==0)break e;_n=t,r.timeoutHandle=em(Ed.bind(null,r,l,Tt,Nr,Js,t,Bt,kl,ri,Zn,h,"Throttled",-0,0),o);break e}Ed(r,l,Tt,Nr,Js,t,Bt,kl,ri,Zn,h,null,-0,0)}}break}while(!0);sn(e)}function Ed(e,t,l,r,o,h,y,z,C,O,V,Z,D,H){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},gd(t,h,Z);var le=(h&62914560)===h?Tr-yt():(h&4194048)===h?vd-yt():0;if(le=s1(Z,le),le!==null){_n=h,e.cancelPendingCommit=le(jd.bind(null,e,t,h,l,r,o,y,z,C,V,Z,null,D,H)),In(e,h,y,!O);return}}jd(e,t,h,l,r,o,y,z,C)}function Ey(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 r=0;r<l.length;r++){var o=l[r],h=o.getSnapshot;o=o.value;try{if(!jt(h(),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,r){t&=~Ks,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var h=31-Ve(o),y=1<<h;r[h]=-1,o&=~y}l!==0&&Oc(e,l,t)}function _r(){return(De&6)===0?(ua(0),!1):!0}function Ps(){if(ke!==null){if(Le===0)var e=ke.return;else e=ke,bn=ml=null,ps(e),Wl=null,Gi=0,e=ke;for(;e!==null;)td(e.alternate,e),e=e.return;ke=null}}function si(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Qy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),_n=0,Ps(),Ge=e,ke=l=yn(e.current,null),Te=t,Le=0,Lt=null,Zn=!1,ai=wi(e,t),Fs=!1,ri=Bt=Ks=kl=Fn=$e=0,Tt=aa=null,Js=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-Ve(r),h=1<<o;t|=e[o],r&=~h}return Nn=t,$a(),l}function Cd(e,t){ye=null,R.H=$i,t===$l||t===ar?(t=Yf(),Le=3):t===ls?(t=Yf(),Le=4):Le=t===Ms?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,ke===null&&($e=1,br(e,Xt(t,e.current)))}function wd(){var e=Dt.current;return e===null?!0:(Te&4194048)===Te?Jt===null:(Te&62914560)===Te||(Te&536870912)!==0?e===Jt:!1}function Td(){var e=R.H;return R.H=$i,e===null?$i:e}function Ad(){var e=R.A;return R.A=zy,e}function Mr(){$e=4,Zn||(Te&4194048)!==Te&&Dt.current!==null||(ai=!0),(Fn&134217727)===0&&(kl&134217727)===0||Ge===null||In(Ge,Te,Bt,!1)}function eo(e,t,l){var r=De;De|=2;var o=Td(),h=Ad();(Ge!==e||Te!==t)&&(Nr=null,si(e,t)),t=!1;var y=$e;e:do try{if(Le!==0&&ke!==null){var z=ke,C=Lt;switch(Le){case 8:Ps(),y=6;break e;case 3:case 2:case 9:case 6:Dt.current===null&&(t=!0);var O=Le;if(Le=0,Lt=null,oi(e,z,C,O),l&&ai){y=0;break e}break;default:O=Le,Le=0,Lt=null,oi(e,z,C,O)}}Cy(),y=$e;break}catch(V){Cd(e,V)}while(!0);return t&&e.shellSuspendCounter++,bn=ml=null,De=r,R.H=o,R.A=h,ke===null&&(Ge=null,Te=0,$a()),y}function Cy(){for(;ke!==null;)Nd(ke)}function wy(e,t){var l=De;De|=2;var r=Td(),o=Ad();Ge!==e||Te!==t?(Nr=null,Ar=yt()+500,si(e,t)):ai=wi(e,t);e:do try{if(Le!==0&&ke!==null){t=ke;var h=Lt;t:switch(Le){case 1:Le=0,Lt=null,oi(e,t,h,1);break;case 2:case 9:if(Hf(h)){Le=0,Lt=null,_d(t);break}t=function(){Le!==2&&Le!==9||Ge!==e||(Le=7),sn(e)},h.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Hf(h)?(Le=0,Lt=null,_d(t)):(Le=0,Lt=null,oi(e,t,h,7));break;case 5:var y=null;switch(ke.tag){case 26:y=ke.memoizedState;case 5:case 27:var z=ke;if(y?pm(y):z.stateNode.complete){Le=0,Lt=null;var C=z.sibling;if(C!==null)ke=C;else{var O=z.return;O!==null?(ke=O,jr(O)):ke=null}break t}}Le=0,Lt=null,oi(e,t,h,5);break;case 6:Le=0,Lt=null,oi(e,t,h,6);break;case 8:Ps(),$e=6;break e;default:throw Error(u(462))}}Ty();break}catch(V){Cd(e,V)}while(!0);return bn=ml=null,R.H=r,R.A=o,De=l,ke!==null?0:(Ge=null,Te=0,$a(),$e)}function Ty(){for(;ke!==null&&!du();)Nd(ke)}function Nd(e){var t=Ph(e.alternate,e,Nn);e.memoizedProps=e.pendingProps,t===null?jr(e):ke=t}function _d(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Fh(l,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=Fh(l,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:ps(t);default:td(l,t),t=ke=Af(t,Nn),t=Ph(l,t,Nn)}e.memoizedProps=e.pendingProps,t===null?jr(e):ke=t}function oi(e,t,l,r){bn=ml=null,ps(t),Wl=null,Gi=0;var o=t.return;try{if(py(e,o,t,l,Te)){$e=1,br(e,Xt(l,e.current)),ke=null;return}}catch(h){if(o!==null)throw ke=o,h;$e=1,br(e,Xt(l,e.current)),ke=null;return}t.flags&32768?(Ne||r===1?e=!0:ai||(Te&536870912)!==0?e=!1:(Zn=e=!0,(r===2||r===9||r===3||r===6)&&(r=Dt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Md(t,e)):jr(t)}function jr(e){var t=e;do{if((t.flags&32768)!==0){Md(t,Zn);return}e=t.return;var l=xy(t.alternate,t,Nn);if(l!==null){ke=l;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);$e===0&&($e=5)}function Md(e,t){do{var l=by(e.alternate,e);if(l!==null){l.flags&=32767,ke=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ke=e;return}ke=e=l}while(e!==null);$e=6,ke=null}function jd(e,t,l,r,o,h,y,z,C){e.cancelPendingCommit=null;do Or();while(rt!==0);if((De&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(h=t.lanes|t.childLanes,h|=Vu,rg(e,l,h,y,z,C),e===Ge&&(ke=Ge=null,Te=0),ui=t,Jn=e,_n=l,Is=h,$s=o,Sd=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,My(me,function(){return Bd(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=R.T,R.T=null,o=J.p,J.p=2,y=De,De|=4;try{vy(e,t,l)}finally{De=y,J.p=o,R.T=r}}rt=1,Od(),Dd(),Rd()}}function Od(){if(rt===1){rt=0;var e=Jn,t=ui,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null;var r=J.p;J.p=2;var o=De;De|=4;try{dd(t,e);var h=ho,y=bf(e.containerInfo),z=h.focusedElem,C=h.selectionRange;if(y!==z&&z&&z.ownerDocument&&xf(z.ownerDocument.documentElement,z)){if(C!==null&&Bu(z)){var O=C.start,V=C.end;if(V===void 0&&(V=O),"selectionStart"in z)z.selectionStart=O,z.selectionEnd=Math.min(V,z.value.length);else{var Z=z.ownerDocument||document,D=Z&&Z.defaultView||window;if(D.getSelection){var H=D.getSelection(),le=z.textContent.length,he=Math.min(C.start,le),Ye=C.end===void 0?he:Math.min(C.end,le);!H.extend&&he>Ye&&(y=Ye,Ye=he,he=y);var N=yf(z,he),A=yf(z,Ye);if(N&&A&&(H.rangeCount!==1||H.anchorNode!==N.node||H.anchorOffset!==N.offset||H.focusNode!==A.node||H.focusOffset!==A.offset)){var j=Z.createRange();j.setStart(N.node,N.offset),H.removeAllRanges(),he>Ye?(H.addRange(j),H.extend(A.node,A.offset)):(j.setEnd(A.node,A.offset),H.addRange(j))}}}}for(Z=[],H=z;H=H.parentNode;)H.nodeType===1&&Z.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<Z.length;z++){var X=Z[z];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Xr=!!fo,ho=fo=null}finally{De=o,J.p=r,R.T=l}}e.current=t,rt=2}}function Dd(){if(rt===2){rt=0;var e=Jn,t=ui,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=R.T,R.T=null;var r=J.p;J.p=2;var o=De;De|=4;try{sd(e,t.alternate,t)}finally{De=o,J.p=r,R.T=l}}rt=3}}function Rd(){if(rt===4||rt===3){rt=0,mu();var e=Jn,t=ui,l=_n,r=Sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,ui=Jn=null,Ld(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(r!==null){t=R.T,o=J.p,J.p=2,R.T=null;try{for(var h=e.onRecoverableError,y=0;y<r.length;y++){var z=r[y];h(z.value,{componentStack:z.stack})}}finally{R.T=t,J.p=o}}(_n&3)!==0&&Or(),sn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===Ws?ra++:(ra=0,Ws=e):ra=0,ua(0)}}function Ld(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yi(t)))}function Or(){return Od(),Dd(),Rd(),Bd()}function Bd(){if(rt!==5)return!1;var e=Jn,t=Is;Is=0;var l=xu(_n),r=R.T,o=J.p;try{J.p=32>l?32:l,R.T=null,l=$s,$s=null;var h=Jn,y=_n;if(rt=0,ui=Jn=null,_n=0,(De&6)!==0)throw Error(u(331));var z=De;if(De|=4,xd(h.current),pd(h,h.current,y,l),De=z,ua(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(xt,h)}catch{}return!0}finally{J.p=o,R.T=r,Ld(e,t)}}function Ud(e,t,l){t=Xt(l,t),t=_s(e.stateNode,t,2),e=Vn(e,t,2),e!==null&&(Ti(e,2),sn(e))}function Be(e,t,l){if(e.tag===3)Ud(e,e,l);else for(;t!==null;){if(t.tag===3){Ud(t,e,l);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Kn===null||!Kn.has(r))){e=Xt(l,e),l=Hh(2),r=Vn(t,l,2),r!==null&&(qh(l,r,t,e),Ti(r,2),sn(r));break}}t=t.return}}function to(e,t,l){var r=e.pingCache;if(r===null){r=e.pingCache=new ky;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(l)||(Fs=!0,o.add(l),e=Ay.bind(null,e,t,l),t.then(e,e))}function Ay(e,t,l){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ge===e&&(Te&l)===l&&($e===4||$e===3&&(Te&62914560)===Te&&300>yt()-Tr?(De&2)===0&&si(e,0):Ks|=l,ri===Te&&(ri=0)),sn(e)}function Hd(e,t){t===0&&(t=jc()),e=fl(e,t),e!==null&&(Ti(e,t),sn(e))}function Ny(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Hd(e,l)}function _y(e,t){var l=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}r!==null&&r.delete(t),Hd(e,l)}function My(e,t){return _l(e,t)}var Dr=null,ci=null,no=!1,Rr=!1,lo=!1,$n=0;function sn(e){e!==ci&&e.next===null&&(ci===null?Dr=ci=e:ci=ci.next=e),Rr=!0,no||(no=!0,Oy())}function ua(e,t){if(!lo&&Rr){lo=!0;do for(var l=!1,r=Dr;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var h=0;else{var y=r.suspendedLanes,z=r.pingedLanes;h=(1<<31-Ve(42|e)+1)-1,h&=o&~(y&~z),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,Gd(r,h))}else h=Te,h=Ha(r,r===Ge?h:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(h&3)===0||wi(r,h)||(l=!0,Gd(r,h));r=r.next}while(l);lo=!1}}function jy(){qd()}function qd(){Rr=no=!1;var e=0;$n!==0&&Gy()&&(e=$n);for(var t=yt(),l=null,r=Dr;r!==null;){var o=r.next,h=Yd(r,t);h===0?(r.next=null,l===null?Dr=o:l.next=o,o===null&&(ci=l)):(l=r,(e!==0||(h&3)!==0)&&(Rr=!0)),r=o}rt!==0&&rt!==5||ua(e),$n!==0&&($n=0)}function Yd(e,t){for(var l=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var y=31-Ve(h),z=1<<y,C=o[y];C===-1?((z&l)===0||(z&r)!==0)&&(o[y]=ag(z,t)):C<=t&&(e.expiredLanes|=z),h&=~z}if(t=Ge,l=Te,l=Ha(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,l===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ci(r),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||wi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(r!==null&&Ci(r),xu(l)){case 2:case 8:l=P;break;case 32:l=me;break;case 268435456:l=Re;break;default:l=me}return r=Vd.bind(null,e),l=_l(l,r),e.callbackPriority=t,e.callbackNode=l,t}return r!==null&&r!==null&&Ci(r),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(Or()&&e.callbackNode!==l)return null;var r=Te;return r=Ha(e,e===Ge?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(kd(e,r,t),Yd(e,yt()),e.callbackNode!=null&&e.callbackNode===l?Vd.bind(null,e):null)}function Gd(e,t){if(Or())return null;kd(e,t,!0)}function Oy(){Xy(function(){(De&6)!==0?_l(Q,jy):qd()})}function io(){if($n===0){var e=Jl;e===0&&(e=La,La<<=1,(La&261888)===0&&(La=256)),$n=e}return $n}function Qd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ga(""+e)}function Xd(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 Dy(e,t,l,r,o){if(t==="submit"&&l&&l.stateNode===o){var h=Qd((o[zt]||null).action),y=r.submitter;y&&(t=(t=y[zt]||null)?Qd(t.formAction):y.getAttribute("formAction"),t!==null&&(h=t,y=null));var z=new Fa("action","action",null,r,o);e.push({event:z,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if($n!==0){var C=y?Xd(o,y):new FormData(o);Es(l,{pending:!0,data:C,method:o.method,action:h},null,C)}}else typeof h=="function"&&(z.preventDefault(),C=y?Xd(o,y):new FormData(o),Es(l,{pending:!0,data:C,method:o.method,action:h},h,C))},currentTarget:o}]})}}for(var ao=0;ao<Yu.length;ao++){var ro=Yu[ao],Ry=ro.toLowerCase(),Ly=ro[0].toUpperCase()+ro.slice(1);en(Ry,"on"+Ly)}en(zf,"onAnimationEnd"),en(kf,"onAnimationIteration"),en(Ef,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(Wg,"onTransitionRun"),en(Pg,"onTransitionStart"),en(ey,"onTransitionCancel"),en(Cf,"onTransitionEnd"),Rl("onMouseEnter",["mouseout","mouseover"]),Rl("onMouseLeave",["mouseout","mouseover"]),Rl("onPointerEnter",["pointerout","pointerover"]),Rl("onPointerLeave",["pointerout","pointerover"]),ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sa="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(" "),By=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sa));function Zd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var r=e[l],o=r.event;r=r.listeners;e:{var h=void 0;if(t)for(var y=r.length-1;0<=y;y--){var z=r[y],C=z.instance,O=z.currentTarget;if(z=z.listener,C!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=O;try{h(o)}catch(V){Ia(V)}o.currentTarget=null,h=C}else for(y=0;y<r.length;y++){if(z=r[y],C=z.instance,O=z.currentTarget,z=z.listener,C!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=O;try{h(o)}catch(V){Ia(V)}o.currentTarget=null,h=C}}}}function Ee(e,t){var l=t[bu];l===void 0&&(l=t[bu]=new Set);var r=e+"__bubble";l.has(r)||(Fd(t,e,2,!1),l.add(r))}function uo(e,t,l){var r=0;t&&(r|=4),Fd(l,e,r,t)}var Lr="_reactListening"+Math.random().toString(36).slice(2);function so(e){if(!e[Lr]){e[Lr]=!0,Hc.forEach(function(l){l!=="selectionchange"&&(By.has(l)||uo(l,!1,e),uo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Lr]||(t[Lr]=!0,uo("selectionchange",!1,t))}}function Fd(e,t,l,r){switch(zm(t)){case 2:var o=f1;break;case 8:o=h1;break;default:o=Eo}l=o.bind(null,t,l,e),o=void 0,!Au||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?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 oo(e,t,l,r,o){var h=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var y=r.tag;if(y===3||y===4){var z=r.stateNode.containerInfo;if(z===o)break;if(y===4)for(y=r.return;y!==null;){var C=y.tag;if((C===3||C===4)&&y.stateNode.containerInfo===o)return;y=y.return}for(;z!==null;){if(y=jl(z),y===null)return;if(C=y.tag,C===5||C===6||C===26||C===27){r=h=y;continue e}z=z.parentNode}}r=r.return}$c(function(){var O=h,V=wu(l),Z=[];e:{var D=wf.get(e);if(D!==void 0){var H=Fa,le=e;switch(e){case"keypress":if(Xa(l)===0)break e;case"keydown":case"keyup":H=_g;break;case"focusin":le="focus",H=ju;break;case"focusout":le="blur",H=ju;break;case"beforeblur":case"afterblur":H=ju;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":H=ef;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=xg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Og;break;case zf:case kf:case Ef:H=Sg;break;case Cf:H=Rg;break;case"scroll":case"scrollend":H=gg;break;case"wheel":H=Bg;break;case"copy":case"cut":case"paste":H=kg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=nf;break;case"toggle":case"beforetoggle":H=Hg}var he=(t&4)!==0,Ye=!he&&(e==="scroll"||e==="scrollend"),N=he?D!==null?D+"Capture":null:D;he=[];for(var A=O,j;A!==null;){var X=A;if(j=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||j===null||N===null||(X=_i(A,N),X!=null&&he.push(oa(A,X,j))),Ye)break;A=A.return}0<he.length&&(D=new H(D,le,null,l,V),Z.push({event:D,listeners:he}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",D&&l!==Cu&&(le=l.relatedTarget||l.fromElement)&&(jl(le)||le[Ml]))break e;if((H||D)&&(D=V.window===V?V:(D=V.ownerDocument)?D.defaultView||D.parentWindow:window,H?(le=l.relatedTarget||l.toElement,H=O,le=le?jl(le):null,le!==null&&(Ye=c(le),he=le.tag,le!==Ye||he!==5&&he!==27&&he!==6)&&(le=null)):(H=null,le=O),H!==le)){if(he=ef,X="onMouseLeave",N="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(he=nf,X="onPointerLeave",N="onPointerEnter",A="pointer"),Ye=H==null?D:Ni(H),j=le==null?D:Ni(le),D=new he(X,A+"leave",H,l,V),D.target=Ye,D.relatedTarget=j,X=null,jl(V)===O&&(he=new he(N,A+"enter",le,l,V),he.target=j,he.relatedTarget=Ye,X=he),Ye=X,H&&le)t:{for(he=Uy,N=H,A=le,j=0,X=N;X;X=he(X))j++;X=0;for(var oe=A;oe;oe=he(oe))X++;for(;0<j-X;)N=he(N),j--;for(;0<X-j;)A=he(A),X--;for(;j--;){if(N===A||A!==null&&N===A.alternate){he=N;break t}N=he(N),A=he(A)}he=null}else he=null;H!==null&&Kd(Z,D,H,he,!1),le!==null&&Ye!==null&&Kd(Z,Ye,le,he,!0)}}e:{if(D=O?Ni(O):window,H=D.nodeName&&D.nodeName.toLowerCase(),H==="select"||H==="input"&&D.type==="file")var je=ff;else if(of(D))if(hf)je=Jg;else{je=Fg;var re=Zg}else H=D.nodeName,!H||H.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?O&&Eu(O.elementType)&&(je=ff):je=Kg;if(je&&(je=je(e,O))){cf(Z,je,l,V);break e}re&&re(e,D,O),e==="focusout"&&O&&D.type==="number"&&O.memoizedProps.value!=null&&ku(D,"number",D.value)}switch(re=O?Ni(O):window,e){case"focusin":(of(re)||re.contentEditable==="true")&&(Yl=re,Uu=O,Ui=null);break;case"focusout":Ui=Uu=Yl=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,vf(Z,l,V);break;case"selectionchange":if($g)break;case"keydown":case"keyup":vf(Z,l,V)}var xe;if(Du)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else ql?uf(e,l)&&(Ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ae="onCompositionStart");Ae&&(lf&&l.locale!=="ko"&&(ql||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&ql&&(xe=Wc()):(Rn=V,Nu="value"in Rn?Rn.value:Rn.textContent,ql=!0)),re=Br(O,Ae),0<re.length&&(Ae=new tf(Ae,e,null,l,V),Z.push({event:Ae,listeners:re}),xe?Ae.data=xe:(xe=sf(l),xe!==null&&(Ae.data=xe)))),(xe=Yg?Vg(e,l):Gg(e,l))&&(Ae=Br(O,"onBeforeInput"),0<Ae.length&&(re=new tf("onBeforeInput","beforeinput",null,l,V),Z.push({event:re,listeners:Ae}),re.data=xe)),Dy(Z,e,O,l,V)}Zd(Z,t)})}function oa(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Br(e,t){for(var l=t+"Capture",r=[];e!==null;){var o=e,h=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||h===null||(o=_i(e,l),o!=null&&r.unshift(oa(e,o,h)),o=_i(e,t),o!=null&&r.push(oa(e,o,h))),e.tag===3)return r;e=e.return}return[]}function Uy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Kd(e,t,l,r,o){for(var h=t._reactName,y=[];l!==null&&l!==r;){var z=l,C=z.alternate,O=z.stateNode;if(z=z.tag,C!==null&&C===r)break;z!==5&&z!==26&&z!==27||O===null||(C=O,o?(O=_i(l,h),O!=null&&y.unshift(oa(l,O,C))):o||(O=_i(l,h),O!=null&&y.push(oa(l,O,C)))),l=l.return}y.length!==0&&e.push({event:t,listeners:y})}var Hy=/\r\n?/g,qy=/\u0000|\uFFFD/g;function Jd(e){return(typeof e=="string"?e:""+e).replace(Hy,`
|
|
49
|
-
`).replace(qy,"")}function Id(e,t){return t=Jd(t),Jd(e)===t}function qe(e,t,l,r,o,h){switch(l){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Bl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Bl(e,""+r);break;case"className":Ya(e,"class",r);break;case"tabIndex":Ya(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Ya(e,l,r);break;case"style":Jc(e,r,h);break;case"data":if(t!=="object"){Ya(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Ga(""+r),e.setAttribute(l,r);break;case"action":case"formAction":if(typeof r=="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 h=="function"&&(l==="formAction"?(t!=="input"&&qe(e,t,"name",o.name,o,null),qe(e,t,"formEncType",o.formEncType,o,null),qe(e,t,"formMethod",o.formMethod,o,null),qe(e,t,"formTarget",o.formTarget,o,null)):(qe(e,t,"encType",o.encType,o,null),qe(e,t,"method",o.method,o,null),qe(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Ga(""+r),e.setAttribute(l,r);break;case"onClick":r!=null&&(e.onclick=pn);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(l=r.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}l=Ga(""+r),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":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,""+r):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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":r===!0?e.setAttribute(l,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,r):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(l,r):e.removeAttribute(l);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(l):e.setAttribute(l,r);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),qa(e,"popover",r);break;case"xlinkActuate":mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":mn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":mn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":mn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":mn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":qa(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=mg.get(l)||l,qa(e,l,r))}}function co(e,t,l,r,o,h){switch(l){case"style":Jc(e,r,h);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(l=r.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof r=="string"?Bl(e,r):(typeof r=="number"||typeof r=="bigint")&&Bl(e,""+r);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"onClick":r!=null&&(e.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),t=l.slice(2,o?l.length-7:void 0),h=e[zt]||null,h=h!=null?h[l]:null,typeof h=="function"&&e.removeEventListener(t,h,o),typeof r=="function")){typeof h!="function"&&h!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,r,o);break e}l in e?e[l]=r:r===!0?e.setAttribute(l,""):qa(e,l,r)}}}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":Ee("error",e),Ee("load",e);var r=!1,o=!1,h;for(h in l)if(l.hasOwnProperty(h)){var y=l[h];if(y!=null)switch(h){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:qe(e,t,h,y,l,null)}}o&&qe(e,t,"srcSet",l.srcSet,l,null),r&&qe(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var z=h=y=o=null,C=null,O=null;for(r in l)if(l.hasOwnProperty(r)){var V=l[r];if(V!=null)switch(r){case"name":o=V;break;case"type":y=V;break;case"checked":C=V;break;case"defaultChecked":O=V;break;case"value":h=V;break;case"defaultValue":z=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,t));break;default:qe(e,t,r,V,l,null)}}Xc(e,h,z,C,O,y,o,!1);return;case"select":Ee("invalid",e),r=y=h=null;for(o in l)if(l.hasOwnProperty(o)&&(z=l[o],z!=null))switch(o){case"value":h=z;break;case"defaultValue":y=z;break;case"multiple":r=z;default:qe(e,t,o,z,l,null)}t=h,l=y,e.multiple=!!r,t!=null?Ll(e,!!r,t,!1):l!=null&&Ll(e,!!r,l,!0);return;case"textarea":Ee("invalid",e),h=o=r=null;for(y in l)if(l.hasOwnProperty(y)&&(z=l[y],z!=null))switch(y){case"value":r=z;break;case"defaultValue":o=z;break;case"children":h=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(u(91));break;default:qe(e,t,y,z,l,null)}Fc(e,r,o,h);return;case"option":for(C in l)if(l.hasOwnProperty(C)&&(r=l[C],r!=null))switch(C){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:qe(e,t,C,r,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(r=0;r<sa.length;r++)Ee(sa[r],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(O in l)if(l.hasOwnProperty(O)&&(r=l[O],r!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:qe(e,t,O,r,l,null)}return;default:if(Eu(t)){for(V in l)l.hasOwnProperty(V)&&(r=l[V],r!==void 0&&co(e,t,V,r,l,void 0));return}}for(z in l)l.hasOwnProperty(z)&&(r=l[z],r!=null&&qe(e,t,z,r,l,null))}function Yy(e,t,l,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,h=null,y=null,z=null,C=null,O=null,V=null;for(H in l){var Z=l[H];if(l.hasOwnProperty(H)&&Z!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":C=Z;default:r.hasOwnProperty(H)||qe(e,t,H,null,r,Z)}}for(var D in r){var H=r[D];if(Z=l[D],r.hasOwnProperty(D)&&(H!=null||Z!=null))switch(D){case"type":h=H;break;case"name":o=H;break;case"checked":O=H;break;case"defaultChecked":V=H;break;case"value":y=H;break;case"defaultValue":z=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:H!==Z&&qe(e,t,D,H,r,Z)}}zu(e,y,z,C,O,V,h,o);return;case"select":H=y=z=D=null;for(h in l)if(C=l[h],l.hasOwnProperty(h)&&C!=null)switch(h){case"value":break;case"multiple":H=C;default:r.hasOwnProperty(h)||qe(e,t,h,null,r,C)}for(o in r)if(h=r[o],C=l[o],r.hasOwnProperty(o)&&(h!=null||C!=null))switch(o){case"value":D=h;break;case"defaultValue":z=h;break;case"multiple":y=h;default:h!==C&&qe(e,t,o,h,r,C)}t=z,l=y,r=H,D!=null?Ll(e,!!l,D,!1):!!r!=!!l&&(t!=null?Ll(e,!!l,t,!0):Ll(e,!!l,l?[]:"",!1));return;case"textarea":H=D=null;for(z in l)if(o=l[z],l.hasOwnProperty(z)&&o!=null&&!r.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:qe(e,t,z,null,r,o)}for(y in r)if(o=r[y],h=l[y],r.hasOwnProperty(y)&&(o!=null||h!=null))switch(y){case"value":D=o;break;case"defaultValue":H=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==h&&qe(e,t,y,o,r,h)}Zc(e,D,H);return;case"option":for(var le in l)if(D=l[le],l.hasOwnProperty(le)&&D!=null&&!r.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:qe(e,t,le,null,r,D)}for(C in r)if(D=r[C],H=l[C],r.hasOwnProperty(C)&&D!==H&&(D!=null||H!=null))switch(C){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:qe(e,t,C,D,r,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var he in l)D=l[he],l.hasOwnProperty(he)&&D!=null&&!r.hasOwnProperty(he)&&qe(e,t,he,null,r,D);for(O in r)if(D=r[O],H=l[O],r.hasOwnProperty(O)&&D!==H&&(D!=null||H!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(u(137,t));break;default:qe(e,t,O,D,r,H)}return;default:if(Eu(t)){for(var Ye in l)D=l[Ye],l.hasOwnProperty(Ye)&&D!==void 0&&!r.hasOwnProperty(Ye)&&co(e,t,Ye,void 0,r,D);for(V in r)D=r[V],H=l[V],!r.hasOwnProperty(V)||D===H||D===void 0&&H===void 0||co(e,t,V,D,r,H);return}}for(var N in l)D=l[N],l.hasOwnProperty(N)&&D!=null&&!r.hasOwnProperty(N)&&qe(e,t,N,null,r,D);for(Z in r)D=r[Z],H=l[Z],!r.hasOwnProperty(Z)||D===H||D==null&&H==null||qe(e,t,Z,D,r,H)}function $d(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Vy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),r=0;r<l.length;r++){var o=l[r],h=o.transferSize,y=o.initiatorType,z=o.duration;if(h&&z&&$d(y)){for(y=0,z=o.responseEnd,r+=1;r<l.length;r++){var C=l[r],O=C.startTime;if(O>z)break;var V=C.transferSize,Z=C.initiatorType;V&&$d(Z)&&(C=C.responseEnd,y+=V*(C<z?1:(z-O)/(C-O)))}if(--r,t+=8*(h+y)/(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 fo=null,ho=null;function Ur(e){return e.nodeType===9?e:e.ownerDocument}function Wd(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 Pd(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 mo(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 po=null;function Gy(){var e=window.event;return e&&e.type==="popstate"?e===po?!1:(po=e,!0):(po=null,!1)}var em=typeof setTimeout=="function"?setTimeout:void 0,Qy=typeof clearTimeout=="function"?clearTimeout:void 0,tm=typeof Promise=="function"?Promise:void 0,Xy=typeof queueMicrotask=="function"?queueMicrotask:typeof tm<"u"?function(e){return tm.resolve(null).then(e).catch(Zy)}:em;function Zy(e){setTimeout(function(){throw e})}function Wn(e){return e==="head"}function nm(e,t){var l=t,r=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(r===0){e.removeChild(o),mi(t);return}r--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")r++;else if(l==="html")ca(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ca(l);for(var h=l.firstChild;h;){var y=h.nextSibling,z=h.nodeName;h[Ai]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=y}}else l==="body"&&ca(e.ownerDocument.body);l=o}while(l);mi(t)}function lm(e,t){var l=e;e=0;do{var r=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||""),r&&r.nodeType===8)if(l=r.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=r}while(l)}function go(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":go(l),vu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Fy(e,t,l,r){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Ai])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==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(h=e.getAttribute("src"),(h!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var h=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=It(e.nextSibling),e===null)break}return null}function Ky(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 im(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 yo(e){return e.data==="$?"||e.data==="$~"}function xo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Jy(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var r=function(){t(),l.removeEventListener("DOMContentLoaded",r)};l.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}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 bo=null;function am(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 rm(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 um(e,t,l){switch(t=Ur(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 ca(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vu(e)}var $t=new Map,sm=new Set;function Hr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mn=J.d;J.d={f:Iy,r:$y,D:Wy,C:Py,L:e1,m:t1,X:l1,S:n1,M:i1};function Iy(){var e=Mn.f(),t=_r();return e||t}function $y(e){var t=Ol(e);t!==null&&t.tag===5&&t.type==="form"?Ch(t):Mn.r(e)}var fi=typeof document>"u"?null:document;function om(e,t,l){var r=fi;if(r&&typeof t=="string"&&t){var o=Gt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),sm.has(o)||(sm.add(o),e={rel:e,crossOrigin:l,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),dt(t,"link",e),ut(t),r.head.appendChild(t)))}}function Wy(e){Mn.D(e),om("dns-prefetch",e,null)}function Py(e,t){Mn.C(e,t),om("preconnect",e,t)}function e1(e,t,l){Mn.L(e,t,l);var r=fi;if(r&&e&&t){var o='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Gt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Gt(l.imageSizes)+'"]')):o+='[href="'+Gt(e)+'"]';var h=o;switch(t){case"style":h=hi(e);break;case"script":h=di(e)}$t.has(h)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),$t.set(h,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(fa(h))||t==="script"&&r.querySelector(ha(h))||(t=r.createElement("link"),dt(t,"link",e),ut(t),r.head.appendChild(t)))}}function t1(e,t){Mn.m(e,t);var l=fi;if(l&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Gt(r)+'"][href="'+Gt(e)+'"]',h=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=di(e)}if(!$t.has(h)&&(e=g({rel:"modulepreload",href:e},t),$t.set(h,e),l.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ha(h)))return}r=l.createElement("link"),dt(r,"link",e),ut(r),l.head.appendChild(r)}}}function n1(e,t,l){Mn.S(e,t,l);var r=fi;if(r&&e){var o=Dl(r).hoistableStyles,h=hi(e);t=t||"default";var y=o.get(h);if(!y){var z={loading:0,preload:null};if(y=r.querySelector(fa(h)))z.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=$t.get(h))&&vo(e,l);var C=y=r.createElement("link");ut(C),dt(C,"link",e),C._p=new Promise(function(O,V){C.onload=O,C.onerror=V}),C.addEventListener("load",function(){z.loading|=1}),C.addEventListener("error",function(){z.loading|=2}),z.loading|=4,qr(y,t,r)}y={type:"stylesheet",instance:y,count:1,state:z},o.set(h,y)}}}function l1(e,t){Mn.X(e,t);var l=fi;if(l&&e){var r=Dl(l).hoistableScripts,o=di(e),h=r.get(o);h||(h=l.querySelector(ha(o)),h||(e=g({src:e,async:!0},t),(t=$t.get(o))&&So(e,t),h=l.createElement("script"),ut(h),dt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function i1(e,t){Mn.M(e,t);var l=fi;if(l&&e){var r=Dl(l).hoistableScripts,o=di(e),h=r.get(o);h||(h=l.querySelector(ha(o)),h||(e=g({src:e,async:!0,type:"module"},t),(t=$t.get(o))&&So(e,t),h=l.createElement("script"),ut(h),dt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function cm(e,t,l,r){var o=(o=se.current)?Hr(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=hi(l.href),l=Dl(o).hoistableStyles,r=l.get(t),r||(r={type:"style",instance:null,count:0,state:null},l.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=hi(l.href);var h=Dl(o).hoistableStyles,y=h.get(e);if(y||(o=o.ownerDocument||o,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,y),(h=o.querySelector(fa(e)))&&!h._p&&(y.instance=h,y.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),h||a1(o,e,l,y.state))),t&&r===null)throw Error(u(528,""));return y}if(t&&r!==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=di(l),l=Dl(o).hoistableScripts,r=l.get(t),r||(r={type:"script",instance:null,count:0,state:null},l.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function hi(e){return'href="'+Gt(e)+'"'}function fa(e){return'link[rel="stylesheet"]['+e+"]"}function fm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function a1(e,t,l,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),dt(t,"link",l),ut(t),e.head.appendChild(t))}function di(e){return'[src="'+Gt(e)+'"]'}function ha(e){return"script[async]"+e}function hm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Gt(l.href)+'"]');if(r)return t.instance=r,ut(r),r;var o=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ut(r),dt(r,"style",o),qr(r,l.precedence,e),t.instance=r;case"stylesheet":o=hi(l.href);var h=e.querySelector(fa(o));if(h)return t.state.loading|=4,t.instance=h,ut(h),h;r=fm(l),(o=$t.get(o))&&vo(r,o),h=(e.ownerDocument||e).createElement("link"),ut(h);var y=h;return y._p=new Promise(function(z,C){y.onload=z,y.onerror=C}),dt(h,"link",r),t.state.loading|=4,qr(h,l.precedence,e),t.instance=h;case"script":return h=di(l.src),(o=e.querySelector(ha(h)))?(t.instance=o,ut(o),o):(r=l,(o=$t.get(h))&&(r=g({},l),So(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),dt(o,"link",r),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&&(r=t.instance,t.state.loading|=4,qr(r,l.precedence,e));return t.instance}function qr(e,t,l){for(var r=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,h=o,y=0;y<r.length;y++){var z=r[y];if(z.dataset.precedence===t)h=z;else if(h!==o)break}h?h.parentNode.insertBefore(e,h.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function vo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function So(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yr=null;function dm(e,t,l){if(Yr===null){var r=new Map,o=Yr=new Map;o.set(l,r)}else o=Yr,r=o.get(l),r||(r=new Map,o.set(l,r));if(r.has(e))return r;for(r.set(e,null),l=l.getElementsByTagName(e),o=0;o<l.length;o++){var h=l[o];if(!(h[Ai]||h[ot]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var y=h.getAttribute(t)||"";y=e+y;var z=r.get(y);z?z.push(h):r.set(y,[h])}}return r}function mm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function r1(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 pm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function u1(e,t,l,r){if(l.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=hi(r.href),h=t.querySelector(fa(o));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=h,ut(h);return}h=t.ownerDocument||t,r=fm(r),(o=$t.get(o))&&vo(r,o),h=h.createElement("link"),ut(h);var y=h;y._p=new Promise(function(z,C){y.onload=z,y.onerror=C}),dt(h,"link",r),l.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Vr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var zo=0;function s1(e,t){return e.stylesheets&&e.count===0&&Qr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var r=setTimeout(function(){if(e.stylesheets&&Qr(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&zo===0&&(zo=62500*Vy());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qr(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>zo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Vr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gr=null;function Qr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gr=new Map,t.forEach(o1,e),Gr=null,Vr.call(e))}function o1(e,t){if(!(t.state.loading&4)){var l=Gr.get(e);if(l)var r=l.get(null);else{l=new Map,Gr.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<o.length;h++){var y=o[h];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(l.set(y.dataset.precedence,y),r=y)}r&&l.set(null,r)}o=t.instance,y=o.getAttribute("data-precedence"),h=l.get(y)||r,h===r&&l.set(null,o),l.set(y,o),this.count++,r=Vr.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),h?h.parentNode.insertBefore(o,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var da={$$typeof:B,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function c1(e,t,l,r,o,h,y,z,C){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=r,this.onUncaughtError=o,this.onCaughtError=h,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function gm(e,t,l,r,o,h,y,z,C,O,V,Z){return e=new c1(e,t,l,y,C,O,V,Z,z),t=1,h===!0&&(t|=24),h=Ot(3,null,null,t),e.current=h,h.stateNode=e,t=es(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:r,isDehydrated:l,cache:t},is(h),e}function ym(e){return e?(e=Ql,e):Ql}function xm(e,t,l,r,o,h){o=ym(o),r.context===null?r.context=o:r.pendingContext=o,r=Yn(t),r.payload={element:l},h=h===void 0?null:h,h!==null&&(r.callback=h),l=Vn(e,r,t),l!==null&&(At(l,e,t),Xi(l,e,t))}function bm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ko(e,t){bm(e,t),(e=e.alternate)&&bm(e,t)}function vm(e){if(e.tag===13||e.tag===31){var t=fl(e,67108864);t!==null&&At(t,e,67108864),ko(e,67108864)}}function Sm(e){if(e.tag===13||e.tag===31){var t=Ut();t=yu(t);var l=fl(e,t);l!==null&&At(l,e,t),ko(e,t)}}var Xr=!0;function f1(e,t,l,r){var o=R.T;R.T=null;var h=J.p;try{J.p=2,Eo(e,t,l,r)}finally{J.p=h,R.T=o}}function h1(e,t,l,r){var o=R.T;R.T=null;var h=J.p;try{J.p=8,Eo(e,t,l,r)}finally{J.p=h,R.T=o}}function Eo(e,t,l,r){if(Xr){var o=Co(r);if(o===null)oo(e,t,r,Zr,l),km(e,r);else if(m1(o,e,t,l,r))r.stopPropagation();else if(km(e,r),t&4&&-1<d1.indexOf(e)){for(;o!==null;){var h=Ol(o);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var y=rl(h.pendingLanes);if(y!==0){var z=h;for(z.pendingLanes|=2,z.entangledLanes|=2;y;){var C=1<<31-Ve(y);z.entanglements[1]|=C,y&=~C}sn(h),(De&6)===0&&(Ar=yt()+500,ua(0))}}break;case 31:case 13:z=fl(h,2),z!==null&&At(z,h,2),_r(),ko(h,2)}if(h=Co(r),h===null&&oo(e,t,r,Zr,l),h===o)break;o=h}o!==null&&r.stopPropagation()}else oo(e,t,r,null,l)}}function Co(e){return e=wu(e),wo(e)}var Zr=null;function wo(e){if(Zr=null,e=jl(e),e!==null){var t=c(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=d(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 Zr=e,null}function zm(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 Q:return 2;case P:return 8;case me:case ze:return 32;case Re:return 268435456;default:return 32}default:return 32}}var To=!1,Pn=null,el=null,tl=null,ma=new Map,pa=new Map,nl=[],d1="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 km(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,r,o,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:l,eventSystemFlags:r,nativeEvent:h,targetContainers:[o]},t!==null&&(t=Ol(t),t!==null&&vm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function m1(e,t,l,r,o){switch(t){case"focusin":return Pn=ga(Pn,e,t,l,r,o),!0;case"dragenter":return el=ga(el,e,t,l,r,o),!0;case"mouseover":return tl=ga(tl,e,t,l,r,o),!0;case"pointerover":var h=o.pointerId;return ma.set(h,ga(ma.get(h)||null,e,t,l,r,o)),!0;case"gotpointercapture":return h=o.pointerId,pa.set(h,ga(pa.get(h)||null,e,t,l,r,o)),!0}return!1}function Em(e){var t=jl(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,Bc(e.priority,function(){Sm(l)});return}}else if(t===31){if(t=d(l),t!==null){e.blockedOn=t,Bc(e.priority,function(){Sm(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 Fr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Co(e.nativeEvent);if(l===null){l=e.nativeEvent;var r=new l.constructor(l.type,l);Cu=r,l.target.dispatchEvent(r),Cu=null}else return t=Ol(l),t!==null&&vm(t),e.blockedOn=l,!1;t.shift()}return!0}function Cm(e,t,l){Fr(e)&&l.delete(t)}function p1(){To=!1,Pn!==null&&Fr(Pn)&&(Pn=null),el!==null&&Fr(el)&&(el=null),tl!==null&&Fr(tl)&&(tl=null),ma.forEach(Cm),pa.forEach(Cm)}function Kr(e,t){e.blockedOn===t&&(e.blockedOn=null,To||(To=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,p1)))}var Jr=null;function wm(e){Jr!==e&&(Jr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Jr===e&&(Jr=null);for(var t=0;t<e.length;t+=3){var l=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(wo(r||l)===null)continue;break}var h=Ol(l);h!==null&&(e.splice(t,3),t-=3,Es(h,{pending:!0,data:o,method:l.method,action:r},r,o))}}))}function mi(e){function t(C){return Kr(C,e)}Pn!==null&&Kr(Pn,e),el!==null&&Kr(el,e),tl!==null&&Kr(tl,e),ma.forEach(t),pa.forEach(t);for(var l=0;l<nl.length;l++){var r=nl[l];r.blockedOn===e&&(r.blockedOn=null)}for(;0<nl.length&&(l=nl[0],l.blockedOn===null);)Em(l),l.blockedOn===null&&nl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(r=0;r<l.length;r+=3){var o=l[r],h=l[r+1],y=o[zt]||null;if(typeof h=="function")y||wm(l);else if(y){var z=null;if(h&&h.hasAttribute("formAction")){if(o=h,y=h[zt]||null)z=y.formAction;else if(wo(o)!==null)continue}else z=y.action;typeof z=="function"?l[r+1]=z:(l.splice(r,3),r-=3),wm(l)}}}function Tm(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(y){return o=y})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(l,20)}function l(){if(!r&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Ao(e){this._internalRoot=e}Ir.prototype.render=Ao.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,r=Ut();xm(l,r,e,t,null,null)},Ir.prototype.unmount=Ao.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xm(e.current,2,null,e,null,null),_r(),t[Ml]=null}};function Ir(e){this._internalRoot=e}Ir.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lc();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&&Em(e)}};var Am=a.version;if(Am!=="19.2.3")throw Error(u(527,Am,"19.2.3"));J.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=m(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var g1={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$r.isDisabled&&$r.supportsFiber)try{xt=$r.inject(g1),at=$r}catch{}}return xa.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,r="",o=Rh,h=Lh,y=Bh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=gm(e,1,!1,null,null,l,r,null,o,h,y,Tm),e[Ml]=t.current,so(e),new Ao(t)},xa.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var r=!1,o="",h=Rh,y=Lh,z=Bh,C=null;return l!=null&&(l.unstable_strictMode===!0&&(r=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(y=l.onCaughtError),l.onRecoverableError!==void 0&&(z=l.onRecoverableError),l.formState!==void 0&&(C=l.formState)),t=gm(e,1,!0,t,l??null,r,o,C,h,y,z,Tm),t.context=ym(null),l=t.current,r=Ut(),r=yu(r),o=Yn(r),o.callback=null,Vn(l,o,r),l=r,t.current.lanes=l,Ti(t,l),sn(t),e[Ml]=t.current,so(e),new Ir(t)},xa.version="19.2.3",xa}var Um;function C1(){if(Um)return Mo.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(),Mo.exports=E1(),Mo.exports}var w1=C1();/**
|
|
50
|
-
* @license lucide-react v0.562.0 - ISC
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the ISC license.
|
|
53
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const T1=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),A1=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,u)=>u?u.toUpperCase():i.toLowerCase()),Hm=n=>{const a=A1(n);return a.charAt(0).toUpperCase()+a.slice(1)},Hp=(...n)=>n.filter((a,i,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===i).join(" ").trim(),N1=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
55
|
-
* @license lucide-react v0.562.0 - ISC
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the ISC license.
|
|
58
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/var _1={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"};/**
|
|
60
|
-
* @license lucide-react v0.562.0 - ISC
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the ISC license.
|
|
63
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const M1=ce.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:f,...d},p)=>ce.createElement("svg",{ref:p,..._1,width:a,height:a,stroke:n,strokeWidth:u?Number(i)*24/Number(a):i,className:Hp("lucide",s),...!c&&!N1(d)&&{"aria-hidden":"true"},...d},[...f.map(([m,x])=>ce.createElement(m,x)),...Array.isArray(c)?c:[c]]));/**
|
|
65
|
-
* @license lucide-react v0.562.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const Me=(n,a)=>{const i=ce.forwardRef(({className:u,...s},c)=>ce.createElement(M1,{ref:c,iconNode:a,className:Hp(`lucide-${T1(Hm(n))}`,`lucide-${n}`,u),...s}));return i.displayName=Hm(n),i};/**
|
|
70
|
-
* @license lucide-react v0.562.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const j1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],O1=Me("arrow-right",j1);/**
|
|
75
|
-
* @license lucide-react v0.562.0 - ISC
|
|
76
|
-
*
|
|
77
|
-
* This source code is licensed under the ISC license.
|
|
78
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const D1=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],qp=Me("bot",D1);/**
|
|
80
|
-
* @license lucide-react v0.562.0 - ISC
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the ISC license.
|
|
83
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const R1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Aa=Me("check",R1);/**
|
|
85
|
-
* @license lucide-react v0.562.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const L1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Yp=Me("circle-check",L1);/**
|
|
90
|
-
* @license lucide-react v0.562.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const B1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],U1=Me("circle-question-mark",B1);/**
|
|
95
|
-
* @license lucide-react v0.562.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const H1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],q1=Me("circle",H1);/**
|
|
100
|
-
* @license lucide-react v0.562.0 - ISC
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the ISC license.
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const Y1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],hc=Me("copy",Y1);/**
|
|
105
|
-
* @license lucide-react v0.562.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const V1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],G1=Me("database",V1);/**
|
|
110
|
-
* @license lucide-react v0.562.0 - ISC
|
|
111
|
-
*
|
|
112
|
-
* This source code is licensed under the ISC license.
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const Q1=[["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 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Vp=Me("file-code",Q1);/**
|
|
115
|
-
* @license lucide-react v0.562.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const X1=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],Z1=Me("file-pen",X1);/**
|
|
120
|
-
* @license lucide-react v0.562.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const F1=[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]],Gp=Me("file-plus-corner",F1);/**
|
|
125
|
-
* @license lucide-react v0.562.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const K1=[["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"}]],Qp=Me("file-text",K1);/**
|
|
130
|
-
* @license lucide-react v0.562.0 - ISC
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the ISC license.
|
|
133
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/const J1=[["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"}]],dc=Me("folder-open",J1);/**
|
|
135
|
-
* @license lucide-react v0.562.0 - ISC
|
|
136
|
-
*
|
|
137
|
-
* This source code is licensed under the ISC license.
|
|
138
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/const I1=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],$1=Me("git-branch",I1);/**
|
|
140
|
-
* @license lucide-react v0.562.0 - ISC
|
|
141
|
-
*
|
|
142
|
-
* This source code is licensed under the ISC license.
|
|
143
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
-
*/const W1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],P1=Me("globe",W1);/**
|
|
145
|
-
* @license lucide-react v0.562.0 - ISC
|
|
146
|
-
*
|
|
147
|
-
* This source code is licensed under the ISC license.
|
|
148
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
-
*/const ex=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],tx=Me("hard-drive",ex);/**
|
|
150
|
-
* @license lucide-react v0.562.0 - ISC
|
|
151
|
-
*
|
|
152
|
-
* This source code is licensed under the ISC license.
|
|
153
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
-
*/const nx=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],lx=Me("lightbulb",nx);/**
|
|
155
|
-
* @license lucide-react v0.562.0 - ISC
|
|
156
|
-
*
|
|
157
|
-
* This source code is licensed under the ISC license.
|
|
158
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
-
*/const ix=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],Xp=Me("list-todo",ix);/**
|
|
160
|
-
* @license lucide-react v0.562.0 - ISC
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the ISC license.
|
|
163
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/const ax=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],rx=Me("loader-circle",ax);/**
|
|
165
|
-
* @license lucide-react v0.562.0 - ISC
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the ISC license.
|
|
168
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/const ux=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],sx=Me("message-square",ux);/**
|
|
170
|
-
* @license lucide-react v0.562.0 - ISC
|
|
171
|
-
*
|
|
172
|
-
* This source code is licensed under the ISC license.
|
|
173
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
-
*/const ox=[["path",{d:"M5 12h14",key:"1ays0h"}]],cx=Me("minus",ox);/**
|
|
175
|
-
* @license lucide-react v0.562.0 - ISC
|
|
176
|
-
*
|
|
177
|
-
* This source code is licensed under the ISC license.
|
|
178
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
-
*/const fx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],hx=Me("panel-left",fx);/**
|
|
180
|
-
* @license lucide-react v0.562.0 - ISC
|
|
181
|
-
*
|
|
182
|
-
* This source code is licensed under the ISC license.
|
|
183
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
-
*/const dx=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],mx=Me("pause",dx);/**
|
|
185
|
-
* @license lucide-react v0.562.0 - ISC
|
|
186
|
-
*
|
|
187
|
-
* This source code is licensed under the ISC license.
|
|
188
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
-
*/const px=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],gx=Me("pencil",px);/**
|
|
190
|
-
* @license lucide-react v0.562.0 - ISC
|
|
191
|
-
*
|
|
192
|
-
* This source code is licensed under the ISC license.
|
|
193
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
-
*/const yx=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Zp=Me("play",yx);/**
|
|
195
|
-
* @license lucide-react v0.562.0 - ISC
|
|
196
|
-
*
|
|
197
|
-
* This source code is licensed under the ISC license.
|
|
198
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
-
*/const xx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],bx=Me("plus",xx);/**
|
|
200
|
-
* @license lucide-react v0.562.0 - ISC
|
|
201
|
-
*
|
|
202
|
-
* This source code is licensed under the ISC license.
|
|
203
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
-
*/const vx=[["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"}]],Sx=Me("refresh-cw",vx);/**
|
|
205
|
-
* @license lucide-react v0.562.0 - ISC
|
|
206
|
-
*
|
|
207
|
-
* This source code is licensed under the ISC license.
|
|
208
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
-
*/const zx=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],lu=Me("search",zx);/**
|
|
210
|
-
* @license lucide-react v0.562.0 - ISC
|
|
211
|
-
*
|
|
212
|
-
* This source code is licensed under the ISC license.
|
|
213
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
-
*/const kx=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ex=Me("square-check-big",kx);/**
|
|
215
|
-
* @license lucide-react v0.562.0 - ISC
|
|
216
|
-
*
|
|
217
|
-
* This source code is licensed under the ISC license.
|
|
218
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
-
*/const Cx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],wx=Me("square",Cx);/**
|
|
220
|
-
* @license lucide-react v0.562.0 - ISC
|
|
221
|
-
*
|
|
222
|
-
* This source code is licensed under the ISC license.
|
|
223
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
-
*/const Tx=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Fp=Me("terminal",Tx);/**
|
|
225
|
-
* @license lucide-react v0.562.0 - ISC
|
|
226
|
-
*
|
|
227
|
-
* This source code is licensed under the ISC license.
|
|
228
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
-
*/const Ax=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Nx=Me("triangle-alert",Ax);/**
|
|
230
|
-
* @license lucide-react v0.562.0 - ISC
|
|
231
|
-
*
|
|
232
|
-
* This source code is licensed under the ISC license.
|
|
233
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
-
*/const _x=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Mx=Me("wrench",_x);/**
|
|
235
|
-
* @license lucide-react v0.562.0 - ISC
|
|
236
|
-
*
|
|
237
|
-
* This source code is licensed under the ISC license.
|
|
238
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
-
*/const jx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ox=Me("x",jx);function Kp(n){const a=new Date(n),u=new Date().getTime()-a.getTime(),s=Math.floor(u/6e4),c=Math.floor(u/36e5),f=Math.floor(u/864e5);return s<1?"Just now":s<60?`${s}m`:c<24?`${c}h`:f<7?`${f}d`:a.toLocaleDateString()}const Dx=[/<command-name>[^<]*<\/command-name>/g,/<command-message>[^<]*<\/command-message>/g,/<command-args>[^<]*<\/command-args>/g,/<local-command-stdout>[^<]*<\/local-command-stdout>/g,/<system-reminder>[\s\S]*?<\/system-reminder>/g,/^\s*Caveat:.*?unless the user explicitly asks you to\./s];function bi(n){let a=n;for(const i of Dx)a=a.replace(i,"");return a.trim()}var Rx=Up();function pi(n,a,i){let u=i.initialDeps??[],s,c=!0;function f(){var d,p,m;let x;i.key&&((d=i.debug)!=null&&d.call(i))&&(x=Date.now());const g=n();if(!(g.length!==u.length||g.some((w,M)=>u[M]!==w)))return s;u=g;let v;if(i.key&&((p=i.debug)!=null&&p.call(i))&&(v=Date.now()),s=a(...g),i.key&&((m=i.debug)!=null&&m.call(i))){const w=Math.round((Date.now()-x)*100)/100,M=Math.round((Date.now()-v)*100)/100,Y=M/16,_=(q,B)=>{for(q=String(q);q.length<B;)q=" "+q;return q};console.info(`%c⏱ ${_(M,5)} /${_(w,5)} ms`,`
|
|
240
|
-
font-size: .6rem;
|
|
241
|
-
font-weight: bold;
|
|
242
|
-
color: hsl(${Math.max(0,Math.min(120-120*Y,120))}deg 100% 31%);`,i==null?void 0:i.key)}return i!=null&&i.onChange&&!(c&&i.skipInitialOnChange)&&i.onChange(s),c=!1,s}return f.updateDeps=d=>{u=d},f}function qm(n,a){if(n===void 0)throw new Error("Unexpected undefined");return n}const Lx=(n,a)=>Math.abs(n-a)<1.01,Bx=(n,a,i)=>{let u;return function(...s){n.clearTimeout(u),u=n.setTimeout(()=>a.apply(this,s),i)}},Ym=n=>{const{offsetWidth:a,offsetHeight:i}=n;return{width:a,height:i}},Ux=n=>n,Hx=n=>{const a=Math.max(n.startIndex-n.overscan,0),i=Math.min(n.endIndex+n.overscan,n.count-1),u=[];for(let s=a;s<=i;s++)u.push(s);return u},qx=(n,a)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;const s=f=>{const{width:d,height:p}=f;a({width:Math.round(d),height:Math.round(p)})};if(s(Ym(i)),!u.ResizeObserver)return()=>{};const c=new u.ResizeObserver(f=>{const d=()=>{const p=f[0];if(p!=null&&p.borderBoxSize){const m=p.borderBoxSize[0];if(m){s({width:m.inlineSize,height:m.blockSize});return}}s(Ym(i))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return c.observe(i,{box:"border-box"}),()=>{c.unobserve(i)}},Vm={passive:!0},Gm=typeof window>"u"?!0:"onscrollend"in window,Yx=(n,a)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;let s=0;const c=n.options.useScrollendEvent&&Gm?()=>{}:Bx(u,()=>{a(s,!1)},n.options.isScrollingResetDelay),f=x=>()=>{const{horizontal:g,isRtl:b}=n.options;s=g?i.scrollLeft*(b&&-1||1):i.scrollTop,c(),a(s,x)},d=f(!0),p=f(!1);p(),i.addEventListener("scroll",d,Vm);const m=n.options.useScrollendEvent&&Gm;return m&&i.addEventListener("scrollend",p,Vm),()=>{i.removeEventListener("scroll",d),m&&i.removeEventListener("scrollend",p)}},Vx=(n,a,i)=>{if(a!=null&&a.borderBoxSize){const u=a.borderBoxSize[0];if(u)return Math.round(u[i.options.horizontal?"inlineSize":"blockSize"])}return n[i.options.horizontal?"offsetWidth":"offsetHeight"]},Gx=(n,{adjustments:a=0,behavior:i},u)=>{var s,c;const f=n+a;(c=(s=u.scrollElement)==null?void 0:s.scrollTo)==null||c.call(s,{[u.options.horizontal?"left":"top"]:f,behavior:i})};class Qx{constructor(a){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let i=null;const u=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(s=>{s.forEach(c=>{const f=()=>{this._measureElement(c.target,c)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()})}));return{disconnect:()=>{var s;(s=u())==null||s.disconnect(),i=null},observe:s=>{var c;return(c=u())==null?void 0:c.observe(s,{box:"border-box"})},unobserve:s=>{var c;return(c=u())==null?void 0:c.unobserve(s)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([u,s])=>{typeof s>"u"&&delete i[u]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ux,rangeExtractor:Hx,onChange:()=>{},measureElement:Vx,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...i}},this.notify=i=>{var u,s;(s=(u=this.options).onChange)==null||s.call(u,this,i)},this.maybeNotify=pi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const u=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==u){if(this.cleanup(),!u){this.maybeNotify();return}this.scrollElement=u,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,u)=>{const s=new Map,c=new Map;for(let f=u-1;f>=0;f--){const d=i[f];if(s.has(d.lane))continue;const p=c.get(d.lane);if(p==null||d.end>p.end?c.set(d.lane,d):d.end<p.end&&s.set(d.lane,!0),s.size===this.options.lanes)break}return c.size===this.options.lanes?Array.from(c.values()).sort((f,d)=>f.end===d.end?f.index-d.index:f.end-d.end)[0]:void 0},this.getMeasurementOptions=pi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(i,u,s,c,f,d)=>(this.prevLanes!==void 0&&this.prevLanes!==d&&(this.lanesChangedFlag=!0),this.prevLanes=d,this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:u,scrollMargin:s,getItemKey:c,enabled:f,lanes:d}),{key:!1,skipInitialOnChange:!0,onChange:()=>{this.notify(this.isScrolling)}}),this.getMeasurements=pi(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:u,scrollMargin:s,getItemKey:c,enabled:f,lanes:d},p)=>{if(!f)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>i)for(const b of this.laneAssignments.keys())b>=i&&this.laneAssignments.delete(b);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(b=>{this.itemSizeCache.set(b.key,b.size)}));const m=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===i&&(this.lanesSettling=!1);const x=this.measurementsCache.slice(0,m),g=new Array(d).fill(void 0);for(let b=0;b<m;b++){const v=x[b];v&&(g[v.lane]=b)}for(let b=m;b<i;b++){const v=c(b),w=this.laneAssignments.get(b);let M,Y;if(w!==void 0&&this.options.lanes>1){M=w;const F=g[M],K=F!==void 0?x[F]:void 0;Y=K?K.end+this.options.gap:u+s}else{const F=this.options.lanes===1?x[b-1]:this.getFurthestMeasurement(x,b);Y=F?F.end+this.options.gap:u+s,M=F?F.lane:b%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(b,M)}const _=p.get(v),q=typeof _=="number"?_:this.options.estimateSize(b),B=Y+q;x[b]={index:b,start:Y,size:q,end:B,key:v,lane:M},g[M]=b}return this.measurementsCache=x,x},{key:!1,debug:()=>this.options.debug}),this.calculateRange=pi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,u,s,c)=>this.range=i.length>0&&u>0?Xx({measurements:i,outerSize:u,scrollOffset:s,lanes:c}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=pi(()=>{let i=null,u=null;const s=this.calculateRange();return s&&(i=s.startIndex,u=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,u]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,u]},(i,u,s,c,f)=>c===null||f===null?[]:i({startIndex:c,endIndex:f,overscan:u,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const u=this.options.indexAttribute,s=i.getAttribute(u);return s?parseInt(s,10):(console.warn(`Missing attribute name '${u}={index}' on measured element.`),-1)},this._measureElement=(i,u)=>{const s=this.indexFromElement(i),c=this.measurementsCache[s];if(!c)return;const f=c.key,d=this.elementsCache.get(f);d!==i&&(d&&this.observer.unobserve(d),this.observer.observe(i),this.elementsCache.set(f,i)),i.isConnected&&this.resizeItem(s,this.options.measureElement(i,u,this))},this.resizeItem=(i,u)=>{const s=this.measurementsCache[i];if(!s)return;const c=this.itemSizeCache.get(s.key)??s.size,f=u-c;f!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,f,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=f,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,u)),this.notify(!1))},this.measureElement=i=>{if(!i){this.elementsCache.forEach((u,s)=>{u.isConnected||(this.observer.unobserve(u),this.elementsCache.delete(s))});return}this._measureElement(i,void 0)},this.getVirtualItems=pi(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,u)=>{const s=[];for(let c=0,f=i.length;c<f;c++){const d=i[c],p=u[d];s.push(p)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const u=this.getMeasurements();if(u.length!==0)return qm(u[Jp(0,u.length-1,s=>qm(u[s]).start,i)])},this.getOffsetForAlignment=(i,u,s=0)=>{const c=this.getSize(),f=this.getScrollOffset();u==="auto"&&(u=i>=f+c?"end":"start"),u==="center"?i+=(s-c)/2:u==="end"&&(i-=c);const d=this.getTotalSize()+this.options.scrollMargin-c;return Math.max(Math.min(d,i),0)},this.getOffsetForIndex=(i,u="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const s=this.measurementsCache[i];if(!s)return;const c=this.getSize(),f=this.getScrollOffset();if(u==="auto")if(s.end>=f+c-this.options.scrollPaddingEnd)u="end";else if(s.start<=f+this.options.scrollPaddingStart)u="start";else return[f,u];const d=u==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(d,u,s.size),u]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(i,{align:u="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(i,u),{adjustments:void 0,behavior:s})},this.scrollToIndex=(i,{align:u="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),i=Math.max(0,Math.min(i,this.options.count-1));let c=0;const f=10,d=m=>{if(!this.targetWindow)return;const x=this.getOffsetForIndex(i,m);if(!x){console.warn("Failed to get offset for index:",i);return}const[g,b]=x;this._scrollToOffset(g,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const v=this.getScrollOffset(),w=this.getOffsetForIndex(i,b);if(!w){console.warn("Failed to get offset for index:",i);return}Lx(w[0],v)||p(b)})},p=m=>{this.targetWindow&&(c++,c<f?this.targetWindow.requestAnimationFrame(()=>d(m)):console.warn(`Failed to scroll to index ${i} after ${f} attempts.`))};d(u)},this.scrollBy=(i,{behavior:u}={})=>{u==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+i,{adjustments:void 0,behavior:u})},this.getTotalSize=()=>{var i;const u=this.getMeasurements();let s;if(u.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((i=u[u.length-1])==null?void 0:i.end)??0;else{const c=Array(this.options.lanes).fill(null);let f=u.length-1;for(;f>=0&&c.some(d=>d===null);){const d=u[f];c[d.lane]===null&&(c[d.lane]=d.end),f--}s=Math.max(...c.filter(d=>d!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:u,behavior:s})=>{this.options.scrollToFn(i,{behavior:s,adjustments:u},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(a)}}const Jp=(n,a,i,u)=>{for(;n<=a;){const s=(n+a)/2|0,c=i(s);if(c<u)n=s+1;else if(c>u)a=s-1;else return s}return n>0?n-1:0};function Xx({measurements:n,outerSize:a,scrollOffset:i,lanes:u}){const s=n.length-1,c=p=>n[p].start;if(n.length<=u)return{startIndex:0,endIndex:s};let f=Jp(0,s,c,i),d=f;if(u===1)for(;d<s&&n[d].end<i+a;)d++;else if(u>1){const p=Array(u).fill(0);for(;d<s&&p.some(x=>x<i+a);){const x=n[d];p[x.lane]=x.end,d++}const m=Array(u).fill(i+a);for(;f>=0&&m.some(x=>x>=i);){const x=n[f];m[x.lane]=x.start,f--}f=Math.max(0,f-f%u),d=Math.min(s,d+(u-1-d%u))}return{startIndex:f,endIndex:d}}const Qm=typeof document<"u"?ce.useLayoutEffect:ce.useEffect;function Zx(n){const a=ce.useReducer(()=>({}),{})[1],i={...n,onChange:(s,c)=>{var f;c?Rx.flushSync(a):a(),(f=n.onChange)==null||f.call(n,s,c)}},[u]=ce.useState(()=>new Qx(i));return u.setOptions(i),Qm(()=>u._didMount(),[]),Qm(()=>u._willUpdate()),u}function Fx(n){return Zx({observeElementRect:qx,observeElementOffset:Yx,scrollToFn:Gx,...n})}const Kx=ce.memo(function(a){const{sessions:i,selectedSession:u,onSelectSession:s,loading:c}=a,[f,d]=ce.useState(""),p=ce.useRef(null),m=ce.useMemo(()=>{if(!f.trim())return i;const g=f.toLowerCase();return i.filter(b=>b.display.toLowerCase().includes(g)||b.projectName.toLowerCase().includes(g))},[i,f]),x=Fx({count:m.length,getScrollElement:()=>p.current,estimateSize:()=>76,overscan:10,measureElement:g=>g.getBoundingClientRect().height});return S.jsxs("div",{className:"h-full overflow-hidden bg-zinc-950 flex flex-col",children:[S.jsx("div",{className:"px-3 py-2 border-b border-zinc-800/60",children:S.jsxs("div",{className:"flex items-center gap-2 text-zinc-500",children:[S.jsx("svg",{className:"w-4 h-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),S.jsx("input",{type:"text",value:f,onChange:g=>d(g.target.value),placeholder:"Search...",className:"flex-1 bg-transparent text-sm text-zinc-200 placeholder-zinc-600 focus:outline-none"}),f&&S.jsx("button",{onClick:()=>d(""),className:"text-zinc-600 hover:text-zinc-400 transition-colors",children:S.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}),S.jsx("div",{ref:p,className:"flex-1 overflow-y-auto",children:c?S.jsx("div",{className:"flex items-center justify-center py-8",children:S.jsxs("svg",{className:"w-5 h-5 text-zinc-600 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[S.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),S.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}):m.length===0?S.jsx("p",{className:"py-8 text-center text-xs text-zinc-600",children:f?"No sessions match":"No sessions found"}):S.jsx("div",{style:{height:`${x.getTotalSize()}px`,width:"100%",position:"relative"},children:x.getVirtualItems().map(g=>{const b=m[g.index];return S.jsxs("button",{"data-index":g.index,ref:x.measureElement,onClick:()=>s(b.id),style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${g.start}px)`},className:`px-3 py-3.5 text-left transition-colors overflow-hidden border-b border-zinc-800/40 ${u===b.id?"bg-cyan-700/30":"hover:bg-zinc-900/60"} ${g.index===0?"border-t border-t-zinc-800/40":""}`,children:[S.jsxs("div",{className:"flex items-center justify-between mb-1",children:[S.jsx("span",{className:"text-[10px] text-zinc-500 font-medium",children:b.projectName}),S.jsx("span",{className:"text-[10px] text-zinc-600",children:Kp(b.timestamp)})]}),S.jsx("p",{className:"text-[12px] text-zinc-300 leading-snug line-clamp-2 break-words",children:b.display})]},b.id)})})}),S.jsx("div",{className:"px-3 py-2 border-t border-zinc-800/60",children:S.jsxs("div",{className:"text-[10px] text-zinc-600 text-center",children:[i.length," session",i.length!==1?"s":""]})})]})});function Jx(n,a){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const Ix=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$x=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wx={};function Xm(n,a){return(Wx.jsx?$x:Ix).test(n)}const Px=/[ \t\n\f\r]/g;function eb(n){return typeof n=="object"?n.type==="text"?Zm(n.value):!1:Zm(n)}function Zm(n){return n.replace(Px,"")===""}class Na{constructor(a,i,u){this.normal=i,this.property=a,u&&(this.space=u)}}Na.prototype.normal={};Na.prototype.property={};Na.prototype.space=void 0;function Ip(n,a){const i={},u={};for(const s of n)Object.assign(i,s.property),Object.assign(u,s.normal);return new Na(i,u,a)}function Po(n){return n.toLowerCase()}class _t{constructor(a,i){this.attribute=i,this.property=a}}_t.prototype.attribute="";_t.prototype.booleanish=!1;_t.prototype.boolean=!1;_t.prototype.commaOrSpaceSeparated=!1;_t.prototype.commaSeparated=!1;_t.prototype.defined=!1;_t.prototype.mustUseProperty=!1;_t.prototype.number=!1;_t.prototype.overloadedBoolean=!1;_t.prototype.property="";_t.prototype.spaceSeparated=!1;_t.prototype.space=void 0;let tb=0;const be=wl(),it=wl(),ec=wl(),I=wl(),Xe=wl(),vi=wl(),Ht=wl();function wl(){return 2**++tb}const tc=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:it,commaOrSpaceSeparated:Ht,commaSeparated:vi,number:I,overloadedBoolean:ec,spaceSeparated:Xe},Symbol.toStringTag,{value:"Module"})),Ro=Object.keys(tc);class mc extends _t{constructor(a,i,u,s){let c=-1;if(super(a,i),Fm(this,"space",s),typeof u=="number")for(;++c<Ro.length;){const f=Ro[c];Fm(this,Ro[c],(u&tc[f])===tc[f])}}}mc.prototype.defined=!0;function Fm(n,a,i){i&&(n[a]=i)}function zi(n){const a={},i={};for(const[u,s]of Object.entries(n.properties)){const c=new mc(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,i[Po(u)]=u,i[Po(c.attribute)]=u}return new Na(a,i,n.space)}const $p=zi({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Xe,ariaCurrent:null,ariaDescribedBy:Xe,ariaDetails:null,ariaDisabled:it,ariaDropEffect:Xe,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:Xe,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xe,ariaLevel:I,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:Xe,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:Xe,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:it,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Wp(n,a){return a in n?n[a]:a}function Pp(n,a){return Wp(n,a.toLowerCase())}const nb=zi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vi,acceptCharset:Xe,accessKey:Xe,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Xe,autoFocus:be,autoPlay:be,blocking:Xe,capture:null,charSet:null,checked:be,cite:null,className:Xe,cols:I,colSpan:null,content:null,contentEditable:it,controls:be,controlsList:Xe,coords:I|vi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:ec,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Xe,height:I,hidden:ec,high:I,href:null,hrefLang:null,htmlFor:Xe,httpEquiv:Xe,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Xe,itemRef:Xe,itemScope:be,itemType:Xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,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:I,pattern:null,ping:Xe,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Xe,required:be,reversed:be,rows:I,rowSpan:I,sandbox:Xe,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:it,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xe,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,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:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:Pp}),lb=zi({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:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Xe,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,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:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Wp}),e0=zi({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()}}),t0=zi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Pp}),n0=zi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),ib={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"},ab=/[A-Z]/g,Km=/-[a-z]/g,rb=/^data[-\w.:]+$/i;function ub(n,a){const i=Po(a);let u=a,s=_t;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&rb.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(Km,ob);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!Km.test(c)){let f=c.replace(ab,sb);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=mc}return new s(u,a)}function sb(n){return"-"+n.toLowerCase()}function ob(n){return n.charAt(1).toUpperCase()}const cb=Ip([$p,nb,e0,t0,n0],"html"),pc=Ip([$p,lb,e0,t0,n0],"svg");function fb(n){return n.join(" ").trim()}var gi={},Lo,Jm;function hb(){if(Jm)return Lo;Jm=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,i=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
|
243
|
-
`,m="/",x="*",g="",b="comment",v="declaration";function w(Y,_){if(typeof Y!="string")throw new TypeError("First argument must be a string");if(!Y)return[];_=_||{};var q=1,B=1;function F(ae){var W=ae.match(a);W&&(q+=W.length);var R=ae.lastIndexOf(p);B=~R?ae.length-R:B+ae.length}function K(){var ae={line:q,column:B};return function(W){return W.position=new L(ae),pe(),W}}function L(ae){this.start=ae,this.end={line:q,column:B},this.source=_.source}L.prototype.content=Y;function $(ae){var W=new Error(_.source+":"+q+":"+B+": "+ae);if(W.reason=ae,W.filename=_.source,W.line=q,W.column=B,W.source=Y,!_.silent)throw W}function ie(ae){var W=ae.exec(Y);if(W){var R=W[0];return F(R),Y=Y.slice(R.length),W}}function pe(){ie(i)}function U(ae){var W;for(ae=ae||[];W=te();)W!==!1&&ae.push(W);return ae}function te(){var ae=K();if(!(m!=Y.charAt(0)||x!=Y.charAt(1))){for(var W=2;g!=Y.charAt(W)&&(x!=Y.charAt(W)||m!=Y.charAt(W+1));)++W;if(W+=2,g===Y.charAt(W-1))return $("End of comment missing");var R=Y.slice(2,W-2);return B+=2,F(R),Y=Y.slice(W),B+=2,ae({type:b,comment:R})}}function ne(){var ae=K(),W=ie(u);if(W){if(te(),!ie(s))return $("property missing ':'");var R=ie(c),J=ae({type:v,property:M(W[0].replace(n,g)),value:R?M(R[0].replace(n,g)):g});return ie(f),J}}function Se(){var ae=[];U(ae);for(var W;W=ne();)W!==!1&&(ae.push(W),U(ae));return ae}return pe(),Se()}function M(Y){return Y?Y.replace(d,g):g}return Lo=w,Lo}var Im;function db(){if(Im)return gi;Im=1;var n=gi&&gi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(gi,"__esModule",{value:!0}),gi.default=i;const a=n(hb());function i(u,s){let c=null;if(!u||typeof u!="string")return c;const f=(0,a.default)(u),d=typeof s=="function";return f.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:x}=p;d?s(m,x,p):x&&(c=c||{},c[m]=x)}),c}return gi}var ba={},$m;function mb(){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,i=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(m){return!m||i.test(m)||n.test(m)},f=function(m,x){return x.toUpperCase()},d=function(m,x){return"".concat(x,"-")},p=function(m,x){return x===void 0&&(x={}),c(m)?m:(m=m.toLowerCase(),x.reactCompat?m=m.replace(s,d):m=m.replace(u,d),m.replace(a,f))};return ba.camelCase=p,ba}var va,Wm;function pb(){if(Wm)return va;Wm=1;var n=va&&va.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(db()),i=mb();function u(s,c){var f={};return!s||typeof s!="string"||(0,a.default)(s,function(d,p){d&&p&&(f[(0,i.camelCase)(d,c)]=p)}),f}return u.default=u,va=u,va}var gb=pb();const yb=Bp(gb),l0=i0("end"),gc=i0("start");function i0(n){return a;function a(i){const u=i&&i.position&&i.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 xb(n){const a=gc(n),i=l0(n);if(a&&i)return{start:a,end:i}}function ka(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?nc(n):""}function nc(n){return ep(n&&n.line)+":"+ep(n&&n.column)}function Pm(n){return nc(n&&n.start)+"-"+nc(n&&n.end)}function ep(n){return n&&typeof n=="number"?n:1}class gt extends Error{constructor(a,i,u){super(),typeof i=="string"&&(u=i,i=void 0);let s="",c={},f=!1;if(i&&("line"in i&&"column"in i?c={place:i}:"start"in i&&"end"in i?c={place:i}:"type"in i?c={ancestors:[i],place:i.position}:c={...i}),typeof a=="string"?s=a:!c.cause&&a&&(f=!0,s=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?c.ruleId=u:(c.source=u.slice(0,p),c.ruleId=u.slice(p+1))}if(!c.place&&c.ancestors&&c.ancestors){const p=c.ancestors[c.ancestors.length-1];p&&(c.place=p.position)}const d=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=ka(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=f&&c.cause&&typeof c.cause.stack=="string"?c.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 yc={}.hasOwnProperty,bb=new Map,vb=/[A-Z]/g,Sb=new Set(["table","tbody","thead","tfoot","tr"]),zb=new Set(["td","th"]),a0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function kb(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=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=Mb(i,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=_b(i,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:i,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?pc:cb,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=r0(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function r0(n,a,i){if(a.type==="element")return Eb(n,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Cb(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Tb(n,a,i);if(a.type==="mdxjsEsm")return wb(n,a);if(a.type==="root")return Ab(n,a,i);if(a.type==="text")return Nb(n,a)}function Eb(n,a,i){const u=n.schema;let s=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=pc,n.schema=s),n.ancestors.push(a);const c=s0(n,a.tagName,!1),f=jb(n,a);let d=bc(n,a);return Sb.has(a.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!eb(p):!0})),u0(n,f,c,a),xc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Cb(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 wb(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);wa(n,a.position)}function Tb(n,a,i){const u=n.schema;let s=u;a.name==="svg"&&u.space==="html"&&(s=pc,n.schema=s),n.ancestors.push(a);const c=a.name===null?n.Fragment:s0(n,a.name,!0),f=Ob(n,a),d=bc(n,a);return u0(n,f,c,a),xc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Ab(n,a,i){const u={};return xc(u,bc(n,a)),n.create(a,n.Fragment,u,i)}function Nb(n,a){return a.value}function u0(n,a,i,u){typeof i!="string"&&i!==n.Fragment&&n.passNode&&(a.node=u)}function xc(n,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(n.children=i)}}function _b(n,a,i){return u;function u(s,c,f,d){const m=Array.isArray(f.children)?i:a;return d?m(c,f,d):m(c,f)}}function Mb(n,a){return i;function i(u,s,c,f){const d=Array.isArray(c.children),p=gc(u);return a(s,c,f,d,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function jb(n,a){const i={};let u,s;for(s in a.properties)if(s!=="children"&&yc.call(a.properties,s)){const c=Db(n,s,a.properties[s]);if(c){const[f,d]=c;n.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&zb.has(a.tagName)?u=d:i[f]=d}}if(u){const c=i.style||(i.style={});c[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return i}function Ob(n,a){const i={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const c=u.data.estree.body[0];c.type;const f=c.expression;f.type;const d=f.properties[0];d.type,Object.assign(i,n.evaluater.evaluateExpression(d.argument))}else wa(n,a.position);else{const s=u.name;let c;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const d=u.value.data.estree.body[0];d.type,c=n.evaluater.evaluateExpression(d.expression)}else wa(n,a.position);else c=u.value===null?!0:u.value;i[s]=c}return i}function bc(n,a){const i=[];let u=-1;const s=n.passKeys?new Map:bb;for(;++u<a.children.length;){const c=a.children[u];let f;if(n.passKeys){const p=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(p){const m=s.get(p)||0;f=p+"-"+m,s.set(p,m+1)}}const d=r0(n,c,f);d!==void 0&&i.push(d)}return i}function Db(n,a,i){const u=ub(n.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=u.commaSeparated?Jx(i):fb(i)),u.property==="style"){let s=typeof i=="object"?i:Rb(n,String(i));return n.stylePropertyNameCase==="css"&&(s=Lb(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?ib[u.property]||u.property:u.attribute,i]}}function Rb(n,a){try{return yb(a,{reactCompat:!0})}catch(i){if(n.ignoreInvalidStyle)return{};const u=i,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=a0+"#cannot-parse-style-attribute",s}}function s0(n,a,i){let u;if(!i)u={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let c=-1,f;for(;++c<s.length;){const d=Xm(s[c])?{type:"Identifier",name:s[c]}:{type:"Literal",value:s[c]};f=f?{type:"MemberExpression",object:f,property:d,computed:!!(c&&d.type==="Literal"),optional:!1}:d}u=f}else u=Xm(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const s=u.value;return yc.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);wa(n)}function wa(n,a){const i=new gt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=n.filePath||void 0,i.url=a0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Lb(n){const a={};let i;for(i in n)yc.call(n,i)&&(a[Bb(i)]=n[i]);return a}function Bb(n){let a=n.replace(vb,Ub);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function Ub(n){return"-"+n.toLowerCase()}const Bo={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"]},Hb={};function vc(n,a){const i=Hb,u=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return o0(n,u,s)}function o0(n,a,i){if(qb(n)){if("value"in n)return n.type==="html"&&!i?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return tp(n.children,a,i)}return Array.isArray(n)?tp(n,a,i):""}function tp(n,a,i){const u=[];let s=-1;for(;++s<n.length;)u[s]=o0(n[s],a,i);return u.join("")}function qb(n){return!!(n&&typeof n=="object")}const np=document.createElement("i");function Sc(n){const a="&"+n+";";np.innerHTML=a;const i=np.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===a?!1:i}function qt(n,a,i,u){const s=n.length;let c=0,f;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,i=i>0?i:0,u.length<1e4)f=Array.from(u),f.unshift(a,i),n.splice(...f);else for(i&&n.splice(a,i);c<u.length;)f=u.slice(c,c+1e4),f.unshift(a,0),n.splice(...f),c+=1e4,a+=1e4}function Wt(n,a){return n.length>0?(qt(n,n.length,0,a),n):a}const lp={}.hasOwnProperty;function c0(n){const a={};let i=-1;for(;++i<n.length;)Yb(a,n[i]);return a}function Yb(n,a){let i;for(i in a){const s=(lp.call(n,i)?n[i]:void 0)||(n[i]={}),c=a[i];let f;if(c)for(f in c){lp.call(s,f)||(s[f]=[]);const d=c[f];Vb(s[f],Array.isArray(d)?d:d?[d]:[])}}}function Vb(n,a){let i=-1;const u=[];for(;++i<a.length;)(a[i].add==="after"?n:u).push(a[i]);qt(n,0,0,u)}function f0(n,a){const i=Number.parseInt(n,a);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function ln(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vt=al(/[A-Za-z]/),pt=al(/[\dA-Za-z]/),Gb=al(/[#-'*+\--9=?A-Z^-~]/);function iu(n){return n!==null&&(n<32||n===127)}const lc=al(/\d/),Qb=al(/[\dA-Fa-f]/),Xb=al(/[!-/:-@[-`{-~]/);function fe(n){return n!==null&&n<-2}function Qe(n){return n!==null&&(n<0||n===32)}function Ce(n){return n===-2||n===-1||n===32}const su=al(new RegExp("\\p{P}|\\p{S}","u")),Cl=al(/\s/);function al(n){return a;function a(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function ki(n){const a=[];let i=-1,u=0,s=0;for(;++i<n.length;){const c=n.charCodeAt(i);let f="";if(c===37&&pt(n.charCodeAt(i+1))&&pt(n.charCodeAt(i+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const d=n.charCodeAt(i+1);c<56320&&d>56319&&d<57344?(f=String.fromCharCode(c,d),s=1):f="�"}else f=String.fromCharCode(c);f&&(a.push(n.slice(u,i),encodeURIComponent(f)),u=i+s+1,f=""),s&&(i+=s,s=0)}return a.join("")+n.slice(u)}function _e(n,a,i,u){const s=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return Ce(p)?(n.enter(i),d(p)):a(p)}function d(p){return Ce(p)&&c++<s?(n.consume(p),d):(n.exit(i),a(p))}}const Zb={tokenize:Fb};function Fb(n){const a=n.attempt(this.parser.constructs.contentInitial,u,s);let i;return a;function u(d){if(d===null){n.consume(d);return}return n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),_e(n,a,"linePrefix")}function s(d){return n.enter("paragraph"),c(d)}function c(d){const p=n.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,f(d)}function f(d){if(d===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(d);return}return fe(d)?(n.consume(d),n.exit("chunkText"),c):(n.consume(d),f)}}const Kb={tokenize:Jb},ip={tokenize:Ib};function Jb(n){const a=this,i=[];let u=0,s,c,f;return d;function d(B){if(u<i.length){const F=i[u];return a.containerState=F[1],n.attempt(F[0].continuation,p,m)(B)}return m(B)}function p(B){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&q();const F=a.events.length;let K=F,L;for(;K--;)if(a.events[K][0]==="exit"&&a.events[K][1].type==="chunkFlow"){L=a.events[K][1].end;break}_(u);let $=F;for(;$<a.events.length;)a.events[$][1].end={...L},$++;return qt(a.events,K+1,0,a.events.slice(F)),a.events.length=$,m(B)}return d(B)}function m(B){if(u===i.length){if(!s)return b(B);if(s.currentConstruct&&s.currentConstruct.concrete)return w(B);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(ip,x,g)(B)}function x(B){return s&&q(),_(u),b(B)}function g(B){return a.parser.lazy[a.now().line]=u!==i.length,f=a.now().offset,w(B)}function b(B){return a.containerState={},n.attempt(ip,v,w)(B)}function v(B){return u++,i.push([a.currentConstruct,a.containerState]),b(B)}function w(B){if(B===null){s&&q(),_(0),n.consume(B);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),M(B)}function M(B){if(B===null){Y(n.exit("chunkFlow"),!0),_(0),n.consume(B);return}return fe(B)?(n.consume(B),Y(n.exit("chunkFlow")),u=0,a.interrupt=void 0,d):(n.consume(B),M)}function Y(B,F){const K=a.sliceStream(B);if(F&&K.push(null),B.previous=c,c&&(c.next=B),c=B,s.defineSkip(B.start),s.write(K),a.parser.lazy[B.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<f&&(!s.events[L][1].end||s.events[L][1].end.offset>f))return;const $=a.events.length;let ie=$,pe,U;for(;ie--;)if(a.events[ie][0]==="exit"&&a.events[ie][1].type==="chunkFlow"){if(pe){U=a.events[ie][1].end;break}pe=!0}for(_(u),L=$;L<a.events.length;)a.events[L][1].end={...U},L++;qt(a.events,ie+1,0,a.events.slice($)),a.events.length=L}}function _(B){let F=i.length;for(;F-- >B;){const K=i[F];a.containerState=K[1],K[0].exit.call(a,n)}i.length=B}function q(){s.write([null]),c=void 0,s=void 0,a.containerState._closeFlow=void 0}}function Ib(n,a,i){return _e(n,n.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Si(n){if(n===null||Qe(n)||Cl(n))return 1;if(su(n))return 2}function ou(n,a,i){const u=[];let s=-1;for(;++s<n.length;){const c=n[s].resolveAll;c&&!u.includes(c)&&(a=c(a,i),u.push(c))}return a}const ic={name:"attention",resolveAll:$b,tokenize:Wb};function $b(n,a){let i=-1,u,s,c,f,d,p,m,x;for(;++i<n.length;)if(n[i][0]==="enter"&&n[i][1].type==="attentionSequence"&&n[i][1]._close){for(u=i;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[i][1]).charCodeAt(0)){if((n[u][1]._close||n[i][1]._open)&&(n[i][1].end.offset-n[i][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[i][1].end.offset-n[i][1].start.offset)%3))continue;p=n[u][1].end.offset-n[u][1].start.offset>1&&n[i][1].end.offset-n[i][1].start.offset>1?2:1;const g={...n[u][1].end},b={...n[i][1].start};ap(g,-p),ap(b,p),f={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...n[u][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...n[i][1].start},end:b},c={type:p>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[i][1].start}},s={type:p>1?"strong":"emphasis",start:{...f.start},end:{...d.end}},n[u][1].end={...f.start},n[i][1].start={...d.end},m=[],n[u][1].end.offset-n[u][1].start.offset&&(m=Wt(m,[["enter",n[u][1],a],["exit",n[u][1],a]])),m=Wt(m,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",c,a]]),m=Wt(m,ou(a.parser.constructs.insideSpan.null,n.slice(u+1,i),a)),m=Wt(m,[["exit",c,a],["enter",d,a],["exit",d,a],["exit",s,a]]),n[i][1].end.offset-n[i][1].start.offset?(x=2,m=Wt(m,[["enter",n[i][1],a],["exit",n[i][1],a]])):x=0,qt(n,u-1,i-u+3,m),i=u+m.length-x-2;break}}for(i=-1;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");return n}function Wb(n,a){const i=this.parser.constructs.attentionMarkers.null,u=this.previous,s=Si(u);let c;return f;function f(p){return c=p,n.enter("attentionSequence"),d(p)}function d(p){if(p===c)return n.consume(p),d;const m=n.exit("attentionSequence"),x=Si(p),g=!x||x===2&&s||i.includes(p),b=!s||s===2&&x||i.includes(u);return m._open=!!(c===42?g:g&&(s||!b)),m._close=!!(c===42?b:b&&(x||!g)),a(p)}}function ap(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const Pb={name:"autolink",tokenize:ev};function ev(n,a,i){let u=0;return s;function s(v){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(v){return vt(v)?(n.consume(v),f):v===64?i(v):m(v)}function f(v){return v===43||v===45||v===46||pt(v)?(u=1,d(v)):m(v)}function d(v){return v===58?(n.consume(v),u=0,p):(v===43||v===45||v===46||pt(v))&&u++<32?(n.consume(v),d):(u=0,m(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||iu(v)?i(v):(n.consume(v),p)}function m(v){return v===64?(n.consume(v),x):Gb(v)?(n.consume(v),m):i(v)}function x(v){return pt(v)?g(v):i(v)}function g(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):b(v)}function b(v){if((v===45||pt(v))&&u++<63){const w=v===45?b:g;return n.consume(v),w}return i(v)}}const _a={partial:!0,tokenize:tv};function tv(n,a,i){return u;function u(c){return Ce(c)?_e(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||fe(c)?a(c):i(c)}}const h0={continuation:{tokenize:lv},exit:iv,name:"blockQuote",tokenize:nv};function nv(n,a,i){const u=this;return s;function s(f){if(f===62){const d=u.containerState;return d.open||(n.enter("blockQuote",{_container:!0}),d.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),c}return i(f)}function c(f){return Ce(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function lv(n,a,i){const u=this;return s;function s(f){return Ce(f)?_e(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(h0,a,i)(f)}}function iv(n){n.exit("blockQuote")}const d0={name:"characterEscape",tokenize:av};function av(n,a,i){return u;function u(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),s}function s(c){return Xb(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(c)}}const m0={name:"characterReference",tokenize:rv};function rv(n,a,i){const u=this;let s=0,c,f;return d;function d(g){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),p}function p(g){return g===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(g),n.exit("characterReferenceMarkerNumeric"),m):(n.enter("characterReferenceValue"),c=31,f=pt,x(g))}function m(g){return g===88||g===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(g),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,f=Qb,x):(n.enter("characterReferenceValue"),c=7,f=lc,x(g))}function x(g){if(g===59&&s){const b=n.exit("characterReferenceValue");return f===pt&&!Sc(u.sliceSerialize(b))?i(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return f(g)&&s++<c?(n.consume(g),x):i(g)}}const rp={partial:!0,tokenize:sv},up={concrete:!0,name:"codeFenced",tokenize:uv};function uv(n,a,i){const u=this,s={partial:!0,tokenize:K};let c=0,f=0,d;return p;function p(L){return m(L)}function m(L){const $=u.events[u.events.length-1];return c=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,d=L,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(L)}function x(L){return L===d?(f++,n.consume(L),x):f<3?i(L):(n.exit("codeFencedFenceSequence"),Ce(L)?_e(n,g,"whitespace")(L):g(L))}function g(L){return L===null||fe(L)?(n.exit("codeFencedFence"),u.interrupt?a(L):n.check(rp,M,F)(L)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),b(L))}function b(L){return L===null||fe(L)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(L)):Ce(L)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),_e(n,v,"whitespace")(L)):L===96&&L===d?i(L):(n.consume(L),b)}function v(L){return L===null||fe(L)?g(L):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===null||fe(L)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(L)):L===96&&L===d?i(L):(n.consume(L),w)}function M(L){return n.attempt(s,F,Y)(L)}function Y(L){return n.enter("lineEnding"),n.consume(L),n.exit("lineEnding"),_}function _(L){return c>0&&Ce(L)?_e(n,q,"linePrefix",c+1)(L):q(L)}function q(L){return L===null||fe(L)?n.check(rp,M,F)(L):(n.enter("codeFlowValue"),B(L))}function B(L){return L===null||fe(L)?(n.exit("codeFlowValue"),q(L)):(n.consume(L),B)}function F(L){return n.exit("codeFenced"),a(L)}function K(L,$,ie){let pe=0;return U;function U(W){return L.enter("lineEnding"),L.consume(W),L.exit("lineEnding"),te}function te(W){return L.enter("codeFencedFence"),Ce(W)?_e(L,ne,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):ne(W)}function ne(W){return W===d?(L.enter("codeFencedFenceSequence"),Se(W)):ie(W)}function Se(W){return W===d?(pe++,L.consume(W),Se):pe>=f?(L.exit("codeFencedFenceSequence"),Ce(W)?_e(L,ae,"whitespace")(W):ae(W)):ie(W)}function ae(W){return W===null||fe(W)?(L.exit("codeFencedFence"),$(W)):ie(W)}}}function sv(n,a,i){const u=this;return s;function s(f){return f===null?i(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c)}function c(f){return u.parser.lazy[u.now().line]?i(f):a(f)}}const Uo={name:"codeIndented",tokenize:cv},ov={partial:!0,tokenize:fv};function cv(n,a,i){const u=this;return s;function s(m){return n.enter("codeIndented"),_e(n,c,"linePrefix",5)(m)}function c(m){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?f(m):i(m)}function f(m){return m===null?p(m):fe(m)?n.attempt(ov,f,p)(m):(n.enter("codeFlowValue"),d(m))}function d(m){return m===null||fe(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),d)}function p(m){return n.exit("codeIndented"),a(m)}}function fv(n,a,i){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?i(f):fe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):_e(n,c,"linePrefix",5)(f)}function c(f){const d=u.events[u.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(f):fe(f)?s(f):i(f)}}const hv={name:"codeText",previous:mv,resolve:dv,tokenize:pv};function dv(n){let a=n.length-4,i=3,u,s;if((n[i][1].type==="lineEnding"||n[i][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(u=i;++u<a;)if(n[u][1].type==="codeTextData"){n[i][1].type="codeTextPadding",n[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(u=i-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 mv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pv(n,a,i){let u=0,s,c;return f;function f(g){return n.enter("codeText"),n.enter("codeTextSequence"),d(g)}function d(g){return g===96?(n.consume(g),u++,d):(n.exit("codeTextSequence"),p(g))}function p(g){return g===null?i(g):g===32?(n.enter("space"),n.consume(g),n.exit("space"),p):g===96?(c=n.enter("codeTextSequence"),s=0,x(g)):fe(g)?(n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),p):(n.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||fe(g)?(n.exit("codeTextData"),p(g)):(n.consume(g),m)}function x(g){return g===96?(n.consume(g),s++,x):s===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(g)):(c.type="codeTextData",m(g))}}class gv{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,i){const u=i??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,i,u){const s=i||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return u&&Sa(this.left,u),c.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 i=this.left.splice(a,Number.POSITIVE_INFINITY);Sa(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Sa(this.left,i.reverse())}}}function Sa(n,a){let i=0;if(a.length<1e4)n.push(...a);else for(;i<a.length;)n.push(...a.slice(i,i+1e4)),i+=1e4}function p0(n){const a={};let i=-1,u,s,c,f,d,p,m;const x=new gv(n);for(;++i<x.length;){for(;i in a;)i=a[i];if(u=x.get(i),i&&u[1].type==="chunkFlow"&&x.get(i-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,c=0,c<p.length&&p[c][1].type==="lineEndingBlank"&&(c+=2),c<p.length&&p[c][1].type==="content"))for(;++c<p.length&&p[c][1].type!=="content";)p[c][1].type==="chunkText"&&(p[c][1]._isInFirstContentOfListItem=!0,c++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,yv(x,i)),i=a[i],m=!0);else if(u[1]._container){for(c=i,s=void 0;c--;)if(f=x.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(x.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=c);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(u[1].end={...x.get(s)[1].start},d=x.slice(s,i),d.unshift(u),x.splice(s,i-s+1,d))}}return qt(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!m}function yv(n,a){const i=n.get(a)[1],u=n.get(a)[2];let s=a-1;const c=[];let f=i._tokenizer;f||(f=u.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const d=f.events,p=[],m={};let x,g,b=-1,v=i,w=0,M=0;const Y=[M];for(;v;){for(;n.get(++s)[1]!==v;);c.push(s),v._tokenizer||(x=u.sliceStream(v),v.next||x.push(null),g&&f.defineSkip(v.start),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(x),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=i;++b<d.length;)d[b][0]==="exit"&&d[b-1][0]==="enter"&&d[b][1].type===d[b-1][1].type&&d[b][1].start.line!==d[b][1].end.line&&(M=b+1,Y.push(M),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):Y.pop(),b=Y.length;b--;){const _=d.slice(Y[b],Y[b+1]),q=c.pop();p.push([q,q+_.length-1]),n.splice(q,2,_)}for(p.reverse(),b=-1;++b<p.length;)m[w+p[b][0]]=w+p[b][1],w+=p[b][1]-p[b][0]-1;return m}const xv={resolve:vv,tokenize:Sv},bv={partial:!0,tokenize:zv};function vv(n){return p0(n),n}function Sv(n,a){let i;return u;function u(d){return n.enter("content"),i=n.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?c(d):fe(d)?n.check(bv,f,c)(d):(n.consume(d),s)}function c(d){return n.exit("chunkContent"),n.exit("content"),a(d)}function f(d){return n.consume(d),n.exit("chunkContent"),i.next=n.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function zv(n,a,i){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),_e(n,c,"linePrefix")}function c(f){if(f===null||fe(f))return i(f);const d=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(f):n.interrupt(u.parser.constructs.flow,i,a)(f)}}function g0(n,a,i,u,s,c,f,d,p){const m=p||Number.POSITIVE_INFINITY;let x=0;return g;function g(_){return _===60?(n.enter(u),n.enter(s),n.enter(c),n.consume(_),n.exit(c),b):_===null||_===32||_===41||iu(_)?i(_):(n.enter(u),n.enter(f),n.enter(d),n.enter("chunkString",{contentType:"string"}),M(_))}function b(_){return _===62?(n.enter(c),n.consume(_),n.exit(c),n.exit(s),n.exit(u),a):(n.enter(d),n.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===62?(n.exit("chunkString"),n.exit(d),b(_)):_===null||_===60||fe(_)?i(_):(n.consume(_),_===92?w:v)}function w(_){return _===60||_===62||_===92?(n.consume(_),v):v(_)}function M(_){return!x&&(_===null||_===41||Qe(_))?(n.exit("chunkString"),n.exit(d),n.exit(f),n.exit(u),a(_)):x<m&&_===40?(n.consume(_),x++,M):_===41?(n.consume(_),x--,M):_===null||_===32||_===40||iu(_)?i(_):(n.consume(_),_===92?Y:M)}function Y(_){return _===40||_===41||_===92?(n.consume(_),M):M(_)}}function y0(n,a,i,u,s,c){const f=this;let d=0,p;return m;function m(v){return n.enter(u),n.enter(s),n.consume(v),n.exit(s),n.enter(c),x}function x(v){return d>999||v===null||v===91||v===93&&!p||v===94&&!d&&"_hiddenFootnoteSupport"in f.parser.constructs?i(v):v===93?(n.exit(c),n.enter(s),n.consume(v),n.exit(s),n.exit(u),a):fe(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||fe(v)||d++>999?(n.exit("chunkString"),x(v)):(n.consume(v),p||(p=!Ce(v)),v===92?b:g)}function b(v){return v===91||v===92||v===93?(n.consume(v),d++,g):g(v)}}function x0(n,a,i,u,s,c){let f;return d;function d(b){return b===34||b===39||b===40?(n.enter(u),n.enter(s),n.consume(b),n.exit(s),f=b===40?41:b,p):i(b)}function p(b){return b===f?(n.enter(s),n.consume(b),n.exit(s),n.exit(u),a):(n.enter(c),m(b))}function m(b){return b===f?(n.exit(c),p(f)):b===null?i(b):fe(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),_e(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(b))}function x(b){return b===f||b===null||fe(b)?(n.exit("chunkString"),m(b)):(n.consume(b),b===92?g:x)}function g(b){return b===f||b===92?(n.consume(b),x):x(b)}}function Ea(n,a){let i;return u;function u(s){return fe(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i=!0,u):Ce(s)?_e(n,u,i?"linePrefix":"lineSuffix")(s):a(s)}}const kv={name:"definition",tokenize:Cv},Ev={partial:!0,tokenize:wv};function Cv(n,a,i){const u=this;let s;return c;function c(v){return n.enter("definition"),f(v)}function f(v){return y0.call(u,n,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function d(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):i(v)}function p(v){return Qe(v)?Ea(n,m)(v):m(v)}function m(v){return g0(n,x,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function x(v){return n.attempt(Ev,g,g)(v)}function g(v){return Ce(v)?_e(n,b,"whitespace")(v):b(v)}function b(v){return v===null||fe(v)?(n.exit("definition"),u.parser.defined.push(s),a(v)):i(v)}}function wv(n,a,i){return u;function u(d){return Qe(d)?Ea(n,s)(d):i(d)}function s(d){return x0(n,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Ce(d)?_e(n,f,"whitespace")(d):f(d)}function f(d){return d===null||fe(d)?a(d):i(d)}}const Tv={name:"hardBreakEscape",tokenize:Av};function Av(n,a,i){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return fe(c)?(n.exit("hardBreakEscape"),a(c)):i(c)}}const Nv={name:"headingAtx",resolve:_v,tokenize:Mv};function _v(n,a){let i=n.length-2,u=3,s,c;return n[u][1].type==="whitespace"&&(u+=2),i-2>u&&n[i][1].type==="whitespace"&&(i-=2),n[i][1].type==="atxHeadingSequence"&&(u===i-1||i-4>u&&n[i-2][1].type==="whitespace")&&(i-=u+1===i?2:4),i>u&&(s={type:"atxHeadingText",start:n[u][1].start,end:n[i][1].end},c={type:"chunkText",start:n[u][1].start,end:n[i][1].end,contentType:"text"},qt(n,u,i-u+1,[["enter",s,a],["enter",c,a],["exit",c,a],["exit",s,a]])),n}function Mv(n,a,i){let u=0;return s;function s(x){return n.enter("atxHeading"),c(x)}function c(x){return n.enter("atxHeadingSequence"),f(x)}function f(x){return x===35&&u++<6?(n.consume(x),f):x===null||Qe(x)?(n.exit("atxHeadingSequence"),d(x)):i(x)}function d(x){return x===35?(n.enter("atxHeadingSequence"),p(x)):x===null||fe(x)?(n.exit("atxHeading"),a(x)):Ce(x)?_e(n,d,"whitespace")(x):(n.enter("atxHeadingText"),m(x))}function p(x){return x===35?(n.consume(x),p):(n.exit("atxHeadingSequence"),d(x))}function m(x){return x===null||x===35||Qe(x)?(n.exit("atxHeadingText"),d(x)):(n.consume(x),m)}}const jv=["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"],sp=["pre","script","style","textarea"],Ov={concrete:!0,name:"htmlFlow",resolveTo:Lv,tokenize:Bv},Dv={partial:!0,tokenize:Hv},Rv={partial:!0,tokenize:Uv};function Lv(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 Bv(n,a,i){const u=this;let s,c,f,d,p;return m;function m(k){return x(k)}function x(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),g}function g(k){return k===33?(n.consume(k),b):k===47?(n.consume(k),c=!0,M):k===63?(n.consume(k),s=3,u.interrupt?a:E):vt(k)?(n.consume(k),f=String.fromCharCode(k),Y):i(k)}function b(k){return k===45?(n.consume(k),s=2,v):k===91?(n.consume(k),s=5,d=0,w):vt(k)?(n.consume(k),s=4,u.interrupt?a:E):i(k)}function v(k){return k===45?(n.consume(k),u.interrupt?a:E):i(k)}function w(k){const ee="CDATA[";return k===ee.charCodeAt(d++)?(n.consume(k),d===ee.length?u.interrupt?a:ne:w):i(k)}function M(k){return vt(k)?(n.consume(k),f=String.fromCharCode(k),Y):i(k)}function Y(k){if(k===null||k===47||k===62||Qe(k)){const ee=k===47,de=f.toLowerCase();return!ee&&!c&&sp.includes(de)?(s=1,u.interrupt?a(k):ne(k)):jv.includes(f.toLowerCase())?(s=6,ee?(n.consume(k),_):u.interrupt?a(k):ne(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?i(k):c?q(k):B(k))}return k===45||pt(k)?(n.consume(k),f+=String.fromCharCode(k),Y):i(k)}function _(k){return k===62?(n.consume(k),u.interrupt?a:ne):i(k)}function q(k){return Ce(k)?(n.consume(k),q):U(k)}function B(k){return k===47?(n.consume(k),U):k===58||k===95||vt(k)?(n.consume(k),F):Ce(k)?(n.consume(k),B):U(k)}function F(k){return k===45||k===46||k===58||k===95||pt(k)?(n.consume(k),F):K(k)}function K(k){return k===61?(n.consume(k),L):Ce(k)?(n.consume(k),K):B(k)}function L(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(n.consume(k),p=k,$):Ce(k)?(n.consume(k),L):ie(k)}function $(k){return k===p?(n.consume(k),p=null,pe):k===null||fe(k)?i(k):(n.consume(k),$)}function ie(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Qe(k)?K(k):(n.consume(k),ie)}function pe(k){return k===47||k===62||Ce(k)?B(k):i(k)}function U(k){return k===62?(n.consume(k),te):i(k)}function te(k){return k===null||fe(k)?ne(k):Ce(k)?(n.consume(k),te):i(k)}function ne(k){return k===45&&s===2?(n.consume(k),R):k===60&&s===1?(n.consume(k),J):k===62&&s===4?(n.consume(k),T):k===63&&s===3?(n.consume(k),E):k===93&&s===5?(n.consume(k),ve):fe(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(Dv,G,Se)(k)):k===null||fe(k)?(n.exit("htmlFlowData"),Se(k)):(n.consume(k),ne)}function Se(k){return n.check(Rv,ae,G)(k)}function ae(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),W}function W(k){return k===null||fe(k)?Se(k):(n.enter("htmlFlowData"),ne(k))}function R(k){return k===45?(n.consume(k),E):ne(k)}function J(k){return k===47?(n.consume(k),f="",ue):ne(k)}function ue(k){if(k===62){const ee=f.toLowerCase();return sp.includes(ee)?(n.consume(k),T):ne(k)}return vt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),ue):ne(k)}function ve(k){return k===93?(n.consume(k),E):ne(k)}function E(k){return k===62?(n.consume(k),T):k===45&&s===2?(n.consume(k),E):ne(k)}function T(k){return k===null||fe(k)?(n.exit("htmlFlowData"),G(k)):(n.consume(k),T)}function G(k){return n.exit("htmlFlow"),a(k)}}function Uv(n,a,i){const u=this;return s;function s(f){return fe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c):i(f)}function c(f){return u.parser.lazy[u.now().line]?i(f):a(f)}}function Hv(n,a,i){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(_a,a,i)}}const qv={name:"htmlText",tokenize:Yv};function Yv(n,a,i){const u=this;let s,c,f;return d;function d(E){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(E),p}function p(E){return E===33?(n.consume(E),m):E===47?(n.consume(E),K):E===63?(n.consume(E),B):vt(E)?(n.consume(E),ie):i(E)}function m(E){return E===45?(n.consume(E),x):E===91?(n.consume(E),c=0,w):vt(E)?(n.consume(E),q):i(E)}function x(E){return E===45?(n.consume(E),v):i(E)}function g(E){return E===null?i(E):E===45?(n.consume(E),b):fe(E)?(f=g,J(E)):(n.consume(E),g)}function b(E){return E===45?(n.consume(E),v):g(E)}function v(E){return E===62?R(E):E===45?b(E):g(E)}function w(E){const T="CDATA[";return E===T.charCodeAt(c++)?(n.consume(E),c===T.length?M:w):i(E)}function M(E){return E===null?i(E):E===93?(n.consume(E),Y):fe(E)?(f=M,J(E)):(n.consume(E),M)}function Y(E){return E===93?(n.consume(E),_):M(E)}function _(E){return E===62?R(E):E===93?(n.consume(E),_):M(E)}function q(E){return E===null||E===62?R(E):fe(E)?(f=q,J(E)):(n.consume(E),q)}function B(E){return E===null?i(E):E===63?(n.consume(E),F):fe(E)?(f=B,J(E)):(n.consume(E),B)}function F(E){return E===62?R(E):B(E)}function K(E){return vt(E)?(n.consume(E),L):i(E)}function L(E){return E===45||pt(E)?(n.consume(E),L):$(E)}function $(E){return fe(E)?(f=$,J(E)):Ce(E)?(n.consume(E),$):R(E)}function ie(E){return E===45||pt(E)?(n.consume(E),ie):E===47||E===62||Qe(E)?pe(E):i(E)}function pe(E){return E===47?(n.consume(E),R):E===58||E===95||vt(E)?(n.consume(E),U):fe(E)?(f=pe,J(E)):Ce(E)?(n.consume(E),pe):R(E)}function U(E){return E===45||E===46||E===58||E===95||pt(E)?(n.consume(E),U):te(E)}function te(E){return E===61?(n.consume(E),ne):fe(E)?(f=te,J(E)):Ce(E)?(n.consume(E),te):pe(E)}function ne(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(n.consume(E),s=E,Se):fe(E)?(f=ne,J(E)):Ce(E)?(n.consume(E),ne):(n.consume(E),ae)}function Se(E){return E===s?(n.consume(E),s=void 0,W):E===null?i(E):fe(E)?(f=Se,J(E)):(n.consume(E),Se)}function ae(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||Qe(E)?pe(E):(n.consume(E),ae)}function W(E){return E===47||E===62||Qe(E)?pe(E):i(E)}function R(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),a):i(E)}function J(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),ue}function ue(E){return Ce(E)?_e(n,ve,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ve(E)}function ve(E){return n.enter("htmlTextData"),f(E)}}const zc={name:"labelEnd",resolveAll:Xv,resolveTo:Zv,tokenize:Fv},Vv={tokenize:Kv},Gv={tokenize:Jv},Qv={tokenize:Iv};function Xv(n){let a=-1;const i=[];for(;++a<n.length;){const u=n[a][1];if(i.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!==i.length&&qt(n,0,n.length,i),n}function Zv(n,a){let i=n.length,u=0,s,c,f,d;for(;i--;)if(s=n[i][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(n[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=i,s.type!=="labelLink")){u=2;break}}else s.type==="labelEnd"&&(f=i);const p={type:n[c][1].type==="labelLink"?"link":"image",start:{...n[c][1].start},end:{...n[n.length-1][1].end}},m={type:"label",start:{...n[c][1].start},end:{...n[f][1].end}},x={type:"labelText",start:{...n[c+u+2][1].end},end:{...n[f-2][1].start}};return d=[["enter",p,a],["enter",m,a]],d=Wt(d,n.slice(c+1,c+u+3)),d=Wt(d,[["enter",x,a]]),d=Wt(d,ou(a.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),a)),d=Wt(d,[["exit",x,a],n[f-2],n[f-1],["exit",m,a]]),d=Wt(d,n.slice(f+1)),d=Wt(d,[["exit",p,a]]),qt(n,c,n.length,d),n}function Fv(n,a,i){const u=this;let s=u.events.length,c,f;for(;s--;)if((u.events[s][1].type==="labelImage"||u.events[s][1].type==="labelLink")&&!u.events[s][1]._balanced){c=u.events[s][1];break}return d;function d(b){return c?c._inactive?g(b):(f=u.parser.defined.includes(ln(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(b),n.exit("labelMarker"),n.exit("labelEnd"),p):i(b)}function p(b){return b===40?n.attempt(Vv,x,f?x:g)(b):b===91?n.attempt(Gv,x,f?m:g)(b):f?x(b):g(b)}function m(b){return n.attempt(Qv,x,g)(b)}function x(b){return a(b)}function g(b){return c._balanced=!0,i(b)}}function Kv(n,a,i){return u;function u(g){return n.enter("resource"),n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),s}function s(g){return Qe(g)?Ea(n,c)(g):c(g)}function c(g){return g===41?x(g):g0(n,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Qe(g)?Ea(n,p)(g):x(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?x0(n,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):x(g)}function m(g){return Qe(g)?Ea(n,x)(g):x(g)}function x(g){return g===41?(n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),n.exit("resource"),a):i(g)}}function Jv(n,a,i){const u=this;return s;function s(d){return y0.call(u,n,c,f,"reference","referenceMarker","referenceString")(d)}function c(d){return u.parser.defined.includes(ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(d):i(d)}function f(d){return i(d)}}function Iv(n,a,i){return u;function u(c){return n.enter("reference"),n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),s}function s(c){return c===93?(n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),n.exit("reference"),a):i(c)}}const $v={name:"labelStartImage",resolveAll:zc.resolveAll,tokenize:Wv};function Wv(n,a,i){const u=this;return s;function s(d){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(d),n.exit("labelImageMarker"),c}function c(d){return d===91?(n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelImage"),f):i(d)}function f(d){return d===94&&"_hiddenFootnoteSupport"in u.parser.constructs?i(d):a(d)}}const Pv={name:"labelStartLink",resolveAll:zc.resolveAll,tokenize:e2};function e2(n,a,i){const u=this;return s;function s(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),c}function c(f){return f===94&&"_hiddenFootnoteSupport"in u.parser.constructs?i(f):a(f)}}const Ho={name:"lineEnding",tokenize:t2};function t2(n,a){return i;function i(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),_e(n,a,"linePrefix")}}const nu={name:"thematicBreak",tokenize:n2};function n2(n,a,i){let u=0,s;return c;function c(m){return n.enter("thematicBreak"),f(m)}function f(m){return s=m,d(m)}function d(m){return m===s?(n.enter("thematicBreakSequence"),p(m)):u>=3&&(m===null||fe(m))?(n.exit("thematicBreak"),a(m)):i(m)}function p(m){return m===s?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),Ce(m)?_e(n,d,"whitespace")(m):d(m))}}const Nt={continuation:{tokenize:r2},exit:s2,name:"list",tokenize:a2},l2={partial:!0,tokenize:o2},i2={partial:!0,tokenize:u2};function a2(n,a,i){const u=this,s=u.events[u.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return d;function d(v){const w=u.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!u.containerState.marker||v===u.containerState.marker:lc(v)){if(u.containerState.type||(u.containerState.type=w,n.enter(w,{_container:!0})),w==="listUnordered")return n.enter("listItemPrefix"),v===42||v===45?n.check(nu,i,m)(v):m(v);if(!u.interrupt||v===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(v)}return i(v)}function p(v){return lc(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"),m(v)):i(v)}function m(v){return n.enter("listItemMarker"),n.consume(v),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||v,n.check(_a,u.interrupt?i:x,n.attempt(l2,b,g))}function x(v){return u.containerState.initialBlankLine=!0,c++,b(v)}function g(v){return Ce(v)?(n.enter("listItemPrefixWhitespace"),n.consume(v),n.exit("listItemPrefixWhitespace"),b):i(v)}function b(v){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(v)}}function r2(n,a,i){const u=this;return u.containerState._closeFlow=void 0,n.check(_a,s,c);function s(d){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,_e(n,a,"listItemIndent",u.containerState.size+1)(d)}function c(d){return u.containerState.furtherBlankLines||!Ce(d)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,f(d)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(i2,a,f)(d))}function f(d){return u.containerState._closeFlow=!0,u.interrupt=void 0,_e(n,n.attempt(Nt,a,i),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function u2(n,a,i){const u=this;return _e(n,s,"listItemIndent",u.containerState.size+1);function s(c){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(c):i(c)}}function s2(n){n.exit(this.containerState.type)}function o2(n,a,i){const u=this;return _e(n,s,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(c){const f=u.events[u.events.length-1];return!Ce(c)&&f&&f[1].type==="listItemPrefixWhitespace"?a(c):i(c)}}const op={name:"setextUnderline",resolveTo:c2,tokenize:f2};function c2(n,a){let i=n.length,u,s,c;for(;i--;)if(n[i][0]==="enter"){if(n[i][1].type==="content"){u=i;break}n[i][1].type==="paragraph"&&(s=i)}else n[i][1].type==="content"&&n.splice(i,1),!c&&n[i][1].type==="definition"&&(c=i);const f={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",c?(n.splice(s,0,["enter",f,a]),n.splice(c+1,0,["exit",n[u][1],a]),n[u][1].end={...n[c][1].end}):n[u][1]=f,n.push(["exit",f,a]),n}function f2(n,a,i){const u=this;let s;return c;function c(m){let x=u.events.length,g;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){g=u.events[x][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||g)?(n.enter("setextHeadingLine"),s=m,f(m)):i(m)}function f(m){return n.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===s?(n.consume(m),d):(n.exit("setextHeadingLineSequence"),Ce(m)?_e(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||fe(m)?(n.exit("setextHeadingLine"),a(m)):i(m)}}const h2={tokenize:d2};function d2(n){const a=this,i=n.attempt(_a,u,n.attempt(this.parser.constructs.flowInitial,s,_e(n,n.attempt(this.parser.constructs.flow,s,n.attempt(xv,s)),"linePrefix")));return i;function u(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),a.currentConstruct=void 0,i}function s(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),a.currentConstruct=void 0,i}}const m2={resolveAll:v0()},p2=b0("string"),g2=b0("text");function b0(n){return{resolveAll:v0(n==="text"?y2:void 0),tokenize:a};function a(i){const u=this,s=this.parser.constructs[n],c=i.attempt(s,f,d);return f;function f(x){return m(x)?c(x):d(x)}function d(x){if(x===null){i.consume(x);return}return i.enter("data"),i.consume(x),p}function p(x){return m(x)?(i.exit("data"),c(x)):(i.consume(x),p)}function m(x){if(x===null)return!0;const g=s[x];let b=-1;if(g)for(;++b<g.length;){const v=g[b];if(!v.previous||v.previous.call(u,u.previous))return!0}return!1}}}function v0(n){return a;function a(i,u){let s=-1,c;for(;++s<=i.length;)c===void 0?i[s]&&i[s][1].type==="data"&&(c=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==c+2&&(i[c][1].end=i[s-1][1].end,i.splice(c+2,s-c-2),s=c+2),c=void 0);return n?n(i,u):i}}function y2(n,a){let i=0;for(;++i<=n.length;)if((i===n.length||n[i][1].type==="lineEnding")&&n[i-1][1].type==="data"){const u=n[i-1][1],s=a.sliceStream(u);let c=s.length,f=-1,d=0,p;for(;c--;){const m=s[c];if(typeof m=="string"){for(f=m.length;m.charCodeAt(f-1)===32;)d++,f--;if(f)break;f=-1}else if(m===-2)p=!0,d++;else if(m!==-1){c++;break}}if(a._contentTypeTextTrailing&&i===n.length&&(d=0),d){const m={type:i===n.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?f:u.start._bufferIndex+f,_index:u.start._index+c,line:u.end.line,column:u.end.column-d,offset:u.end.offset-d},end:{...u.end}};u.end={...m.start},u.start.offset===u.end.offset?Object.assign(u,m):(n.splice(i,0,["enter",m,a],["exit",m,a]),i+=2)}i++}return n}const x2={42:Nt,43:Nt,45:Nt,48:Nt,49:Nt,50:Nt,51:Nt,52:Nt,53:Nt,54:Nt,55:Nt,56:Nt,57:Nt,62:h0},b2={91:kv},v2={[-2]:Uo,[-1]:Uo,32:Uo},S2={35:Nv,42:nu,45:[op,nu],60:Ov,61:op,95:nu,96:up,126:up},z2={38:m0,92:d0},k2={[-5]:Ho,[-4]:Ho,[-3]:Ho,33:$v,38:m0,42:ic,60:[Pb,qv],91:Pv,92:[Tv,d0],93:zc,95:ic,96:hv},E2={null:[ic,m2]},C2={null:[42,95]},w2={null:[]},T2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:C2,contentInitial:b2,disable:w2,document:x2,flow:S2,flowInitial:v2,insideSpan:E2,string:z2,text:k2},Symbol.toStringTag,{value:"Module"}));function A2(n,a,i){let u={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},c=[];let f=[],d=[];const p={attempt:$(K),check:$(L),consume:q,enter:B,exit:F,interrupt:$(L,{interrupt:!0})},m={code:null,containerState:{},defineSkip:M,events:[],now:w,parser:n,previous:null,sliceSerialize:b,sliceStream:v,write:g};let x=a.tokenize.call(m,p);return a.resolveAll&&c.push(a),m;function g(te){return f=Wt(f,te),Y(),f[f.length-1]!==null?[]:(ie(a,0),m.events=ou(c,m.events,m),m.events)}function b(te,ne){return _2(v(te),ne)}function v(te){return N2(f,te)}function w(){const{_bufferIndex:te,_index:ne,line:Se,column:ae,offset:W}=u;return{_bufferIndex:te,_index:ne,line:Se,column:ae,offset:W}}function M(te){s[te.line]=te.column,U()}function Y(){let te;for(;u._index<f.length;){const ne=f[u._index];if(typeof ne=="string")for(te=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===te&&u._bufferIndex<ne.length;)_(ne.charCodeAt(u._bufferIndex));else _(ne)}}function _(te){x=x(te)}function q(te){fe(te)?(u.line++,u.column=1,u.offset+=te===-3?2:1,U()):te!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===f[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=te}function B(te,ne){const Se=ne||{};return Se.type=te,Se.start=w(),m.events.push(["enter",Se,m]),d.push(Se),Se}function F(te){const ne=d.pop();return ne.end=w(),m.events.push(["exit",ne,m]),ne}function K(te,ne){ie(te,ne.from)}function L(te,ne){ne.restore()}function $(te,ne){return Se;function Se(ae,W,R){let J,ue,ve,E;return Array.isArray(ae)?G(ae):"tokenize"in ae?G([ae]):T(ae);function T(se){return we;function we(Ke){const Ue=Ke!==null&&se[Ke],Yt=Ke!==null&&se.null,fn=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(Yt)?Yt:Yt?[Yt]:[]];return G(fn)(Ke)}}function G(se){return J=se,ue=0,se.length===0?R:k(se[ue])}function k(se){return we;function we(Ke){return E=pe(),ve=se,se.partial||(m.currentConstruct=se),se.name&&m.parser.constructs.disable.null.includes(se.name)?de():se.tokenize.call(ne?Object.assign(Object.create(m),ne):m,p,ee,de)(Ke)}}function ee(se){return te(ve,E),W}function de(se){return E.restore(),++ue<J.length?k(J[ue]):R}}}function ie(te,ne){te.resolveAll&&!c.includes(te)&&c.push(te),te.resolve&&qt(m.events,ne,m.events.length-ne,te.resolve(m.events.slice(ne),m)),te.resolveTo&&(m.events=te.resolveTo(m.events,m))}function pe(){const te=w(),ne=m.previous,Se=m.currentConstruct,ae=m.events.length,W=Array.from(d);return{from:ae,restore:R};function R(){u=te,m.previous=ne,m.currentConstruct=Se,m.events.length=ae,d=W,U()}}function U(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function N2(n,a){const i=a.start._index,u=a.start._bufferIndex,s=a.end._index,c=a.end._bufferIndex;let f;if(i===s)f=[n[i].slice(u,c)];else{if(f=n.slice(i,s),u>-1){const d=f[0];typeof d=="string"?f[0]=d.slice(u):f.shift()}c>0&&f.push(n[s].slice(0,c))}return f}function _2(n,a){let i=-1;const u=[];let s;for(;++i<n.length;){const c=n[i];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
|
|
244
|
-
`;break}case-3:{f=`\r
|
|
245
|
-
`;break}case-2:{f=a?" ":" ";break}case-1:{if(!a&&s)continue;f=" ";break}default:f=String.fromCharCode(c)}s=c===-2,u.push(f)}return u.join("")}function M2(n){const u={constructs:c0([T2,...(n||{}).extensions||[]]),content:s(Zb),defined:[],document:s(Kb),flow:s(h2),lazy:{},string:s(p2),text:s(g2)};return u;function s(c){return f;function f(d){return A2(u,c,d)}}}function j2(n){for(;!p0(n););return n}const cp=/[\0\t\n\r]/g;function O2(){let n=1,a="",i=!0,u;return s;function s(c,f,d){const p=[];let m,x,g,b,v;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),g=0,a="",i&&(c.charCodeAt(0)===65279&&g++,i=void 0);g<c.length;){if(cp.lastIndex=g,m=cp.exec(c),b=m&&m.index!==void 0?m.index:c.length,v=c.charCodeAt(b),!m){a=c.slice(g);break}if(v===10&&g===b&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),g<b&&(p.push(c.slice(g,b)),n+=b-g),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}g=b+1}return d&&(u&&p.push(-5),a&&p.push(a),p.push(null)),p}}const D2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function R2(n){return n.replace(D2,L2)}function L2(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),c=s===120||s===88;return f0(i.slice(c?2:1),c?16:10)}return Sc(i)||n}const S0={}.hasOwnProperty;function B2(n,a,i){return typeof a!="string"&&(i=a,a=void 0),U2(i)(j2(M2(i).document().write(O2()(n,a,!0))))}function U2(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Nl),autolinkProtocol:pe,autolinkEmail:pe,atxHeading:c(Tl),blockQuote:c(Yt),characterEscape:pe,characterReference:pe,codeFenced:c(fn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(fn,f),codeText:c(Ei,f),codeTextData:pe,data:pe,codeFlowValue:pe,definition:c(Oa),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(hn),hardBreakEscape:c(Al),hardBreakTrailing:c(Al),htmlFlow:c(Da,f),htmlFlowData:pe,htmlText:c(Da,f),htmlTextData:pe,image:c(Ra),label:f,link:c(Nl),listItem:c(Ci),listItemValue:b,listOrdered:c(_l,g),listUnordered:c(_l),paragraph:c(du),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(Tl),strong:c(mu),thematicBreak:c(pu)},exit:{atxHeading:p(),atxHeadingSequence:K,autolink:p(),autolinkEmail:Ue,autolinkProtocol:Ke,blockQuote:p(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:se,characterReference:we,codeFenced:p(Y),codeFencedFence:M,codeFencedFenceInfo:v,codeFencedFenceMeta:w,codeFlowValue:U,codeIndented:p(_),codeText:p(W),codeTextData:U,data:U,definition:p(),definitionDestinationString:F,definitionLabelString:q,definitionTitleString:B,emphasis:p(),hardBreakEscape:p(ne),hardBreakTrailing:p(ne),htmlFlow:p(Se),htmlFlowData:U,htmlText:p(ae),htmlTextData:U,image:p(J),label:ve,labelText:ue,lineEnding:te,link:p(R),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ee,resourceDestinationString:E,resourceTitleString:T,resource:G,setextHeading:p(ie),setextHeadingLineSequence:$,setextHeadingText:L,strong:p(),thematicBreak:p()}};z0(a,(n||{}).mdastExtensions||[]);const i={};return u;function u(Q){let P={type:"root",children:[]};const me={stack:[P],tokenStack:[],config:a,enter:d,exit:m,buffer:f,resume:x,data:i},ze=[];let Re=-1;for(;++Re<Q.length;)if(Q[Re][1].type==="listOrdered"||Q[Re][1].type==="listUnordered")if(Q[Re][0]==="enter")ze.push(Re);else{const Mt=ze.pop();Re=s(Q,Mt,Re)}for(Re=-1;++Re<Q.length;){const Mt=a[Q[Re][0]];S0.call(Mt,Q[Re][1].type)&&Mt[Q[Re][1].type].call(Object.assign({sliceSerialize:Q[Re][2].sliceSerialize},me),Q[Re][1])}if(me.tokenStack.length>0){const Mt=me.tokenStack[me.tokenStack.length-1];(Mt[1]||fp).call(me,void 0,Mt[0])}for(P.position={start:il(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:il(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<a.transforms.length;)P=a.transforms[Re](P)||P;return P}function s(Q,P,me){let ze=P-1,Re=-1,Mt=!1,dn,xt,at,St;for(;++ze<=me;){const Ve=Q[ze];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?Re++:Re--,St=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(dn&&!St&&!Re&&!at&&(at=ze),St=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:St=void 0}if(!Re&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||Re===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(dn){let On=ze;for(xt=void 0;On--;){const Pt=Q[On];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;xt&&(Q[xt][1].type="lineEndingBlank",Mt=!0),Pt[1].type="lineEnding",xt=On}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?Q[xt][1].start:Ve[1].end),Q.splice(xt||ze,0,["exit",dn,Ve[2]]),ze++,me++}if(Ve[1].type==="listItemPrefix"){const On={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};dn=On,Q.splice(ze,0,["enter",On,Ve[2]]),ze++,me++,at=void 0,St=!0}}}return Q[P][1]._spread=Mt,me}function c(Q,P){return me;function me(ze){d.call(this,Q(ze),ze),P&&P.call(this,ze)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(Q,P,me){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([P,me||void 0]),Q.position={start:il(P.start),end:void 0}}function p(Q){return P;function P(me){Q&&Q.call(this,me),m.call(this,me)}}function m(Q,P){const me=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==Q.type&&(P?P.call(this,Q,ze[0]):(ze[1]||fp).call(this,Q,ze[0]));else throw new Error("Cannot close `"+Q.type+"` ("+ka({start:Q.start,end:Q.end})+"): it’s not open");me.position.end=il(Q.end)}function x(){return vc(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(Q){if(this.data.expectingFirstListItemValue){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function v(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.lang=Q}function w(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.meta=Q}function M(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Y(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.value=Q.replace(/(\r?\n|\r)$/g,"")}function q(Q){const P=this.resume(),me=this.stack[this.stack.length-1];me.label=P,me.identifier=ln(this.sliceSerialize(Q)).toLowerCase()}function B(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.title=Q}function F(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.url=Q}function K(Q){const P=this.stack[this.stack.length-1];if(!P.depth){const me=this.sliceSerialize(Q).length;P.depth=me}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function $(Q){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function ie(){this.data.setextHeadingSlurpLineEnding=void 0}function pe(Q){const me=this.stack[this.stack.length-1].children;let ze=me[me.length-1];(!ze||ze.type!=="text")&&(ze=yt(),ze.position={start:il(Q.start),end:void 0},me.push(ze)),this.stack.push(ze)}function U(Q){const P=this.stack.pop();P.value+=this.sliceSerialize(Q),P.position.end=il(Q.end)}function te(Q){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=P.children[P.children.length-1];me.position.end=il(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(P.type)&&(pe.call(this,Q),U.call(this,Q))}function ne(){this.data.atHardBreak=!0}function Se(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.value=Q}function ae(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.value=Q}function W(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.value=Q}function R(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=P,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function J(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=P,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function ue(Q){const P=this.sliceSerialize(Q),me=this.stack[this.stack.length-2];me.label=R2(P),me.identifier=ln(P).toLowerCase()}function ve(){const Q=this.stack[this.stack.length-1],P=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const ze=Q.children;me.children=ze}else me.alt=P}function E(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.url=Q}function T(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.title=Q}function G(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function ee(Q){const P=this.resume(),me=this.stack[this.stack.length-1];me.label=P,me.identifier=ln(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function de(Q){this.data.characterReferenceType=Q.type}function se(Q){const P=this.sliceSerialize(Q),me=this.data.characterReferenceType;let ze;me?(ze=f0(P,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=Sc(P);const Re=this.stack[this.stack.length-1];Re.value+=ze}function we(Q){const P=this.stack.pop();P.position.end=il(Q.end)}function Ke(Q){U.call(this,Q);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(Q)}function Ue(Q){U.call(this,Q);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(Q)}function Yt(){return{type:"blockquote",children:[]}}function fn(){return{type:"code",lang:null,meta:null,value:""}}function Ei(){return{type:"inlineCode",value:""}}function Oa(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function hn(){return{type:"emphasis",children:[]}}function Tl(){return{type:"heading",depth:0,children:[]}}function Al(){return{type:"break"}}function Da(){return{type:"html",value:""}}function Ra(){return{type:"image",title:null,url:"",alt:null}}function Nl(){return{type:"link",title:null,url:"",children:[]}}function _l(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Ci(Q){return{type:"listItem",spread:Q._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 il(n){return{line:n.line,column:n.column,offset:n.offset}}function z0(n,a){let i=-1;for(;++i<a.length;){const u=a[i];Array.isArray(u)?z0(n,u):H2(n,u)}}function H2(n,a){let i;for(i in a)if(S0.call(a,i))switch(i){case"canContainEols":{const u=a[i];u&&n[i].push(...u);break}case"transforms":{const u=a[i];u&&n[i].push(...u);break}case"enter":case"exit":{const u=a[i];u&&Object.assign(n[i],u);break}}}function fp(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+ka({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+ka({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+ka({start:a.start,end:a.end})+") is still open")}function q2(n){const a=this;a.parser=i;function i(u){return B2(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function Y2(n,a){const i={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,i),n.applyData(a,i)}function V2(n,a){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,i),[n.applyData(a,i),{type:"text",value:`
|
|
246
|
-
`}]}function G2(n,a){const i=a.value?a.value+`
|
|
247
|
-
`:"",u={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(u.className=["language-"+s[0]]);let c={type:"element",tagName:"code",properties:u,children:[{type:"text",value:i}]};return a.meta&&(c.data={meta:a.meta}),n.patch(a,c),c=n.applyData(a,c),c={type:"element",tagName:"pre",properties:{},children:[c]},n.patch(a,c),c}function Q2(n,a){const i={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function X2(n,a){const i={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function Z2(n,a){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),s=ki(u.toLowerCase()),c=n.footnoteOrder.indexOf(u);let f,d=n.footnoteCounts.get(u);d===void 0?(d=0,n.footnoteOrder.push(u),f=n.footnoteOrder.length):f=c+1,d+=1,n.footnoteCounts.set(u,d);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(a,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(a,m),n.applyData(a,m)}function F2(n,a){const i={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function K2(n,a){if(n.options.allowDangerousHtml){const i={type:"raw",value:a.value};return n.patch(a,i),n.applyData(a,i)}}function k0(n,a){const i=a.referenceType;let u="]";if(i==="collapsed"?u+="[]":i==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];const s=n.all(a),c=s[0];c&&c.type==="text"?c.value="["+c.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 J2(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return k0(n,a);const s={src:ki(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,c),n.applyData(a,c)}function I2(n,a){const i={src:ki(a.url)};a.alt!==null&&a.alt!==void 0&&(i.alt=a.alt),a.title!==null&&a.title!==void 0&&(i.title=a.title);const u={type:"element",tagName:"img",properties:i,children:[]};return n.patch(a,u),n.applyData(a,u)}function $2(n,a){const i={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,i);const u={type:"element",tagName:"code",properties:{},children:[i]};return n.patch(a,u),n.applyData(a,u)}function W2(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return k0(n,a);const s={href:ki(u.url||"")};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,c),n.applyData(a,c)}function P2(n,a){const i={href:ki(a.url)};a.title!==null&&a.title!==void 0&&(i.title=a.title);const u={type:"element",tagName:"a",properties:i,children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function eS(n,a,i){const u=n.all(a),s=i?tS(i):E0(a),c={},f=[];if(typeof a.checked=="boolean"){const x=u[0];let g;x&&x.type==="element"&&x.tagName==="p"?g=x:(g={type:"element",tagName:"p",properties:{},children:[]},u.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<u.length;){const x=u[d];(s||d!==0||x.type!=="element"||x.tagName!=="p")&&f.push({type:"text",value:`
|
|
248
|
-
`}),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:`
|
|
249
|
-
`});const m={type:"element",tagName:"li",properties:c,children:f};return n.patch(a,m),n.applyData(a,m)}function tS(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const i=n.children;let u=-1;for(;!a&&++u<i.length;)a=E0(i[u])}return a}function E0(n){const a=n.spread;return a??n.children.length>1}function nS(n,a){const i={},u=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(i.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")){i.className=["contains-task-list"];break}}const c={type:"element",tagName:a.ordered?"ol":"ul",properties:i,children:n.wrap(u,!0)};return n.patch(a,c),n.applyData(a,c)}function lS(n,a){const i={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function iS(n,a){const i={type:"root",children:n.wrap(n.all(a))};return n.patch(a,i),n.applyData(a,i)}function aS(n,a){const i={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function rS(n,a){const i=n.all(a),u=i.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(i.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(i,!0)},d=gc(a.children[1]),p=l0(a.children[a.children.length-1]);d&&p&&(f.position={start:d,end:p}),s.push(f)}const c={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(a,c),n.applyData(a,c)}function uS(n,a,i){const u=i?i.children:void 0,c=(u?u.indexOf(a):1)===0?"th":"td",f=i&&i.type==="table"?i.align:void 0,d=f?f.length:a.children.length;let p=-1;const m=[];for(;++p<d;){const g=a.children[p],b={},v=f?f[p]:void 0;v&&(b.align=v);let w={type:"element",tagName:c,properties:b,children:[]};g&&(w.children=n.all(g),n.patch(g,w),w=n.applyData(g,w)),m.push(w)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(a,x),n.applyData(a,x)}function sS(n,a){const i={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}const hp=9,dp=32;function oS(n){const a=String(n),i=/\r?\n|\r/g;let u=i.exec(a),s=0;const c=[];for(;u;)c.push(mp(a.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=i.exec(a);return c.push(mp(a.slice(s),s>0,!1)),c.join("")}function mp(n,a,i){let u=0,s=n.length;if(a){let c=n.codePointAt(u);for(;c===hp||c===dp;)u++,c=n.codePointAt(u)}if(i){let c=n.codePointAt(s-1);for(;c===hp||c===dp;)s--,c=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function cS(n,a){const i={type:"text",value:oS(String(a.value))};return n.patch(a,i),n.applyData(a,i)}function fS(n,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,i),n.applyData(a,i)}const hS={blockquote:Y2,break:V2,code:G2,delete:Q2,emphasis:X2,footnoteReference:Z2,heading:F2,html:K2,imageReference:J2,image:I2,inlineCode:$2,linkReference:W2,link:P2,listItem:eS,list:nS,paragraph:lS,root:iS,strong:aS,table:rS,tableCell:sS,tableRow:uS,text:cS,thematicBreak:fS,toml:Wr,yaml:Wr,definition:Wr,footnoteDefinition:Wr};function Wr(){}const C0=-1,cu=0,Ca=1,au=2,kc=3,Ec=4,Cc=5,wc=6,w0=7,T0=8,pp=typeof self=="object"?self:globalThis,dS=(n,a)=>{const i=(s,c)=>(n.set(c,s),s),u=s=>{if(n.has(s))return n.get(s);const[c,f]=a[s];switch(c){case cu:case C0:return i(f,s);case Ca:{const d=i([],s);for(const p of f)d.push(u(p));return d}case au:{const d=i({},s);for(const[p,m]of f)d[u(p)]=u(m);return d}case kc:return i(new Date(f),s);case Ec:{const{source:d,flags:p}=f;return i(new RegExp(d,p),s)}case Cc:{const d=i(new Map,s);for(const[p,m]of f)d.set(u(p),u(m));return d}case wc:{const d=i(new Set,s);for(const p of f)d.add(u(p));return d}case w0:{const{name:d,message:p}=f;return i(new pp[d](p),s)}case T0:return i(BigInt(f),s);case"BigInt":return i(Object(BigInt(f)),s);case"ArrayBuffer":return i(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:d}=new Uint8Array(f);return i(new DataView(d),f)}}return i(new pp[c](f),s)};return u},gp=n=>dS(new Map,n)(0),yi="",{toString:mS}={},{keys:pS}=Object,za=n=>{const a=typeof n;if(a!=="object"||!n)return[cu,a];const i=mS.call(n).slice(8,-1);switch(i){case"Array":return[Ca,yi];case"Object":return[au,yi];case"Date":return[kc,yi];case"RegExp":return[Ec,yi];case"Map":return[Cc,yi];case"Set":return[wc,yi];case"DataView":return[Ca,i]}return i.includes("Array")?[Ca,i]:i.includes("Error")?[w0,i]:[au,i]},Pr=([n,a])=>n===cu&&(a==="function"||a==="symbol"),gS=(n,a,i,u)=>{const s=(f,d)=>{const p=u.push(f)-1;return i.set(d,p),p},c=f=>{if(i.has(f))return i.get(f);let[d,p]=za(f);switch(d){case cu:{let x=f;switch(p){case"bigint":d=T0,x=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);x=null;break;case"undefined":return s([C0],f)}return s([d,x],f)}case Ca:{if(p){let b=f;return p==="DataView"?b=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(b=new Uint8Array(f)),s([p,[...b]],f)}const x=[],g=s([d,x],f);for(const b of f)x.push(c(b));return g}case au:{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 c(f.toJSON());const x=[],g=s([d,x],f);for(const b of pS(f))(n||!Pr(za(f[b])))&&x.push([c(b),c(f[b])]);return g}case kc:return s([d,f.toISOString()],f);case Ec:{const{source:x,flags:g}=f;return s([d,{source:x,flags:g}],f)}case Cc:{const x=[],g=s([d,x],f);for(const[b,v]of f)(n||!(Pr(za(b))||Pr(za(v))))&&x.push([c(b),c(v)]);return g}case wc:{const x=[],g=s([d,x],f);for(const b of f)(n||!Pr(za(b)))&&x.push(c(b));return g}}const{message:m}=f;return s([d,{name:p,message:m}],f)};return c},yp=(n,{json:a,lossy:i}={})=>{const u=[];return gS(!(a||i),!!a,new Map,u)(n),u},ru=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 yS(n,a){const i=[{type:"text",value:"↩"}];return a>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),i}function xS(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function bS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||yS,u=n.options.footnoteBackLabel||xS,s=n.options.footnoteLabel||"Footnotes",c=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<n.footnoteOrder.length;){const m=n.footnoteById.get(n.footnoteOrder[p]);if(!m)continue;const x=n.all(m),g=String(m.identifier).toUpperCase(),b=ki(g.toLowerCase());let v=0;const w=[],M=n.footnoteCounts.get(g);for(;M!==void 0&&++v<=M;){w.length>0&&w.push({type:"text",value:" "});let q=typeof i=="string"?i:i(p,v);typeof q=="string"&&(q={type:"text",value:q}),w.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+b+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,v),className:["data-footnote-backref"]},children:Array.isArray(q)?q:[q]})}const Y=x[x.length-1];if(Y&&Y.type==="element"&&Y.tagName==="p"){const q=Y.children[Y.children.length-1];q&&q.type==="text"?q.value+=" ":Y.children.push({type:"text",value:" "}),Y.children.push(...w)}else x.push(...w);const _={type:"element",tagName:"li",properties:{id:a+"fn-"+b},children:n.wrap(x,!0)};n.patch(m,_),d.push(_)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...ru(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
250
|
-
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(d,!0)},{type:"text",value:`
|
|
251
|
-
`}]}}const fu=(function(n){if(n==null)return kS;if(typeof n=="function")return hu(n);if(typeof n=="object")return Array.isArray(n)?vS(n):SS(n);if(typeof n=="string")return zS(n);throw new Error("Expected function, string, or object as test")});function vS(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=fu(n[i]);return hu(u);function u(...s){let c=-1;for(;++c<a.length;)if(a[c].apply(this,s))return!0;return!1}}function SS(n){const a=n;return hu(i);function i(u){const s=u;let c;for(c in n)if(s[c]!==a[c])return!1;return!0}}function zS(n){return hu(a);function a(i){return i&&i.type===n}}function hu(n){return a;function a(i,u,s){return!!(ES(i)&&n.call(this,i,typeof u=="number"?u:void 0,s||void 0))}}function kS(){return!0}function ES(n){return n!==null&&typeof n=="object"&&"type"in n}const A0=[],CS=!0,ac=!1,wS="skip";function N0(n,a,i,u){let s;typeof a=="function"&&typeof i!="function"?(u=i,i=a):s=a;const c=fu(s),f=u?-1:1;d(n,void 0,[])();function d(p,m,x){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return b;function b(){let v=A0,w,M,Y;if((!a||c(p,m,x[x.length-1]||void 0))&&(v=TS(i(p,x)),v[0]===ac))return v;if("children"in p&&p.children){const _=p;if(_.children&&v[0]!==wS)for(M=(u?_.children.length:-1)+f,Y=x.concat(_);M>-1&&M<_.children.length;){const q=_.children[M];if(w=d(q,M,Y)(),w[0]===ac)return w;M=typeof w[1]=="number"?w[1]:M+f}}return v}}}function TS(n){return Array.isArray(n)?n:typeof n=="number"?[CS,n]:n==null?A0:[n]}function Tc(n,a,i,u){let s,c,f;typeof a=="function"&&typeof i!="function"?(c=void 0,f=a,s=i):(c=a,f=i,s=u),N0(n,c,d,s);function d(p,m){const x=m[m.length-1],g=x?x.children.indexOf(p):void 0;return f(p,g,x)}}const rc={}.hasOwnProperty,AS={};function NS(n,a){const i=a||AS,u=new Map,s=new Map,c=new Map,f={...hS,...i.handlers},d={all:m,applyData:MS,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:p,options:i,patch:_S,wrap:OS};return Tc(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const g=x.type==="definition"?u:s,b=String(x.identifier).toUpperCase();g.has(b)||g.set(b,x)}}),d;function p(x,g){const b=x.type,v=d.handlers[b];if(rc.call(d.handlers,b)&&v)return v(d,x,g);if(d.options.passThrough&&d.options.passThrough.includes(b)){if("children"in x){const{children:M,...Y}=x,_=ru(Y);return _.children=d.all(x),_}return ru(x)}return(d.options.unknownHandler||jS)(d,x,g)}function m(x){const g=[];if("children"in x){const b=x.children;let v=-1;for(;++v<b.length;){const w=d.one(b[v],x);if(w){if(v&&b[v-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=xp(w.value)),!Array.isArray(w)&&w.type==="element")){const M=w.children[0];M&&M.type==="text"&&(M.value=xp(M.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function _S(n,a){n.position&&(a.position=xb(n))}function MS(n,a){let i=a;if(n&&n.data){const u=n.data.hName,s=n.data.hChildren,c=n.data.hProperties;if(typeof u=="string")if(i.type==="element")i.tagName=u;else{const f="children"in i?i.children:[i];i={type:"element",tagName:u,properties:{},children:f}}i.type==="element"&&c&&Object.assign(i.properties,ru(c)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function jS(n,a){const i=a.data||{},u="value"in a&&!(rc.call(i,"hProperties")||rc.call(i,"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 OS(n,a){const i=[];let u=-1;for(a&&i.push({type:"text",value:`
|
|
252
|
-
`});++u<n.length;)u&&i.push({type:"text",value:`
|
|
253
|
-
`}),i.push(n[u]);return a&&n.length>0&&i.push({type:"text",value:`
|
|
254
|
-
`}),i}function xp(n){let a=0,i=n.charCodeAt(a);for(;i===9||i===32;)a++,i=n.charCodeAt(a);return n.slice(a)}function bp(n,a){const i=NS(n,a),u=i.one(n,void 0),s=bS(i),c=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return s&&c.children.push({type:"text",value:`
|
|
255
|
-
`},s),c}function DS(n,a){return n&&"run"in n?async function(i,u){const s=bp(i,{file:u,...a});await n.run(s,u)}:function(i,u){return bp(i,{file:u,...n||a})}}function vp(n){if(n)throw n}var qo,Sp;function RS(){if(Sp)return qo;Sp=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):a.call(m)==="[object Array]"},c=function(m){if(!m||a.call(m)!=="[object Object]")return!1;var x=n.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!x&&!g)return!1;var b;for(b in m);return typeof b>"u"||n.call(m,b)},f=function(m,x){i&&x.name==="__proto__"?i(m,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):m[x.name]=x.newValue},d=function(m,x){if(x==="__proto__")if(n.call(m,x)){if(u)return u(m,x).value}else return;return m[x]};return qo=function p(){var m,x,g,b,v,w,M=arguments[0],Y=1,_=arguments.length,q=!1;for(typeof M=="boolean"&&(q=M,M=arguments[1]||{},Y=2),(M==null||typeof M!="object"&&typeof M!="function")&&(M={});Y<_;++Y)if(m=arguments[Y],m!=null)for(x in m)g=d(M,x),b=d(m,x),M!==b&&(q&&b&&(c(b)||(v=s(b)))?(v?(v=!1,w=g&&s(g)?g:[]):w=g&&c(g)?g:{},f(M,{name:x,newValue:p(q,w,b)})):typeof b<"u"&&f(M,{name:x,newValue:b}));return M},qo}var LS=RS();const Yo=Bp(LS);function uc(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 BS(){const n=[],a={run:i,use:u};return a;function i(...s){let c=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);d(null,...s);function d(p,...m){const x=n[++c];let g=-1;if(p){f(p);return}for(;++g<s.length;)(m[g]===null||m[g]===void 0)&&(m[g]=s[g]);s=m,x?US(x,d)(...m):f(null,...m)}}function u(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function US(n,a){let i;return u;function u(...f){const d=n.length>f.length;let p;d&&f.push(s);try{p=n.apply(this,f)}catch(m){const x=m;if(d&&i)throw x;return s(x)}d||(p&&p.then&&typeof p.then=="function"?p.then(c,s):p instanceof Error?s(p):c(p))}function s(f,...d){i||(i=!0,a(f,...d))}function c(f){s(null,f)}}const on={basename:HS,dirname:qS,extname:YS,join:VS,sep:"/"};function HS(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Ma(n);let i=0,u=-1,s=n.length,c;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(c){i=s+1;break}}else u<0&&(c=!0,u=s+1);return u<0?"":n.slice(i,u)}if(a===n)return"";let f=-1,d=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(c){i=s+1;break}}else f<0&&(c=!0,f=s+1),d>-1&&(n.codePointAt(s)===a.codePointAt(d--)?d<0&&(u=s):(d=-1,u=f));return i===u?u=f:u<0&&(u=n.length),n.slice(i,u)}function qS(n){if(Ma(n),n.length===0)return".";let a=-1,i=n.length,u;for(;--i;)if(n.codePointAt(i)===47){if(u){a=i;break}}else u||(u=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function YS(n){Ma(n);let a=n.length,i=-1,u=0,s=-1,c=0,f;for(;a--;){const d=n.codePointAt(a);if(d===47){if(f){u=a+1;break}continue}i<0&&(f=!0,i=a+1),d===46?s<0?s=a:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||i<0||c===0||c===1&&s===i-1&&s===u+1?"":n.slice(s,i)}function VS(...n){let a=-1,i;for(;++a<n.length;)Ma(n[a]),n[a]&&(i=i===void 0?n[a]:i+"/"+n[a]);return i===void 0?".":GS(i)}function GS(n){Ma(n);const a=n.codePointAt(0)===47;let i=QS(n,!a);return i.length===0&&!a&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),a?"/"+i:i}function QS(n,a){let i="",u=0,s=-1,c=0,f=-1,d,p;for(;++f<=n.length;){if(f<n.length)d=n.codePointAt(f);else{if(d===47)break;d=47}if(d===47){if(!(s===f-1||c===1))if(s!==f-1&&c===2){if(i.length<2||u!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",u=0):(i=i.slice(0,p),u=i.length-1-i.lastIndexOf("/")),s=f,c=0;continue}}else if(i.length>0){i="",u=0,s=f,c=0;continue}}a&&(i=i.length>0?i+"/..":"..",u=2)}else i.length>0?i+="/"+n.slice(s+1,f):i=n.slice(s+1,f),u=f-s-1;s=f,c=0}else d===46&&c>-1?c++:c=-1}return i}function Ma(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const XS={cwd:ZS};function ZS(){return"/"}function sc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function FS(n){if(typeof n=="string")n=new URL(n);else if(!sc(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 KS(n)}function KS(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 i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const u=a.codePointAt(i+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 Vo=["history","path","basename","stem","extname","dirname"];class _0{constructor(a){let i;a?sc(a)?i={path:a}:typeof a=="string"||JS(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":XS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Vo.length;){const c=Vo[u];c in i&&i[c]!==void 0&&i[c]!==null&&(this[c]=c==="history"?[...i[c]]:i[c])}let s;for(s in i)Vo.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?on.basename(this.path):void 0}set basename(a){Qo(a,"basename"),Go(a,"basename"),this.path=on.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?on.dirname(this.path):void 0}set dirname(a){zp(this.basename,"dirname"),this.path=on.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?on.extname(this.path):void 0}set extname(a){if(Go(a,"extname"),zp(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=on.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){sc(a)&&(a=FS(a)),Qo(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?on.basename(this.path,this.extname):void 0}set stem(a){Qo(a,"stem"),Go(a,"stem"),this.path=on.join(this.dirname||"",a+(this.extname||""))}fail(a,i,u){const s=this.message(a,i,u);throw s.fatal=!0,s}info(a,i,u){const s=this.message(a,i,u);return s.fatal=void 0,s}message(a,i,u){const s=new gt(a,i,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 Go(n,a){if(n&&n.includes(on.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+on.sep+"`")}function Qo(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function zp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function JS(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const IS=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),$S={}.hasOwnProperty;class Ac extends IS{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=BS()}copy(){const a=new Ac;let i=-1;for(;++i<this.attachers.length;){const u=this.attachers[i];a.use(...u)}return a.data(Yo(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(Fo("data",this.frozen),this.namespace[a]=i,this):$S.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Fo("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[i,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const s=i.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 i=eu(a),u=this.parser||this.Parser;return Xo("parse",u),u(String(i),i)}process(a,i){const u=this;return this.freeze(),Xo("process",this.parser||this.Parser),Zo("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(c,f){const d=eu(a),p=u.parse(d);u.run(p,d,function(x,g,b){if(x||!g||!b)return m(x);const v=g,w=u.stringify(v,b);ez(w)?b.value=w:b.result=w,m(x,b)});function m(x,g){x||!g?f(x):c?c(g):i(void 0,g)}}}processSync(a){let i=!1,u;return this.freeze(),Xo("processSync",this.parser||this.Parser),Zo("processSync",this.compiler||this.Compiler),this.process(a,s),Ep("processSync","process",i),u;function s(c,f){i=!0,vp(c),u=f}}run(a,i,u){kp(a),this.freeze();const s=this.transformers;return!u&&typeof i=="function"&&(u=i,i=void 0),u?c(void 0,u):new Promise(c);function c(f,d){const p=eu(i);s.run(a,p,m);function m(x,g,b){const v=g||a;x?d(x):f?f(v):u(void 0,v,b)}}}runSync(a,i){let u=!1,s;return this.run(a,i,c),Ep("runSync","run",u),s;function c(f,d){vp(f),s=d,u=!0}}stringify(a,i){this.freeze();const u=eu(i),s=this.compiler||this.Compiler;return Zo("stringify",s),kp(a),s(a,u)}use(a,...i){const u=this.attachers,s=this.namespace;if(Fo("use",this.frozen),a!=null)if(typeof a=="function")p(a,i);else if(typeof a=="object")Array.isArray(a)?d(a):f(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[x,...g]=m;p(x,g)}else f(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function f(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(m.plugins),m.settings&&(s.settings=Yo(!0,s.settings,m.settings))}function d(m){let x=-1;if(m!=null)if(Array.isArray(m))for(;++x<m.length;){const g=m[x];c(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,x){let g=-1,b=-1;for(;++g<u.length;)if(u[g][0]===m){b=g;break}if(b===-1)u.push([m,...x]);else if(x.length>0){let[v,...w]=x;const M=u[b][1];uc(M)&&uc(v)&&(v=Yo(!0,M,v)),u[b]=[m,v,...w]}}}}const WS=new Ac().freeze();function Xo(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Zo(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Fo(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 kp(n){if(!uc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Ep(n,a,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function eu(n){return PS(n)?n:new _0(n)}function PS(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function ez(n){return typeof n=="string"||tz(n)}function tz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const nz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Cp=[],wp={allowDangerousHtml:!0},lz=/^(https?|ircs?|mailto|xmpp)$/i,iz=[{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 az(n){const a=rz(n),i=uz(n);return sz(a.runSync(a.parse(i),i),n)}function rz(n){const a=n.rehypePlugins||Cp,i=n.remarkPlugins||Cp,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...wp}:wp;return WS().use(q2).use(i).use(DS,u).use(a)}function uz(n){const a=n.children||"",i=new _0;return typeof a=="string"&&(i.value=a),i}function sz(n,a){const i=a.allowedElements,u=a.allowElement,s=a.components,c=a.disallowedElements,f=a.skipHtml,d=a.unwrapDisallowed,p=a.urlTransform||oz;for(const x of iz)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+nz+x.id,void 0);return Tc(n,m),kb(n,{Fragment:S.Fragment,components:s,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function m(x,g,b){if(x.type==="raw"&&b&&typeof g=="number")return f?b.children.splice(g,1):b.children[g]={type:"text",value:x.value},g;if(x.type==="element"){let v;for(v in Bo)if(Object.hasOwn(Bo,v)&&Object.hasOwn(x.properties,v)){const w=x.properties[v],M=Bo[v];(M===null||M.includes(x.tagName))&&(x.properties[v]=p(String(w||""),v,x))}}if(x.type==="element"){let v=i?!i.includes(x.tagName):c?c.includes(x.tagName):!1;if(!v&&u&&typeof g=="number"&&(v=!u(x,g,b)),v&&b&&typeof g=="number")return d&&x.children?b.children.splice(g,1,...x.children):b.children.splice(g,1),g}}}function oz(n){const a=n.indexOf(":"),i=n.indexOf("?"),u=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||i!==-1&&a>i||u!==-1&&a>u||lz.test(n.slice(0,a))?n:""}function Tp(n,a){const i=String(n);if(typeof a!="string")throw new TypeError("Expected character");let u=0,s=i.indexOf(a);for(;s!==-1;)u++,s=i.indexOf(a,s+a.length);return u}function cz(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function fz(n,a,i){const s=fu((i||{}).ignore||[]),c=hz(a);let f=-1;for(;++f<c.length;)N0(n,"text",d);function d(m,x){let g=-1,b;for(;++g<x.length;){const v=x[g],w=b?b.children:void 0;if(s(v,w?w.indexOf(v):void 0,b))return;b=v}if(b)return p(m,x)}function p(m,x){const g=x[x.length-1],b=c[f][0],v=c[f][1];let w=0;const Y=g.children.indexOf(m);let _=!1,q=[];b.lastIndex=0;let B=b.exec(m.value);for(;B;){const F=B.index,K={index:B.index,input:B.input,stack:[...x,m]};let L=v(...B,K);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?b.lastIndex=F+1:(w!==F&&q.push({type:"text",value:m.value.slice(w,F)}),Array.isArray(L)?q.push(...L):L&&q.push(L),w=F+B[0].length,_=!0),!b.global)break;B=b.exec(m.value)}return _?(w<m.value.length&&q.push({type:"text",value:m.value.slice(w)}),g.children.splice(Y,1,...q)):q=[m],Y+q.length}}function hz(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!n[0]||Array.isArray(n[0])?n:[n];let u=-1;for(;++u<i.length;){const s=i[u];a.push([dz(s[0]),mz(s[1])])}return a}function dz(n){return typeof n=="string"?new RegExp(cz(n),"g"):n}function mz(n){return typeof n=="function"?n:function(){return n}}const Ko="phrasing",Jo=["autolink","link","image","label"];function pz(){return{transforms:[zz],enter:{literalAutolink:yz,literalAutolinkEmail:Io,literalAutolinkHttp:Io,literalAutolinkWww:Io},exit:{literalAutolink:Sz,literalAutolinkEmail:vz,literalAutolinkHttp:xz,literalAutolinkWww:bz}}}function gz(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ko,notInConstruct:Jo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ko,notInConstruct:Jo},{character:":",before:"[ps]",after:"\\/",inConstruct:Ko,notInConstruct:Jo}]}}function yz(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Io(n){this.config.enter.autolinkProtocol.call(this,n)}function xz(n){this.config.exit.autolinkProtocol.call(this,n)}function bz(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 vz(n){this.config.exit.autolinkEmail.call(this,n)}function Sz(n){this.exit(n)}function zz(n){fz(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,kz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Ez]],{ignore:["link","linkReference"]})}function kz(n,a,i,u,s){let c="";if(!M0(s)||(/^w/i.test(a)&&(i=a+i,a="",c="http://"),!Cz(i)))return!1;const f=wz(i+u);if(!f[0])return!1;const d={type:"link",title:null,url:c+a+f[0],children:[{type:"text",value:a+f[0]}]};return f[1]?[d,{type:"text",value:f[1]}]:d}function Ez(n,a,i,u){return!M0(u,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function Cz(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 wz(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let i=a[0],u=i.indexOf(")");const s=Tp(n,"(");let c=Tp(n,")");for(;u!==-1&&s>c;)n+=i.slice(0,u+1),i=i.slice(u+1),u=i.indexOf(")"),c++;return[n,i]}function M0(n,a){const i=n.input.charCodeAt(n.index-1);return(n.index===0||Cl(i)||su(i))&&(!a||i!==47)}j0.peek=Rz;function Tz(){this.buffer()}function Az(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Nz(){this.buffer()}function _z(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function Mz(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=ln(this.sliceSerialize(n)).toLowerCase(),i.label=a}function jz(n){this.exit(n)}function Oz(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=ln(this.sliceSerialize(n)).toLowerCase(),i.label=a}function Dz(n){this.exit(n)}function Rz(){return"["}function j0(n,a,i,u){const s=i.createTracker(u);let c=s.move("[^");const f=i.enter("footnoteReference"),d=i.enter("reference");return c+=s.move(i.safe(i.associationId(n),{after:"]",before:c})),d(),f(),c+=s.move("]"),c}function Lz(){return{enter:{gfmFootnoteCallString:Tz,gfmFootnoteCall:Az,gfmFootnoteDefinitionLabelString:Nz,gfmFootnoteDefinition:_z},exit:{gfmFootnoteCallString:Mz,gfmFootnoteCall:jz,gfmFootnoteDefinitionLabelString:Oz,gfmFootnoteDefinition:Dz}}}function Bz(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:j0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(u,s,c,f){const d=c.createTracker(f);let p=d.move("[^");const m=c.enter("footnoteDefinition"),x=c.enter("label");return p+=d.move(c.safe(c.associationId(u),{before:p,after:"]"})),x(),p+=d.move("]:"),u.children&&u.children.length>0&&(d.shift(4),p+=d.move((a?`
|
|
256
|
-
`:" ")+c.indentLines(c.containerFlow(u,d.current()),a?O0:Uz))),m(),p}}function Uz(n,a,i){return a===0?n:O0(n,a,i)}function O0(n,a,i){return(i?"":" ")+n}const Hz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];D0.peek=Qz;function qz(){return{canContainEols:["delete"],enter:{strikethrough:Vz},exit:{strikethrough:Gz}}}function Yz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Hz}],handlers:{delete:D0}}}function Vz(n){this.enter({type:"delete",children:[]},n)}function Gz(n){this.exit(n)}function D0(n,a,i,u){const s=i.createTracker(u),c=i.enter("strikethrough");let f=s.move("~~");return f+=i.containerPhrasing(n,{...s.current(),before:f,after:"~"}),f+=s.move("~~"),c(),f}function Qz(){return"~"}function Xz(n){return n.length}function Zz(n,a){const i=a||{},u=(i.align||[]).concat(),s=i.stringLength||Xz,c=[],f=[],d=[],p=[];let m=0,x=-1;for(;++x<n.length;){const M=[],Y=[];let _=-1;for(n[x].length>m&&(m=n[x].length);++_<n[x].length;){const q=Fz(n[x][_]);if(i.alignDelimiters!==!1){const B=s(q);Y[_]=B,(p[_]===void 0||B>p[_])&&(p[_]=B)}M.push(q)}f[x]=M,d[x]=Y}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<m;)c[g]=Ap(u[g]);else{const M=Ap(u);for(;++g<m;)c[g]=M}g=-1;const b=[],v=[];for(;++g<m;){const M=c[g];let Y="",_="";M===99?(Y=":",_=":"):M===108?Y=":":M===114&&(_=":");let q=i.alignDelimiters===!1?1:Math.max(1,p[g]-Y.length-_.length);const B=Y+"-".repeat(q)+_;i.alignDelimiters!==!1&&(q=Y.length+q+_.length,q>p[g]&&(p[g]=q),v[g]=q),b[g]=B}f.splice(1,0,b),d.splice(1,0,v),x=-1;const w=[];for(;++x<f.length;){const M=f[x],Y=d[x];g=-1;const _=[];for(;++g<m;){const q=M[g]||"";let B="",F="";if(i.alignDelimiters!==!1){const K=p[g]-(Y[g]||0),L=c[g];L===114?B=" ".repeat(K):L===99?K%2?(B=" ".repeat(K/2+.5),F=" ".repeat(K/2-.5)):(B=" ".repeat(K/2),F=B):F=" ".repeat(K)}i.delimiterStart!==!1&&!g&&_.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&q==="")&&(i.delimiterStart!==!1||g)&&_.push(" "),i.alignDelimiters!==!1&&_.push(B),_.push(q),i.alignDelimiters!==!1&&_.push(F),i.padding!==!1&&_.push(" "),(i.delimiterEnd!==!1||g!==m-1)&&_.push("|")}w.push(i.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return w.join(`
|
|
257
|
-
`)}function Fz(n){return n==null?"":String(n)}function Ap(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 Kz(n,a,i,u){const s=i.enter("blockquote"),c=i.createTracker(u);c.move("> "),c.shift(2);const f=i.indentLines(i.containerFlow(n,c.current()),Jz);return s(),f}function Jz(n,a,i){return">"+(i?"":" ")+n}function Iz(n,a){return Np(n,a.inConstruct,!0)&&!Np(n,a.notInConstruct,!1)}function Np(n,a,i){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return i;let u=-1;for(;++u<a.length;)if(n.includes(a[u]))return!0;return!1}function _p(n,a,i,u){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
|
|
258
|
-
`&&Iz(i.stack,i.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
259
|
-
`}function $z(n,a){const i=String(n);let u=i.indexOf(a),s=u,c=0,f=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===s?++c>f&&(f=c):c=1,s=u+a.length,u=i.indexOf(a,s);return f}function Wz(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 Pz(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 e3(n,a,i,u){const s=Pz(i),c=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(Wz(n,i)){const g=i.enter("codeIndented"),b=i.indentLines(c,t3);return g(),b}const d=i.createTracker(u),p=s.repeat(Math.max($z(c,s)+1,3)),m=i.enter("codeFenced");let x=d.move(p);if(n.lang){const g=i.enter(`codeFencedLang${f}`);x+=d.move(i.safe(n.lang,{before:x,after:" ",encode:["`"],...d.current()})),g()}if(n.lang&&n.meta){const g=i.enter(`codeFencedMeta${f}`);x+=d.move(" "),x+=d.move(i.safe(n.meta,{before:x,after:`
|
|
260
|
-
`,encode:["`"],...d.current()})),g()}return x+=d.move(`
|
|
261
|
-
`),c&&(x+=d.move(c+`
|
|
262
|
-
`)),x+=d.move(p),m(),x}function t3(n,a,i){return(i?"":" ")+n}function Nc(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 n3(n,a,i,u){const s=Nc(i),c=s==='"'?"Quote":"Apostrophe",f=i.enter("definition");let d=i.enter("label");const p=i.createTracker(u);let m=p.move("[");return m+=p.move(i.safe(i.associationId(n),{before:m,after:"]",...p.current()})),m+=p.move("]: "),d(),!n.url||/[\0- \u007F]/.test(n.url)?(d=i.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(i.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=i.enter("destinationRaw"),m+=p.move(i.safe(n.url,{before:m,after:n.title?" ":`
|
|
263
|
-
`,...p.current()}))),d(),n.title&&(d=i.enter(`title${c}`),m+=p.move(" "+s),m+=p.move(i.safe(n.title,{before:m,after:s,...p.current()})),m+=p.move(s),d()),f(),m}function l3(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 Ta(n){return"&#x"+n.toString(16).toUpperCase()+";"}function uu(n,a,i){const u=Si(n),s=Si(a);return u===void 0?s===void 0?i==="_"?{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}}R0.peek=i3;function R0(n,a,i,u){const s=l3(i),c=i.enter("emphasis"),f=i.createTracker(u),d=f.move(s);let p=f.move(i.containerPhrasing(n,{after:s,before:d,...f.current()}));const m=p.charCodeAt(0),x=uu(u.before.charCodeAt(u.before.length-1),m,s);x.inside&&(p=Ta(m)+p.slice(1));const g=p.charCodeAt(p.length-1),b=uu(u.after.charCodeAt(0),g,s);b.inside&&(p=p.slice(0,-1)+Ta(g));const v=f.move(s);return c(),i.attentionEncodeSurroundingInfo={after:b.outside,before:x.outside},d+p+v}function i3(n,a,i){return i.options.emphasis||"*"}function a3(n,a){let i=!1;return Tc(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return i=!0,ac}),!!((!n.depth||n.depth<3)&&vc(n)&&(a.options.setext||i))}function r3(n,a,i,u){const s=Math.max(Math.min(6,n.depth||1),1),c=i.createTracker(u);if(a3(n,i)){const x=i.enter("headingSetext"),g=i.enter("phrasing"),b=i.containerPhrasing(n,{...c.current(),before:`
|
|
264
|
-
`,after:`
|
|
265
|
-
`});return g(),x(),b+`
|
|
266
|
-
`+(s===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
267
|
-
`))+1))}const f="#".repeat(s),d=i.enter("headingAtx"),p=i.enter("phrasing");c.move(f+" ");let m=i.containerPhrasing(n,{before:"# ",after:`
|
|
268
|
-
`,...c.current()});return/^[\t ]/.test(m)&&(m=Ta(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,i.options.closeAtx&&(m+=" "+f),p(),d(),m}L0.peek=u3;function L0(n){return n.value||""}function u3(){return"<"}B0.peek=s3;function B0(n,a,i,u){const s=Nc(i),c=s==='"'?"Quote":"Apostrophe",f=i.enter("image");let d=i.enter("label");const p=i.createTracker(u);let m=p.move("![");return m+=p.move(i.safe(n.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),d(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(d=i.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(i.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=i.enter("destinationRaw"),m+=p.move(i.safe(n.url,{before:m,after:n.title?" ":")",...p.current()}))),d(),n.title&&(d=i.enter(`title${c}`),m+=p.move(" "+s),m+=p.move(i.safe(n.title,{before:m,after:s,...p.current()})),m+=p.move(s),d()),m+=p.move(")"),f(),m}function s3(){return"!"}U0.peek=o3;function U0(n,a,i,u){const s=n.referenceType,c=i.enter("imageReference");let f=i.enter("label");const d=i.createTracker(u);let p=d.move("![");const m=i.safe(n.alt,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),f();const x=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=x,c(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function o3(){return"!"}H0.peek=c3;function H0(n,a,i){let u=n.value||"",s="`",c=-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+" ");++c<i.unsafe.length;){const f=i.unsafe[c],d=i.compilePattern(f);let p;if(f.atBreak)for(;p=d.exec(u);){let m=p.index;u.charCodeAt(m)===10&&u.charCodeAt(m-1)===13&&m--,u=u.slice(0,m)+" "+u.slice(p.index+1)}}return s+u+s}function c3(){return"`"}function q0(n,a){const i=vc(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(i===n.url||"mailto:"+i===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}Y0.peek=f3;function Y0(n,a,i,u){const s=Nc(i),c=s==='"'?"Quote":"Apostrophe",f=i.createTracker(u);let d,p;if(q0(n,i)){const x=i.stack;i.stack=[],d=i.enter("autolink");let g=f.move("<");return g+=f.move(i.containerPhrasing(n,{before:g,after:">",...f.current()})),g+=f.move(">"),d(),i.stack=x,g}d=i.enter("link"),p=i.enter("label");let m=f.move("[");return m+=f.move(i.containerPhrasing(n,{before:m,after:"](",...f.current()})),m+=f.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=i.enter("destinationLiteral"),m+=f.move("<"),m+=f.move(i.safe(n.url,{before:m,after:">",...f.current()})),m+=f.move(">")):(p=i.enter("destinationRaw"),m+=f.move(i.safe(n.url,{before:m,after:n.title?" ":")",...f.current()}))),p(),n.title&&(p=i.enter(`title${c}`),m+=f.move(" "+s),m+=f.move(i.safe(n.title,{before:m,after:s,...f.current()})),m+=f.move(s),p()),m+=f.move(")"),d(),m}function f3(n,a,i){return q0(n,i)?"<":"["}V0.peek=h3;function V0(n,a,i,u){const s=n.referenceType,c=i.enter("linkReference");let f=i.enter("label");const d=i.createTracker(u);let p=d.move("[");const m=i.containerPhrasing(n,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),f();const x=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=x,c(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function h3(){return"["}function _c(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 d3(n){const a=_c(n),i=n.options.bulletOther;if(!i)return a==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+i+"`) to be different");return i}function m3(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 G0(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 p3(n,a,i,u){const s=i.enter("list"),c=i.bulletCurrent;let f=n.ordered?m3(i):_c(i);const d=n.ordered?f==="."?")":".":d3(i);let p=a&&i.bulletLastUsed?f===i.bulletLastUsed:!1;if(!n.ordered){const x=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&x&&(!x.children||!x.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(p=!0),G0(i)===f&&x){let g=-1;for(;++g<n.children.length;){const b=n.children[g];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(f=d),i.bulletCurrent=f;const m=i.containerFlow(n,u);return i.bulletLastUsed=f,i.bulletCurrent=c,s(),m}function g3(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 y3(n,a,i,u){const s=g3(i);let c=i.bulletCurrent||_c(i);a&&a.type==="list"&&a.ordered&&(c=(typeof a.start=="number"&&a.start>-1?a.start:1)+(i.options.incrementListMarker===!1?0:a.children.indexOf(n))+c);let f=c.length+1;(s==="tab"||s==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(f=Math.ceil(f/4)*4);const d=i.createTracker(u);d.move(c+" ".repeat(f-c.length)),d.shift(f);const p=i.enter("listItem"),m=i.indentLines(i.containerFlow(n,d.current()),x);return p(),m;function x(g,b,v){return b?(v?"":" ".repeat(f))+g:(v?c:c+" ".repeat(f-c.length))+g}}function x3(n,a,i,u){const s=i.enter("paragraph"),c=i.enter("phrasing"),f=i.containerPhrasing(n,u);return c(),s(),f}const b3=fu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function v3(n,a,i,u){return(n.children.some(function(f){return b3(f)})?i.containerPhrasing:i.containerFlow).call(i,n,u)}function S3(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}Q0.peek=z3;function Q0(n,a,i,u){const s=S3(i),c=i.enter("strong"),f=i.createTracker(u),d=f.move(s+s);let p=f.move(i.containerPhrasing(n,{after:s,before:d,...f.current()}));const m=p.charCodeAt(0),x=uu(u.before.charCodeAt(u.before.length-1),m,s);x.inside&&(p=Ta(m)+p.slice(1));const g=p.charCodeAt(p.length-1),b=uu(u.after.charCodeAt(0),g,s);b.inside&&(p=p.slice(0,-1)+Ta(g));const v=f.move(s+s);return c(),i.attentionEncodeSurroundingInfo={after:b.outside,before:x.outside},d+p+v}function z3(n,a,i){return i.options.strong||"*"}function k3(n,a,i,u){return i.safe(n.value,u)}function E3(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 C3(n,a,i){const u=(G0(i)+(i.options.ruleSpaces?" ":"")).repeat(E3(i));return i.options.ruleSpaces?u.slice(0,-1):u}const X0={blockquote:Kz,break:_p,code:e3,definition:n3,emphasis:R0,hardBreak:_p,heading:r3,html:L0,image:B0,imageReference:U0,inlineCode:H0,link:Y0,linkReference:V0,list:p3,listItem:y3,paragraph:x3,root:v3,strong:Q0,text:k3,thematicBreak:C3};function w3(){return{enter:{table:T3,tableData:Mp,tableHeader:Mp,tableRow:N3},exit:{codeText:_3,table:A3,tableData:$o,tableHeader:$o,tableRow:$o}}}function T3(n){const a=n._align;this.enter({type:"table",align:a.map(function(i){return i==="none"?null:i}),children:[]},n),this.data.inTable=!0}function A3(n){this.exit(n),this.data.inTable=void 0}function N3(n){this.enter({type:"tableRow",children:[]},n)}function $o(n){this.exit(n)}function Mp(n){this.enter({type:"tableCell",children:[]},n)}function _3(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,M3));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(n)}function M3(n,a){return a==="|"?a:n}function j3(n){const a=n||{},i=a.tableCellPadding,u=a.tablePipeAlign,s=a.stringLength,c=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
269
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:f,tableCell:p,tableRow:d}};function f(v,w,M,Y){return m(x(v,M,Y),v.align)}function d(v,w,M,Y){const _=g(v,M,Y),q=m([_]);return q.slice(0,q.indexOf(`
|
|
270
|
-
`))}function p(v,w,M,Y){const _=M.enter("tableCell"),q=M.enter("phrasing"),B=M.containerPhrasing(v,{...Y,before:c,after:c});return q(),_(),B}function m(v,w){return Zz(v,{align:w,alignDelimiters:u,padding:i,stringLength:s})}function x(v,w,M){const Y=v.children;let _=-1;const q=[],B=w.enter("table");for(;++_<Y.length;)q[_]=g(Y[_],w,M);return B(),q}function g(v,w,M){const Y=v.children;let _=-1;const q=[],B=w.enter("tableRow");for(;++_<Y.length;)q[_]=p(Y[_],v,w,M);return B(),q}function b(v,w,M){let Y=X0.inlineCode(v,w,M);return M.stack.includes("tableCell")&&(Y=Y.replace(/\|/g,"\\$&")),Y}}function O3(){return{exit:{taskListCheckValueChecked:jp,taskListCheckValueUnchecked:jp,paragraph:R3}}}function D3(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:L3}}}function jp(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function R3(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const u=i.children[0];if(u&&u.type==="text"){const s=a.children;let c=-1,f;for(;++c<s.length;){const d=s[c];if(d.type==="paragraph"){f=d;break}}f===i&&(u.value=u.value.slice(1),u.value.length===0?i.children.shift():i.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,i.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function L3(n,a,i,u){const s=n.children[0],c=typeof n.checked=="boolean"&&s&&s.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",d=i.createTracker(u);c&&d.move(f);let p=X0.listItem(n,a,i,{...u,...d.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(x){return x+f}}function B3(){return[pz(),Lz(),qz(),w3(),O3()]}function U3(n){return{extensions:[gz(),Bz(n),Yz(),j3(n),D3()]}}const H3={tokenize:X3,partial:!0},Z0={tokenize:Z3,partial:!0},F0={tokenize:F3,partial:!0},K0={tokenize:K3,partial:!0},q3={tokenize:J3,partial:!0},J0={name:"wwwAutolink",tokenize:G3,previous:$0},I0={name:"protocolAutolink",tokenize:Q3,previous:W0},jn={name:"emailAutolink",tokenize:V3,previous:P0},cn={};function Y3(){return{text:cn}}let El=48;for(;El<123;)cn[El]=jn,El++,El===58?El=65:El===91&&(El=97);cn[43]=jn;cn[45]=jn;cn[46]=jn;cn[95]=jn;cn[72]=[jn,I0];cn[104]=[jn,I0];cn[87]=[jn,J0];cn[119]=[jn,J0];function V3(n,a,i){const u=this;let s,c;return f;function f(g){return!oc(g)||!P0.call(u,u.previous)||Mc(u.events)?i(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),d(g))}function d(g){return oc(g)?(n.consume(g),d):g===64?(n.consume(g),p):i(g)}function p(g){return g===46?n.check(q3,x,m)(g):g===45||g===95||pt(g)?(c=!0,n.consume(g),p):x(g)}function m(g){return n.consume(g),s=!0,p}function x(g){return c&&s&&vt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(g)):i(g)}}function G3(n,a,i){const u=this;return s;function s(f){return f!==87&&f!==119||!$0.call(u,u.previous)||Mc(u.events)?i(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(H3,n.attempt(Z0,n.attempt(F0,c),i),i)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function Q3(n,a,i){const u=this;let s="",c=!1;return f;function f(g){return(g===72||g===104)&&W0.call(u,u.previous)&&!Mc(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),n.consume(g),d):i(g)}function d(g){if(vt(g)&&s.length<5)return s+=String.fromCodePoint(g),n.consume(g),d;if(g===58){const b=s.toLowerCase();if(b==="http"||b==="https")return n.consume(g),p}return i(g)}function p(g){return g===47?(n.consume(g),c?m:(c=!0,p)):i(g)}function m(g){return g===null||iu(g)||Qe(g)||Cl(g)||su(g)?i(g):n.attempt(Z0,n.attempt(F0,x),i)(g)}function x(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(g)}}function X3(n,a,i){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),c):i(f)}function c(f){return f===null?i(f):a(f)}}function Z3(n,a,i){let u,s,c;return f;function f(m){return m===46||m===95?n.check(K0,p,d)(m):m===null||Qe(m)||Cl(m)||m!==45&&su(m)?p(m):(c=!0,n.consume(m),f)}function d(m){return m===95?u=!0:(s=u,u=void 0),n.consume(m),f}function p(m){return s||u||!c?i(m):a(m)}}function F3(n,a){let i=0,u=0;return s;function s(f){return f===40?(i++,n.consume(f),s):f===41&&u<i?c(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(K0,a,c)(f):f===null||Qe(f)||Cl(f)?a(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function K3(n,a,i){return u;function u(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(n.consume(d),u):d===38?(n.consume(d),c):d===93?(n.consume(d),s):d===60||d===null||Qe(d)||Cl(d)?a(d):i(d)}function s(d){return d===null||d===40||d===91||Qe(d)||Cl(d)?a(d):u(d)}function c(d){return vt(d)?f(d):i(d)}function f(d){return d===59?(n.consume(d),u):vt(d)?(n.consume(d),f):i(d)}}function J3(n,a,i){return u;function u(c){return n.consume(c),s}function s(c){return pt(c)?i(c):a(c)}}function $0(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Qe(n)}function W0(n){return!vt(n)}function P0(n){return!(n===47||oc(n))}function oc(n){return n===43||n===45||n===46||n===95||pt(n)}function Mc(n){let a=n.length,i=!1;for(;a--;){const u=n[a][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){i=!0;break}if(u._gfmAutolinkLiteralWalkedInto){i=!1;break}}return n.length>0&&!i&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const I3={tokenize:ik,partial:!0};function $3(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tk,continuation:{tokenize:nk},exit:lk}},text:{91:{name:"gfmFootnoteCall",tokenize:ek},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:W3,resolveTo:P3}}}}function W3(n,a,i){const u=this;let s=u.events.length;const c=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 d;function d(p){if(!f||!f._balanced)return i(p);const m=ln(u.sliceSerialize({start:f.end,end:u.now()}));return m.codePointAt(0)!==94||!c.includes(m.slice(1))?i(p):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(p),n.exit("gfmFootnoteCallLabelMarker"),a(p))}}function P3(n,a){let i=n.length;for(;i--;)if(n[i][1].type==="labelImage"&&n[i][0]==="enter"){n[i][1];break}n[i+1][1].type="data",n[i+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},n[i+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[i+3][1].end),end:Object.assign({},n[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},d=[n[i+1],n[i+2],["enter",u,a],n[i+3],n[i+4],["enter",s,a],["exit",s,a],["enter",c,a],["enter",f,a],["exit",f,a],["exit",c,a],n[n.length-2],n[n.length-1],["exit",u,a]];return n.splice(i,n.length-i+1,...d),n}function ek(n,a,i){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c=0,f;return d;function d(g){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?i(g):(n.enter("gfmFootnoteCallMarker"),n.consume(g),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",m)}function m(g){if(c>999||g===93&&!f||g===null||g===91||Qe(g))return i(g);if(g===93){n.exit("chunkString");const b=n.exit("gfmFootnoteCallString");return s.includes(ln(u.sliceSerialize(b)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):i(g)}return Qe(g)||(f=!0),c++,n.consume(g),g===92?x:m}function x(g){return g===91||g===92||g===93?(n.consume(g),c++,m):m(g)}}function tk(n,a,i){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c,f=0,d;return p;function p(w){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(w){return w===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):i(w)}function x(w){if(f>999||w===93&&!d||w===null||w===91||Qe(w))return i(w);if(w===93){n.exit("chunkString");const M=n.exit("gfmFootnoteDefinitionLabelString");return c=ln(u.sliceSerialize(M)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),b}return Qe(w)||(d=!0),f++,n.consume(w),w===92?g:x}function g(w){return w===91||w===92||w===93?(n.consume(w),f++,x):x(w)}function b(w){return w===58?(n.enter("definitionMarker"),n.consume(w),n.exit("definitionMarker"),s.includes(c)||s.push(c),_e(n,v,"gfmFootnoteDefinitionWhitespace")):i(w)}function v(w){return a(w)}}function nk(n,a,i){return n.check(_a,a,n.attempt(I3,a,i))}function lk(n){n.exit("gfmFootnoteDefinition")}function ik(n,a,i){const u=this;return _e(n,s,"gfmFootnoteDefinitionIndent",5);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?a(c):i(c)}}function ak(n){let i=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:c,resolveAll:s};return i==null&&(i=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function s(f,d){let p=-1;for(;++p<f.length;)if(f[p][0]==="enter"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._close){let m=p;for(;m--;)if(f[m][0]==="exit"&&f[m][1].type==="strikethroughSequenceTemporary"&&f[m][1]._open&&f[p][1].end.offset-f[p][1].start.offset===f[m][1].end.offset-f[m][1].start.offset){f[p][1].type="strikethroughSequence",f[m][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},f[m][1].start),end:Object.assign({},f[p][1].end)},g={type:"strikethroughText",start:Object.assign({},f[m][1].end),end:Object.assign({},f[p][1].start)},b=[["enter",x,d],["enter",f[m][1],d],["exit",f[m][1],d],["enter",g,d]],v=d.parser.constructs.insideSpan.null;v&&qt(b,b.length,0,ou(v,f.slice(m+1,p),d)),qt(b,b.length,0,[["exit",g,d],["enter",f[p][1],d],["exit",f[p][1],d],["exit",x,d]]),qt(f,m-1,p-m+3,b),p=m+b.length-2;break}}for(p=-1;++p<f.length;)f[p][1].type==="strikethroughSequenceTemporary"&&(f[p][1].type="data");return f}function c(f,d,p){const m=this.previous,x=this.events;let g=0;return b;function b(w){return m===126&&x[x.length-1][1].type!=="characterEscape"?p(w):(f.enter("strikethroughSequenceTemporary"),v(w))}function v(w){const M=Si(m);if(w===126)return g>1?p(w):(f.consume(w),g++,v);if(g<2&&!i)return p(w);const Y=f.exit("strikethroughSequenceTemporary"),_=Si(w);return Y._open=!_||_===2&&!!M,Y._close=!M||M===2&&!!_,d(w)}}}class rk{constructor(){this.map=[]}add(a,i,u){uk(this,a,i,u)}consume(a){if(this.map.sort(function(c,f){return c[0]-f[0]}),this.map.length===0)return;let i=this.map.length;const u=[];for(;i>0;)i-=1,u.push(a.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),a.length=this.map[i][0];u.push(a.slice()),a.length=0;let s=u.pop();for(;s;){for(const c of s)a.push(c);s=u.pop()}this.map.length=0}}function uk(n,a,i,u){let s=0;if(!(i===0&&u.length===0)){for(;s<n.map.length;){if(n.map[s][0]===a){n.map[s][1]+=i,n.map[s][2].push(...u);return}s+=1}n.map.push([a,i,u])}}function sk(n,a){let i=!1;const u=[];for(;a<n.length;){const s=n[a];if(i){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 c=u.length-1;u[c]=u[c]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(i=!0);a+=1}return u}function ok(){return{flow:{null:{name:"table",tokenize:ck,resolveAll:fk}}}}function ck(n,a,i){const u=this;let s=0,c=0,f;return d;function d(U){let te=u.events.length-1;for(;te>-1;){const ae=u.events[te][1].type;if(ae==="lineEnding"||ae==="linePrefix")te--;else break}const ne=te>-1?u.events[te][1].type:null,Se=ne==="tableHead"||ne==="tableRow"?L:p;return Se===L&&u.parser.lazy[u.now().line]?i(U):Se(U)}function p(U){return n.enter("tableHead"),n.enter("tableRow"),m(U)}function m(U){return U===124||(f=!0,c+=1),x(U)}function x(U){return U===null?i(U):fe(U)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(U),n.exit("lineEnding"),v):i(U):Ce(U)?_e(n,x,"whitespace")(U):(c+=1,f&&(f=!1,s+=1),U===124?(n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),f=!0,x):(n.enter("data"),g(U)))}function g(U){return U===null||U===124||Qe(U)?(n.exit("data"),x(U)):(n.consume(U),U===92?b:g)}function b(U){return U===92||U===124?(n.consume(U),g):g(U)}function v(U){return u.interrupt=!1,u.parser.lazy[u.now().line]?i(U):(n.enter("tableDelimiterRow"),f=!1,Ce(U)?_e(n,w,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):w(U))}function w(U){return U===45||U===58?Y(U):U===124?(f=!0,n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),M):K(U)}function M(U){return Ce(U)?_e(n,Y,"whitespace")(U):Y(U)}function Y(U){return U===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(U),n.exit("tableDelimiterMarker"),_):U===45?(c+=1,_(U)):U===null||fe(U)?F(U):K(U)}function _(U){return U===45?(n.enter("tableDelimiterFiller"),q(U)):K(U)}function q(U){return U===45?(n.consume(U),q):U===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(U),n.exit("tableDelimiterMarker"),B):(n.exit("tableDelimiterFiller"),B(U))}function B(U){return Ce(U)?_e(n,F,"whitespace")(U):F(U)}function F(U){return U===124?w(U):U===null||fe(U)?!f||s!==c?K(U):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(U)):K(U)}function K(U){return i(U)}function L(U){return n.enter("tableRow"),$(U)}function $(U){return U===124?(n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),$):U===null||fe(U)?(n.exit("tableRow"),a(U)):Ce(U)?_e(n,$,"whitespace")(U):(n.enter("data"),ie(U))}function ie(U){return U===null||U===124||Qe(U)?(n.exit("data"),$(U)):(n.consume(U),U===92?pe:ie)}function pe(U){return U===92||U===124?(n.consume(U),ie):ie(U)}}function fk(n,a){let i=-1,u=!0,s=0,c=[0,0,0,0],f=[0,0,0,0],d=!1,p=0,m,x,g;const b=new rk;for(;++i<n.length;){const v=n[i],w=v[1];v[0]==="enter"?w.type==="tableHead"?(d=!1,p!==0&&(Op(b,a,p,m,x),x=void 0,p=0),m={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},b.add(i,0,[["enter",m,a]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(u=!0,g=void 0,c=[0,0,0,0],f=[0,i+1,0,0],d&&(d=!1,x={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},b.add(i,0,[["enter",x,a]])),s=w.type==="tableDelimiterRow"?2:x?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],g=tu(b,a,c,s,void 0,g),c=[0,0,0,0]),f[2]=i)):w.type==="tableCellDivider"&&(u?u=!1:(c[1]!==0&&(f[0]=f[1],g=tu(b,a,c,s,void 0,g)),c=f,f=[c[1],i,0,0])):w.type==="tableHead"?(d=!0,p=i):w.type==="tableRow"||w.type==="tableDelimiterRow"?(p=i,c[1]!==0?(f[0]=f[1],g=tu(b,a,c,s,i,g)):f[1]!==0&&(g=tu(b,a,f,s,i,g)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(f[3]=i)}for(p!==0&&Op(b,a,p,m,x),b.consume(a.events),i=-1;++i<a.events.length;){const v=a.events[i];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=sk(a.events,i))}return n}function tu(n,a,i,u,s,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},xi(a.events,i[0])),n.add(i[0],0,[["exit",c,a]]));const p=xi(a.events,i[1]);if(c={type:f,start:Object.assign({},p),end:Object.assign({},p)},n.add(i[1],0,[["enter",c,a]]),i[2]!==0){const m=xi(a.events,i[2]),x=xi(a.events,i[3]),g={type:d,start:Object.assign({},m),end:Object.assign({},x)};if(n.add(i[2],0,[["enter",g,a]]),u!==2){const b=a.events[i[2]],v=a.events[i[3]];if(b[1].end=Object.assign({},v[1].end),b[1].type="chunkText",b[1].contentType="text",i[3]>i[2]+1){const w=i[2]+1,M=i[3]-i[2]-1;n.add(w,M,[])}}n.add(i[3]+1,0,[["exit",g,a]])}return s!==void 0&&(c.end=Object.assign({},xi(a.events,s)),n.add(s,0,[["exit",c,a]]),c=void 0),c}function Op(n,a,i,u,s){const c=[],f=xi(a.events,i);s&&(s.end=Object.assign({},f),c.push(["exit",s,a])),u.end=Object.assign({},f),c.push(["exit",u,a]),n.add(i+1,0,c)}function xi(n,a){const i=n[a],u=i[0]==="enter"?"start":"end";return i[1][u]}const hk={name:"tasklistCheck",tokenize:mk};function dk(){return{text:{91:hk}}}function mk(n,a,i){const u=this;return s;function s(p){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?i(p):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),c)}function c(p){return Qe(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):i(p)}function f(p){return p===93?(n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),d):i(p)}function d(p){return fe(p)?a(p):Ce(p)?n.check({tokenize:pk},a,i)(p):i(p)}}function pk(n,a,i){return _e(n,u,"whitespace");function u(s){return s===null?i(s):a(s)}}function gk(n){return c0([Y3(),$3(),ak(n),ok(),dk()])}const yk={};function xk(n){const a=this,i=n||yk,u=a.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(gk(i)),c.push(B3()),f.push(U3(i))}function bk(n){return n==="completed"?S.jsx(Yp,{size:14,className:"text-emerald-400"}):n==="in_progress"?S.jsx(rx,{size:14,className:"text-amber-400 animate-spin"}):S.jsx(q1,{size:14,className:"text-zinc-500"})}function vk(n){return n==="completed"?"text-zinc-400 line-through":n==="in_progress"?"text-amber-200":"text-zinc-300"}function Sk(n){const{todos:a}=n;if(!a||a.length===0)return null;const i=a.filter(s=>s.status==="completed").length,u=a.length;return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Xp,{size:14,className:"text-violet-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Tasks"}),S.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[i,"/",u]}),S.jsx("div",{className:"w-16 h-1.5 bg-zinc-700 rounded-full overflow-hidden",children:S.jsx("div",{className:"h-full bg-violet-500 transition-all duration-300",style:{width:`${i/u*100}%`}})})]}),S.jsx("ul",{className:"divide-y divide-zinc-800/50",children:a.map((s,c)=>S.jsxs("li",{className:"flex items-start gap-2.5 px-3 py-2 hover:bg-zinc-800/20 transition-colors",children:[S.jsx("span",{className:"mt-0.5 flex-shrink-0",children:bk(s.status)}),S.jsx("span",{className:`text-xs leading-relaxed ${vk(s.status)}`,children:s.content})]},c))})]})})}class zk{diff(a,i,u={}){let s;typeof u=="function"?(s=u,u={}):"callback"in u&&(s=u.callback);const c=this.castInput(a,u),f=this.castInput(i,u),d=this.removeEmpty(this.tokenize(c,u)),p=this.removeEmpty(this.tokenize(f,u));return this.diffWithOptionsObj(d,p,u,s)}diffWithOptionsObj(a,i,u,s){var c;const f=q=>{if(q=this.postProcess(q,u),s){setTimeout(function(){s(q)},0);return}else return q},d=i.length,p=a.length;let m=1,x=d+p;u.maxEditLength!=null&&(x=Math.min(x,u.maxEditLength));const g=(c=u.timeout)!==null&&c!==void 0?c:1/0,b=Date.now()+g,v=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(v[0],i,a,0,u);if(v[0].oldPos+1>=p&&w+1>=d)return f(this.buildValues(v[0].lastComponent,i,a));let M=-1/0,Y=1/0;const _=()=>{for(let q=Math.max(M,-m);q<=Math.min(Y,m);q+=2){let B;const F=v[q-1],K=v[q+1];F&&(v[q-1]=void 0);let L=!1;if(K){const ie=K.oldPos-q;L=K&&0<=ie&&ie<d}const $=F&&F.oldPos+1<p;if(!L&&!$){v[q]=void 0;continue}if(!$||L&&F.oldPos<K.oldPos?B=this.addToPath(K,!0,!1,0,u):B=this.addToPath(F,!1,!0,1,u),w=this.extractCommon(B,i,a,q,u),B.oldPos+1>=p&&w+1>=d)return f(this.buildValues(B.lastComponent,i,a))||!0;v[q]=B,B.oldPos+1>=p&&(Y=Math.min(Y,q-1)),w+1>=d&&(M=Math.max(M,q+1))}m++};if(s)(function q(){setTimeout(function(){if(m>x||Date.now()>b)return s(void 0);_()||q()},0)})();else for(;m<=x&&Date.now()<=b;){const q=_();if(q)return q}}addToPath(a,i,u,s,c){const f=a.lastComponent;return f&&!c.oneChangePerToken&&f.added===i&&f.removed===u?{oldPos:a.oldPos+s,lastComponent:{count:f.count+1,added:i,removed:u,previousComponent:f.previousComponent}}:{oldPos:a.oldPos+s,lastComponent:{count:1,added:i,removed:u,previousComponent:f}}}extractCommon(a,i,u,s,c){const f=i.length,d=u.length;let p=a.oldPos,m=p-s,x=0;for(;m+1<f&&p+1<d&&this.equals(u[p+1],i[m+1],c);)m++,p++,x++,c.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return x&&!c.oneChangePerToken&&(a.lastComponent={count:x,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=p,m}equals(a,i,u){return u.comparator?u.comparator(a,i):a===i||!!u.ignoreCase&&a.toLowerCase()===i.toLowerCase()}removeEmpty(a){const i=[];for(let u=0;u<a.length;u++)a[u]&&i.push(a[u]);return i}castInput(a,i){return a}tokenize(a,i){return Array.from(a)}join(a){return a.join("")}postProcess(a,i){return a}get useLongestToken(){return!1}buildValues(a,i,u){const s=[];let c;for(;a;)s.push(a),c=a.previousComponent,delete a.previousComponent,a=c;s.reverse();const f=s.length;let d=0,p=0,m=0;for(;d<f;d++){const x=s[d];if(x.removed)x.value=this.join(u.slice(m,m+x.count)),m+=x.count;else{if(!x.added&&this.useLongestToken){let g=i.slice(p,p+x.count);g=g.map(function(b,v){const w=u[m+v];return w.length>b.length?w:b}),x.value=this.join(g)}else x.value=this.join(i.slice(p,p+x.count));p+=x.count,x.added||(m+=x.count)}}return s}}class kk extends zk{constructor(){super(...arguments),this.tokenize=Ck}equals(a,i,u){return u.ignoreWhitespace?((!u.newlineIsToken||!a.includes(`
|
|
271
|
-
`))&&(a=a.trim()),(!u.newlineIsToken||!i.includes(`
|
|
272
|
-
`))&&(i=i.trim())):u.ignoreNewlineAtEof&&!u.newlineIsToken&&(a.endsWith(`
|
|
273
|
-
`)&&(a=a.slice(0,-1)),i.endsWith(`
|
|
274
|
-
`)&&(i=i.slice(0,-1))),super.equals(a,i,u)}}const Ek=new kk;function Dp(n,a,i){return Ek.diff(n,a,i)}function Ck(n,a){a.stripTrailingCr&&(n=n.replace(/\r\n/g,`
|
|
275
|
-
`));const i=[],u=n.split(/(\n|\r\n)/);u[u.length-1]||u.pop();for(let s=0;s<u.length;s++){const c=u[s];s%2&&!a.newlineIsToken?i[i.length-1]+=c:i.push(c)}return i}function Rp(n,a,i,u,s,c,f){let d;f?typeof f=="function"?d={callback:f}:d=f:d={},typeof d.context>"u"&&(d.context=4);const p=d.context;if(d.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(d.callback){const{callback:x}=d;Dp(i,u,Object.assign(Object.assign({},d),{callback:g=>{const b=m(g);x(b)}}))}else return m(Dp(i,u,d));function m(x){if(!x)return;x.push({value:"",lines:[]});function g(q){return q.map(function(B){return" "+B})}const b=[];let v=0,w=0,M=[],Y=1,_=1;for(let q=0;q<x.length;q++){const B=x[q],F=B.lines||Tk(B.value);if(B.lines=F,B.added||B.removed){if(!v){const K=x[q-1];v=Y,w=_,K&&(M=p>0?g(K.lines.slice(-p)):[],v-=M.length,w-=M.length)}for(const K of F)M.push((B.added?"+":"-")+K);B.added?_+=F.length:Y+=F.length}else{if(v)if(F.length<=p*2&&q<x.length-2)for(const K of g(F))M.push(K);else{const K=Math.min(F.length,p);for(const $ of g(F.slice(0,K)))M.push($);const L={oldStart:v,oldLines:Y-v+K,newStart:w,newLines:_-w+K,lines:M};b.push(L),v=0,w=0,M=[]}Y+=F.length,_+=F.length}}for(const q of b)for(let B=0;B<q.lines.length;B++)q.lines[B].endsWith(`
|
|
276
|
-
`)?q.lines[B]=q.lines[B].slice(0,-1):(q.lines.splice(B+1,0,"\"),B++);return{oldFileName:n,newFileName:a,oldHeader:s,newHeader:c,hunks:b}}}function cc(n){if(Array.isArray(n))return n.map(cc).join(`
|
|
277
|
-
`);const a=[];n.oldFileName==n.newFileName&&a.push("Index: "+n.oldFileName),a.push("==================================================================="),a.push("--- "+n.oldFileName+(typeof n.oldHeader>"u"?"":" "+n.oldHeader)),a.push("+++ "+n.newFileName+(typeof n.newHeader>"u"?"":" "+n.newHeader));for(let i=0;i<n.hunks.length;i++){const u=n.hunks[i];u.oldLines===0&&(u.oldStart-=1),u.newLines===0&&(u.newStart-=1),a.push("@@ -"+u.oldStart+","+u.oldLines+" +"+u.newStart+","+u.newLines+" @@");for(const s of u.lines)a.push(s)}return a.join(`
|
|
278
|
-
`)+`
|
|
279
|
-
`}function wk(n,a,i,u,s,c,f){if(typeof f=="function"&&(f={callback:f}),f!=null&&f.callback){const{callback:d}=f;Rp(n,a,i,u,s,c,Object.assign(Object.assign({},f),{callback:p=>{d(p?cc(p):void 0)}}))}else{const d=Rp(n,a,i,u,s,c,f);return d?cc(d):void 0}}function Tk(n){const a=n.endsWith(`
|
|
280
|
-
`),i=n.split(`
|
|
281
|
-
`).map(u=>u+`
|
|
282
|
-
`);return a?i.pop():i.push(i.pop().slice(0,-1)),i}function ja(n){const{text:a,className:i=""}=n,[u,s]=ce.useState(!1),c=async f=>{f.stopPropagation();try{await navigator.clipboard.writeText(a),s(!0),setTimeout(()=>s(!1),1500)}catch{const d=document.createElement("textarea");d.value=a,document.body.appendChild(d),d.select(),document.execCommand("copy"),document.body.removeChild(d),s(!0),setTimeout(()=>s(!1),1500)}};return S.jsx("button",{onClick:c,className:`p-1 rounded hover:bg-zinc-700/50 transition-colors ${i}`,title:u?"Copied!":"Copy path",children:u?S.jsx(Aa,{size:12,className:"text-emerald-400"}):S.jsx(hc,{size:12,className:"text-zinc-500 hover:text-zinc-300"})})}function eg(n){return n.split("/").slice(-2).join("/")}function Ak(n){const a=n.split(`
|
|
283
|
-
`),i=[];for(const u of a)u.startsWith("@@")?i.push({type:"header",content:u}):u.startsWith("+")&&!u.startsWith("+++")?i.push({type:"add",content:u.slice(1)}):u.startsWith("-")&&!u.startsWith("---")?i.push({type:"remove",content:u.slice(1)}):u.startsWith(" ")&&i.push({type:"context",content:u.slice(1)});return i}function Nk(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.old_string||"",u=a.new_string||"",s=eg(a.file_path),c=wk("a/"+s,"b/"+s,i,u,"","",{context:3}),f=Ak(c),d=f.filter(m=>m.type==="add").length,p=f.filter(m=>m.type==="remove").length;return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Z1,{size:14,className:"text-blue-400"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:s}),S.jsxs("div",{className:"flex items-center gap-2 ml-auto text-xs",children:[d>0&&S.jsxs("span",{className:"flex items-center gap-0.5 text-emerald-400",children:[S.jsx(bx,{size:12}),d]}),p>0&&S.jsxs("span",{className:"flex items-center gap-0.5 text-rose-400",children:[S.jsx(cx,{size:12}),p]}),S.jsx(ja,{text:a.file_path})]})]}),S.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:S.jsx("pre",{className:"text-xs font-mono p-0",children:f.map((m,x)=>m.type==="header"?S.jsx("div",{className:"px-3 py-1 bg-blue-900/20 text-blue-300 border-y border-blue-900/30",children:m.content},x):m.type==="add"?S.jsxs("div",{className:"px-3 py-0.5 bg-emerald-900/20 text-emerald-300 border-l-2 border-emerald-500",children:[S.jsx("span",{className:"select-none text-emerald-600 mr-2",children:"+"}),m.content||" "]},x):m.type==="remove"?S.jsxs("div",{className:"px-3 py-0.5 bg-rose-900/20 text-rose-300 border-l-2 border-rose-500",children:[S.jsx("span",{className:"select-none text-rose-600 mr-2",children:"-"}),m.content||" "]},x):S.jsxs("div",{className:"px-3 py-0.5 text-zinc-400",children:[S.jsx("span",{className:"select-none text-zinc-600 mr-2",children:" "}),m.content||" "]},x))})})]})})}function _k(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.content||"",u=eg(a.file_path),s=i.split(`
|
|
284
|
-
`).length,c=i.slice(0,500),f=i.length>500;return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Gp,{size:14,className:"text-emerald-400"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:u}),S.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[S.jsxs("span",{className:"text-xs text-zinc-500",children:[s," lines"]}),S.jsx(ja,{text:a.file_path})]})]}),S.jsx("div",{className:"overflow-x-auto max-h-60 overflow-y-auto",children:S.jsxs("pre",{className:"text-xs font-mono p-3 text-zinc-300",children:[c,f&&S.jsxs("span",{className:"text-zinc-500",children:["... (",i.length-500," more chars)"]})]})})]})})}function Mk(n){const{input:a}=n,[i,u]=ce.useState(!1);if(!a||!a.command)return null;const s=a.command,c=a.description,f=()=>{navigator.clipboard.writeText(s),u(!0),setTimeout(()=>u(!1),2e3)};return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Fp,{size:14,className:"text-green-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Command"}),c&&S.jsxs("span",{className:"text-xs text-zinc-500 truncate ml-1",children:["— ",c]}),S.jsx("button",{onClick:f,className:"ml-auto p-1 hover:bg-zinc-700/50 rounded transition-colors",title:"Copy command",children:i?S.jsx(Aa,{size:12,className:"text-green-400"}):S.jsx(hc,{size:12,className:"text-zinc-500"})})]}),S.jsx("div",{className:"p-3 overflow-x-auto",children:S.jsx("div",{className:"flex items-start gap-2",children:S.jsx("pre",{className:"text-xs font-mono m-0 p-0 bg-transparent! text-zinc-200 whitespace-pre-wrap break-all",children:s})})})]})})}function jk(n){const{content:a,isError:i}=n;if(!a||a.trim().length===0)return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/30 border border-zinc-700/50 rounded-lg",children:[S.jsx(Yp,{size:14,className:"text-teal-400"}),S.jsx("span",{className:"text-xs text-zinc-400",children:"Command completed successfully (no output)"})]})});const u=a.split(`
|
|
285
|
-
`),s=30,c=u.length>s,f=c?u.slice(0,s):u;return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:`border rounded-lg overflow-hidden ${i?"bg-rose-950/20 border-rose-900/30":"bg-zinc-900/70 border-zinc-700/50"}`,children:[S.jsxs("div",{className:`flex items-center gap-2 px-3 py-2 border-b ${i?"border-rose-900/30 bg-rose-900/20":"border-zinc-700/50 bg-zinc-800/30"}`,children:[i?S.jsxs(S.Fragment,{children:[S.jsx(Nx,{size:14,className:"text-rose-400"}),S.jsx("span",{className:"text-xs font-medium text-rose-300",children:"Error Output"})]}):S.jsxs(S.Fragment,{children:[S.jsx(Zp,{size:14,className:"text-teal-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Output"})]}),S.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," lines"]})]}),S.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:S.jsxs("pre",{className:`text-xs font-mono p-3 whitespace-pre-wrap break-all ${i?"text-rose-200/80":"text-zinc-300"}`,children:[f.join(`
|
|
286
|
-
`),c&&S.jsxs("div",{className:"text-zinc-500 mt-2 pt-2 border-t border-zinc-700/50",children:["... ",u.length-s," more lines"]})]})})]})})}function Ok(n){const{input:a}=n;return!a||!a.pattern?null:S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(lu,{size:14,className:"text-amber-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Search"})]}),S.jsxs("div",{className:"p-3 space-y-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Pattern:"}),S.jsx("code",{className:"text-xs font-mono text-amber-300 bg-amber-500/10 px-1.5 py-0.5 rounded",children:a.pattern})]}),a.path&&S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Path:"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.path})]}),a.glob&&S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Glob:"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.glob})]}),a.type&&S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Type:"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.type})]})]})]})})}function Dk(n){const{input:a}=n;return!a||!a.pattern?null:S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(dc,{size:14,className:"text-cyan-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Find Files"})]}),S.jsxs("div",{className:"p-3 space-y-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Pattern:"}),S.jsx("code",{className:"text-xs font-mono text-cyan-300 bg-cyan-500/10 px-1.5 py-0.5 rounded",children:a.pattern})]}),a.path&&S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("span",{className:"text-xs text-zinc-500",children:"Path:"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.path})]})]})]})})}function Lp(n){const{content:a,isFileList:i}=n;if(!a||a.trim().length===0)return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/30 border border-zinc-700/50 rounded-lg",children:[S.jsx(lu,{size:14,className:"text-zinc-500"}),S.jsx("span",{className:"text-xs text-zinc-400",children:"No matches found"})]})});const u=a.split(`
|
|
287
|
-
`).filter(d=>d.trim()),s=25,c=u.length>s,f=c?u.slice(0,s):u;return i?S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(dc,{size:14,className:"text-cyan-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Files Found"}),S.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," files"]})]}),S.jsxs("div",{className:"overflow-y-auto max-h-60",children:[S.jsx("ul",{className:"divide-y divide-zinc-800/50",children:f.map((d,p)=>S.jsxs("li",{className:"group flex items-center gap-2 px-3 py-1.5 hover:bg-zinc-800/30",children:[S.jsx(Qp,{size:12,className:"text-zinc-500 flex-shrink-0"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300 truncate flex-1",children:d}),S.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:S.jsx(ja,{text:d})})]},p))}),c&&S.jsxs("div",{className:"px-3 py-2 text-xs text-zinc-500 border-t border-zinc-700/50",children:["... ",u.length-s," more files"]})]})]})}):S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(lu,{size:14,className:"text-amber-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Results"}),S.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," matches"]})]}),S.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:S.jsxs("pre",{className:"text-xs font-mono p-3 text-zinc-300 whitespace-pre-wrap",children:[f.join(`
|
|
288
|
-
`),c&&S.jsxs("div",{className:"text-zinc-500 mt-2 pt-2 border-t border-zinc-700/50",children:["... ",u.length-s," more matches"]})]})})]})})}function Rk(n){return n.split("/").slice(-2).join("/")}function tg(n){var i;const a=n.split(".");return a.length>1?(i=a.pop())==null?void 0:i.toLowerCase():""}function ng(n){return{ts:"TypeScript",tsx:"TypeScript React",js:"JavaScript",jsx:"JavaScript React",py:"Python",rb:"Ruby",go:"Go",rs:"Rust",java:"Java",cpp:"C++",c:"C",css:"CSS",scss:"SCSS",html:"HTML",json:"JSON",yaml:"YAML",yml:"YAML",md:"Markdown",sql:"SQL",sh:"Shell",bash:"Bash"}[n]||null}function Lk(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=Rk(a.file_path),u=tg(a.file_path),s=u?ng(u):null;return S.jsx("div",{className:"w-full mt-2",children:S.jsx("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Vp,{size:14,className:"text-sky-400"}),S.jsx("span",{className:"text-xs font-mono text-zinc-300",children:i}),s&&S.jsx("span",{className:"text-xs text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:s}),S.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[(a.offset||a.limit)&&S.jsxs("span",{className:"text-xs text-zinc-500 mr-1",children:[a.offset&&`from line ${a.offset}`,a.offset&&a.limit&&", ",a.limit&&`${a.limit} lines`]}),S.jsx(ja,{text:a.file_path})]})]})})})}function Bk(n){const{content:a,fileName:i}=n;if(!a)return null;const u=a.split(`
|
|
289
|
-
`),s=50,c=u.length>s,f=c?u.slice(0,s):u,d=i?tg(i):"",p=d?ng(d):null;return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(Qp,{size:14,className:"text-sky-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"File Content"}),p&&S.jsx("span",{className:"text-xs text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:p}),S.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," lines"]})]}),S.jsxs("div",{className:"overflow-x-auto max-h-96 overflow-y-auto",children:[S.jsx("table",{className:"w-full text-xs font-mono",children:S.jsx("tbody",{children:f.map((m,x)=>S.jsxs("tr",{className:"hover:bg-zinc-800/30",children:[S.jsx("td",{className:"select-none text-right pr-3 pl-3 py-0.5 text-zinc-600 border-r border-zinc-800 w-10 sticky left-0 bg-zinc-900/70",children:x+1}),S.jsx("td",{className:"pl-3 pr-3 py-0.5 text-zinc-300 whitespace-pre",children:m||" "})]},x))})}),c&&S.jsxs("div",{className:"px-3 py-2 text-xs text-zinc-500 border-t border-zinc-700/50",children:["... ",u.length-s," more lines"]})]})]})})}function Uk(n){const{input:a}=n;return!a||!a.questions||a.questions.length===0?null:S.jsx("div",{className:"w-full mt-2 space-y-3",children:a.questions.map((i,u)=>S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(U1,{size:14,className:"text-violet-400"}),S.jsx("span",{className:"text-xs font-medium text-zinc-300",children:i.header||"Question"}),i.multiSelect&&S.jsx("span",{className:"text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded ml-auto",children:"Multi-select"})]}),S.jsxs("div",{className:"p-3 space-y-3",children:[S.jsx("p",{className:"text-sm text-zinc-200",children:i.question}),i.options&&i.options.length>0&&S.jsx("div",{className:"space-y-2",children:i.options.map((s,c)=>{const f=i.multiSelect?Ex:wx;return S.jsxs("div",{className:"flex items-start gap-2 px-2 py-1.5 rounded bg-zinc-800/40 border border-zinc-700/30",children:[S.jsx(f,{size:14,className:"text-violet-400/70 mt-0.5 flex-shrink-0"}),S.jsxs("div",{className:"min-w-0",children:[S.jsx("div",{className:"text-xs font-medium text-zinc-200",children:s.label}),s.description&&S.jsx("div",{className:"text-xs text-zinc-500 mt-0.5",children:s.description})]})]},c)})})]})]},u))})}function Hk(n){const a=n.toLowerCase();return a==="explore"?"text-cyan-400":a==="plan"?"text-violet-400":a==="claude-code-guide"?"text-amber-400":a==="general-purpose"?"text-emerald-400":"text-blue-400"}function qk(n){const a=n.toLowerCase();return a==="explore"?"bg-cyan-500/10 border-cyan-500/20":a==="plan"?"bg-violet-500/10 border-violet-500/20":a==="claude-code-guide"?"bg-amber-500/10 border-amber-500/20":a==="general-purpose"?"bg-emerald-500/10 border-emerald-500/20":"bg-blue-500/10 border-blue-500/20"}function Yk(n){const{input:a}=n;if(!a)return null;const i=Hk(a.subagent_type),u=qk(a.subagent_type);return S.jsx("div",{className:"w-full mt-2",children:S.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[S.jsx(qp,{size:14,className:i}),S.jsx("span",{className:`text-xs font-medium ${i}`,children:a.subagent_type}),a.description&&S.jsxs(S.Fragment,{children:[S.jsx(O1,{size:10,className:"text-zinc-600"}),S.jsx("span",{className:"text-xs text-zinc-400",children:a.description})]}),S.jsxs("div",{className:"flex items-center gap-1.5 ml-auto",children:[a.resume&&S.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:[S.jsx(Sx,{size:10}),"resume"]}),a.run_in_background&&S.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:[S.jsx(mx,{size:10}),"background"]}),a.model&&S.jsx("span",{className:"text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:a.model})]})]}),S.jsx("div",{className:"p-3",children:S.jsxs("div",{className:`flex items-start gap-2 px-3 py-2 rounded-lg border ${u}`,children:[S.jsx(Zp,{size:12,className:`${i} mt-0.5 flex-shrink-0`}),S.jsx("p",{className:"text-xs text-zinc-300 leading-relaxed whitespace-pre-wrap",children:a.prompt})]})})]})})}const lg=ce.memo(function(a){const{content:i,className:u=""}=a;return S.jsx("div",{className:`break-words ${u}`,children:S.jsx(az,{remarkPlugins:[xk],components:{h1:s=>{const{children:c}=s;return S.jsx("div",{className:"text-base font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h2:s=>{const{children:c}=s;return S.jsx("div",{className:"text-sm font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h3:s=>{const{children:c}=s;return S.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-3 mb-1.5",children:c})},h4:s=>{const{children:c}=s;return S.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h5:s=>{const{children:c}=s;return S.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h6:s=>{const{children:c}=s;return S.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},p:s=>{const{children:c}=s;return S.jsx("p",{className:"text-[13px] leading-relaxed text-zinc-200 whitespace-pre-wrap my-2",children:c})},a:s=>{const{href:c,children:f}=s;return S.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400 hover:text-cyan-300 underline underline-offset-2",children:f})},strong:s=>{const{children:c}=s;return S.jsx("strong",{className:"font-semibold text-zinc-50",children:c})},em:s=>{const{children:c}=s;return S.jsx("em",{className:"italic text-zinc-200",children:c})},code:s=>{const{children:c}=s;return S.jsx("code",{className:"px-1.5 py-0.5 rounded bg-zinc-800/80 text-cyan-300 text-[12px] font-mono",children:c})},pre:s=>{var p,m,x;const{node:c}=s,f=(p=c==null?void 0:c.children)==null?void 0:p[0];if((f==null?void 0:f.tagName)==="code"){const b=(((m=f.properties)==null?void 0:m.className)||[]).find(M=>M.startsWith("language-")),v=(b==null?void 0:b.replace("language-",""))||"code",w=((x=f.children)==null?void 0:x.map(M=>M.value).join(""))||"";return S.jsxs("div",{className:"relative group my-2 rounded-lg overflow-hidden border border-zinc-700/50",children:[S.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 bg-zinc-900 border-b border-zinc-700/50",children:[S.jsx("span",{className:"text-[10px] text-zinc-500 font-mono",children:v}),S.jsx(ja,{text:w})]}),S.jsx("pre",{className:"text-xs text-zinc-300 bg-zinc-900/80 p-3 overflow-x-auto rounded-t-none!",children:S.jsx("code",{children:w})})]})}const{children:d}=s;return S.jsx("pre",{children:d})},ul:s=>{const{children:c}=s;return S.jsx("ul",{className:"my-2 ml-3 space-y-1 list-disc list-inside text-zinc-200",children:c})},ol:s=>{const{children:c}=s;return S.jsx("ol",{className:"my-2 ml-3 space-y-1 list-decimal list-inside text-zinc-200",children:c})},li:s=>{const{children:c}=s;return S.jsx("li",{className:"text-[13px] leading-relaxed",children:c})},blockquote:s=>{const{children:c}=s;return S.jsx("div",{className:"border-l-2 border-zinc-600 pl-3 my-2 text-zinc-400 italic",children:c})},hr:()=>S.jsx("hr",{className:"border-zinc-700 my-4"}),table:s=>{const{children:c}=s;return S.jsx("div",{className:"my-2 overflow-x-auto rounded-lg border border-zinc-700/50",children:S.jsx("table",{className:"w-full text-[13px]",children:c})})},thead:s=>{const{children:c}=s;return S.jsx("thead",{className:"bg-zinc-900",children:c})},tr:s=>{const{children:c}=s;return S.jsx("tr",{className:"border-b border-zinc-700/50 last:border-b-0",children:c})},th:s=>{const{children:c}=s;return S.jsx("th",{className:"px-3 py-2 text-left font-medium text-zinc-200",children:c})},td:s=>{const{children:c}=s;return S.jsx("td",{className:"px-3 py-2 text-zinc-300",children:c})}},children:i})})});function Vk(n){const a=new Map;for(const i of n)i.type==="tool_use"&&i.id&&i.name&&a.set(i.id,i.name);return a}const Gk=ce.memo(function(a){var w;const{message:i}=a,u=i.type==="user",s=(w=i.message)==null?void 0:w.content,c=()=>!s||typeof s=="string"?[]:s.filter(M=>M.type==="text"),f=()=>!s||typeof s=="string"?[]:s.filter(M=>M.type==="tool_use"||M.type==="tool_result"||M.type==="thinking"),d=()=>c().filter(M=>M.text&&bi(M.text).length>0),p=()=>typeof s=="string"?bi(s).length>0:d().length>0,m=f(),x=d(),g=p(),b=m.length>0,v=Array.isArray(s)?Vk(s):new Map;return!g&&b?S.jsx("div",{className:"flex flex-col gap-1 py-0.5",children:m.map((M,Y)=>S.jsx(Wo,{block:M,toolMap:v},Y))}):!g&&!b?null:S.jsx("div",{className:`flex ${u?"justify-end":"justify-start"} min-w-0`,children:S.jsxs("div",{className:"max-w-[85%] min-w-0",children:[S.jsx("div",{className:`px-3.5 py-2.5 rounded-2xl overflow-hidden ${u?"bg-indigo-600/80 text-indigo-50 rounded-br-md":"bg-cyan-700/50 text-zinc-100 rounded-bl-md"}`,children:typeof s=="string"?u?S.jsx("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-relaxed",children:bi(s)}):S.jsx(lg,{content:bi(s)}):S.jsx("div",{className:"flex flex-col gap-1",children:x.map((M,Y)=>S.jsx(Wo,{block:M,isUser:u,toolMap:v},Y))})}),b&&S.jsx("div",{className:"flex flex-col gap-1 mt-1.5",children:m.map((M,Y)=>S.jsx(Wo,{block:M,toolMap:v},Y))})]})})});function Qk(n){const a=n.toLowerCase();return a==="todowrite"?Xp:a==="read"?Vp:a==="bash"?Fp:a==="grep"?lu:a==="edit"?gx:a==="write"?Gp:a==="glob"?dc:a==="task"?qp:a.includes("web")||a.includes("fetch")||a.includes("url")?P1:a.includes("ask")||a.includes("question")?sx:a.includes("git")||a.includes("commit")?$1:a.includes("sql")||a.includes("database")||a.includes("query")?G1:a.includes("file")||a.includes("disk")?tx:Mx}function Xk(n,a){if(!a)return null;const i=n.toLowerCase();if(i==="read"&&a.file_path)return String(a.file_path).split("/").slice(-2).join("/");if(i==="bash"&&a.command){const u=String(a.command);return u.length>50?u.slice(0,50)+"...":u}if(i==="grep"&&a.pattern)return`"${String(a.pattern)}"`;if(i==="glob"&&a.pattern)return String(a.pattern);if((i==="edit"||i==="write")&&a.file_path)return String(a.file_path).split("/").slice(-2).join("/");if(i==="task"&&a.description)return String(a.description);if(i.includes("web")&&a.url)try{return new URL(String(a.url)).hostname}catch{return String(a.url).slice(0,30)}return null}function Zk(n){const{toolName:a,input:i}=n,u=a.toLowerCase();return u==="todowrite"&&i.todos?S.jsx(Sk,{todos:i.todos}):u==="edit"&&i.file_path?S.jsx(Nk,{input:i}):u==="write"&&i.file_path?S.jsx(_k,{input:i}):u==="bash"&&i.command?S.jsx(Mk,{input:i}):u==="grep"&&i.pattern?S.jsx(Ok,{input:i}):u==="glob"&&i.pattern?S.jsx(Dk,{input:i}):u==="read"&&i.file_path?S.jsx(Lk,{input:i}):u==="askuserquestion"&&i.questions?S.jsx(Uk,{input:i}):u==="task"&&i.prompt?S.jsx(Yk,{input:i}):S.jsx("pre",{className:"text-xs text-slate-300 bg-slate-900/50 border border-slate-700/50 rounded-lg p-3 mt-2 overflow-x-auto whitespace-pre-wrap break-all max-h-80 overflow-y-auto",children:JSON.stringify(i,null,2)})}function Fk(n){const{toolName:a,content:i,isError:u}=n,s=a.toLowerCase();if(s==="bash")return S.jsx(jk,{content:i,isError:u});if(s==="glob")return S.jsx(Lp,{content:i,isFileList:!0});if(s==="grep")return S.jsx(Lp,{content:i});if(s==="read")return S.jsx(Bk,{content:i});if(!i||i.trim().length===0)return S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-teal-500/10 border border-teal-500/20 rounded-lg mt-2",children:[S.jsx(Aa,{size:14,className:"text-teal-400"}),S.jsx("span",{className:"text-xs text-teal-300",children:"Completed successfully"})]});const c=2e3,f=i.length>c,d=f?i.slice(0,c):i;return S.jsxs("pre",{className:`text-xs rounded-lg p-3 mt-2 overflow-x-auto whitespace-pre-wrap break-all max-h-80 overflow-y-auto border ${u?"bg-rose-950/30 text-rose-200/80 border-rose-900/30":"bg-teal-950/30 text-teal-200/80 border-teal-900/30"}`,children:[d,f&&S.jsxs("span",{className:"text-zinc-500",children:["... (",i.length-c," more chars)"]})]})}function Wo(n){var f;const{block:a,isUser:i,toolMap:u}=n,[s,c]=ce.useState(!1);if(a.type==="text"&&a.text){const d=bi(a.text);return d?i?S.jsx("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-relaxed",children:d}):S.jsx(lg,{content:d}):null}if(a.type==="thinking"&&a.thinking)return S.jsxs("div",{className:s?"w-full":"",children:[S.jsxs("button",{onClick:()=>c(!s),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-amber-500/10 hover:bg-amber-500/15 text-[11px] text-amber-400/90 transition-colors border border-amber-500/20",children:[S.jsx(lx,{size:12,className:"opacity-70"}),S.jsx("span",{className:"font-medium",children:"thinking"}),S.jsx("span",{className:"text-[10px] opacity-50 ml-0.5",children:s?"▼":"▶"})]}),s&&S.jsx("pre",{className:"text-xs text-zinc-400 bg-zinc-900/80 border border-zinc-800 rounded-lg p-3 mt-2 whitespace-pre-wrap max-h-80 overflow-y-auto",children:a.thinking})]});if(a.type==="tool_use"){const d=a.input&&typeof a.input=="object"?a.input:void 0,p=d&&Object.keys(d).length>0,m=Qk(a.name||""),x=Xk(a.name||"",d),g=((f=a.name)==null?void 0:f.toLowerCase())||"",b=g==="todowrite"||g==="edit"||g==="write"||g==="bash"||g==="grep"||g==="glob"||g==="read"||g==="askuserquestion"||g==="task",v=g==="todowrite"||g==="askuserquestion"||g==="task",w=s||v;return S.jsxs("div",{className:w?"w-full":"",children:[S.jsxs("button",{onClick:()=>p&&!v&&c(!s),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-500/10 hover:bg-slate-500/15 text-[11px] text-slate-300 transition-colors border border-slate-500/20",children:[S.jsx(m,{size:12,className:"opacity-60"}),S.jsx("span",{className:"font-medium text-slate-200",children:a.name}),x&&S.jsx("span",{className:"text-slate-500 font-normal truncate max-w-[200px]",children:x}),p&&!v&&S.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),w&&p&&b?S.jsx(Zk,{toolName:a.name||"",input:d}):s&&p&&S.jsx("pre",{className:"text-xs text-slate-300 bg-slate-900/50 border border-slate-700/50 rounded-lg p-3 mt-2 overflow-x-auto whitespace-pre-wrap break-all max-h-80 overflow-y-auto",children:JSON.stringify(d,null,2)})]})}if(a.type==="tool_result"){const d=a.is_error,p=typeof a.content=="string"?a.content:JSON.stringify(a.content,null,2),m=bi(p),x=m.length>0,g=60,b=x&&!s?m.slice(0,g)+(m.length>g?"...":""):null,v=a.tool_use_id&&u&&u.get(a.tool_use_id)||"";return S.jsxs("div",{className:s?"w-full":"",children:[S.jsxs("button",{onClick:()=>x&&c(!s),className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-[11px] transition-colors border ${d?"bg-rose-500/10 hover:bg-rose-500/15 text-rose-400/90 border-rose-500/20":"bg-teal-500/10 hover:bg-teal-500/15 text-teal-400/90 border-teal-500/20"}`,children:[d?S.jsx(Ox,{size:12,className:"opacity-70"}):S.jsx(Aa,{size:12,className:"opacity-70"}),S.jsx("span",{className:"font-medium",children:d?"error":"result"}),b&&!s&&S.jsx("span",{className:`font-normal truncate max-w-[200px] ${d?"text-rose-500/70":"text-teal-500/70"}`,children:b}),x&&S.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),s&&x&&S.jsx(Fk,{toolName:v,content:m,isError:d})]})}return null}function Kk(n){const{sessionId:a}=n,[i,u]=ce.useState([]),[s,c]=ce.useState(!0),[f,d]=ce.useState(!0),p=ce.useRef(null),m=ce.useRef(null),x=ce.useRef(0),g=ce.useRef(0),b=ce.useRef(null),v=ce.useRef(null),w=ce.useRef(!0),M=10,Y=1e3,_=ce.useCallback(()=>{if(!w.current)return;b.current&&b.current.close();const K=new EventSource(`/api/conversation/${a}/stream?offset=${x.current}`);b.current=K,K.addEventListener("messages",L=>{g.current=0;const $=JSON.parse(L.data);c(!1),u(ie=>{const pe=new Set(ie.map(te=>te.uuid).filter(Boolean)),U=$.filter(te=>!pe.has(te.uuid));return U.length===0?ie:(x.current+=U.length,[...ie,...U])})}),K.onerror=()=>{if(K.close(),c(!1),!!w.current&&g.current<M){const L=Math.min(Y*Math.pow(2,g.current),3e4);g.current++,v.current=setTimeout(()=>_(),L)}}},[a]);ce.useEffect(()=>(w.current=!0,c(!0),u([]),x.current=0,g.current=0,_(),()=>{w.current=!1,v.current&&clearTimeout(v.current),b.current&&b.current.close()}),[_]),ce.useEffect(()=>{f&&m.current&&m.current.scrollIntoView({behavior:"instant"})},[i,f]);const q=()=>{if(!p.current)return;const{scrollTop:K,scrollHeight:L,clientHeight:$}=p.current,ie=L-K-$<100;d(ie)},B=i.find(K=>K.type==="summary"),F=i.filter(K=>K.type==="user"||K.type==="assistant");return s?S.jsx("div",{className:"flex h-full items-center justify-center text-zinc-500",children:"Loading..."}):S.jsx("div",{ref:p,onScroll:q,className:"h-full overflow-y-auto bg-zinc-950",children:S.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-4",children:[B&&S.jsxs("div",{className:"mb-6 rounded-xl border border-zinc-800/60 bg-zinc-900/50 p-4",children:[S.jsx("h2",{className:"text-sm font-medium text-zinc-200 leading-relaxed",children:B.summary}),S.jsxs("p",{className:"mt-2 text-[11px] text-zinc-500",children:[F.length," messages"]})]}),S.jsx("div",{className:"flex flex-col gap-2",children:F.map((K,L)=>S.jsx("div",{ref:L===F.length-1?m:void 0,children:S.jsx(Gk,{message:K})},K.uuid||L))}),!f&&S.jsxs("button",{onClick:()=>{var K;d(!0),(K=m.current)==null||K.scrollIntoView({behavior:"instant"})},className:"fixed bottom-4 right-6 rounded-full bg-zinc-200/90 px-3.5 py-2 text-xs font-medium text-zinc-900 shadow-lg transition-all hover:bg-zinc-100 flex items-center gap-1.5 backdrop-blur-sm",children:[S.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})}),S.jsx("span",{children:"Latest"})]})]})})}function Jk(n,a){const{events:i,onError:u,maxRetries:s=10,baseDelay:c=1e3}=a,f=ce.useRef(null),d=ce.useRef(0),p=ce.useRef(null),m=ce.useRef(!0),x=ce.useRef(i);x.current=i;const g=ce.useCallback(()=>{if(!m.current)return;f.current&&f.current.close();const b=new EventSource(n);f.current=b;for(const v of x.current)b.addEventListener(v.eventName,w=>{d.current=0,v.onMessage(w)});b.onerror=()=>{if(b.close(),!!m.current)if(d.current<s){const v=Math.min(c*Math.pow(2,d.current),3e4);d.current++,p.current=setTimeout(()=>{g()},v)}else u==null||u()}},[n,u,s,c]);ce.useEffect(()=>(m.current=!0,g(),()=>{m.current=!1,p.current&&clearTimeout(p.current),f.current&&f.current.close()}),[g])}function Ik(){const[n,a]=ce.useState([]),[i,u]=ce.useState([]),[s,c]=ce.useState(null),[f,d]=ce.useState(null),[p,m]=ce.useState(!0),[x,g]=ce.useState(!1),[b,v]=ce.useState(!1),w=ce.useCallback((F,K)=>{const L=`cd ${K} && claude --resume ${F}`;navigator.clipboard.writeText(L).then(()=>{v(!0),setTimeout(()=>v(!1),2e3)})},[]);ce.useEffect(()=>{fetch("/api/projects").then(F=>F.json()).then(u).catch(console.error)},[]);const M=ce.useCallback(F=>{const K=JSON.parse(F.data);a(K),m(!1)},[]),Y=ce.useCallback(F=>{const K=JSON.parse(F.data);a(L=>{const $=new Map(L.map(ie=>[ie.id,ie]));for(const ie of K)$.set(ie.id,ie);return Array.from($.values()).sort((ie,pe)=>pe.timestamp-ie.timestamp)})},[]),_=ce.useCallback(()=>{m(!1)},[]);Jk("/api/sessions/stream",{events:[{eventName:"sessions",onMessage:M},{eventName:"sessionsUpdate",onMessage:Y}],onError:_});const q=ce.useMemo(()=>s?n.filter(F=>F.project===s):n,[n,s]),B=ce.useCallback(F=>{d(F)},[]);return S.jsxs("div",{className:"flex h-screen bg-zinc-950 text-zinc-100",children:[!x&&S.jsxs("aside",{className:"w-80 border-r border-zinc-800/60 flex flex-col bg-zinc-950",children:[S.jsx("div",{className:"border-b border-zinc-800/60",children:S.jsx("label",{htmlFor:"select-project",className:"block w-full px-1",children:S.jsxs("select",{id:"select-project",value:s||"",onChange:F=>c(F.target.value||null),className:"w-full h-[50px] bg-transparent text-zinc-300 text-sm focus:outline-none cursor-pointer px-5 py-4",children:[S.jsx("option",{value:"",children:"All Projects"}),i.map(F=>{const K=F.split("/").pop()||F;return S.jsx("option",{value:F,children:K},F)})]})})}),S.jsx(Kx,{sessions:q,selectedSession:f,onSelectSession:B,loading:p})]}),S.jsxs("main",{className:"flex-1 overflow-hidden bg-zinc-950 flex flex-col",children:[S.jsxs("div",{className:"h-[50px] border-b border-zinc-800/60 flex items-center px-4 gap-4",children:[S.jsx("button",{onClick:()=>g(!x),className:"p-1.5 hover:bg-zinc-800 rounded transition-colors cursor-pointer","aria-label":x?"Expand sidebar":"Collapse sidebar",children:S.jsx(hx,{className:"w-4 h-4 text-zinc-400"})}),f&&(()=>{const F=n.find(K=>K.id===f);return F?S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[S.jsx("span",{className:"text-sm text-zinc-300 truncate max-w-xs",children:F.display}),S.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:F.projectName}),S.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:Kp(F.timestamp)})]}),S.jsx("button",{onClick:()=>w(F.id,F.project),className:"flex items-center gap-2 px-2.5 py-1.5 text-xs text-zinc-300 bg-zinc-800 hover:bg-zinc-700 rounded transition-colors cursor-pointer shrink-0",title:"Copy resume command to clipboard",children:b?S.jsxs(S.Fragment,{children:[S.jsx(Aa,{className:"w-3.5 h-3.5 text-green-500"}),S.jsx("span",{className:"text-green-500",children:"Copied!"})]}):S.jsxs(S.Fragment,{children:[S.jsx(hc,{className:"w-3.5 h-3.5"}),S.jsx("span",{children:"Copy Resume Command"})]})})]}):null})()]}),S.jsx("div",{className:"flex-1 overflow-hidden",children:f?S.jsx(Kk,{sessionId:f}):S.jsx("div",{className:"flex h-full items-center justify-center text-zinc-600",children:S.jsxs("div",{className:"text-center",children:[S.jsx("div",{className:"text-base mb-2 text-zinc-500",children:"Select a session"}),S.jsx("div",{className:"text-sm text-zinc-600",children:"Choose a session from the list to view the conversation"})]})})})]})]})}w1.createRoot(document.getElementById("root")).render(S.jsx(ce.StrictMode,{children:S.jsx(Ik,{})}));
|