@teddysc/claude-run 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){const
|
|
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 Hp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var No={exports:{}},xa={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var _m;function v1(){if(_m)return
|
|
9
|
+
*/var _m;function v1(){if(_m)return xa;_m=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 xa.Fragment=a,xa.jsx=i,xa.jsxs=i,xa}var Mm;function S1(){return Mm||(Mm=1,No.exports=v1()),No.exports}var S=S1(),_o={exports:{}},ge={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var jm;function z1(){if(jm)return ge;jm=1;var n=Symbol.for("react.transitional.element"),
|
|
17
|
+
*/var jm;function z1(){if(jm)return ge;jm=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"),v=Symbol.iterator;function b(T){return T===null||typeof T!="object"?null:(T=v&&T[v]||T["@@iterator"],typeof T=="function"?T:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,U={};function _(T,G,k){this.props=T,this.context=G,this.refs=U,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 Y(){}Y.prototype=_.prototype;function H(T,G,k){this.props=T,this.context=G,this.refs=U,this.updater=k||w}var I=H.prototype=new Y;I.constructor=H,M(I,_.prototype),I.isPureReactComponent=!0;var F=Array.isArray;function D(){}var $={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function fe(T,G,k){var ee=k.ref;return{$$typeof:n,type:T,key:G,ref:ee!==void 0?ee:null,props:k}}function B(T,G){return fe(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 ie(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(D,D):(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 L(T,G,k,ee,me){var oe=typeof T;(oe==="undefined"||oe==="boolean")&&(T=null);var we=!1;if(T===null)we=!0;else switch(oe){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,L(we(T._payload),G,k,ee,me)}}if(we)return me=me(T),we=ee===""?"."+ie(T,0):ee,F(me)?(k="",we!=null&&(k=we.replace(Se,"$&/")+"/"),L(me,G,k,"",function(Yt){return Yt})):me!=null&&(te(me)&&(me=B(me,k+(me.key==null||T&&T.key===me.key?"":(""+me.key).replace(Se,"$&/")+"/")+we)),G.push(me)),1;we=0;var Ke=ee===""?".":ee+":";if(F(T))for(var Ue=0;Ue<T.length;Ue++)ee=T[Ue],oe=Ke+ie(ee,Ue),we+=L(ee,G,k,oe,me);else if(Ue=b(T),typeof Ue=="function")for(T=Ue.call(T),Ue=0;!(ee=T.next()).done;)ee=ee.value,oe=Ke+ie(ee,Ue++),we+=L(ee,G,k,oe,me);else if(oe==="object"){if(typeof T.then=="function")return L(W(T),G,k,ee,me);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 K(T,G,k){if(T==null)return T;var ee=[],me=0;return L(T,ee,"","",function(oe){return G.call(k,oe,me++)}),ee}function re(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:K,forEach:function(T,G,k){K(T,function(){G.apply(this,arguments)},k)},count:function(T){var G=0;return K(T,function(){G++}),G},toArray:function(T){return K(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=H,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),me=T.key;if(G!=null)for(oe in G.key!==void 0&&(me=""+G.key),G)!ue.call(G,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&G.ref===void 0||(ee[oe]=G[oe]);var oe=arguments.length-2;if(oe===1)ee.children=k;else if(1<oe){for(var we=Array(oe),Ke=0;Ke<oe;Ke++)we[Ke]=arguments[Ke+2];ee.children=we}return fe(T.type,me,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,me={},oe=null;if(G!=null)for(ee in G.key!==void 0&&(oe=""+G.key),G)ue.call(G,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(me[ee]=G[ee]);var we=arguments.length-2;if(we===1)me.children=k;else if(1<we){for(var Ke=Array(we),Ue=0;Ue<we;Ue++)Ke[Ue]=arguments[Ue+2];me.children=Ke}if(T&&T.defaultProps)for(ee in we=T.defaultProps,we)me[ee]===void 0&&(me[ee]=we[ee]);return fe(T,oe,me)},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:re}},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(),me=$.S;me!==null&&me(k,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(D,ve)}catch(oe){ve(oe)}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.4",ge}var Om;function hc(){return Om||(Om=1,_o.exports=z1()),_o.exports}var se=hc(),Mo={exports:{}},ba={},jo={exports:{}},Oo={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Dm;function k1(){return Dm||(Dm=1,(function(n){function
|
|
25
|
+
*/var Dm;function k1(){return Dm||(Dm=1,(function(n){function a(L,K){var re=L.length;L.push(K);e:for(;0<re;){var ve=re-1>>>1,E=L[ve];if(0<s(E,K))L[ve]=K,L[re]=E,re=ve;else break e}}function i(L){return L.length===0?null:L[0]}function u(L){if(L.length===0)return null;var K=L[0],re=L.pop();if(re!==K){L[0]=re;e:for(var ve=0,E=L.length,T=E>>>1;ve<T;){var G=2*(ve+1)-1,k=L[G],ee=G+1,me=L[ee];if(0>s(k,re))ee<E&&0>s(me,k)?(L[ve]=me,L[ee]=re,ve=ee):(L[ve]=k,L[G]=re,ve=G);else if(ee<E&&0>s(me,re))L[ve]=me,L[ee]=re,ve=ee;else break e}}return K}function s(L,K){var re=L.sortIndex-K.sortIndex;return re!==0?re:L.id-K.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,v=3,b=!1,w=!1,M=!1,U=!1,_=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function I(L){for(var K=i(m);K!==null;){if(K.callback===null)u(m);else if(K.startTime<=L)u(m),K.sortIndex=K.expirationTime,a(p,K);else break;K=i(m)}}function F(L){if(M=!1,I(L),!w)if(i(p)!==null)w=!0,D||(D=!0,ne());else{var K=i(m);K!==null&&W(F,K.startTime-L)}}var D=!1,$=-1,ue=5,fe=-1;function B(){return U?!0:!(n.unstable_now()-fe<ue)}function te(){if(U=!1,D){var L=n.unstable_now();fe=L;var K=!0;try{e:{w=!1,M&&(M=!1,Y($),$=-1),b=!0;var re=v;try{t:{for(I(L),g=i(p);g!==null&&!(g.expirationTime>L&&B());){var ve=g.callback;if(typeof ve=="function"){g.callback=null,v=g.priorityLevel;var E=ve(g.expirationTime<=L);if(L=n.unstable_now(),typeof E=="function"){g.callback=E,I(L),K=!0;break t}g===i(p)&&u(p),I(L)}else u(p);g=i(p)}if(g!==null)K=!0;else{var T=i(m);T!==null&&W(F,T.startTime-L),K=!1}}break e}finally{g=null,v=re,b=!1}K=void 0}}finally{K?ne():D=!1}}}var ne;if(typeof H=="function")ne=function(){H(te)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ie=Se.port2;Se.port1.onmessage=te,ne=function(){ie.postMessage(null)}}else ne=function(){_(te,0)};function W(L,K){$=_(function(){L(n.unstable_now())},K)}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(L){L.callback=null},n.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(L){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var re=v;v=K;try{return L()}finally{v=re}},n.unstable_requestPaint=function(){U=!0},n.unstable_runWithPriority=function(L,K){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var re=v;v=L;try{return K()}finally{v=re}},n.unstable_scheduleCallback=function(L,K,re){var ve=n.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?ve+re:ve):re=ve,L){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=re+E,L={id:x++,callback:K,priorityLevel:L,startTime:re,expirationTime:E,sortIndex:-1},re>ve?(L.sortIndex=re,a(m,L),i(p)===null&&L===i(m)&&(M?(Y($),$=-1):M=!0,W(F,re-ve))):(L.sortIndex=E,a(p,L),w||b||(w=!0,D||(D=!0,ne()))),L},n.unstable_shouldYield=B,n.unstable_wrapCallback=function(L){var K=v;return function(){var re=v;v=K;try{return L.apply(this,arguments)}finally{v=re}}}})(Oo)),Oo}var Rm;function E1(){return Rm||(Rm=1,jo.exports=k1()),jo.exports}var Do={exports:{}},mt={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Lm;function C1(){if(Lm)return mt;Lm=1;var n=hc();function
|
|
33
|
+
*/var Lm;function C1(){if(Lm)return mt;Lm=1;var n=hc();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),v=typeof m.integrity=="string"?m.integrity:void 0,b=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:v,fetchPriority:b}):x==="script"&&u.d.X(p,{crossOrigin:g,integrity:v,fetchPriority:b,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.4",mt}var Bm;function qp(){if(Bm)return Do.exports;Bm=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=C1(),Do.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Um;function w1(){if(Um)return
|
|
41
|
+
*/var Um;function w1(){if(Um)return ba;Um=1;var n=E1(),a=hc(),i=qp();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,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),H=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),B=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 ie(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 U:return"StrictMode";case F:return"Suspense";case D:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case H:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case I: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:ie(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var W=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={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),me=T(null),oe=T(null),we=T(null);function Ke(e,t){switch(k(oe,t),k(me,e),k(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Pd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Pd(t),e=em(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(ee),k(ee,e)}function Ue(){G(ee),G(me),G(oe)}function Yt(e){e.memoizedState!==null&&k(we,e);var t=ee.current,l=em(t,e.type);t!==l&&(k(me,e),k(ee,l))}function fn(e){me.current===e&&(G(ee),G(me)),we.current===e&&(G(we),ma._currentValue=re)}var Ci,Oa;function hn(e){if(Ci===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ci=t&&t[1]||"",Oa=-1<l.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+
|
|
43
|
+
`+Ci+e+Oa}var Al=!1;function Nl(e,t){if(!e||Al)return"";Al=!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(q){var R=q}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(q){R=q}e.call(Z.prototype)}}else{try{throw Error()}catch(q){R=q}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(q){if(q&&R&&typeof q.stack=="string")return[q.stack,R.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
44
|
`),O=z.split(`
|
|
45
|
-
`);for(o=
|
|
46
|
-
`+C[
|
|
47
|
-
Error generating stack: `+
|
|
48
|
-
`+a.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,X=n.unstable_ImmediatePriority,P=n.unstable_UserBlockingPriority,pe=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:rg,On=Math.log,Pt=Math.LN2;function rg(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 a=e.pendingLanes;if(a===0)return 0;var o=0,h=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var z=a&134217727;return z!==0?(a=z&~h,a!==0?o=rl(a):(y&=z,y!==0?o=rl(y):l||(l=z&~e,l!==0&&(o=rl(l))))):(z=a&~h,z!==0?o=rl(z):y!==0?o=rl(y):l||(l=a&~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 ug(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 Oc(){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 sg(e,t,l,a,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 R=O[V];if(R!==null)for(O[V]=null,V=0;V<R.length;V++){var H=R[V];H!==null&&(H.lane&=-536870913)}l&=~Z}a!==0&&Dc(e,a,0),h!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=h&~(y&~t))}function Dc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ve(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Rc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Ve(l),o=1<<a;o&t|e[a]&t&&(e[a]|=t),l&=~o}}function Lc(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 Bc(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:km(e.type))}function Uc(e,t){var l=K.p;try{return K.p=e,t()}finally{K.p=l}}var Dn=Math.random().toString(36).slice(2),ot="__reactFiber$"+Dn,zt="__reactProps$"+Dn,Ml="__reactContainer$"+Dn,bu="__reactEvents$"+Dn,og="__reactListeners$"+Dn,cg="__reactHandles$"+Dn,Hc="__reactResources$"+Dn,Ai="__reactMarker$"+Dn;function vu(e){delete e[ot],delete e[zt],delete e[bu],delete e[og],delete e[cg]}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=um(e);e!==null;){if(l=e[ot])return l;e=um(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[Hc];return t||(t=e[Hc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Ai]=!0}var qc=new Set,Yc={};function ul(e,t){Rl(e,t),Rl(e+"Capture",t)}function Rl(e,t){for(Yc[e]=t,e=0;e<t.length;e++)qc.add(t[e])}var fg=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]*$"),Vc={},Gc={};function hg(e){return Nl.call(Gc,e)?!0:Nl.call(Vc,e)?!1:fg.test(e)?Gc[e]=!0:(Vc[e]=!0,!1)}function qa(e,t,l){if(hg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="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,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}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 Xc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dg(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,h=a.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:a.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=Xc(e)?"checked":"value";e._valueTracker=dg(e,t,""+e[t])}}function Qc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Xc(e)?e.checked?"true":"false":e.value),e=a,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 mg=/[\n"\\]/g;function Gt(e){return e.replace(mg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zu(e,t,l,a,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)):a!=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 Zc(e,t,l,a,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}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=z?e.checked:!!a,e.defaultChecked=!!a,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,a){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&&a&&(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,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Fc(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 Kc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(u(92));if(W(a)){if(1<a.length)throw Error(u(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Vt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),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 pg=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 Jc(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||pg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Ic(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&l[o]!==a&&Jc(e,o,a)}else for(var h in t)t.hasOwnProperty(h)&&Jc(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 gg=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"]]),yg=/^[\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 yg.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 $c(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 a=l[t];if(a!==e&&a.form===e.form){var o=a[zt]||null;if(!o)throw Error(u(90));zu(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Qc(a)}break e;case"textarea":Fc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ll(e,!!l.multiple,t,!1)}}}var Tu=!1;function Wc(e,t,l){if(Tu)return e(t,l);Tu=!0;try{var a=e(t);return a}finally{if(Tu=!1,(Ul!==null||Hl!==null)&&(_r(),Ul&&(t=Ul,e=Hl,Hl=Ul=null,$c(t),e)))for(t=0;t<e.length;t++)$c(e[t])}}function _i(e,t){var l=e.stateNode;if(l===null)return null;var a=l[zt]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;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,Xa=null;function Pc(){if(Xa)return Xa;var e,t=Nu,l=t.length,a,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(a=1;a<=y&&t[l-a]===o[h-a];a++);return Xa=o.slice(e,1<a?1-a:void 0)}function Qa(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 ef(){return!1}function kt(e){function t(l,a,o,h,y){this._reactName=l,this._targetInst=o,this.type=a,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:ef,this.isPropagationStopped=ef,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}),xg=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}}),tf=kt(Ka),bg=g({},Ka,{dataTransfer:0}),vg=kt(bg),Sg=g({},ji,{relatedTarget:0}),ju=kt(Sg),zg=g({},sl,{animationName:0,elapsedTime:0,pseudoElement:0}),kg=kt(zg),Eg=g({},sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cg=kt(Eg),wg=g({},sl,{data:0}),nf=kt(wg),Tg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ag={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"},Ng={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _g(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ng[e])?!!t[e]:!1}function Ou(){return _g}var Mg=g({},ji,{key:function(e){if(e.key){var t=Tg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ag[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"?Qa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jg=kt(Mg),Og=g({},Ka,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lf=kt(Og),Dg=g({},ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),Rg=kt(Dg),Lg=g({},sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bg=kt(Lg),Ug=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}),Hg=kt(Ug),qg=g({},sl,{newState:0,oldState:0}),Yg=kt(qg),Vg=[9,13,27,32],Du=gn&&"CompositionEvent"in window,Di=null;gn&&"documentMode"in document&&(Di=document.documentMode);var Gg=gn&&"TextEvent"in window&&!Di,af=gn&&(!Du||Di&&8<Di&&11>=Di),rf=" ",uf=!1;function sf(e,t){switch(e){case"keyup":return Vg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function of(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ql=!1;function Xg(e,t){switch(e){case"compositionend":return of(t);case"keypress":return t.which!==32?null:(uf=!0,rf);case"textInput":return e=t.data,e===rf&&uf?null:e;default:return null}}function Qg(e,t){if(ql)return e==="compositionend"||!Du&&sf(e,t)?(e=Pc(),Xa=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 af&&t.locale!=="ko"?null:t.data;default:return null}}var Zg={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 cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zg[e.type]:t==="textarea"}function ff(e,t,l,a){Ul?Hl?Hl.push(a):Hl=[a]:Ul=a,t=Br(t,"onChange"),0<t.length&&(l=new Fa("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Ri=null,Li=null;function Fg(e){Fd(e,0)}function Ja(e){var t=Ni(e);if(Qc(t))return e}function hf(e,t){if(e==="change")return t}var df=!1;if(gn){var Ru;if(gn){var Lu="oninput"in document;if(!Lu){var mf=document.createElement("div");mf.setAttribute("oninput","return;"),Lu=typeof mf.oninput=="function"}Ru=Lu}else Ru=!1;df=Ru&&(!document.documentMode||9<document.documentMode)}function pf(){Ri&&(Ri.detachEvent("onpropertychange",gf),Li=Ri=null)}function gf(e){if(e.propertyName==="value"&&Ja(Li)){var t=[];ff(t,Li,e,wu(e)),Wc(Fg,t)}}function Kg(e,t,l){e==="focusin"?(pf(),Ri=t,Li=l,Ri.attachEvent("onpropertychange",gf)):e==="focusout"&&pf()}function Jg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ja(Li)}function Ig(e,t){if(e==="click")return Ja(t)}function $g(e,t){if(e==="input"||e==="change")return Ja(t)}function Wg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:Wg;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),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var o=l[a];if(!Nl.call(t,o)||!jt(e[o],t[o]))return!1}return!0}function yf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xf(e,t){var l=yf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yf(l)}}function bf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=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 Pg=gn&&"documentMode"in document&&11>=document.documentMode,Yl=null,Uu=null,Ui=null,Hu=!1;function Sf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hu||Yl==null||Yl!==Va(a)||(a=Yl,"selectionStart"in a&&Bu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ui&&Bi(Ui,a)||(Ui=a,a=Br(Uu,"onSelect"),0<a.length&&(t=new Fa("onSelect","select",null,t,l),e.push({event:t,listeners:a}),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={},zf={};gn&&(zf=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 zf)return qu[e]=t[l];return e}var kf=cl("animationend"),Ef=cl("animationiteration"),Cf=cl("animationstart"),ey=cl("transitionrun"),ty=cl("transitionstart"),ny=cl("transitioncancel"),wf=cl("transitionend"),Tf=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){Tf.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)},Xt=[],Gl=0,Vu=0;function $a(){for(var e=Gl,t=Vu=Gl=0;t<e;){var l=Xt[t];Xt[t++]=null;var a=Xt[t];Xt[t++]=null;var o=Xt[t];Xt[t++]=null;var h=Xt[t];if(Xt[t++]=null,a!==null&&o!==null){var y=a.pending;y===null?o.next=o:(o.next=y.next,y.next=o),a.pending=o}h!==0&&Af(l,o,h)}}function Wa(e,t,l,a){Xt[Gl++]=e,Xt[Gl++]=t,Xt[Gl++]=l,Xt[Gl++]=a,Vu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Gu(e,t,l,a){return Wa(e,t,l,a),Pa(e)}function fl(e,t){return Wa(e,null,null,t),Pa(e)}function Af(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var o=!1,h=e.return;h!==null;)h.childLanes|=l,a=h.alternate,a!==null&&(a.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,a=e[o],a===null?e[o]=[t]:a.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 Xl={};function ly(e,t,l,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,l,a){return new ly(e,t,l,a)}function Xu(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 Nf(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,a,o,h){var y=0;if(a=e,typeof e=="function")Xu(e)&&(y=1);else if(typeof e=="string")y=s1(e,l,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=Ot(31,l,t,o),e.elementType=fe,e.lanes=h,e;case _:return hl(l.children,o,h,t);case Y:y=8,o|=24;break;case M:return e=Ot(12,l,t,o|2),e.elementType=M,e.lanes=h,e;case F:return e=Ot(13,l,t,o),e.elementType=F,e.lanes=h,e;case D:return e=Ot(19,l,t,o),e.elementType=D,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:y=10;break e;case q:y=9;break e;case I:y=11;break e;case $:y=14;break e;case ue:y=16,a=null;break e}y=29,l=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=Ot(y,l,t,o),t.elementType=e,t.type=a,t.lanes=h,t}function hl(e,t,l,a){return e=Ot(7,e,a,t),e.lanes=l,e}function Qu(e,t,l){return e=Ot(6,e,null,t),e.lanes=l,e}function _f(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 Mf=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var l=Mf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ra(t)},Mf.set(e,t),t)}return{value:e,source:t,stack:Ra(t)}}var Ql=[],Zl=0,tr=null,Hi=0,Zt=[],Ft=0,Ln=null,an=1,rn="";function xn(e,t){Ql[Zl++]=Hi,Ql[Zl++]=tr,tr=e,Hi=t}function jf(e,t,l){Zt[Ft++]=an,Zt[Ft++]=rn,Zt[Ft++]=Ln,Ln=e;var a=an;e=rn;var o=32-Ve(a)-1;a&=~(1<<o),l+=1;var h=32-Ve(t)+o;if(30<h){var y=o-o%5;h=(a&(1<<y)-1).toString(32),a>>=y,o-=y,an=1<<32-Ve(t)+o|l<<o|a,rn=h+e}else an=1<<h|l<<o|a,rn=e}function Fu(e){e.return!==null&&(xn(e,1),jf(e,1,0))}function Ku(e){for(;e===tr;)tr=Ql[--Zl],Ql[Zl]=null,Hi=Ql[--Zl],Ql[Zl]=null;for(;e===Ln;)Ln=Zt[--Ft],Zt[Ft]=null,rn=Zt[--Ft],Zt[Ft]=null,an=Zt[--Ft],Zt[Ft]=null}function Of(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(Qt(t,e)),Ju}function Df(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[ot]=e,t[zt]=a,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),Zc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),Kc(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||$d(t.textContent,l)?(a.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),a.onScroll!=null&&Ee("scroll",t),a.onScrollEnd!=null&&Ee("scrollend",t),a.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||Un(e,!0)}function Rf(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 Rf(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),Rf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=rm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=rm(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 a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Pu(e,t,l,a){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),a||(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,a){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,a),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 Lf(ml,e)}function lr(e,t){return ml===null&&pl(e),Lf(e,t)}function Lf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},bn===null){if(e===null)throw Error(u(308));bn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else bn=bn.next=t;return l}var iy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},ay=n.unstable_scheduleCallback,ry=n.unstable_NormalPriority,et={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function es(){return{controller:new iy,data:new Map,refCount:0}}function Yi(e){e.refCount--,e.refCount===0&&ay(ry,function(){e.controller.abort()})}var Vi=null,ts=0,Jl=0,Il=null;function uy(e,t){if(Vi===null){var l=Vi=[];ts=0,Jl=io(),Il={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ts++,t.then(Bf,Bf),t}function Bf(){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 sy(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),a}var Uf=L.S;L.S=function(e,t){Sd=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&uy(e,t),Uf!==null&&Uf(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 Hf(){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 qf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(pn,pn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gf(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(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gf(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 Vf(){if(xl===null)throw Error(u(459));var e=xl;return xl=null,e}function Gf(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=[]),Yf(Wl,e,t)}function Xi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function sr(e,t){throw t.$$typeof===v?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Xf(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 a(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,Q){return A===null||A.tag!==6?(A=Qu(j,N.mode,Q),A.return=N,A):(A=o(A,j),A.return=N,A)}function C(N,A,j,Q){var ce=j.type;return ce===_?V(N,A,j.props.children,Q,j.key):A!==null&&(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===ue&&yl(ce)===A.type)?(A=o(A,j.props),Xi(A,j),A.return=N,A):(A=er(j.type,j.key,j.props,null,N.mode,Q),Xi(A,j),A.return=N,A)}function O(N,A,j,Q){return A===null||A.tag!==4||A.stateNode.containerInfo!==j.containerInfo||A.stateNode.implementation!==j.implementation?(A=Zu(j,N.mode,Q),A.return=N,A):(A=o(A,j.children||[]),A.return=N,A)}function V(N,A,j,Q,ce){return A===null||A.tag!==7?(A=hl(j,N.mode,Q,ce),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=Qu(""+A,N.mode,j),A.return=N,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case b:return j=er(A.type,A.key,A.props,null,N.mode,j),Xi(j,A),j.return=N,j;case w:return A=Zu(A,N.mode,j),A.return=N,A;case ue: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===U)return Z(N,lr(N,A),j);sr(N,A)}return null}function R(N,A,j,Q){var ce=A!==null?A.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return ce!==null?null:z(N,A,""+j,Q);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case b:return j.key===ce?C(N,A,j,Q):null;case w:return j.key===ce?O(N,A,j,Q):null;case ue:return j=yl(j),R(N,A,j,Q)}if(W(j)||ne(j))return ce!==null?null:V(N,A,j,Q,null);if(typeof j.then=="function")return R(N,A,ur(j),Q);if(j.$$typeof===U)return R(N,A,lr(N,j),Q);sr(N,j)}return null}function H(N,A,j,Q,ce){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return N=N.get(j)||null,z(A,N,""+Q,ce);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case b:return N=N.get(Q.key===null?j:Q.key)||null,C(A,N,Q,ce);case w:return N=N.get(Q.key===null?j:Q.key)||null,O(A,N,Q,ce);case ue:return Q=yl(Q),H(N,A,j,Q,ce)}if(W(Q)||ne(Q))return N=N.get(j)||null,V(A,N,Q,ce,null);if(typeof Q.then=="function")return H(N,A,j,ur(Q),ce);if(Q.$$typeof===U)return H(N,A,j,lr(A,Q),ce);sr(A,Q)}return null}function le(N,A,j,Q){for(var ce=null,je=null,ae=A,xe=A=0,Ae=null;ae!==null&&xe<j.length;xe++){ae.index>xe?(Ae=ae,ae=null):Ae=ae.sibling;var Oe=R(N,ae,j[xe],Q);if(Oe===null){ae===null&&(ae=Ae);break}e&&ae&&Oe.alternate===null&&t(N,ae),A=h(Oe,A,xe),je===null?ce=Oe:je.sibling=Oe,je=Oe,ae=Ae}if(xe===j.length)return l(N,ae),Ne&&xn(N,xe),ce;if(ae===null){for(;xe<j.length;xe++)ae=Z(N,j[xe],Q),ae!==null&&(A=h(ae,A,xe),je===null?ce=ae:je.sibling=ae,je=ae);return Ne&&xn(N,xe),ce}for(ae=a(ae);xe<j.length;xe++)Ae=H(ae,N,xe,j[xe],Q),Ae!==null&&(e&&Ae.alternate!==null&&ae.delete(Ae.key===null?xe:Ae.key),A=h(Ae,A,xe),je===null?ce=Ae:je.sibling=Ae,je=Ae);return e&&ae.forEach(function(ll){return t(N,ll)}),Ne&&xn(N,xe),ce}function de(N,A,j,Q){if(j==null)throw Error(u(151));for(var ce=null,je=null,ae=A,xe=A=0,Ae=null,Oe=j.next();ae!==null&&!Oe.done;xe++,Oe=j.next()){ae.index>xe?(Ae=ae,ae=null):Ae=ae.sibling;var ll=R(N,ae,Oe.value,Q);if(ll===null){ae===null&&(ae=Ae);break}e&&ae&&ll.alternate===null&&t(N,ae),A=h(ll,A,xe),je===null?ce=ll:je.sibling=ll,je=ll,ae=Ae}if(Oe.done)return l(N,ae),Ne&&xn(N,xe),ce;if(ae===null){for(;!Oe.done;xe++,Oe=j.next())Oe=Z(N,Oe.value,Q),Oe!==null&&(A=h(Oe,A,xe),je===null?ce=Oe:je.sibling=Oe,je=Oe);return Ne&&xn(N,xe),ce}for(ae=a(ae);!Oe.done;xe++,Oe=j.next())Oe=H(ae,N,xe,Oe.value,Q),Oe!==null&&(e&&Oe.alternate!==null&&ae.delete(Oe.key===null?xe:Oe.key),A=h(Oe,A,xe),je===null?ce=Oe:je.sibling=Oe,je=Oe);return e&&ae.forEach(function(b1){return t(N,b1)}),Ne&&xn(N,xe),ce}function Ye(N,A,j,Q){if(typeof j=="object"&&j!==null&&j.type===_&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case b:e:{for(var ce=j.key;A!==null;){if(A.key===ce){if(ce=j.type,ce===_){if(A.tag===7){l(N,A.sibling),Q=o(A,j.props.children),Q.return=N,N=Q;break e}}else if(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===ue&&yl(ce)===A.type){l(N,A.sibling),Q=o(A,j.props),Xi(Q,j),Q.return=N,N=Q;break e}l(N,A);break}else t(N,A);A=A.sibling}j.type===_?(Q=hl(j.props.children,N.mode,Q,j.key),Q.return=N,N=Q):(Q=er(j.type,j.key,j.props,null,N.mode,Q),Xi(Q,j),Q.return=N,N=Q)}return y(N);case w:e:{for(ce=j.key;A!==null;){if(A.key===ce)if(A.tag===4&&A.stateNode.containerInfo===j.containerInfo&&A.stateNode.implementation===j.implementation){l(N,A.sibling),Q=o(A,j.children||[]),Q.return=N,N=Q;break e}else{l(N,A);break}else t(N,A);A=A.sibling}Q=Zu(j,N.mode,Q),Q.return=N,N=Q}return y(N);case ue:return j=yl(j),Ye(N,A,j,Q)}if(W(j))return le(N,A,j,Q);if(ne(j)){if(ce=ne(j),typeof ce!="function")throw Error(u(150));return j=ce.call(j),de(N,A,j,Q)}if(typeof j.then=="function")return Ye(N,A,ur(j),Q);if(j.$$typeof===U)return Ye(N,A,lr(N,j),Q);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),Q=o(A,j),Q.return=N,N=Q):(l(N,A),Q=Qu(j,N.mode,Q),Q.return=N,N=Q),y(N)):l(N,A)}return function(N,A,j,Q){try{Gi=0;var ce=Ye(N,A,j,Q);return Wl=null,ce}catch(ae){if(ae===$l||ae===ar)throw ae;var je=Ot(29,ae,null,N.mode);return je.lanes=Q,je.return=N,je}finally{}}}var bl=Xf(!0),Qf=Xf(!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 a=e.updateQueue;if(a===null)return null;if(a=a.shared,(De&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Pa(e),Af(e,null,l),t}return Wa(e,a,t,l),Pa(e)}function Qi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Rc(e,l)}}function rs(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){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:a.baseState,firstBaseUpdate:o,lastBaseUpdate:h,shared:a.shared,callbacks:a.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,a){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 R=z.lane&-536870913,H=R!==z.lane;if(H?(Te&R)===R:(a&R)===R){R!==0&&R===Jl&&(us=!0),V!==null&&(V=V.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var le=e,de=z;R=t;var Ye=l;switch(de.tag){case 1:if(le=de.payload,typeof le=="function"){Z=le.call(Ye,Z,R);break e}Z=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=de.payload,R=typeof le=="function"?le.call(Ye,Z,R):le,R==null)break e;Z=g({},Z,R);break e;case 2:qn=!0}}R=z.callback,R!==null&&(e.flags|=64,H&&(e.flags|=8192),H=o.callbacks,H===null?o.callbacks=[R]:H.push(R))}else H={lane:R,tag:z.tag,payload:z.payload,callback:z.callback,next:null},V===null?(O=V=H,C=Z):V=V.next=H,y|=R;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 Zf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Zf(l[e],t)}var Pl=T(null),or=T(0);function Kf(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 Jf(e){e.tag===22?(k(We,We.current),k(Dt,e),Jt===null&&(Jt=e)):Xn()}function Xn(){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,oy=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,a,o,h){return Sn=h,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?jh:Ts,vl=!1,h=l(a,o),vl=!1,ei&&(h=$f(t,l,a,o)),If(e),h}function If(e){L.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 $f(e,t,l,a){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)}L.H=Oh,h=t(l,a)}while(ei);return h}function cy(){var e=L.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=Yf(ti,e,t),t=ye,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?jh:Ts),e}function mr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ji(e);if(e.$$typeof===U)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 a=ye.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.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),a=0;a<e;a++)l[a]=B;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 a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=l;var o=e.baseQueue,h=a.pending;if(h!==null){if(o!==null){var y=o.next;o.next=h.next,h.next=y}t.baseQueue=o=h,a.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 R=O.revertLane;if(R===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&R)===R){O=O.next,R===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|=R,Fn|=R;Z=O.action,vl&&l(h,Z),h=O.hasEagerState?O.eagerState:l(h,Z)}else R={lane:Z,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},C===null?(z=C=R,y=h):C=C.next=R,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,a.lastRenderedState=h}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function xs(e){var t=Pe(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var a=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,a]}function Wf(e,t,l){var a=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(th.bind(null,a,o,e),[e]),o.getSnapshot!==t||y||tt!==null&&tt.memoizedState.tag&1){if(a.flags|=2048,ni(9,{destroy:void 0},eh.bind(null,a,o,l,t),null),Ge===null)throw Error(u(349));h||(Sn&127)!==0||Pf(a,t,l)}return l}function Pf(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 eh(e,t,l,a){t.value=l,t.getSnapshot=a,nh(t)&&lh(e)}function th(e,t,l){return l(function(){nh(t)&&lh(e)})}function nh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!jt(e,l)}catch{return!0}}function lh(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 ih(e,t,l,a){return e.baseState=l,ys(e,He,typeof a=="function"?a:zn)}function fy(e,t,l,a,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)}};L.T!==null?l(!0):h.isTransition=!1,a(h),l=t.pending,l===null?(h.next=t.pending=h,ah(t,h)):(h.next=l.next,t.pending=l.next=h)}}function ah(e,t){var l=t.action,a=t.payload,o=e.state;if(t.isTransition){var h=L.T,y={};L.T=y;try{var z=l(o,a),C=L.S;C!==null&&C(y,z),rh(e,t,z)}catch(O){vs(e,t,O)}finally{h!==null&&y.types!==null&&(h.types=y.types),L.T=h}}else try{h=l(o,a),rh(e,t,h)}catch(O){vs(e,t,O)}}function rh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){uh(e,t,a)},function(a){return vs(e,t,a)}):uh(e,t,l)}function uh(e,t,l){t.status="fulfilled",t.value=l,sh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ah(e,l)))}function vs(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,sh(t),t=t.next;while(t!==a)}e.action=null}function sh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oh(e,t){return t}function ch(e,t){if(Ne){var l=Ge.formState;if(l!==null){e:{var a=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),a=o.data==="F!";break e}}Un(a)}a=!1}a&&(t=l[0])}}return l=bt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oh,lastRenderedState:t},l.queue=a,l=Nh.bind(null,ye,a),a.dispatch=l,a=bs(!1),h=ws.bind(null,ye,!1,a.queue),a=bt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,l=fy.bind(null,ye,o,h,l),o.dispatch=l,a.memoizedState=e,[t,l,!1]}function fh(e){var t=Pe();return hh(t,He,e)}function hh(e,t,l){if(t=ys(e,t,oh)[0],e=pr(zn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ji(t)}catch(y){throw y===$l?ar:y}else a=t;t=Pe();var o=t.queue,h=o.dispatch;return l!==t.memoizedState&&(ye.flags|=2048,ni(9,{destroy:void 0},hy.bind(null,o,l),null)),[a,h,e]}function hy(e,t){e.action=t}function dh(e){var t=Pe(),l=He;if(l!==null)return hh(t,l,e);Pe(),t=t.memoizedState,l=Pe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function ni(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ye.updateQueue,t===null&&(t=dr(),ye.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function mh(){return Pe().memoizedState}function gr(e,t,l,a){var o=bt();ye.flags|=e,o.memoizedState=ni(1|t,{destroy:void 0},l,a===void 0?null:a)}function yr(e,t,l,a){var o=Pe();a=a===void 0?null:a;var h=o.memoizedState.inst;He!==null&&a!==null&&fs(a,He.memoizedState.deps)?o.memoizedState=ni(t,h,l,a):(ye.flags|=e,o.memoizedState=ni(1|t,h,l,a))}function ph(e,t){gr(8390656,8,e,t)}function Ss(e,t){yr(2048,8,e,t)}function dy(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 gh(e){var t=Pe().memoizedState;return dy({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function yh(e,t){return yr(4,2,e,t)}function xh(e,t){return yr(4,4,e,t)}function bh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vh(e,t,l){l=l!=null?l.concat([e]):null,yr(4,4,bh.bind(null,t,e),l)}function zs(){}function Sh(e,t){var l=Pe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&fs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function zh(e,t){var l=Pe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&fs(t,a[1]))return a[0];if(a=e(),vl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[a,t],a}function ks(e,t,l){return l===void 0||(Sn&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=kd(),ye.lanes|=e,Fn|=e,l)}function kh(e,t,l,a){return jt(l,t)?l:Pl.current!==null?(e=ks(e,l,a),jt(e,t)||(nt=!0),e):(Sn&42)===0||(Sn&1073741824)!==0&&(Te&261930)===0?(nt=!0,e.memoizedState=l):(e=kd(),ye.lanes|=e,Fn|=e,t)}function Eh(e,t,l,a,o){var h=K.p;K.p=h!==0&&8>h?h:8;var y=L.T,z={};L.T=z,ws(e,!1,t,l);try{var C=o(),O=L.S;if(O!==null&&O(z,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var V=sy(C,a);Ii(e,t,V,Ut(e))}else Ii(e,t,a,Ut(e))}catch(Z){Ii(e,t,{then:function(){},status:"rejected",reason:Z},Ut())}finally{K.p=h,y!==null&&z.types!==null&&(y.types=z.types),L.T=y}}function my(){}function Es(e,t,l,a){if(e.tag!==5)throw Error(u(476));var o=Ch(e).queue;Eh(e,o,t,re,l===null?my:function(){return wh(e),l(a)})}function Ch(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:re},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 wh(e){var t=Ch(e);t.next===null&&(t=e.alternate.memoizedState),Ii(e,t.next.queue,{},Ut())}function Cs(){return ft(da)}function Th(){return Pe().memoizedState}function Ah(){return Pe().memoizedState}function py(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ut();e=Yn(l);var a=Vn(t,e,l);a!==null&&(At(a,t,l),Qi(a,t,l)),t={cache:es()},e.payload=t;return}t=t.return}}function gy(e,t,l){var a=Ut();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},xr(e)?_h(t,l):(l=Gu(e,t,l,a),l!==null&&(At(l,e,a),Mh(l,t,a)))}function Nh(e,t,l){var a=Ut();Ii(e,t,l,a)}function Ii(e,t,l,a){var o={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(xr(e))_h(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,a),l!==null)return At(l,e,a),Mh(l,t,a),!0}return!1}function ws(e,t,l,a){if(a={lane:2,revertLane:io(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},xr(e)){if(t)throw Error(u(479))}else t=Gu(e,l,a,2),t!==null&&At(t,e,2)}function xr(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function _h(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 Mh(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Rc(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 jh={readContext:ft,use:mr,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:ph,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,gr(4194308,4,bh.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 a=e();if(vl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=bt();if(l!==void 0){var o=l(t);if(vl){St(!0);try{l(t)}finally{St(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=gy.bind(null,ye,e),[a.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=Nh.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=Eh.bind(null,ye,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=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||Pf(a,t,l)}o.memoizedState=l;var h={value:l,getSnapshot:t};return o.queue=h,ph(th.bind(null,a,h,e),[e]),a.flags|=2048,ni(9,{destroy:void 0},eh.bind(null,a,h,l,t),null),l},useId:function(){var e=bt(),t=Ge.identifierPrefix;if(Ne){var l=rn,a=an;l=(a&~(1<<32-Ve(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=hr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=oy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Cs,useFormState:ch,useActionState:ch,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=py.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:Sh,useContext:ft,useEffect:Ss,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:zh,useReducer:pr,useRef:mh,useState:function(){return pr(zn)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Pe();return kh(l,He.memoizedState,e,t)},useTransition:function(){var e=pr(zn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:Wf,useId:Th,useHostTransitionStatus:Cs,useFormState:fh,useActionState:fh,useOptimistic:function(e,t){var l=Pe();return ih(l,He,e,t)},useMemoCache:gs,useCacheRefresh:Ah};Ts.useEffectEvent=gh;var Oh={readContext:ft,use:mr,useCallback:Sh,useContext:ft,useEffect:Ss,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:zh,useReducer:xs,useRef:mh,useState:function(){return xs(zn)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Pe();return He===null?ks(l,e,t):kh(l,He.memoizedState,e,t)},useTransition:function(){var e=xs(zn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ji(e),t]},useSyncExternalStore:Wf,useId:Th,useHostTransitionStatus:Cs,useFormState:dh,useActionState:dh,useOptimistic:function(e,t){var l=Pe();return He!==null?ih(l,He,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:gs,useCacheRefresh:Ah};Oh.useEffectEvent=gh;function As(e,t,l,a){t=e.memoizedState,l=l(a,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 a=Ut(),o=Yn(a);o.payload=t,l!=null&&(o.callback=l),t=Vn(e,o,a),t!==null&&(At(t,e,a),Qi(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Ut(),o=Yn(a);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=Vn(e,o,a),t!==null&&(At(t,e,a),Qi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ut(),a=Yn(l);a.tag=2,t!=null&&(a.callback=t),t=Vn(e,a,l),t!==null&&(At(t,e,l),Qi(t,e,l))}};function Dh(e,t,l,a,o,h,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,h,y):t.prototype&&t.prototype.isPureReactComponent?!Bi(l,a)||!Bi(o,h):!0}function Rh(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Ns.enqueueReplaceState(t,t.state,null)}function Sl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}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 Lh(e){Ia(e)}function Bh(e){console.error(e)}function Uh(e){Ia(e)}function br(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Hh(e,t,l){try{var a=e.onCaughtError;a(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 qh(e){return e=Yn(e),e.tag=3,e}function Yh(e,t,l,a){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var h=a.value;e.payload=function(){return o(h)},e.callback=function(){Hh(t,l,a)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Hh(t,l,a),typeof o!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var z=a.stack;this.componentDidCatch(a.value,{componentStack:z!==null?z:""})})}function yy(e,t,l,a,o){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.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,a===rr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),to(e,a,o)),!1;case 22:return l.flags|=65536,a===rr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),to(e,a,o)),!1}throw Error(u(435,l.tag))}return to(e,a,o),Mr(),!1}if(Ne)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Ju&&(e=Error(u(422),{cause:a}),qi(Qt(e,l)))):(a!==Ju&&(t=Error(u(423),{cause:a}),qi(Qt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=Qt(a,l),o=_s(e.stateNode,a,o),rs(e,o),$e!==4&&($e=2)),!1;var h=Error(u(520),{cause:a});if(h=Qt(h,l),aa===null?aa=[h]:aa.push(h),$e!==4&&($e=2),t===null)return!0;a=Qt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=_s(l.stateNode,a,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=qh(o),Yh(o,e,l,a),rs(l,o),!1}l=l.return}while(l!==null);return!1}var Ms=Error(u(461)),nt=!1;function ht(e,t,l,a){t.child=e===null?Qf(t,null,l,a):bl(t,e.child,l,a)}function Vh(e,t,l,a,o){l=l.render;var h=t.ref;if("ref"in a){var y={};for(var z in a)z!=="ref"&&(y[z]=a[z])}else y=a;return pl(t),a=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,a,o),t.child)}function Gh(e,t,l,a,o){if(e===null){var h=l.type;return typeof h=="function"&&!Xu(h)&&h.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=h,Xh(e,t,h,a,o)):(e=er(l.type,null,a,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,a)&&e.ref===t.ref)return kn(e,t,o)}return t.flags|=1,e=yn(h,a),e.ref=t.ref,e.return=t,t.child=e}function Xh(e,t,l,a,o){if(e!==null){var h=e.memoizedProps;if(Bi(h,a)&&e.ref===t.ref)if(nt=!1,t.pendingProps=a=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,a,o)}function Qh(e,t,l,a){var o=a.children,h=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~h}else a=0,t.child=null;return Zh(e,t,h,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ir(t,h!==null?h.cachePool:null),h!==null?Kf(t,h):ss(),Jf(t);else return a=t.lanes=536870912,Zh(e,t,h!==null?h.baseLanes|l:l,l,a)}else h!==null?(ir(t,h.cachePool),Kf(t,h),Xn(),t.memoizedState=null):(e!==null&&ir(t,null),ss(),Xn());return ht(e,t,o,l),t.child}function Wi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Zh(e,t,l,a,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(),Jf(t),e!==null&&Kl(e,t,a,!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 Fh(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 xy(e,t,l){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(a.mode==="hidden")return e=vr(t,a),t.lanes=536870912,Wi(null,e);if(cs(t),(e=Ze)?(e=am(e,Kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=_f(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,a)}var h=e.memoizedState;if(h!==null){var y=h.dehydrated;if(cs(t),o)if(t.flags&256)t.flags&=-257,t=Fh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||Kl(e,t,l,!1),o=(l&e.childLanes)!==0,nt||o){if(a=Ge,a!==null&&(y=Lc(a,l),y!==0&&y!==h.retryLane))throw h.retryLane=y,fl(e,y),At(a,e,y),Ms;Mr(),t=Fh(e,t,l)}else e=h.treeContext,Ze=It(y.nextSibling),ct=t,Ne=!0,Bn=null,Kt=!1,e!==null&&Of(t,e),t=vr(t,a),t.flags|=4096;return t}return e=yn(e.child,{mode:a.mode,children:a.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,a,o){return pl(t),l=hs(e,t,l,a,void 0,o),a=ds(),e!==null&&!nt?(ms(e,t,o),kn(e,t,o)):(Ne&&a&&Fu(t),t.flags|=1,ht(e,t,l,o),t.child)}function Kh(e,t,l,a,o,h){return pl(t),t.updateQueue=null,l=$f(t,a,l,o),If(e),a=ds(),e!==null&&!nt?(ms(e,t,h),kn(e,t,h)):(Ne&&a&&Fu(t),t.flags|=1,ht(e,t,l,h),t.child)}function Jh(e,t,l,a,o){if(pl(t),t.stateNode===null){var h=Xl,y=l.contextType;typeof y=="object"&&y!==null&&(h=ft(y)),h=new l(a,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=a,h.state=t.memoizedState,h.refs={},is(t),y=l.contextType,h.context=typeof y=="object"&&y!==null?ft(y):Xl,h.state=t.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(As(t,l,y,a),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,a,h,o),Zi(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),a=!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=Xl,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)&&Rh(t,h,a,y),qn=!1;var R=t.memoizedState;h.state=R,Fi(t,a,h,o),Zi(),O=t.memoizedState,z||R!==O||qn?(typeof Z=="function"&&(As(t,l,Z,a),O=t.memoizedState),(C=qn||Dh(t,l,C,a,R,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=a,t.memoizedState=O),h.props=a,h.state=O,h.context=y,a=C):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{h=t.stateNode,as(e,t),y=t.memoizedProps,V=Sl(l,y),h.props=V,Z=t.pendingProps,R=h.context,O=l.contextType,C=Xl,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||R!==C)&&Rh(t,h,a,C),qn=!1,R=t.memoizedState,h.state=R,Fi(t,a,h,o),Zi();var H=t.memoizedState;y!==Z||R!==H||qn||e!==null&&e.dependencies!==null&&nr(e.dependencies)?(typeof z=="function"&&(As(t,l,z,a),H=t.memoizedState),(V=qn||Dh(t,l,V,a,R,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(a,H,C),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(a,H,C)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=H),h.props=a,h.state=H,h.context=C,a=V):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return h=a,Sr(e,t),a=(t.flags&128)!==0,h||a?(h=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&a?(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 Ih(e,t,l,a){return dl(),t.flags|=256,ht(e,t,l,a),t.child}var Os={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ds(e){return{baseLanes:e,cachePool:Hf()}}function Rs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Bt),e}function $h(e,t,l){var a=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):Xn(),(e=Ze)?(e=am(e,Kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=_f(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=a.children;return a=a.fallback,o?(Xn(),o=t.mode,z=zr({mode:"hidden",children:z},o),a=hl(a,o,l,null),z.return=t,a.return=t,z.sibling=a,t.child=z,a=t.child,a.memoizedState=Ds(l),a.childLanes=Rs(e,y,l),t.memoizedState=Os,Wi(null,a)):(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?(Xn(),t.child=e.child,t.flags|=128,t=null):(Xn(),z=a.fallback,o=t.mode,a=zr({mode:"visible",children:a.children},o),z=hl(z,o,l,null),z.flags|=2,a.return=t,z.return=t,a.sibling=z,t.child=a,bl(t,e.child,null,l),a=t.child,a.memoizedState=Ds(l),a.childLanes=Rs(e,y,l),t.memoizedState=Os,t=Wi(null,a));else if(Gn(t),xo(z)){if(y=z.nextSibling&&z.nextSibling.dataset,y)var O=y.dgst;y=O,a=Error(u(419)),a.stack="",a.digest=y,qi({value:a,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&&(a=Lc(y,l),a!==0&&a!==C.retryLane))throw C.retryLane=a,fl(e,a),At(y,e,a),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&&Of(t,e),t=Ls(t,a.children),t.flags|=4096);return t}return o?(Xn(),z=a.fallback,o=t.mode,C=e.child,O=C.sibling,a=yn(C,{mode:"hidden",children:a.children}),a.subtreeFlags=C.subtreeFlags&65011712,O!==null?z=yn(O,z):(z=hl(z,o,l,null),z.flags|=2),z.return=t,a.return=t,a.sibling=z,t.child=a,Wi(null,a),a=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=Hf(),z={baseLanes:z.baseLanes|l,cachePool:o}),a.memoizedState=z,a.childLanes=Rs(e,y,l),t.memoizedState=Os,Wi(e.child,a)):(Gn(t),l=e.child,e=l.sibling,l=yn(l,{mode:"visible",children:a.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 Wh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Wu(e.return,t,l)}function Us(e,t,l,a,o,h){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:o,treeForkCount:h}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=a,y.tail=l,y.tailMode=o,y.treeForkCount=h)}function Ph(e,t,l){var a=t.pendingProps,o=a.revealOrder,h=a.tail;a=a.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,a,l),a=Ne?Hi:0,!z&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wh(e,l,t);else if(e.tag===19)Wh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&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,a);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,a);break;case"together":Us(t,!1,null,null,void 0,a);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 by(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 a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Gn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?$h(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(a=(l&t.childLanes)!==0,a||(Kl(e,t,l,!1),a=(l&t.childLanes)!==0),o){if(a)return Ph(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(We,We.current),a)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 ed(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,by(e,t,l);nt=(e.flags&131072)!==0}else nt=!1,Ne&&(t.flags&1048576)!==0&&jf(t,Hi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=yl(t.elementType),t.type=e,typeof e=="function")Xu(e)?(a=Sl(e,a),t.tag=1,t=Jh(null,t,e,a,l)):(t.tag=0,t=js(null,t,e,a,l));else{if(e!=null){var o=e.$$typeof;if(o===I){t.tag=11,t=Vh(null,t,e,a,l);break e}else if(o===$){t.tag=14,t=Gh(null,t,e,a,l);break e}}throw t=ie(e)||e,Error(u(306,t,""))}}return t;case 0:return js(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,o=Sl(a,t.pendingProps),Jh(e,t,a,o,l);case 3:e:{if(Ke(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var h=t.memoizedState;o=h.element,as(e,t),Fi(t,a,null,l);var y=t.memoizedState;if(a=y.cache,Hn(t,et,a),a!==h.cache&&Pu(t,[et],l,!0),Zi(),a=y.element,h.isDehydrated)if(h={element:a,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=Ih(e,t,a,l);break e}else if(a!==o){o=Qt(Error(u(424)),t),qi(o),t=Ih(e,t,a,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,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(dl(),a===o){t=kn(e,t,l);break e}ht(e,t,a,l)}t=t.child}return t;case 26:return Sr(e,t),e===null?(l=fm(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ne||(l=t.type,e=t.pendingProps,a=Ur(oe.current).createElement(l),a[ot]=t,a[zt]=e,dt(a,l,e),ut(a),t.stateNode=a):t.memoizedState=fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Yt(t),e===null&&Ne&&(a=t.stateNode=sm(t.type,t.pendingProps,oe.current),ct=t,Kt=!0,o=Ze,Wn(t.type)?(bo=o,Ze=It(a.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=a=Ze)&&(a=Jy(a,t.type,t.pendingProps,Kt),a!==null?(t.stateNode=a,ct=t,Ze=It(a.firstChild),Kt=!1,o=!0):o=!1),o||Un(t)),Yt(t),o=t.type,h=t.pendingProps,y=e!==null?e.memoizedProps:null,a=h.children,mo(o,h)?a=null:y!==null&&mo(o,y)&&(t.flags|=32),t.memoizedState!==null&&(o=hs(e,t,cy,null,null,l),da._currentValue=o),Sr(e,t),ht(e,t,a,l),t.child;case 6:return e===null&&Ne&&((e=l=Ze)&&(l=Iy(l,t.pendingProps,Kt),l!==null?(t.stateNode=l,ct=t,Ze=null,e=!0):e=!1),e||Un(t)),null;case 13:return $h(e,t,l);case 4:return Ke(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=bl(t,null,a,l):ht(e,t,a,l),t.child;case 11:return Vh(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 a=t.pendingProps,Hn(t,t.type,a.value),ht(e,t,a.children,l),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,pl(t),o=ft(o),a=a(o),t.flags|=1,ht(e,t,a,l),t.child;case 14:return Gh(e,t,t.type,t.pendingProps,l);case 15:return Xh(e,t,t.type,t.pendingProps,l);case 19:return Ph(e,t,l);case 31:return xy(e,t,l);case 22:return Qh(e,t,l,t.pendingProps);case 24:return pl(t),a=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:a,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!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Hn(t,et,a)):(a=h.cache,Hn(t,et,a),a!==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,a,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(Td())e.flags|=8192;else throw xl=rr,ls}else e.flags&=-16777217}function td(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!gm(t))if(Td())e.flags|=8192;else throw xl=rr,ls}function kr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Oc():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 a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function vy(e,t,l){var a=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,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(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),td(t,h)):(Fe(t),qs(t,o,null,a,l))):h?h!==e.memoizedState?(En(t),Fe(t),td(t,h)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&En(t),Fe(t),qs(t,o,e,a,l)),null;case 27:if(fn(t),l=oe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&En(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Fe(t),null}e=ee.current,Fl(t)?Df(t):(e=sm(o,a,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!==a&&En(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Fe(t),null}if(h=ee.current,Fl(t))Df(t);else{var y=Ur(oe.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 a.is=="string"?y.createElement("select",{is:a.is}):y.createElement("select"),a.multiple?h.multiple=!0:a.size&&(h.size=a.size);break;default:h=typeof a.is=="string"?y.createElement(o,{is:a.is}):y.createElement(o)}}h[ot]=t,h[zt]=a;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,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&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!==a&&En(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=oe.current,Fl(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,o=ct,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[ot]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||$d(e.nodeValue,l)),e||Un(t,!0)}else e=Ur(e).createTextNode(a),e[ot]=t,t.stateNode=e}return Fe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Fl(t),l!==null){if(e===null){if(!a)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(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Fl(t),a!==null&&a.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=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),h=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),h!==o&&(a.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),a=t.memoizedState,a===null)return Fe(t),null;if(o=(t.flags&128)!==0,h=a.rendering,h===null)if(o)Pi(a,!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(a,!1),e=h.updateQueue,t.updateQueue=e,kr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Nf(l,e),l=l.sibling;return k(We,We.current&1|2),Ne&&xn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&yt()>Ar&&(t.flags|=128,o=!0,Pi(a,!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(a,!0),a.tail===null&&a.tailMode==="hidden"&&!h.alternate&&!Ne)return Fe(t),null}else 2*yt()-a.renderingStartTime>Ar&&l!==536870912&&(t.flags|=128,o=!0,Pi(a,!1),t.lanes=4194304);a.isBackwards?(h.sibling=t.child,t.child=h):(e=a.last,e!==null?e.sibling=h:t.child=h,a.last=h)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=yt(),e.sibling=null,l=We.current,k(We,o?l&1|2:l&1),Ne&&xn(t,a.treeForkCount),e):(Fe(t),null);case 22:case 23:return Rt(t),os(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(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),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==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 Sy(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 nd(e,t){switch(Ku(t),t.tag){case 3:vn(et),Ue();break;case 26:case 27:case 5:fn(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19: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,a=l!==null?l.lastEffect:null;if(a!==null){var o=a.next;l=o;do{if((l.tag&e)===e){a=void 0;var h=l.create,y=l.inst;a=h(),y.destroy=a}l=l.next}while(l!==o)}}catch(z){Be(t,t.return,z)}}function Qn(e,t,l){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var h=o.next;a=h;do{if((a.tag&e)===e){var y=a.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)}}}a=a.next}while(a!==h)}}catch(V){Be(t,t.return,V)}}function ld(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(a){Be(e,e.return,a)}}}function id(e,t,l){l.props=Sl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Be(e,t,a)}}function ta(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(o){Be(e,t,o)}}function un(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}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 ad(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(o){Be(e,e.return,o)}}function Ys(e,t,l){try{var a=e.stateNode;Gy(a,e.type,l,t),a[zt]=t}catch(o){Be(e,e.return,o)}}function rd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wn(e.type)||e.tag===4}function Vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Wn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gs(e,t,l){var a=e.tag;if(a===5||a===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(a!==4&&(a===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 a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===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 ud(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);dt(t,a,l),t[ot]=e,t[zt]=l}catch(h){Be(e,e.return,h)}}var Cn=!1,lt=!1,Xs=!1,sd=typeof WeakSet=="function"?WeakSet:Set,st=null;function zy(e,t){if(e=e.containerInfo,fo=Qr,e=vf(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 a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var o=a.anchorOffset,h=a.focusNode;a=a.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var y=0,z=-1,C=-1,O=0,V=0,Z=e,R=null;t:for(;;){for(var H;Z!==l||o!==0&&Z.nodeType!==3||(z=y+o),Z!==h||a!==0&&Z.nodeType!==3||(C=y+a),Z.nodeType===3&&(y+=Z.nodeValue.length),(H=Z.firstChild)!==null;)R=Z,Z=H;for(;;){if(Z===e)break t;if(R===l&&++O===o&&(z=y),R===h&&++V===a&&(C=y),(H=Z.nextSibling)!==null)break;Z=R,R=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},Qr=!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,a=l.stateNode;try{var le=Sl(l.type,o);e=a.getSnapshotBeforeUpdate(le,h),a.__reactInternalSnapshotBeforeUpdate=e}catch(de){Be(l,l.return,de)}}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 od(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Tn(e,l),a&4&&ea(5,l);break;case 1:if(Tn(e,l),a&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)}}a&64&&ld(l),a&512&&ta(l,l.return);break;case 3:if(Tn(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Ff(e,t)}catch(y){Be(l,l.return,y)}}break;case 27:t===null&&a&4&&ud(l);case 26:case 5:Tn(e,l),t===null&&a&4&&ad(l),a&512&&ta(l,l.return);break;case 12:Tn(e,l);break;case 31:Tn(e,l),a&4&&hd(e,l);break;case 13:Tn(e,l),a&4&&dd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=My.bind(null,l),$y(e,l))));break;case 22:if(a=l.memoizedState!==null||Cn,!a){t=t!==null&&t.memoizedState!==null||lt,o=Cn;var h=lt;Cn=a,(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 cd(e){var t=e.alternate;t!==null&&(e.alternate=null,cd(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;)fd(e,t,l),l=l.sibling}function fd(e,t,l){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(xt,l)}catch{}switch(l.tag){case 26:lt||un(l,t),wn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||un(l,t);var a=Je,o=Et;Wn(l.type)&&(Je=l.stateNode,Et=!1),wn(e,t,l),ca(l.stateNode),Je=a,Et=o;break;case 5:lt||un(l,t);case 6:if(a=Je,o=Et,Je=null,wn(e,t,l),Je=a,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,lm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),mi(e)):lm(Je,l.stateNode));break;case 4:a=Je,o=Et,Je=l.stateNode.containerInfo,Et=!0,wn(e,t,l),Je=a,Et=o;break;case 0:case 11:case 14:case 15:Qn(2,l,t),lt||Qn(4,l,t),wn(e,t,l);break;case 1:lt||(un(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&id(l,t,a)),wn(e,t,l);break;case 21:wn(e,t,l);break;case 22:lt=(a=lt)||l.memoizedState!==null,wn(e,t,l),lt=a;break;default:wn(e,t,l)}}function hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{mi(e)}catch(l){Be(t,t.return,l)}}}function dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{mi(e)}catch(l){Be(t,t.return,l)}}function ky(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sd),t;default:throw Error(u(435,e.tag))}}function Cr(e,t){var l=ky(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var o=jy.bind(null,e,a);a.then(o,o)}})}function Ct(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var o=l[a],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));fd(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;)md(t,e),t=t.sibling}var tn=null;function md(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ct(t,e),wt(e),a&4&&(Qn(3,e,e.return),ea(3,e),Qn(5,e,e.return));break;case 1:Ct(t,e),wt(e),a&512&&(lt||l===null||un(l,l.return)),a&64&&Cn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var o=tn;if(Ct(t,e),wt(e),a&512&&(lt||l===null||un(l,l.return)),a&4){var h=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){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(a),o.head.insertBefore(h,o.querySelector("head > title"))),dt(h,a,l),h[ot]=e,ut(h),a=h;break e;case"link":var y=mm("link","href",o).get(a+(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(a),dt(h,a,l),o.head.appendChild(h);break;case"meta":if(y=mm("meta","content",o).get(a+(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(a),dt(h,a,l),o.head.appendChild(h);break;default:throw Error(u(468,a))}h[ot]=e,ut(h),a=h}e.stateNode=a}else pm(o,e.type,e.stateNode);else e.stateNode=dm(o,a,e.memoizedProps);else h!==a?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,a===null?pm(o,e.type,e.stateNode):dm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ys(e,e.memoizedProps,l.memoizedProps)}break;case 27:Ct(t,e),wt(e),a&512&&(lt||l===null||un(l,l.return)),l!==null&&a&4&&Ys(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Ct(t,e),wt(e),a&512&&(lt||l===null||un(l,l.return)),e.flags&32){o=e.stateNode;try{Bl(o,"")}catch(le){Be(e,e.return,le)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Ys(e,o,l!==null?l.memoizedProps:o)),a&1024&&(Xs=!0);break;case 6:if(Ct(t,e),wt(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}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),a&4&&l!==null&&l.memoizedState.isDehydrated)try{mi(t.containerInfo)}catch(le){Be(e,e.return,le)}Xs&&(Xs=!1,pd(e));break;case 4:a=tn,tn=Hr(e.stateNode.containerInfo),Ct(t,e),wt(e),tn=a;break;case 12:Ct(t,e),wt(e);break;case 31:Ct(t,e),wt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cr(e,a)));break;case 13:Ct(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Tr=yt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cr(e,a)));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),a&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,R=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;z.style.display=R==null||typeof R=="boolean"?"":(""+R).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?im(H,!0):im(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}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Cr(e,l))));break;case 19:Ct(t,e),wt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cr(e,a)));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,a=e.return;a!==null;){if(rd(a)){l=a;break}a=a.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 pd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;pd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)od(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:Qn(4,t,t.return),zl(t);break;case 1:un(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&id(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 a=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),a=h,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(O){Be(a,a.return,O)}if(a=h,o=a.updateQueue,o!==null){var z=a.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)Zf(C[o],z)}catch(O){Be(a,a.return,O)}}l&&y&64&&ld(h),ta(h,h.return);break;case 27:ud(h);case 26:case 5:An(o,h,l),l&&a===null&&y&4&&ad(h),ta(h,h.return);break;case 12:An(o,h,l);break;case 31:An(o,h,l),l&&y&4&&hd(o,h);break;case 13:An(o,h,l),l&&y&4&&dd(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 Qs(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,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gd(e,t,l,a),t=t.sibling}function gd(e,t,l,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:nn(e,t,l,a),o&2048&&ea(9,t);break;case 1:nn(e,t,l,a);break;case 3:nn(e,t,l,a),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,a),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,a);break;case 31:nn(e,t,l,a);break;case 13:nn(e,t,l,a);break;case 23:break;case 22:h=t.stateNode,y=t.alternate,t.memoizedState!==null?h._visibility&2?nn(e,t,l,a):na(e,t):h._visibility&2?nn(e,t,l,a):(h._visibility|=2,li(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Qs(y,t);break;case 24:nn(e,t,l,a),o&2048&&Zs(t.alternate,t);break;default:nn(e,t,l,a)}}function li(e,t,l,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var h=e,y=t,z=l,C=a,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&&Qs(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,a=t,o=a.flags;switch(a.tag){case 22:na(l,a),o&2048&&Qs(a.alternate,a);break;case 24:na(l,a),o&2048&&Zs(a.alternate,a);break;default:na(l,a)}t=t.sibling}}var la=8192;function ii(e,t,l){if(e.subtreeFlags&la)for(e=e.child;e!==null;)yd(e,t,l),e=e.sibling}function yd(e,t,l){switch(e.tag){case 26:ii(e,t,l),e.flags&la&&e.memoizedState!==null&&o1(l,tn,e.memoizedState,e.memoizedProps);break;case 5:ii(e,t,l);break;case 3:case 4:var a=tn;tn=Hr(e.stateNode.containerInfo),ii(e,t,l),tn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=la,la=16777216,ii(e,t,l),la=a):ii(e,t,l));break;default:ii(e,t,l)}}function xd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ia(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];st=a,vd(a,e)}xd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bd(e),e=e.sibling}function bd(e){switch(e.tag){case 0:case 11:case 15:ia(e),e.flags&2048&&Qn(9,e,e.return);break;case 3:ia(e);break;case 12:ia(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,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 a=t[l];st=a,vd(a,e)}xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),wr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,wr(t));break;default:wr(t)}e=e.sibling}}function vd(e,t){for(;st!==null;){var l=st;switch(l.tag){case 0:case 11:case 15:Qn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Yi(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,st=a;else e:for(l=e;st!==null;){a=st;var o=a.sibling,h=a.return;if(cd(a),a===l){st=null;break e}if(o!==null){o.return=h,st=o;break e}st=h}}}var Ey={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}},Cy=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,Sd=0,Ar=1/0,Nr=null,Kn=null,rt=0,Jn=null,ui=null,_n=0,Is=0,$s=null,zd=null,ra=0,Ws=null;function Ut(){return(De&2)!==0&&Te!==0?Te&-Te:L.T!==null?io():Bc()}function kd(){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 Ed(e,t,l){if((De&6)!==0)throw Error(u(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||wi(e,t),o=a?Ay(e,t):eo(e,t,!0),h=a;do{if(o===0){ai&&!a&&In(e,t,0,!1);break}else{if(l=e.current.alternate,h&&!wy(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(a=e,h=o,h){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:In(a,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(a,t,Bt,!Zn),Ha(a,0,!0)!==0)break e;_n=t,a.timeoutHandle=tm(Cd.bind(null,a,l,Tt,Nr,Js,t,Bt,kl,ri,Zn,h,"Throttled",-0,0),o);break e}Cd(a,l,Tt,Nr,Js,t,Bt,kl,ri,Zn,h,null,-0,0)}}break}while(!0);sn(e)}function Cd(e,t,l,a,o,h,y,z,C,O,V,Z,R,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},yd(t,h,Z);var le=(h&62914560)===h?Tr-yt():(h&4194048)===h?Sd-yt():0;if(le=c1(Z,le),le!==null){_n=h,e.cancelPendingCommit=le(Od.bind(null,e,t,h,l,a,o,y,z,C,V,Z,null,R,H)),In(e,h,y,!O);return}}Od(e,t,h,l,a,o,y,z,C)}function wy(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 a=0;a<l.length;a++){var o=l[a],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,a){t&=~Ks,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var h=31-Ve(o),y=1<<h;a[h]=-1,o&=~y}l!==0&&Dc(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;)nd(e.alternate,e),e=e.return;ke=null}}function si(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Zy(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 a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Ve(a),h=1<<o;t|=e[o],a&=~h}return Nn=t,$a(),l}function wd(e,t){ye=null,L.H=$i,t===$l||t===ar?(t=Vf(),Le=3):t===ls?(t=Vf(),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,Qt(t,e.current)))}function Td(){var e=Dt.current;return e===null?!0:(Te&4194048)===Te?Jt===null:(Te&62914560)===Te||(Te&536870912)!==0?e===Jt:!1}function Ad(){var e=L.H;return L.H=$i,e===null?$i:e}function Nd(){var e=L.A;return L.A=Ey,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 a=De;De|=2;var o=Ad(),h=Nd();(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)}}Ty(),y=$e;break}catch(V){wd(e,V)}while(!0);return t&&e.shellSuspendCounter++,bn=ml=null,De=a,L.H=o,L.A=h,ke===null&&(Ge=null,Te=0,$a()),y}function Ty(){for(;ke!==null;)_d(ke)}function Ay(e,t){var l=De;De|=2;var a=Ad(),o=Nd();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(qf(h)){Le=0,Lt=null,Md(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:qf(h)?(Le=0,Lt=null,Md(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?gm(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))}}Ny();break}catch(V){wd(e,V)}while(!0);return bn=ml=null,L.H=a,L.A=o,De=l,ke!==null?0:(Ge=null,Te=0,$a(),$e)}function Ny(){for(;ke!==null&&!du();)_d(ke)}function _d(e){var t=ed(e.alternate,e,Nn);e.memoizedProps=e.pendingProps,t===null?jr(e):ke=t}function Md(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Kh(l,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=Kh(l,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:ps(t);default:nd(l,t),t=ke=Nf(t,Nn),t=ed(l,t,Nn)}e.memoizedProps=e.pendingProps,t===null?jr(e):ke=t}function oi(e,t,l,a){bn=ml=null,ps(t),Wl=null,Gi=0;var o=t.return;try{if(yy(e,o,t,l,Te)){$e=1,br(e,Qt(l,e.current)),ke=null;return}}catch(h){if(o!==null)throw ke=o,h;$e=1,br(e,Qt(l,e.current)),ke=null;return}t.flags&32768?(Ne||a===1?e=!0:ai||(Te&536870912)!==0?e=!1:(Zn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Dt.current,a!==null&&a.tag===13&&(a.flags|=16384))),jd(t,e)):jr(t)}function jr(e){var t=e;do{if((t.flags&32768)!==0){jd(t,Zn);return}e=t.return;var l=vy(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 jd(e,t){do{var l=Sy(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 Od(e,t,l,a,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,sg(e,l,h,y,z,C),e===Ge&&(ke=Ge=null,Te=0),ui=t,Jn=e,_n=l,Is=h,$s=o,zd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Oy(pe,function(){return Ud(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=L.T,L.T=null,o=K.p,K.p=2,y=De,De|=4;try{zy(e,t,l)}finally{De=y,K.p=o,L.T=a}}rt=1,Dd(),Rd(),Ld()}}function Dd(){if(rt===1){rt=0;var e=Jn,t=ui,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var a=K.p;K.p=2;var o=De;De|=4;try{md(t,e);var h=ho,y=vf(e.containerInfo),z=h.focusedElem,C=h.selectionRange;if(y!==z&&z&&z.ownerDocument&&bf(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,R=Z&&Z.defaultView||window;if(R.getSelection){var H=R.getSelection(),le=z.textContent.length,de=Math.min(C.start,le),Ye=C.end===void 0?de:Math.min(C.end,le);!H.extend&&de>Ye&&(y=Ye,Ye=de,de=y);var N=xf(z,de),A=xf(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(),de>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 Q=Z[z];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Qr=!!fo,ho=fo=null}finally{De=o,K.p=a,L.T=l}}e.current=t,rt=2}}function Rd(){if(rt===2){rt=0;var e=Jn,t=ui,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var a=K.p;K.p=2;var o=De;De|=4;try{od(e,t.alternate,t)}finally{De=o,K.p=a,L.T=l}}rt=3}}function Ld(){if(rt===4||rt===3){rt=0,mu();var e=Jn,t=ui,l=_n,a=zd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,ui=Jn=null,Bd(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(a!==null){t=L.T,o=K.p,K.p=2,L.T=null;try{for(var h=e.onRecoverableError,y=0;y<a.length;y++){var z=a[y];h(z.value,{componentStack:z.stack})}}finally{L.T=t,K.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 Bd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yi(t)))}function Or(){return Dd(),Rd(),Ld(),Ud()}function Ud(){if(rt!==5)return!1;var e=Jn,t=Is;Is=0;var l=xu(_n),a=L.T,o=K.p;try{K.p=32>l?32:l,L.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,bd(h.current),gd(h,h.current,y,l),De=z,ua(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(xt,h)}catch{}return!0}finally{K.p=o,L.T=a,Bd(e,t)}}function Hd(e,t,l){t=Qt(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)Hd(e,e,l);else for(;t!==null;){if(t.tag===3){Hd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Kn===null||!Kn.has(a))){e=Qt(l,e),l=qh(2),a=Vn(t,l,2),a!==null&&(Yh(l,a,t,e),Ti(a,2),sn(a));break}}t=t.return}}function to(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Cy;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(l)||(Fs=!0,o.add(l),e=_y.bind(null,e,t,l),t.then(e,e))}function _y(e,t,l){var a=e.pingCache;a!==null&&a.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 qd(e,t){t===0&&(t=Oc()),e=fl(e,t),e!==null&&(Ti(e,t),sn(e))}function My(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),qd(e,l)}function jy(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),qd(e,l)}function Oy(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,Ry())}function ua(e,t){if(!lo&&Rr){lo=!0;do for(var l=!1,a=Dr;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var h=0;else{var y=a.suspendedLanes,z=a.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,Xd(a,h))}else h=Te,h=Ha(a,a===Ge?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(h&3)===0||wi(a,h)||(l=!0,Xd(a,h));a=a.next}while(l);lo=!1}}function Dy(){Yd()}function Yd(){Rr=no=!1;var e=0;$n!==0&&Qy()&&(e=$n);for(var t=yt(),l=null,a=Dr;a!==null;){var o=a.next,h=Vd(a,t);h===0?(a.next=null,l===null?Dr=o:l.next=o,o===null&&(ci=l)):(l=a,(e!==0||(h&3)!==0)&&(Rr=!0)),a=o}rt!==0&&rt!==5||ua(e),$n!==0&&($n=0)}function Vd(e,t){for(var l=e.suspendedLanes,a=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&a)!==0)&&(o[y]=ug(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),a=e.callbackNode,l===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ci(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||wi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ci(a),xu(l)){case 2:case 8:l=P;break;case 32:l=pe;break;case 268435456:l=Re;break;default:l=pe}return a=Gd.bind(null,e),l=_l(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ci(a),e.callbackPriority=2,e.callbackNode=null,2}function Gd(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 a=Te;return a=Ha(e,e===Ge?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Ed(e,a,t),Vd(e,yt()),e.callbackNode!=null&&e.callbackNode===l?Gd.bind(null,e):null)}function Xd(e,t){if(Or())return null;Ed(e,t,!0)}function Ry(){Fy(function(){(De&6)!==0?_l(X,Dy):Yd()})}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 Zd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Ly(e,t,l,a,o){if(t==="submit"&&l&&l.stateNode===o){var h=Qd((o[zt]||null).action),y=a.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,a,o);e.push({event:z,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if($n!==0){var C=y?Zd(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?Zd(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],By=ro.toLowerCase(),Uy=ro[0].toUpperCase()+ro.slice(1);en(By,"on"+Uy)}en(kf,"onAnimationEnd"),en(Ef,"onAnimationIteration"),en(Cf,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(ey,"onTransitionRun"),en(ty,"onTransitionStart"),en(ny,"onTransitionCancel"),en(wf,"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(" "),Hy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sa));function Fd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],o=a.event;a=a.listeners;e:{var h=void 0;if(t)for(var y=a.length-1;0<=y;y--){var z=a[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<a.length;y++){if(z=a[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 a=e+"__bubble";l.has(a)||(Kd(t,e,2,!1),l.add(a))}function uo(e,t,l){var a=0;t&&(a|=4),Kd(l,e,a,t)}var Lr="_reactListening"+Math.random().toString(36).slice(2);function so(e){if(!e[Lr]){e[Lr]=!0,qc.forEach(function(l){l!=="selectionchange"&&(Hy.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 Kd(e,t,l,a){switch(km(t)){case 2:var o=d1;break;case 8:o=m1;break;default:o=Eo}l=o.bind(null,t,l,e),o=void 0,!Au||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?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,a,o){var h=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var y=a.tag;if(y===3||y===4){var z=a.stateNode.containerInfo;if(z===o)break;if(y===4)for(y=a.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){a=h=y;continue e}z=z.parentNode}}a=a.return}Wc(function(){var O=h,V=wu(l),Z=[];e:{var R=Tf.get(e);if(R!==void 0){var H=Fa,le=e;switch(e){case"keypress":if(Qa(l)===0)break e;case"keydown":case"keyup":H=jg;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=tf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=vg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Rg;break;case kf:case Ef:case Cf:H=kg;break;case wf:H=Bg;break;case"scroll":case"scrollend":H=xg;break;case"wheel":H=Hg;break;case"copy":case"cut":case"paste":H=Cg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=lf;break;case"toggle":case"beforetoggle":H=Yg}var de=(t&4)!==0,Ye=!de&&(e==="scroll"||e==="scrollend"),N=de?R!==null?R+"Capture":null:R;de=[];for(var A=O,j;A!==null;){var Q=A;if(j=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||j===null||N===null||(Q=_i(A,N),Q!=null&&de.push(oa(A,Q,j))),Ye)break;A=A.return}0<de.length&&(R=new H(R,le,null,l,V),Z.push({event:R,listeners:de}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",R&&l!==Cu&&(le=l.relatedTarget||l.fromElement)&&(jl(le)||le[Ml]))break e;if((H||R)&&(R=V.window===V?V:(R=V.ownerDocument)?R.defaultView||R.parentWindow:window,H?(le=l.relatedTarget||l.toElement,H=O,le=le?jl(le):null,le!==null&&(Ye=c(le),de=le.tag,le!==Ye||de!==5&&de!==27&&de!==6)&&(le=null)):(H=null,le=O),H!==le)){if(de=tf,Q="onMouseLeave",N="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(de=lf,Q="onPointerLeave",N="onPointerEnter",A="pointer"),Ye=H==null?R:Ni(H),j=le==null?R:Ni(le),R=new de(Q,A+"leave",H,l,V),R.target=Ye,R.relatedTarget=j,Q=null,jl(V)===O&&(de=new de(N,A+"enter",le,l,V),de.target=j,de.relatedTarget=Ye,Q=de),Ye=Q,H&&le)t:{for(de=qy,N=H,A=le,j=0,Q=N;Q;Q=de(Q))j++;Q=0;for(var ce=A;ce;ce=de(ce))Q++;for(;0<j-Q;)N=de(N),j--;for(;0<Q-j;)A=de(A),Q--;for(;j--;){if(N===A||A!==null&&N===A.alternate){de=N;break t}N=de(N),A=de(A)}de=null}else de=null;H!==null&&Jd(Z,R,H,de,!1),le!==null&&Ye!==null&&Jd(Z,Ye,le,de,!0)}}e:{if(R=O?Ni(O):window,H=R.nodeName&&R.nodeName.toLowerCase(),H==="select"||H==="input"&&R.type==="file")var je=hf;else if(cf(R))if(df)je=$g;else{je=Jg;var ae=Kg}else H=R.nodeName,!H||H.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?O&&Eu(O.elementType)&&(je=hf):je=Ig;if(je&&(je=je(e,O))){ff(Z,je,l,V);break e}ae&&ae(e,R,O),e==="focusout"&&O&&R.type==="number"&&O.memoizedProps.value!=null&&ku(R,"number",R.value)}switch(ae=O?Ni(O):window,e){case"focusin":(cf(ae)||ae.contentEditable==="true")&&(Yl=ae,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,Sf(Z,l,V);break;case"selectionchange":if(Pg)break;case"keydown":case"keyup":Sf(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?sf(e,l)&&(Ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ae="onCompositionStart");Ae&&(af&&l.locale!=="ko"&&(ql||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&ql&&(xe=Pc()):(Rn=V,Nu="value"in Rn?Rn.value:Rn.textContent,ql=!0)),ae=Br(O,Ae),0<ae.length&&(Ae=new nf(Ae,e,null,l,V),Z.push({event:Ae,listeners:ae}),xe?Ae.data=xe:(xe=of(l),xe!==null&&(Ae.data=xe)))),(xe=Gg?Xg(e,l):Qg(e,l))&&(Ae=Br(O,"onBeforeInput"),0<Ae.length&&(ae=new nf("onBeforeInput","beforeinput",null,l,V),Z.push({event:ae,listeners:Ae}),ae.data=xe)),Ly(Z,e,O,l,V)}Fd(Z,t)})}function oa(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Br(e,t){for(var l=t+"Capture",a=[];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&&a.unshift(oa(e,o,h)),o=_i(e,t),o!=null&&a.push(oa(e,o,h))),e.tag===3)return a;e=e.return}return[]}function qy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jd(e,t,l,a,o){for(var h=t._reactName,y=[];l!==null&&l!==a;){var z=l,C=z.alternate,O=z.stateNode;if(z=z.tag,C!==null&&C===a)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 Yy=/\r\n?/g,Vy=/\u0000|\uFFFD/g;function Id(e){return(typeof e=="string"?e:""+e).replace(Yy,`
|
|
49
|
-
`).replace(Vy,"")}function $d(e,t){return t=Id(t),Id(e)===t}function qe(e,t,l,a,o,h){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Bl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Bl(e,""+a);break;case"className":Ya(e,"class",a);break;case"tabIndex":Ya(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ya(e,l,a);break;case"style":Ic(e,a,h);break;case"data":if(t!=="object"){Ya(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Ga(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="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(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Ga(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=pn);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Ga(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),qa(e,"popover",a);break;case"xlinkActuate":mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":mn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":mn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":mn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":mn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":qa(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=gg.get(l)||l,qa(e,l,a))}}function co(e,t,l,a,o,h){switch(l){case"style":Ic(e,a,h);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Bl(e,a):(typeof a=="number"||typeof a=="bigint")&&Bl(e,""+a);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"onClick":a!=null&&(e.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yc.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 a=="function")){typeof h!="function"&&h!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,o);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):qa(e,l,a)}}}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 a=!1,o=!1,h;for(h in l)if(l.hasOwnProperty(h)){var y=l[h];if(y!=null)switch(h){case"src":a=!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),a&&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(a in l)if(l.hasOwnProperty(a)){var V=l[a];if(V!=null)switch(a){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,a,V,l,null)}}Zc(e,h,z,C,O,y,o,!1);return;case"select":Ee("invalid",e),a=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":a=z;default:qe(e,t,o,z,l,null)}t=h,l=y,e.multiple=!!a,t!=null?Ll(e,!!a,t,!1):l!=null&&Ll(e,!!a,l,!0);return;case"textarea":Ee("invalid",e),h=o=a=null;for(y in l)if(l.hasOwnProperty(y)&&(z=l[y],z!=null))switch(y){case"value":a=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)}Kc(e,a,o,h);return;case"option":for(C in l)if(l.hasOwnProperty(C)&&(a=l[C],a!=null))switch(C){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:qe(e,t,C,a,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(a=0;a<sa.length;a++)Ee(sa[a],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)&&(a=l[O],a!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:qe(e,t,O,a,l,null)}return;default:if(Eu(t)){for(V in l)l.hasOwnProperty(V)&&(a=l[V],a!==void 0&&co(e,t,V,a,l,void 0));return}}for(z in l)l.hasOwnProperty(z)&&(a=l[z],a!=null&&qe(e,t,z,a,l,null))}function Gy(e,t,l,a){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:a.hasOwnProperty(H)||qe(e,t,H,null,a,Z)}}for(var R in a){var H=a[R];if(Z=l[R],a.hasOwnProperty(R)&&(H!=null||Z!=null))switch(R){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,R,H,a,Z)}}zu(e,y,z,C,O,V,h,o);return;case"select":H=y=z=R=null;for(h in l)if(C=l[h],l.hasOwnProperty(h)&&C!=null)switch(h){case"value":break;case"multiple":H=C;default:a.hasOwnProperty(h)||qe(e,t,h,null,a,C)}for(o in a)if(h=a[o],C=l[o],a.hasOwnProperty(o)&&(h!=null||C!=null))switch(o){case"value":R=h;break;case"defaultValue":z=h;break;case"multiple":y=h;default:h!==C&&qe(e,t,o,h,a,C)}t=z,l=y,a=H,R!=null?Ll(e,!!l,R,!1):!!a!=!!l&&(t!=null?Ll(e,!!l,t,!0):Ll(e,!!l,l?[]:"",!1));return;case"textarea":H=R=null;for(z in l)if(o=l[z],l.hasOwnProperty(z)&&o!=null&&!a.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:qe(e,t,z,null,a,o)}for(y in a)if(o=a[y],h=l[y],a.hasOwnProperty(y)&&(o!=null||h!=null))switch(y){case"value":R=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,a,h)}Fc(e,R,H);return;case"option":for(var le in l)if(R=l[le],l.hasOwnProperty(le)&&R!=null&&!a.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:qe(e,t,le,null,a,R)}for(C in a)if(R=a[C],H=l[C],a.hasOwnProperty(C)&&R!==H&&(R!=null||H!=null))switch(C){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:qe(e,t,C,R,a,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 de in l)R=l[de],l.hasOwnProperty(de)&&R!=null&&!a.hasOwnProperty(de)&&qe(e,t,de,null,a,R);for(O in a)if(R=a[O],H=l[O],a.hasOwnProperty(O)&&R!==H&&(R!=null||H!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(u(137,t));break;default:qe(e,t,O,R,a,H)}return;default:if(Eu(t)){for(var Ye in l)R=l[Ye],l.hasOwnProperty(Ye)&&R!==void 0&&!a.hasOwnProperty(Ye)&&co(e,t,Ye,void 0,a,R);for(V in a)R=a[V],H=l[V],!a.hasOwnProperty(V)||R===H||R===void 0&&H===void 0||co(e,t,V,R,a,H);return}}for(var N in l)R=l[N],l.hasOwnProperty(N)&&R!=null&&!a.hasOwnProperty(N)&&qe(e,t,N,null,a,R);for(Z in a)R=a[Z],H=l[Z],!a.hasOwnProperty(Z)||R===H||R==null&&H==null||qe(e,t,Z,R,a,H)}function Wd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Xy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var o=l[a],h=o.transferSize,y=o.initiatorType,z=o.duration;if(h&&z&&Wd(y)){for(y=0,z=o.responseEnd,a+=1;a<l.length;a++){var C=l[a],O=C.startTime;if(O>z)break;var V=C.transferSize,Z=C.initiatorType;V&&Wd(Z)&&(C=C.responseEnd,y+=V*(C<z?1:(z-O)/(C-O)))}if(--a,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 Pd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function em(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function 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 Qy(){var e=window.event;return e&&e.type==="popstate"?e===po?!1:(po=e,!0):(po=null,!1)}var tm=typeof setTimeout=="function"?setTimeout:void 0,Zy=typeof clearTimeout=="function"?clearTimeout:void 0,nm=typeof Promise=="function"?Promise:void 0,Fy=typeof queueMicrotask=="function"?queueMicrotask:typeof nm<"u"?function(e){return nm.resolve(null).then(e).catch(Ky)}:tm;function Ky(e){setTimeout(function(){throw e})}function Wn(e){return e==="head"}function lm(e,t){var l=t,a=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(o),mi(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;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 im(e,t){var l=e;e=0;do{var a=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||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}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 Jy(e,t,l,a){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){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 Iy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=It(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(e.nextSibling),e===null))return null;return e}function yo(e){return e.data==="$?"||e.data==="$~"}function xo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function $y(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}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 rm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return It(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function um(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function sm(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,om=new Set;function Hr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mn=K.d;K.d={f:Wy,r:Py,D:e1,C:t1,L:n1,m:l1,X:a1,S:i1,M:r1};function Wy(){var e=Mn.f(),t=_r();return e||t}function Py(e){var t=Ol(e);t!==null&&t.tag===5&&t.type==="form"?wh(t):Mn.r(e)}var fi=typeof document>"u"?null:document;function cm(e,t,l){var a=fi;if(a&&typeof t=="string"&&t){var o=Gt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),om.has(o)||(om.add(o),e={rel:e,crossOrigin:l,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),dt(t,"link",e),ut(t),a.head.appendChild(t)))}}function e1(e){Mn.D(e),cm("dns-prefetch",e,null)}function t1(e,t){Mn.C(e,t),cm("preconnect",e,t)}function n1(e,t,l){Mn.L(e,t,l);var a=fi;if(a&&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),a.querySelector(o)!==null||t==="style"&&a.querySelector(fa(h))||t==="script"&&a.querySelector(ha(h))||(t=a.createElement("link"),dt(t,"link",e),ut(t),a.head.appendChild(t)))}}function l1(e,t){Mn.m(e,t);var l=fi;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Gt(a)+'"][href="'+Gt(e)+'"]',h=o;switch(a){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(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ha(h)))return}a=l.createElement("link"),dt(a,"link",e),ut(a),l.head.appendChild(a)}}}function i1(e,t,l){Mn.S(e,t,l);var a=fi;if(a&&e){var o=Dl(a).hoistableStyles,h=hi(e);t=t||"default";var y=o.get(h);if(!y){var z={loading:0,preload:null};if(y=a.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=a.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,a)}y={type:"stylesheet",instance:y,count:1,state:z},o.set(h,y)}}}function a1(e,t){Mn.X(e,t);var l=fi;if(l&&e){var a=Dl(l).hoistableScripts,o=di(e),h=a.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},a.set(o,h))}}function r1(e,t){Mn.M(e,t);var l=fi;if(l&&e){var a=Dl(l).hoistableScripts,o=di(e),h=a.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},a.set(o,h))}}function fm(e,t,l,a){var o=(o=oe.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,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{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||u1(o,e,l,y.state))),t&&a===null)throw Error(u(528,""));return y}if(t&&a!==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,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{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 hm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function u1(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.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 dm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Gt(l.href)+'"]');if(a)return t.instance=a,ut(a),a;var o=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ut(a),dt(a,"style",o),qr(a,l.precedence,e),t.instance=a;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;a=hm(l),(o=$t.get(o))&&vo(a,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",a),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):(a=l,(o=$t.get(h))&&(a=g({},l),So(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),dt(o,"link",a),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&&(a=t.instance,t.state.loading|=4,qr(a,l.precedence,e));return t.instance}function qr(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,h=o,y=0;y<a.length;y++){var z=a[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 mm(e,t,l){if(Yr===null){var a=new Map,o=Yr=new Map;o.set(l,a)}else o=Yr,a=o.get(l),a||(a=new Map,o.set(l,a));if(a.has(e))return a;for(a.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=a.get(y);z?z.push(h):a.set(y,[h])}}return a}function pm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function s1(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function gm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function o1(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=hi(a.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,a=hm(a),(o=$t.get(o))&&vo(a,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",a),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 c1(e,t){return e.stylesheets&&e.count===0&&Xr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&zo===0&&(zo=62500*Xy());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xr(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(a),clearTimeout(o)}}:null}function Vr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gr=null;function Xr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gr=new Map,t.forEach(f1,e),Gr=null,Vr.call(e))}function f1(e,t){if(!(t.state.loading&4)){var l=Gr.get(e);if(l)var a=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),a=y)}a&&l.set(null,a)}o=t.instance,y=o.getAttribute("data-precedence"),h=l.get(y)||a,h===a&&l.set(null,o),l.set(y,o),this.count++,a=Vr.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),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:U,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function h1(e,t,l,a,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=a,this.onUncaughtError=o,this.onCaughtError=h,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function ym(e,t,l,a,o,h,y,z,C,O,V,Z){return e=new h1(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:a,isDehydrated:l,cache:t},is(h),e}function xm(e){return e?(e=Xl,e):Xl}function bm(e,t,l,a,o,h){o=xm(o),a.context===null?a.context=o:a.pendingContext=o,a=Yn(t),a.payload={element:l},h=h===void 0?null:h,h!==null&&(a.callback=h),l=Vn(e,a,t),l!==null&&(At(l,e,t),Qi(l,e,t))}function vm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ko(e,t){vm(e,t),(e=e.alternate)&&vm(e,t)}function Sm(e){if(e.tag===13||e.tag===31){var t=fl(e,67108864);t!==null&&At(t,e,67108864),ko(e,67108864)}}function zm(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 Qr=!0;function d1(e,t,l,a){var o=L.T;L.T=null;var h=K.p;try{K.p=2,Eo(e,t,l,a)}finally{K.p=h,L.T=o}}function m1(e,t,l,a){var o=L.T;L.T=null;var h=K.p;try{K.p=8,Eo(e,t,l,a)}finally{K.p=h,L.T=o}}function Eo(e,t,l,a){if(Qr){var o=Co(a);if(o===null)oo(e,t,a,Zr,l),Em(e,a);else if(g1(o,e,t,l,a))a.stopPropagation();else if(Em(e,a),t&4&&-1<p1.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(a),h===null&&oo(e,t,a,Zr,l),h===o)break;o=h}o!==null&&a.stopPropagation()}else oo(e,t,a,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 km(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(pu()){case X:return 2;case P:return 8;case pe: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=[],p1="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 Em(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,a,o,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:h,targetContainers:[o]},t!==null&&(t=Ol(t),t!==null&&Sm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function g1(e,t,l,a,o){switch(t){case"focusin":return Pn=ga(Pn,e,t,l,a,o),!0;case"dragenter":return el=ga(el,e,t,l,a,o),!0;case"mouseover":return tl=ga(tl,e,t,l,a,o),!0;case"pointerover":var h=o.pointerId;return ma.set(h,ga(ma.get(h)||null,e,t,l,a,o)),!0;case"gotpointercapture":return h=o.pointerId,pa.set(h,ga(pa.get(h)||null,e,t,l,a,o)),!0}return!1}function Cm(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,Uc(e.priority,function(){zm(l)});return}}else if(t===31){if(t=d(l),t!==null){e.blockedOn=t,Uc(e.priority,function(){zm(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 a=new l.constructor(l.type,l);Cu=a,l.target.dispatchEvent(a),Cu=null}else return t=Ol(l),t!==null&&Sm(t),e.blockedOn=l,!1;t.shift()}return!0}function wm(e,t,l){Fr(e)&&l.delete(t)}function y1(){To=!1,Pn!==null&&Fr(Pn)&&(Pn=null),el!==null&&Fr(el)&&(el=null),tl!==null&&Fr(tl)&&(tl=null),ma.forEach(wm),pa.forEach(wm)}function Kr(e,t){e.blockedOn===t&&(e.blockedOn=null,To||(To=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,y1)))}var Jr=null;function Tm(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],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(wo(a||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:a},a,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 a=nl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<nl.length&&(l=nl[0],l.blockedOn===null);)Cm(l),l.blockedOn===null&&nl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var o=l[a],h=l[a+1],y=o[zt]||null;if(typeof h=="function")y||Tm(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[a+1]=z:(l.splice(a,3),a-=3),Tm(l)}}}function Am(){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),a||setTimeout(l,20)}function l(){if(!a&&!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 a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!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,a=Ut();bm(l,a,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;bm(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=Bc();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&&Cm(e)}};var Nm=r.version;if(Nm!=="19.2.4")throw Error(u(527,Nm,"19.2.4"));K.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 x1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$r.isDisabled&&$r.supportsFiber)try{xt=$r.inject(x1),at=$r}catch{}}return xa.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,a="",o=Lh,h=Bh,y=Uh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=ym(e,1,!1,null,null,l,a,null,o,h,y,Am),e[Ml]=t.current,so(e),new Ao(t)},xa.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var a=!1,o="",h=Lh,y=Bh,z=Uh,C=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!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=ym(e,1,!0,t,l??null,a,o,C,h,y,z,Am),t.context=xm(null),l=t.current,a=Ut(),a=yu(a),o=Yn(a),o.callback=null,Vn(l,o,a),l=a,t.current.lanes=l,Ti(t,l),sn(t),e[Ml]=t.current,so(e),new Ir(t)},xa.version="19.2.4",xa}var Hm;function T1(){if(Hm)return Mo.exports;Hm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Mo.exports=w1(),Mo.exports}var A1=T1();/**
|
|
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{Al=!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 Nl(e.type,!1);case 11:return Nl(e.type.render,!1);case 1:return Nl(e.type,!0);case 31:return hn("Activity");default:return""}}function 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 _l=Object.prototype.hasOwnProperty,Ml=n.unstable_scheduleCallback,wi=n.unstable_cancelCallback,du=n.unstable_shouldYield,mu=n.unstable_requestPaint,yt=n.unstable_now,pu=n.unstable_getCurrentPriorityLevel,X=n.unstable_ImmediatePriority,P=n.unstable_UserBlockingPriority,pe=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:rg,On=Math.log,Pt=Math.LN2;function rg(e){return e>>>=0,e===0?32:31-(On(e)/Pt|0)|0}var La=256,Ba=262144,Ua=4194304;function ul(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function 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=ul(r):(y&=z,y!==0?o=ul(y):l||(l=z&~e,l!==0&&(o=ul(l))))):(z=r&~h,z!==0?o=ul(z):y!==0?o=ul(y):l||(l=r&~e,l!==0&&(o=ul(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 Ti(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ug(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 Oc(){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 Ai(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sg(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 R=O[V];if(R!==null)for(O[V]=null,V=0;V<R.length;V++){var q=R[V];q!==null&&(q.lane&=-536870913)}l&=~Z}r!==0&&Dc(e,r,0),h!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=h&~(y&~t))}function Dc(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 Rc(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 Lc(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 Bc(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:km(e.type))}function Uc(e,t){var l=K.p;try{return K.p=e,t()}finally{K.p=l}}var Dn=Math.random().toString(36).slice(2),ot="__reactFiber$"+Dn,zt="__reactProps$"+Dn,jl="__reactContainer$"+Dn,bu="__reactEvents$"+Dn,og="__reactListeners$"+Dn,cg="__reactHandles$"+Dn,Hc="__reactResources$"+Dn,Ni="__reactMarker$"+Dn;function vu(e){delete e[ot],delete e[zt],delete e[bu],delete e[og],delete e[cg]}function Ol(e){var t=e[ot];if(t)return t;for(var l=e.parentNode;l;){if(t=l[jl]||l[ot]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=um(e);e!==null;){if(l=e[ot])return l;e=um(e)}return t}e=l,l=e.parentNode}return null}function Dl(e){if(e=e[ot]||e[jl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function _i(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Rl(e){var t=e[Hc];return t||(t=e[Hc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Ni]=!0}var qc=new Set,Yc={};function sl(e,t){Ll(e,t),Ll(e+"Capture",t)}function Ll(e,t){for(Yc[e]=t,e=0;e<t.length;e++)qc.add(t[e])}var fg=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]*$"),Vc={},Gc={};function hg(e){return _l.call(Gc,e)?!0:_l.call(Vc,e)?!1:fg.test(e)?Gc[e]=!0:(Vc[e]=!0,!1)}function qa(e,t,l){if(hg(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 Xc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dg(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=Xc(e)?"checked":"value";e._valueTracker=dg(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=Xc(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 mg=/[\n"\\]/g;function Gt(e){return e.replace(mg,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 Zc(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 Bl(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 Fc(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 Kc(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 Ul(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var pg=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 Jc(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||pg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Ic(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&&Jc(e,o,r)}else for(var h in t)t.hasOwnProperty(h)&&Jc(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 gg=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"]]),yg=/^[\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 yg.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 Hl=null,ql=null;function $c(e){var t=Dl(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":Fc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Bl(e,!!l.multiple,t,!1)}}}var Tu=!1;function Wc(e,t,l){if(Tu)return e(t,l);Tu=!0;try{var r=e(t);return r}finally{if(Tu=!1,(Hl!==null||ql!==null)&&(_r(),Hl&&(t=Hl,e=ql,ql=Hl=null,$c(t),e)))for(t=0;t<e.length;t++)$c(e[t])}}function Mi(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 ji={};Object.defineProperty(ji,"passive",{get:function(){Au=!0}}),window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{Au=!1}var Rn=null,Nu=null,Xa=null;function Pc(){if(Xa)return Xa;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 Xa=o.slice(e,1<r?1-r:void 0)}function Qa(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 ef(){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:ef,this.isPropagationStopped=ef,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 ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=kt(ol),Oi=g({},ol,{view:0,detail:0}),xg=kt(Oi),_u,Mu,Di,Ka=g({},Oi,{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!==Di&&(Di&&e.type==="mousemove"?(_u=e.screenX-Di.screenX,Mu=e.screenY-Di.screenY):Mu=_u=0,Di=e),_u)},movementY:function(e){return"movementY"in e?e.movementY:Mu}}),tf=kt(Ka),bg=g({},Ka,{dataTransfer:0}),vg=kt(bg),Sg=g({},Oi,{relatedTarget:0}),ju=kt(Sg),zg=g({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),kg=kt(zg),Eg=g({},ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cg=kt(Eg),wg=g({},ol,{data:0}),nf=kt(wg),Tg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ag={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"},Ng={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _g(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ng[e])?!!t[e]:!1}function Ou(){return _g}var Mg=g({},Oi,{key:function(e){if(e.key){var t=Tg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ag[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"?Qa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jg=kt(Mg),Og=g({},Ka,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lf=kt(Og),Dg=g({},Oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),Rg=kt(Dg),Lg=g({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bg=kt(Lg),Ug=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}),Hg=kt(Ug),qg=g({},ol,{newState:0,oldState:0}),Yg=kt(qg),Vg=[9,13,27,32],Du=gn&&"CompositionEvent"in window,Ri=null;gn&&"documentMode"in document&&(Ri=document.documentMode);var Gg=gn&&"TextEvent"in window&&!Ri,af=gn&&(!Du||Ri&&8<Ri&&11>=Ri),rf=" ",uf=!1;function sf(e,t){switch(e){case"keyup":return Vg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function of(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function Xg(e,t){switch(e){case"compositionend":return of(t);case"keypress":return t.which!==32?null:(uf=!0,rf);case"textInput":return e=t.data,e===rf&&uf?null:e;default:return null}}function Qg(e,t){if(Yl)return e==="compositionend"||!Du&&sf(e,t)?(e=Pc(),Xa=Nu=Rn=null,Yl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return af&&t.locale!=="ko"?null:t.data;default:return null}}var Zg={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 cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zg[e.type]:t==="textarea"}function ff(e,t,l,r){Hl?ql?ql.push(r):ql=[r]:Hl=r,t=Br(t,"onChange"),0<t.length&&(l=new Fa("onChange","change",null,l,r),e.push({event:l,listeners:t}))}var Li=null,Bi=null;function Fg(e){Fd(e,0)}function Ja(e){var t=_i(e);if(Qc(t))return e}function hf(e,t){if(e==="change")return t}var df=!1;if(gn){var Ru;if(gn){var Lu="oninput"in document;if(!Lu){var mf=document.createElement("div");mf.setAttribute("oninput","return;"),Lu=typeof mf.oninput=="function"}Ru=Lu}else Ru=!1;df=Ru&&(!document.documentMode||9<document.documentMode)}function pf(){Li&&(Li.detachEvent("onpropertychange",gf),Bi=Li=null)}function gf(e){if(e.propertyName==="value"&&Ja(Bi)){var t=[];ff(t,Bi,e,wu(e)),Wc(Fg,t)}}function Kg(e,t,l){e==="focusin"?(pf(),Li=t,Bi=l,Li.attachEvent("onpropertychange",gf)):e==="focusout"&&pf()}function Jg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ja(Bi)}function Ig(e,t){if(e==="click")return Ja(t)}function $g(e,t){if(e==="input"||e==="change")return Ja(t)}function Wg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:Wg;function Ui(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(!_l.call(t,o)||!jt(e[o],t[o]))return!1}return!0}function yf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xf(e,t){var l=yf(e);e=0;for(var 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=yf(l)}}function bf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=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 Pg=gn&&"documentMode"in document&&11>=document.documentMode,Vl=null,Uu=null,Hi=null,Hu=!1;function Sf(e,t,l){var r=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hu||Vl==null||Vl!==Va(r)||(r=Vl,"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}),Hi&&Ui(Hi,r)||(Hi=r,r=Br(Uu,"onSelect"),0<r.length&&(t=new Fa("onSelect","select",null,t,l),e.push({event:t,listeners:r}),t.target=Vl)))}function cl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Gl={animationend:cl("Animation","AnimationEnd"),animationiteration:cl("Animation","AnimationIteration"),animationstart:cl("Animation","AnimationStart"),transitionrun:cl("Transition","TransitionRun"),transitionstart:cl("Transition","TransitionStart"),transitioncancel:cl("Transition","TransitionCancel"),transitionend:cl("Transition","TransitionEnd")},qu={},zf={};gn&&(zf=document.createElement("div").style,"AnimationEvent"in window||(delete Gl.animationend.animation,delete Gl.animationiteration.animation,delete Gl.animationstart.animation),"TransitionEvent"in window||delete Gl.transitionend.transition);function fl(e){if(qu[e])return qu[e];if(!Gl[e])return e;var t=Gl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in zf)return qu[e]=t[l];return e}var kf=fl("animationend"),Ef=fl("animationiteration"),Cf=fl("animationstart"),ey=fl("transitionrun"),ty=fl("transitionstart"),ny=fl("transitioncancel"),wf=fl("transitionend"),Tf=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){Tf.set(e,t),sl(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)},Xt=[],Xl=0,Vu=0;function $a(){for(var e=Xl,t=Vu=Xl=0;t<e;){var l=Xt[t];Xt[t++]=null;var r=Xt[t];Xt[t++]=null;var o=Xt[t];Xt[t++]=null;var h=Xt[t];if(Xt[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&&Af(l,o,h)}}function Wa(e,t,l,r){Xt[Xl++]=e,Xt[Xl++]=t,Xt[Xl++]=l,Xt[Xl++]=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 hl(e,t){return Wa(e,null,null,t),Pa(e)}function Af(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<ua)throw ua=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 ly(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 ly(e,t,l,r)}function Xu(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 Nf(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")Xu(e)&&(y=1);else if(typeof e=="string")y=s1(e,l,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=Ot(31,l,t,o),e.elementType=fe,e.lanes=h,e;case M:return dl(l.children,o,h,t);case U:y=8,o|=24;break;case _:return e=Ot(12,l,t,o|2),e.elementType=_,e.lanes=h,e;case F:return e=Ot(13,l,t,o),e.elementType=F,e.lanes=h,e;case D:return e=Ot(19,l,t,o),e.elementType=D,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:y=10;break e;case Y:y=9;break e;case I:y=11;break e;case $:y=14;break e;case ue: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 dl(e,t,l,r){return e=Ot(7,e,r,t),e.lanes=l,e}function Qu(e,t,l){return e=Ot(6,e,null,t),e.lanes=l,e}function _f(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 Mf=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var l=Mf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ra(t)},Mf.set(e,t),t)}return{value:e,source:t,stack:Ra(t)}}var Zl=[],Fl=0,tr=null,qi=0,Zt=[],Ft=0,Ln=null,an=1,rn="";function xn(e,t){Zl[Fl++]=qi,Zl[Fl++]=tr,tr=e,qi=t}function jf(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),jf(e,1,0))}function Ku(e){for(;e===tr;)tr=Zl[--Fl],Zl[Fl]=null,qi=Zl[--Fl],Zl[Fl]=null;for(;e===Ln;)Ln=Zt[--Ft],Zt[Ft]=null,rn=Zt[--Ft],Zt[Ft]=null,an=Zt[--Ft],Zt[Ft]=null}function Of(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 Yi(Qt(t,e)),Ju}function Df(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<oa.length;l++)Ee(oa[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),Zc(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),Kc(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||$d(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 Rf(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Kt=!1;return;case 27:case 3:Kt=!0;return;default:ct=ct.return}}function Kl(e){if(e!==ct)return!1;if(!Ne)return Rf(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),Rf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=rm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=rm(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 ml(){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 Yi(e){Bn===null?Bn=[e]:Bn.push(e)}var $u=T(null),pl=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 Jl(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(ma):e=[ma])}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 gl(e){pl=e,bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return Lf(pl,e)}function lr(e,t){return pl===null&&gl(e),Lf(e,t)}function Lf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},bn===null){if(e===null)throw Error(u(308));bn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else bn=bn.next=t;return l}var iy=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()})}},ay=n.unstable_scheduleCallback,ry=n.unstable_NormalPriority,et={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function es(){return{controller:new iy,data:new Map,refCount:0}}function Vi(e){e.refCount--,e.refCount===0&&ay(ry,function(){e.controller.abort()})}var Gi=null,ts=0,Il=0,$l=null;function uy(e,t){if(Gi===null){var l=Gi=[];ts=0,Il=io(),$l={status:"pending",value:void 0,then:function(r){l.push(r)}}}return ts++,t.then(Bf,Bf),t}function Bf(){if(--ts===0&&Gi!==null){$l!==null&&($l.status="fulfilled");var e=Gi;Gi=null,Il=0,$l=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function sy(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 Uf=L.S;L.S=function(e,t){Sd=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&uy(e,t),Uf!==null&&Uf(e,t)};var yl=T(null);function ns(){var e=yl.current;return e!==null?e:Ge.pooledCache}function ir(e,t){t===null?k(yl,yl.current):k(yl,t.pool)}function Hf(){var e=ns();return e===null?null:{parent:et._currentValue,pool:e}}var Wl=Error(u(460)),ls=Error(u(474)),ar=Error(u(542)),rr={then:function(){}};function qf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(pn,pn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gf(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,Gf(e),e}throw bl=t,Wl}}function xl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(bl=l,Wl):l}}var bl=null;function Vf(){if(bl===null)throw Error(u(459));var e=bl;return bl=null,e}function Gf(e){if(e===Wl||e===ar)throw Error(u(483))}var Pl=null,Xi=0;function ur(e){var t=Xi;return Xi+=1,Pl===null&&(Pl=[]),Yf(Pl,e,t)}function Qi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function sr(e,t){throw t.$$typeof===v?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Xf(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,Q){return A===null||A.tag!==6?(A=Qu(j,N.mode,Q),A.return=N,A):(A=o(A,j),A.return=N,A)}function C(N,A,j,Q){var ce=j.type;return ce===M?V(N,A,j.props.children,Q,j.key):A!==null&&(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===ue&&xl(ce)===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,Q),Qi(A,j),A.return=N,A)}function O(N,A,j,Q){return A===null||A.tag!==4||A.stateNode.containerInfo!==j.containerInfo||A.stateNode.implementation!==j.implementation?(A=Zu(j,N.mode,Q),A.return=N,A):(A=o(A,j.children||[]),A.return=N,A)}function V(N,A,j,Q,ce){return A===null||A.tag!==7?(A=dl(j,N.mode,Q,ce),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=Qu(""+A,N.mode,j),A.return=N,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case b: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 ue:return A=xl(A),Z(N,A,j)}if(W(A)||ne(A))return A=dl(A,N.mode,j,null),A.return=N,A;if(typeof A.then=="function")return Z(N,ur(A),j);if(A.$$typeof===H)return Z(N,lr(N,A),j);sr(N,A)}return null}function R(N,A,j,Q){var ce=A!==null?A.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return ce!==null?null:z(N,A,""+j,Q);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case b:return j.key===ce?C(N,A,j,Q):null;case w:return j.key===ce?O(N,A,j,Q):null;case ue:return j=xl(j),R(N,A,j,Q)}if(W(j)||ne(j))return ce!==null?null:V(N,A,j,Q,null);if(typeof j.then=="function")return R(N,A,ur(j),Q);if(j.$$typeof===H)return R(N,A,lr(N,j),Q);sr(N,j)}return null}function q(N,A,j,Q,ce){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return N=N.get(j)||null,z(A,N,""+Q,ce);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case b:return N=N.get(Q.key===null?j:Q.key)||null,C(A,N,Q,ce);case w:return N=N.get(Q.key===null?j:Q.key)||null,O(A,N,Q,ce);case ue:return Q=xl(Q),q(N,A,j,Q,ce)}if(W(Q)||ne(Q))return N=N.get(j)||null,V(A,N,Q,ce,null);if(typeof Q.then=="function")return q(N,A,j,ur(Q),ce);if(Q.$$typeof===H)return q(N,A,j,lr(A,Q),ce);sr(A,Q)}return null}function le(N,A,j,Q){for(var ce=null,je=null,ae=A,xe=A=0,Ae=null;ae!==null&&xe<j.length;xe++){ae.index>xe?(Ae=ae,ae=null):Ae=ae.sibling;var Oe=R(N,ae,j[xe],Q);if(Oe===null){ae===null&&(ae=Ae);break}e&&ae&&Oe.alternate===null&&t(N,ae),A=h(Oe,A,xe),je===null?ce=Oe:je.sibling=Oe,je=Oe,ae=Ae}if(xe===j.length)return l(N,ae),Ne&&xn(N,xe),ce;if(ae===null){for(;xe<j.length;xe++)ae=Z(N,j[xe],Q),ae!==null&&(A=h(ae,A,xe),je===null?ce=ae:je.sibling=ae,je=ae);return Ne&&xn(N,xe),ce}for(ae=r(ae);xe<j.length;xe++)Ae=q(ae,N,xe,j[xe],Q),Ae!==null&&(e&&Ae.alternate!==null&&ae.delete(Ae.key===null?xe:Ae.key),A=h(Ae,A,xe),je===null?ce=Ae:je.sibling=Ae,je=Ae);return e&&ae.forEach(function(ll){return t(N,ll)}),Ne&&xn(N,xe),ce}function de(N,A,j,Q){if(j==null)throw Error(u(151));for(var ce=null,je=null,ae=A,xe=A=0,Ae=null,Oe=j.next();ae!==null&&!Oe.done;xe++,Oe=j.next()){ae.index>xe?(Ae=ae,ae=null):Ae=ae.sibling;var ll=R(N,ae,Oe.value,Q);if(ll===null){ae===null&&(ae=Ae);break}e&&ae&&ll.alternate===null&&t(N,ae),A=h(ll,A,xe),je===null?ce=ll:je.sibling=ll,je=ll,ae=Ae}if(Oe.done)return l(N,ae),Ne&&xn(N,xe),ce;if(ae===null){for(;!Oe.done;xe++,Oe=j.next())Oe=Z(N,Oe.value,Q),Oe!==null&&(A=h(Oe,A,xe),je===null?ce=Oe:je.sibling=Oe,je=Oe);return Ne&&xn(N,xe),ce}for(ae=r(ae);!Oe.done;xe++,Oe=j.next())Oe=q(ae,N,xe,Oe.value,Q),Oe!==null&&(e&&Oe.alternate!==null&&ae.delete(Oe.key===null?xe:Oe.key),A=h(Oe,A,xe),je===null?ce=Oe:je.sibling=Oe,je=Oe);return e&&ae.forEach(function(b1){return t(N,b1)}),Ne&&xn(N,xe),ce}function Ye(N,A,j,Q){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 b:e:{for(var ce=j.key;A!==null;){if(A.key===ce){if(ce=j.type,ce===M){if(A.tag===7){l(N,A.sibling),Q=o(A,j.props.children),Q.return=N,N=Q;break e}}else if(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===ue&&xl(ce)===A.type){l(N,A.sibling),Q=o(A,j.props),Qi(Q,j),Q.return=N,N=Q;break e}l(N,A);break}else t(N,A);A=A.sibling}j.type===M?(Q=dl(j.props.children,N.mode,Q,j.key),Q.return=N,N=Q):(Q=er(j.type,j.key,j.props,null,N.mode,Q),Qi(Q,j),Q.return=N,N=Q)}return y(N);case w:e:{for(ce=j.key;A!==null;){if(A.key===ce)if(A.tag===4&&A.stateNode.containerInfo===j.containerInfo&&A.stateNode.implementation===j.implementation){l(N,A.sibling),Q=o(A,j.children||[]),Q.return=N,N=Q;break e}else{l(N,A);break}else t(N,A);A=A.sibling}Q=Zu(j,N.mode,Q),Q.return=N,N=Q}return y(N);case ue:return j=xl(j),Ye(N,A,j,Q)}if(W(j))return le(N,A,j,Q);if(ne(j)){if(ce=ne(j),typeof ce!="function")throw Error(u(150));return j=ce.call(j),de(N,A,j,Q)}if(typeof j.then=="function")return Ye(N,A,ur(j),Q);if(j.$$typeof===H)return Ye(N,A,lr(N,j),Q);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),Q=o(A,j),Q.return=N,N=Q):(l(N,A),Q=Qu(j,N.mode,Q),Q.return=N,N=Q),y(N)):l(N,A)}return function(N,A,j,Q){try{Xi=0;var ce=Ye(N,A,j,Q);return Pl=null,ce}catch(ae){if(ae===Wl||ae===ar)throw ae;var je=Ot(29,ae,null,N.mode);return je.lanes=Q,je.return=N,je}finally{}}}var vl=Xf(!0),Qf=Xf(!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),Af(e,null,l),t}return Wa(e,r,t,l),Pa(e)}function Zi(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,Rc(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 Fi(){if(us){var e=$l;if(e!==null)throw e}}function Ki(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 R=z.lane&-536870913,q=R!==z.lane;if(q?(Te&R)===R:(r&R)===R){R!==0&&R===Il&&(us=!0),V!==null&&(V=V.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var le=e,de=z;R=t;var Ye=l;switch(de.tag){case 1:if(le=de.payload,typeof le=="function"){Z=le.call(Ye,Z,R);break e}Z=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=de.payload,R=typeof le=="function"?le.call(Ye,Z,R):le,R==null)break e;Z=g({},Z,R);break e;case 2:qn=!0}}R=z.callback,R!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[R]:q.push(R))}else q={lane:R,tag:z.tag,payload:z.payload,callback:z.callback,next:null},V===null?(O=V=q,C=Z):V=V.next=q,y|=R;if(z=z.next,z===null){if(z=o.shared.pending,z===null)break;q=z,z=q.next,q.next=null,o.lastBaseUpdate=q,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 Zf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ff(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Zf(l[e],t)}var ei=T(null),or=T(0);function Kf(e,t){e=Nn,k(or,e),k(ei,t),Nn=e|t.baseLanes}function ss(){k(or,Nn),k(ei,ei.current)}function os(){Nn=or.current,G(ei),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||ei.current!==null||t.memoizedState!==null)&&(Jt=e)}function cs(e){k(We,We.current),k(Dt,e),Jt===null&&(Jt=e)}function Jf(e){e.tag===22?(k(We,We.current),k(Dt,e),Jt===null&&(Jt=e)):Xn()}function Xn(){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,ti=!1,Sl=!1,hr=0,Ji=0,ni=null,oy=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,L.H=e===null||e.memoizedState===null?jh:Ts,Sl=!1,h=l(r,o),Sl=!1,ti&&(h=$f(t,l,r,o)),If(e),h}function If(e){L.H=Wi;var t=He!==null&&He.next!==null;if(Sn=0,tt=He=ye=null,fr=!1,Ji=0,ni=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&nr(e)&&(nt=!0))}function $f(e,t,l,r){ye=e;var o=0;do{if(ti&&(ni=null),Ji=0,ti=!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)}L.H=Oh,h=t(l,r)}while(ti);return h}function cy(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?Ii(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,ti=!1,Ji=hr=0,ni=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 Ii(e){var t=Ji;return Ji+=1,ni===null&&(ni=[]),e=Yf(ni,e,t),t=ye,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?jh:Ts),e}function mr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ii(e);if(e.$$typeof===H)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]=B;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 R=O.revertLane;if(R===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Z===Il&&(V=!0);else if((Sn&R)===R){O=O.next,R===Il&&(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|=R,Fn|=R;Z=O.action,Sl&&l(h,Z),h=O.hasEagerState?O.eagerState:l(h,Z)}else R={lane:Z,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},C===null?(z=C=R,y=h):C=C.next=R,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=$l,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 Wf(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(th.bind(null,r,o,e),[e]),o.getSnapshot!==t||y||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,li(9,{destroy:void 0},eh.bind(null,r,o,l,t),null),Ge===null)throw Error(u(349));h||(Sn&127)!==0||Pf(r,t,l)}return l}function Pf(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 eh(e,t,l,r){t.value=l,t.getSnapshot=r,nh(t)&&lh(e)}function th(e,t,l){return l(function(){nh(t)&&lh(e)})}function nh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!jt(e,l)}catch{return!0}}function lh(e){var t=hl(e,2);t!==null&&At(t,e,2)}function bs(e){var t=bt();if(typeof e=="function"){var l=e;if(e=l(),Sl){St(!0);try{l()}finally{St(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:e},t}function ih(e,t,l,r){return e.baseState=l,ys(e,He,typeof r=="function"?r:zn)}function fy(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)}};L.T!==null?l(!0):h.isTransition=!1,r(h),l=t.pending,l===null?(h.next=t.pending=h,ah(t,h)):(h.next=l.next,t.pending=l.next=h)}}function ah(e,t){var l=t.action,r=t.payload,o=e.state;if(t.isTransition){var h=L.T,y={};L.T=y;try{var z=l(o,r),C=L.S;C!==null&&C(y,z),rh(e,t,z)}catch(O){vs(e,t,O)}finally{h!==null&&y.types!==null&&(h.types=y.types),L.T=h}}else try{h=l(o,r),rh(e,t,h)}catch(O){vs(e,t,O)}}function rh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(r){uh(e,t,r)},function(r){return vs(e,t,r)}):uh(e,t,l)}function uh(e,t,l){t.status="fulfilled",t.value=l,sh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ah(e,l)))}function vs(e,t,l){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=l,sh(t),t=t.next;while(t!==r)}e.action=null}function sh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oh(e,t){return t}function ch(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:oh,lastRenderedState:t},l.queue=r,l=Nh.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=fy.bind(null,ye,o,h,l),o.dispatch=l,r.memoizedState=e,[t,l,!1]}function fh(e){var t=Pe();return hh(t,He,e)}function hh(e,t,l){if(t=ys(e,t,oh)[0],e=pr(zn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ii(t)}catch(y){throw y===Wl?ar:y}else r=t;t=Pe();var o=t.queue,h=o.dispatch;return l!==t.memoizedState&&(ye.flags|=2048,li(9,{destroy:void 0},hy.bind(null,o,l),null)),[r,h,e]}function hy(e,t){e.action=t}function dh(e){var t=Pe(),l=He;if(l!==null)return hh(t,l,e);Pe(),t=t.memoizedState,l=Pe();var r=l.queue.dispatch;return l.memoizedState=e,[t,r,!1]}function li(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 mh(){return Pe().memoizedState}function gr(e,t,l,r){var o=bt();ye.flags|=e,o.memoizedState=li(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=li(t,h,l,r):(ye.flags|=e,o.memoizedState=li(1|t,h,l,r))}function ph(e,t){gr(8390656,8,e,t)}function Ss(e,t){yr(2048,8,e,t)}function dy(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 gh(e){var t=Pe().memoizedState;return dy({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function yh(e,t){return yr(4,2,e,t)}function xh(e,t){return yr(4,4,e,t)}function bh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vh(e,t,l){l=l!=null?l.concat([e]):null,yr(4,4,bh.bind(null,t,e),l)}function zs(){}function Sh(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 zh(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(),Sl){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=kd(),ye.lanes|=e,Fn|=e,l)}function kh(e,t,l,r){return jt(l,t)?l:ei.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=kd(),ye.lanes|=e,Fn|=e,t)}function Eh(e,t,l,r,o){var h=K.p;K.p=h!==0&&8>h?h:8;var y=L.T,z={};L.T=z,ws(e,!1,t,l);try{var C=o(),O=L.S;if(O!==null&&O(z,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var V=sy(C,r);$i(e,t,V,Ut(e))}else $i(e,t,r,Ut(e))}catch(Z){$i(e,t,{then:function(){},status:"rejected",reason:Z},Ut())}finally{K.p=h,y!==null&&z.types!==null&&(y.types=z.types),L.T=y}}function my(){}function Es(e,t,l,r){if(e.tag!==5)throw Error(u(476));var o=Ch(e).queue;Eh(e,o,t,re,l===null?my:function(){return wh(e),l(r)})}function Ch(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:re},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 wh(e){var t=Ch(e);t.next===null&&(t=e.alternate.memoizedState),$i(e,t.next.queue,{},Ut())}function Cs(){return ft(ma)}function Th(){return Pe().memoizedState}function Ah(){return Pe().memoizedState}function py(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),Zi(r,t,l)),t={cache:es()},e.payload=t;return}t=t.return}}function gy(e,t,l){var r=Ut();l={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},xr(e)?_h(t,l):(l=Gu(e,t,l,r),l!==null&&(At(l,e,r),Mh(l,t,r)))}function Nh(e,t,l){var r=Ut();$i(e,t,l,r)}function $i(e,t,l,r){var o={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(xr(e))_h(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),Mh(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 _h(e,t){ti=fr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Mh(e,t,l){if((l&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,Rc(e,l)}}var Wi={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};Wi.useEffectEvent=Ie;var jh={readContext:ft,use:mr,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:ph,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,gr(4194308,4,bh.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(Sl){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(Sl){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=gy.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=Nh.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=Eh.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||Pf(r,t,l)}o.memoizedState=l;var h={value:l,getSnapshot:t};return o.queue=h,ph(th.bind(null,r,h,e),[e]),r.flags|=2048,li(9,{destroy:void 0},eh.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=oy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Cs,useFormState:ch,useActionState:ch,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=py.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:Sh,useContext:ft,useEffect:Ss,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:zh,useReducer:pr,useRef:mh,useState:function(){return pr(zn)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Pe();return kh(l,He.memoizedState,e,t)},useTransition:function(){var e=pr(zn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ii(e),t]},useSyncExternalStore:Wf,useId:Th,useHostTransitionStatus:Cs,useFormState:fh,useActionState:fh,useOptimistic:function(e,t){var l=Pe();return ih(l,He,e,t)},useMemoCache:gs,useCacheRefresh:Ah};Ts.useEffectEvent=gh;var Oh={readContext:ft,use:mr,useCallback:Sh,useContext:ft,useEffect:Ss,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:zh,useReducer:xs,useRef:mh,useState:function(){return xs(zn)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Pe();return He===null?ks(l,e,t):kh(l,He.memoizedState,e,t)},useTransition:function(){var e=xs(zn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ii(e),t]},useSyncExternalStore:Wf,useId:Th,useHostTransitionStatus:Cs,useFormState:dh,useActionState:dh,useOptimistic:function(e,t){var l=Pe();return He!==null?ih(l,He,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:gs,useCacheRefresh:Ah};Oh.useEffectEvent=gh;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),Zi(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),Zi(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),Zi(t,e,l))}};function Dh(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?!Ui(l,r)||!Ui(o,h):!0}function Rh(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 zl(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 Lh(e){Ia(e)}function Bh(e){console.error(e)}function Uh(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 Hh(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 qh(e){return e=Yn(e),e.tag=3,e}function Yh(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(){Hh(t,l,r)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Hh(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 yy(e,t,l,r,o){if(l.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=l.alternate,t!==null&&Jl(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}),Yi(Qt(e,l)))):(r!==Ju&&(t=Error(u(423),{cause:r}),Yi(Qt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Qt(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=Qt(h,l),ra===null?ra=[h]:ra.push(h),$e!==4&&($e=2),t===null)return!0;r=Qt(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=qh(o),Yh(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):vl(t,e.child,l,r)}function Vh(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 gl(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 Gh(e,t,l,r,o){if(e===null){var h=l.type;return typeof h=="function"&&!Xu(h)&&h.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=h,Xh(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:Ui,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 Xh(e,t,l,r,o){if(e!==null){var h=e.memoizedProps;if(Ui(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 Zh(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?Kf(t,h):ss(),Jf(t);else return r=t.lanes=536870912,Zh(e,t,h!==null?h.baseLanes|l:l,l,r)}else h!==null?(ir(t,h.cachePool),Kf(t,h),Xn(),t.memoizedState=null):(e!==null&&ir(t,null),ss(),Xn());return ht(e,t,o,l),t.child}function Pi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Zh(e,t,l,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(),Jf(t),e!==null&&Jl(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 Fh(e,t,l){return vl(t,e.child,null,l),e=vr(t,t.pendingProps),e.flags|=2,Rt(t),t.memoizedState=null,e}function xy(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,Pi(null,e);if(cs(t),(e=Ze)?(e=am(e,Kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=_f(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=Fh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||Jl(e,t,l,!1),o=(l&e.childLanes)!==0,nt||o){if(r=Ge,r!==null&&(y=Lc(r,l),y!==0&&y!==h.retryLane))throw h.retryLane=y,hl(e,y),At(r,e,y),Ms;Mr(),t=Fh(e,t,l)}else e=h.treeContext,Ze=It(y.nextSibling),ct=t,Ne=!0,Bn=null,Kt=!1,e!==null&&Of(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 gl(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 Kh(e,t,l,r,o,h){return gl(t),t.updateQueue=null,l=$f(t,r,l,o),If(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 Jh(e,t,l,r,o){if(gl(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),Ki(t,r,h,o),Fi(),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=zl(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)&&Rh(t,h,r,y),qn=!1;var R=t.memoizedState;h.state=R,Ki(t,r,h,o),Fi(),O=t.memoizedState,z||R!==O||qn?(typeof Z=="function"&&(As(t,l,Z,r),O=t.memoizedState),(C=qn||Dh(t,l,C,r,R,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=zl(l,y),h.props=V,Z=t.pendingProps,R=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||R!==C)&&Rh(t,h,r,C),qn=!1,R=t.memoizedState,h.state=R,Ki(t,r,h,o),Fi();var q=t.memoizedState;y!==Z||R!==q||qn||e!==null&&e.dependencies!==null&&nr(e.dependencies)?(typeof z=="function"&&(As(t,l,z,r),q=t.memoizedState),(V=qn||Dh(t,l,V,r,R,q,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,q,C),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(r,q,C)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=q),h.props=r,h.state=q,h.context=C,r=V):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===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=vl(t,e.child,null,o),t.child=vl(t,null,l,o)):ht(e,t,l,o),t.memoizedState=h.state,e=t.child):e=kn(e,t,o),e}function Ih(e,t,l,r){return ml(),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:Hf()}}function Rs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Bt),e}function $h(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):Xn(),(e=Ze)?(e=am(e,Kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:an,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=_f(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?(Xn(),o=t.mode,z=zr({mode:"hidden",children:z},o),r=dl(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,Pi(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?(Xn(),t.child=e.child,t.flags|=128,t=null):(Xn(),z=r.fallback,o=t.mode,r=zr({mode:"visible",children:r.children},o),z=dl(z,o,l,null),z.flags|=2,r.return=t,z.return=t,r.sibling=z,t.child=r,vl(t,e.child,null,l),r=t.child,r.memoizedState=Ds(l),r.childLanes=Rs(e,y,l),t.memoizedState=Os,t=Pi(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,Yi({value:r,source:null,stack:null}),t=Bs(e,t,l)}else if(nt||Jl(e,t,l,!1),y=(l&e.childLanes)!==0,nt||y){if(y=Ge,y!==null&&(r=Lc(y,l),r!==0&&r!==C.retryLane))throw C.retryLane=r,hl(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&&Of(t,e),t=Ls(t,r.children),t.flags|=4096);return t}return o?(Xn(),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=dl(z,o,l,null),z.flags|=2),z.return=t,r.return=t,r.sibling=z,t.child=r,Pi(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=Hf(),z={baseLanes:z.baseLanes|l,cachePool:o}),r.memoizedState=z,r.childLanes=Rs(e,y,l),t.memoizedState=Os,Pi(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 vl(t,e.child,null,l),e=Ls(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wh(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 Ph(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?qi:0,!z&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wh(e,l,t);else if(e.tag===19)Wh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&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(Jl(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 by(e,t,l){switch(t.tag){case 3:Ke(t,t.stateNode.containerInfo),Hn(t,et,e.memoizedState.cache),ml();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?$h(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||(Jl(e,t,l,!1),r=(l&t.childLanes)!==0),o){if(r)return Ph(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(We,We.current),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 ed(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,by(e,t,l);nt=(e.flags&131072)!==0}else nt=!1,Ne&&(t.flags&1048576)!==0&&jf(t,qi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=xl(t.elementType),t.type=e,typeof e=="function")Xu(e)?(r=zl(e,r),t.tag=1,t=Jh(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===I){t.tag=11,t=Vh(null,t,e,r,l);break e}else if(o===$){t.tag=14,t=Gh(null,t,e,r,l);break e}}throw t=ie(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=zl(r,t.pendingProps),Jh(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),Ki(t,r,null,l);var y=t.memoizedState;if(r=y.cache,Hn(t,et,r),r!==h.cache&&Pu(t,[et],l,!0),Fi(),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=Ih(e,t,r,l);break e}else if(r!==o){o=Qt(Error(u(424)),t),Yi(o),t=Ih(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(ml(),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=fm(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ne||(l=t.type,e=t.pendingProps,r=Ur(oe.current).createElement(l),r[ot]=t,r[zt]=e,dt(r,l,e),ut(r),t.stateNode=r):t.memoizedState=fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Yt(t),e===null&&Ne&&(r=t.stateNode=sm(t.type,t.pendingProps,oe.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=Jy(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,cy,null,null,l),ma._currentValue=o),Sr(e,t),ht(e,t,r,l),t.child;case 6:return e===null&&Ne&&((e=l=Ze)&&(l=Iy(l,t.pendingProps,Kt),l!==null?(t.stateNode=l,ct=t,Ze=null,e=!0):e=!1),e||Un(t)),null;case 13:return $h(e,t,l);case 4:return Ke(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vl(t,null,r,l):ht(e,t,r,l),t.child;case 11:return Vh(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,gl(t),o=ft(o),r=r(o),t.flags|=1,ht(e,t,r,l),t.child;case 14:return Gh(e,t,t.type,t.pendingProps,l);case 15:return Xh(e,t,t.type,t.pendingProps,l);case 19:return Ph(e,t,l);case 31:return xy(e,t,l);case 22:return Qh(e,t,l,t.pendingProps);case 24:return gl(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),Ki(t,null,null,l),Fi()),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(Td())e.flags|=8192;else throw bl=rr,ls}else e.flags&=-16777217}function td(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!gm(t))if(Td())e.flags|=8192;else throw bl=rr,ls}function kr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Oc():536870912,e.lanes|=t,ui|=t)}function ea(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 vy(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)&&(Kl(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),td(t,h)):(Fe(t),qs(t,o,null,r,l))):h?h!==e.memoizedState?(En(t),Fe(t),td(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=oe.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,Kl(t)?Df(t):(e=sm(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,Kl(t))Df(t);else{var y=Ur(oe.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=oe.current,Kl(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||$d(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=Kl(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 ml(),(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=Kl(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 ml(),(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)ea(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,ea(r,!1),e=h.updateQueue,t.updateQueue=e,kr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Nf(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,ea(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),ea(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,ea(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(yl),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 Sy(e,t){switch(Ku(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn(et),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fn(t),null;case 31:if(t.memoizedState!==null){if(Rt(t),t.alternate===null)throw Error(u(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Rt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return 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(yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vn(et),null;case 25:return null;default:return null}}function nd(e,t){switch(Ku(t),t.tag){case 3:vn(et),Ue();break;case 26:case 27:case 5:fn(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19:G(We);break;case 10:vn(t.type);break;case 22:case 23:Rt(t),os(),e!==null&&G(yl);break;case 24:vn(et)}}function ta(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 Qn(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 ld(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ff(t,l)}catch(r){Be(e,e.return,r)}}}function id(e,t,l){l.props=zl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(r){Be(e,t,r)}}function na(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 ad(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;Gy(r,e.type,l,t),r[zt]=t}catch(o){Be(e,e.return,o)}}function rd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wn(e.type)||e.tag===4}function Vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Wn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function 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 ud(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,Xs=!1,sd=typeof WeakSet=="function"?WeakSet:Set,st=null;function zy(e,t){if(e=e.containerInfo,fo=Qr,e=vf(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,R=null;t:for(;;){for(var q;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),(q=Z.firstChild)!==null;)R=Z,Z=q;for(;;){if(Z===e)break t;if(R===l&&++O===o&&(z=y),R===h&&++V===r&&(C=y),(q=Z.nextSibling)!==null)break;Z=R,R=Z.parentNode}Z=q}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},Qr=!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=zl(l.type,o);e=r.getSnapshotBeforeUpdate(le,h),r.__reactInternalSnapshotBeforeUpdate=e}catch(de){Be(l,l.return,de)}}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 od(e,t,l){var r=l.flags;switch(l.tag){case 0:case 11:case 15:Tn(e,l),r&4&&ta(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=zl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Be(l,l.return,y)}}r&64&&ld(l),r&512&&na(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{Ff(e,t)}catch(y){Be(l,l.return,y)}}break;case 27:t===null&&r&4&&ud(l);case 26:case 5:Tn(e,l),t===null&&r&4&&ad(l),r&512&&na(l,l.return);break;case 12:Tn(e,l);break;case 31:Tn(e,l),r&4&&hd(e,l);break;case 13:Tn(e,l),r&4&&dd(e,l),r&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=My.bind(null,l),$y(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 cd(e){var t=e.alternate;t!==null&&(e.alternate=null,cd(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;)fd(e,t,l),l=l.sibling}function fd(e,t,l){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(xt,l)}catch{}switch(l.tag){case 26:lt||un(l,t),wn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||un(l,t);var r=Je,o=Et;Wn(l.type)&&(Je=l.stateNode,Et=!1),wn(e,t,l),fa(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,lm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),pi(e)):lm(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:Qn(2,l,t),lt||Qn(4,l,t),wn(e,t,l);break;case 1:lt||(un(l,t),r=l.stateNode,typeof r.componentWillUnmount=="function"&&id(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 hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pi(e)}catch(l){Be(t,t.return,l)}}}function dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pi(e)}catch(l){Be(t,t.return,l)}}function ky(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sd),t;default:throw Error(u(435,e.tag))}}function Cr(e,t){var l=ky(e);t.forEach(function(r){if(!l.has(r)){l.add(r);var o=jy.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));fd(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;)md(t,e),t=t.sibling}var tn=null;function md(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&&(Qn(3,e,e.return),ta(3,e),Qn(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[Ni]||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=mm("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=mm("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 pm(o,e.type,e.stateNode);else e.stateNode=dm(o,r,e.memoizedProps);else h!==r?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,r===null?pm(o,e.type,e.stateNode):dm(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{Ul(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&&(Xs=!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{pi(t.containerInfo)}catch(le){Be(e,e.return,le)}Xs&&(Xs=!1,pd(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||kl(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,R=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;z.style.display=R==null||typeof R=="boolean"?"":(""+R).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 q=C.stateNode;o?im(q,!0):im(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(rd(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&&(Ul(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 pd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;pd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)od(e,t.alternate,t),t=t.sibling}function kl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qn(4,t,t.return),kl(t);break;case 1:un(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&id(t,t.return,l),kl(t);break;case 27:fa(t.stateNode);case 26:case 5:un(t,t.return),kl(t);break;case 22:t.memoizedState===null&&kl(t);break;case 30:kl(t);break;default:kl(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),ta(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++)Zf(C[o],z)}catch(O){Be(r,r.return,O)}}l&&y&64&&ld(h),na(h,h.return);break;case 27:ud(h);case 26:case 5:An(o,h,l),l&&r===null&&y&4&&ad(h),na(h,h.return);break;case 12:An(o,h,l);break;case 31:An(o,h,l),l&&y&4&&hd(o,h);break;case 13:An(o,h,l),l&&y&4&&dd(o,h);break;case 22:h.memoizedState===null&&An(o,h,l),na(h,h.return);break;case 30:break;default:An(o,h,l)}t=t.sibling}}function Qs(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&&Vi(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&&Vi(e))}function nn(e,t,l,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gd(e,t,l,r),t=t.sibling}function gd(e,t,l,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:nn(e,t,l,r),o&2048&&ta(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&&Vi(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):la(e,t):h._visibility&2?nn(e,t,l,r):(h._visibility|=2,ii(e,t,l,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Qs(y,t);break;case 24:nn(e,t,l,r),o&2048&&Zs(t.alternate,t);break;default:nn(e,t,l,r)}}function ii(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:ii(h,y,z,C,o),ta(8,y);break;case 23:break;case 22:var V=y.stateNode;y.memoizedState!==null?V._visibility&2?ii(h,y,z,C,o):la(h,y):(V._visibility|=2,ii(h,y,z,C,o)),o&&O&2048&&Qs(y.alternate,y);break;case 24:ii(h,y,z,C,o),o&&O&2048&&Zs(y.alternate,y);break;default:ii(h,y,z,C,o)}t=t.sibling}}function la(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:la(l,r),o&2048&&Qs(r.alternate,r);break;case 24:la(l,r),o&2048&&Zs(r.alternate,r);break;default:la(l,r)}t=t.sibling}}var ia=8192;function ai(e,t,l){if(e.subtreeFlags&ia)for(e=e.child;e!==null;)yd(e,t,l),e=e.sibling}function yd(e,t,l){switch(e.tag){case 26:ai(e,t,l),e.flags&ia&&e.memoizedState!==null&&o1(l,tn,e.memoizedState,e.memoizedProps);break;case 5:ai(e,t,l);break;case 3:case 4:var r=tn;tn=Hr(e.stateNode.containerInfo),ai(e,t,l),tn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=ia,ia=16777216,ai(e,t,l),ia=r):ai(e,t,l));break;default:ai(e,t,l)}}function xd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function aa(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,vd(r,e)}xd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bd(e),e=e.sibling}function bd(e){switch(e.tag){case 0:case 11:case 15:aa(e),e.flags&2048&&Qn(9,e,e.return);break;case 3:aa(e);break;case 12:aa(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)):aa(e);break;default:aa(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,vd(r,e)}xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),wr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,wr(t));break;default:wr(t)}e=e.sibling}}function vd(e,t){for(;st!==null;){var l=st;switch(l.tag){case 0:case 11:case 15:Qn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var r=l.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Vi(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(cd(r),r===l){st=null;break e}if(o!==null){o.return=h,st=o;break e}st=h}}}var Ey={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}},Cy=typeof WeakMap=="function"?WeakMap:Map,De=0,Ge=null,ke=null,Te=0,Le=0,Lt=null,Zn=!1,ri=!1,Fs=!1,Nn=0,$e=0,Fn=0,El=0,Ks=0,Bt=0,ui=0,ra=null,Tt=null,Js=!1,Tr=0,Sd=0,Ar=1/0,Nr=null,Kn=null,rt=0,Jn=null,si=null,_n=0,Is=0,$s=null,zd=null,ua=0,Ws=null;function Ut(){return(De&2)!==0&&Te!==0?Te&-Te:L.T!==null?io():Bc()}function kd(){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)&&(oi(e,0),In(e,Te,Bt,!1)),Ai(e,l),((De&2)===0||e!==Ge)&&(e===Ge&&((De&2)===0&&(El|=l),$e===4&&In(e,Te,Bt,!1)),sn(e))}function Ed(e,t,l){if((De&6)!==0)throw Error(u(327));var r=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ti(e,t),o=r?Ay(e,t):eo(e,t,!0),h=r;do{if(o===0){ri&&!r&&In(e,t,0,!1);break}else{if(l=e.current.alternate,h&&!wy(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=ra;var C=z.current.memoizedState.isDehydrated;if(C&&(oi(z,y).flags|=256),y=eo(z,y,!1),y!==2){if(Fs&&!C){z.errorRecoveryDisabledLanes|=h,El|=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){oi(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=tm(Cd.bind(null,r,l,Tt,Nr,Js,t,Bt,El,ui,Zn,h,"Throttled",-0,0),o);break e}Cd(r,l,Tt,Nr,Js,t,Bt,El,ui,Zn,h,null,-0,0)}}break}while(!0);sn(e)}function Cd(e,t,l,r,o,h,y,z,C,O,V,Z,R,q){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},yd(t,h,Z);var le=(h&62914560)===h?Tr-yt():(h&4194048)===h?Sd-yt():0;if(le=c1(Z,le),le!==null){_n=h,e.cancelPendingCommit=le(Od.bind(null,e,t,h,l,r,o,y,z,C,V,Z,null,R,q)),In(e,h,y,!O);return}}Od(e,t,h,l,r,o,y,z,C)}function wy(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&=~El,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&&Dc(e,l,t)}function _r(){return(De&6)===0?(sa(0),!1):!0}function Ps(){if(ke!==null){if(Le===0)var e=ke.return;else e=ke,bn=pl=null,ps(e),Pl=null,Xi=0,e=ke;for(;e!==null;)nd(e.alternate,e),e=e.return;ke=null}}function oi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Zy(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,ri=Ti(e,t),Fs=!1,ui=Bt=Ks=El=Fn=$e=0,Tt=ra=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 wd(e,t){ye=null,L.H=Wi,t===Wl||t===ar?(t=Vf(),Le=3):t===ls?(t=Vf(),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,Qt(t,e.current)))}function Td(){var e=Dt.current;return e===null?!0:(Te&4194048)===Te?Jt===null:(Te&62914560)===Te||(Te&536870912)!==0?e===Jt:!1}function Ad(){var e=L.H;return L.H=Wi,e===null?Wi:e}function Nd(){var e=L.A;return L.A=Ey,e}function Mr(){$e=4,Zn||(Te&4194048)!==Te&&Dt.current!==null||(ri=!0),(Fn&134217727)===0&&(El&134217727)===0||Ge===null||In(Ge,Te,Bt,!1)}function eo(e,t,l){var r=De;De|=2;var o=Ad(),h=Nd();(Ge!==e||Te!==t)&&(Nr=null,oi(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,ci(e,z,C,O),l&&ri){y=0;break e}break;default:O=Le,Le=0,Lt=null,ci(e,z,C,O)}}Ty(),y=$e;break}catch(V){wd(e,V)}while(!0);return t&&e.shellSuspendCounter++,bn=pl=null,De=r,L.H=o,L.A=h,ke===null&&(Ge=null,Te=0,$a()),y}function Ty(){for(;ke!==null;)_d(ke)}function Ay(e,t){var l=De;De|=2;var r=Ad(),o=Nd();Ge!==e||Te!==t?(Nr=null,Ar=yt()+500,oi(e,t)):ri=Ti(e,t);e:do try{if(Le!==0&&ke!==null){t=ke;var h=Lt;t:switch(Le){case 1:Le=0,Lt=null,ci(e,t,h,1);break;case 2:case 9:if(qf(h)){Le=0,Lt=null,Md(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:qf(h)?(Le=0,Lt=null,Md(t)):(Le=0,Lt=null,ci(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?gm(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,ci(e,t,h,5);break;case 6:Le=0,Lt=null,ci(e,t,h,6);break;case 8:Ps(),$e=6;break e;default:throw Error(u(462))}}Ny();break}catch(V){wd(e,V)}while(!0);return bn=pl=null,L.H=r,L.A=o,De=l,ke!==null?0:(Ge=null,Te=0,$a(),$e)}function Ny(){for(;ke!==null&&!du();)_d(ke)}function _d(e){var t=ed(e.alternate,e,Nn);e.memoizedProps=e.pendingProps,t===null?jr(e):ke=t}function Md(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Kh(l,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=Kh(l,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:ps(t);default:nd(l,t),t=ke=Nf(t,Nn),t=ed(l,t,Nn)}e.memoizedProps=e.pendingProps,t===null?jr(e):ke=t}function ci(e,t,l,r){bn=pl=null,ps(t),Pl=null,Xi=0;var o=t.return;try{if(yy(e,o,t,l,Te)){$e=1,br(e,Qt(l,e.current)),ke=null;return}}catch(h){if(o!==null)throw ke=o,h;$e=1,br(e,Qt(l,e.current)),ke=null;return}t.flags&32768?(Ne||r===1?e=!0:ri||(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))),jd(t,e)):jr(t)}function jr(e){var t=e;do{if((t.flags&32768)!==0){jd(t,Zn);return}e=t.return;var l=vy(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 jd(e,t){do{var l=Sy(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 Od(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,sg(e,l,h,y,z,C),e===Ge&&(ke=Ge=null,Te=0),si=t,Jn=e,_n=l,Is=h,$s=o,zd=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Oy(pe,function(){return Ud(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=L.T,L.T=null,o=K.p,K.p=2,y=De,De|=4;try{zy(e,t,l)}finally{De=y,K.p=o,L.T=r}}rt=1,Dd(),Rd(),Ld()}}function Dd(){if(rt===1){rt=0;var e=Jn,t=si,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var r=K.p;K.p=2;var o=De;De|=4;try{md(t,e);var h=ho,y=vf(e.containerInfo),z=h.focusedElem,C=h.selectionRange;if(y!==z&&z&&z.ownerDocument&&bf(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,R=Z&&Z.defaultView||window;if(R.getSelection){var q=R.getSelection(),le=z.textContent.length,de=Math.min(C.start,le),Ye=C.end===void 0?de:Math.min(C.end,le);!q.extend&&de>Ye&&(y=Ye,Ye=de,de=y);var N=xf(z,de),A=xf(z,Ye);if(N&&A&&(q.rangeCount!==1||q.anchorNode!==N.node||q.anchorOffset!==N.offset||q.focusNode!==A.node||q.focusOffset!==A.offset)){var j=Z.createRange();j.setStart(N.node,N.offset),q.removeAllRanges(),de>Ye?(q.addRange(j),q.extend(A.node,A.offset)):(j.setEnd(A.node,A.offset),q.addRange(j))}}}}for(Z=[],q=z;q=q.parentNode;)q.nodeType===1&&Z.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<Z.length;z++){var Q=Z[z];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Qr=!!fo,ho=fo=null}finally{De=o,K.p=r,L.T=l}}e.current=t,rt=2}}function Rd(){if(rt===2){rt=0;var e=Jn,t=si,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var r=K.p;K.p=2;var o=De;De|=4;try{od(e,t.alternate,t)}finally{De=o,K.p=r,L.T=l}}rt=3}}function Ld(){if(rt===4||rt===3){rt=0,mu();var e=Jn,t=si,l=_n,r=zd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,si=Jn=null,Bd(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=L.T,o=K.p,K.p=2,L.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{L.T=t,K.p=o}}(_n&3)!==0&&Or(),sn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===Ws?ua++:(ua=0,Ws=e):ua=0,sa(0)}}function Bd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Vi(t)))}function Or(){return Dd(),Rd(),Ld(),Ud()}function Ud(){if(rt!==5)return!1;var e=Jn,t=Is;Is=0;var l=xu(_n),r=L.T,o=K.p;try{K.p=32>l?32:l,L.T=null,l=$s,$s=null;var h=Jn,y=_n;if(rt=0,si=Jn=null,_n=0,(De&6)!==0)throw Error(u(331));var z=De;if(De|=4,bd(h.current),gd(h,h.current,y,l),De=z,sa(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(xt,h)}catch{}return!0}finally{K.p=o,L.T=r,Bd(e,t)}}function Hd(e,t,l){t=Qt(l,t),t=_s(e.stateNode,t,2),e=Vn(e,t,2),e!==null&&(Ai(e,2),sn(e))}function Be(e,t,l){if(e.tag===3)Hd(e,e,l);else for(;t!==null;){if(t.tag===3){Hd(t,e,l);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Kn===null||!Kn.has(r))){e=Qt(l,e),l=qh(2),r=Vn(t,l,2),r!==null&&(Yh(l,r,t,e),Ai(r,2),sn(r));break}}t=t.return}}function to(e,t,l){var r=e.pingCache;if(r===null){r=e.pingCache=new Cy;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=_y.bind(null,e,t,l),t.then(e,e))}function _y(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&&oi(e,0):Ks|=l,ui===Te&&(ui=0)),sn(e)}function qd(e,t){t===0&&(t=Oc()),e=hl(e,t),e!==null&&(Ai(e,t),sn(e))}function My(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),qd(e,l)}function jy(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),qd(e,l)}function Oy(e,t){return Ml(e,t)}var Dr=null,fi=null,no=!1,Rr=!1,lo=!1,$n=0;function sn(e){e!==fi&&e.next===null&&(fi===null?Dr=fi=e:fi=fi.next=e),Rr=!0,no||(no=!0,Ry())}function sa(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,Xd(r,h))}else h=Te,h=Ha(r,r===Ge?h:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(h&3)===0||Ti(r,h)||(l=!0,Xd(r,h));r=r.next}while(l);lo=!1}}function Dy(){Yd()}function Yd(){Rr=no=!1;var e=0;$n!==0&&Qy()&&(e=$n);for(var t=yt(),l=null,r=Dr;r!==null;){var o=r.next,h=Vd(r,t);h===0?(r.next=null,l===null?Dr=o:l.next=o,o===null&&(fi=l)):(l=r,(e!==0||(h&3)!==0)&&(Rr=!0)),r=o}rt!==0&&rt!==5||sa(e),$n!==0&&($n=0)}function Vd(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]=ug(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&&wi(r),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ti(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(r!==null&&wi(r),xu(l)){case 2:case 8:l=P;break;case 32:l=pe;break;case 268435456:l=Re;break;default:l=pe}return r=Gd.bind(null,e),l=Ml(l,r),e.callbackPriority=t,e.callbackNode=l,t}return r!==null&&r!==null&&wi(r),e.callbackPriority=2,e.callbackNode=null,2}function Gd(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:(Ed(e,r,t),Vd(e,yt()),e.callbackNode!=null&&e.callbackNode===l?Gd.bind(null,e):null)}function Xd(e,t){if(Or())return null;Ed(e,t,!0)}function Ry(){Fy(function(){(De&6)!==0?Ml(X,Dy):Yd()})}function io(){if($n===0){var e=Il;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 Zd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Ly(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?Zd(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?Zd(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],By=ro.toLowerCase(),Uy=ro[0].toUpperCase()+ro.slice(1);en(By,"on"+Uy)}en(kf,"onAnimationEnd"),en(Ef,"onAnimationIteration"),en(Cf,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(ey,"onTransitionRun"),en(ty,"onTransitionStart"),en(ny,"onTransitionCancel"),en(wf,"onTransitionEnd"),Ll("onMouseEnter",["mouseout","mouseover"]),Ll("onMouseLeave",["mouseout","mouseover"]),Ll("onPointerEnter",["pointerout","pointerover"]),Ll("onPointerLeave",["pointerout","pointerover"]),sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sl("onBeforeInput",["compositionend","keypress","textInput","paste"]),sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Hy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oa));function Fd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var 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)||(Kd(t,e,2,!1),l.add(r))}function uo(e,t,l){var r=0;t&&(r|=4),Kd(l,e,r,t)}var Lr="_reactListening"+Math.random().toString(36).slice(2);function so(e){if(!e[Lr]){e[Lr]=!0,qc.forEach(function(l){l!=="selectionchange"&&(Hy.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 Kd(e,t,l,r){switch(km(t)){case 2:var o=d1;break;case 8:o=m1;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=Ol(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}Wc(function(){var O=h,V=wu(l),Z=[];e:{var R=Tf.get(e);if(R!==void 0){var q=Fa,le=e;switch(e){case"keypress":if(Qa(l)===0)break e;case"keydown":case"keyup":q=jg;break;case"focusin":le="focus",q=ju;break;case"focusout":le="blur",q=ju;break;case"beforeblur":case"afterblur":q=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":q=tf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=vg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Rg;break;case kf:case Ef:case Cf:q=kg;break;case wf:q=Bg;break;case"scroll":case"scrollend":q=xg;break;case"wheel":q=Hg;break;case"copy":case"cut":case"paste":q=Cg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=lf;break;case"toggle":case"beforetoggle":q=Yg}var de=(t&4)!==0,Ye=!de&&(e==="scroll"||e==="scrollend"),N=de?R!==null?R+"Capture":null:R;de=[];for(var A=O,j;A!==null;){var Q=A;if(j=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||j===null||N===null||(Q=Mi(A,N),Q!=null&&de.push(ca(A,Q,j))),Ye)break;A=A.return}0<de.length&&(R=new q(R,le,null,l,V),Z.push({event:R,listeners:de}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",R&&l!==Cu&&(le=l.relatedTarget||l.fromElement)&&(Ol(le)||le[jl]))break e;if((q||R)&&(R=V.window===V?V:(R=V.ownerDocument)?R.defaultView||R.parentWindow:window,q?(le=l.relatedTarget||l.toElement,q=O,le=le?Ol(le):null,le!==null&&(Ye=c(le),de=le.tag,le!==Ye||de!==5&&de!==27&&de!==6)&&(le=null)):(q=null,le=O),q!==le)){if(de=tf,Q="onMouseLeave",N="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(de=lf,Q="onPointerLeave",N="onPointerEnter",A="pointer"),Ye=q==null?R:_i(q),j=le==null?R:_i(le),R=new de(Q,A+"leave",q,l,V),R.target=Ye,R.relatedTarget=j,Q=null,Ol(V)===O&&(de=new de(N,A+"enter",le,l,V),de.target=j,de.relatedTarget=Ye,Q=de),Ye=Q,q&&le)t:{for(de=qy,N=q,A=le,j=0,Q=N;Q;Q=de(Q))j++;Q=0;for(var ce=A;ce;ce=de(ce))Q++;for(;0<j-Q;)N=de(N),j--;for(;0<Q-j;)A=de(A),Q--;for(;j--;){if(N===A||A!==null&&N===A.alternate){de=N;break t}N=de(N),A=de(A)}de=null}else de=null;q!==null&&Jd(Z,R,q,de,!1),le!==null&&Ye!==null&&Jd(Z,Ye,le,de,!0)}}e:{if(R=O?_i(O):window,q=R.nodeName&&R.nodeName.toLowerCase(),q==="select"||q==="input"&&R.type==="file")var je=hf;else if(cf(R))if(df)je=$g;else{je=Jg;var ae=Kg}else q=R.nodeName,!q||q.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?O&&Eu(O.elementType)&&(je=hf):je=Ig;if(je&&(je=je(e,O))){ff(Z,je,l,V);break e}ae&&ae(e,R,O),e==="focusout"&&O&&R.type==="number"&&O.memoizedProps.value!=null&&ku(R,"number",R.value)}switch(ae=O?_i(O):window,e){case"focusin":(cf(ae)||ae.contentEditable==="true")&&(Vl=ae,Uu=O,Hi=null);break;case"focusout":Hi=Uu=Vl=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,Sf(Z,l,V);break;case"selectionchange":if(Pg)break;case"keydown":case"keyup":Sf(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 Yl?sf(e,l)&&(Ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ae="onCompositionStart");Ae&&(af&&l.locale!=="ko"&&(Yl||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Yl&&(xe=Pc()):(Rn=V,Nu="value"in Rn?Rn.value:Rn.textContent,Yl=!0)),ae=Br(O,Ae),0<ae.length&&(Ae=new nf(Ae,e,null,l,V),Z.push({event:Ae,listeners:ae}),xe?Ae.data=xe:(xe=of(l),xe!==null&&(Ae.data=xe)))),(xe=Gg?Xg(e,l):Qg(e,l))&&(Ae=Br(O,"onBeforeInput"),0<Ae.length&&(ae=new nf("onBeforeInput","beforeinput",null,l,V),Z.push({event:ae,listeners:Ae}),ae.data=xe)),Ly(Z,e,O,l,V)}Fd(Z,t)})}function ca(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=Mi(e,l),o!=null&&r.unshift(ca(e,o,h)),o=Mi(e,t),o!=null&&r.push(ca(e,o,h))),e.tag===3)return r;e=e.return}return[]}function qy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jd(e,t,l,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=Mi(l,h),O!=null&&y.unshift(ca(l,O,C))):o||(O=Mi(l,h),O!=null&&y.push(ca(l,O,C)))),l=l.return}y.length!==0&&e.push({event:t,listeners:y})}var Yy=/\r\n?/g,Vy=/\u0000|\uFFFD/g;function Id(e){return(typeof e=="string"?e:""+e).replace(Yy,`
|
|
49
|
+
`).replace(Vy,"")}function $d(e,t){return t=Id(t),Id(e)===t}function qe(e,t,l,r,o,h){switch(l){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ul(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ul(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":Ic(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=gg.get(l)||l,qa(e,l,r))}}function co(e,t,l,r,o,h){switch(l){case"style":Ic(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"?Ul(e,r):(typeof r=="number"||typeof r=="bigint")&&Ul(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(!Yc.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)}}Zc(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?Bl(e,!!r,t,!1):l!=null&&Bl(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)}Kc(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<oa.length;r++)Ee(oa[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 Gy(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(q in l){var Z=l[q];if(l.hasOwnProperty(q)&&Z!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":C=Z;default:r.hasOwnProperty(q)||qe(e,t,q,null,r,Z)}}for(var R in r){var q=r[R];if(Z=l[R],r.hasOwnProperty(R)&&(q!=null||Z!=null))switch(R){case"type":h=q;break;case"name":o=q;break;case"checked":O=q;break;case"defaultChecked":V=q;break;case"value":y=q;break;case"defaultValue":z=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:q!==Z&&qe(e,t,R,q,r,Z)}}zu(e,y,z,C,O,V,h,o);return;case"select":q=y=z=R=null;for(h in l)if(C=l[h],l.hasOwnProperty(h)&&C!=null)switch(h){case"value":break;case"multiple":q=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":R=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=q,R!=null?Bl(e,!!l,R,!1):!!r!=!!l&&(t!=null?Bl(e,!!l,t,!0):Bl(e,!!l,l?[]:"",!1));return;case"textarea":q=R=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":R=o;break;case"defaultValue":q=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)}Fc(e,R,q);return;case"option":for(var le in l)if(R=l[le],l.hasOwnProperty(le)&&R!=null&&!r.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:qe(e,t,le,null,r,R)}for(C in r)if(R=r[C],q=l[C],r.hasOwnProperty(C)&&R!==q&&(R!=null||q!=null))switch(C){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:qe(e,t,C,R,r,q)}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 de in l)R=l[de],l.hasOwnProperty(de)&&R!=null&&!r.hasOwnProperty(de)&&qe(e,t,de,null,r,R);for(O in r)if(R=r[O],q=l[O],r.hasOwnProperty(O)&&R!==q&&(R!=null||q!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(u(137,t));break;default:qe(e,t,O,R,r,q)}return;default:if(Eu(t)){for(var Ye in l)R=l[Ye],l.hasOwnProperty(Ye)&&R!==void 0&&!r.hasOwnProperty(Ye)&&co(e,t,Ye,void 0,r,R);for(V in r)R=r[V],q=l[V],!r.hasOwnProperty(V)||R===q||R===void 0&&q===void 0||co(e,t,V,R,r,q);return}}for(var N in l)R=l[N],l.hasOwnProperty(N)&&R!=null&&!r.hasOwnProperty(N)&&qe(e,t,N,null,r,R);for(Z in r)R=r[Z],q=l[Z],!r.hasOwnProperty(Z)||R===q||R==null&&q==null||qe(e,t,Z,R,r,q)}function Wd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Xy(){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&&Wd(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&&Wd(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 Pd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function em(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function 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 Qy(){var e=window.event;return e&&e.type==="popstate"?e===po?!1:(po=e,!0):(po=null,!1)}var tm=typeof setTimeout=="function"?setTimeout:void 0,Zy=typeof clearTimeout=="function"?clearTimeout:void 0,nm=typeof Promise=="function"?Promise:void 0,Fy=typeof queueMicrotask=="function"?queueMicrotask:typeof nm<"u"?function(e){return nm.resolve(null).then(e).catch(Ky)}:tm;function Ky(e){setTimeout(function(){throw e})}function Wn(e){return e==="head"}function lm(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),pi(t);return}r--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")r++;else if(l==="html")fa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,fa(l);for(var h=l.firstChild;h;){var y=h.nextSibling,z=h.nodeName;h[Ni]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=y}}else l==="body"&&fa(e.ownerDocument.body);l=o}while(l);pi(t)}function im(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 Jy(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[Ni])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 Iy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=It(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(e.nextSibling),e===null))return null;return e}function yo(e){return e.data==="$?"||e.data==="$~"}function xo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function $y(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 rm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return It(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function um(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function sm(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 fa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vu(e)}var $t=new Map,om=new Set;function Hr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mn=K.d;K.d={f:Wy,r:Py,D:e1,C:t1,L:n1,m:l1,X:a1,S:i1,M:r1};function Wy(){var e=Mn.f(),t=_r();return e||t}function Py(e){var t=Dl(e);t!==null&&t.tag===5&&t.type==="form"?wh(t):Mn.r(e)}var hi=typeof document>"u"?null:document;function cm(e,t,l){var r=hi;if(r&&typeof t=="string"&&t){var o=Gt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),om.has(o)||(om.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 e1(e){Mn.D(e),cm("dns-prefetch",e,null)}function t1(e,t){Mn.C(e,t),cm("preconnect",e,t)}function n1(e,t,l){Mn.L(e,t,l);var r=hi;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=di(e);break;case"script":h=mi(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(ha(h))||t==="script"&&r.querySelector(da(h))||(t=r.createElement("link"),dt(t,"link",e),ut(t),r.head.appendChild(t)))}}function l1(e,t){Mn.m(e,t);var l=hi;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=mi(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(da(h)))return}r=l.createElement("link"),dt(r,"link",e),ut(r),l.head.appendChild(r)}}}function i1(e,t,l){Mn.S(e,t,l);var r=hi;if(r&&e){var o=Rl(r).hoistableStyles,h=di(e);t=t||"default";var y=o.get(h);if(!y){var z={loading:0,preload:null};if(y=r.querySelector(ha(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 a1(e,t){Mn.X(e,t);var l=hi;if(l&&e){var r=Rl(l).hoistableScripts,o=mi(e),h=r.get(o);h||(h=l.querySelector(da(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 r1(e,t){Mn.M(e,t);var l=hi;if(l&&e){var r=Rl(l).hoistableScripts,o=mi(e),h=r.get(o);h||(h=l.querySelector(da(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 fm(e,t,l,r){var o=(o=oe.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=di(l.href),l=Rl(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=di(l.href);var h=Rl(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(ha(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||u1(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=mi(l),l=Rl(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 di(e){return'href="'+Gt(e)+'"'}function ha(e){return'link[rel="stylesheet"]['+e+"]"}function hm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function u1(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 mi(e){return'[src="'+Gt(e)+'"]'}function da(e){return"script[async]"+e}function dm(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=di(l.href);var h=e.querySelector(ha(o));if(h)return t.state.loading|=4,t.instance=h,ut(h),h;r=hm(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=mi(l.src),(o=e.querySelector(da(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 mm(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[Ni]||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 pm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function s1(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function gm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function o1(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=di(r.href),h=t.querySelector(ha(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=hm(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 c1(e,t){return e.stylesheets&&e.count===0&&Xr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var r=setTimeout(function(){if(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&zo===0&&(zo=62500*Xy());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xr(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)Xr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gr=null;function Xr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gr=new Map,t.forEach(f1,e),Gr=null,Vr.call(e))}function f1(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 ma={$$typeof:H,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function h1(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 ym(e,t,l,r,o,h,y,z,C,O,V,Z){return e=new h1(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 xm(e){return e?(e=Ql,e):Ql}function bm(e,t,l,r,o,h){o=xm(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),Zi(l,e,t))}function vm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ko(e,t){vm(e,t),(e=e.alternate)&&vm(e,t)}function Sm(e){if(e.tag===13||e.tag===31){var t=hl(e,67108864);t!==null&&At(t,e,67108864),ko(e,67108864)}}function zm(e){if(e.tag===13||e.tag===31){var t=Ut();t=yu(t);var l=hl(e,t);l!==null&&At(l,e,t),ko(e,t)}}var Qr=!0;function d1(e,t,l,r){var o=L.T;L.T=null;var h=K.p;try{K.p=2,Eo(e,t,l,r)}finally{K.p=h,L.T=o}}function m1(e,t,l,r){var o=L.T;L.T=null;var h=K.p;try{K.p=8,Eo(e,t,l,r)}finally{K.p=h,L.T=o}}function Eo(e,t,l,r){if(Qr){var o=Co(r);if(o===null)oo(e,t,r,Zr,l),Em(e,r);else if(g1(o,e,t,l,r))r.stopPropagation();else if(Em(e,r),t&4&&-1<p1.indexOf(e)){for(;o!==null;){var h=Dl(o);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var y=ul(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,sa(0))}}break;case 31:case 13:z=hl(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=Ol(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 km(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(pu()){case X:return 2;case P:return 8;case pe:case ze:return 32;case Re:return 268435456;default:return 32}default:return 32}}var To=!1,Pn=null,el=null,tl=null,pa=new Map,ga=new Map,nl=[],p1="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 Em(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":pa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ga.delete(t.pointerId)}}function ya(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=Dl(t),t!==null&&Sm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function g1(e,t,l,r,o){switch(t){case"focusin":return Pn=ya(Pn,e,t,l,r,o),!0;case"dragenter":return el=ya(el,e,t,l,r,o),!0;case"mouseover":return tl=ya(tl,e,t,l,r,o),!0;case"pointerover":var h=o.pointerId;return pa.set(h,ya(pa.get(h)||null,e,t,l,r,o)),!0;case"gotpointercapture":return h=o.pointerId,ga.set(h,ya(ga.get(h)||null,e,t,l,r,o)),!0}return!1}function Cm(e){var t=Ol(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,Uc(e.priority,function(){zm(l)});return}}else if(t===31){if(t=d(l),t!==null){e.blockedOn=t,Uc(e.priority,function(){zm(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=Dl(l),t!==null&&Sm(t),e.blockedOn=l,!1;t.shift()}return!0}function wm(e,t,l){Fr(e)&&l.delete(t)}function y1(){To=!1,Pn!==null&&Fr(Pn)&&(Pn=null),el!==null&&Fr(el)&&(el=null),tl!==null&&Fr(tl)&&(tl=null),pa.forEach(wm),ga.forEach(wm)}function Kr(e,t){e.blockedOn===t&&(e.blockedOn=null,To||(To=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,y1)))}var Jr=null;function Tm(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=Dl(l);h!==null&&(e.splice(t,3),t-=3,Es(h,{pending:!0,data:o,method:l.method,action:r},r,o))}}))}function pi(e){function t(C){return Kr(C,e)}Pn!==null&&Kr(Pn,e),el!==null&&Kr(el,e),tl!==null&&Kr(tl,e),pa.forEach(t),ga.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);)Cm(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||Tm(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),Tm(l)}}}function Am(){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();bm(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;bm(e.current,2,null,e,null,null),_r(),t[jl]=null}};function Ir(e){this._internalRoot=e}Ir.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bc();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&&Cm(e)}};var Nm=a.version;if(Nm!=="19.2.4")throw Error(u(527,Nm,"19.2.4"));K.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 x1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$r.isDisabled&&$r.supportsFiber)try{xt=$r.inject(x1),at=$r}catch{}}return ba.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,r="",o=Lh,h=Bh,y=Uh;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=ym(e,1,!1,null,null,l,r,null,o,h,y,Am),e[jl]=t.current,so(e),new Ao(t)},ba.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var r=!1,o="",h=Lh,y=Bh,z=Uh,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=ym(e,1,!0,t,l??null,r,o,C,h,y,z,Am),t.context=xm(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,Ai(t,l),sn(t),e[jl]=t.current,so(e),new Ir(t)},ba.version="19.2.4",ba}var Hm;function T1(){if(Hm)return Mo.exports;Hm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Mo.exports=w1(),Mo.exports}var A1=T1();/**
|
|
50
50
|
* @license lucide-react v0.562.0 - ISC
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
53
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const N1=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_1=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(
|
|
54
|
+
*/const N1=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_1=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,u)=>u?u.toUpperCase():i.toLowerCase()),qm=n=>{const a=_1(n);return a.charAt(0).toUpperCase()+a.slice(1)},Yp=(...n)=>n.filter((a,i,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===i).join(" ").trim(),M1=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
55
55
|
* @license lucide-react v0.562.0 - ISC
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the ISC license.
|
|
@@ -61,12 +61,12 @@ Error generating stack: `+a.message+`
|
|
|
61
61
|
*
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const O1=se.forwardRef(({color:n="currentColor",size:
|
|
64
|
+
*/const O1=se.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:f,...d},p)=>se.createElement("svg",{ref:p,...j1,width:a,height:a,stroke:n,strokeWidth:u?Number(i)*24/Number(a):i,className:Yp("lucide",s),...!c&&!M1(d)&&{"aria-hidden":"true"},...d},[...f.map(([m,x])=>se.createElement(m,x)),...Array.isArray(c)?c:[c]]));/**
|
|
65
65
|
* @license lucide-react v0.562.0 - ISC
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the ISC license.
|
|
68
68
|
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const Me=(n,
|
|
69
|
+
*/const Me=(n,a)=>{const i=se.forwardRef(({className:u,...s},c)=>se.createElement(O1,{ref:c,iconNode:a,className:Yp(`lucide-${N1(qm(n))}`,`lucide-${n}`,u),...s}));return i.displayName=qm(n),i};/**
|
|
70
70
|
* @license lucide-react v0.562.0 - ISC
|
|
71
71
|
*
|
|
72
72
|
* This source code is licensed under the ISC license.
|
|
@@ -81,7 +81,7 @@ Error generating stack: `+a.message+`
|
|
|
81
81
|
*
|
|
82
82
|
* This source code is licensed under the ISC license.
|
|
83
83
|
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const B1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],
|
|
84
|
+
*/const B1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Na=Me("check",B1);/**
|
|
85
85
|
* @license lucide-react v0.562.0 - ISC
|
|
86
86
|
*
|
|
87
87
|
* This source code is licensed under the ISC license.
|
|
@@ -236,54 +236,55 @@ Error generating stack: `+a.message+`
|
|
|
236
236
|
*
|
|
237
237
|
* This source code is licensed under the ISC license.
|
|
238
238
|
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
-
*/const Dx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Rx=Me("x",Dx);function Ip(n){const
|
|
239
|
+
*/const Dx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Rx=Me("x",Dx);function Ip(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 Lx=[/<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 al(n){let a=n;for(const i of Lx)a=a.replace(i,"");return a.trim()}var Bx=qp();function gi(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 b;if(i.key&&((p=i.debug)!=null&&p.call(i))&&(b=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()-b)*100)/100,U=M/16,_=(Y,H)=>{for(Y=String(Y);Y.length<H;)Y=" "+Y;return Y};console.info(`%c⏱ ${_(M,5)} /${_(w,5)} ms`,`
|
|
240
240
|
font-size: .6rem;
|
|
241
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 Ym(n,r){if(n===void 0)throw new Error("Unexpected undefined");return n}const Ux=(n,r)=>Math.abs(n-r)<1.01,Hx=(n,r,i)=>{let u;return function(...s){n.clearTimeout(u),u=n.setTimeout(()=>r.apply(this,s),i)}},Vm=n=>{const{offsetWidth:r,offsetHeight:i}=n;return{width:r,height:i}},qx=n=>n,Yx=n=>{const r=Math.max(n.startIndex-n.overscan,0),i=Math.min(n.endIndex+n.overscan,n.count-1),u=[];for(let s=r;s<=i;s++)u.push(s);return u},Vx=(n,r)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;const s=f=>{const{width:d,height:p}=f;r({width:Math.round(d),height:Math.round(p)})};if(s(Vm(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(Vm(i))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return c.observe(i,{box:"border-box"}),()=>{c.unobserve(i)}},Gm={passive:!0},Xm=typeof window>"u"?!0:"onscrollend"in window,Gx=(n,r)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;let s=0;const c=n.options.useScrollendEvent&&Xm?()=>{}:Hx(u,()=>{r(s,!1)},n.options.isScrollingResetDelay),f=x=>()=>{const{horizontal:g,isRtl:v}=n.options;s=g?i.scrollLeft*(v&&-1||1):i.scrollTop,c(),r(s,x)},d=f(!0),p=f(!1);i.addEventListener("scroll",d,Gm);const m=n.options.useScrollendEvent&&Xm;return m&&i.addEventListener("scrollend",p,Gm),()=>{i.removeEventListener("scroll",d),m&&i.removeEventListener("scrollend",p)}},Xx=(n,r,i)=>{if(r!=null&&r.borderBoxSize){const u=r.borderBoxSize[0];if(u)return Math.round(u[i.options.horizontal?"inlineSize":"blockSize"])}return n[i.options.horizontal?"offsetWidth":"offsetHeight"]},Qx=(n,{adjustments:r=0,behavior:i},u)=>{var s,c;const f=n+r;(c=(s=u.scrollElement)==null?void 0:s.scrollTo)==null||c.call(s,{[u.options.horizontal?"left":"top"]:f,behavior:i})};class Zx{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,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:qx,rangeExtractor:Yx,onChange:()=>{},measureElement:Xx,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.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._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},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}),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 v of this.laneAssignments.keys())v>=i&&this.laneAssignments.delete(v);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(v=>{this.itemSizeCache.set(v.key,v.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 v=0;v<m;v++){const b=x[v];b&&(g[b.lane]=v)}for(let v=m;v<i;v++){const b=c(v),w=this.laneAssignments.get(v);let _,Y;if(w!==void 0&&this.options.lanes>1){_=w;const I=g[_],F=I!==void 0?x[I]:void 0;Y=F?F.end+this.options.gap:u+s}else{const I=this.options.lanes===1?x[v-1]:this.getFurthestMeasurement(x,v);Y=I?I.end+this.options.gap:u+s,_=I?I.lane:v%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(v,_)}const M=p.get(b),q=typeof M=="number"?M:this.options.estimateSize(v),U=Y+q;x[v]={index:v,start:Y,size:q,end:U,key:b,lane:_},g[_]=v}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?Fx({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 Ym(u[$p(0,u.length-1,s=>Ym(u[s]).start,i)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const i=this.scrollElement.document.documentElement;return this.options.horizontal?i.scrollWidth-this.scrollElement.innerWidth:i.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(i,u,s=0)=>{if(!this.scrollElement)return 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.getMaxScrollOffset();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];if(u==="end"&&i===this.options.count-1)return[this.getMaxScrollOffset(),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)),this.currentScrollToIndex=i;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,v]=x;this._scrollToOffset(g,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const b=()=>{if(this.currentScrollToIndex!==i)return;const w=this.getScrollOffset(),_=this.getOffsetForIndex(i,v);if(!_){console.warn("Failed to get offset for index:",i);return}Ux(_[0],w)||p(v)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(b):b()})},p=m=>{this.targetWindow&&this.currentScrollToIndex===i&&(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(r)}}const $p=(n,r,i,u)=>{for(;n<=r;){const s=(n+r)/2|0,c=i(s);if(c<u)n=s+1;else if(c>u)r=s-1;else return s}return n>0?n-1:0};function Fx({measurements:n,outerSize:r,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=$p(0,s,c,i),d=f;if(u===1)for(;d<s&&n[d].end<i+r;)d++;else if(u>1){const p=Array(u).fill(0);for(;d<s&&p.some(x=>x<i+r);){const x=n[d];p[x.lane]=x.end,d++}const m=Array(u).fill(i+r);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"?se.useLayoutEffect:se.useEffect;function Kx({useFlushSync:n=!0,...r}){const i=se.useReducer(()=>({}),{})[1],u={...r,onChange:(c,f)=>{var d;n&&f?Bx.flushSync(i):i(),(d=r.onChange)==null||d.call(r,c,f)}},[s]=se.useState(()=>new Zx(u));return s.setOptions(u),Qm(()=>s._didMount(),[]),Qm(()=>s._willUpdate()),s}function Jx(n){return Kx({observeElementRect:Vx,observeElementOffset:Gx,scrollToFn:Qx,...n})}const Ix=se.memo(function(r){const{sessions:i,selectedSession:u,onSelectSession:s,loading:c}=r,[f,d]=se.useState(""),p=se.useRef(null),m=se.useMemo(()=>{if(!f.trim())return i;const g=f.toLowerCase();return i.filter(v=>v.display.toLowerCase().includes(g)||v.projectName.toLowerCase().includes(g))},[i,f]),x=Jx({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 v=m[g.index];return S.jsxs("button",{"data-index":g.index,ref:x.measureElement,onClick:()=>s(v.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===v.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:v.projectName}),S.jsx("span",{className:"text-[10px] text-zinc-600",children:Ip(v.timestamp)})]}),S.jsx("p",{className:"text-[12px] text-zinc-300 leading-snug line-clamp-2 break-words",children:v.display})]},v.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 $x(n,r){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const Wx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Px=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eb={};function Zm(n,r){return(eb.jsx?Px:Wx).test(n)}const tb=/[ \t\n\f\r]/g;function nb(n){return typeof n=="object"?n.type==="text"?Fm(n.value):!1:Fm(n)}function Fm(n){return n.replace(tb,"")===""}class Na{constructor(r,i,u){this.normal=i,this.property=r,u&&(this.space=u)}}Na.prototype.normal={};Na.prototype.property={};Na.prototype.space=void 0;function Wp(n,r){const i={},u={};for(const s of n)Object.assign(i,s.property),Object.assign(u,s.normal);return new Na(i,u,r)}function ec(n){return n.toLowerCase()}class _t{constructor(r,i){this.attribute=i,this.property=r}}_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 lb=0;const be=wl(),it=wl(),tc=wl(),J=wl(),Qe=wl(),vi=wl(),Ht=wl();function wl(){return 2**++lb}const nc=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:it,commaOrSpaceSeparated:Ht,commaSeparated:vi,number:J,overloadedBoolean:tc,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),Ro=Object.keys(nc);class pc extends _t{constructor(r,i,u,s){let c=-1;if(super(r,i),Km(this,"space",s),typeof u=="number")for(;++c<Ro.length;){const f=Ro[c];Km(this,Ro[c],(u&nc[f])===nc[f])}}}pc.prototype.defined=!0;function Km(n,r,i){i&&(n[r]=i)}function zi(n){const r={},i={};for(const[u,s]of Object.entries(n.properties)){const c=new pc(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),r[u]=c,i[ec(u)]=u,i[ec(c.attribute)]=u}return new Na(r,i,n.space)}const Pp=zi({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:it,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:Qe,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:J,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:Qe,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:it,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(n,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function e0(n,r){return r in n?n[r]:r}function t0(n,r){return e0(n,r.toLowerCase())}const ib=zi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vi,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Qe,autoFocus:be,autoPlay:be,blocking:Qe,capture:null,charSet:null,checked:be,cite:null,className:Qe,cols:J,colSpan:null,content:null,contentEditable:it,controls:be,controlsList:Qe,coords:J|vi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:tc,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Qe,height:J,hidden:tc,high:J,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:be,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,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:J,pattern:null,ping:Qe,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Qe,required:be,reversed:be,rows:J,rowSpan:J,sandbox:Qe,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:it,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,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:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:t0}),ab=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:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Qe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,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:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,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:J,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:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,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:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:e0}),n0=zi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,r){return"xlink:"+r.slice(5).toLowerCase()}}),l0=zi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:t0}),i0=zi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,r){return"xml:"+r.slice(3).toLowerCase()}}),rb={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"},ub=/[A-Z]/g,Jm=/-[a-z]/g,sb=/^data[-\w.:]+$/i;function ob(n,r){const i=ec(r);let u=r,s=_t;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&sb.test(r)){if(r.charAt(4)==="-"){const c=r.slice(5).replace(Jm,fb);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=r.slice(4);if(!Jm.test(c)){let f=c.replace(ub,cb);f.charAt(0)!=="-"&&(f="-"+f),r="data"+f}}s=pc}return new s(u,r)}function cb(n){return"-"+n.toLowerCase()}function fb(n){return n.charAt(1).toUpperCase()}const hb=Wp([Pp,ib,n0,l0,i0],"html"),gc=Wp([Pp,ab,n0,l0,i0],"svg");function db(n){return n.join(" ").trim()}var gi={},Lo,Im;function mb(){if(Im)return Lo;Im=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
|
243
|
-
`,m="/",x="*",g="",v="comment",b="declaration";function w(Y,M){if(typeof Y!="string")throw new TypeError("First argument must be a string");if(!Y)return[];M=M||{};var q=1,U=1;function I(ie){var W=ie.match(r);W&&(q+=W.length);var L=ie.lastIndexOf(p);U=~L?ie.length-L:U+ie.length}function F(){var ie={line:q,column:U};return function(W){return W.position=new D(ie),fe(),W}}function D(ie){this.start=ie,this.end={line:q,column:U},this.source=M.source}D.prototype.content=Y;function $(ie){var W=new Error(M.source+":"+q+":"+U+": "+ie);if(W.reason=ie,W.filename=M.source,W.line=q,W.column=U,W.source=Y,!M.silent)throw W}function ue(ie){var W=ie.exec(Y);if(W){var L=W[0];return I(L),Y=Y.slice(L.length),W}}function fe(){ue(i)}function B(ie){var W;for(ie=ie||[];W=te();)W!==!1&&ie.push(W);return ie}function te(){var ie=F();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 L=Y.slice(2,W-2);return U+=2,I(L),Y=Y.slice(W),U+=2,ie({type:v,comment:L})}}function ne(){var ie=F(),W=ue(u);if(W){if(te(),!ue(s))return $("property missing ':'");var L=ue(c),K=ie({type:b,property:_(W[0].replace(n,g)),value:L?_(L[0].replace(n,g)):g});return ue(f),K}}function Se(){var ie=[];B(ie);for(var W;W=ne();)W!==!1&&(ie.push(W),B(ie));return ie}return fe(),Se()}function _(Y){return Y?Y.replace(d,g):g}return Lo=w,Lo}var $m;function pb(){if($m)return gi;$m=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 r=n(mb());function i(u,s){let c=null;if(!u||typeof u!="string")return c;const f=(0,r.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={},Wm;function gb(){if(Wm)return ba;Wm=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([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(r,f))};return ba.camelCase=p,ba}var va,Pm;function yb(){if(Pm)return va;Pm=1;var n=va&&va.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=n(pb()),i=gb();function u(s,c){var f={};return!s||typeof s!="string"||(0,r.default)(s,function(d,p){d&&p&&(f[(0,i.camelCase)(d,c)]=p)}),f}return u.default=u,va=u,va}var xb=yb();const bb=Hp(xb),a0=r0("end"),yc=r0("start");function r0(n){return r;function r(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 vb(n){const r=yc(n),i=a0(n);if(r&&i)return{start:r,end:i}}function ka(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?ep(n.position):"start"in n||"end"in n?ep(n):"line"in n||"column"in n?lc(n):""}function lc(n){return tp(n&&n.line)+":"+tp(n&&n.column)}function ep(n){return lc(n&&n.start)+"-"+lc(n&&n.end)}function tp(n){return n&&typeof n=="number"?n:1}class gt extends Error{constructor(r,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 r=="string"?s=r:!c.cause&&r&&(f=!0,s=r.message,c.cause=r),!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 xc={}.hasOwnProperty,Sb=new Map,zb=/[A-Z]/g,kb=new Set(["table","tbody","thead","tfoot","tr"]),Eb=new Set(["td","th"]),u0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Cb(n,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let u;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=Ob(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=jb(i,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:u,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?gc:hb,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},c=s0(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function s0(n,r,i){if(r.type==="element")return wb(n,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return Tb(n,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return Nb(n,r,i);if(r.type==="mdxjsEsm")return Ab(n,r);if(r.type==="root")return _b(n,r,i);if(r.type==="text")return Mb(n,r)}function wb(n,r,i){const u=n.schema;let s=u;r.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=gc,n.schema=s),n.ancestors.push(r);const c=c0(n,r.tagName,!1),f=Db(n,r);let d=vc(n,r);return kb.has(r.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!nb(p):!0})),o0(n,f,c,r),bc(f,d),n.ancestors.pop(),n.schema=u,n.create(r,c,f,i)}function Tb(n,r){if(r.data&&r.data.estree&&n.evaluater){const u=r.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}wa(n,r.position)}function Ab(n,r){if(r.data&&r.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(r.data.estree);wa(n,r.position)}function Nb(n,r,i){const u=n.schema;let s=u;r.name==="svg"&&u.space==="html"&&(s=gc,n.schema=s),n.ancestors.push(r);const c=r.name===null?n.Fragment:c0(n,r.name,!0),f=Rb(n,r),d=vc(n,r);return o0(n,f,c,r),bc(f,d),n.ancestors.pop(),n.schema=u,n.create(r,c,f,i)}function _b(n,r,i){const u={};return bc(u,vc(n,r)),n.create(r,n.Fragment,u,i)}function Mb(n,r){return r.value}function o0(n,r,i,u){typeof i!="string"&&i!==n.Fragment&&n.passNode&&(r.node=u)}function bc(n,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(n.children=i)}}function jb(n,r,i){return u;function u(s,c,f,d){const m=Array.isArray(f.children)?i:r;return d?m(c,f,d):m(c,f)}}function Ob(n,r){return i;function i(u,s,c,f){const d=Array.isArray(c.children),p=yc(u);return r(s,c,f,d,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function Db(n,r){const i={};let u,s;for(s in r.properties)if(s!=="children"&&xc.call(r.properties,s)){const c=Lb(n,s,r.properties[s]);if(c){const[f,d]=c;n.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&Eb.has(r.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 Rb(n,r){const i={};for(const u of r.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,r.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,r.position);else c=u.value===null?!0:u.value;i[s]=c}return i}function vc(n,r){const i=[];let u=-1;const s=n.passKeys?new Map:Sb;for(;++u<r.children.length;){const c=r.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=s0(n,c,f);d!==void 0&&i.push(d)}return i}function Lb(n,r,i){const u=ob(n.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=u.commaSeparated?$x(i):db(i)),u.property==="style"){let s=typeof i=="object"?i:Bb(n,String(i));return n.stylePropertyNameCase==="css"&&(s=Ub(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?rb[u.property]||u.property:u.attribute,i]}}function Bb(n,r){try{return bb(r,{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=u0+"#cannot-parse-style-attribute",s}}function c0(n,r,i){let u;if(!i)u={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let c=-1,f;for(;++c<s.length;){const d=Zm(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=Zm(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(u.type==="Literal"){const s=u.value;return xc.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);wa(n)}function wa(n,r){const i=new gt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=n.filePath||void 0,i.url=u0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Ub(n){const r={};let i;for(i in n)xc.call(n,i)&&(r[Hb(i)]=n[i]);return r}function Hb(n){let r=n.replace(zb,qb);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function qb(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"]},Yb={};function Sc(n,r){const i=Yb,u=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return f0(n,u,s)}function f0(n,r,i){if(Vb(n)){if("value"in n)return n.type==="html"&&!i?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return np(n.children,r,i)}return Array.isArray(n)?np(n,r,i):""}function np(n,r,i){const u=[];let s=-1;for(;++s<n.length;)u[s]=f0(n[s],r,i);return u.join("")}function Vb(n){return!!(n&&typeof n=="object")}const lp=document.createElement("i");function zc(n){const r="&"+n+";";lp.innerHTML=r;const i=lp.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===r?!1:i}function qt(n,r,i,u){const s=n.length;let c=0,f;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,i=i>0?i:0,u.length<1e4)f=Array.from(u),f.unshift(r,i),n.splice(...f);else for(i&&n.splice(r,i);c<u.length;)f=u.slice(c,c+1e4),f.unshift(r,0),n.splice(...f),c+=1e4,r+=1e4}function Wt(n,r){return n.length>0?(qt(n,n.length,0,r),n):r}const ip={}.hasOwnProperty;function h0(n){const r={};let i=-1;for(;++i<n.length;)Gb(r,n[i]);return r}function Gb(n,r){let i;for(i in r){const s=(ip.call(n,i)?n[i]:void 0)||(n[i]={}),c=r[i];let f;if(c)for(f in c){ip.call(s,f)||(s[f]=[]);const d=c[f];Xb(s[f],Array.isArray(d)?d:d?[d]:[])}}}function Xb(n,r){let i=-1;const u=[];for(;++i<r.length;)(r[i].add==="after"?n:u).push(r[i]);qt(n,0,0,u)}function d0(n,r){const i=Number.parseInt(n,r);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]/),Qb=al(/[#-'*+\--9=?A-Z^-~]/);function iu(n){return n!==null&&(n<32||n===127)}const ic=al(/\d/),Zb=al(/[\dA-Fa-f]/),Fb=al(/[!-/:-@[-`{-~]/);function he(n){return n!==null&&n<-2}function Xe(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 r;function r(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function ki(n){const r=[];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&&(r.push(n.slice(u,i),encodeURIComponent(f)),u=i+s+1,f=""),s&&(i+=s,s=0)}return r.join("")+n.slice(u)}function _e(n,r,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)):r(p)}function d(p){return Ce(p)&&c++<s?(n.consume(p),d):(n.exit(i),r(p))}}const Kb={tokenize:Jb};function Jb(n){const r=n.attempt(this.parser.constructs.contentInitial,u,s);let i;return r;function u(d){if(d===null){n.consume(d);return}return n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),_e(n,r,"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 he(d)?(n.consume(d),n.exit("chunkText"),c):(n.consume(d),f)}}const Ib={tokenize:$b},ap={tokenize:Wb};function $b(n){const r=this,i=[];let u=0,s,c,f;return d;function d(U){if(u<i.length){const I=i[u];return r.containerState=I[1],n.attempt(I[0].continuation,p,m)(U)}return m(U)}function p(U){if(u++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&q();const I=r.events.length;let F=I,D;for(;F--;)if(r.events[F][0]==="exit"&&r.events[F][1].type==="chunkFlow"){D=r.events[F][1].end;break}M(u);let $=I;for(;$<r.events.length;)r.events[$][1].end={...D},$++;return qt(r.events,F+1,0,r.events.slice(I)),r.events.length=$,m(U)}return d(U)}function m(U){if(u===i.length){if(!s)return v(U);if(s.currentConstruct&&s.currentConstruct.concrete)return w(U);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(ap,x,g)(U)}function x(U){return s&&q(),M(u),v(U)}function g(U){return r.parser.lazy[r.now().line]=u!==i.length,f=r.now().offset,w(U)}function v(U){return r.containerState={},n.attempt(ap,b,w)(U)}function b(U){return u++,i.push([r.currentConstruct,r.containerState]),v(U)}function w(U){if(U===null){s&&q(),M(0),n.consume(U);return}return s=s||r.parser.flow(r.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),_(U)}function _(U){if(U===null){Y(n.exit("chunkFlow"),!0),M(0),n.consume(U);return}return he(U)?(n.consume(U),Y(n.exit("chunkFlow")),u=0,r.interrupt=void 0,d):(n.consume(U),_)}function Y(U,I){const F=r.sliceStream(U);if(I&&F.push(null),U.previous=c,c&&(c.next=U),c=U,s.defineSkip(U.start),s.write(F),r.parser.lazy[U.start.line]){let D=s.events.length;for(;D--;)if(s.events[D][1].start.offset<f&&(!s.events[D][1].end||s.events[D][1].end.offset>f))return;const $=r.events.length;let ue=$,fe,B;for(;ue--;)if(r.events[ue][0]==="exit"&&r.events[ue][1].type==="chunkFlow"){if(fe){B=r.events[ue][1].end;break}fe=!0}for(M(u),D=$;D<r.events.length;)r.events[D][1].end={...B},D++;qt(r.events,ue+1,0,r.events.slice($)),r.events.length=D}}function M(U){let I=i.length;for(;I-- >U;){const F=i[I];r.containerState=F[1],F[0].exit.call(r,n)}i.length=U}function q(){s.write([null]),c=void 0,s=void 0,r.containerState._closeFlow=void 0}}function Wb(n,r,i){return _e(n,n.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Si(n){if(n===null||Xe(n)||Cl(n))return 1;if(su(n))return 2}function ou(n,r,i){const u=[];let s=-1;for(;++s<n.length;){const c=n[s].resolveAll;c&&!u.includes(c)&&(r=c(r,i),u.push(c))}return r}const ac={name:"attention",resolveAll:Pb,tokenize:ev};function Pb(n,r){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&&r.sliceSerialize(n[u][1]).charCodeAt(0)===r.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},v={...n[i][1].start};rp(g,-p),rp(v,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:v},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],r],["exit",n[u][1],r]])),m=Wt(m,[["enter",s,r],["enter",f,r],["exit",f,r],["enter",c,r]]),m=Wt(m,ou(r.parser.constructs.insideSpan.null,n.slice(u+1,i),r)),m=Wt(m,[["exit",c,r],["enter",d,r],["exit",d,r],["exit",s,r]]),n[i][1].end.offset-n[i][1].start.offset?(x=2,m=Wt(m,[["enter",n[i][1],r],["exit",n[i][1],r]])):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 ev(n,r){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),v=!s||s===2&&x||i.includes(u);return m._open=!!(c===42?g:g&&(s||!v)),m._close=!!(c===42?v:v&&(x||!g)),r(p)}}function rp(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const tv={name:"autolink",tokenize:nv};function nv(n,r,i){let u=0;return s;function s(b){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(b){return vt(b)?(n.consume(b),f):b===64?i(b):m(b)}function f(b){return b===43||b===45||b===46||pt(b)?(u=1,d(b)):m(b)}function d(b){return b===58?(n.consume(b),u=0,p):(b===43||b===45||b===46||pt(b))&&u++<32?(n.consume(b),d):(u=0,m(b))}function p(b){return b===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.exit("autolink"),r):b===null||b===32||b===60||iu(b)?i(b):(n.consume(b),p)}function m(b){return b===64?(n.consume(b),x):Qb(b)?(n.consume(b),m):i(b)}function x(b){return pt(b)?g(b):i(b)}function g(b){return b===46?(n.consume(b),u=0,x):b===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.exit("autolink"),r):v(b)}function v(b){if((b===45||pt(b))&&u++<63){const w=b===45?v:g;return n.consume(b),w}return i(b)}}const _a={partial:!0,tokenize:lv};function lv(n,r,i){return u;function u(c){return Ce(c)?_e(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||he(c)?r(c):i(c)}}const m0={continuation:{tokenize:av},exit:rv,name:"blockQuote",tokenize:iv};function iv(n,r,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"),r):(n.exit("blockQuotePrefix"),r(f))}}function av(n,r,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(m0,r,i)(f)}}function rv(n){n.exit("blockQuote")}const p0={name:"characterEscape",tokenize:uv};function uv(n,r,i){return u;function u(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),s}function s(c){return Fb(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):i(c)}}const g0={name:"characterReference",tokenize:sv};function sv(n,r,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=Zb,x):(n.enter("characterReferenceValue"),c=7,f=ic,x(g))}function x(g){if(g===59&&s){const v=n.exit("characterReferenceValue");return f===pt&&!zc(u.sliceSerialize(v))?i(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return f(g)&&s++<c?(n.consume(g),x):i(g)}}const up={partial:!0,tokenize:cv},sp={concrete:!0,name:"codeFenced",tokenize:ov};function ov(n,r,i){const u=this,s={partial:!0,tokenize:F};let c=0,f=0,d;return p;function p(D){return m(D)}function m(D){const $=u.events[u.events.length-1];return c=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,d=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(D)}function x(D){return D===d?(f++,n.consume(D),x):f<3?i(D):(n.exit("codeFencedFenceSequence"),Ce(D)?_e(n,g,"whitespace")(D):g(D))}function g(D){return D===null||he(D)?(n.exit("codeFencedFence"),u.interrupt?r(D):n.check(up,_,I)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),v(D))}function v(D){return D===null||he(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(D)):Ce(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),_e(n,b,"whitespace")(D)):D===96&&D===d?i(D):(n.consume(D),v)}function b(D){return D===null||he(D)?g(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),w(D))}function w(D){return D===null||he(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(D)):D===96&&D===d?i(D):(n.consume(D),w)}function _(D){return n.attempt(s,I,Y)(D)}function Y(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),M}function M(D){return c>0&&Ce(D)?_e(n,q,"linePrefix",c+1)(D):q(D)}function q(D){return D===null||he(D)?n.check(up,_,I)(D):(n.enter("codeFlowValue"),U(D))}function U(D){return D===null||he(D)?(n.exit("codeFlowValue"),q(D)):(n.consume(D),U)}function I(D){return n.exit("codeFenced"),r(D)}function F(D,$,ue){let fe=0;return B;function B(W){return D.enter("lineEnding"),D.consume(W),D.exit("lineEnding"),te}function te(W){return D.enter("codeFencedFence"),Ce(W)?_e(D,ne,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):ne(W)}function ne(W){return W===d?(D.enter("codeFencedFenceSequence"),Se(W)):ue(W)}function Se(W){return W===d?(fe++,D.consume(W),Se):fe>=f?(D.exit("codeFencedFenceSequence"),Ce(W)?_e(D,ie,"whitespace")(W):ie(W)):ue(W)}function ie(W){return W===null||he(W)?(D.exit("codeFencedFence"),$(W)):ue(W)}}}function cv(n,r,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):r(f)}}const Uo={name:"codeIndented",tokenize:hv},fv={partial:!0,tokenize:dv};function hv(n,r,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):he(m)?n.attempt(fv,f,p)(m):(n.enter("codeFlowValue"),d(m))}function d(m){return m===null||he(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),d)}function p(m){return n.exit("codeIndented"),r(m)}}function dv(n,r,i){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?i(f):he(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?r(f):he(f)?s(f):i(f)}}const mv={name:"codeText",previous:gv,resolve:pv,tokenize:yv};function pv(n){let r=n.length-4,i=3,u,s;if((n[i][1].type==="lineEnding"||n[i][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(u=i;++u<r;)if(n[u][1].type==="codeTextData"){n[i][1].type="codeTextPadding",n[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(u=i-1,r++;++u<=r;)s===void 0?u!==r&&n[u][1].type!=="lineEnding"&&(s=u):(u===r||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),r-=u-s-2,u=s+2),s=void 0);return n}function gv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yv(n,r,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)):he(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||he(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"),r(g)):(c.type="codeTextData",m(g))}}class xv{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,i){const u=i??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(r,u):r>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(r,i,u){const s=i||0;this.setCursor(Math.trunc(r));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(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Sa(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Sa(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const i=this.left.splice(r,Number.POSITIVE_INFINITY);Sa(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Sa(this.left,i.reverse())}}}function Sa(n,r){let i=0;if(r.length<1e4)n.push(...r);else for(;i<r.length;)n.push(...r.slice(i,i+1e4)),i+=1e4}function y0(n){const r={};let i=-1,u,s,c,f,d,p,m;const x=new xv(n);for(;++i<x.length;){for(;i in r;)i=r[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(r,bv(x,i)),i=r[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 bv(n,r){const i=n.get(r)[1],u=n.get(r)[2];let s=r-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,v=-1,b=i,w=0,_=0;const Y=[_];for(;b;){for(;n.get(++s)[1]!==b;);c.push(s),b._tokenizer||(x=u.sliceStream(b),b.next||x.push(null),g&&f.defineSkip(b.start),b._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(x),b._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=i;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(_=v+1,Y.push(_),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(f.events=[],b?(b._tokenizer=void 0,b.previous=void 0):Y.pop(),v=Y.length;v--;){const M=d.slice(Y[v],Y[v+1]),q=c.pop();p.push([q,q+M.length-1]),n.splice(q,2,M)}for(p.reverse(),v=-1;++v<p.length;)m[w+p[v][0]]=w+p[v][1],w+=p[v][1]-p[v][0]-1;return m}const vv={resolve:zv,tokenize:kv},Sv={partial:!0,tokenize:Ev};function zv(n){return y0(n),n}function kv(n,r){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):he(d)?n.check(Sv,f,c)(d):(n.consume(d),s)}function c(d){return n.exit("chunkContent"),n.exit("content"),r(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 Ev(n,r,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||he(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?r(f):n.interrupt(u.parser.constructs.flow,i,r)(f)}}function x0(n,r,i,u,s,c,f,d,p){const m=p||Number.POSITIVE_INFINITY;let x=0;return g;function g(M){return M===60?(n.enter(u),n.enter(s),n.enter(c),n.consume(M),n.exit(c),v):M===null||M===32||M===41||iu(M)?i(M):(n.enter(u),n.enter(f),n.enter(d),n.enter("chunkString",{contentType:"string"}),_(M))}function v(M){return M===62?(n.enter(c),n.consume(M),n.exit(c),n.exit(s),n.exit(u),r):(n.enter(d),n.enter("chunkString",{contentType:"string"}),b(M))}function b(M){return M===62?(n.exit("chunkString"),n.exit(d),v(M)):M===null||M===60||he(M)?i(M):(n.consume(M),M===92?w:b)}function w(M){return M===60||M===62||M===92?(n.consume(M),b):b(M)}function _(M){return!x&&(M===null||M===41||Xe(M))?(n.exit("chunkString"),n.exit(d),n.exit(f),n.exit(u),r(M)):x<m&&M===40?(n.consume(M),x++,_):M===41?(n.consume(M),x--,_):M===null||M===32||M===40||iu(M)?i(M):(n.consume(M),M===92?Y:_)}function Y(M){return M===40||M===41||M===92?(n.consume(M),_):_(M)}}function b0(n,r,i,u,s,c){const f=this;let d=0,p;return m;function m(b){return n.enter(u),n.enter(s),n.consume(b),n.exit(s),n.enter(c),x}function x(b){return d>999||b===null||b===91||b===93&&!p||b===94&&!d&&"_hiddenFootnoteSupport"in f.parser.constructs?i(b):b===93?(n.exit(c),n.enter(s),n.consume(b),n.exit(s),n.exit(u),r):he(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||he(b)||d++>999?(n.exit("chunkString"),x(b)):(n.consume(b),p||(p=!Ce(b)),b===92?v:g)}function v(b){return b===91||b===92||b===93?(n.consume(b),d++,g):g(b)}}function v0(n,r,i,u,s,c){let f;return d;function d(v){return v===34||v===39||v===40?(n.enter(u),n.enter(s),n.consume(v),n.exit(s),f=v===40?41:v,p):i(v)}function p(v){return v===f?(n.enter(s),n.consume(v),n.exit(s),n.exit(u),r):(n.enter(c),m(v))}function m(v){return v===f?(n.exit(c),p(f)):v===null?i(v):he(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),_e(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(v))}function x(v){return v===f||v===null||he(v)?(n.exit("chunkString"),m(v)):(n.consume(v),v===92?g:x)}function g(v){return v===f||v===92?(n.consume(v),x):x(v)}}function Ea(n,r){let i;return u;function u(s){return he(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i=!0,u):Ce(s)?_e(n,u,i?"linePrefix":"lineSuffix")(s):r(s)}}const Cv={name:"definition",tokenize:Tv},wv={partial:!0,tokenize:Av};function Tv(n,r,i){const u=this;let s;return c;function c(b){return n.enter("definition"),f(b)}function f(b){return b0.call(u,n,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function d(b){return s=ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),b===58?(n.enter("definitionMarker"),n.consume(b),n.exit("definitionMarker"),p):i(b)}function p(b){return Xe(b)?Ea(n,m)(b):m(b)}function m(b){return x0(n,x,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function x(b){return n.attempt(wv,g,g)(b)}function g(b){return Ce(b)?_e(n,v,"whitespace")(b):v(b)}function v(b){return b===null||he(b)?(n.exit("definition"),u.parser.defined.push(s),r(b)):i(b)}}function Av(n,r,i){return u;function u(d){return Xe(d)?Ea(n,s)(d):i(d)}function s(d){return v0(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||he(d)?r(d):i(d)}}const Nv={name:"hardBreakEscape",tokenize:_v};function _v(n,r,i){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return he(c)?(n.exit("hardBreakEscape"),r(c)):i(c)}}const Mv={name:"headingAtx",resolve:jv,tokenize:Ov};function jv(n,r){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,r],["enter",c,r],["exit",c,r],["exit",s,r]])),n}function Ov(n,r,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||Xe(x)?(n.exit("atxHeadingSequence"),d(x)):i(x)}function d(x){return x===35?(n.enter("atxHeadingSequence"),p(x)):x===null||he(x)?(n.exit("atxHeading"),r(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||Xe(x)?(n.exit("atxHeadingText"),d(x)):(n.consume(x),m)}}const Dv=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],op=["pre","script","style","textarea"],Rv={concrete:!0,name:"htmlFlow",resolveTo:Uv,tokenize:Hv},Lv={partial:!0,tokenize:Yv},Bv={partial:!0,tokenize:qv};function Uv(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Hv(n,r,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),v):k===47?(n.consume(k),c=!0,_):k===63?(n.consume(k),s=3,u.interrupt?r:E):vt(k)?(n.consume(k),f=String.fromCharCode(k),Y):i(k)}function v(k){return k===45?(n.consume(k),s=2,b):k===91?(n.consume(k),s=5,d=0,w):vt(k)?(n.consume(k),s=4,u.interrupt?r:E):i(k)}function b(k){return k===45?(n.consume(k),u.interrupt?r:E):i(k)}function w(k){const ee="CDATA[";return k===ee.charCodeAt(d++)?(n.consume(k),d===ee.length?u.interrupt?r:ne:w):i(k)}function _(k){return vt(k)?(n.consume(k),f=String.fromCharCode(k),Y):i(k)}function Y(k){if(k===null||k===47||k===62||Xe(k)){const ee=k===47,me=f.toLowerCase();return!ee&&!c&&op.includes(me)?(s=1,u.interrupt?r(k):ne(k)):Dv.includes(f.toLowerCase())?(s=6,ee?(n.consume(k),M):u.interrupt?r(k):ne(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?i(k):c?q(k):U(k))}return k===45||pt(k)?(n.consume(k),f+=String.fromCharCode(k),Y):i(k)}function M(k){return k===62?(n.consume(k),u.interrupt?r:ne):i(k)}function q(k){return Ce(k)?(n.consume(k),q):B(k)}function U(k){return k===47?(n.consume(k),B):k===58||k===95||vt(k)?(n.consume(k),I):Ce(k)?(n.consume(k),U):B(k)}function I(k){return k===45||k===46||k===58||k===95||pt(k)?(n.consume(k),I):F(k)}function F(k){return k===61?(n.consume(k),D):Ce(k)?(n.consume(k),F):U(k)}function D(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),D):ue(k)}function $(k){return k===p?(n.consume(k),p=null,fe):k===null||he(k)?i(k):(n.consume(k),$)}function ue(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Xe(k)?F(k):(n.consume(k),ue)}function fe(k){return k===47||k===62||Ce(k)?U(k):i(k)}function B(k){return k===62?(n.consume(k),te):i(k)}function te(k){return k===null||he(k)?ne(k):Ce(k)?(n.consume(k),te):i(k)}function ne(k){return k===45&&s===2?(n.consume(k),L):k===60&&s===1?(n.consume(k),K):k===62&&s===4?(n.consume(k),T):k===63&&s===3?(n.consume(k),E):k===93&&s===5?(n.consume(k),ve):he(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(Lv,G,Se)(k)):k===null||he(k)?(n.exit("htmlFlowData"),Se(k)):(n.consume(k),ne)}function Se(k){return n.check(Bv,ie,G)(k)}function ie(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),W}function W(k){return k===null||he(k)?Se(k):(n.enter("htmlFlowData"),ne(k))}function L(k){return k===45?(n.consume(k),E):ne(k)}function K(k){return k===47?(n.consume(k),f="",re):ne(k)}function re(k){if(k===62){const ee=f.toLowerCase();return op.includes(ee)?(n.consume(k),T):ne(k)}return vt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),re):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||he(k)?(n.exit("htmlFlowData"),G(k)):(n.consume(k),T)}function G(k){return n.exit("htmlFlow"),r(k)}}function qv(n,r,i){const u=this;return s;function s(f){return he(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):r(f)}}function Yv(n,r,i){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(_a,r,i)}}const Vv={name:"htmlText",tokenize:Gv};function Gv(n,r,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),F):E===63?(n.consume(E),U):vt(E)?(n.consume(E),ue):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),b):i(E)}function g(E){return E===null?i(E):E===45?(n.consume(E),v):he(E)?(f=g,K(E)):(n.consume(E),g)}function v(E){return E===45?(n.consume(E),b):g(E)}function b(E){return E===62?L(E):E===45?v(E):g(E)}function w(E){const T="CDATA[";return E===T.charCodeAt(c++)?(n.consume(E),c===T.length?_:w):i(E)}function _(E){return E===null?i(E):E===93?(n.consume(E),Y):he(E)?(f=_,K(E)):(n.consume(E),_)}function Y(E){return E===93?(n.consume(E),M):_(E)}function M(E){return E===62?L(E):E===93?(n.consume(E),M):_(E)}function q(E){return E===null||E===62?L(E):he(E)?(f=q,K(E)):(n.consume(E),q)}function U(E){return E===null?i(E):E===63?(n.consume(E),I):he(E)?(f=U,K(E)):(n.consume(E),U)}function I(E){return E===62?L(E):U(E)}function F(E){return vt(E)?(n.consume(E),D):i(E)}function D(E){return E===45||pt(E)?(n.consume(E),D):$(E)}function $(E){return he(E)?(f=$,K(E)):Ce(E)?(n.consume(E),$):L(E)}function ue(E){return E===45||pt(E)?(n.consume(E),ue):E===47||E===62||Xe(E)?fe(E):i(E)}function fe(E){return E===47?(n.consume(E),L):E===58||E===95||vt(E)?(n.consume(E),B):he(E)?(f=fe,K(E)):Ce(E)?(n.consume(E),fe):L(E)}function B(E){return E===45||E===46||E===58||E===95||pt(E)?(n.consume(E),B):te(E)}function te(E){return E===61?(n.consume(E),ne):he(E)?(f=te,K(E)):Ce(E)?(n.consume(E),te):fe(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):he(E)?(f=ne,K(E)):Ce(E)?(n.consume(E),ne):(n.consume(E),ie)}function Se(E){return E===s?(n.consume(E),s=void 0,W):E===null?i(E):he(E)?(f=Se,K(E)):(n.consume(E),Se)}function ie(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||Xe(E)?fe(E):(n.consume(E),ie)}function W(E){return E===47||E===62||Xe(E)?fe(E):i(E)}function L(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),r):i(E)}function K(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),re}function re(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 kc={name:"labelEnd",resolveAll:Fv,resolveTo:Kv,tokenize:Jv},Xv={tokenize:Iv},Qv={tokenize:$v},Zv={tokenize:Wv};function Fv(n){let r=-1;const i=[];for(;++r<n.length;){const u=n[r][1];if(i.push(n[r]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const s=u.type==="labelImage"?4:2;u.type="data",r+=s}}return n.length!==i.length&&qt(n,0,n.length,i),n}function Kv(n,r){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,r],["enter",m,r]],d=Wt(d,n.slice(c+1,c+u+3)),d=Wt(d,[["enter",x,r]]),d=Wt(d,ou(r.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),r)),d=Wt(d,[["exit",x,r],n[f-2],n[f-1],["exit",m,r]]),d=Wt(d,n.slice(f+1)),d=Wt(d,[["exit",p,r]]),qt(n,c,n.length,d),n}function Jv(n,r,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(v){return c?c._inactive?g(v):(f=u.parser.defined.includes(ln(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(v),n.exit("labelMarker"),n.exit("labelEnd"),p):i(v)}function p(v){return v===40?n.attempt(Xv,x,f?x:g)(v):v===91?n.attempt(Qv,x,f?m:g)(v):f?x(v):g(v)}function m(v){return n.attempt(Zv,x,g)(v)}function x(v){return r(v)}function g(v){return c._balanced=!0,i(v)}}function Iv(n,r,i){return u;function u(g){return n.enter("resource"),n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),s}function s(g){return Xe(g)?Ea(n,c)(g):c(g)}function c(g){return g===41?x(g):x0(n,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Xe(g)?Ea(n,p)(g):x(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?v0(n,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):x(g)}function m(g){return Xe(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"),r):i(g)}}function $v(n,r,i){const u=this;return s;function s(d){return b0.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)))?r(d):i(d)}function f(d){return i(d)}}function Wv(n,r,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"),r):i(c)}}const Pv={name:"labelStartImage",resolveAll:kc.resolveAll,tokenize:e2};function e2(n,r,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):r(d)}}const t2={name:"labelStartLink",resolveAll:kc.resolveAll,tokenize:n2};function n2(n,r,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):r(f)}}const Ho={name:"lineEnding",tokenize:l2};function l2(n,r){return i;function i(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),_e(n,r,"linePrefix")}}const nu={name:"thematicBreak",tokenize:i2};function i2(n,r,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||he(m))?(n.exit("thematicBreak"),r(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:s2},exit:c2,name:"list",tokenize:u2},a2={partial:!0,tokenize:f2},r2={partial:!0,tokenize:o2};function u2(n,r,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(b){const w=u.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!u.containerState.marker||b===u.containerState.marker:ic(b)){if(u.containerState.type||(u.containerState.type=w,n.enter(w,{_container:!0})),w==="listUnordered")return n.enter("listItemPrefix"),b===42||b===45?n.check(nu,i,m)(b):m(b);if(!u.interrupt||b===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(b)}return i(b)}function p(b){return ic(b)&&++f<10?(n.consume(b),p):(!u.interrupt||f<2)&&(u.containerState.marker?b===u.containerState.marker:b===41||b===46)?(n.exit("listItemValue"),m(b)):i(b)}function m(b){return n.enter("listItemMarker"),n.consume(b),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||b,n.check(_a,u.interrupt?i:x,n.attempt(a2,v,g))}function x(b){return u.containerState.initialBlankLine=!0,c++,v(b)}function g(b){return Ce(b)?(n.enter("listItemPrefixWhitespace"),n.consume(b),n.exit("listItemPrefixWhitespace"),v):i(b)}function v(b){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(b)}}function s2(n,r,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,r,"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(r2,r,f)(d))}function f(d){return u.containerState._closeFlow=!0,u.interrupt=void 0,_e(n,n.attempt(Nt,r,i),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function o2(n,r,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?r(c):i(c)}}function c2(n){n.exit(this.containerState.type)}function f2(n,r,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"?r(c):i(c)}}const cp={name:"setextUnderline",resolveTo:h2,tokenize:d2};function h2(n,r){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,r]),n.splice(c+1,0,["exit",n[u][1],r]),n[u][1].end={...n[c][1].end}):n[u][1]=f,n.push(["exit",f,r]),n}function d2(n,r,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||he(m)?(n.exit("setextHeadingLine"),r(m)):i(m)}}const m2={tokenize:p2};function p2(n){const r=this,i=n.attempt(_a,u,n.attempt(this.parser.constructs.flowInitial,s,_e(n,n.attempt(this.parser.constructs.flow,s,n.attempt(vv,s)),"linePrefix")));return i;function u(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function s(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),r.currentConstruct=void 0,i}}const g2={resolveAll:z0()},y2=S0("string"),x2=S0("text");function S0(n){return{resolveAll:z0(n==="text"?b2:void 0),tokenize:r};function r(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 v=-1;if(g)for(;++v<g.length;){const b=g[v];if(!b.previous||b.previous.call(u,u.previous))return!0}return!1}}}function z0(n){return r;function r(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 b2(n,r){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=r.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(r._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,r],["exit",m,r]),i+=2)}i++}return n}const v2={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:m0},S2={91:Cv},z2={[-2]:Uo,[-1]:Uo,32:Uo},k2={35:Mv,42:nu,45:[cp,nu],60:Rv,61:cp,95:nu,96:sp,126:sp},E2={38:g0,92:p0},C2={[-5]:Ho,[-4]:Ho,[-3]:Ho,33:Pv,38:g0,42:ac,60:[tv,Vv],91:t2,92:[Nv,p0],93:kc,95:ac,96:mv},w2={null:[ac,g2]},T2={null:[42,95]},A2={null:[]},N2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:T2,contentInitial:S2,disable:A2,document:v2,flow:k2,flowInitial:z2,insideSpan:w2,string:E2,text:C2},Symbol.toStringTag,{value:"Module"}));function _2(n,r,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:$(F),check:$(D),consume:q,enter:U,exit:I,interrupt:$(D,{interrupt:!0})},m={code:null,containerState:{},defineSkip:_,events:[],now:w,parser:n,previous:null,sliceSerialize:v,sliceStream:b,write:g};let x=r.tokenize.call(m,p);return r.resolveAll&&c.push(r),m;function g(te){return f=Wt(f,te),Y(),f[f.length-1]!==null?[]:(ue(r,0),m.events=ou(c,m.events,m),m.events)}function v(te,ne){return j2(b(te),ne)}function b(te){return M2(f,te)}function w(){const{_bufferIndex:te,_index:ne,line:Se,column:ie,offset:W}=u;return{_bufferIndex:te,_index:ne,line:Se,column:ie,offset:W}}function _(te){s[te.line]=te.column,B()}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;)M(ne.charCodeAt(u._bufferIndex));else M(ne)}}function M(te){x=x(te)}function q(te){he(te)?(u.line++,u.column=1,u.offset+=te===-3?2:1,B()):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 U(te,ne){const Se=ne||{};return Se.type=te,Se.start=w(),m.events.push(["enter",Se,m]),d.push(Se),Se}function I(te){const ne=d.pop();return ne.end=w(),m.events.push(["exit",ne,m]),ne}function F(te,ne){ue(te,ne.from)}function D(te,ne){ne.restore()}function $(te,ne){return Se;function Se(ie,W,L){let K,re,ve,E;return Array.isArray(ie)?G(ie):"tokenize"in ie?G([ie]):T(ie);function T(oe){return we;function we(Ke){const Ue=Ke!==null&&oe[Ke],Yt=Ke!==null&&oe.null,fn=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(Yt)?Yt:Yt?[Yt]:[]];return G(fn)(Ke)}}function G(oe){return K=oe,re=0,oe.length===0?L:k(oe[re])}function k(oe){return we;function we(Ke){return E=fe(),ve=oe,oe.partial||(m.currentConstruct=oe),oe.name&&m.parser.constructs.disable.null.includes(oe.name)?me():oe.tokenize.call(ne?Object.assign(Object.create(m),ne):m,p,ee,me)(Ke)}}function ee(oe){return te(ve,E),W}function me(oe){return E.restore(),++re<K.length?k(K[re]):L}}}function ue(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 fe(){const te=w(),ne=m.previous,Se=m.currentConstruct,ie=m.events.length,W=Array.from(d);return{from:ie,restore:L};function L(){u=te,m.previous=ne,m.currentConstruct=Se,m.events.length=ie,d=W,B()}}function B(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function M2(n,r){const i=r.start._index,u=r.start._bufferIndex,s=r.end._index,c=r.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 j2(n,r){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=`
|
|
242
|
+
color: hsl(${Math.max(0,Math.min(120-120*U,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 Ym(n,a){if(n===void 0)throw new Error("Unexpected undefined");return n}const Ux=(n,a)=>Math.abs(n-a)<1.01,Hx=(n,a,i)=>{let u;return function(...s){n.clearTimeout(u),u=n.setTimeout(()=>a.apply(this,s),i)}},Vm=n=>{const{offsetWidth:a,offsetHeight:i}=n;return{width:a,height:i}},qx=n=>n,Yx=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},Vx=(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(Vm(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(Vm(i))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return c.observe(i,{box:"border-box"}),()=>{c.unobserve(i)}},Gm={passive:!0},Xm=typeof window>"u"?!0:"onscrollend"in window,Gx=(n,a)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;let s=0;const c=n.options.useScrollendEvent&&Xm?()=>{}:Hx(u,()=>{a(s,!1)},n.options.isScrollingResetDelay),f=x=>()=>{const{horizontal:g,isRtl:v}=n.options;s=g?i.scrollLeft*(v&&-1||1):i.scrollTop,c(),a(s,x)},d=f(!0),p=f(!1);i.addEventListener("scroll",d,Gm);const m=n.options.useScrollendEvent&&Xm;return m&&i.addEventListener("scrollend",p,Gm),()=>{i.removeEventListener("scroll",d),m&&i.removeEventListener("scrollend",p)}},Xx=(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"]},Qx=(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 Zx{constructor(a){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,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:qx,rangeExtractor:Yx,onChange:()=>{},measureElement:Xx,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=gi(()=>(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.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._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},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=gi(()=>[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}),this.getMeasurements=gi(()=>[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 v of this.laneAssignments.keys())v>=i&&this.laneAssignments.delete(v);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(v=>{this.itemSizeCache.set(v.key,v.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 v=0;v<m;v++){const b=x[v];b&&(g[b.lane]=v)}for(let v=m;v<i;v++){const b=c(v),w=this.laneAssignments.get(v);let M,U;if(w!==void 0&&this.options.lanes>1){M=w;const I=g[M],F=I!==void 0?x[I]:void 0;U=F?F.end+this.options.gap:u+s}else{const I=this.options.lanes===1?x[v-1]:this.getFurthestMeasurement(x,v);U=I?I.end+this.options.gap:u+s,M=I?I.lane:v%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(v,M)}const _=p.get(b),Y=typeof _=="number"?_:this.options.estimateSize(v),H=U+Y;x[v]={index:v,start:U,size:Y,end:H,key:b,lane:M},g[M]=v}return this.measurementsCache=x,x},{key:!1,debug:()=>this.options.debug}),this.calculateRange=gi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,u,s,c)=>this.range=i.length>0&&u>0?Fx({measurements:i,outerSize:u,scrollOffset:s,lanes:c}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=gi(()=>{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=gi(()=>[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 Ym(u[$p(0,u.length-1,s=>Ym(u[s]).start,i)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const i=this.scrollElement.document.documentElement;return this.options.horizontal?i.scrollWidth-this.scrollElement.innerWidth:i.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(i,u,s=0)=>{if(!this.scrollElement)return 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.getMaxScrollOffset();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];if(u==="end"&&i===this.options.count-1)return[this.getMaxScrollOffset(),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)),this.currentScrollToIndex=i;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,v]=x;this._scrollToOffset(g,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const b=()=>{if(this.currentScrollToIndex!==i)return;const w=this.getScrollOffset(),M=this.getOffsetForIndex(i,v);if(!M){console.warn("Failed to get offset for index:",i);return}Ux(M[0],w)||p(v)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(b):b()})},p=m=>{this.targetWindow&&this.currentScrollToIndex===i&&(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 $p=(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 Fx({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=$p(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"?se.useLayoutEffect:se.useEffect;function Kx({useFlushSync:n=!0,...a}){const i=se.useReducer(()=>({}),{})[1],u={...a,onChange:(c,f)=>{var d;n&&f?Bx.flushSync(i):i(),(d=a.onChange)==null||d.call(a,c,f)}},[s]=se.useState(()=>new Zx(u));return s.setOptions(u),Qm(()=>s._didMount(),[]),Qm(()=>s._willUpdate()),s}function Jx(n){return Kx({observeElementRect:Vx,observeElementOffset:Gx,scrollToFn:Qx,...n})}const Ix=se.memo(function(a){const{sessions:i,selectedSession:u,onSelectSession:s,loading:c}=a,[f,d]=se.useState(""),p=se.useRef(null),m=se.useMemo(()=>{if(!f.trim())return i;const g=f.toLowerCase();return i.filter(v=>v.display.toLowerCase().includes(g)||v.projectName.toLowerCase().includes(g))},[i,f]),x=Jx({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 v=m[g.index];return S.jsxs("button",{"data-index":g.index,ref:x.measureElement,onClick:()=>s(v.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===v.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:v.projectName}),S.jsx("span",{className:"text-[10px] text-zinc-600",children:Ip(v.timestamp)})]}),S.jsx("p",{className:"text-[12px] text-zinc-300 leading-snug line-clamp-2 break-words",children:v.display})]},v.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 $x(n,a){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const Wx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Px=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eb={};function Zm(n,a){return(eb.jsx?Px:Wx).test(n)}const tb=/[ \t\n\f\r]/g;function nb(n){return typeof n=="object"?n.type==="text"?Fm(n.value):!1:Fm(n)}function Fm(n){return n.replace(tb,"")===""}class _a{constructor(a,i,u){this.normal=i,this.property=a,u&&(this.space=u)}}_a.prototype.normal={};_a.prototype.property={};_a.prototype.space=void 0;function Wp(n,a){const i={},u={};for(const s of n)Object.assign(i,s.property),Object.assign(u,s.normal);return new _a(i,u,a)}function ec(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 lb=0;const be=Tl(),it=Tl(),tc=Tl(),J=Tl(),Qe=Tl(),vi=Tl(),Ht=Tl();function Tl(){return 2**++lb}const nc=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:it,commaOrSpaceSeparated:Ht,commaSeparated:vi,number:J,overloadedBoolean:tc,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),Ro=Object.keys(nc);class pc extends _t{constructor(a,i,u,s){let c=-1;if(super(a,i),Km(this,"space",s),typeof u=="number")for(;++c<Ro.length;){const f=Ro[c];Km(this,Ro[c],(u&nc[f])===nc[f])}}}pc.prototype.defined=!0;function Km(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 pc(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,i[ec(u)]=u,i[ec(c.attribute)]=u}return new _a(a,i,n.space)}const Pp=zi({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:it,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:Qe,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:J,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:Qe,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:it,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function e0(n,a){return a in n?n[a]:a}function t0(n,a){return e0(n,a.toLowerCase())}const ib=zi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vi,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Qe,autoFocus:be,autoPlay:be,blocking:Qe,capture:null,charSet:null,checked:be,cite:null,className:Qe,cols:J,colSpan:null,content:null,contentEditable:it,controls:be,controlsList:Qe,coords:J|vi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:tc,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Qe,height:J,hidden:tc,high:J,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:be,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,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:J,pattern:null,ping:Qe,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Qe,required:be,reversed:be,rows:J,rowSpan:J,sandbox:Qe,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:it,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,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:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:be,disableRemotePlayback:be,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:t0}),ab=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:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Qe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,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:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Ht,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,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:J,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:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Ht,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ht,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,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:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:e0}),n0=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()}}),l0=zi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:t0}),i0=zi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),rb={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"},ub=/[A-Z]/g,Jm=/-[a-z]/g,sb=/^data[-\w.:]+$/i;function ob(n,a){const i=ec(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"&&sb.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(Jm,fb);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!Jm.test(c)){let f=c.replace(ub,cb);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=pc}return new s(u,a)}function cb(n){return"-"+n.toLowerCase()}function fb(n){return n.charAt(1).toUpperCase()}const hb=Wp([Pp,ib,n0,l0,i0],"html"),gc=Wp([Pp,ab,n0,l0,i0],"svg");function db(n){return n.join(" ").trim()}var yi={},Lo,Im;function mb(){if(Im)return Lo;Im=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="",v="comment",b="declaration";function w(U,_){if(typeof U!="string")throw new TypeError("First argument must be a string");if(!U)return[];_=_||{};var Y=1,H=1;function I(ie){var W=ie.match(a);W&&(Y+=W.length);var L=ie.lastIndexOf(p);H=~L?ie.length-L:H+ie.length}function F(){var ie={line:Y,column:H};return function(W){return W.position=new D(ie),fe(),W}}function D(ie){this.start=ie,this.end={line:Y,column:H},this.source=_.source}D.prototype.content=U;function $(ie){var W=new Error(_.source+":"+Y+":"+H+": "+ie);if(W.reason=ie,W.filename=_.source,W.line=Y,W.column=H,W.source=U,!_.silent)throw W}function ue(ie){var W=ie.exec(U);if(W){var L=W[0];return I(L),U=U.slice(L.length),W}}function fe(){ue(i)}function B(ie){var W;for(ie=ie||[];W=te();)W!==!1&&ie.push(W);return ie}function te(){var ie=F();if(!(m!=U.charAt(0)||x!=U.charAt(1))){for(var W=2;g!=U.charAt(W)&&(x!=U.charAt(W)||m!=U.charAt(W+1));)++W;if(W+=2,g===U.charAt(W-1))return $("End of comment missing");var L=U.slice(2,W-2);return H+=2,I(L),U=U.slice(W),H+=2,ie({type:v,comment:L})}}function ne(){var ie=F(),W=ue(u);if(W){if(te(),!ue(s))return $("property missing ':'");var L=ue(c),K=ie({type:b,property:M(W[0].replace(n,g)),value:L?M(L[0].replace(n,g)):g});return ue(f),K}}function Se(){var ie=[];B(ie);for(var W;W=ne();)W!==!1&&(ie.push(W),B(ie));return ie}return fe(),Se()}function M(U){return U?U.replace(d,g):g}return Lo=w,Lo}var $m;function pb(){if($m)return yi;$m=1;var n=yi&&yi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=i;const a=n(mb());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 yi}var va={},Wm;function gb(){if(Wm)return va;Wm=1,Object.defineProperty(va,"__esModule",{value:!0}),va.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 va.camelCase=p,va}var Sa,Pm;function yb(){if(Pm)return Sa;Pm=1;var n=Sa&&Sa.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(pb()),i=gb();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,Sa=u,Sa}var xb=yb();const bb=Hp(xb),a0=r0("end"),yc=r0("start");function r0(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 vb(n){const a=yc(n),i=a0(n);if(a&&i)return{start:a,end:i}}function Ea(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?ep(n.position):"start"in n||"end"in n?ep(n):"line"in n||"column"in n?lc(n):""}function lc(n){return tp(n&&n.line)+":"+tp(n&&n.column)}function ep(n){return lc(n&&n.start)+"-"+lc(n&&n.end)}function tp(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=Ea(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 xc={}.hasOwnProperty,Sb=new Map,zb=/[A-Z]/g,kb=new Set(["table","tbody","thead","tfoot","tr"]),Eb=new Set(["td","th"]),u0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Cb(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const 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=Ob(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=jb(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"?gc:hb,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=s0(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function s0(n,a,i){if(a.type==="element")return wb(n,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Tb(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Nb(n,a,i);if(a.type==="mdxjsEsm")return Ab(n,a);if(a.type==="root")return _b(n,a,i);if(a.type==="text")return Mb(n,a)}function wb(n,a,i){const u=n.schema;let s=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=gc,n.schema=s),n.ancestors.push(a);const c=c0(n,a.tagName,!1),f=Db(n,a);let d=vc(n,a);return kb.has(a.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!nb(p):!0})),o0(n,f,c,a),bc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Tb(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)}Ta(n,a.position)}function Ab(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Ta(n,a.position)}function Nb(n,a,i){const u=n.schema;let s=u;a.name==="svg"&&u.space==="html"&&(s=gc,n.schema=s),n.ancestors.push(a);const c=a.name===null?n.Fragment:c0(n,a.name,!0),f=Rb(n,a),d=vc(n,a);return o0(n,f,c,a),bc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function _b(n,a,i){const u={};return bc(u,vc(n,a)),n.create(a,n.Fragment,u,i)}function Mb(n,a){return a.value}function o0(n,a,i,u){typeof i!="string"&&i!==n.Fragment&&n.passNode&&(a.node=u)}function bc(n,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(n.children=i)}}function jb(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 Ob(n,a){return i;function i(u,s,c,f){const d=Array.isArray(c.children),p=yc(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 Db(n,a){const i={};let u,s;for(s in a.properties)if(s!=="children"&&xc.call(a.properties,s)){const c=Lb(n,s,a.properties[s]);if(c){const[f,d]=c;n.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&Eb.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 Rb(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 Ta(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 Ta(n,a.position);else c=u.value===null?!0:u.value;i[s]=c}return i}function vc(n,a){const i=[];let u=-1;const s=n.passKeys?new Map:Sb;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=s0(n,c,f);d!==void 0&&i.push(d)}return i}function Lb(n,a,i){const u=ob(n.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=u.commaSeparated?$x(i):db(i)),u.property==="style"){let s=typeof i=="object"?i:Bb(n,String(i));return n.stylePropertyNameCase==="css"&&(s=Ub(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?rb[u.property]||u.property:u.attribute,i]}}function Bb(n,a){try{return bb(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=u0+"#cannot-parse-style-attribute",s}}function c0(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=Zm(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=Zm(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const s=u.value;return xc.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);Ta(n)}function Ta(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=u0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Ub(n){const a={};let i;for(i in n)xc.call(n,i)&&(a[Hb(i)]=n[i]);return a}function Hb(n){let a=n.replace(zb,qb);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function qb(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"]},Yb={};function Sc(n,a){const i=Yb,u=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return f0(n,u,s)}function f0(n,a,i){if(Vb(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 np(n.children,a,i)}return Array.isArray(n)?np(n,a,i):""}function np(n,a,i){const u=[];let s=-1;for(;++s<n.length;)u[s]=f0(n[s],a,i);return u.join("")}function Vb(n){return!!(n&&typeof n=="object")}const lp=document.createElement("i");function zc(n){const a="&"+n+";";lp.innerHTML=a;const i=lp.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 ip={}.hasOwnProperty;function h0(n){const a={};let i=-1;for(;++i<n.length;)Gb(a,n[i]);return a}function Gb(n,a){let i;for(i in a){const s=(ip.call(n,i)?n[i]:void 0)||(n[i]={}),c=a[i];let f;if(c)for(f in c){ip.call(s,f)||(s[f]=[]);const d=c[f];Xb(s[f],Array.isArray(d)?d:d?[d]:[])}}}function Xb(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 d0(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=rl(/[A-Za-z]/),pt=rl(/[\dA-Za-z]/),Qb=rl(/[#-'*+\--9=?A-Z^-~]/);function iu(n){return n!==null&&(n<32||n===127)}const ic=rl(/\d/),Zb=rl(/[\dA-Fa-f]/),Fb=rl(/[!-/:-@[-`{-~]/);function he(n){return n!==null&&n<-2}function Xe(n){return n!==null&&(n<0||n===32)}function Ce(n){return n===-2||n===-1||n===32}const su=rl(new RegExp("\\p{P}|\\p{S}","u")),wl=rl(/\s/);function rl(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 Kb={tokenize:Jb};function Jb(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 he(d)?(n.consume(d),n.exit("chunkText"),c):(n.consume(d),f)}}const Ib={tokenize:$b},ap={tokenize:Wb};function $b(n){const a=this,i=[];let u=0,s,c,f;return d;function d(H){if(u<i.length){const I=i[u];return a.containerState=I[1],n.attempt(I[0].continuation,p,m)(H)}return m(H)}function p(H){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&Y();const I=a.events.length;let F=I,D;for(;F--;)if(a.events[F][0]==="exit"&&a.events[F][1].type==="chunkFlow"){D=a.events[F][1].end;break}_(u);let $=I;for(;$<a.events.length;)a.events[$][1].end={...D},$++;return qt(a.events,F+1,0,a.events.slice(I)),a.events.length=$,m(H)}return d(H)}function m(H){if(u===i.length){if(!s)return v(H);if(s.currentConstruct&&s.currentConstruct.concrete)return w(H);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(ap,x,g)(H)}function x(H){return s&&Y(),_(u),v(H)}function g(H){return a.parser.lazy[a.now().line]=u!==i.length,f=a.now().offset,w(H)}function v(H){return a.containerState={},n.attempt(ap,b,w)(H)}function b(H){return u++,i.push([a.currentConstruct,a.containerState]),v(H)}function w(H){if(H===null){s&&Y(),_(0),n.consume(H);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),M(H)}function M(H){if(H===null){U(n.exit("chunkFlow"),!0),_(0),n.consume(H);return}return he(H)?(n.consume(H),U(n.exit("chunkFlow")),u=0,a.interrupt=void 0,d):(n.consume(H),M)}function U(H,I){const F=a.sliceStream(H);if(I&&F.push(null),H.previous=c,c&&(c.next=H),c=H,s.defineSkip(H.start),s.write(F),a.parser.lazy[H.start.line]){let D=s.events.length;for(;D--;)if(s.events[D][1].start.offset<f&&(!s.events[D][1].end||s.events[D][1].end.offset>f))return;const $=a.events.length;let ue=$,fe,B;for(;ue--;)if(a.events[ue][0]==="exit"&&a.events[ue][1].type==="chunkFlow"){if(fe){B=a.events[ue][1].end;break}fe=!0}for(_(u),D=$;D<a.events.length;)a.events[D][1].end={...B},D++;qt(a.events,ue+1,0,a.events.slice($)),a.events.length=D}}function _(H){let I=i.length;for(;I-- >H;){const F=i[I];a.containerState=F[1],F[0].exit.call(a,n)}i.length=H}function Y(){s.write([null]),c=void 0,s=void 0,a.containerState._closeFlow=void 0}}function Wb(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||Xe(n)||wl(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 ac={name:"attention",resolveAll:Pb,tokenize:ev};function Pb(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},v={...n[i][1].start};rp(g,-p),rp(v,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:v},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 ev(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),v=!s||s===2&&x||i.includes(u);return m._open=!!(c===42?g:g&&(s||!v)),m._close=!!(c===42?v:v&&(x||!g)),a(p)}}function rp(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const tv={name:"autolink",tokenize:nv};function nv(n,a,i){let u=0;return s;function s(b){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(b){return vt(b)?(n.consume(b),f):b===64?i(b):m(b)}function f(b){return b===43||b===45||b===46||pt(b)?(u=1,d(b)):m(b)}function d(b){return b===58?(n.consume(b),u=0,p):(b===43||b===45||b===46||pt(b))&&u++<32?(n.consume(b),d):(u=0,m(b))}function p(b){return b===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.exit("autolink"),a):b===null||b===32||b===60||iu(b)?i(b):(n.consume(b),p)}function m(b){return b===64?(n.consume(b),x):Qb(b)?(n.consume(b),m):i(b)}function x(b){return pt(b)?g(b):i(b)}function g(b){return b===46?(n.consume(b),u=0,x):b===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(b),n.exit("autolinkMarker"),n.exit("autolink"),a):v(b)}function v(b){if((b===45||pt(b))&&u++<63){const w=b===45?v:g;return n.consume(b),w}return i(b)}}const Ma={partial:!0,tokenize:lv};function lv(n,a,i){return u;function u(c){return Ce(c)?_e(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||he(c)?a(c):i(c)}}const m0={continuation:{tokenize:av},exit:rv,name:"blockQuote",tokenize:iv};function iv(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 av(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(m0,a,i)(f)}}function rv(n){n.exit("blockQuote")}const p0={name:"characterEscape",tokenize:uv};function uv(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 Fb(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(c)}}const g0={name:"characterReference",tokenize:sv};function sv(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=Zb,x):(n.enter("characterReferenceValue"),c=7,f=ic,x(g))}function x(g){if(g===59&&s){const v=n.exit("characterReferenceValue");return f===pt&&!zc(u.sliceSerialize(v))?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 up={partial:!0,tokenize:cv},sp={concrete:!0,name:"codeFenced",tokenize:ov};function ov(n,a,i){const u=this,s={partial:!0,tokenize:F};let c=0,f=0,d;return p;function p(D){return m(D)}function m(D){const $=u.events[u.events.length-1];return c=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,d=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(D)}function x(D){return D===d?(f++,n.consume(D),x):f<3?i(D):(n.exit("codeFencedFenceSequence"),Ce(D)?_e(n,g,"whitespace")(D):g(D))}function g(D){return D===null||he(D)?(n.exit("codeFencedFence"),u.interrupt?a(D):n.check(up,M,I)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),v(D))}function v(D){return D===null||he(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(D)):Ce(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),_e(n,b,"whitespace")(D)):D===96&&D===d?i(D):(n.consume(D),v)}function b(D){return D===null||he(D)?g(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),w(D))}function w(D){return D===null||he(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(D)):D===96&&D===d?i(D):(n.consume(D),w)}function M(D){return n.attempt(s,I,U)(D)}function U(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),_}function _(D){return c>0&&Ce(D)?_e(n,Y,"linePrefix",c+1)(D):Y(D)}function Y(D){return D===null||he(D)?n.check(up,M,I)(D):(n.enter("codeFlowValue"),H(D))}function H(D){return D===null||he(D)?(n.exit("codeFlowValue"),Y(D)):(n.consume(D),H)}function I(D){return n.exit("codeFenced"),a(D)}function F(D,$,ue){let fe=0;return B;function B(W){return D.enter("lineEnding"),D.consume(W),D.exit("lineEnding"),te}function te(W){return D.enter("codeFencedFence"),Ce(W)?_e(D,ne,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):ne(W)}function ne(W){return W===d?(D.enter("codeFencedFenceSequence"),Se(W)):ue(W)}function Se(W){return W===d?(fe++,D.consume(W),Se):fe>=f?(D.exit("codeFencedFenceSequence"),Ce(W)?_e(D,ie,"whitespace")(W):ie(W)):ue(W)}function ie(W){return W===null||he(W)?(D.exit("codeFencedFence"),$(W)):ue(W)}}}function cv(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:hv},fv={partial:!0,tokenize:dv};function hv(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):he(m)?n.attempt(fv,f,p)(m):(n.enter("codeFlowValue"),d(m))}function d(m){return m===null||he(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),d)}function p(m){return n.exit("codeIndented"),a(m)}}function dv(n,a,i){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?i(f):he(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):he(f)?s(f):i(f)}}const mv={name:"codeText",previous:gv,resolve:pv,tokenize:yv};function pv(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 gv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yv(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)):he(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||he(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 xv{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&&za(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),za(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),za(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);za(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);za(this.left,i.reverse())}}}function za(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 y0(n){const a={};let i=-1,u,s,c,f,d,p,m;const x=new xv(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,bv(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 bv(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,v=-1,b=i,w=0,M=0;const U=[M];for(;b;){for(;n.get(++s)[1]!==b;);c.push(s),b._tokenizer||(x=u.sliceStream(b),b.next||x.push(null),g&&f.defineSkip(b.start),b._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(x),b._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=i;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(M=v+1,U.push(M),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(f.events=[],b?(b._tokenizer=void 0,b.previous=void 0):U.pop(),v=U.length;v--;){const _=d.slice(U[v],U[v+1]),Y=c.pop();p.push([Y,Y+_.length-1]),n.splice(Y,2,_)}for(p.reverse(),v=-1;++v<p.length;)m[w+p[v][0]]=w+p[v][1],w+=p[v][1]-p[v][0]-1;return m}const vv={resolve:zv,tokenize:kv},Sv={partial:!0,tokenize:Ev};function zv(n){return y0(n),n}function kv(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):he(d)?n.check(Sv,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 Ev(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||he(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 x0(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),v):_===null||_===32||_===41||iu(_)?i(_):(n.enter(u),n.enter(f),n.enter(d),n.enter("chunkString",{contentType:"string"}),M(_))}function v(_){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"}),b(_))}function b(_){return _===62?(n.exit("chunkString"),n.exit(d),v(_)):_===null||_===60||he(_)?i(_):(n.consume(_),_===92?w:b)}function w(_){return _===60||_===62||_===92?(n.consume(_),b):b(_)}function M(_){return!x&&(_===null||_===41||Xe(_))?(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?U:M)}function U(_){return _===40||_===41||_===92?(n.consume(_),M):M(_)}}function b0(n,a,i,u,s,c){const f=this;let d=0,p;return m;function m(b){return n.enter(u),n.enter(s),n.consume(b),n.exit(s),n.enter(c),x}function x(b){return d>999||b===null||b===91||b===93&&!p||b===94&&!d&&"_hiddenFootnoteSupport"in f.parser.constructs?i(b):b===93?(n.exit(c),n.enter(s),n.consume(b),n.exit(s),n.exit(u),a):he(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||he(b)||d++>999?(n.exit("chunkString"),x(b)):(n.consume(b),p||(p=!Ce(b)),b===92?v:g)}function v(b){return b===91||b===92||b===93?(n.consume(b),d++,g):g(b)}}function v0(n,a,i,u,s,c){let f;return d;function d(v){return v===34||v===39||v===40?(n.enter(u),n.enter(s),n.consume(v),n.exit(s),f=v===40?41:v,p):i(v)}function p(v){return v===f?(n.enter(s),n.consume(v),n.exit(s),n.exit(u),a):(n.enter(c),m(v))}function m(v){return v===f?(n.exit(c),p(f)):v===null?i(v):he(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),_e(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(v))}function x(v){return v===f||v===null||he(v)?(n.exit("chunkString"),m(v)):(n.consume(v),v===92?g:x)}function g(v){return v===f||v===92?(n.consume(v),x):x(v)}}function Ca(n,a){let i;return u;function u(s){return he(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 Cv={name:"definition",tokenize:Tv},wv={partial:!0,tokenize:Av};function Tv(n,a,i){const u=this;let s;return c;function c(b){return n.enter("definition"),f(b)}function f(b){return b0.call(u,n,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function d(b){return s=ln(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),b===58?(n.enter("definitionMarker"),n.consume(b),n.exit("definitionMarker"),p):i(b)}function p(b){return Xe(b)?Ca(n,m)(b):m(b)}function m(b){return x0(n,x,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function x(b){return n.attempt(wv,g,g)(b)}function g(b){return Ce(b)?_e(n,v,"whitespace")(b):v(b)}function v(b){return b===null||he(b)?(n.exit("definition"),u.parser.defined.push(s),a(b)):i(b)}}function Av(n,a,i){return u;function u(d){return Xe(d)?Ca(n,s)(d):i(d)}function s(d){return v0(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||he(d)?a(d):i(d)}}const Nv={name:"hardBreakEscape",tokenize:_v};function _v(n,a,i){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return he(c)?(n.exit("hardBreakEscape"),a(c)):i(c)}}const Mv={name:"headingAtx",resolve:jv,tokenize:Ov};function jv(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 Ov(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||Xe(x)?(n.exit("atxHeadingSequence"),d(x)):i(x)}function d(x){return x===35?(n.enter("atxHeadingSequence"),p(x)):x===null||he(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||Xe(x)?(n.exit("atxHeadingText"),d(x)):(n.consume(x),m)}}const Dv=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],op=["pre","script","style","textarea"],Rv={concrete:!0,name:"htmlFlow",resolveTo:Uv,tokenize:Hv},Lv={partial:!0,tokenize:Yv},Bv={partial:!0,tokenize:qv};function Uv(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 Hv(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),v):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),U):i(k)}function v(k){return k===45?(n.consume(k),s=2,b):k===91?(n.consume(k),s=5,d=0,w):vt(k)?(n.consume(k),s=4,u.interrupt?a:E):i(k)}function b(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),U):i(k)}function U(k){if(k===null||k===47||k===62||Xe(k)){const ee=k===47,me=f.toLowerCase();return!ee&&!c&&op.includes(me)?(s=1,u.interrupt?a(k):ne(k)):Dv.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?Y(k):H(k))}return k===45||pt(k)?(n.consume(k),f+=String.fromCharCode(k),U):i(k)}function _(k){return k===62?(n.consume(k),u.interrupt?a:ne):i(k)}function Y(k){return Ce(k)?(n.consume(k),Y):B(k)}function H(k){return k===47?(n.consume(k),B):k===58||k===95||vt(k)?(n.consume(k),I):Ce(k)?(n.consume(k),H):B(k)}function I(k){return k===45||k===46||k===58||k===95||pt(k)?(n.consume(k),I):F(k)}function F(k){return k===61?(n.consume(k),D):Ce(k)?(n.consume(k),F):H(k)}function D(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),D):ue(k)}function $(k){return k===p?(n.consume(k),p=null,fe):k===null||he(k)?i(k):(n.consume(k),$)}function ue(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Xe(k)?F(k):(n.consume(k),ue)}function fe(k){return k===47||k===62||Ce(k)?H(k):i(k)}function B(k){return k===62?(n.consume(k),te):i(k)}function te(k){return k===null||he(k)?ne(k):Ce(k)?(n.consume(k),te):i(k)}function ne(k){return k===45&&s===2?(n.consume(k),L):k===60&&s===1?(n.consume(k),K):k===62&&s===4?(n.consume(k),T):k===63&&s===3?(n.consume(k),E):k===93&&s===5?(n.consume(k),ve):he(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(Lv,G,Se)(k)):k===null||he(k)?(n.exit("htmlFlowData"),Se(k)):(n.consume(k),ne)}function Se(k){return n.check(Bv,ie,G)(k)}function ie(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),W}function W(k){return k===null||he(k)?Se(k):(n.enter("htmlFlowData"),ne(k))}function L(k){return k===45?(n.consume(k),E):ne(k)}function K(k){return k===47?(n.consume(k),f="",re):ne(k)}function re(k){if(k===62){const ee=f.toLowerCase();return op.includes(ee)?(n.consume(k),T):ne(k)}return vt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),re):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||he(k)?(n.exit("htmlFlowData"),G(k)):(n.consume(k),T)}function G(k){return n.exit("htmlFlow"),a(k)}}function qv(n,a,i){const u=this;return s;function s(f){return he(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 Yv(n,a,i){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(Ma,a,i)}}const Vv={name:"htmlText",tokenize:Gv};function Gv(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),F):E===63?(n.consume(E),H):vt(E)?(n.consume(E),ue):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),Y):i(E)}function x(E){return E===45?(n.consume(E),b):i(E)}function g(E){return E===null?i(E):E===45?(n.consume(E),v):he(E)?(f=g,K(E)):(n.consume(E),g)}function v(E){return E===45?(n.consume(E),b):g(E)}function b(E){return E===62?L(E):E===45?v(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),U):he(E)?(f=M,K(E)):(n.consume(E),M)}function U(E){return E===93?(n.consume(E),_):M(E)}function _(E){return E===62?L(E):E===93?(n.consume(E),_):M(E)}function Y(E){return E===null||E===62?L(E):he(E)?(f=Y,K(E)):(n.consume(E),Y)}function H(E){return E===null?i(E):E===63?(n.consume(E),I):he(E)?(f=H,K(E)):(n.consume(E),H)}function I(E){return E===62?L(E):H(E)}function F(E){return vt(E)?(n.consume(E),D):i(E)}function D(E){return E===45||pt(E)?(n.consume(E),D):$(E)}function $(E){return he(E)?(f=$,K(E)):Ce(E)?(n.consume(E),$):L(E)}function ue(E){return E===45||pt(E)?(n.consume(E),ue):E===47||E===62||Xe(E)?fe(E):i(E)}function fe(E){return E===47?(n.consume(E),L):E===58||E===95||vt(E)?(n.consume(E),B):he(E)?(f=fe,K(E)):Ce(E)?(n.consume(E),fe):L(E)}function B(E){return E===45||E===46||E===58||E===95||pt(E)?(n.consume(E),B):te(E)}function te(E){return E===61?(n.consume(E),ne):he(E)?(f=te,K(E)):Ce(E)?(n.consume(E),te):fe(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):he(E)?(f=ne,K(E)):Ce(E)?(n.consume(E),ne):(n.consume(E),ie)}function Se(E){return E===s?(n.consume(E),s=void 0,W):E===null?i(E):he(E)?(f=Se,K(E)):(n.consume(E),Se)}function ie(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||Xe(E)?fe(E):(n.consume(E),ie)}function W(E){return E===47||E===62||Xe(E)?fe(E):i(E)}function L(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),a):i(E)}function K(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),re}function re(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 kc={name:"labelEnd",resolveAll:Fv,resolveTo:Kv,tokenize:Jv},Xv={tokenize:Iv},Qv={tokenize:$v},Zv={tokenize:Wv};function Fv(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 Kv(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 Jv(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(v){return c?c._inactive?g(v):(f=u.parser.defined.includes(ln(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(v),n.exit("labelMarker"),n.exit("labelEnd"),p):i(v)}function p(v){return v===40?n.attempt(Xv,x,f?x:g)(v):v===91?n.attempt(Qv,x,f?m:g)(v):f?x(v):g(v)}function m(v){return n.attempt(Zv,x,g)(v)}function x(v){return a(v)}function g(v){return c._balanced=!0,i(v)}}function Iv(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 Xe(g)?Ca(n,c)(g):c(g)}function c(g){return g===41?x(g):x0(n,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Xe(g)?Ca(n,p)(g):x(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?v0(n,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):x(g)}function m(g){return Xe(g)?Ca(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 $v(n,a,i){const u=this;return s;function s(d){return b0.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 Wv(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 Pv={name:"labelStartImage",resolveAll:kc.resolveAll,tokenize:e2};function e2(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 t2={name:"labelStartLink",resolveAll:kc.resolveAll,tokenize:n2};function n2(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:l2};function l2(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:i2};function i2(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||he(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:s2},exit:c2,name:"list",tokenize:u2},a2={partial:!0,tokenize:f2},r2={partial:!0,tokenize:o2};function u2(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(b){const w=u.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!u.containerState.marker||b===u.containerState.marker:ic(b)){if(u.containerState.type||(u.containerState.type=w,n.enter(w,{_container:!0})),w==="listUnordered")return n.enter("listItemPrefix"),b===42||b===45?n.check(nu,i,m)(b):m(b);if(!u.interrupt||b===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(b)}return i(b)}function p(b){return ic(b)&&++f<10?(n.consume(b),p):(!u.interrupt||f<2)&&(u.containerState.marker?b===u.containerState.marker:b===41||b===46)?(n.exit("listItemValue"),m(b)):i(b)}function m(b){return n.enter("listItemMarker"),n.consume(b),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||b,n.check(Ma,u.interrupt?i:x,n.attempt(a2,v,g))}function x(b){return u.containerState.initialBlankLine=!0,c++,v(b)}function g(b){return Ce(b)?(n.enter("listItemPrefixWhitespace"),n.consume(b),n.exit("listItemPrefixWhitespace"),v):i(b)}function v(b){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(b)}}function s2(n,a,i){const u=this;return u.containerState._closeFlow=void 0,n.check(Ma,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(r2,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 o2(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 c2(n){n.exit(this.containerState.type)}function f2(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 cp={name:"setextUnderline",resolveTo:h2,tokenize:d2};function h2(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 d2(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||he(m)?(n.exit("setextHeadingLine"),a(m)):i(m)}}const m2={tokenize:p2};function p2(n){const a=this,i=n.attempt(Ma,u,n.attempt(this.parser.constructs.flowInitial,s,_e(n,n.attempt(this.parser.constructs.flow,s,n.attempt(vv,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 g2={resolveAll:z0()},y2=S0("string"),x2=S0("text");function S0(n){return{resolveAll:z0(n==="text"?b2: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 v=-1;if(g)for(;++v<g.length;){const b=g[v];if(!b.previous||b.previous.call(u,u.previous))return!0}return!1}}}function z0(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 b2(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 v2={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:m0},S2={91:Cv},z2={[-2]:Uo,[-1]:Uo,32:Uo},k2={35:Mv,42:nu,45:[cp,nu],60:Rv,61:cp,95:nu,96:sp,126:sp},E2={38:g0,92:p0},C2={[-5]:Ho,[-4]:Ho,[-3]:Ho,33:Pv,38:g0,42:ac,60:[tv,Vv],91:t2,92:[Nv,p0],93:kc,95:ac,96:mv},w2={null:[ac,g2]},T2={null:[42,95]},A2={null:[]},N2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:T2,contentInitial:S2,disable:A2,document:v2,flow:k2,flowInitial:z2,insideSpan:w2,string:E2,text:C2},Symbol.toStringTag,{value:"Module"}));function _2(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:$(F),check:$(D),consume:Y,enter:H,exit:I,interrupt:$(D,{interrupt:!0})},m={code:null,containerState:{},defineSkip:M,events:[],now:w,parser:n,previous:null,sliceSerialize:v,sliceStream:b,write:g};let x=a.tokenize.call(m,p);return a.resolveAll&&c.push(a),m;function g(te){return f=Wt(f,te),U(),f[f.length-1]!==null?[]:(ue(a,0),m.events=ou(c,m.events,m),m.events)}function v(te,ne){return j2(b(te),ne)}function b(te){return M2(f,te)}function w(){const{_bufferIndex:te,_index:ne,line:Se,column:ie,offset:W}=u;return{_bufferIndex:te,_index:ne,line:Se,column:ie,offset:W}}function M(te){s[te.line]=te.column,B()}function U(){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 Y(te){he(te)?(u.line++,u.column=1,u.offset+=te===-3?2:1,B()):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 H(te,ne){const Se=ne||{};return Se.type=te,Se.start=w(),m.events.push(["enter",Se,m]),d.push(Se),Se}function I(te){const ne=d.pop();return ne.end=w(),m.events.push(["exit",ne,m]),ne}function F(te,ne){ue(te,ne.from)}function D(te,ne){ne.restore()}function $(te,ne){return Se;function Se(ie,W,L){let K,re,ve,E;return Array.isArray(ie)?G(ie):"tokenize"in ie?G([ie]):T(ie);function T(oe){return we;function we(Ke){const Ue=Ke!==null&&oe[Ke],Yt=Ke!==null&&oe.null,fn=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(Yt)?Yt:Yt?[Yt]:[]];return G(fn)(Ke)}}function G(oe){return K=oe,re=0,oe.length===0?L:k(oe[re])}function k(oe){return we;function we(Ke){return E=fe(),ve=oe,oe.partial||(m.currentConstruct=oe),oe.name&&m.parser.constructs.disable.null.includes(oe.name)?me():oe.tokenize.call(ne?Object.assign(Object.create(m),ne):m,p,ee,me)(Ke)}}function ee(oe){return te(ve,E),W}function me(oe){return E.restore(),++re<K.length?k(K[re]):L}}}function ue(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 fe(){const te=w(),ne=m.previous,Se=m.currentConstruct,ie=m.events.length,W=Array.from(d);return{from:ie,restore:L};function L(){u=te,m.previous=ne,m.currentConstruct=Se,m.events.length=ie,d=W,B()}}function B(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function M2(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 j2(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
244
|
`;break}case-3:{f=`\r
|
|
245
|
-
`;break}case-2:{f=r?" ":" ";break}case-1:{if(!r&&s)continue;f=" ";break}default:f=String.fromCharCode(c)}s=c===-2,u.push(f)}return u.join("")}function O2(n){const u={constructs:h0([N2,...(n||{}).extensions||[]]),content:s(Kb),defined:[],document:s(Ib),flow:s(m2),lazy:{},string:s(y2),text:s(x2)};return u;function s(c){return f;function f(d){return _2(u,c,d)}}}function D2(n){for(;!y0(n););return n}const fp=/[\0\t\n\r]/g;function R2(){let n=1,r="",i=!0,u;return s;function s(c,f,d){const p=[];let m,x,g,v,b;for(c=r+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),g=0,r="",i&&(c.charCodeAt(0)===65279&&g++,i=void 0);g<c.length;){if(fp.lastIndex=g,m=fp.exec(c),v=m&&m.index!==void 0?m.index:c.length,b=c.charCodeAt(v),!m){r=c.slice(g);break}if(b===10&&g===v&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),g<v&&(p.push(c.slice(g,v)),n+=v-g),b){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=v+1}return d&&(u&&p.push(-5),r&&p.push(r),p.push(null)),p}}const L2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function B2(n){return n.replace(L2,U2)}function U2(n,r,i){if(r)return r;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),c=s===120||s===88;return d0(i.slice(c?2:1),c?16:10)}return zc(i)||n}const k0={}.hasOwnProperty;function H2(n,r,i){return typeof r!="string"&&(i=r,r=void 0),q2(i)(D2(O2(i).document().write(R2()(n,r,!0))))}function q2(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Nl),autolinkProtocol:fe,autolinkEmail:fe,atxHeading:c(Tl),blockQuote:c(Yt),characterEscape:fe,characterReference:fe,codeFenced:c(fn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(fn,f),codeText:c(Ei,f),codeTextData:fe,data:fe,codeFlowValue:fe,definition:c(Oa),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(hn),hardBreakEscape:c(Al),hardBreakTrailing:c(Al),htmlFlow:c(Da,f),htmlFlowData:fe,htmlText:c(Da,f),htmlTextData:fe,image:c(Ra),label:f,link:c(Nl),listItem:c(Ci),listItemValue:v,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:F,autolink:p(),autolinkEmail:Ue,autolinkProtocol:Ke,blockQuote:p(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:oe,characterReference:we,codeFenced:p(Y),codeFencedFence:_,codeFencedFenceInfo:b,codeFencedFenceMeta:w,codeFlowValue:B,codeIndented:p(M),codeText:p(W),codeTextData:B,data:B,definition:p(),definitionDestinationString:I,definitionLabelString:q,definitionTitleString:U,emphasis:p(),hardBreakEscape:p(ne),hardBreakTrailing:p(ne),htmlFlow:p(Se),htmlFlowData:B,htmlText:p(ie),htmlTextData:B,image:p(K),label:ve,labelText:re,lineEnding:te,link:p(L),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ee,resourceDestinationString:E,resourceTitleString:T,resource:G,setextHeading:p(ue),setextHeadingLineSequence:$,setextHeadingText:D,strong:p(),thematicBreak:p()}};E0(r,(n||{}).mdastExtensions||[]);const i={};return u;function u(X){let P={type:"root",children:[]};const pe={stack:[P],tokenStack:[],config:r,enter:d,exit:m,buffer:f,resume:x,data:i},ze=[];let Re=-1;for(;++Re<X.length;)if(X[Re][1].type==="listOrdered"||X[Re][1].type==="listUnordered")if(X[Re][0]==="enter")ze.push(Re);else{const Mt=ze.pop();Re=s(X,Mt,Re)}for(Re=-1;++Re<X.length;){const Mt=r[X[Re][0]];k0.call(Mt,X[Re][1].type)&&Mt[X[Re][1].type].call(Object.assign({sliceSerialize:X[Re][2].sliceSerialize},pe),X[Re][1])}if(pe.tokenStack.length>0){const Mt=pe.tokenStack[pe.tokenStack.length-1];(Mt[1]||hp).call(pe,void 0,Mt[0])}for(P.position={start:il(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:il(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<r.transforms.length;)P=r.transforms[Re](P)||P;return P}function s(X,P,pe){let ze=P-1,Re=-1,Mt=!1,dn,xt,at,St;for(;++ze<=pe;){const Ve=X[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=X[On];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;xt&&(X[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?X[xt][1].start:Ve[1].end),X.splice(xt||ze,0,["exit",dn,Ve[2]]),ze++,pe++}if(Ve[1].type==="listItemPrefix"){const On={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};dn=On,X.splice(ze,0,["enter",On,Ve[2]]),ze++,pe++,at=void 0,St=!0}}}return X[P][1]._spread=Mt,pe}function c(X,P){return pe;function pe(ze){d.call(this,X(ze),ze),P&&P.call(this,ze)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(X,P,pe){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([P,pe||void 0]),X.position={start:il(P.start),end:void 0}}function p(X){return P;function P(pe){X&&X.call(this,pe),m.call(this,pe)}}function m(X,P){const pe=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==X.type&&(P?P.call(this,X,ze[0]):(ze[1]||hp).call(this,X,ze[0]));else throw new Error("Cannot close `"+X.type+"` ("+ka({start:X.start,end:X.end})+"): it’s not open");pe.position.end=il(X.end)}function x(){return Sc(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function b(){const X=this.resume(),P=this.stack[this.stack.length-1];P.lang=X}function w(){const X=this.resume(),P=this.stack[this.stack.length-1];P.meta=X}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Y(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function M(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X.replace(/(\r?\n|\r)$/g,"")}function q(X){const P=this.resume(),pe=this.stack[this.stack.length-1];pe.label=P,pe.identifier=ln(this.sliceSerialize(X)).toLowerCase()}function U(){const X=this.resume(),P=this.stack[this.stack.length-1];P.title=X}function I(){const X=this.resume(),P=this.stack[this.stack.length-1];P.url=X}function F(X){const P=this.stack[this.stack.length-1];if(!P.depth){const pe=this.sliceSerialize(X).length;P.depth=pe}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function $(X){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function fe(X){const pe=this.stack[this.stack.length-1].children;let ze=pe[pe.length-1];(!ze||ze.type!=="text")&&(ze=yt(),ze.position={start:il(X.start),end:void 0},pe.push(ze)),this.stack.push(ze)}function B(X){const P=this.stack.pop();P.value+=this.sliceSerialize(X),P.position.end=il(X.end)}function te(X){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const pe=P.children[P.children.length-1];pe.position.end=il(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(P.type)&&(fe.call(this,X),B.call(this,X))}function ne(){this.data.atHardBreak=!0}function Se(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X}function ie(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X}function W(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X}function L(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=P,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function K(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=P,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function re(X){const P=this.sliceSerialize(X),pe=this.stack[this.stack.length-2];pe.label=B2(P),pe.identifier=ln(P).toLowerCase()}function ve(){const X=this.stack[this.stack.length-1],P=this.resume(),pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,pe.type==="link"){const ze=X.children;pe.children=ze}else pe.alt=P}function E(){const X=this.resume(),P=this.stack[this.stack.length-1];P.url=X}function T(){const X=this.resume(),P=this.stack[this.stack.length-1];P.title=X}function G(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function ee(X){const P=this.resume(),pe=this.stack[this.stack.length-1];pe.label=P,pe.identifier=ln(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function me(X){this.data.characterReferenceType=X.type}function oe(X){const P=this.sliceSerialize(X),pe=this.data.characterReferenceType;let ze;pe?(ze=d0(P,pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=zc(P);const Re=this.stack[this.stack.length-1];Re.value+=ze}function we(X){const P=this.stack.pop();P.position.end=il(X.end)}function Ke(X){B.call(this,X);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(X)}function Ue(X){B.call(this,X);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(X)}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(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Ci(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function du(){return{type:"paragraph",children:[]}}function mu(){return{type:"strong",children:[]}}function yt(){return{type:"text",value:""}}function pu(){return{type:"thematicBreak"}}}function il(n){return{line:n.line,column:n.column,offset:n.offset}}function E0(n,r){let i=-1;for(;++i<r.length;){const u=r[i];Array.isArray(u)?E0(n,u):Y2(n,u)}}function Y2(n,r){let i;for(i in r)if(k0.call(r,i))switch(i){case"canContainEols":{const u=r[i];u&&n[i].push(...u);break}case"transforms":{const u=r[i];u&&n[i].push(...u);break}case"enter":case"exit":{const u=r[i];u&&Object.assign(n[i],u);break}}}function hp(n,r){throw n?new Error("Cannot close `"+n.type+"` ("+ka({start:n.start,end:n.end})+"): a different token (`"+r.type+"`, "+ka({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+ka({start:r.start,end:r.end})+") is still open")}function V2(n){const r=this;r.parser=i;function i(u){return H2(u,{...r.data("settings"),...n,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function G2(n,r){const i={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(r),!0)};return n.patch(r,i),n.applyData(r,i)}function X2(n,r){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(r,i),[n.applyData(r,i),{type:"text",value:`
|
|
246
|
-
`}]}function Q2(n,
|
|
247
|
-
`:"",u={},s=
|
|
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 O2(n){const u={constructs:h0([N2,...(n||{}).extensions||[]]),content:s(Kb),defined:[],document:s(Ib),flow:s(m2),lazy:{},string:s(y2),text:s(x2)};return u;function s(c){return f;function f(d){return _2(u,c,d)}}}function D2(n){for(;!y0(n););return n}const fp=/[\0\t\n\r]/g;function R2(){let n=1,a="",i=!0,u;return s;function s(c,f,d){const p=[];let m,x,g,v,b;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(fp.lastIndex=g,m=fp.exec(c),v=m&&m.index!==void 0?m.index:c.length,b=c.charCodeAt(v),!m){a=c.slice(g);break}if(b===10&&g===v&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),g<v&&(p.push(c.slice(g,v)),n+=v-g),b){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=v+1}return d&&(u&&p.push(-5),a&&p.push(a),p.push(null)),p}}const L2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function B2(n){return n.replace(L2,U2)}function U2(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),c=s===120||s===88;return d0(i.slice(c?2:1),c?16:10)}return zc(i)||n}const k0={}.hasOwnProperty;function H2(n,a,i){return typeof a!="string"&&(i=a,a=void 0),q2(i)(D2(O2(i).document().write(R2()(n,a,!0))))}function q2(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(_l),autolinkProtocol:fe,autolinkEmail:fe,atxHeading:c(Al),blockQuote:c(Yt),characterEscape:fe,characterReference:fe,codeFenced:c(fn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(fn,f),codeText:c(Ci,f),codeTextData:fe,data:fe,codeFlowValue:fe,definition:c(Oa),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(hn),hardBreakEscape:c(Nl),hardBreakTrailing:c(Nl),htmlFlow:c(Da,f),htmlFlowData:fe,htmlText:c(Da,f),htmlTextData:fe,image:c(Ra),label:f,link:c(_l),listItem:c(wi),listItemValue:v,listOrdered:c(Ml,g),listUnordered:c(Ml),paragraph:c(du),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(Al),strong:c(mu),thematicBreak:c(pu)},exit:{atxHeading:p(),atxHeadingSequence:F,autolink:p(),autolinkEmail:Ue,autolinkProtocol:Ke,blockQuote:p(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:oe,characterReference:we,codeFenced:p(U),codeFencedFence:M,codeFencedFenceInfo:b,codeFencedFenceMeta:w,codeFlowValue:B,codeIndented:p(_),codeText:p(W),codeTextData:B,data:B,definition:p(),definitionDestinationString:I,definitionLabelString:Y,definitionTitleString:H,emphasis:p(),hardBreakEscape:p(ne),hardBreakTrailing:p(ne),htmlFlow:p(Se),htmlFlowData:B,htmlText:p(ie),htmlTextData:B,image:p(K),label:ve,labelText:re,lineEnding:te,link:p(L),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ee,resourceDestinationString:E,resourceTitleString:T,resource:G,setextHeading:p(ue),setextHeadingLineSequence:$,setextHeadingText:D,strong:p(),thematicBreak:p()}};E0(a,(n||{}).mdastExtensions||[]);const i={};return u;function u(X){let P={type:"root",children:[]};const pe={stack:[P],tokenStack:[],config:a,enter:d,exit:m,buffer:f,resume:x,data:i},ze=[];let Re=-1;for(;++Re<X.length;)if(X[Re][1].type==="listOrdered"||X[Re][1].type==="listUnordered")if(X[Re][0]==="enter")ze.push(Re);else{const Mt=ze.pop();Re=s(X,Mt,Re)}for(Re=-1;++Re<X.length;){const Mt=a[X[Re][0]];k0.call(Mt,X[Re][1].type)&&Mt[X[Re][1].type].call(Object.assign({sliceSerialize:X[Re][2].sliceSerialize},pe),X[Re][1])}if(pe.tokenStack.length>0){const Mt=pe.tokenStack[pe.tokenStack.length-1];(Mt[1]||hp).call(pe,void 0,Mt[0])}for(P.position={start:il(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:il(X.length>0?X[X.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(X,P,pe){let ze=P-1,Re=-1,Mt=!1,dn,xt,at,St;for(;++ze<=pe;){const Ve=X[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=X[On];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;xt&&(X[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?X[xt][1].start:Ve[1].end),X.splice(xt||ze,0,["exit",dn,Ve[2]]),ze++,pe++}if(Ve[1].type==="listItemPrefix"){const On={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};dn=On,X.splice(ze,0,["enter",On,Ve[2]]),ze++,pe++,at=void 0,St=!0}}}return X[P][1]._spread=Mt,pe}function c(X,P){return pe;function pe(ze){d.call(this,X(ze),ze),P&&P.call(this,ze)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(X,P,pe){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([P,pe||void 0]),X.position={start:il(P.start),end:void 0}}function p(X){return P;function P(pe){X&&X.call(this,pe),m.call(this,pe)}}function m(X,P){const pe=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==X.type&&(P?P.call(this,X,ze[0]):(ze[1]||hp).call(this,X,ze[0]));else throw new Error("Cannot close `"+X.type+"` ("+Ea({start:X.start,end:X.end})+"): it’s not open");pe.position.end=il(X.end)}function x(){return Sc(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function b(){const X=this.resume(),P=this.stack[this.stack.length-1];P.lang=X}function w(){const X=this.resume(),P=this.stack[this.stack.length-1];P.meta=X}function M(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function U(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X.replace(/(\r?\n|\r)$/g,"")}function Y(X){const P=this.resume(),pe=this.stack[this.stack.length-1];pe.label=P,pe.identifier=ln(this.sliceSerialize(X)).toLowerCase()}function H(){const X=this.resume(),P=this.stack[this.stack.length-1];P.title=X}function I(){const X=this.resume(),P=this.stack[this.stack.length-1];P.url=X}function F(X){const P=this.stack[this.stack.length-1];if(!P.depth){const pe=this.sliceSerialize(X).length;P.depth=pe}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function $(X){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function fe(X){const pe=this.stack[this.stack.length-1].children;let ze=pe[pe.length-1];(!ze||ze.type!=="text")&&(ze=yt(),ze.position={start:il(X.start),end:void 0},pe.push(ze)),this.stack.push(ze)}function B(X){const P=this.stack.pop();P.value+=this.sliceSerialize(X),P.position.end=il(X.end)}function te(X){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const pe=P.children[P.children.length-1];pe.position.end=il(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(P.type)&&(fe.call(this,X),B.call(this,X))}function ne(){this.data.atHardBreak=!0}function Se(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X}function ie(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X}function W(){const X=this.resume(),P=this.stack[this.stack.length-1];P.value=X}function L(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=P,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function K(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=P,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function re(X){const P=this.sliceSerialize(X),pe=this.stack[this.stack.length-2];pe.label=B2(P),pe.identifier=ln(P).toLowerCase()}function ve(){const X=this.stack[this.stack.length-1],P=this.resume(),pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,pe.type==="link"){const ze=X.children;pe.children=ze}else pe.alt=P}function E(){const X=this.resume(),P=this.stack[this.stack.length-1];P.url=X}function T(){const X=this.resume(),P=this.stack[this.stack.length-1];P.title=X}function G(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function ee(X){const P=this.resume(),pe=this.stack[this.stack.length-1];pe.label=P,pe.identifier=ln(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function me(X){this.data.characterReferenceType=X.type}function oe(X){const P=this.sliceSerialize(X),pe=this.data.characterReferenceType;let ze;pe?(ze=d0(P,pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=zc(P);const Re=this.stack[this.stack.length-1];Re.value+=ze}function we(X){const P=this.stack.pop();P.position.end=il(X.end)}function Ke(X){B.call(this,X);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(X)}function Ue(X){B.call(this,X);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(X)}function Yt(){return{type:"blockquote",children:[]}}function fn(){return{type:"code",lang:null,meta:null,value:""}}function Ci(){return{type:"inlineCode",value:""}}function Oa(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function hn(){return{type:"emphasis",children:[]}}function Al(){return{type:"heading",depth:0,children:[]}}function Nl(){return{type:"break"}}function Da(){return{type:"html",value:""}}function Ra(){return{type:"image",title:null,url:"",alt:null}}function _l(){return{type:"link",title:null,url:"",children:[]}}function Ml(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function wi(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function du(){return{type:"paragraph",children:[]}}function mu(){return{type:"strong",children:[]}}function yt(){return{type:"text",value:""}}function pu(){return{type:"thematicBreak"}}}function il(n){return{line:n.line,column:n.column,offset:n.offset}}function E0(n,a){let i=-1;for(;++i<a.length;){const u=a[i];Array.isArray(u)?E0(n,u):Y2(n,u)}}function Y2(n,a){let i;for(i in a)if(k0.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 hp(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Ea({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Ea({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Ea({start:a.start,end:a.end})+") is still open")}function V2(n){const a=this;a.parser=i;function i(u){return H2(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function G2(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 X2(n,a){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,i),[n.applyData(a,i),{type:"text",value:`
|
|
246
|
+
`}]}function Q2(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 Z2(n,a){const i={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function F2(n,a){const i={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function K2(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 J2(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 I2(n,a){if(n.options.allowDangerousHtml){const i={type:"raw",value:a.value};return n.patch(a,i),n.applyData(a,i)}}function C0(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 $2(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return C0(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 W2(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 P2(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 eS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return C0(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 tS(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 nS(n,a,i){const u=n.all(a),s=i?lS(i):w0(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
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(
|
|
249
|
+
`});const m={type:"element",tagName:"li",properties:c,children:f};return n.patch(a,m),n.applyData(a,m)}function lS(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=w0(i[u])}return a}function w0(n){const a=n.spread;return a??n.children.length>1}function iS(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 aS(n,a){const i={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function rS(n,a){const i={type:"root",children:n.wrap(n.all(a))};return n.patch(a,i),n.applyData(a,i)}function uS(n,a){const i={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function sS(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=yc(a.children[1]),p=a0(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 oS(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],v={},b=f?f[p]:void 0;b&&(v.align=b);let w={type:"element",tagName:c,properties:v,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 cS(n,a){const i={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}const dp=9,mp=32;function fS(n){const a=String(n),i=/\r?\n|\r/g;let u=i.exec(a),s=0;const c=[];for(;u;)c.push(pp(a.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=i.exec(a);return c.push(pp(a.slice(s),s>0,!1)),c.join("")}function pp(n,a,i){let u=0,s=n.length;if(a){let c=n.codePointAt(u);for(;c===dp||c===mp;)u++,c=n.codePointAt(u)}if(i){let c=n.codePointAt(s-1);for(;c===dp||c===mp;)s--,c=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function hS(n,a){const i={type:"text",value:fS(String(a.value))};return n.patch(a,i),n.applyData(a,i)}function dS(n,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,i),n.applyData(a,i)}const mS={blockquote:G2,break:X2,code:Q2,delete:Z2,emphasis:F2,footnoteReference:K2,heading:J2,html:I2,imageReference:$2,image:W2,inlineCode:P2,linkReference:eS,link:tS,listItem:nS,list:iS,paragraph:aS,root:rS,strong:uS,table:sS,tableCell:cS,tableRow:oS,text:hS,thematicBreak:dS,toml:Wr,yaml:Wr,definition:Wr,footnoteDefinition:Wr};function Wr(){}const T0=-1,cu=0,wa=1,au=2,Ec=3,Cc=4,wc=5,Tc=6,A0=7,N0=8,gp=typeof self=="object"?self:globalThis,pS=(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 T0:return i(f,s);case wa:{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 Ec:return i(new Date(f),s);case Cc:{const{source:d,flags:p}=f;return i(new RegExp(d,p),s)}case wc:{const d=i(new Map,s);for(const[p,m]of f)d.set(u(p),u(m));return d}case Tc:{const d=i(new Set,s);for(const p of f)d.add(u(p));return d}case A0:{const{name:d,message:p}=f;return i(new gp[d](p),s)}case N0: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 gp[c](f),s)};return u},yp=n=>pS(new Map,n)(0),xi="",{toString:gS}={},{keys:yS}=Object,ka=n=>{const a=typeof n;if(a!=="object"||!n)return[cu,a];const i=gS.call(n).slice(8,-1);switch(i){case"Array":return[wa,xi];case"Object":return[au,xi];case"Date":return[Ec,xi];case"RegExp":return[Cc,xi];case"Map":return[wc,xi];case"Set":return[Tc,xi];case"DataView":return[wa,i]}return i.includes("Array")?[wa,i]:i.includes("Error")?[A0,i]:[au,i]},Pr=([n,a])=>n===cu&&(a==="function"||a==="symbol"),xS=(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]=ka(f);switch(d){case cu:{let x=f;switch(p){case"bigint":d=N0,x=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);x=null;break;case"undefined":return s([T0],f)}return s([d,x],f)}case wa:{if(p){let v=f;return p==="DataView"?v=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(v=new Uint8Array(f)),s([p,[...v]],f)}const x=[],g=s([d,x],f);for(const v of f)x.push(c(v));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 v of yS(f))(n||!Pr(ka(f[v])))&&x.push([c(v),c(f[v])]);return g}case Ec:return s([d,f.toISOString()],f);case Cc:{const{source:x,flags:g}=f;return s([d,{source:x,flags:g}],f)}case wc:{const x=[],g=s([d,x],f);for(const[v,b]of f)(n||!(Pr(ka(v))||Pr(ka(b))))&&x.push([c(v),c(b)]);return g}case Tc:{const x=[],g=s([d,x],f);for(const v of f)(n||!Pr(ka(v)))&&x.push(c(v));return g}}const{message:m}=f;return s([d,{name:p,message:m}],f)};return c},xp=(n,{json:a,lossy:i}={})=>{const u=[];return xS(!(a||i),!!a,new Map,u)(n),u},ru=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?yp(xp(n,a)):structuredClone(n):(n,a)=>yp(xp(n,a));function bS(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 vS(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function SS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||bS,u=n.options.footnoteBackLabel||vS,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(),v=ki(g.toLowerCase());let b=0;const w=[],M=n.footnoteCounts.get(g);for(;M!==void 0&&++b<=M;){w.length>0&&w.push({type:"text",value:" "});let Y=typeof i=="string"?i:i(p,b);typeof Y=="string"&&(Y={type:"text",value:Y}),w.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+v+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,b),className:["data-footnote-backref"]},children:Array.isArray(Y)?Y:[Y]})}const U=x[x.length-1];if(U&&U.type==="element"&&U.tagName==="p"){const Y=U.children[U.children.length-1];Y&&Y.type==="text"?Y.value+=" ":U.children.push({type:"text",value:" "}),U.children.push(...w)}else x.push(...w);const _={type:"element",tagName:"li",properties:{id:a+"fn-"+v},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
250
|
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(d,!0)},{type:"text",value:`
|
|
251
|
-
`}]}}const fu=(function(n){if(n==null)return CS;if(typeof n=="function")return hu(n);if(typeof n=="object")return Array.isArray(n)?zS(n):kS(n);if(typeof n=="string")return ES(n);throw new Error("Expected function, string, or object as test")});function zS(n){const
|
|
251
|
+
`}]}}const fu=(function(n){if(n==null)return CS;if(typeof n=="function")return hu(n);if(typeof n=="object")return Array.isArray(n)?zS(n):kS(n);if(typeof n=="string")return ES(n);throw new Error("Expected function, string, or object as test")});function zS(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 kS(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 ES(n){return hu(a);function a(i){return i&&i.type===n}}function hu(n){return a;function a(i,u,s){return!!(wS(i)&&n.call(this,i,typeof u=="number"?u:void 0,s||void 0))}}function CS(){return!0}function wS(n){return n!==null&&typeof n=="object"&&"type"in n}const _0=[],TS=!0,rc=!1,AS="skip";function M0(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 b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(p.type+(b?"<"+b+">":""))+")"})}return v;function v(){let b=_0,w,M,U;if((!a||c(p,m,x[x.length-1]||void 0))&&(b=NS(i(p,x)),b[0]===rc))return b;if("children"in p&&p.children){const _=p;if(_.children&&b[0]!==AS)for(M=(u?_.children.length:-1)+f,U=x.concat(_);M>-1&&M<_.children.length;){const Y=_.children[M];if(w=d(Y,M,U)(),w[0]===rc)return w;M=typeof w[1]=="number"?w[1]:M+f}}return b}}}function NS(n){return Array.isArray(n)?n:typeof n=="number"?[TS,n]:n==null?_0:[n]}function Ac(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),M0(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 uc={}.hasOwnProperty,_S={};function MS(n,a){const i=a||_S,u=new Map,s=new Map,c=new Map,f={...mS,...i.handlers},d={all:m,applyData:OS,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:p,options:i,patch:jS,wrap:RS};return Ac(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const g=x.type==="definition"?u:s,v=String(x.identifier).toUpperCase();g.has(v)||g.set(v,x)}}),d;function p(x,g){const v=x.type,b=d.handlers[v];if(uc.call(d.handlers,v)&&b)return b(d,x,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in x){const{children:M,...U}=x,_=ru(U);return _.children=d.all(x),_}return ru(x)}return(d.options.unknownHandler||DS)(d,x,g)}function m(x){const g=[];if("children"in x){const v=x.children;let b=-1;for(;++b<v.length;){const w=d.one(v[b],x);if(w){if(b&&v[b-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=bp(w.value)),!Array.isArray(w)&&w.type==="element")){const M=w.children[0];M&&M.type==="text"&&(M.value=bp(M.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function jS(n,a){n.position&&(a.position=vb(n))}function OS(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 DS(n,a){const i=a.data||{},u="value"in a&&!(uc.call(i,"hProperties")||uc.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 RS(n,a){const i=[];let u=-1;for(a&&i.push({type:"text",value:`
|
|
252
252
|
`});++u<n.length;)u&&i.push({type:"text",value:`
|
|
253
|
-
`}),i.push(n[u]);return
|
|
254
|
-
`}),i}function bp(n){let
|
|
255
|
-
`},s),c}function LS(n,r){return n&&"run"in n?async function(i,u){const s=vp(i,{file:u,...r});await n.run(s,u)}:function(i,u){return vp(i,{file:u,...n||r})}}function Sp(n){if(n)throw n}var qo,zp;function BS(){if(zp)return qo;zp=1;var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):r.call(m)==="[object Array]"},c=function(m){if(!m||r.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 v;for(v in m);return typeof v>"u"||n.call(m,v)},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,v,b,w,_=arguments[0],Y=1,M=arguments.length,q=!1;for(typeof _=="boolean"&&(q=_,_=arguments[1]||{},Y=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});Y<M;++Y)if(m=arguments[Y],m!=null)for(x in m)g=d(_,x),v=d(m,x),_!==v&&(q&&v&&(c(v)||(b=s(v)))?(b?(b=!1,w=g&&s(g)?g:[]):w=g&&c(g)?g:{},f(_,{name:x,newValue:p(q,w,v)})):typeof v<"u"&&f(_,{name:x,newValue:v}));return _},qo}var US=BS();const Yo=Hp(US);function sc(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function HS(){const n=[],r={run:i,use:u};return r;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?qS(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),r}}function qS(n,r){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,r(f,...d))}function c(f){s(null,f)}}const on={basename:YS,dirname:VS,extname:GS,join:XS,sep:"/"};function YS(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Ma(n);let i=0,u=-1,s=n.length,c;if(r===void 0||r.length===0||r.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(r===n)return"";let f=-1,d=r.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)===r.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 VS(n){if(Ma(n),n.length===0)return".";let r=-1,i=n.length,u;for(;--i;)if(n.codePointAt(i)===47){if(u){r=i;break}}else u||(u=!0);return r<0?n.codePointAt(0)===47?"/":".":r===1&&n.codePointAt(0)===47?"//":n.slice(0,r)}function GS(n){Ma(n);let r=n.length,i=-1,u=0,s=-1,c=0,f;for(;r--;){const d=n.codePointAt(r);if(d===47){if(f){u=r+1;break}continue}i<0&&(f=!0,i=r+1),d===46?s<0?s=r: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 XS(...n){let r=-1,i;for(;++r<n.length;)Ma(n[r]),n[r]&&(i=i===void 0?n[r]:i+"/"+n[r]);return i===void 0?".":QS(i)}function QS(n){Ma(n);const r=n.codePointAt(0)===47;let i=ZS(n,!r);return i.length===0&&!r&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),r?"/"+i:i}function ZS(n,r){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}}r&&(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 FS={cwd:KS};function KS(){return"/"}function oc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function JS(n){if(typeof n=="string")n=new URL(n);else if(!oc(n)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(n.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return IS(n)}function IS(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 r=n.pathname;let i=-1;for(;++i<r.length;)if(r.codePointAt(i)===37&&r.codePointAt(i+1)===50){const u=r.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(r)}const Vo=["history","path","basename","stem","extname","dirname"];class j0{constructor(r){let i;r?oc(r)?i={path:r}:typeof r=="string"||$S(r)?i={value:r}:i=r:i={},this.cwd="cwd"in i?"":FS.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(r){Xo(r,"basename"),Go(r,"basename"),this.path=on.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?on.dirname(this.path):void 0}set dirname(r){kp(this.basename,"dirname"),this.path=on.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?on.extname(this.path):void 0}set extname(r){if(Go(r,"extname"),kp(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=on.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){oc(r)&&(r=JS(r)),Xo(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?on.basename(this.path,this.extname):void 0}set stem(r){Xo(r,"stem"),Go(r,"stem"),this.path=on.join(this.dirname||"",r+(this.extname||""))}fail(r,i,u){const s=this.message(r,i,u);throw s.fatal=!0,s}info(r,i,u){const s=this.message(r,i,u);return s.fatal=void 0,s}message(r,i,u){const s=new gt(r,i,u);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function Go(n,r){if(n&&n.includes(on.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+on.sep+"`")}function Xo(n,r){if(!n)throw new Error("`"+r+"` cannot be empty")}function kp(n,r){if(!n)throw new Error("Setting `"+r+"` requires `path` to be set too")}function $S(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const WS=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),PS={}.hasOwnProperty;class Nc extends WS{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=HS()}copy(){const r=new Nc;let i=-1;for(;++i<this.attachers.length;){const u=this.attachers[i];r.use(...u)}return r.data(Yo(!0,{},this.namespace)),r}data(r,i){return typeof r=="string"?arguments.length===2?(Fo("data",this.frozen),this.namespace[r]=i,this):PS.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Fo("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=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(r,...u);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const i=eu(r),u=this.parser||this.Parser;return Qo("parse",u),u(String(i),i)}process(r,i){const u=this;return this.freeze(),Qo("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(r),p=u.parse(d);u.run(p,d,function(x,g,v){if(x||!g||!v)return m(x);const b=g,w=u.stringify(b,v);nz(w)?v.value=w:v.result=w,m(x,v)});function m(x,g){x||!g?f(x):c?c(g):i(void 0,g)}}}processSync(r){let i=!1,u;return this.freeze(),Qo("processSync",this.parser||this.Parser),Zo("processSync",this.compiler||this.Compiler),this.process(r,s),Cp("processSync","process",i),u;function s(c,f){i=!0,Sp(c),u=f}}run(r,i,u){Ep(r),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(r,p,m);function m(x,g,v){const b=g||r;x?d(x):f?f(b):u(void 0,b,v)}}}runSync(r,i){let u=!1,s;return this.run(r,i,c),Cp("runSync","run",u),s;function c(f,d){Sp(f),s=d,u=!0}}stringify(r,i){this.freeze();const u=eu(i),s=this.compiler||this.Compiler;return Zo("stringify",s),Ep(r),s(r,u)}use(r,...i){const u=this.attachers,s=this.namespace;if(Fo("use",this.frozen),r!=null)if(typeof r=="function")p(r,i);else if(typeof r=="object")Array.isArray(r)?d(r):f(r);else throw new TypeError("Expected usable value, not `"+r+"`");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,v=-1;for(;++g<u.length;)if(u[g][0]===m){v=g;break}if(v===-1)u.push([m,...x]);else if(x.length>0){let[b,...w]=x;const _=u[v][1];sc(_)&&sc(b)&&(b=Yo(!0,_,b)),u[v]=[m,b,...w]}}}}const ez=new Nc().freeze();function Qo(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Zo(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Fo(n,r){if(r)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ep(n){if(!sc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Cp(n,r,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+r+"` instead")}function eu(n){return tz(n)?n:new j0(n)}function tz(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function nz(n){return typeof n=="string"||lz(n)}function lz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const iz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wp=[],Tp={allowDangerousHtml:!0},az=/^(https?|ircs?|mailto|xmpp)$/i,rz=[{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 uz(n){const r=sz(n),i=oz(n);return cz(r.runSync(r.parse(i),i),n)}function sz(n){const r=n.rehypePlugins||wp,i=n.remarkPlugins||wp,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Tp}:Tp;return ez().use(V2).use(i).use(LS,u).use(r)}function oz(n){const r=n.children||"",i=new j0;return typeof r=="string"&&(i.value=r),i}function cz(n,r){const i=r.allowedElements,u=r.allowElement,s=r.components,c=r.disallowedElements,f=r.skipHtml,d=r.unwrapDisallowed,p=r.urlTransform||fz;for(const x of rz)Object.hasOwn(r,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+iz+x.id,void 0);return Ac(n,m),Cb(n,{Fragment:S.Fragment,components:s,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function m(x,g,v){if(x.type==="raw"&&v&&typeof g=="number")return f?v.children.splice(g,1):v.children[g]={type:"text",value:x.value},g;if(x.type==="element"){let b;for(b in Bo)if(Object.hasOwn(Bo,b)&&Object.hasOwn(x.properties,b)){const w=x.properties[b],_=Bo[b];(_===null||_.includes(x.tagName))&&(x.properties[b]=p(String(w||""),b,x))}}if(x.type==="element"){let b=i?!i.includes(x.tagName):c?c.includes(x.tagName):!1;if(!b&&u&&typeof g=="number"&&(b=!u(x,g,v)),b&&v&&typeof g=="number")return d&&x.children?v.children.splice(g,1,...x.children):v.children.splice(g,1),g}}}function fz(n){const r=n.indexOf(":"),i=n.indexOf("?"),u=n.indexOf("#"),s=n.indexOf("/");return r===-1||s!==-1&&r>s||i!==-1&&r>i||u!==-1&&r>u||az.test(n.slice(0,r))?n:""}function Ap(n,r){const i=String(n);if(typeof r!="string")throw new TypeError("Expected character");let u=0,s=i.indexOf(r);for(;s!==-1;)u++,s=i.indexOf(r,s+r.length);return u}function hz(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function dz(n,r,i){const s=fu((i||{}).ignore||[]),c=mz(r);let f=-1;for(;++f<c.length;)M0(n,"text",d);function d(m,x){let g=-1,v;for(;++g<x.length;){const b=x[g],w=v?v.children:void 0;if(s(b,w?w.indexOf(b):void 0,v))return;v=b}if(v)return p(m,x)}function p(m,x){const g=x[x.length-1],v=c[f][0],b=c[f][1];let w=0;const Y=g.children.indexOf(m);let M=!1,q=[];v.lastIndex=0;let U=v.exec(m.value);for(;U;){const I=U.index,F={index:U.index,input:U.input,stack:[...x,m]};let D=b(...U,F);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?v.lastIndex=I+1:(w!==I&&q.push({type:"text",value:m.value.slice(w,I)}),Array.isArray(D)?q.push(...D):D&&q.push(D),w=I+U[0].length,M=!0),!v.global)break;U=v.exec(m.value)}return M?(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 mz(n){const r=[];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];r.push([pz(s[0]),gz(s[1])])}return r}function pz(n){return typeof n=="string"?new RegExp(hz(n),"g"):n}function gz(n){return typeof n=="function"?n:function(){return n}}const Ko="phrasing",Jo=["autolink","link","image","label"];function yz(){return{transforms:[Ez],enter:{literalAutolink:bz,literalAutolinkEmail:Io,literalAutolinkHttp:Io,literalAutolinkWww:Io},exit:{literalAutolink:kz,literalAutolinkEmail:zz,literalAutolinkHttp:vz,literalAutolinkWww:Sz}}}function xz(){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 bz(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Io(n){this.config.enter.autolinkProtocol.call(this,n)}function vz(n){this.config.exit.autolinkProtocol.call(this,n)}function Sz(n){this.config.exit.data.call(this,n);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(n)}function zz(n){this.config.exit.autolinkEmail.call(this,n)}function kz(n){this.exit(n)}function Ez(n){dz(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Cz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),wz]],{ignore:["link","linkReference"]})}function Cz(n,r,i,u,s){let c="";if(!O0(s)||(/^w/i.test(r)&&(i=r+i,r="",c="http://"),!Tz(i)))return!1;const f=Az(i+u);if(!f[0])return!1;const d={type:"link",title:null,url:c+r+f[0],children:[{type:"text",value:r+f[0]}]};return f[1]?[d,{type:"text",value:f[1]}]:d}function wz(n,r,i,u){return!O0(u,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+i,children:[{type:"text",value:r+"@"+i}]}}function Tz(n){const r=n.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function Az(n){const r=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!r)return[n,void 0];n=n.slice(0,r.index);let i=r[0],u=i.indexOf(")");const s=Ap(n,"(");let c=Ap(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 O0(n,r){const i=n.input.charCodeAt(n.index-1);return(n.index===0||Cl(i)||su(i))&&(!r||i!==47)}D0.peek=Bz;function Nz(){this.buffer()}function _z(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Mz(){this.buffer()}function jz(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function Oz(n){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=ln(this.sliceSerialize(n)).toLowerCase(),i.label=r}function Dz(n){this.exit(n)}function Rz(n){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=ln(this.sliceSerialize(n)).toLowerCase(),i.label=r}function Lz(n){this.exit(n)}function Bz(){return"["}function D0(n,r,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 Uz(){return{enter:{gfmFootnoteCallString:Nz,gfmFootnoteCall:_z,gfmFootnoteDefinitionLabelString:Mz,gfmFootnoteDefinition:jz},exit:{gfmFootnoteCallString:Oz,gfmFootnoteCall:Dz,gfmFootnoteDefinitionLabelString:Rz,gfmFootnoteDefinition:Lz}}}function Hz(n){let r=!1;return n&&n.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:i,footnoteReference:D0},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((r?`
|
|
256
|
-
`:" ")+c.indentLines(c.containerFlow(u,d.current()),
|
|
257
|
-
`)}function Jz(n){return n==null?"":String(n)}function Np(n){const
|
|
253
|
+
`}),i.push(n[u]);return a&&n.length>0&&i.push({type:"text",value:`
|
|
254
|
+
`}),i}function bp(n){let a=0,i=n.charCodeAt(a);for(;i===9||i===32;)a++,i=n.charCodeAt(a);return n.slice(a)}function vp(n,a){const i=MS(n,a),u=i.one(n,void 0),s=SS(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 LS(n,a){return n&&"run"in n?async function(i,u){const s=vp(i,{file:u,...a});await n.run(s,u)}:function(i,u){return vp(i,{file:u,...n||a})}}function Sp(n){if(n)throw n}var qo,zp;function BS(){if(zp)return qo;zp=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 v;for(v in m);return typeof v>"u"||n.call(m,v)},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,v,b,w,M=arguments[0],U=1,_=arguments.length,Y=!1;for(typeof M=="boolean"&&(Y=M,M=arguments[1]||{},U=2),(M==null||typeof M!="object"&&typeof M!="function")&&(M={});U<_;++U)if(m=arguments[U],m!=null)for(x in m)g=d(M,x),v=d(m,x),M!==v&&(Y&&v&&(c(v)||(b=s(v)))?(b?(b=!1,w=g&&s(g)?g:[]):w=g&&c(g)?g:{},f(M,{name:x,newValue:p(Y,w,v)})):typeof v<"u"&&f(M,{name:x,newValue:v}));return M},qo}var US=BS();const Yo=Hp(US);function sc(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 HS(){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?qS(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 qS(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:YS,dirname:VS,extname:GS,join:XS,sep:"/"};function YS(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');ja(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 VS(n){if(ja(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 GS(n){ja(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 XS(...n){let a=-1,i;for(;++a<n.length;)ja(n[a]),n[a]&&(i=i===void 0?n[a]:i+"/"+n[a]);return i===void 0?".":QS(i)}function QS(n){ja(n);const a=n.codePointAt(0)===47;let i=ZS(n,!a);return i.length===0&&!a&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),a?"/"+i:i}function ZS(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 ja(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const FS={cwd:KS};function KS(){return"/"}function oc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function JS(n){if(typeof n=="string")n=new URL(n);else if(!oc(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 IS(n)}function IS(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 j0{constructor(a){let i;a?oc(a)?i={path:a}:typeof a=="string"||$S(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":FS.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){Xo(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){kp(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"),kp(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=on.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){oc(a)&&(a=JS(a)),Xo(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){Xo(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 Xo(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function kp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function $S(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const WS=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),PS={}.hasOwnProperty;class Nc extends WS{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=HS()}copy(){const a=new Nc;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):PS.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 Qo("parse",u),u(String(i),i)}process(a,i){const u=this;return this.freeze(),Qo("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,v){if(x||!g||!v)return m(x);const b=g,w=u.stringify(b,v);nz(w)?v.value=w:v.result=w,m(x,v)});function m(x,g){x||!g?f(x):c?c(g):i(void 0,g)}}}processSync(a){let i=!1,u;return this.freeze(),Qo("processSync",this.parser||this.Parser),Zo("processSync",this.compiler||this.Compiler),this.process(a,s),Cp("processSync","process",i),u;function s(c,f){i=!0,Sp(c),u=f}}run(a,i,u){Ep(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,v){const b=g||a;x?d(x):f?f(b):u(void 0,b,v)}}}runSync(a,i){let u=!1,s;return this.run(a,i,c),Cp("runSync","run",u),s;function c(f,d){Sp(f),s=d,u=!0}}stringify(a,i){this.freeze();const u=eu(i),s=this.compiler||this.Compiler;return Zo("stringify",s),Ep(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,v=-1;for(;++g<u.length;)if(u[g][0]===m){v=g;break}if(v===-1)u.push([m,...x]);else if(x.length>0){let[b,...w]=x;const M=u[v][1];sc(M)&&sc(b)&&(b=Yo(!0,M,b)),u[v]=[m,b,...w]}}}}const ez=new Nc().freeze();function Qo(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 Ep(n){if(!sc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Cp(n,a,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function eu(n){return tz(n)?n:new j0(n)}function tz(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function nz(n){return typeof n=="string"||lz(n)}function lz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const iz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wp=[],Tp={allowDangerousHtml:!0},az=/^(https?|ircs?|mailto|xmpp)$/i,rz=[{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 uz(n){const a=sz(n),i=oz(n);return cz(a.runSync(a.parse(i),i),n)}function sz(n){const a=n.rehypePlugins||wp,i=n.remarkPlugins||wp,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Tp}:Tp;return ez().use(V2).use(i).use(LS,u).use(a)}function oz(n){const a=n.children||"",i=new j0;return typeof a=="string"&&(i.value=a),i}function cz(n,a){const i=a.allowedElements,u=a.allowElement,s=a.components,c=a.disallowedElements,f=a.skipHtml,d=a.unwrapDisallowed,p=a.urlTransform||fz;for(const x of rz)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+iz+x.id,void 0);return Ac(n,m),Cb(n,{Fragment:S.Fragment,components:s,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function m(x,g,v){if(x.type==="raw"&&v&&typeof g=="number")return f?v.children.splice(g,1):v.children[g]={type:"text",value:x.value},g;if(x.type==="element"){let b;for(b in Bo)if(Object.hasOwn(Bo,b)&&Object.hasOwn(x.properties,b)){const w=x.properties[b],M=Bo[b];(M===null||M.includes(x.tagName))&&(x.properties[b]=p(String(w||""),b,x))}}if(x.type==="element"){let b=i?!i.includes(x.tagName):c?c.includes(x.tagName):!1;if(!b&&u&&typeof g=="number"&&(b=!u(x,g,v)),b&&v&&typeof g=="number")return d&&x.children?v.children.splice(g,1,...x.children):v.children.splice(g,1),g}}}function fz(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||az.test(n.slice(0,a))?n:""}function Ap(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 hz(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function dz(n,a,i){const s=fu((i||{}).ignore||[]),c=mz(a);let f=-1;for(;++f<c.length;)M0(n,"text",d);function d(m,x){let g=-1,v;for(;++g<x.length;){const b=x[g],w=v?v.children:void 0;if(s(b,w?w.indexOf(b):void 0,v))return;v=b}if(v)return p(m,x)}function p(m,x){const g=x[x.length-1],v=c[f][0],b=c[f][1];let w=0;const U=g.children.indexOf(m);let _=!1,Y=[];v.lastIndex=0;let H=v.exec(m.value);for(;H;){const I=H.index,F={index:H.index,input:H.input,stack:[...x,m]};let D=b(...H,F);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?v.lastIndex=I+1:(w!==I&&Y.push({type:"text",value:m.value.slice(w,I)}),Array.isArray(D)?Y.push(...D):D&&Y.push(D),w=I+H[0].length,_=!0),!v.global)break;H=v.exec(m.value)}return _?(w<m.value.length&&Y.push({type:"text",value:m.value.slice(w)}),g.children.splice(U,1,...Y)):Y=[m],U+Y.length}}function mz(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([pz(s[0]),gz(s[1])])}return a}function pz(n){return typeof n=="string"?new RegExp(hz(n),"g"):n}function gz(n){return typeof n=="function"?n:function(){return n}}const Ko="phrasing",Jo=["autolink","link","image","label"];function yz(){return{transforms:[Ez],enter:{literalAutolink:bz,literalAutolinkEmail:Io,literalAutolinkHttp:Io,literalAutolinkWww:Io},exit:{literalAutolink:kz,literalAutolinkEmail:zz,literalAutolinkHttp:vz,literalAutolinkWww:Sz}}}function xz(){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 bz(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Io(n){this.config.enter.autolinkProtocol.call(this,n)}function vz(n){this.config.exit.autolinkProtocol.call(this,n)}function Sz(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 zz(n){this.config.exit.autolinkEmail.call(this,n)}function kz(n){this.exit(n)}function Ez(n){dz(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Cz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),wz]],{ignore:["link","linkReference"]})}function Cz(n,a,i,u,s){let c="";if(!O0(s)||(/^w/i.test(a)&&(i=a+i,a="",c="http://"),!Tz(i)))return!1;const f=Az(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 wz(n,a,i,u){return!O0(u,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function Tz(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 Az(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=Ap(n,"(");let c=Ap(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 O0(n,a){const i=n.input.charCodeAt(n.index-1);return(n.index===0||wl(i)||su(i))&&(!a||i!==47)}D0.peek=Bz;function Nz(){this.buffer()}function _z(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Mz(){this.buffer()}function jz(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},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(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 Lz(n){this.exit(n)}function Bz(){return"["}function D0(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 Uz(){return{enter:{gfmFootnoteCallString:Nz,gfmFootnoteCall:_z,gfmFootnoteDefinitionLabelString:Mz,gfmFootnoteDefinition:jz},exit:{gfmFootnoteCallString:Oz,gfmFootnoteCall:Dz,gfmFootnoteDefinitionLabelString:Rz,gfmFootnoteDefinition:Lz}}}function Hz(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:D0},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?R0:qz))),m(),p}}function qz(n,a,i){return a===0?n:R0(n,a,i)}function R0(n,a,i){return(i?"":" ")+n}const Yz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];L0.peek=Zz;function Vz(){return{canContainEols:["delete"],enter:{strikethrough:Xz},exit:{strikethrough:Qz}}}function Gz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Yz}],handlers:{delete:L0}}}function Xz(n){this.enter({type:"delete",children:[]},n)}function Qz(n){this.exit(n)}function L0(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 Zz(){return"~"}function Fz(n){return n.length}function Kz(n,a){const i=a||{},u=(i.align||[]).concat(),s=i.stringLength||Fz,c=[],f=[],d=[],p=[];let m=0,x=-1;for(;++x<n.length;){const M=[],U=[];let _=-1;for(n[x].length>m&&(m=n[x].length);++_<n[x].length;){const Y=Jz(n[x][_]);if(i.alignDelimiters!==!1){const H=s(Y);U[_]=H,(p[_]===void 0||H>p[_])&&(p[_]=H)}M.push(Y)}f[x]=M,d[x]=U}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<m;)c[g]=Np(u[g]);else{const M=Np(u);for(;++g<m;)c[g]=M}g=-1;const v=[],b=[];for(;++g<m;){const M=c[g];let U="",_="";M===99?(U=":",_=":"):M===108?U=":":M===114&&(_=":");let Y=i.alignDelimiters===!1?1:Math.max(1,p[g]-U.length-_.length);const H=U+"-".repeat(Y)+_;i.alignDelimiters!==!1&&(Y=U.length+Y+_.length,Y>p[g]&&(p[g]=Y),b[g]=Y),v[g]=H}f.splice(1,0,v),d.splice(1,0,b),x=-1;const w=[];for(;++x<f.length;){const M=f[x],U=d[x];g=-1;const _=[];for(;++g<m;){const Y=M[g]||"";let H="",I="";if(i.alignDelimiters!==!1){const F=p[g]-(U[g]||0),D=c[g];D===114?H=" ".repeat(F):D===99?F%2?(H=" ".repeat(F/2+.5),I=" ".repeat(F/2-.5)):(H=" ".repeat(F/2),I=H):I=" ".repeat(F)}i.delimiterStart!==!1&&!g&&_.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&Y==="")&&(i.delimiterStart!==!1||g)&&_.push(" "),i.alignDelimiters!==!1&&_.push(H),_.push(Y),i.alignDelimiters!==!1&&_.push(I),i.padding!==!1&&_.push(" "),(i.delimiterEnd!==!1||g!==m-1)&&_.push("|")}w.push(i.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return w.join(`
|
|
257
|
+
`)}function Jz(n){return n==null?"":String(n)}function Np(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 Iz(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()),$z);return s(),f}function $z(n,a,i){return">"+(i?"":" ")+n}function Wz(n,a){return _p(n,a.inConstruct,!0)&&!_p(n,a.notInConstruct,!1)}function _p(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 Mp(n,a,i,u){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
|
|
258
258
|
`&&Wz(i.stack,i.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
259
|
-
`}function Pz(n,
|
|
259
|
+
`}function Pz(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 ek(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 tk(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 nk(n,a,i,u){const s=tk(i),c=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(ek(n,i)){const g=i.enter("codeIndented"),v=i.indentLines(c,lk);return g(),v}const d=i.createTracker(u),p=s.repeat(Math.max(Pz(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
260
|
`,encode:["`"],...d.current()})),g()}return x+=d.move(`
|
|
261
261
|
`),c&&(x+=d.move(c+`
|
|
262
|
-
`)),x+=d.move(p),m(),x}function lk(n,
|
|
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 ak(n){const
|
|
262
|
+
`)),x+=d.move(p),m(),x}function lk(n,a,i){return(i?"":" ")+n}function _c(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 ik(n,a,i,u){const s=_c(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 ak(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 Aa(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}}B0.peek=rk;function B0(n,a,i,u){const s=ak(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=Aa(m)+p.slice(1));const g=p.charCodeAt(p.length-1),v=uu(u.after.charCodeAt(0),g,s);v.inside&&(p=p.slice(0,-1)+Aa(g));const b=f.move(s);return c(),i.attentionEncodeSurroundingInfo={after:v.outside,before:x.outside},d+p+b}function rk(n,a,i){return i.options.emphasis||"*"}function uk(n,a){let i=!1;return Ac(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return i=!0,rc}),!!((!n.depth||n.depth<3)&&Sc(n)&&(a.options.setext||i))}function sk(n,a,i,u){const s=Math.max(Math.min(6,n.depth||1),1),c=i.createTracker(u);if(uk(n,i)){const x=i.enter("headingSetext"),g=i.enter("phrasing"),v=i.containerPhrasing(n,{...c.current(),before:`
|
|
264
264
|
`,after:`
|
|
265
265
|
`});return g(),x(),v+`
|
|
266
266
|
`+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
267
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=
|
|
269
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:f,tableCell:p,tableRow:d}};function f(b,w,
|
|
270
|
-
`))}function p(b,w,_,Y){const M=_.enter("tableCell"),q=_.enter("phrasing"),U=_.containerPhrasing(b,{...Y,before:c,after:c});return q(),M(),U}function m(b,w){return Kz(b,{align:w,alignDelimiters:u,padding:i,stringLength:s})}function x(b,w,_){const Y=b.children;let M=-1;const q=[],U=w.enter("table");for(;++M<Y.length;)q[M]=g(Y[M],w,_);return U(),q}function g(b,w,_){const Y=b.children;let M=-1;const q=[],U=w.enter("tableRow");for(;++M<Y.length;)q[M]=p(Y[M],b,w,_);return U(),q}function v(b,w,_){let Y=F0.inlineCode(b,w,_);return _.stack.includes("tableCell")&&(Y=Y.replace(/\|/g,"\\$&")),Y}}function Rk(){return{exit:{taskListCheckValueChecked:Op,taskListCheckValueUnchecked:Op,paragraph:Bk}}}function Lk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Uk}}}function Op(n){const r=this.stack[this.stack.length-2];r.type,r.checked=n.type==="taskListCheckValueChecked"}function Bk(n){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const u=i.children[0];if(u&&u.type==="text"){const s=r.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 Uk(n,r,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=F0.listItem(n,r,i,{...u,...d.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(x){return x+f}}function Hk(){return[yz(),Uz(),Vz(),Ak(),Rk()]}function qk(n){return{extensions:[xz(),Hz(n),Gz(),Dk(n),Lk()]}}const Yk={tokenize:Fk,partial:!0},K0={tokenize:Kk,partial:!0},J0={tokenize:Jk,partial:!0},I0={tokenize:Ik,partial:!0},Vk={tokenize:$k,partial:!0},$0={name:"wwwAutolink",tokenize:Qk,previous:P0},W0={name:"protocolAutolink",tokenize:Zk,previous:eg},jn={name:"emailAutolink",tokenize:Xk,previous:tg},cn={};function Gk(){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,W0];cn[104]=[jn,W0];cn[87]=[jn,$0];cn[119]=[jn,$0];function Xk(n,r,i){const u=this;let s,c;return f;function f(g){return!cc(g)||!tg.call(u,u.previous)||jc(u.events)?i(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),d(g))}function d(g){return cc(g)?(n.consume(g),d):g===64?(n.consume(g),p):i(g)}function p(g){return g===46?n.check(Vk,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"),r(g)):i(g)}}function Qk(n,r,i){const u=this;return s;function s(f){return f!==87&&f!==119||!P0.call(u,u.previous)||jc(u.events)?i(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Yk,n.attempt(K0,n.attempt(J0,c),i),i)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),r(f)}}function Zk(n,r,i){const u=this;let s="",c=!1;return f;function f(g){return(g===72||g===104)&&eg.call(u,u.previous)&&!jc(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 v=s.toLowerCase();if(v==="http"||v==="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)||Xe(g)||Cl(g)||su(g)?i(g):n.attempt(K0,n.attempt(J0,x),i)(g)}function x(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),r(g)}}function Fk(n,r,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):r(f)}}function Kk(n,r,i){let u,s,c;return f;function f(m){return m===46||m===95?n.check(I0,p,d)(m):m===null||Xe(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):r(m)}}function Jk(n,r){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(I0,r,c)(f):f===null||Xe(f)||Cl(f)?r(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function Ik(n,r,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||Xe(d)||Cl(d)?r(d):i(d)}function s(d){return d===null||d===40||d===91||Xe(d)||Cl(d)?r(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 $k(n,r,i){return u;function u(c){return n.consume(c),s}function s(c){return pt(c)?i(c):r(c)}}function P0(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Xe(n)}function eg(n){return!vt(n)}function tg(n){return!(n===47||cc(n))}function cc(n){return n===43||n===45||n===46||n===95||pt(n)}function jc(n){let r=n.length,i=!1;for(;r--;){const u=n[r][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 Wk={tokenize:r3,partial:!0};function Pk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:l3,continuation:{tokenize:i3},exit:a3}},text:{91:{name:"gfmFootnoteCall",tokenize:n3},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:e3,resolveTo:t3}}}}function e3(n,r,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"),r(p))}}function t3(n,r){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,r],n[i+3],n[i+4],["enter",s,r],["exit",s,r],["enter",c,r],["enter",f,r],["exit",f,r],["exit",c,r],n[n.length-2],n[n.length-1],["exit",u,r]];return n.splice(i,n.length-i+1,...d),n}function n3(n,r,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||Xe(g))return i(g);if(g===93){n.exit("chunkString");const v=n.exit("gfmFootnoteCallString");return s.includes(ln(u.sliceSerialize(v)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),r):i(g)}return Xe(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 l3(n,r,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||Xe(w))return i(w);if(w===93){n.exit("chunkString");const _=n.exit("gfmFootnoteDefinitionLabelString");return c=ln(u.sliceSerialize(_)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),v}return Xe(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 v(w){return w===58?(n.enter("definitionMarker"),n.consume(w),n.exit("definitionMarker"),s.includes(c)||s.push(c),_e(n,b,"gfmFootnoteDefinitionWhitespace")):i(w)}function b(w){return r(w)}}function i3(n,r,i){return n.check(_a,r,n.attempt(Wk,r,i))}function a3(n){n.exit("gfmFootnoteDefinition")}function r3(n,r,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?r(c):i(c)}}function u3(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)},v=[["enter",x,d],["enter",f[m][1],d],["exit",f[m][1],d],["enter",g,d]],b=d.parser.constructs.insideSpan.null;b&&qt(v,v.length,0,ou(b,f.slice(m+1,p),d)),qt(v,v.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,v),p=m+v.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 v;function v(w){return m===126&&x[x.length-1][1].type!=="characterEscape"?p(w):(f.enter("strikethroughSequenceTemporary"),b(w))}function b(w){const _=Si(m);if(w===126)return g>1?p(w):(f.consume(w),g++,b);if(g<2&&!i)return p(w);const Y=f.exit("strikethroughSequenceTemporary"),M=Si(w);return Y._open=!M||M===2&&!!_,Y._close=!_||_===2&&!!M,d(w)}}}class s3{constructor(){this.map=[]}add(r,i,u){o3(this,r,i,u)}consume(r){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(r.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),r.length=this.map[i][0];u.push(r.slice()),r.length=0;let s=u.pop();for(;s;){for(const c of s)r.push(c);s=u.pop()}this.map.length=0}}function o3(n,r,i,u){let s=0;if(!(i===0&&u.length===0)){for(;s<n.map.length;){if(n.map[s][0]===r){n.map[s][1]+=i,n.map[s][2].push(...u);return}s+=1}n.map.push([r,i,u])}}function c3(n,r){let i=!1;const u=[];for(;r<n.length;){const s=n[r];if(i){if(s[0]==="enter")s[1].type==="tableContent"&&u.push(n[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[r-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);r+=1}return u}function f3(){return{flow:{null:{name:"table",tokenize:h3,resolveAll:d3}}}}function h3(n,r,i){const u=this;let s=0,c=0,f;return d;function d(B){let te=u.events.length-1;for(;te>-1;){const ie=u.events[te][1].type;if(ie==="lineEnding"||ie==="linePrefix")te--;else break}const ne=te>-1?u.events[te][1].type:null,Se=ne==="tableHead"||ne==="tableRow"?D:p;return Se===D&&u.parser.lazy[u.now().line]?i(B):Se(B)}function p(B){return n.enter("tableHead"),n.enter("tableRow"),m(B)}function m(B){return B===124||(f=!0,c+=1),x(B)}function x(B){return B===null?i(B):he(B)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),b):i(B):Ce(B)?_e(n,x,"whitespace")(B):(c+=1,f&&(f=!1,s+=1),B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),f=!0,x):(n.enter("data"),g(B)))}function g(B){return B===null||B===124||Xe(B)?(n.exit("data"),x(B)):(n.consume(B),B===92?v:g)}function v(B){return B===92||B===124?(n.consume(B),g):g(B)}function b(B){return u.interrupt=!1,u.parser.lazy[u.now().line]?i(B):(n.enter("tableDelimiterRow"),f=!1,Ce(B)?_e(n,w,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):w(B))}function w(B){return B===45||B===58?Y(B):B===124?(f=!0,n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),_):F(B)}function _(B){return Ce(B)?_e(n,Y,"whitespace")(B):Y(B)}function Y(B){return B===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),M):B===45?(c+=1,M(B)):B===null||he(B)?I(B):F(B)}function M(B){return B===45?(n.enter("tableDelimiterFiller"),q(B)):F(B)}function q(B){return B===45?(n.consume(B),q):B===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),U):(n.exit("tableDelimiterFiller"),U(B))}function U(B){return Ce(B)?_e(n,I,"whitespace")(B):I(B)}function I(B){return B===124?w(B):B===null||he(B)?!f||s!==c?F(B):(n.exit("tableDelimiterRow"),n.exit("tableHead"),r(B)):F(B)}function F(B){return i(B)}function D(B){return n.enter("tableRow"),$(B)}function $(B){return B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),$):B===null||he(B)?(n.exit("tableRow"),r(B)):Ce(B)?_e(n,$,"whitespace")(B):(n.enter("data"),ue(B))}function ue(B){return B===null||B===124||Xe(B)?(n.exit("data"),$(B)):(n.consume(B),B===92?fe:ue)}function fe(B){return B===92||B===124?(n.consume(B),ue):ue(B)}}function d3(n,r){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 v=new s3;for(;++i<n.length;){const b=n[i],w=b[1];b[0]==="enter"?w.type==="tableHead"?(d=!1,p!==0&&(Dp(v,r,p,m,x),x=void 0,p=0),m={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(i,0,[["enter",m,r]])):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)},v.add(i,0,[["enter",x,r]])),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(v,r,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(v,r,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(v,r,c,s,i,g)):f[1]!==0&&(g=tu(v,r,f,s,i,g)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(f[3]=i)}for(p!==0&&Dp(v,r,p,m,x),v.consume(r.events),i=-1;++i<r.events.length;){const b=r.events[i];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=c3(r.events,i))}return n}function tu(n,r,i,u,s,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},xi(r.events,i[0])),n.add(i[0],0,[["exit",c,r]]));const p=xi(r.events,i[1]);if(c={type:f,start:Object.assign({},p),end:Object.assign({},p)},n.add(i[1],0,[["enter",c,r]]),i[2]!==0){const m=xi(r.events,i[2]),x=xi(r.events,i[3]),g={type:d,start:Object.assign({},m),end:Object.assign({},x)};if(n.add(i[2],0,[["enter",g,r]]),u!==2){const v=r.events[i[2]],b=r.events[i[3]];if(v[1].end=Object.assign({},b[1].end),v[1].type="chunkText",v[1].contentType="text",i[3]>i[2]+1){const w=i[2]+1,_=i[3]-i[2]-1;n.add(w,_,[])}}n.add(i[3]+1,0,[["exit",g,r]])}return s!==void 0&&(c.end=Object.assign({},xi(r.events,s)),n.add(s,0,[["exit",c,r]]),c=void 0),c}function Dp(n,r,i,u,s){const c=[],f=xi(r.events,i);s&&(s.end=Object.assign({},f),c.push(["exit",s,r])),u.end=Object.assign({},f),c.push(["exit",u,r]),n.add(i+1,0,c)}function xi(n,r){const i=n[r],u=i[0]==="enter"?"start":"end";return i[1][u]}const m3={name:"tasklistCheck",tokenize:g3};function p3(){return{text:{91:m3}}}function g3(n,r,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 Xe(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 he(p)?r(p):Ce(p)?n.check({tokenize:y3},r,i)(p):i(p)}}function y3(n,r,i){return _e(n,u,"whitespace");function u(s){return s===null?i(s):r(s)}}function x3(n){return h0([Gk(),Pk(),u3(n),f3(),p3()])}const b3={};function v3(n){const r=this,i=n||b3,u=r.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(x3(i)),c.push(Hk()),f.push(qk(i))}function S3(n){return n==="completed"?S.jsx(Gp,{size:14,className:"text-emerald-400"}):n==="in_progress"?S.jsx(sx,{size:14,className:"text-amber-400 animate-spin"}):S.jsx(V1,{size:14,className:"text-zinc-500"})}function z3(n){return n==="completed"?"text-zinc-400 line-through":n==="in_progress"?"text-amber-200":"text-zinc-300"}function k3(n){const{todos:r}=n;if(!r||r.length===0)return null;const i=r.filter(s=>s.status==="completed").length,u=r.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(Fp,{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:r.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:S3(s.status)}),S.jsx("span",{className:`text-xs leading-relaxed ${z3(s.status)}`,children:s.content})]},c))})]})})}class E3{diff(r,i,u={}){let s;typeof u=="function"?(s=u,u={}):"callback"in u&&(s=u.callback);const c=this.castInput(r,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(r,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=r.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,v=Date.now()+g,b=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(b[0],i,r,0,u);if(b[0].oldPos+1>=p&&w+1>=d)return f(this.buildValues(b[0].lastComponent,i,r));let _=-1/0,Y=1/0;const M=()=>{for(let q=Math.max(_,-m);q<=Math.min(Y,m);q+=2){let U;const I=b[q-1],F=b[q+1];I&&(b[q-1]=void 0);let D=!1;if(F){const ue=F.oldPos-q;D=F&&0<=ue&&ue<d}const $=I&&I.oldPos+1<p;if(!D&&!$){b[q]=void 0;continue}if(!$||D&&I.oldPos<F.oldPos?U=this.addToPath(F,!0,!1,0,u):U=this.addToPath(I,!1,!0,1,u),w=this.extractCommon(U,i,r,q,u),U.oldPos+1>=p&&w+1>=d)return f(this.buildValues(U.lastComponent,i,r))||!0;b[q]=U,U.oldPos+1>=p&&(Y=Math.min(Y,q-1)),w+1>=d&&(_=Math.max(_,q+1))}m++};if(s)(function q(){setTimeout(function(){if(m>x||Date.now()>v)return s(void 0);M()||q()},0)})();else for(;m<=x&&Date.now()<=v;){const q=M();if(q)return q}}addToPath(r,i,u,s,c){const f=r.lastComponent;return f&&!c.oneChangePerToken&&f.added===i&&f.removed===u?{oldPos:r.oldPos+s,lastComponent:{count:f.count+1,added:i,removed:u,previousComponent:f.previousComponent}}:{oldPos:r.oldPos+s,lastComponent:{count:1,added:i,removed:u,previousComponent:f}}}extractCommon(r,i,u,s,c){const f=i.length,d=u.length;let p=r.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&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return x&&!c.oneChangePerToken&&(r.lastComponent={count:x,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=p,m}equals(r,i,u){return u.comparator?u.comparator(r,i):r===i||!!u.ignoreCase&&r.toLowerCase()===i.toLowerCase()}removeEmpty(r){const i=[];for(let u=0;u<r.length;u++)r[u]&&i.push(r[u]);return i}castInput(r,i){return r}tokenize(r,i){return Array.from(r)}join(r){return r.join("")}postProcess(r,i){return r}get useLongestToken(){return!1}buildValues(r,i,u){const s=[];let c;for(;r;)s.push(r),c=r.previousComponent,delete r.previousComponent,r=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(v,b){const w=u[m+b];return w.length>v.length?w:v}),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 C3 extends E3{constructor(){super(...arguments),this.tokenize=T3}equals(r,i,u){return u.ignoreWhitespace?((!u.newlineIsToken||!r.includes(`
|
|
271
|
-
`))&&(
|
|
272
|
-
`))&&(i=i.trim())):u.ignoreNewlineAtEof&&!u.newlineIsToken&&(
|
|
273
|
-
`)&&(
|
|
274
|
-
`)&&(i=i.slice(0,-1))),super.equals(
|
|
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&&!
|
|
276
|
-
`)?
|
|
277
|
-
`)}const i=[];
|
|
268
|
+
`,...c.current()});return/^[\t ]/.test(m)&&(m=Aa(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,i.options.closeAtx&&(m+=" "+f),p(),d(),m}U0.peek=ok;function U0(n){return n.value||""}function ok(){return"<"}H0.peek=ck;function H0(n,a,i,u){const s=_c(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 ck(){return"!"}q0.peek=fk;function q0(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 fk(){return"!"}Y0.peek=hk;function Y0(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 hk(){return"`"}function V0(n,a){const i=Sc(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))}G0.peek=dk;function G0(n,a,i,u){const s=_c(i),c=s==='"'?"Quote":"Apostrophe",f=i.createTracker(u);let d,p;if(V0(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 dk(n,a,i){return V0(n,i)?"<":"["}X0.peek=mk;function X0(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 mk(){return"["}function Mc(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 pk(n){const a=Mc(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 gk(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 Q0(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 yk(n,a,i,u){const s=i.enter("list"),c=i.bulletCurrent;let f=n.ordered?gk(i):Mc(i);const d=n.ordered?f==="."?")":".":pk(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),Q0(i)===f&&x){let g=-1;for(;++g<n.children.length;){const v=n.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.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 xk(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 bk(n,a,i,u){const s=xk(i);let c=i.bulletCurrent||Mc(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,v,b){return v?(b?"":" ".repeat(f))+g:(b?c:c+" ".repeat(f-c.length))+g}}function vk(n,a,i,u){const s=i.enter("paragraph"),c=i.enter("phrasing"),f=i.containerPhrasing(n,u);return c(),s(),f}const Sk=fu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zk(n,a,i,u){return(n.children.some(function(f){return Sk(f)})?i.containerPhrasing:i.containerFlow).call(i,n,u)}function kk(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}Z0.peek=Ek;function Z0(n,a,i,u){const s=kk(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=Aa(m)+p.slice(1));const g=p.charCodeAt(p.length-1),v=uu(u.after.charCodeAt(0),g,s);v.inside&&(p=p.slice(0,-1)+Aa(g));const b=f.move(s+s);return c(),i.attentionEncodeSurroundingInfo={after:v.outside,before:x.outside},d+p+b}function Ek(n,a,i){return i.options.strong||"*"}function Ck(n,a,i,u){return i.safe(n.value,u)}function wk(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 Tk(n,a,i){const u=(Q0(i)+(i.options.ruleSpaces?" ":"")).repeat(wk(i));return i.options.ruleSpaces?u.slice(0,-1):u}const F0={blockquote:Iz,break:Mp,code:nk,definition:ik,emphasis:B0,hardBreak:Mp,heading:sk,html:U0,image:H0,imageReference:q0,inlineCode:Y0,link:G0,linkReference:X0,list:yk,listItem:bk,paragraph:vk,root:zk,strong:Z0,text:Ck,thematicBreak:Tk};function Ak(){return{enter:{table:Nk,tableData:jp,tableHeader:jp,tableRow:Mk},exit:{codeText:jk,table:_k,tableData:$o,tableHeader:$o,tableRow:$o}}}function Nk(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 _k(n){this.exit(n),this.data.inTable=void 0}function Mk(n){this.enter({type:"tableRow",children:[]},n)}function $o(n){this.exit(n)}function jp(n){this.enter({type:"tableCell",children:[]},n)}function jk(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,Ok));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(n)}function Ok(n,a){return a==="|"?a:n}function Dk(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:v,table:f,tableCell:p,tableRow:d}};function f(b,w,M,U){return m(x(b,M,U),b.align)}function d(b,w,M,U){const _=g(b,M,U),Y=m([_]);return Y.slice(0,Y.indexOf(`
|
|
270
|
+
`))}function p(b,w,M,U){const _=M.enter("tableCell"),Y=M.enter("phrasing"),H=M.containerPhrasing(b,{...U,before:c,after:c});return Y(),_(),H}function m(b,w){return Kz(b,{align:w,alignDelimiters:u,padding:i,stringLength:s})}function x(b,w,M){const U=b.children;let _=-1;const Y=[],H=w.enter("table");for(;++_<U.length;)Y[_]=g(U[_],w,M);return H(),Y}function g(b,w,M){const U=b.children;let _=-1;const Y=[],H=w.enter("tableRow");for(;++_<U.length;)Y[_]=p(U[_],b,w,M);return H(),Y}function v(b,w,M){let U=F0.inlineCode(b,w,M);return M.stack.includes("tableCell")&&(U=U.replace(/\|/g,"\\$&")),U}}function Rk(){return{exit:{taskListCheckValueChecked:Op,taskListCheckValueUnchecked:Op,paragraph:Bk}}}function Lk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Uk}}}function Op(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function Bk(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 Uk(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=F0.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 Hk(){return[yz(),Uz(),Vz(),Ak(),Rk()]}function qk(n){return{extensions:[xz(),Hz(n),Gz(),Dk(n),Lk()]}}const Yk={tokenize:Fk,partial:!0},K0={tokenize:Kk,partial:!0},J0={tokenize:Jk,partial:!0},I0={tokenize:Ik,partial:!0},Vk={tokenize:$k,partial:!0},$0={name:"wwwAutolink",tokenize:Qk,previous:P0},W0={name:"protocolAutolink",tokenize:Zk,previous:eg},jn={name:"emailAutolink",tokenize:Xk,previous:tg},cn={};function Gk(){return{text:cn}}let Cl=48;for(;Cl<123;)cn[Cl]=jn,Cl++,Cl===58?Cl=65:Cl===91&&(Cl=97);cn[43]=jn;cn[45]=jn;cn[46]=jn;cn[95]=jn;cn[72]=[jn,W0];cn[104]=[jn,W0];cn[87]=[jn,$0];cn[119]=[jn,$0];function Xk(n,a,i){const u=this;let s,c;return f;function f(g){return!cc(g)||!tg.call(u,u.previous)||jc(u.events)?i(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),d(g))}function d(g){return cc(g)?(n.consume(g),d):g===64?(n.consume(g),p):i(g)}function p(g){return g===46?n.check(Vk,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 Qk(n,a,i){const u=this;return s;function s(f){return f!==87&&f!==119||!P0.call(u,u.previous)||jc(u.events)?i(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Yk,n.attempt(K0,n.attempt(J0,c),i),i)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function Zk(n,a,i){const u=this;let s="",c=!1;return f;function f(g){return(g===72||g===104)&&eg.call(u,u.previous)&&!jc(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 v=s.toLowerCase();if(v==="http"||v==="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)||Xe(g)||wl(g)||su(g)?i(g):n.attempt(K0,n.attempt(J0,x),i)(g)}function x(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(g)}}function Fk(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 Kk(n,a,i){let u,s,c;return f;function f(m){return m===46||m===95?n.check(I0,p,d)(m):m===null||Xe(m)||wl(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 Jk(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(I0,a,c)(f):f===null||Xe(f)||wl(f)?a(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function Ik(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||Xe(d)||wl(d)?a(d):i(d)}function s(d){return d===null||d===40||d===91||Xe(d)||wl(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 $k(n,a,i){return u;function u(c){return n.consume(c),s}function s(c){return pt(c)?i(c):a(c)}}function P0(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Xe(n)}function eg(n){return!vt(n)}function tg(n){return!(n===47||cc(n))}function cc(n){return n===43||n===45||n===46||n===95||pt(n)}function jc(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 Wk={tokenize:r3,partial:!0};function Pk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:l3,continuation:{tokenize:i3},exit:a3}},text:{91:{name:"gfmFootnoteCall",tokenize:n3},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:e3,resolveTo:t3}}}}function e3(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 t3(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 n3(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||Xe(g))return i(g);if(g===93){n.exit("chunkString");const v=n.exit("gfmFootnoteCallString");return s.includes(ln(u.sliceSerialize(v)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):i(g)}return Xe(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 l3(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||Xe(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"),v}return Xe(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 v(w){return w===58?(n.enter("definitionMarker"),n.consume(w),n.exit("definitionMarker"),s.includes(c)||s.push(c),_e(n,b,"gfmFootnoteDefinitionWhitespace")):i(w)}function b(w){return a(w)}}function i3(n,a,i){return n.check(Ma,a,n.attempt(Wk,a,i))}function a3(n){n.exit("gfmFootnoteDefinition")}function r3(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 u3(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)},v=[["enter",x,d],["enter",f[m][1],d],["exit",f[m][1],d],["enter",g,d]],b=d.parser.constructs.insideSpan.null;b&&qt(v,v.length,0,ou(b,f.slice(m+1,p),d)),qt(v,v.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,v),p=m+v.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 v;function v(w){return m===126&&x[x.length-1][1].type!=="characterEscape"?p(w):(f.enter("strikethroughSequenceTemporary"),b(w))}function b(w){const M=Si(m);if(w===126)return g>1?p(w):(f.consume(w),g++,b);if(g<2&&!i)return p(w);const U=f.exit("strikethroughSequenceTemporary"),_=Si(w);return U._open=!_||_===2&&!!M,U._close=!M||M===2&&!!_,d(w)}}}class s3{constructor(){this.map=[]}add(a,i,u){o3(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 o3(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 c3(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 f3(){return{flow:{null:{name:"table",tokenize:h3,resolveAll:d3}}}}function h3(n,a,i){const u=this;let s=0,c=0,f;return d;function d(B){let te=u.events.length-1;for(;te>-1;){const ie=u.events[te][1].type;if(ie==="lineEnding"||ie==="linePrefix")te--;else break}const ne=te>-1?u.events[te][1].type:null,Se=ne==="tableHead"||ne==="tableRow"?D:p;return Se===D&&u.parser.lazy[u.now().line]?i(B):Se(B)}function p(B){return n.enter("tableHead"),n.enter("tableRow"),m(B)}function m(B){return B===124||(f=!0,c+=1),x(B)}function x(B){return B===null?i(B):he(B)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),b):i(B):Ce(B)?_e(n,x,"whitespace")(B):(c+=1,f&&(f=!1,s+=1),B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),f=!0,x):(n.enter("data"),g(B)))}function g(B){return B===null||B===124||Xe(B)?(n.exit("data"),x(B)):(n.consume(B),B===92?v:g)}function v(B){return B===92||B===124?(n.consume(B),g):g(B)}function b(B){return u.interrupt=!1,u.parser.lazy[u.now().line]?i(B):(n.enter("tableDelimiterRow"),f=!1,Ce(B)?_e(n,w,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):w(B))}function w(B){return B===45||B===58?U(B):B===124?(f=!0,n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),M):F(B)}function M(B){return Ce(B)?_e(n,U,"whitespace")(B):U(B)}function U(B){return B===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),_):B===45?(c+=1,_(B)):B===null||he(B)?I(B):F(B)}function _(B){return B===45?(n.enter("tableDelimiterFiller"),Y(B)):F(B)}function Y(B){return B===45?(n.consume(B),Y):B===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),H):(n.exit("tableDelimiterFiller"),H(B))}function H(B){return Ce(B)?_e(n,I,"whitespace")(B):I(B)}function I(B){return B===124?w(B):B===null||he(B)?!f||s!==c?F(B):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(B)):F(B)}function F(B){return i(B)}function D(B){return n.enter("tableRow"),$(B)}function $(B){return B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),$):B===null||he(B)?(n.exit("tableRow"),a(B)):Ce(B)?_e(n,$,"whitespace")(B):(n.enter("data"),ue(B))}function ue(B){return B===null||B===124||Xe(B)?(n.exit("data"),$(B)):(n.consume(B),B===92?fe:ue)}function fe(B){return B===92||B===124?(n.consume(B),ue):ue(B)}}function d3(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 v=new s3;for(;++i<n.length;){const b=n[i],w=b[1];b[0]==="enter"?w.type==="tableHead"?(d=!1,p!==0&&(Dp(v,a,p,m,x),x=void 0,p=0),m={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.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)},v.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(v,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(v,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(v,a,c,s,i,g)):f[1]!==0&&(g=tu(v,a,f,s,i,g)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(f[3]=i)}for(p!==0&&Dp(v,a,p,m,x),v.consume(a.events),i=-1;++i<a.events.length;){const b=a.events[i];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=c3(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({},bi(a.events,i[0])),n.add(i[0],0,[["exit",c,a]]));const p=bi(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=bi(a.events,i[2]),x=bi(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 v=a.events[i[2]],b=a.events[i[3]];if(v[1].end=Object.assign({},b[1].end),v[1].type="chunkText",v[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({},bi(a.events,s)),n.add(s,0,[["exit",c,a]]),c=void 0),c}function Dp(n,a,i,u,s){const c=[],f=bi(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 bi(n,a){const i=n[a],u=i[0]==="enter"?"start":"end";return i[1][u]}const m3={name:"tasklistCheck",tokenize:g3};function p3(){return{text:{91:m3}}}function g3(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 Xe(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 he(p)?a(p):Ce(p)?n.check({tokenize:y3},a,i)(p):i(p)}}function y3(n,a,i){return _e(n,u,"whitespace");function u(s){return s===null?i(s):a(s)}}function x3(n){return h0([Gk(),Pk(),u3(n),f3(),p3()])}const b3={};function v3(n){const a=this,i=n||b3,u=a.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(x3(i)),c.push(Hk()),f.push(qk(i))}function S3(n){return n==="completed"?S.jsx(Gp,{size:14,className:"text-emerald-400"}):n==="in_progress"?S.jsx(sx,{size:14,className:"text-amber-400 animate-spin"}):S.jsx(V1,{size:14,className:"text-zinc-500"})}function z3(n){return n==="completed"?"text-zinc-400 line-through":n==="in_progress"?"text-amber-200":"text-zinc-300"}function k3(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(Fp,{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:S3(s.status)}),S.jsx("span",{className:`text-xs leading-relaxed ${z3(s.status)}`,children:s.content})]},c))})]})})}class E3{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=Y=>{if(Y=this.postProcess(Y,u),s){setTimeout(function(){s(Y)},0);return}else return Y},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,v=Date.now()+g,b=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(b[0],i,a,0,u);if(b[0].oldPos+1>=p&&w+1>=d)return f(this.buildValues(b[0].lastComponent,i,a));let M=-1/0,U=1/0;const _=()=>{for(let Y=Math.max(M,-m);Y<=Math.min(U,m);Y+=2){let H;const I=b[Y-1],F=b[Y+1];I&&(b[Y-1]=void 0);let D=!1;if(F){const ue=F.oldPos-Y;D=F&&0<=ue&&ue<d}const $=I&&I.oldPos+1<p;if(!D&&!$){b[Y]=void 0;continue}if(!$||D&&I.oldPos<F.oldPos?H=this.addToPath(F,!0,!1,0,u):H=this.addToPath(I,!1,!0,1,u),w=this.extractCommon(H,i,a,Y,u),H.oldPos+1>=p&&w+1>=d)return f(this.buildValues(H.lastComponent,i,a))||!0;b[Y]=H,H.oldPos+1>=p&&(U=Math.min(U,Y-1)),w+1>=d&&(M=Math.max(M,Y+1))}m++};if(s)(function Y(){setTimeout(function(){if(m>x||Date.now()>v)return s(void 0);_()||Y()},0)})();else for(;m<=x&&Date.now()<=v;){const Y=_();if(Y)return Y}}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(v,b){const w=u[m+b];return w.length>v.length?w:v}),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 C3 extends E3{constructor(){super(...arguments),this.tokenize=T3}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 w3=new C3;function Rp(n,a,i){return w3.diff(n,a,i)}function T3(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}const A3={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Lp(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;Rp(i,u,Object.assign(Object.assign({},d),{callback:g=>{const v=m(g);x(v)}}))}else return m(Rp(i,u,d));function m(x){if(!x)return;x.push({value:"",lines:[]});function g(Y){return Y.map(function(H){return" "+H})}const v=[];let b=0,w=0,M=[],U=1,_=1;for(let Y=0;Y<x.length;Y++){const H=x[Y],I=H.lines||_3(H.value);if(H.lines=I,H.added||H.removed){if(!b){const F=x[Y-1];b=U,w=_,F&&(M=p>0?g(F.lines.slice(-p)):[],b-=M.length,w-=M.length)}for(const F of I)M.push((H.added?"+":"-")+F);H.added?_+=I.length:U+=I.length}else{if(b)if(I.length<=p*2&&Y<x.length-2)for(const F of g(I))M.push(F);else{const F=Math.min(I.length,p);for(const $ of g(I.slice(0,F)))M.push($);const D={oldStart:b,oldLines:U-b+F,newStart:w,newLines:_-w+F,lines:M};v.push(D),b=0,w=0,M=[]}U+=I.length,_+=I.length}}for(const Y of v)for(let H=0;H<Y.lines.length;H++)Y.lines[H].endsWith(`
|
|
276
|
+
`)?Y.lines[H]=Y.lines[H].slice(0,-1):(Y.lines.splice(H+1,0,"\"),H++);return{oldFileName:n,newFileName:a,oldHeader:s,newHeader:c,hunks:v}}}function fc(n,a){if(a||(a=A3),Array.isArray(n)){if(n.length>1&&!a.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return n.map(u=>fc(u,a)).join(`
|
|
277
|
+
`)}const i=[];a.includeIndex&&n.oldFileName==n.newFileName&&i.push("Index: "+n.oldFileName),a.includeUnderline&&i.push("==================================================================="),a.includeFileHeaders&&(i.push("--- "+n.oldFileName+(typeof n.oldHeader>"u"?"":" "+n.oldHeader)),i.push("+++ "+n.newFileName+(typeof n.newHeader>"u"?"":" "+n.newHeader)));for(let u=0;u<n.hunks.length;u++){const s=n.hunks[u];s.oldLines===0&&(s.oldStart-=1),s.newLines===0&&(s.newStart-=1),i.push("@@ -"+s.oldStart+","+s.oldLines+" +"+s.newStart+","+s.newLines+" @@");for(const c of s.lines)i.push(c)}return i.join(`
|
|
278
278
|
`)+`
|
|
279
|
-
`}function N3(n,
|
|
279
|
+
`}function N3(n,a,i,u,s,c,f){if(typeof f=="function"&&(f={callback:f}),f!=null&&f.callback){const{callback:d}=f;Lp(n,a,i,u,s,c,Object.assign(Object.assign({},f),{callback:p=>{d(p?fc(p,f.headerOptions):void 0)}}))}else{const d=Lp(n,a,i,u,s,c,f);return d?fc(d,f==null?void 0:f.headerOptions):void 0}}function _3(n){const a=n.endsWith(`
|
|
280
280
|
`),i=n.split(`
|
|
281
281
|
`).map(u=>u+`
|
|
282
|
-
`);return
|
|
283
|
-
`),i=[];for(const u of
|
|
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(Qp,{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(
|
|
282
|
+
`);return a?i.pop():i.push(i.pop().slice(0,-1)),i}function Ei(n){const{text:a,className:i="",title:u="Copy"}=n,[s,c]=se.useState(!1),f=async d=>{d.stopPropagation();try{await navigator.clipboard.writeText(a),c(!0),setTimeout(()=>c(!1),1500)}catch{const p=document.createElement("textarea");p.value=a,document.body.appendChild(p),p.select(),document.execCommand("copy"),document.body.removeChild(p),c(!0),setTimeout(()=>c(!1),1500)}};return S.jsx("button",{onClick:f,className:`p-1 rounded hover:bg-zinc-700/50 transition-colors ${i}`,title:s?"Copied!":u,children:s?S.jsx(Na,{size:12,className:"text-emerald-400"}):S.jsx(dc,{size:12,className:"text-zinc-500 hover:text-zinc-300"})})}function ng(n){return n.split("/").slice(-2).join("/")}function M3(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 j3(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.old_string||"",u=a.new_string||"",s=ng(a.file_path),c=N3("a/"+s,"b/"+s,i,u,"","",{context:3}),f=M3(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(K1,{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(Sx,{size:12}),d]}),p>0&&S.jsxs("span",{className:"flex items-center gap-0.5 text-rose-400",children:[S.jsx(hx,{size:12}),p]}),S.jsx(Ei,{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 O3(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.content||"",u=ng(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(Qp,{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(Ei,{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 D3(n){const{input:a}=n,[i,u]=se.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(Jp,{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(Na,{size:12,className:"text-green-400"}):S.jsx(dc,{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 R3(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(Gp,{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
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(Mx,{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(Kp,{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 L3(n){const{input:
|
|
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(mc,{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(Zp,{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(
|
|
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 U3(n){return n.split("/").slice(-2).join("/")}function lg(n){var i;const
|
|
289
|
-
`),s=50,c=u.length>s,f=c?u.slice(0,s):u,d=i?lg(i):"",p=d?ig(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(Zp,{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 Y3(n){const{input:r}=n;return!r||!r.questions||r.questions.length===0?null:S.jsx("div",{className:"w-full mt-2 space-y-3",children:r.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(q1,{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?wx:Ax;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 V3(n){const r=n.toLowerCase();return r==="explore"?"text-cyan-400":r==="plan"?"text-violet-400":r==="claude-code-guide"?"text-amber-400":r==="general-purpose"?"text-emerald-400":"text-blue-400"}function G3(n){const r=n.toLowerCase();return r==="explore"?"bg-cyan-500/10 border-cyan-500/20":r==="plan"?"bg-violet-500/10 border-violet-500/20":r==="claude-code-guide"?"bg-amber-500/10 border-amber-500/20":r==="general-purpose"?"bg-emerald-500/10 border-emerald-500/20":"bg-blue-500/10 border-blue-500/20"}function X3(n){const{input:r}=n;if(!r)return null;const i=V3(r.subagent_type),u=G3(r.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(Vp,{size:14,className:i}),S.jsx("span",{className:`text-xs font-medium ${i}`,children:r.subagent_type}),r.description&&S.jsxs(S.Fragment,{children:[S.jsx(R1,{size:10,className:"text-zinc-600"}),S.jsx("span",{className:"text-xs text-zinc-400",children:r.description})]}),S.jsxs("div",{className:"flex items-center gap-1.5 ml-auto",children:[r.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(kx,{size:10}),"resume"]}),r.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(gx,{size:10}),"background"]}),r.model&&S.jsx("span",{className:"text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:r.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(Kp,{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:r.prompt})]})})]})})}const ag=se.memo(function(r){const{content:i,className:u=""}=r;return S.jsx("div",{className:`break-words ${u}`,children:S.jsx(uz,{remarkPlugins:[v3],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 v=(((m=f.properties)==null?void 0:m.className)||[]).find(_=>_.startsWith("language-")),b=(v==null?void 0:v.replace("language-",""))||"code",w=((x=f.children)==null?void 0:x.map(_=>_.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:b}),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 Q3(n){const r=new Map;for(const i of n)i.type==="tool_use"&&i.id&&i.name&&r.set(i.id,i.name);return r}const Z3=se.memo(function(r){var w;const{message:i}=r,u=i.type==="user",s=(w=i.message)==null?void 0:w.content,c=()=>!s||typeof s=="string"?[]:s.filter(_=>_.type==="text"),f=()=>!s||typeof s=="string"?[]:s.filter(_=>_.type==="tool_use"||_.type==="tool_result"||_.type==="thinking"),d=()=>c().filter(_=>_.text&&bi(_.text).length>0),p=()=>typeof s=="string"?bi(s).length>0:d().length>0,m=f(),x=d(),g=p(),v=m.length>0,b=Array.isArray(s)?Q3(s):new Map;return!g&&v?S.jsx("div",{className:"flex flex-col gap-1 py-0.5",children:m.map((_,Y)=>S.jsx(Po,{block:_,toolMap:b},Y))}):!g&&!v?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(ag,{content:bi(s)}):S.jsx("div",{className:"flex flex-col gap-1",children:x.map((_,Y)=>S.jsx(Po,{block:_,isUser:u,toolMap:b},Y))})}),v&&S.jsx("div",{className:"flex flex-col gap-1 mt-1.5",children:m.map((_,Y)=>S.jsx(Po,{block:_,toolMap:b},Y))})]})})}),Up={todowrite:Fp,read:Xp,bash:Jp,grep:lu,edit:xx,write:Qp,glob:mc,task:Vp},F3=[{patterns:["web","fetch","url"],icon:tx},{patterns:["ask","question"],icon:cx},{patterns:["git","commit"],icon:P1},{patterns:["sql","database","query"],icon:Q1},{patterns:["file","disk"],icon:lx}];function K3(n){const r=n.toLowerCase();if(Up[r])return Up[r];for(const{patterns:i,icon:u}of F3)if(i.some(s=>r.includes(s)))return u;return Ox}function Wo(n){return n.split("/").slice(-2).join("/")}const J3={read:n=>n.file_path?Wo(String(n.file_path)):null,edit:n=>n.file_path?Wo(String(n.file_path)):null,write:n=>n.file_path?Wo(String(n.file_path)):null,bash:n=>{if(!n.command)return null;const r=String(n.command);return r.length>50?r.slice(0,50)+"...":r},grep:n=>n.pattern?`"${String(n.pattern)}"`:null,glob:n=>n.pattern?String(n.pattern):null,task:n=>n.description?String(n.description):null};function I3(n,r){if(!r)return null;const i=n.toLowerCase(),u=J3[i];if(u)return u(r);if(i.includes("web")&&r.url)try{return new URL(String(r.url)).hostname}catch{return String(r.url).slice(0,30)}return null}function $3(n){const{toolName:r,input:i}=n,u=r.toLowerCase();return u==="todowrite"&&i.todos?S.jsx(k3,{todos:i.todos}):u==="edit"&&i.file_path?S.jsx(j3,{input:i}):u==="write"&&i.file_path?S.jsx(O3,{input:i}):u==="bash"&&i.command?S.jsx(D3,{input:i}):u==="grep"&&i.pattern?S.jsx(L3,{input:i}):u==="glob"&&i.pattern?S.jsx(B3,{input:i}):u==="read"&&i.file_path?S.jsx(H3,{input:i}):u==="askuserquestion"&&i.questions?S.jsx(Y3,{input:i}):u==="task"&&i.prompt?S.jsx(X3,{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 W3(n){const{toolName:r,content:i,isError:u}=n,s=r.toLowerCase();if(s==="bash")return S.jsx(R3,{content:i,isError:u});if(s==="glob")return S.jsx(Bp,{content:i,isFileList:!0});if(s==="grep")return S.jsx(Bp,{content:i});if(s==="read")return S.jsx(q3,{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 Po(n){var f;const{block:r,isUser:i,toolMap:u}=n,[s,c]=se.useState(!1);if(r.type==="text"&&r.text){const d=bi(r.text);return d?i?S.jsx("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-relaxed",children:d}):S.jsx(ag,{content:d}):null}if(r.type==="thinking"&&r.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(ax,{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:r.thinking})]});if(r.type==="tool_use"){const d=r.input&&typeof r.input=="object"?r.input:void 0,p=d&&Object.keys(d).length>0,m=K3(r.name||""),x=I3(r.name||"",d),g=((f=r.name)==null?void 0:f.toLowerCase())||"",v=g==="todowrite"||g==="edit"||g==="write"||g==="bash"||g==="grep"||g==="glob"||g==="read"||g==="askuserquestion"||g==="task",b=g==="todowrite"||g==="askuserquestion"||g==="task",w=s||b;return S.jsxs("div",{className:w?"w-full":"",children:[S.jsxs("button",{onClick:()=>p&&!b&&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:r.name}),x&&S.jsx("span",{className:"text-slate-500 font-normal truncate max-w-[200px]",children:x}),p&&!b&&S.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),w&&p&&v?S.jsx($3,{toolName:r.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(r.type==="tool_result"){const d=r.is_error,p=typeof r.content=="string"?r.content:JSON.stringify(r.content,null,2),m=bi(p),x=m.length>0,g=60,v=x&&!s?m.slice(0,g)+(m.length>g?"...":""):null,b=r.tool_use_id&&u&&u.get(r.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(Rx,{size:12,className:"opacity-70"}):S.jsx(Aa,{size:12,className:"opacity-70"}),S.jsx("span",{className:"font-medium",children:d?"error":"result"}),v&&!s&&S.jsx("span",{className:`font-normal truncate max-w-[200px] ${d?"text-rose-500/70":"text-teal-500/70"}`,children:v}),x&&S.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),s&&x&&S.jsx(W3,{toolName:b,content:m,isError:d})]})}return null}function P3({onClick:n}){return S.jsxs("button",{onClick:n,className:"fixed bottom-4 right-6 flex cursor-pointer items-center gap-1.5 rounded-full bg-zinc-200/90 px-3.5 py-2 text-xs font-medium text-zinc-900 shadow-lg backdrop-blur-sm transition-all hover:bg-zinc-100",children:[S.jsx("svg",{className:"h-3.5 w-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"})]})}const eE=10,tE=1e3,nE=3e4,lE=100;function iE(n){const{sessionId:r}=n,[i,u]=se.useState([]),[s,c]=se.useState(!0),[f,d]=se.useState(!0),p=se.useRef(null),m=se.useRef(null),x=se.useRef(0),g=se.useRef(!1),v=se.useRef(0),b=se.useRef(null),w=se.useRef(null),_=se.useRef(!0),Y=se.useCallback(()=>{if(!_.current)return;b.current&&b.current.close();const F=new EventSource(`/api/conversation/${r}/stream?offset=${x.current}`);b.current=F,F.addEventListener("messages",D=>{v.current=0;const $=JSON.parse(D.data);c(!1),u(ue=>{const fe=new Set(ue.map(te=>te.uuid).filter(Boolean)),B=$.filter(te=>!fe.has(te.uuid));return B.length===0?ue:(x.current+=B.length,[...ue,...B])})}),F.onerror=()=>{if(F.close(),c(!1),!!_.current&&v.current<eE){const D=Math.min(tE*Math.pow(2,v.current),nE);v.current++,w.current=setTimeout(()=>Y(),D)}}},[r]);se.useEffect(()=>(_.current=!0,c(!0),u([]),x.current=0,v.current=0,Y(),()=>{_.current=!1,w.current&&clearTimeout(w.current),b.current&&b.current.close()}),[Y]);const M=se.useCallback(()=>{m.current&&(g.current=!0,m.current.scrollIntoView({behavior:"instant"}),requestAnimationFrame(()=>{g.current=!1}))},[]);se.useEffect(()=>{f&&M()},[i,f,M]);const q=()=>{if(!p.current||g.current)return;const{scrollTop:F,scrollHeight:D,clientHeight:$}=p.current,ue=D-F-$<lE;d(ue)},U=i.find(F=>F.type==="summary"),I=i.filter(F=>F.type==="user"||F.type==="assistant");return s?S.jsx("div",{className:"flex h-full items-center justify-center text-zinc-500",children:"Loading..."}):S.jsxs("div",{className:"relative h-full",children:[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:[U&&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:U.summary}),S.jsxs("p",{className:"mt-2 text-[11px] text-zinc-500",children:[I.length," messages"]})]}),S.jsx("div",{className:"flex flex-col gap-2",children:I.map((F,D)=>S.jsx("div",{ref:D===I.length-1?m:void 0,children:S.jsx(Z3,{message:F})},F.uuid||D))})]})}),!f&&S.jsx(P3,{onClick:()=>{d(!0),M()}})]})}function aE(n,r){const{events:i,onError:u,maxRetries:s=10,baseDelay:c=1e3}=r,f=se.useRef(null),d=se.useRef(0),p=se.useRef(null),m=se.useRef(!0),x=se.useRef(i);x.current=i;const g=se.useCallback(()=>{if(!m.current)return;f.current&&f.current.close();const v=new EventSource(n);f.current=v;for(const b of x.current)v.addEventListener(b.eventName,w=>{d.current=0,b.onMessage(w)});v.onerror=()=>{if(v.close(),!!m.current)if(d.current<s){const b=Math.min(c*Math.pow(2,d.current),3e4);d.current++,p.current=setTimeout(()=>{g()},b)}else u==null||u()}},[n,u,s,c]);se.useEffect(()=>(m.current=!0,g(),()=>{m.current=!1,p.current&&clearTimeout(p.current),f.current&&f.current.close()}),[g])}function rE(n){const{session:r,copied:i,onCopyResumeCommand:u}=n;return 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:r.display}),S.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:r.projectName}),S.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:Ip(r.timestamp)})]}),S.jsx("button",{onClick:()=>u(r.id,r.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:i?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(dc,{className:"w-3.5 h-3.5"}),S.jsx("span",{children:"Copy Resume Command"})]})})]})}function uE(){const[n,r]=se.useState([]),[i,u]=se.useState([]),[s,c]=se.useState(null),[f,d]=se.useState(null),[p,m]=se.useState(!0),[x,g]=se.useState(!1),[v,b]=se.useState(!1),w=se.useCallback((F,D)=>{const $=`cd ${D} && claude --resume ${F}`;navigator.clipboard.writeText($).then(()=>{b(!0),setTimeout(()=>b(!1),2e3)})},[]),_=se.useMemo(()=>f&&n.find(F=>F.id===f)||null,[n,f]);se.useEffect(()=>{fetch("/api/projects").then(F=>F.json()).then(u).catch(console.error)},[]);const Y=se.useCallback(F=>{const D=JSON.parse(F.data);r(D),m(!1)},[]),M=se.useCallback(F=>{const D=JSON.parse(F.data);r($=>{const ue=new Map($.map(fe=>[fe.id,fe]));for(const fe of D)ue.set(fe.id,fe);return Array.from(ue.values()).sort((fe,B)=>B.timestamp-fe.timestamp)})},[]),q=se.useCallback(()=>{m(!1)},[]);aE("/api/sessions/stream",{events:[{eventName:"sessions",onMessage:Y},{eventName:"sessionsUpdate",onMessage:M}],onError:q});const U=se.useMemo(()=>s?n.filter(F=>F.project===s):n,[n,s]),I=se.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 D=F.split("/").pop()||F;return S.jsx("option",{value:F,children:D},F)})]})})}),S.jsx(Ix,{sessions:U,selectedSession:f,onSelectSession:I,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(mx,{className:"w-4 h-4 text-zinc-400"})}),_&&S.jsx(rE,{session:_,copied:v,onCopyResumeCommand:w})]}),S.jsx("div",{className:"flex-1 overflow-hidden",children:f?S.jsx(iE,{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"})]})})})]})]})}A1.createRoot(document.getElementById("root")).render(S.jsx(se.StrictMode,{children:S.jsx(uE,{})}));
|
|
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 L3(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 B3(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(mc,{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 Bp(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(mc,{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(Zp,{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(Ei,{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 U3(n){return n.split("/").slice(-2).join("/")}function lg(n){var i;const a=n.split(".");return a.length>1?(i=a.pop())==null?void 0:i.toLowerCase():""}function ig(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 H3(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=U3(a.file_path),u=lg(a.file_path),s=u?ig(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(Xp,{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(Ei,{text:a.file_path})]})]})})})}function q3(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?lg(i):"",p=d?ig(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(Zp,{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 Y3(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(q1,{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?wx:Ax;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 V3(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 G3(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 X3(n){const{input:a}=n;if(!a)return null;const i=V3(a.subagent_type),u=G3(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(Vp,{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(R1,{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(kx,{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(gx,{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(Kp,{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 ag=se.memo(function(a){const{content:i,className:u=""}=a;return S.jsx("div",{className:`break-words ${u}`,children:S.jsx(uz,{remarkPlugins:[v3],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 v=(((m=f.properties)==null?void 0:m.className)||[]).find(M=>M.startsWith("language-")),b=(v==null?void 0:v.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:b}),S.jsx(Ei,{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 Q3(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}function Z3(n){var i;const a=(i=n.message)==null?void 0:i.content;return a?typeof a=="string"?al(a):a.filter(u=>u.type==="text"&&u.text).map(u=>al(u.text)).join(`
|
|
290
|
+
`):""}const F3=se.memo(function(a){var M;const{message:i}=a,u=i.type==="user",s=(M=i.message)==null?void 0:M.content,c=()=>!s||typeof s=="string"?[]:s.filter(U=>U.type==="text"),f=()=>!s||typeof s=="string"?[]:s.filter(U=>U.type==="tool_use"||U.type==="tool_result"||U.type==="thinking"),d=()=>c().filter(U=>U.text&&al(U.text).length>0),p=()=>typeof s=="string"?al(s).length>0:d().length>0,m=f(),x=d(),g=p(),v=m.length>0,b=Array.isArray(s)?Q3(s):new Map;if(!g&&v)return S.jsx("div",{className:"flex flex-col gap-1 py-0.5",children:m.map((U,_)=>S.jsx(Po,{block:U,toolMap:b},_))});if(!g&&!v)return null;const w=Z3(i);return 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.jsxs("div",{className:`relative 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:[w&&S.jsx(Ei,{text:w,title:"Copy message",className:"absolute top-2 right-2 p-1.5 bg-black/10 hover:bg-black/20 rounded-lg"}),S.jsx("div",{className:w?"pr-10":"",children:typeof s=="string"?u?S.jsx("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-relaxed",children:al(s)}):S.jsx(ag,{content:al(s)}):S.jsx("div",{className:"flex flex-col gap-1",children:x.map((U,_)=>S.jsx(Po,{block:U,isUser:u,toolMap:b},_))})})]}),v&&S.jsx("div",{className:"flex flex-col gap-1 mt-1.5",children:m.map((U,_)=>S.jsx(Po,{block:U,toolMap:b},_))})]})})}),Up={todowrite:Fp,read:Xp,bash:Jp,grep:lu,edit:xx,write:Qp,glob:mc,task:Vp},K3=[{patterns:["web","fetch","url"],icon:tx},{patterns:["ask","question"],icon:cx},{patterns:["git","commit"],icon:P1},{patterns:["sql","database","query"],icon:Q1},{patterns:["file","disk"],icon:lx}];function J3(n){const a=n.toLowerCase();if(Up[a])return Up[a];for(const{patterns:i,icon:u}of K3)if(i.some(s=>a.includes(s)))return u;return Ox}function Wo(n){return n.split("/").slice(-2).join("/")}const I3={read:n=>n.file_path?Wo(String(n.file_path)):null,edit:n=>n.file_path?Wo(String(n.file_path)):null,write:n=>n.file_path?Wo(String(n.file_path)):null,bash:n=>{if(!n.command)return null;const a=String(n.command);return a.length>50?a.slice(0,50)+"...":a},grep:n=>n.pattern?`"${String(n.pattern)}"`:null,glob:n=>n.pattern?String(n.pattern):null,task:n=>n.description?String(n.description):null};function $3(n,a){if(!a)return null;const i=n.toLowerCase(),u=I3[i];if(u)return u(a);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 W3(n){const{toolName:a,input:i}=n,u=a.toLowerCase();return u==="todowrite"&&i.todos?S.jsx(k3,{todos:i.todos}):u==="edit"&&i.file_path?S.jsx(j3,{input:i}):u==="write"&&i.file_path?S.jsx(O3,{input:i}):u==="bash"&&i.command?S.jsx(D3,{input:i}):u==="grep"&&i.pattern?S.jsx(L3,{input:i}):u==="glob"&&i.pattern?S.jsx(B3,{input:i}):u==="read"&&i.file_path?S.jsx(H3,{input:i}):u==="askuserquestion"&&i.questions?S.jsx(Y3,{input:i}):u==="task"&&i.prompt?S.jsx(X3,{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 P3(n){const{toolName:a,content:i,isError:u}=n,s=a.toLowerCase();if(s==="bash")return S.jsx(R3,{content:i,isError:u});if(s==="glob")return S.jsx(Bp,{content:i,isFileList:!0});if(s==="grep")return S.jsx(Bp,{content:i});if(s==="read")return S.jsx(q3,{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(Na,{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 Po(n){var f;const{block:a,isUser:i,toolMap:u}=n,[s,c]=se.useState(!1);if(a.type==="text"&&a.text){const d=al(a.text);return d?i?S.jsx("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-relaxed",children:d}):S.jsx(ag,{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(ax,{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=J3(a.name||""),x=$3(a.name||"",d),g=((f=a.name)==null?void 0:f.toLowerCase())||"",v=g==="todowrite"||g==="edit"||g==="write"||g==="bash"||g==="grep"||g==="glob"||g==="read"||g==="askuserquestion"||g==="task",b=g==="todowrite"||g==="askuserquestion"||g==="task",w=s||b;return S.jsxs("div",{className:w?"w-full":"",children:[S.jsxs("button",{onClick:()=>p&&!b&&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&&!b&&S.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),w&&p&&v?S.jsx(W3,{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=al(p),x=m.length>0,g=60,v=x&&!s?m.slice(0,g)+(m.length>g?"...":""):null,b=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(Rx,{size:12,className:"opacity-70"}):S.jsx(Na,{size:12,className:"opacity-70"}),S.jsx("span",{className:"font-medium",children:d?"error":"result"}),v&&!s&&S.jsx("span",{className:`font-normal truncate max-w-[200px] ${d?"text-rose-500/70":"text-teal-500/70"}`,children:v}),x&&S.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),s&&x&&S.jsx(P3,{toolName:b,content:m,isError:d})]})}return null}function eE({onClick:n}){return S.jsxs("button",{onClick:n,className:"fixed bottom-4 right-6 flex cursor-pointer items-center gap-1.5 rounded-full bg-zinc-200/90 px-3.5 py-2 text-xs font-medium text-zinc-900 shadow-lg backdrop-blur-sm transition-all hover:bg-zinc-100",children:[S.jsx("svg",{className:"h-3.5 w-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"})]})}const tE=10,nE=1e3,lE=3e4,iE=100;function aE(n){const{sessionId:a}=n,[i,u]=se.useState([]),[s,c]=se.useState(!0),[f,d]=se.useState(!0),p=se.useRef(null),m=se.useRef(null),x=se.useRef(0),g=se.useRef(!1),v=se.useRef(0),b=se.useRef(null),w=se.useRef(null),M=se.useRef(!0),U=se.useCallback(()=>{if(!M.current)return;b.current&&b.current.close();const F=new EventSource(`/api/conversation/${a}/stream?offset=${x.current}`);b.current=F,F.addEventListener("messages",D=>{v.current=0;const $=JSON.parse(D.data);c(!1),u(ue=>{const fe=new Set(ue.map(te=>te.uuid).filter(Boolean)),B=$.filter(te=>!fe.has(te.uuid));return B.length===0?ue:(x.current+=B.length,[...ue,...B])})}),F.onerror=()=>{if(F.close(),c(!1),!!M.current&&v.current<tE){const D=Math.min(nE*Math.pow(2,v.current),lE);v.current++,w.current=setTimeout(()=>U(),D)}}},[a]);se.useEffect(()=>(M.current=!0,c(!0),u([]),x.current=0,v.current=0,U(),()=>{M.current=!1,w.current&&clearTimeout(w.current),b.current&&b.current.close()}),[U]);const _=se.useCallback(()=>{m.current&&(g.current=!0,m.current.scrollIntoView({behavior:"instant"}),requestAnimationFrame(()=>{g.current=!1}))},[]);se.useEffect(()=>{f&&_()},[i,f,_]);const Y=()=>{if(!p.current||g.current)return;const{scrollTop:F,scrollHeight:D,clientHeight:$}=p.current,ue=D-F-$<iE;d(ue)},H=i.find(F=>F.type==="summary"),I=i.filter(F=>F.type==="user"||F.type==="assistant");return s?S.jsx("div",{className:"flex h-full items-center justify-center text-zinc-500",children:"Loading..."}):S.jsxs("div",{className:"relative h-full",children:[S.jsx("div",{ref:p,onScroll:Y,className:"h-full overflow-y-auto bg-zinc-950",children:S.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-4",children:[H&&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:H.summary}),S.jsxs("p",{className:"mt-2 text-[11px] text-zinc-500",children:[I.length," messages"]})]}),S.jsx("div",{className:"flex flex-col gap-2",children:I.map((F,D)=>S.jsx("div",{ref:D===I.length-1?m:void 0,children:S.jsx(F3,{message:F})},F.uuid||D))})]})}),!f&&S.jsx(eE,{onClick:()=>{d(!0),_()}})]})}function rE(n,a){const{events:i,onError:u,maxRetries:s=10,baseDelay:c=1e3}=a,f=se.useRef(null),d=se.useRef(0),p=se.useRef(null),m=se.useRef(!0),x=se.useRef(i);x.current=i;const g=se.useCallback(()=>{if(!m.current)return;f.current&&f.current.close();const v=new EventSource(n);f.current=v;for(const b of x.current)v.addEventListener(b.eventName,w=>{d.current=0,b.onMessage(w)});v.onerror=()=>{if(v.close(),!!m.current)if(d.current<s){const b=Math.min(c*Math.pow(2,d.current),3e4);d.current++,p.current=setTimeout(()=>{g()},b)}else u==null||u()}},[n,u,s,c]);se.useEffect(()=>(m.current=!0,g(),()=>{m.current=!1,p.current&&clearTimeout(p.current),f.current&&f.current.close()}),[g])}function uE(n){const{session:a,copied:i,onCopyResumeCommand:u}=n;return 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:a.display}),S.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:a.projectName}),S.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:Ip(a.timestamp)})]}),S.jsx("button",{onClick:()=>u(a.id,a.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:i?S.jsxs(S.Fragment,{children:[S.jsx(Na,{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(dc,{className:"w-3.5 h-3.5"}),S.jsx("span",{children:"Copy Resume Command"})]})})]})}function sE(){const[n,a]=se.useState([]),[i,u]=se.useState([]),[s,c]=se.useState(null),[f,d]=se.useState(null),[p,m]=se.useState(!0),[x,g]=se.useState(!1),[v,b]=se.useState(!1),w=se.useCallback((F,D)=>{const $=`cd ${D} && claude --resume ${F}`;navigator.clipboard.writeText($).then(()=>{b(!0),setTimeout(()=>b(!1),2e3)})},[]),M=se.useMemo(()=>f&&n.find(F=>F.id===f)||null,[n,f]);se.useEffect(()=>{fetch("/api/projects").then(F=>F.json()).then(u).catch(console.error)},[]);const U=se.useCallback(F=>{const D=JSON.parse(F.data);a(D),m(!1)},[]),_=se.useCallback(F=>{const D=JSON.parse(F.data);a($=>{const ue=new Map($.map(fe=>[fe.id,fe]));for(const fe of D)ue.set(fe.id,fe);return Array.from(ue.values()).sort((fe,B)=>B.timestamp-fe.timestamp)})},[]),Y=se.useCallback(()=>{m(!1)},[]);rE("/api/sessions/stream",{events:[{eventName:"sessions",onMessage:U},{eventName:"sessionsUpdate",onMessage:_}],onError:Y});const H=se.useMemo(()=>s?n.filter(F=>F.project===s):n,[n,s]),I=se.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 D=F.split("/").pop()||F;return S.jsx("option",{value:F,children:D},F)})]})})}),S.jsx(Ix,{sessions:H,selectedSession:f,onSelectSession:I,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(mx,{className:"w-4 h-4 text-zinc-400"})}),M&&S.jsx(uE,{session:M,copied:v,onCopyResumeCommand:w})]}),S.jsx("div",{className:"flex-1 overflow-hidden",children:f?S.jsx(aE,{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"})]})})})]})]})}A1.createRoot(document.getElementById("root")).render(S.jsx(se.StrictMode,{children:S.jsx(sE,{})}));
|