@stcrft/statecraft 1.1.3 → 1.2.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.
@@ -0,0 +1,207 @@
1
+ (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function i(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=i(s);fetch(s.href,o)}})();function vy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Uc={exports:{}},Pa={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var ug;function xS(){if(ug)return Pa;ug=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(r,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var d in s)d!=="key"&&(o[d]=s[d])}else o=s;return s=o.ref,{$$typeof:n,type:r,key:c,ref:s!==void 0?s:null,props:o}}return Pa.Fragment=l,Pa.jsx=i,Pa.jsxs=i,Pa}var sg;function AS(){return sg||(sg=1,Uc.exports=xS()),Uc.exports}var le=AS(),qc={exports:{}},ge={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var og;function TS(){if(og)return ge;og=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function S(O){return O===null||typeof O!="object"?null:(O=v&&O[v]||O["@@iterator"],typeof O=="function"?O:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function _(O,V,w){this.props=O,this.context=V,this.refs=C,this.updater=w||E}_.prototype.isReactComponent={},_.prototype.setState=function(O,V){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,V,"setState")},_.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function q(){}q.prototype=_.prototype;function j(O,V,w){this.props=O,this.context=V,this.refs=C,this.updater=w||E}var $=j.prototype=new q;$.constructor=j,x($,_.prototype),$.isPureReactComponent=!0;var P=Array.isArray;function D(){}var K={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function ae(O,V,w){var ie=w.ref;return{$$typeof:n,type:O,key:V,ref:ie!==void 0?ie:null,props:w}}function B(O,V){return ae(O.type,V,O.props)}function te(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function X(O){var V={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(w){return V[w]})}var re=/\/+/g;function W(O,V){return typeof O=="object"&&O!==null&&O.key!=null?X(""+O.key):V.toString(36)}function J(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(D,D):(O.status="pending",O.then(function(V){O.status==="pending"&&(O.status="fulfilled",O.value=V)},function(V){O.status==="pending"&&(O.status="rejected",O.reason=V)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function M(O,V,w,ie,pe){var ce=typeof O;(ce==="undefined"||ce==="boolean")&&(O=null);var Te=!1;if(O===null)Te=!0;else switch(ce){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(O.$$typeof){case n:case l:Te=!0;break;case y:return Te=O._init,M(Te(O._payload),V,w,ie,pe)}}if(Te)return pe=pe(O),Te=ie===""?"."+W(O,0):ie,P(pe)?(w="",Te!=null&&(w=Te.replace(re,"$&/")+"/"),M(pe,V,w,"",function($t){return $t})):pe!=null&&(te(pe)&&(pe=B(pe,w+(pe.key==null||O&&O.key===pe.key?"":(""+pe.key).replace(re,"$&/")+"/")+Te)),V.push(pe)),1;Te=0;var $e=ie===""?".":ie+":";if(P(O))for(var je=0;je<O.length;je++)ie=O[je],ce=$e+W(ie,je),Te+=M(ie,V,w,ce,pe);else if(je=S(O),typeof je=="function")for(O=je.call(O),je=0;!(ie=O.next()).done;)ie=ie.value,ce=$e+W(ie,je++),Te+=M(ie,V,w,ce,pe);else if(ce==="object"){if(typeof O.then=="function")return M(J(O),V,w,ie,pe);throw V=String(O),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Te}function F(O,V,w){if(O==null)return O;var ie=[],pe=0;return M(O,ie,"","",function(ce){return V.call(w,ce,pe++)}),ie}function se(O){if(O._status===-1){var V=O._result;V=V(),V.then(function(w){(O._status===0||O._status===-1)&&(O._status=1,O._result=w)},function(w){(O._status===0||O._status===-1)&&(O._status=2,O._result=w)}),O._status===-1&&(O._status=0,O._result=V)}if(O._status===1)return O._result.default;throw O._result}var Se=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},A={map:F,forEach:function(O,V,w){F(O,function(){V.apply(this,arguments)},w)},count:function(O){var V=0;return F(O,function(){V++}),V},toArray:function(O){return F(O,function(V){return V})||[]},only:function(O){if(!te(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return ge.Activity=g,ge.Children=A,ge.Component=_,ge.Fragment=i,ge.Profiler=s,ge.PureComponent=j,ge.StrictMode=r,ge.Suspense=m,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ge.__COMPILER_RUNTIME={__proto__:null,c:function(O){return K.H.useMemoCache(O)}},ge.cache=function(O){return function(){return O.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(O,V,w){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ie=x({},O.props),pe=O.key;if(V!=null)for(ce in V.key!==void 0&&(pe=""+V.key),V)!Z.call(V,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&V.ref===void 0||(ie[ce]=V[ce]);var ce=arguments.length-2;if(ce===1)ie.children=w;else if(1<ce){for(var Te=Array(ce),$e=0;$e<ce;$e++)Te[$e]=arguments[$e+2];ie.children=Te}return ae(O.type,pe,ie)},ge.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:o,_context:O},O},ge.createElement=function(O,V,w){var ie,pe={},ce=null;if(V!=null)for(ie in V.key!==void 0&&(ce=""+V.key),V)Z.call(V,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(pe[ie]=V[ie]);var Te=arguments.length-2;if(Te===1)pe.children=w;else if(1<Te){for(var $e=Array(Te),je=0;je<Te;je++)$e[je]=arguments[je+2];pe.children=$e}if(O&&O.defaultProps)for(ie in Te=O.defaultProps,Te)pe[ie]===void 0&&(pe[ie]=Te[ie]);return ae(O,ce,pe)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(O){return{$$typeof:d,render:O}},ge.isValidElement=te,ge.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:se}},ge.memo=function(O,V){return{$$typeof:p,type:O,compare:V===void 0?null:V}},ge.startTransition=function(O){var V=K.T,w={};K.T=w;try{var ie=O(),pe=K.S;pe!==null&&pe(w,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(D,Se)}catch(ce){Se(ce)}finally{V!==null&&w.types!==null&&(V.types=w.types),K.T=V}},ge.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ge.use=function(O){return K.H.use(O)},ge.useActionState=function(O,V,w){return K.H.useActionState(O,V,w)},ge.useCallback=function(O,V){return K.H.useCallback(O,V)},ge.useContext=function(O){return K.H.useContext(O)},ge.useDebugValue=function(){},ge.useDeferredValue=function(O,V){return K.H.useDeferredValue(O,V)},ge.useEffect=function(O,V){return K.H.useEffect(O,V)},ge.useEffectEvent=function(O){return K.H.useEffectEvent(O)},ge.useId=function(){return K.H.useId()},ge.useImperativeHandle=function(O,V,w){return K.H.useImperativeHandle(O,V,w)},ge.useInsertionEffect=function(O,V){return K.H.useInsertionEffect(O,V)},ge.useLayoutEffect=function(O,V){return K.H.useLayoutEffect(O,V)},ge.useMemo=function(O,V){return K.H.useMemo(O,V)},ge.useOptimistic=function(O,V){return K.H.useOptimistic(O,V)},ge.useReducer=function(O,V,w){return K.H.useReducer(O,V,w)},ge.useRef=function(O){return K.H.useRef(O)},ge.useState=function(O){return K.H.useState(O)},ge.useSyncExternalStore=function(O,V,w){return K.H.useSyncExternalStore(O,V,w)},ge.useTransition=function(){return K.H.useTransition()},ge.version="19.2.4",ge}var cg;function zf(){return cg||(cg=1,qc.exports=TS()),qc.exports}var Ze=zf(),Hc={exports:{}},Wa={},Yc={exports:{}},Vc={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var fg;function _S(){return fg||(fg=1,(function(n){function l(M,F){var se=M.length;M.push(F);e:for(;0<se;){var Se=se-1>>>1,A=M[Se];if(0<s(A,F))M[Se]=F,M[se]=A,se=Se;else break e}}function i(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var F=M[0],se=M.pop();if(se!==F){M[0]=se;e:for(var Se=0,A=M.length,O=A>>>1;Se<O;){var V=2*(Se+1)-1,w=M[V],ie=V+1,pe=M[ie];if(0>s(w,se))ie<A&&0>s(pe,w)?(M[Se]=pe,M[ie]=se,Se=ie):(M[Se]=w,M[V]=se,Se=V);else if(ie<A&&0>s(pe,se))M[Se]=pe,M[ie]=se,Se=ie;else break e}}return F}function s(M,F){var se=M.sortIndex-F.sortIndex;return se!==0?se:M.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();n.unstable_now=function(){return c.now()-d}}var m=[],p=[],y=1,g=null,v=3,S=!1,E=!1,x=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function $(M){for(var F=i(p);F!==null;){if(F.callback===null)r(p);else if(F.startTime<=M)r(p),F.sortIndex=F.expirationTime,l(m,F);else break;F=i(p)}}function P(M){if(x=!1,$(M),!E)if(i(m)!==null)E=!0,D||(D=!0,X());else{var F=i(p);F!==null&&J(P,F.startTime-M)}}var D=!1,K=-1,Z=5,ae=-1;function B(){return C?!0:!(n.unstable_now()-ae<Z)}function te(){if(C=!1,D){var M=n.unstable_now();ae=M;var F=!0;try{e:{E=!1,x&&(x=!1,q(K),K=-1),S=!0;var se=v;try{t:{for($(M),g=i(m);g!==null&&!(g.expirationTime>M&&B());){var Se=g.callback;if(typeof Se=="function"){g.callback=null,v=g.priorityLevel;var A=Se(g.expirationTime<=M);if(M=n.unstable_now(),typeof A=="function"){g.callback=A,$(M),F=!0;break t}g===i(m)&&r(m),$(M)}else r(m);g=i(m)}if(g!==null)F=!0;else{var O=i(p);O!==null&&J(P,O.startTime-M),F=!1}}break e}finally{g=null,v=se,S=!1}F=void 0}}finally{F?X():D=!1}}}var X;if(typeof j=="function")X=function(){j(te)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,W=re.port2;re.port1.onmessage=te,X=function(){W.postMessage(null)}}else X=function(){_(te,0)};function J(M,F){K=_(function(){M(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_next=function(M){switch(v){case 1:case 2:case 3:var F=3;break;default:F=v}var se=v;v=F;try{return M()}finally{v=se}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(M,F){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var se=v;v=M;try{return F()}finally{v=se}},n.unstable_scheduleCallback=function(M,F,se){var Se=n.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?Se+se:Se):se=Se,M){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=se+A,M={id:y++,callback:F,priorityLevel:M,startTime:se,expirationTime:A,sortIndex:-1},se>Se?(M.sortIndex=se,l(p,M),i(m)===null&&M===i(p)&&(x?(q(K),K=-1):x=!0,J(P,se-Se))):(M.sortIndex=A,l(m,M),E||S||(E=!0,D||(D=!0,X()))),M},n.unstable_shouldYield=B,n.unstable_wrapCallback=function(M){var F=v;return function(){var se=v;v=F;try{return M.apply(this,arguments)}finally{v=se}}}})(Vc)),Vc}var hg;function CS(){return hg||(hg=1,Yc.exports=_S()),Yc.exports}var Ic={exports:{}},St={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var dg;function OS(){if(dg)return St;dg=1;var n=zf();function l(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(l(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 o(m,p,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:m,containerInfo:p,implementation:y}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,St.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return o(m,p,null,y)},St.flushSync=function(m){var p=c.T,y=r.p;try{if(c.T=null,r.p=2,m)return m()}finally{c.T=p,r.p=y,r.d.f()}},St.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(m,p))},St.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},St.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?r.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:S}):y==="script"&&r.d.X(m,{crossOrigin:g,integrity:v,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},St.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=d(p.as,p.crossOrigin);r.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(m)},St.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin);r.d.L(m,y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},St.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=d(p.as,p.crossOrigin);r.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(m)},St.requestFormReset=function(m){r.d.r(m)},St.unstable_batchedUpdates=function(m,p){return m(p)},St.useFormState=function(m,p,y){return c.H.useFormState(m,p,y)},St.useFormStatus=function(){return c.H.useHostTransitionStatus()},St.version="19.2.4",St}var pg;function NS(){if(pg)return Ic.exports;pg=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(l){console.error(l)}}return n(),Ic.exports=OS(),Ic.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var mg;function zS(){if(mg)return Wa;mg=1;var n=CS(),l=zf(),i=NS();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 o(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function c(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 m(e){if(o(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,u=t;;){var f=a.return;if(f===null)break;var h=f.alternate;if(h===null){if(u=f.return,u!==null){a=u;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===a)return m(f),e;if(h===u)return m(f),t;h=h.sibling}throw Error(r(188))}if(a.return!==u.return)a=f,u=h;else{for(var b=!1,k=f.child;k;){if(k===a){b=!0,a=f,u=h;break}if(k===u){b=!0,u=f,a=h;break}k=k.sibling}if(!b){for(k=h.child;k;){if(k===a){b=!0,a=h,u=f;break}if(k===u){b=!0,u=h,a=f;break}k=k.sibling}if(!b)throw Error(r(189))}}if(a.alternate!==u)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),j=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var re=Symbol.for("react.client.reference");function W(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case _:return"Profiler";case C:return"StrictMode";case P:return"Suspense";case D:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case j:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:W(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return W(e(t))}catch{}}return null}var J=Array.isArray,M=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},Se=[],A=-1;function O(e){return{current:e}}function V(e){0>A||(e.current=Se[A],Se[A]=null,A--)}function w(e,t){A++,Se[A]=e.current,e.current=t}var ie=O(null),pe=O(null),ce=O(null),Te=O(null);function $e(e,t){switch(w(ce,t),w(pe,e),w(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Nm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nm(t),e=zm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(ie),w(ie,e)}function je(){V(ie),V(pe),V(ce)}function $t(e){e.memoizedState!==null&&w(Te,e);var t=ie.current,a=zm(t,e.type);t!==a&&(w(pe,e),w(ie,a))}function xn(e){pe.current===e&&(V(ie),V(pe)),Te.current===e&&(V(Te),$a._currentValue=se)}var aa,Er;function An(e){if(aa===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);aa=t&&t[1]||"",Er=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+aa+e+Er}var Zl=!1;function Jl(e,t){if(!e||Zl)return"";Zl=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(H){var U=H}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(H){U=H}e.call(Q.prototype)}}else{try{throw Error()}catch(H){U=H}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=u.DetermineComponentFrameRoot(),b=h[0],k=h[1];if(b&&k){var T=b.split(`
44
+ `),R=k.split(`
45
+ `);for(f=u=0;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;for(;f<R.length&&!R[f].includes("DetermineComponentFrameRoot");)f++;if(u===T.length||f===R.length)for(u=T.length-1,f=R.length-1;1<=u&&0<=f&&T[u]!==R[f];)f--;for(;1<=u&&0<=f;u--,f--)if(T[u]!==R[f]){if(u!==1||f!==1)do if(u--,f--,0>f||T[u]!==R[f]){var Y=`
46
+ `+T[u].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=u&&0<=f);break}}}finally{Zl=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?An(a):""}function xr(e,t){switch(e.tag){case 26:case 27:case 5:return An(e.type);case 16:return An("Lazy");case 13:return e.child!==t&&t!==null?An("Suspense Fallback"):An("Suspense");case 19:return An("SuspenseList");case 0:case 15:return Jl(e.type,!1);case 11:return Jl(e.type.render,!1);case 1:return Jl(e.type,!0);case 31:return An("Activity");default:return""}}function Ar(e){try{var t="",a=null;do t+=xr(e,a),a=e,e=e.return;while(e);return t}catch(u){return`
47
+ Error generating stack: `+u.message+`
48
+ `+u.stack}}var Pl=Object.prototype.hasOwnProperty,Wl=n.unstable_scheduleCallback,ra=n.unstable_cancelCallback,ws=n.unstable_shouldYield,Es=n.unstable_requestPaint,wt=n.unstable_now,xs=n.unstable_getCurrentPriorityLevel,I=n.unstable_ImmediatePriority,ne=n.unstable_UserBlockingPriority,me=n.unstable_NormalPriority,we=n.unstable_LowPriority,Le=n.unstable_IdlePriority,Ut=n.log,Tn=n.unstable_setDisableYieldValue,Et=null,ot=null;function Ct(e){if(typeof Ut=="function"&&Tn(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Et,e)}catch{}}var Ye=Math.clz32?Math.clz32:c0,Fn=Math.log,cn=Math.LN2;function c0(e){return e>>>=0,e===0?32:31-(Fn(e)/cn|0)|0}var Tr=256,_r=262144,Cr=4194304;function xl(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 Or(e,t,a){var u=e.pendingLanes;if(u===0)return 0;var f=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var k=u&134217727;return k!==0?(u=k&~h,u!==0?f=xl(u):(b&=k,b!==0?f=xl(b):a||(a=k&~e,a!==0&&(f=xl(a))))):(k=u&~h,k!==0?f=xl(k):b!==0?f=xl(b):a||(a=u&~e,a!==0&&(f=xl(a)))),f===0?0:t!==0&&t!==f&&(t&h)===0&&(h=f&-f,a=t&-t,h>=a||h===32&&(a&4194048)!==0)?t:f}function ua(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function f0(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 fh(){var e=Cr;return Cr<<=1,(Cr&62914560)===0&&(Cr=4194304),e}function As(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function sa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function h0(e,t,a,u,f,h){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var k=e.entanglements,T=e.expirationTimes,R=e.hiddenUpdates;for(a=b&~a;0<a;){var Y=31-Ye(a),Q=1<<Y;k[Y]=0,T[Y]=-1;var U=R[Y];if(U!==null)for(R[Y]=null,Y=0;Y<U.length;Y++){var H=U[Y];H!==null&&(H.lane&=-536870913)}a&=~Q}u!==0&&hh(e,u,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~t))}function hh(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-Ye(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|a&261930}function dh(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var u=31-Ye(a),f=1<<u;f&t|e[u]&t&&(e[u]|=t),a&=~f}}function ph(e,t){var a=t&-t;return a=(a&42)!==0?1:Ts(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ts(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 _s(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function mh(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:eg(e.type))}function gh(e,t){var a=F.p;try{return F.p=e,t()}finally{F.p=a}}var Zn=Math.random().toString(36).slice(2),pt="__reactFiber$"+Zn,Ot="__reactProps$"+Zn,ei="__reactContainer$"+Zn,Cs="__reactEvents$"+Zn,d0="__reactListeners$"+Zn,p0="__reactHandles$"+Zn,yh="__reactResources$"+Zn,oa="__reactMarker$"+Zn;function Os(e){delete e[pt],delete e[Ot],delete e[Cs],delete e[d0],delete e[p0]}function ti(e){var t=e[pt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ei]||a[pt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Um(e);e!==null;){if(a=e[pt])return a;e=Um(e)}return t}e=a,a=e.parentNode}return null}function ni(e){if(e=e[pt]||e[ei]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ca(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function li(e){var t=e[yh];return t||(t=e[yh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[oa]=!0}var bh=new Set,Sh={};function Al(e,t){ii(e,t),ii(e+"Capture",t)}function ii(e,t){for(Sh[e]=t,e=0;e<t.length;e++)bh.add(t[e])}var m0=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]*$"),vh={},kh={};function g0(e){return Pl.call(kh,e)?!0:Pl.call(vh,e)?!1:m0.test(e)?kh[e]=!0:(vh[e]=!0,!1)}function Nr(e,t,a){if(g0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function zr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function _n(e,t,a,u){if(u===null)e.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+u)}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function y0(e,t,a){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return f.call(this)},set:function(b){a=""+b,h.call(this,b)}}),Object.defineProperty(e,t,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ns(e){if(!e._valueTracker){var t=wh(e)?"checked":"value";e._valueTracker=y0(e,t,""+e[t])}}function Eh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),u="";return e&&(u=wh(e)?e.checked?"true":"false":e.value),e=u,e!==a?(t.setValue(e),!0):!1}function Dr(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 b0=/[\n"\\]/g;function Zt(e){return e.replace(b0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zs(e,t,a,u,f,h,b,k){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ft(t)):e.value!==""+Ft(t)&&(e.value=""+Ft(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?Ds(e,b,Ft(t)):a!=null?Ds(e,b,Ft(a)):u!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?e.name=""+Ft(k):e.removeAttribute("name")}function xh(e,t,a,u,f,h,b,k){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),t!=null||a!=null){if(!(h!=="submit"&&h!=="reset"||t!=null)){Ns(e);return}a=a!=null?""+Ft(a):"",t=t!=null?""+Ft(t):a,k||t===e.value||(e.value=t),e.defaultValue=t}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=k?e.checked:!!u,e.defaultChecked=!!u,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Ns(e)}function Ds(e,t,a){t==="number"&&Dr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ai(e,t,a,u){if(e=e.options,t){t={};for(var f=0;f<a.length;f++)t["$"+a[f]]=!0;for(a=0;a<e.length;a++)f=t.hasOwnProperty("$"+e[a].value),e[a].selected!==f&&(e[a].selected=f),f&&u&&(e[a].defaultSelected=!0)}else{for(a=""+Ft(a),t=null,f=0;f<e.length;f++){if(e[f].value===a){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}t!==null||e[f].disabled||(t=e[f])}t!==null&&(t.selected=!0)}}function Ah(e,t,a){if(t!=null&&(t=""+Ft(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ft(a):""}function Th(e,t,a,u){if(t==null){if(u!=null){if(a!=null)throw Error(r(92));if(J(u)){if(1<u.length)throw Error(r(93));u=u[0]}a=u}a==null&&(a=""),t=a}a=Ft(t),e.defaultValue=a,u=e.textContent,u===a&&u!==""&&u!==null&&(e.value=u),Ns(e)}function ri(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var S0=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 _h(e,t,a){var u=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,a):typeof a!="number"||a===0||S0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Ch(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var u in a)!a.hasOwnProperty(u)||t!=null&&t.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var f in t)u=t[f],t.hasOwnProperty(f)&&a[f]!==u&&_h(e,f,u)}else for(var h in t)t.hasOwnProperty(h)&&_h(e,h,t[h])}function Ms(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 v0=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"]]),k0=/^[\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 Mr(e){return k0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Cn(){}var Ls=null;function Rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ui=null,si=null;function Oh(e){var t=ni(e);if(t&&(e=t.stateNode)){var a=e[Ot]||null;e:switch(e=t.stateNode,t.type){case"input":if(zs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Zt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var u=a[t];if(u!==e&&u.form===e.form){var f=u[Ot]||null;if(!f)throw Error(r(90));zs(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<a.length;t++)u=a[t],u.form===e.form&&Eh(u)}break e;case"textarea":Ah(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ai(e,!!a.multiple,t,!1)}}}var Bs=!1;function Nh(e,t,a){if(Bs)return e(t,a);Bs=!0;try{var u=e(t);return u}finally{if(Bs=!1,(ui!==null||si!==null)&&(vu(),ui&&(t=ui,e=si,si=ui=null,Oh(t),e)))for(t=0;t<e.length;t++)Oh(e[t])}}function fa(e,t){var a=e.stateNode;if(a===null)return null;var u=a[Ot]||null;if(u===null)return null;a=u[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":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),js=!1;if(On)try{var ha={};Object.defineProperty(ha,"passive",{get:function(){js=!0}}),window.addEventListener("test",ha,ha),window.removeEventListener("test",ha,ha)}catch{js=!1}var Jn=null,Us=null,Lr=null;function zh(){if(Lr)return Lr;var e,t=Us,a=t.length,u,f="value"in Jn?Jn.value:Jn.textContent,h=f.length;for(e=0;e<a&&t[e]===f[e];e++);var b=a-e;for(u=1;u<=b&&t[a-u]===f[h-u];u++);return Lr=f.slice(e,1<u?1-u:void 0)}function Rr(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 Br(){return!0}function Dh(){return!1}function Nt(e){function t(a,u,f,h,b){this._reactName=a,this._targetInst=f,this.type=u,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var k in e)e.hasOwnProperty(k)&&(a=e[k],this[k]=a?a(h):h[k]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Br:Dh,this.isPropagationStopped=Dh,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Br)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Br)},persist:function(){},isPersistent:Br}),t}var Tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jr=Nt(Tl),da=g({},Tl,{view:0,detail:0}),w0=Nt(da),qs,Hs,pa,Ur=g({},da,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vs,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!==pa&&(pa&&e.type==="mousemove"?(qs=e.screenX-pa.screenX,Hs=e.screenY-pa.screenY):Hs=qs=0,pa=e),qs)},movementY:function(e){return"movementY"in e?e.movementY:Hs}}),Mh=Nt(Ur),E0=g({},Ur,{dataTransfer:0}),x0=Nt(E0),A0=g({},da,{relatedTarget:0}),Ys=Nt(A0),T0=g({},Tl,{animationName:0,elapsedTime:0,pseudoElement:0}),_0=Nt(T0),C0=g({},Tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),O0=Nt(C0),N0=g({},Tl,{data:0}),Lh=Nt(N0),z0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D0={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"},M0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M0[e])?!!t[e]:!1}function Vs(){return L0}var R0=g({},da,{key:function(e){if(e.key){var t=z0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Rr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vs,charCode:function(e){return e.type==="keypress"?Rr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Rr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),B0=Nt(R0),j0=g({},Ur,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rh=Nt(j0),U0=g({},da,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vs}),q0=Nt(U0),H0=g({},Tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y0=Nt(H0),V0=g({},Ur,{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}),I0=Nt(V0),G0=g({},Tl,{newState:0,oldState:0}),K0=Nt(G0),Q0=[9,13,27,32],Is=On&&"CompositionEvent"in window,ma=null;On&&"documentMode"in document&&(ma=document.documentMode);var X0=On&&"TextEvent"in window&&!ma,Bh=On&&(!Is||ma&&8<ma&&11>=ma),jh=" ",Uh=!1;function qh(e,t){switch(e){case"keyup":return Q0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oi=!1;function $0(e,t){switch(e){case"compositionend":return Hh(t);case"keypress":return t.which!==32?null:(Uh=!0,jh);case"textInput":return e=t.data,e===jh&&Uh?null:e;default:return null}}function F0(e,t){if(oi)return e==="compositionend"||!Is&&qh(e,t)?(e=zh(),Lr=Us=Jn=null,oi=!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 Bh&&t.locale!=="ko"?null:t.data;default:return null}}var Z0={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 Yh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Z0[e.type]:t==="textarea"}function Vh(e,t,a,u){ui?si?si.push(u):si=[u]:ui=u,t=_u(t,"onChange"),0<t.length&&(a=new jr("onChange","change",null,a,u),e.push({event:a,listeners:t}))}var ga=null,ya=null;function J0(e){xm(e,0)}function qr(e){var t=ca(e);if(Eh(t))return e}function Ih(e,t){if(e==="change")return t}var Gh=!1;if(On){var Gs;if(On){var Ks="oninput"in document;if(!Ks){var Kh=document.createElement("div");Kh.setAttribute("oninput","return;"),Ks=typeof Kh.oninput=="function"}Gs=Ks}else Gs=!1;Gh=Gs&&(!document.documentMode||9<document.documentMode)}function Qh(){ga&&(ga.detachEvent("onpropertychange",Xh),ya=ga=null)}function Xh(e){if(e.propertyName==="value"&&qr(ya)){var t=[];Vh(t,ya,e,Rs(e)),Nh(J0,t)}}function P0(e,t,a){e==="focusin"?(Qh(),ga=t,ya=a,ga.attachEvent("onpropertychange",Xh)):e==="focusout"&&Qh()}function W0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qr(ya)}function eb(e,t){if(e==="click")return qr(t)}function tb(e,t){if(e==="input"||e==="change")return qr(t)}function nb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:nb;function ba(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),u=Object.keys(t);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var f=a[u];if(!Pl.call(t,f)||!qt(e[f],t[f]))return!1}return!0}function $h(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fh(e,t){var a=$h(e);e=0;for(var u;a;){if(a.nodeType===3){if(u=e+a.textContent.length,e<=t&&u>=t)return{node:a,offset:t-e};e=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=$h(a)}}function Zh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Dr(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Dr(e.document)}return t}function Qs(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 lb=On&&"documentMode"in document&&11>=document.documentMode,ci=null,Xs=null,Sa=null,$s=!1;function Ph(e,t,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;$s||ci==null||ci!==Dr(u)||(u=ci,"selectionStart"in u&&Qs(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Sa&&ba(Sa,u)||(Sa=u,u=_u(Xs,"onSelect"),0<u.length&&(t=new jr("onSelect","select",null,t,a),e.push({event:t,listeners:u}),t.target=ci)))}function _l(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var fi={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionrun:_l("Transition","TransitionRun"),transitionstart:_l("Transition","TransitionStart"),transitioncancel:_l("Transition","TransitionCancel"),transitionend:_l("Transition","TransitionEnd")},Fs={},Wh={};On&&(Wh=document.createElement("div").style,"AnimationEvent"in window||(delete fi.animationend.animation,delete fi.animationiteration.animation,delete fi.animationstart.animation),"TransitionEvent"in window||delete fi.transitionend.transition);function Cl(e){if(Fs[e])return Fs[e];if(!fi[e])return e;var t=fi[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Wh)return Fs[e]=t[a];return e}var ed=Cl("animationend"),td=Cl("animationiteration"),nd=Cl("animationstart"),ib=Cl("transitionrun"),ab=Cl("transitionstart"),rb=Cl("transitioncancel"),ld=Cl("transitionend"),id=new Map,Zs="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(" ");Zs.push("scrollEnd");function fn(e,t){id.set(e,t),Al(t,[e])}var Hr=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)},Jt=[],hi=0,Js=0;function Yr(){for(var e=hi,t=Js=hi=0;t<e;){var a=Jt[t];Jt[t++]=null;var u=Jt[t];Jt[t++]=null;var f=Jt[t];Jt[t++]=null;var h=Jt[t];if(Jt[t++]=null,u!==null&&f!==null){var b=u.pending;b===null?f.next=f:(f.next=b.next,b.next=f),u.pending=f}h!==0&&ad(a,f,h)}}function Vr(e,t,a,u){Jt[hi++]=e,Jt[hi++]=t,Jt[hi++]=a,Jt[hi++]=u,Js|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Ps(e,t,a,u){return Vr(e,t,a,u),Ir(e)}function Ol(e,t){return Vr(e,null,null,t),Ir(e)}function ad(e,t,a){e.lanes|=a;var u=e.alternate;u!==null&&(u.lanes|=a);for(var f=!1,h=e.return;h!==null;)h.childLanes|=a,u=h.alternate,u!==null&&(u.childLanes|=a),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&t!==null&&(f=31-Ye(a),e=h.hiddenUpdates,u=e[f],u===null?e[f]=[t]:u.push(t),t.lane=a|536870912),h):null}function Ir(e){if(50<Ya)throw Ya=0,sc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var di={};function ub(e,t,a,u){this.tag=e,this.key=a,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=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,a,u){return new ub(e,t,a,u)}function Ws(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nn(e,t){var a=e.alternate;return a===null?(a=Ht(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function rd(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gr(e,t,a,u,f,h){var b=0;if(u=e,typeof e=="function")Ws(e)&&(b=1);else if(typeof e=="string")b=hS(e,a,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Ht(31,a,t,f),e.elementType=ae,e.lanes=h,e;case x:return Nl(a.children,f,h,t);case C:b=8,f|=24;break;case _:return e=Ht(12,a,t,f|2),e.elementType=_,e.lanes=h,e;case P:return e=Ht(13,a,t,f),e.elementType=P,e.lanes=h,e;case D:return e=Ht(19,a,t,f),e.elementType=D,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:b=10;break e;case q:b=9;break e;case $:b=11;break e;case K:b=14;break e;case Z:b=16,u=null;break e}b=29,a=Error(r(130,e===null?"null":typeof e,"")),u=null}return t=Ht(b,a,t,f),t.elementType=e,t.type=u,t.lanes=h,t}function Nl(e,t,a,u){return e=Ht(7,e,u,t),e.lanes=a,e}function eo(e,t,a){return e=Ht(6,e,null,t),e.lanes=a,e}function ud(e){var t=Ht(18,null,null,0);return t.stateNode=e,t}function to(e,t,a){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sd=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var a=sd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ar(t)},sd.set(e,t),t)}return{value:e,source:t,stack:Ar(t)}}var pi=[],mi=0,Kr=null,va=0,Wt=[],en=0,Pn=null,yn=1,bn="";function zn(e,t){pi[mi++]=va,pi[mi++]=Kr,Kr=e,va=t}function od(e,t,a){Wt[en++]=yn,Wt[en++]=bn,Wt[en++]=Pn,Pn=e;var u=yn;e=bn;var f=32-Ye(u)-1;u&=~(1<<f),a+=1;var h=32-Ye(t)+f;if(30<h){var b=f-f%5;h=(u&(1<<b)-1).toString(32),u>>=b,f-=b,yn=1<<32-Ye(t)+f|a<<f|u,bn=h+e}else yn=1<<h|a<<f|u,bn=e}function no(e){e.return!==null&&(zn(e,1),od(e,1,0))}function lo(e){for(;e===Kr;)Kr=pi[--mi],pi[mi]=null,va=pi[--mi],pi[mi]=null;for(;e===Pn;)Pn=Wt[--en],Wt[en]=null,bn=Wt[--en],Wt[en]=null,yn=Wt[--en],Wt[en]=null}function cd(e,t){Wt[en++]=yn,Wt[en++]=bn,Wt[en++]=Pn,yn=t.id,bn=t.overflow,Pn=e}var mt=null,Qe=null,Oe=!1,Wn=null,tn=!1,io=Error(r(519));function el(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ka(Pt(t,e)),io}function fd(e){var t=e.stateNode,a=e.type,u=e.memoizedProps;switch(t[pt]=e,t[Ot]=u,a){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(a=0;a<Ia.length;a++)xe(Ia[a],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),xh(t,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Th(t,u.value,u.defaultValue,u.children)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||u.suppressHydrationWarning===!0||Cm(t.textContent,a)?(u.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),u.onScroll!=null&&xe("scroll",t),u.onScrollEnd!=null&&xe("scrollend",t),u.onClick!=null&&(t.onclick=Cn),t=!0):t=!1,t||el(e,!0)}function hd(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:mt=mt.return}}function gi(e){if(e!==mt)return!1;if(!Oe)return hd(e),Oe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ec(e.type,e.memoizedProps)),a=!a),a&&Qe&&el(e),hd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=jm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=jm(e)}else t===27?(t=Qe,pl(e.type)?(e=Cc,Cc=null,Qe=e):Qe=t):Qe=mt?ln(e.stateNode.nextSibling):null;return!0}function zl(){Qe=mt=null,Oe=!1}function ao(){var e=Wn;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),Wn=null),e}function ka(e){Wn===null?Wn=[e]:Wn.push(e)}var ro=O(null),Dl=null,Dn=null;function tl(e,t,a){w(ro,t._currentValue),t._currentValue=a}function Mn(e){e._currentValue=ro.current,V(ro)}function uo(e,t,a){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===a)break;e=e.return}}function so(e,t,a,u){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var b=f.child;h=h.firstContext;e:for(;h!==null;){var k=h;h=f;for(var T=0;T<t.length;T++)if(k.context===t[T]){h.lanes|=a,k=h.alternate,k!==null&&(k.lanes|=a),uo(h.return,a,e),u||(b=null);break e}h=k.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(r(341));b.lanes|=a,h=b.alternate,h!==null&&(h.lanes|=a),uo(b,a,e),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===e){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function yi(e,t,a,u){e=null;for(var f=t,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(r(387));if(b=b.memoizedProps,b!==null){var k=f.type;qt(f.pendingProps.value,b.value)||(e!==null?e.push(k):e=[k])}}else if(f===Te.current){if(b=f.alternate,b===null)throw Error(r(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push($a):e=[$a])}f=f.return}e!==null&&so(t,e,a,u),t.flags|=262144}function Qr(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ml(e){Dl=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return dd(Dl,e)}function Xr(e,t){return Dl===null&&Ml(e),dd(e,t)}function dd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Dn===null){if(e===null)throw Error(r(308));Dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Dn=Dn.next=t;return a}var sb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},ob=n.unstable_scheduleCallback,cb=n.unstable_NormalPriority,it={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oo(){return{controller:new sb,data:new Map,refCount:0}}function wa(e){e.refCount--,e.refCount===0&&ob(cb,function(){e.controller.abort()})}var Ea=null,co=0,bi=0,Si=null;function fb(e,t){if(Ea===null){var a=Ea=[];co=0,bi=pc(),Si={status:"pending",value:void 0,then:function(u){a.push(u)}}}return co++,t.then(pd,pd),t}function pd(){if(--co===0&&Ea!==null){Si!==null&&(Si.status="fulfilled");var e=Ea;Ea=null,bi=0,Si=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hb(e,t){var a=[],u={status:"pending",value:null,reason:null,then:function(f){a.push(f)}};return e.then(function(){u.status="fulfilled",u.value=t;for(var f=0;f<a.length;f++)(0,a[f])(t)},function(f){for(u.status="rejected",u.reason=f,f=0;f<a.length;f++)(0,a[f])(void 0)}),u}var md=M.S;M.S=function(e,t){Pp=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&fb(e,t),md!==null&&md(e,t)};var Ll=O(null);function fo(){var e=Ll.current;return e!==null?e:Ve.pooledCache}function $r(e,t){t===null?w(Ll,Ll.current):w(Ll,t.pool)}function gd(){var e=fo();return e===null?null:{parent:it._currentValue,pool:e}}var vi=Error(r(460)),ho=Error(r(474)),Fr=Error(r(542)),Zr={then:function(){}};function yd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Cn,Cn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vd(e),e;default:if(typeof t.status=="string")t.then(Cn,Cn);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(u){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=u}},function(u){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=u}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vd(e),e}throw Bl=t,vi}}function Rl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Bl=a,vi):a}}var Bl=null;function Sd(){if(Bl===null)throw Error(r(459));var e=Bl;return Bl=null,e}function vd(e){if(e===vi||e===Fr)throw Error(r(483))}var ki=null,xa=0;function Jr(e){var t=xa;return xa+=1,ki===null&&(ki=[]),bd(ki,e,t)}function Aa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Pr(e,t){throw t.$$typeof===v?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function kd(e){function t(z,N){if(e){var L=z.deletions;L===null?(z.deletions=[N],z.flags|=16):L.push(N)}}function a(z,N){if(!e)return null;for(;N!==null;)t(z,N),N=N.sibling;return null}function u(z){for(var N=new Map;z!==null;)z.key!==null?N.set(z.key,z):N.set(z.index,z),z=z.sibling;return N}function f(z,N){return z=Nn(z,N),z.index=0,z.sibling=null,z}function h(z,N,L){return z.index=L,e?(L=z.alternate,L!==null?(L=L.index,L<N?(z.flags|=67108866,N):L):(z.flags|=67108866,N)):(z.flags|=1048576,N)}function b(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function k(z,N,L,G){return N===null||N.tag!==6?(N=eo(L,z.mode,G),N.return=z,N):(N=f(N,L),N.return=z,N)}function T(z,N,L,G){var fe=L.type;return fe===x?Y(z,N,L.props.children,G,L.key):N!==null&&(N.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===Z&&Rl(fe)===N.type)?(N=f(N,L.props),Aa(N,L),N.return=z,N):(N=Gr(L.type,L.key,L.props,null,z.mode,G),Aa(N,L),N.return=z,N)}function R(z,N,L,G){return N===null||N.tag!==4||N.stateNode.containerInfo!==L.containerInfo||N.stateNode.implementation!==L.implementation?(N=to(L,z.mode,G),N.return=z,N):(N=f(N,L.children||[]),N.return=z,N)}function Y(z,N,L,G,fe){return N===null||N.tag!==7?(N=Nl(L,z.mode,G,fe),N.return=z,N):(N=f(N,L),N.return=z,N)}function Q(z,N,L){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=eo(""+N,z.mode,L),N.return=z,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case S:return L=Gr(N.type,N.key,N.props,null,z.mode,L),Aa(L,N),L.return=z,L;case E:return N=to(N,z.mode,L),N.return=z,N;case Z:return N=Rl(N),Q(z,N,L)}if(J(N)||X(N))return N=Nl(N,z.mode,L,null),N.return=z,N;if(typeof N.then=="function")return Q(z,Jr(N),L);if(N.$$typeof===j)return Q(z,Xr(z,N),L);Pr(z,N)}return null}function U(z,N,L,G){var fe=N!==null?N.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return fe!==null?null:k(z,N,""+L,G);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case S:return L.key===fe?T(z,N,L,G):null;case E:return L.key===fe?R(z,N,L,G):null;case Z:return L=Rl(L),U(z,N,L,G)}if(J(L)||X(L))return fe!==null?null:Y(z,N,L,G,null);if(typeof L.then=="function")return U(z,N,Jr(L),G);if(L.$$typeof===j)return U(z,N,Xr(z,L),G);Pr(z,L)}return null}function H(z,N,L,G,fe){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return z=z.get(L)||null,k(N,z,""+G,fe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case S:return z=z.get(G.key===null?L:G.key)||null,T(N,z,G,fe);case E:return z=z.get(G.key===null?L:G.key)||null,R(N,z,G,fe);case Z:return G=Rl(G),H(z,N,L,G,fe)}if(J(G)||X(G))return z=z.get(L)||null,Y(N,z,G,fe,null);if(typeof G.then=="function")return H(z,N,L,Jr(G),fe);if(G.$$typeof===j)return H(z,N,L,Xr(N,G),fe);Pr(N,G)}return null}function ue(z,N,L,G){for(var fe=null,ze=null,oe=N,ve=N=0,Ce=null;oe!==null&&ve<L.length;ve++){oe.index>ve?(Ce=oe,oe=null):Ce=oe.sibling;var De=U(z,oe,L[ve],G);if(De===null){oe===null&&(oe=Ce);break}e&&oe&&De.alternate===null&&t(z,oe),N=h(De,N,ve),ze===null?fe=De:ze.sibling=De,ze=De,oe=Ce}if(ve===L.length)return a(z,oe),Oe&&zn(z,ve),fe;if(oe===null){for(;ve<L.length;ve++)oe=Q(z,L[ve],G),oe!==null&&(N=h(oe,N,ve),ze===null?fe=oe:ze.sibling=oe,ze=oe);return Oe&&zn(z,ve),fe}for(oe=u(oe);ve<L.length;ve++)Ce=H(oe,z,ve,L[ve],G),Ce!==null&&(e&&Ce.alternate!==null&&oe.delete(Ce.key===null?ve:Ce.key),N=h(Ce,N,ve),ze===null?fe=Ce:ze.sibling=Ce,ze=Ce);return e&&oe.forEach(function(Sl){return t(z,Sl)}),Oe&&zn(z,ve),fe}function de(z,N,L,G){if(L==null)throw Error(r(151));for(var fe=null,ze=null,oe=N,ve=N=0,Ce=null,De=L.next();oe!==null&&!De.done;ve++,De=L.next()){oe.index>ve?(Ce=oe,oe=null):Ce=oe.sibling;var Sl=U(z,oe,De.value,G);if(Sl===null){oe===null&&(oe=Ce);break}e&&oe&&Sl.alternate===null&&t(z,oe),N=h(Sl,N,ve),ze===null?fe=Sl:ze.sibling=Sl,ze=Sl,oe=Ce}if(De.done)return a(z,oe),Oe&&zn(z,ve),fe;if(oe===null){for(;!De.done;ve++,De=L.next())De=Q(z,De.value,G),De!==null&&(N=h(De,N,ve),ze===null?fe=De:ze.sibling=De,ze=De);return Oe&&zn(z,ve),fe}for(oe=u(oe);!De.done;ve++,De=L.next())De=H(oe,z,ve,De.value,G),De!==null&&(e&&De.alternate!==null&&oe.delete(De.key===null?ve:De.key),N=h(De,N,ve),ze===null?fe=De:ze.sibling=De,ze=De);return e&&oe.forEach(function(ES){return t(z,ES)}),Oe&&zn(z,ve),fe}function He(z,N,L,G){if(typeof L=="object"&&L!==null&&L.type===x&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case S:e:{for(var fe=L.key;N!==null;){if(N.key===fe){if(fe=L.type,fe===x){if(N.tag===7){a(z,N.sibling),G=f(N,L.props.children),G.return=z,z=G;break e}}else if(N.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===Z&&Rl(fe)===N.type){a(z,N.sibling),G=f(N,L.props),Aa(G,L),G.return=z,z=G;break e}a(z,N);break}else t(z,N);N=N.sibling}L.type===x?(G=Nl(L.props.children,z.mode,G,L.key),G.return=z,z=G):(G=Gr(L.type,L.key,L.props,null,z.mode,G),Aa(G,L),G.return=z,z=G)}return b(z);case E:e:{for(fe=L.key;N!==null;){if(N.key===fe)if(N.tag===4&&N.stateNode.containerInfo===L.containerInfo&&N.stateNode.implementation===L.implementation){a(z,N.sibling),G=f(N,L.children||[]),G.return=z,z=G;break e}else{a(z,N);break}else t(z,N);N=N.sibling}G=to(L,z.mode,G),G.return=z,z=G}return b(z);case Z:return L=Rl(L),He(z,N,L,G)}if(J(L))return ue(z,N,L,G);if(X(L)){if(fe=X(L),typeof fe!="function")throw Error(r(150));return L=fe.call(L),de(z,N,L,G)}if(typeof L.then=="function")return He(z,N,Jr(L),G);if(L.$$typeof===j)return He(z,N,Xr(z,L),G);Pr(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,N!==null&&N.tag===6?(a(z,N.sibling),G=f(N,L),G.return=z,z=G):(a(z,N),G=eo(L,z.mode,G),G.return=z,z=G),b(z)):a(z,N)}return function(z,N,L,G){try{xa=0;var fe=He(z,N,L,G);return ki=null,fe}catch(oe){if(oe===vi||oe===Fr)throw oe;var ze=Ht(29,oe,null,z.mode);return ze.lanes=G,ze.return=z,ze}finally{}}}var jl=kd(!0),wd=kd(!1),nl=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mo(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 ll(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function il(e,t,a){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Me&2)!==0){var f=u.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),u.pending=t,t=Ir(e),ad(e,null,a),t}return Vr(e,u,t,a),Ir(e)}function Ta(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var u=t.lanes;u&=e.pendingLanes,a|=u,t.lanes=a,dh(e,a)}}function go(e,t){var a=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var f=null,h=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,a=a.next}while(a!==null);h===null?f=h=t:h=h.next=t}else f=h=t;a={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var yo=!1;function _a(){if(yo){var e=Si;if(e!==null)throw e}}function Ca(e,t,a,u){yo=!1;var f=e.updateQueue;nl=!1;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var T=k,R=T.next;T.next=null,b===null?h=R:b.next=R,b=T;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,k=Y.lastBaseUpdate,k!==b&&(k===null?Y.firstBaseUpdate=R:k.next=R,Y.lastBaseUpdate=T))}if(h!==null){var Q=f.baseState;b=0,Y=R=T=null,k=h;do{var U=k.lane&-536870913,H=U!==k.lane;if(H?(_e&U)===U:(u&U)===U){U!==0&&U===bi&&(yo=!0),Y!==null&&(Y=Y.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var ue=e,de=k;U=t;var He=a;switch(de.tag){case 1:if(ue=de.payload,typeof ue=="function"){Q=ue.call(He,Q,U);break e}Q=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=de.payload,U=typeof ue=="function"?ue.call(He,Q,U):ue,U==null)break e;Q=g({},Q,U);break e;case 2:nl=!0}}U=k.callback,U!==null&&(e.flags|=64,H&&(e.flags|=8192),H=f.callbacks,H===null?f.callbacks=[U]:H.push(U))}else H={lane:U,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Y===null?(R=Y=H,T=Q):Y=Y.next=H,b|=U;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;H=k,k=H.next,H.next=null,f.lastBaseUpdate=H,f.shared.pending=null}}while(!0);Y===null&&(T=Q),f.baseState=T,f.firstBaseUpdate=R,f.lastBaseUpdate=Y,h===null&&(f.shared.lanes=0),ol|=b,e.lanes=b,e.memoizedState=Q}}function Ed(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function xd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ed(a[e],t)}var wi=O(null),Wr=O(0);function Ad(e,t){e=Vn,w(Wr,e),w(wi,t),Vn=e|t.baseLanes}function bo(){w(Wr,Vn),w(wi,wi.current)}function So(){Vn=Wr.current,V(wi),V(Wr)}var Yt=O(null),nn=null;function al(e){var t=e.alternate;w(We,We.current&1),w(Yt,e),nn===null&&(t===null||wi.current!==null||t.memoizedState!==null)&&(nn=e)}function vo(e){w(We,We.current),w(Yt,e),nn===null&&(nn=e)}function Td(e){e.tag===22?(w(We,We.current),w(Yt,e),nn===null&&(nn=e)):rl()}function rl(){w(We,We.current),w(Yt,Yt.current)}function Vt(e){V(Yt),nn===e&&(nn=null),V(We)}var We=O(0);function eu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Tc(a)||_c(a)))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 Ln=0,be=null,Ue=null,at=null,tu=!1,Ei=!1,Ul=!1,nu=0,Oa=0,xi=null,db=0;function Je(){throw Error(r(321))}function ko(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!qt(e[a],t[a]))return!1;return!0}function wo(e,t,a,u,f,h){return Ln=h,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?op:jo,Ul=!1,h=a(u,f),Ul=!1,Ei&&(h=Cd(t,a,u,f)),_d(e),h}function _d(e){M.H=Da;var t=Ue!==null&&Ue.next!==null;if(Ln=0,at=Ue=be=null,tu=!1,Oa=0,xi=null,t)throw Error(r(300));e===null||rt||(e=e.dependencies,e!==null&&Qr(e)&&(rt=!0))}function Cd(e,t,a,u){be=e;var f=0;do{if(Ei&&(xi=null),Oa=0,Ei=!1,25<=f)throw Error(r(301));if(f+=1,at=Ue=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}M.H=cp,h=t(a,u)}while(Ei);return h}function pb(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?Na(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(be.flags|=1024),t}function Eo(){var e=nu!==0;return nu=0,e}function xo(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ao(e){if(tu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}tu=!1}Ln=0,at=Ue=be=null,Ei=!1,Oa=nu=0,xi=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?be.memoizedState=at=e:at=at.next=e,at}function et(){if(Ue===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=at===null?be.memoizedState:at.next;if(t!==null)at=t,Ue=e;else{if(e===null)throw be.alternate===null?Error(r(467)):Error(r(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},at===null?be.memoizedState=at=e:at=at.next=e}return at}function lu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Na(e){var t=Oa;return Oa+=1,xi===null&&(xi=[]),e=bd(xi,e,t),t=be,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?op:jo),e}function iu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Na(e);if(e.$$typeof===j)return gt(e)}throw Error(r(438,String(e)))}function To(e){var t=null,a=be.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var u=be.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=lu(),be.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),u=0;u<e;u++)a[u]=B;return t.index++,a}function Rn(e,t){return typeof t=="function"?t(e):t}function au(e){var t=et();return _o(t,Ue,e)}function _o(e,t,a){var u=e.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var f=e.baseQueue,h=u.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}t.baseQueue=f=h,u.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{t=f.next;var k=b=null,T=null,R=t,Y=!1;do{var Q=R.lane&-536870913;if(Q!==R.lane?(_e&Q)===Q:(Ln&Q)===Q){var U=R.revertLane;if(U===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),Q===bi&&(Y=!0);else if((Ln&U)===U){R=R.next,U===bi&&(Y=!0);continue}else Q={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(k=T=Q,b=h):T=T.next=Q,be.lanes|=U,ol|=U;Q=R.action,Ul&&a(h,Q),h=R.hasEagerState?R.eagerState:a(h,Q)}else U={lane:Q,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(k=T=U,b=h):T=T.next=U,be.lanes|=Q,ol|=Q;R=R.next}while(R!==null&&R!==t);if(T===null?b=h:T.next=k,!qt(h,e.memoizedState)&&(rt=!0,Y&&(a=Si,a!==null)))throw a;e.memoizedState=h,e.baseState=b,e.baseQueue=T,u.lastRenderedState=h}return f===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function Co(e){var t=et(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var u=a.dispatch,f=a.pending,h=t.memoizedState;if(f!==null){a.pending=null;var b=f=f.next;do h=e(h,b.action),b=b.next;while(b!==f);qt(h,t.memoizedState)||(rt=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),a.lastRenderedState=h}return[h,u]}function Od(e,t,a){var u=be,f=et(),h=Oe;if(h){if(a===void 0)throw Error(r(407));a=a()}else a=t();var b=!qt((Ue||f).memoizedState,a);if(b&&(f.memoizedState=a,rt=!0),f=f.queue,zo(Dd.bind(null,u,f,e),[e]),f.getSnapshot!==t||b||at!==null&&at.memoizedState.tag&1){if(u.flags|=2048,Ai(9,{destroy:void 0},zd.bind(null,u,f,a,t),null),Ve===null)throw Error(r(349));h||(Ln&127)!==0||Nd(u,t,a)}return a}function Nd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=be.updateQueue,t===null?(t=lu(),be.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function zd(e,t,a,u){t.value=a,t.getSnapshot=u,Md(t)&&Ld(e)}function Dd(e,t,a){return a(function(){Md(t)&&Ld(e)})}function Md(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!qt(e,a)}catch{return!0}}function Ld(e){var t=Ol(e,2);t!==null&&Rt(t,e,2)}function Oo(e){var t=xt();if(typeof e=="function"){var a=e;if(e=a(),Ul){Ct(!0);try{a()}finally{Ct(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:e},t}function Rd(e,t,a,u){return e.baseState=a,_o(e,Ue,typeof u=="function"?u:Rn)}function mb(e,t,a,u,f){if(su(e))throw Error(r(485));if(e=t.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};M.T!==null?a(!0):h.isTransition=!1,u(h),a=t.pending,a===null?(h.next=t.pending=h,Bd(t,h)):(h.next=a.next,t.pending=a.next=h)}}function Bd(e,t){var a=t.action,u=t.payload,f=e.state;if(t.isTransition){var h=M.T,b={};M.T=b;try{var k=a(f,u),T=M.S;T!==null&&T(b,k),jd(e,t,k)}catch(R){No(e,t,R)}finally{h!==null&&b.types!==null&&(h.types=b.types),M.T=h}}else try{h=a(f,u),jd(e,t,h)}catch(R){No(e,t,R)}}function jd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){Ud(e,t,u)},function(u){return No(e,t,u)}):Ud(e,t,a)}function Ud(e,t,a){t.status="fulfilled",t.value=a,qd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Bd(e,a)))}function No(e,t,a){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=a,qd(t),t=t.next;while(t!==u)}e.action=null}function qd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Hd(e,t){return t}function Yd(e,t){if(Oe){var a=Ve.formState;if(a!==null){e:{var u=be;if(Oe){if(Qe){t:{for(var f=Qe,h=tn;f.nodeType!==8;){if(!h){f=null;break t}if(f=ln(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Qe=ln(f.nextSibling),u=f.data==="F!";break e}}el(u)}u=!1}u&&(t=a[0])}}return a=xt(),a.memoizedState=a.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hd,lastRenderedState:t},a.queue=u,a=rp.bind(null,be,u),u.dispatch=a,u=Oo(!1),h=Bo.bind(null,be,!1,u.queue),u=xt(),f={state:t,dispatch:null,action:e,pending:null},u.queue=f,a=mb.bind(null,be,f,h,a),f.dispatch=a,u.memoizedState=e,[t,a,!1]}function Vd(e){var t=et();return Id(t,Ue,e)}function Id(e,t,a){if(t=_o(e,t,Hd)[0],e=au(Rn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=Na(t)}catch(b){throw b===vi?Fr:b}else u=t;t=et();var f=t.queue,h=f.dispatch;return a!==t.memoizedState&&(be.flags|=2048,Ai(9,{destroy:void 0},gb.bind(null,f,a),null)),[u,h,e]}function gb(e,t){e.action=t}function Gd(e){var t=et(),a=Ue;if(a!==null)return Id(t,a,e);et(),t=t.memoizedState,a=et();var u=a.queue.dispatch;return a.memoizedState=e,[t,u,!1]}function Ai(e,t,a,u){return e={tag:e,create:a,deps:u,inst:t,next:null},t=be.updateQueue,t===null&&(t=lu(),be.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(u=a.next,a.next=e,e.next=u,t.lastEffect=e),e}function Kd(){return et().memoizedState}function ru(e,t,a,u){var f=xt();be.flags|=e,f.memoizedState=Ai(1|t,{destroy:void 0},a,u===void 0?null:u)}function uu(e,t,a,u){var f=et();u=u===void 0?null:u;var h=f.memoizedState.inst;Ue!==null&&u!==null&&ko(u,Ue.memoizedState.deps)?f.memoizedState=Ai(t,h,a,u):(be.flags|=e,f.memoizedState=Ai(1|t,h,a,u))}function Qd(e,t){ru(8390656,8,e,t)}function zo(e,t){uu(2048,8,e,t)}function yb(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=lu(),be.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Xd(e){var t=et().memoizedState;return yb({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function $d(e,t){return uu(4,2,e,t)}function Fd(e,t){return uu(4,4,e,t)}function Zd(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jd(e,t,a){a=a!=null?a.concat([e]):null,uu(4,4,Zd.bind(null,t,e),a)}function Do(){}function Pd(e,t){var a=et();t=t===void 0?null:t;var u=a.memoizedState;return t!==null&&ko(t,u[1])?u[0]:(a.memoizedState=[e,t],e)}function Wd(e,t){var a=et();t=t===void 0?null:t;var u=a.memoizedState;if(t!==null&&ko(t,u[1]))return u[0];if(u=e(),Ul){Ct(!0);try{e()}finally{Ct(!1)}}return a.memoizedState=[u,t],u}function Mo(e,t,a){return a===void 0||(Ln&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=em(),be.lanes|=e,ol|=e,a)}function ep(e,t,a,u){return qt(a,t)?a:wi.current!==null?(e=Mo(e,a,u),qt(e,t)||(rt=!0),e):(Ln&42)===0||(Ln&1073741824)!==0&&(_e&261930)===0?(rt=!0,e.memoizedState=a):(e=em(),be.lanes|=e,ol|=e,t)}function tp(e,t,a,u,f){var h=F.p;F.p=h!==0&&8>h?h:8;var b=M.T,k={};M.T=k,Bo(e,!1,t,a);try{var T=f(),R=M.S;if(R!==null&&R(k,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var Y=hb(T,u);za(e,t,Y,Kt(e))}else za(e,t,u,Kt(e))}catch(Q){za(e,t,{then:function(){},status:"rejected",reason:Q},Kt())}finally{F.p=h,b!==null&&k.types!==null&&(b.types=k.types),M.T=b}}function bb(){}function Lo(e,t,a,u){if(e.tag!==5)throw Error(r(476));var f=np(e).queue;tp(e,f,t,se,a===null?bb:function(){return lp(e),a(u)})}function np(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:se},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function lp(e){var t=np(e);t.next===null&&(t=e.alternate.memoizedState),za(e,t.next.queue,{},Kt())}function Ro(){return gt($a)}function ip(){return et().memoizedState}function ap(){return et().memoizedState}function Sb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Kt();e=ll(a);var u=il(t,e,a);u!==null&&(Rt(u,t,a),Ta(u,t,a)),t={cache:oo()},e.payload=t;return}t=t.return}}function vb(e,t,a){var u=Kt();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},su(e)?up(t,a):(a=Ps(e,t,a,u),a!==null&&(Rt(a,e,u),sp(a,t,u)))}function rp(e,t,a){var u=Kt();za(e,t,a,u)}function za(e,t,a,u){var f={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(su(e))up(t,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var b=t.lastRenderedState,k=h(b,a);if(f.hasEagerState=!0,f.eagerState=k,qt(k,b))return Vr(e,t,f,0),Ve===null&&Yr(),!1}catch{}finally{}if(a=Ps(e,t,f,u),a!==null)return Rt(a,e,u),sp(a,t,u),!0}return!1}function Bo(e,t,a,u){if(u={lane:2,revertLane:pc(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},su(e)){if(t)throw Error(r(479))}else t=Ps(e,a,u,2),t!==null&&Rt(t,e,2)}function su(e){var t=e.alternate;return e===be||t!==null&&t===be}function up(e,t){Ei=tu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function sp(e,t,a){if((a&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,a|=u,t.lanes=a,dh(e,a)}}var Da={readContext:gt,use:iu,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};Da.useEffectEvent=Je;var op={readContext:gt,use:iu,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Qd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ru(4194308,4,Zd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){ru(4,2,e,t)},useMemo:function(e,t){var a=xt();t=t===void 0?null:t;var u=e();if(Ul){Ct(!0);try{e()}finally{Ct(!1)}}return a.memoizedState=[u,t],u},useReducer:function(e,t,a){var u=xt();if(a!==void 0){var f=a(t);if(Ul){Ct(!0);try{a(t)}finally{Ct(!1)}}}else f=t;return u.memoizedState=u.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},u.queue=e,e=e.dispatch=vb.bind(null,be,e),[u.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=Oo(e);var t=e.queue,a=rp.bind(null,be,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Do,useDeferredValue:function(e,t){var a=xt();return Mo(a,e,t)},useTransition:function(){var e=Oo(!1);return e=tp.bind(null,be,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var u=be,f=xt();if(Oe){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Ve===null)throw Error(r(349));(_e&127)!==0||Nd(u,t,a)}f.memoizedState=a;var h={value:a,getSnapshot:t};return f.queue=h,Qd(Dd.bind(null,u,h,e),[e]),u.flags|=2048,Ai(9,{destroy:void 0},zd.bind(null,u,h,a,t),null),a},useId:function(){var e=xt(),t=Ve.identifierPrefix;if(Oe){var a=bn,u=yn;a=(u&~(1<<32-Ye(u)-1)).toString(32)+a,t="_"+t+"R_"+a,a=nu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=db++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ro,useFormState:Yd,useActionState:Yd,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Bo.bind(null,be,!0,a),a.dispatch=t,[e,t]},useMemoCache:To,useCacheRefresh:function(){return xt().memoizedState=Sb.bind(null,be)},useEffectEvent:function(e){var t=xt(),a={impl:e};return t.memoizedState=a,function(){if((Me&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},jo={readContext:gt,use:iu,useCallback:Pd,useContext:gt,useEffect:zo,useImperativeHandle:Jd,useInsertionEffect:$d,useLayoutEffect:Fd,useMemo:Wd,useReducer:au,useRef:Kd,useState:function(){return au(Rn)},useDebugValue:Do,useDeferredValue:function(e,t){var a=et();return ep(a,Ue.memoizedState,e,t)},useTransition:function(){var e=au(Rn)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Na(e),t]},useSyncExternalStore:Od,useId:ip,useHostTransitionStatus:Ro,useFormState:Vd,useActionState:Vd,useOptimistic:function(e,t){var a=et();return Rd(a,Ue,e,t)},useMemoCache:To,useCacheRefresh:ap};jo.useEffectEvent=Xd;var cp={readContext:gt,use:iu,useCallback:Pd,useContext:gt,useEffect:zo,useImperativeHandle:Jd,useInsertionEffect:$d,useLayoutEffect:Fd,useMemo:Wd,useReducer:Co,useRef:Kd,useState:function(){return Co(Rn)},useDebugValue:Do,useDeferredValue:function(e,t){var a=et();return Ue===null?Mo(a,e,t):ep(a,Ue.memoizedState,e,t)},useTransition:function(){var e=Co(Rn)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Na(e),t]},useSyncExternalStore:Od,useId:ip,useHostTransitionStatus:Ro,useFormState:Gd,useActionState:Gd,useOptimistic:function(e,t){var a=et();return Ue!==null?Rd(a,Ue,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:To,useCacheRefresh:ap};cp.useEffectEvent=Xd;function Uo(e,t,a,u){t=e.memoizedState,a=a(u,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var qo={enqueueSetState:function(e,t,a){e=e._reactInternals;var u=Kt(),f=ll(u);f.payload=t,a!=null&&(f.callback=a),t=il(e,f,u),t!==null&&(Rt(t,e,u),Ta(t,e,u))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var u=Kt(),f=ll(u);f.tag=1,f.payload=t,a!=null&&(f.callback=a),t=il(e,f,u),t!==null&&(Rt(t,e,u),Ta(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Kt(),u=ll(a);u.tag=2,t!=null&&(u.callback=t),t=il(e,u,a),t!==null&&(Rt(t,e,a),Ta(t,e,a))}};function fp(e,t,a,u,f,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,b):t.prototype&&t.prototype.isPureReactComponent?!ba(a,u)||!ba(f,h):!0}function hp(e,t,a,u){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,u),t.state!==e&&qo.enqueueReplaceState(t,t.state,null)}function ql(e,t){var a=t;if("ref"in t){a={};for(var u in t)u!=="ref"&&(a[u]=t[u])}if(e=e.defaultProps){a===t&&(a=g({},a));for(var f in e)a[f]===void 0&&(a[f]=e[f])}return a}function dp(e){Hr(e)}function pp(e){console.error(e)}function mp(e){Hr(e)}function ou(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(u){setTimeout(function(){throw u})}}function gp(e,t,a){try{var u=e.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Ho(e,t,a){return a=ll(a),a.tag=3,a.payload={element:null},a.callback=function(){ou(e,t)},a}function yp(e){return e=ll(e),e.tag=3,e}function bp(e,t,a,u){var f=a.type.getDerivedStateFromError;if(typeof f=="function"){var h=u.value;e.payload=function(){return f(h)},e.callback=function(){gp(t,a,u)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){gp(t,a,u),typeof f!="function"&&(cl===null?cl=new Set([this]):cl.add(this));var k=u.stack;this.componentDidCatch(u.value,{componentStack:k!==null?k:""})})}function kb(e,t,a,u,f){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(t=a.alternate,t!==null&&yi(t,a,f,!0),a=Yt.current,a!==null){switch(a.tag){case 31:case 13:return nn===null?ku():a.alternate===null&&Pe===0&&(Pe=3),a.flags&=-257,a.flags|=65536,a.lanes=f,u===Zr?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([u]):t.add(u),fc(e,u,f)),!1;case 22:return a.flags|=65536,u===Zr?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([u]):a.add(u)),fc(e,u,f)),!1}throw Error(r(435,a.tag))}return fc(e,u,f),ku(),!1}if(Oe)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,u!==io&&(e=Error(r(422),{cause:u}),ka(Pt(e,a)))):(u!==io&&(t=Error(r(423),{cause:u}),ka(Pt(t,a))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,u=Pt(u,a),f=Ho(e.stateNode,u,f),go(e,f),Pe!==4&&(Pe=2)),!1;var h=Error(r(520),{cause:u});if(h=Pt(h,a),Ha===null?Ha=[h]:Ha.push(h),Pe!==4&&(Pe=2),t===null)return!0;u=Pt(u,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=f&-f,a.lanes|=e,e=Ho(a.stateNode,u,e),go(a,e),!1;case 1:if(t=a.type,h=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(cl===null||!cl.has(h))))return a.flags|=65536,f&=-f,a.lanes|=f,f=yp(f),bp(f,e,a,u),go(a,f),!1}a=a.return}while(a!==null);return!1}var Yo=Error(r(461)),rt=!1;function yt(e,t,a,u){t.child=e===null?wd(t,null,a,u):jl(t,e.child,a,u)}function Sp(e,t,a,u,f){a=a.render;var h=t.ref;if("ref"in u){var b={};for(var k in u)k!=="ref"&&(b[k]=u[k])}else b=u;return Ml(t),u=wo(e,t,a,b,h,f),k=Eo(),e!==null&&!rt?(xo(e,t,f),Bn(e,t,f)):(Oe&&k&&no(t),t.flags|=1,yt(e,t,u,f),t.child)}function vp(e,t,a,u,f){if(e===null){var h=a.type;return typeof h=="function"&&!Ws(h)&&h.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=h,kp(e,t,h,u,f)):(e=Gr(a.type,null,u,t,t.mode,f),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!Fo(e,f)){var b=h.memoizedProps;if(a=a.compare,a=a!==null?a:ba,a(b,u)&&e.ref===t.ref)return Bn(e,t,f)}return t.flags|=1,e=Nn(h,u),e.ref=t.ref,e.return=t,t.child=e}function kp(e,t,a,u,f){if(e!==null){var h=e.memoizedProps;if(ba(h,u)&&e.ref===t.ref)if(rt=!1,t.pendingProps=u=h,Fo(e,f))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Bn(e,t,f)}return Vo(e,t,a,u,f)}function wp(e,t,a,u){var f=u.children,h=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((t.flags&128)!==0){if(h=h!==null?h.baseLanes|a:a,e!==null){for(u=t.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~h}else u=0,t.child=null;return Ep(e,t,h,a,u)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&$r(t,h!==null?h.cachePool:null),h!==null?Ad(t,h):bo(),Td(t);else return u=t.lanes=536870912,Ep(e,t,h!==null?h.baseLanes|a:a,a,u)}else h!==null?($r(t,h.cachePool),Ad(t,h),rl(),t.memoizedState=null):(e!==null&&$r(t,null),bo(),rl());return yt(e,t,f,a),t.child}function Ma(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ep(e,t,a,u,f){var h=fo();return h=h===null?null:{parent:it._currentValue,pool:h},t.memoizedState={baseLanes:a,cachePool:h},e!==null&&$r(t,null),bo(),Td(t),e!==null&&yi(e,t,u,!0),t.childLanes=f,null}function cu(e,t){return t=hu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function xp(e,t,a){return jl(t,e.child,null,a),e=cu(t,t.pendingProps),e.flags|=2,Vt(t),t.memoizedState=null,e}function wb(e,t,a){var u=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(u.mode==="hidden")return e=cu(t,u),t.lanes=536870912,Ma(null,e);if(vo(t),(e=Qe)?(e=Bm(e,tn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pn!==null?{id:yn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},a=ud(e),a.return=t,t.child=a,mt=t,Qe=null)):e=null,e===null)throw el(t);return t.lanes=536870912,null}return cu(t,u)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(vo(t),f)if(t.flags&256)t.flags&=-257,t=xp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(rt||yi(e,t,a,!1),f=(a&e.childLanes)!==0,rt||f){if(u=Ve,u!==null&&(b=ph(u,a),b!==0&&b!==h.retryLane))throw h.retryLane=b,Ol(e,b),Rt(u,e,b),Yo;ku(),t=xp(e,t,a)}else e=h.treeContext,Qe=ln(b.nextSibling),mt=t,Oe=!0,Wn=null,tn=!1,e!==null&&cd(t,e),t=cu(t,u),t.flags|=4096;return t}return e=Nn(e.child,{mode:u.mode,children:u.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Vo(e,t,a,u,f){return Ml(t),a=wo(e,t,a,u,void 0,f),u=Eo(),e!==null&&!rt?(xo(e,t,f),Bn(e,t,f)):(Oe&&u&&no(t),t.flags|=1,yt(e,t,a,f),t.child)}function Ap(e,t,a,u,f,h){return Ml(t),t.updateQueue=null,a=Cd(t,u,a,f),_d(e),u=Eo(),e!==null&&!rt?(xo(e,t,h),Bn(e,t,h)):(Oe&&u&&no(t),t.flags|=1,yt(e,t,a,h),t.child)}function Tp(e,t,a,u,f){if(Ml(t),t.stateNode===null){var h=di,b=a.contextType;typeof b=="object"&&b!==null&&(h=gt(b)),h=new a(u,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=qo,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=u,h.state=t.memoizedState,h.refs={},po(t),b=a.contextType,h.context=typeof b=="object"&&b!==null?gt(b):di,h.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Uo(t,a,b,u),h.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&qo.enqueueReplaceState(h,h.state,null),Ca(t,u,h,f),_a(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),u=!0}else if(e===null){h=t.stateNode;var k=t.memoizedProps,T=ql(a,k);h.props=T;var R=h.context,Y=a.contextType;b=di,typeof Y=="object"&&Y!==null&&(b=gt(Y));var Q=a.getDerivedStateFromProps;Y=typeof Q=="function"||typeof h.getSnapshotBeforeUpdate=="function",k=t.pendingProps!==k,Y||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(k||R!==b)&&hp(t,h,u,b),nl=!1;var U=t.memoizedState;h.state=U,Ca(t,u,h,f),_a(),R=t.memoizedState,k||U!==R||nl?(typeof Q=="function"&&(Uo(t,a,Q,u),R=t.memoizedState),(T=nl||fp(t,a,T,u,U,R,b))?(Y||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=u,t.memoizedState=R),h.props=u,h.state=R,h.context=b,u=T):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),u=!1)}else{h=t.stateNode,mo(e,t),b=t.memoizedProps,Y=ql(a,b),h.props=Y,Q=t.pendingProps,U=h.context,R=a.contextType,T=di,typeof R=="object"&&R!==null&&(T=gt(R)),k=a.getDerivedStateFromProps,(R=typeof k=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==Q||U!==T)&&hp(t,h,u,T),nl=!1,U=t.memoizedState,h.state=U,Ca(t,u,h,f),_a();var H=t.memoizedState;b!==Q||U!==H||nl||e!==null&&e.dependencies!==null&&Qr(e.dependencies)?(typeof k=="function"&&(Uo(t,a,k,u),H=t.memoizedState),(Y=nl||fp(t,a,Y,u,U,H,T)||e!==null&&e.dependencies!==null&&Qr(e.dependencies))?(R||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,H,T),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,H,T)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=H),h.props=u,h.state=H,h.context=T,u=Y):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),u=!1)}return h=u,fu(e,t),u=(t.flags&128)!==0,h||u?(h=t.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&u?(t.child=jl(t,e.child,null,f),t.child=jl(t,null,a,f)):yt(e,t,a,f),t.memoizedState=h.state,e=t.child):e=Bn(e,t,f),e}function _p(e,t,a,u){return zl(),t.flags|=256,yt(e,t,a,u),t.child}var Io={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Go(e){return{baseLanes:e,cachePool:gd()}}function Ko(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Gt),e}function Cp(e,t,a){var u=t.pendingProps,f=!1,h=(t.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),b&&(f=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(f?al(t):rl(),(e=Qe)?(e=Bm(e,tn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pn!==null?{id:yn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},a=ud(e),a.return=t,t.child=a,mt=t,Qe=null)):e=null,e===null)throw el(t);return _c(e)?t.lanes=32:t.lanes=536870912,null}var k=u.children;return u=u.fallback,f?(rl(),f=t.mode,k=hu({mode:"hidden",children:k},f),u=Nl(u,f,a,null),k.return=t,u.return=t,k.sibling=u,t.child=k,u=t.child,u.memoizedState=Go(a),u.childLanes=Ko(e,b,a),t.memoizedState=Io,Ma(null,u)):(al(t),Qo(t,k))}var T=e.memoizedState;if(T!==null&&(k=T.dehydrated,k!==null)){if(h)t.flags&256?(al(t),t.flags&=-257,t=Xo(e,t,a)):t.memoizedState!==null?(rl(),t.child=e.child,t.flags|=128,t=null):(rl(),k=u.fallback,f=t.mode,u=hu({mode:"visible",children:u.children},f),k=Nl(k,f,a,null),k.flags|=2,u.return=t,k.return=t,u.sibling=k,t.child=u,jl(t,e.child,null,a),u=t.child,u.memoizedState=Go(a),u.childLanes=Ko(e,b,a),t.memoizedState=Io,t=Ma(null,u));else if(al(t),_c(k)){if(b=k.nextSibling&&k.nextSibling.dataset,b)var R=b.dgst;b=R,u=Error(r(419)),u.stack="",u.digest=b,ka({value:u,source:null,stack:null}),t=Xo(e,t,a)}else if(rt||yi(e,t,a,!1),b=(a&e.childLanes)!==0,rt||b){if(b=Ve,b!==null&&(u=ph(b,a),u!==0&&u!==T.retryLane))throw T.retryLane=u,Ol(e,u),Rt(b,e,u),Yo;Tc(k)||ku(),t=Xo(e,t,a)}else Tc(k)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Qe=ln(k.nextSibling),mt=t,Oe=!0,Wn=null,tn=!1,e!==null&&cd(t,e),t=Qo(t,u.children),t.flags|=4096);return t}return f?(rl(),k=u.fallback,f=t.mode,T=e.child,R=T.sibling,u=Nn(T,{mode:"hidden",children:u.children}),u.subtreeFlags=T.subtreeFlags&65011712,R!==null?k=Nn(R,k):(k=Nl(k,f,a,null),k.flags|=2),k.return=t,u.return=t,u.sibling=k,t.child=u,Ma(null,u),u=t.child,k=e.child.memoizedState,k===null?k=Go(a):(f=k.cachePool,f!==null?(T=it._currentValue,f=f.parent!==T?{parent:T,pool:T}:f):f=gd(),k={baseLanes:k.baseLanes|a,cachePool:f}),u.memoizedState=k,u.childLanes=Ko(e,b,a),t.memoizedState=Io,Ma(e.child,u)):(al(t),a=e.child,e=a.sibling,a=Nn(a,{mode:"visible",children:u.children}),a.return=t,a.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=a,t.memoizedState=null,a)}function Qo(e,t){return t=hu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function hu(e,t){return e=Ht(22,e,null,t),e.lanes=0,e}function Xo(e,t,a){return jl(t,e.child,null,a),e=Qo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Op(e,t,a){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),uo(e.return,t,a)}function $o(e,t,a,u,f,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:f,treeForkCount:h}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=u,b.tail=a,b.tailMode=f,b.treeForkCount=h)}function Np(e,t,a){var u=t.pendingProps,f=u.revealOrder,h=u.tail;u=u.children;var b=We.current,k=(b&2)!==0;if(k?(b=b&1|2,t.flags|=128):b&=1,w(We,b),yt(e,t,u,a),u=Oe?va:0,!k&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Op(e,a,t);else if(e.tag===19)Op(e,a,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(f){case"forwards":for(a=t.child,f=null;a!==null;)e=a.alternate,e!==null&&eu(e)===null&&(f=a),a=a.sibling;a=f,a===null?(f=t.child,t.child=null):(f=a.sibling,a.sibling=null),$o(t,!1,f,a,h,u);break;case"backwards":case"unstable_legacy-backwards":for(a=null,f=t.child,t.child=null;f!==null;){if(e=f.alternate,e!==null&&eu(e)===null){t.child=f;break}e=f.sibling,f.sibling=a,a=f,f=e}$o(t,!0,a,null,h,u);break;case"together":$o(t,!1,null,null,void 0,u);break;default:t.memoizedState=null}return t.child}function Bn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ol|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(yi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=Nn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Nn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Fo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qr(e)))}function Eb(e,t,a){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),tl(t,it,e.memoizedState.cache),zl();break;case 27:case 5:$t(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:tl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vo(t),null;break;case 13:var u=t.memoizedState;if(u!==null)return u.dehydrated!==null?(al(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Cp(e,t,a):(al(t),e=Bn(e,t,a),e!==null?e.sibling:null);al(t);break;case 19:var f=(e.flags&128)!==0;if(u=(a&t.childLanes)!==0,u||(yi(e,t,a,!1),u=(a&t.childLanes)!==0),f){if(u)return Np(e,t,a);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),w(We,We.current),u)break;return null;case 22:return t.lanes=0,wp(e,t,a,t.pendingProps);case 24:tl(t,it,e.memoizedState.cache)}return Bn(e,t,a)}function zp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Fo(e,a)&&(t.flags&128)===0)return rt=!1,Eb(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Oe&&(t.flags&1048576)!==0&&od(t,va,t.index);switch(t.lanes=0,t.tag){case 16:e:{var u=t.pendingProps;if(e=Rl(t.elementType),t.type=e,typeof e=="function")Ws(e)?(u=ql(e,u),t.tag=1,t=Tp(null,t,e,u,a)):(t.tag=0,t=Vo(null,t,e,u,a));else{if(e!=null){var f=e.$$typeof;if(f===$){t.tag=11,t=Sp(null,t,e,u,a);break e}else if(f===K){t.tag=14,t=vp(null,t,e,u,a);break e}}throw t=W(e)||e,Error(r(306,t,""))}}return t;case 0:return Vo(e,t,t.type,t.pendingProps,a);case 1:return u=t.type,f=ql(u,t.pendingProps),Tp(e,t,u,f,a);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(r(387));u=t.pendingProps;var h=t.memoizedState;f=h.element,mo(e,t),Ca(t,u,null,a);var b=t.memoizedState;if(u=b.cache,tl(t,it,u),u!==h.cache&&so(t,[it],a,!0),_a(),u=b.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=_p(e,t,u,a);break e}else if(u!==f){f=Pt(Error(r(424)),t),ka(f),t=_p(e,t,u,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=ln(e.firstChild),mt=t,Oe=!0,Wn=null,tn=!0,a=wd(t,null,u,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(zl(),u===f){t=Bn(e,t,a);break e}yt(e,t,u,a)}t=t.child}return t;case 26:return fu(e,t),e===null?(a=Vm(t.type,null,t.pendingProps,null))?t.memoizedState=a:Oe||(a=t.type,e=t.pendingProps,u=Cu(ce.current).createElement(a),u[pt]=t,u[Ot]=e,bt(u,a,e),ht(u),t.stateNode=u):t.memoizedState=Vm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $t(t),e===null&&Oe&&(u=t.stateNode=qm(t.type,t.pendingProps,ce.current),mt=t,tn=!0,f=Qe,pl(t.type)?(Cc=f,Qe=ln(u.firstChild)):Qe=f),yt(e,t,t.pendingProps.children,a),fu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((f=u=Qe)&&(u=Wb(u,t.type,t.pendingProps,tn),u!==null?(t.stateNode=u,mt=t,Qe=ln(u.firstChild),tn=!1,f=!0):f=!1),f||el(t)),$t(t),f=t.type,h=t.pendingProps,b=e!==null?e.memoizedProps:null,u=h.children,Ec(f,h)?u=null:b!==null&&Ec(f,b)&&(t.flags|=32),t.memoizedState!==null&&(f=wo(e,t,pb,null,null,a),$a._currentValue=f),fu(e,t),yt(e,t,u,a),t.child;case 6:return e===null&&Oe&&((e=a=Qe)&&(a=eS(a,t.pendingProps,tn),a!==null?(t.stateNode=a,mt=t,Qe=null,e=!0):e=!1),e||el(t)),null;case 13:return Cp(e,t,a);case 4:return $e(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=jl(t,null,u,a):yt(e,t,u,a),t.child;case 11:return Sp(e,t,t.type,t.pendingProps,a);case 7:return yt(e,t,t.pendingProps,a),t.child;case 8:return yt(e,t,t.pendingProps.children,a),t.child;case 12:return yt(e,t,t.pendingProps.children,a),t.child;case 10:return u=t.pendingProps,tl(t,t.type,u.value),yt(e,t,u.children,a),t.child;case 9:return f=t.type._context,u=t.pendingProps.children,Ml(t),f=gt(f),u=u(f),t.flags|=1,yt(e,t,u,a),t.child;case 14:return vp(e,t,t.type,t.pendingProps,a);case 15:return kp(e,t,t.type,t.pendingProps,a);case 19:return Np(e,t,a);case 31:return wb(e,t,a);case 22:return wp(e,t,a,t.pendingProps);case 24:return Ml(t),u=gt(it),e===null?(f=fo(),f===null&&(f=Ve,h=oo(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=a),f=h),t.memoizedState={parent:u,cache:f},po(t),tl(t,it,f)):((e.lanes&a)!==0&&(mo(e,t),Ca(t,null,null,a),_a()),f=e.memoizedState,h=t.memoizedState,f.parent!==u?(f={parent:u,cache:u},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),tl(t,it,u)):(u=h.cache,tl(t,it,u),u!==f.cache&&so(t,[it],a,!0))),yt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function jn(e){e.flags|=4}function Zo(e,t,a,u,f){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(im())e.flags|=8192;else throw Bl=Zr,ho}else e.flags&=-16777217}function Dp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Xm(t))if(im())e.flags|=8192;else throw Bl=Zr,ho}function du(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fh():536870912,e.lanes|=t,Oi|=t)}function La(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,u=0;if(t)for(var f=e.child;f!==null;)a|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)a|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=a,t}function xb(e,t,a){var u=t.pendingProps;switch(lo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return a=t.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),Mn(it),je(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(gi(t)?jn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ao())),Xe(t),null;case 26:var f=t.type,h=t.memoizedState;return e===null?(jn(t),h!==null?(Xe(t),Dp(t,h)):(Xe(t),Zo(t,f,null,u,a))):h?h!==e.memoizedState?(jn(t),Xe(t),Dp(t,h)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==u&&jn(t),Xe(t),Zo(t,f,e,u,a)),null;case 27:if(xn(t),a=ce.current,f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&jn(t);else{if(!u){if(t.stateNode===null)throw Error(r(166));return Xe(t),null}e=ie.current,gi(t)?fd(t):(e=qm(f,u,a),t.stateNode=e,jn(t))}return Xe(t),null;case 5:if(xn(t),f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&jn(t);else{if(!u){if(t.stateNode===null)throw Error(r(166));return Xe(t),null}if(h=ie.current,gi(t))fd(t);else{var b=Cu(ce.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof u.is=="string"?b.createElement("select",{is:u.is}):b.createElement("select"),u.multiple?h.multiple=!0:u.size&&(h.size=u.size);break;default:h=typeof u.is=="string"?b.createElement(f,{is:u.is}):b.createElement(f)}}h[pt]=t,h[Ot]=u;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=h;e:switch(bt(h,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&jn(t)}}return Xe(t),Zo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==u&&jn(t);else{if(typeof u!="string"&&t.stateNode===null)throw Error(r(166));if(e=ce.current,gi(t)){if(e=t.stateNode,a=t.memoizedProps,u=null,f=mt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}e[pt]=t,e=!!(e.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||Cm(e.nodeValue,a)),e||el(t,!0)}else e=Cu(e).createTextNode(u),e[pt]=t,t.stateNode=e}return Xe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(u=gi(t),a!==null){if(e===null){if(!u)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[pt]=t}else zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else a=ao(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Vt(t),t):(Vt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Xe(t),null;case 13:if(u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=gi(t),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(r(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[pt]=t}else zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),f=!1}else f=ao(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(Vt(t),t):(Vt(t),null)}return Vt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=u!==null,e=e!==null&&e.memoizedState!==null,a&&(u=t.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),h=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==f&&(u.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),du(t,t.updateQueue),Xe(t),null);case 4:return je(),e===null&&bc(t.stateNode.containerInfo),Xe(t),null;case 10:return Mn(t.type),Xe(t),null;case 19:if(V(We),u=t.memoizedState,u===null)return Xe(t),null;if(f=(t.flags&128)!==0,h=u.rendering,h===null)if(f)La(u,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=eu(e),h!==null){for(t.flags|=128,La(u,!1),e=h.updateQueue,t.updateQueue=e,du(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)rd(a,e),a=a.sibling;return w(We,We.current&1|2),Oe&&zn(t,u.treeForkCount),t.child}e=e.sibling}u.tail!==null&&wt()>bu&&(t.flags|=128,f=!0,La(u,!1),t.lanes=4194304)}else{if(!f)if(e=eu(h),e!==null){if(t.flags|=128,f=!0,e=e.updateQueue,t.updateQueue=e,du(t,e),La(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!Oe)return Xe(t),null}else 2*wt()-u.renderingStartTime>bu&&a!==536870912&&(t.flags|=128,f=!0,La(u,!1),t.lanes=4194304);u.isBackwards?(h.sibling=t.child,t.child=h):(e=u.last,e!==null?e.sibling=h:t.child=h,u.last=h)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=wt(),e.sibling=null,a=We.current,w(We,f?a&1|2:a&1),Oe&&zn(t,u.treeForkCount),e):(Xe(t),null);case 22:case 23:return Vt(t),So(),u=t.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(a&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),a=t.updateQueue,a!==null&&du(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==a&&(t.flags|=2048),e!==null&&V(Ll),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Mn(it),Xe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Ab(e,t){switch(lo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mn(it),je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xn(t),null;case 31:if(t.memoizedState!==null){if(Vt(t),t.alternate===null)throw Error(r(340));zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(We),null;case 4:return je(),null;case 10:return Mn(t.type),null;case 22:case 23:return Vt(t),So(),e!==null&&V(Ll),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Mn(it),null;case 25:return null;default:return null}}function Mp(e,t){switch(lo(t),t.tag){case 3:Mn(it),je();break;case 26:case 27:case 5:xn(t);break;case 4:je();break;case 31:t.memoizedState!==null&&Vt(t);break;case 13:Vt(t);break;case 19:V(We);break;case 10:Mn(t.type);break;case 22:case 23:Vt(t),So(),e!==null&&V(Ll);break;case 24:Mn(it)}}function Ra(e,t){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var f=u.next;a=f;do{if((a.tag&e)===e){u=void 0;var h=a.create,b=a.inst;u=h(),b.destroy=u}a=a.next}while(a!==f)}}catch(k){Be(t,t.return,k)}}function ul(e,t,a){try{var u=t.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var h=f.next;u=h;do{if((u.tag&e)===e){var b=u.inst,k=b.destroy;if(k!==void 0){b.destroy=void 0,f=t;var T=a,R=k;try{R()}catch(Y){Be(f,T,Y)}}}u=u.next}while(u!==h)}}catch(Y){Be(t,t.return,Y)}}function Lp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{xd(t,a)}catch(u){Be(e,e.return,u)}}}function Rp(e,t,a){a.props=ql(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(u){Be(e,t,u)}}function Ba(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof a=="function"?e.refCleanup=a(u):a.current=u}}catch(f){Be(e,t,f)}}function Sn(e,t){var a=e.ref,u=e.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(f){Be(e,t,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(f){Be(e,t,f)}else a.current=null}function Bp(e){var t=e.type,a=e.memoizedProps,u=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(f){Be(e,e.return,f)}}function Jo(e,t,a){try{var u=e.stateNode;Xb(u,e.type,a,t),u[Ot]=t}catch(f){Be(e,e.return,f)}}function jp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pl(e.type)||e.tag===4}function Po(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jp(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&&pl(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 Wo(e,t,a){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Cn));else if(u!==4&&(u===27&&pl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Wo(e,t,a),e=e.sibling;e!==null;)Wo(e,t,a),e=e.sibling}function pu(e,t,a){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(u!==4&&(u===27&&pl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(pu(e,t,a),e=e.sibling;e!==null;)pu(e,t,a),e=e.sibling}function Up(e){var t=e.stateNode,a=e.memoizedProps;try{for(var u=e.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);bt(t,u,a),t[pt]=e,t[Ot]=a}catch(h){Be(e,e.return,h)}}var Un=!1,ut=!1,ec=!1,qp=typeof WeakSet=="function"?WeakSet:Set,dt=null;function Tb(e,t){if(e=e.containerInfo,kc=Ru,e=Jh(e),Qs(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var f=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{a.nodeType,h.nodeType}catch{a=null;break e}var b=0,k=-1,T=-1,R=0,Y=0,Q=e,U=null;t:for(;;){for(var H;Q!==a||f!==0&&Q.nodeType!==3||(k=b+f),Q!==h||u!==0&&Q.nodeType!==3||(T=b+u),Q.nodeType===3&&(b+=Q.nodeValue.length),(H=Q.firstChild)!==null;)U=Q,Q=H;for(;;){if(Q===e)break t;if(U===a&&++R===f&&(k=b),U===h&&++Y===u&&(T=b),(H=Q.nextSibling)!==null)break;Q=U,U=Q.parentNode}Q=H}a=k===-1||T===-1?null:{start:k,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(wc={focusedElem:e,selectionRange:a},Ru=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,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(a=0;a<e.length;a++)f=e[a],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,a=t,f=h.memoizedProps,h=h.memoizedState,u=a.stateNode;try{var ue=ql(a.type,f);e=u.getSnapshotBeforeUpdate(ue,h),u.__reactInternalSnapshotBeforeUpdate=e}catch(de){Be(a,a.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Ac(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ac(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}}function Hp(e,t,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Hn(e,a),u&4&&Ra(5,a);break;case 1:if(Hn(e,a),u&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){Be(a,a.return,b)}else{var f=ql(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(f,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Be(a,a.return,b)}}u&64&&Lp(a),u&512&&Ba(a,a.return);break;case 3:if(Hn(e,a),u&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{xd(e,t)}catch(b){Be(a,a.return,b)}}break;case 27:t===null&&u&4&&Up(a);case 26:case 5:Hn(e,a),t===null&&u&4&&Bp(a),u&512&&Ba(a,a.return);break;case 12:Hn(e,a);break;case 31:Hn(e,a),u&4&&Ip(e,a);break;case 13:Hn(e,a),u&4&&Gp(e,a),u&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Rb.bind(null,a),tS(e,a))));break;case 22:if(u=a.memoizedState!==null||Un,!u){t=t!==null&&t.memoizedState!==null||ut,f=Un;var h=ut;Un=u,(ut=t)&&!h?Yn(e,a,(a.subtreeFlags&8772)!==0):Hn(e,a),Un=f,ut=h}break;case 30:break;default:Hn(e,a)}}function Yp(e){var t=e.alternate;t!==null&&(e.alternate=null,Yp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Os(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 Fe=null,zt=!1;function qn(e,t,a){for(a=a.child;a!==null;)Vp(e,t,a),a=a.sibling}function Vp(e,t,a){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Et,a)}catch{}switch(a.tag){case 26:ut||Sn(a,t),qn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ut||Sn(a,t);var u=Fe,f=zt;pl(a.type)&&(Fe=a.stateNode,zt=!1),qn(e,t,a),Ka(a.stateNode),Fe=u,zt=f;break;case 5:ut||Sn(a,t);case 6:if(u=Fe,f=zt,Fe=null,qn(e,t,a),Fe=u,zt=f,Fe!==null)if(zt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(a.stateNode)}catch(h){Be(a,t,h)}else try{Fe.removeChild(a.stateNode)}catch(h){Be(a,t,h)}break;case 18:Fe!==null&&(zt?(e=Fe,Lm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ji(e)):Lm(Fe,a.stateNode));break;case 4:u=Fe,f=zt,Fe=a.stateNode.containerInfo,zt=!0,qn(e,t,a),Fe=u,zt=f;break;case 0:case 11:case 14:case 15:ul(2,a,t),ut||ul(4,a,t),qn(e,t,a);break;case 1:ut||(Sn(a,t),u=a.stateNode,typeof u.componentWillUnmount=="function"&&Rp(a,t,u)),qn(e,t,a);break;case 21:qn(e,t,a);break;case 22:ut=(u=ut)||a.memoizedState!==null,qn(e,t,a),ut=u;break;default:qn(e,t,a)}}function Ip(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ji(e)}catch(a){Be(t,t.return,a)}}}function Gp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ji(e)}catch(a){Be(t,t.return,a)}}function _b(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new qp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new qp),t;default:throw Error(r(435,e.tag))}}function mu(e,t){var a=_b(e);t.forEach(function(u){if(!a.has(u)){a.add(u);var f=Bb.bind(null,e,u);u.then(f,f)}})}function Dt(e,t){var a=t.deletions;if(a!==null)for(var u=0;u<a.length;u++){var f=a[u],h=e,b=t,k=b;e:for(;k!==null;){switch(k.tag){case 27:if(pl(k.type)){Fe=k.stateNode,zt=!1;break e}break;case 5:Fe=k.stateNode,zt=!1;break e;case 3:case 4:Fe=k.stateNode.containerInfo,zt=!0;break e}k=k.return}if(Fe===null)throw Error(r(160));Vp(h,b,f),Fe=null,zt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Kp(t,e),t=t.sibling}var hn=null;function Kp(e,t){var a=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),Mt(e),u&4&&(ul(3,e,e.return),Ra(3,e),ul(5,e,e.return));break;case 1:Dt(t,e),Mt(e),u&512&&(ut||a===null||Sn(a,a.return)),u&64&&Un&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?u:a.concat(u))));break;case 26:var f=hn;if(Dt(t,e),Mt(e),u&512&&(ut||a===null||Sn(a,a.return)),u&4){var h=a!==null?a.memoizedState:null;if(u=e.memoizedState,a===null)if(u===null)if(e.stateNode===null){e:{u=e.type,a=e.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":h=f.getElementsByTagName("title")[0],(!h||h[oa]||h[pt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(u),f.head.insertBefore(h,f.querySelector("head > title"))),bt(h,u,a),h[pt]=e,ht(h),u=h;break e;case"link":var b=Km("link","href",f).get(u+(a.href||""));if(b){for(var k=0;k<b.length;k++)if(h=b[k],h.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&h.getAttribute("rel")===(a.rel==null?null:a.rel)&&h.getAttribute("title")===(a.title==null?null:a.title)&&h.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(k,1);break t}}h=f.createElement(u),bt(h,u,a),f.head.appendChild(h);break;case"meta":if(b=Km("meta","content",f).get(u+(a.content||""))){for(k=0;k<b.length;k++)if(h=b[k],h.getAttribute("content")===(a.content==null?null:""+a.content)&&h.getAttribute("name")===(a.name==null?null:a.name)&&h.getAttribute("property")===(a.property==null?null:a.property)&&h.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&h.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(k,1);break t}}h=f.createElement(u),bt(h,u,a),f.head.appendChild(h);break;default:throw Error(r(468,u))}h[pt]=e,ht(h),u=h}e.stateNode=u}else Qm(f,e.type,e.stateNode);else e.stateNode=Gm(f,u,e.memoizedProps);else h!==u?(h===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):h.count--,u===null?Qm(f,e.type,e.stateNode):Gm(f,u,e.memoizedProps)):u===null&&e.stateNode!==null&&Jo(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dt(t,e),Mt(e),u&512&&(ut||a===null||Sn(a,a.return)),a!==null&&u&4&&Jo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dt(t,e),Mt(e),u&512&&(ut||a===null||Sn(a,a.return)),e.flags&32){f=e.stateNode;try{ri(f,"")}catch(ue){Be(e,e.return,ue)}}u&4&&e.stateNode!=null&&(f=e.memoizedProps,Jo(e,f,a!==null?a.memoizedProps:f)),u&1024&&(ec=!0);break;case 6:if(Dt(t,e),Mt(e),u&4){if(e.stateNode===null)throw Error(r(162));u=e.memoizedProps,a=e.stateNode;try{a.nodeValue=u}catch(ue){Be(e,e.return,ue)}}break;case 3:if(zu=null,f=hn,hn=Ou(t.containerInfo),Dt(t,e),hn=f,Mt(e),u&4&&a!==null&&a.memoizedState.isDehydrated)try{ji(t.containerInfo)}catch(ue){Be(e,e.return,ue)}ec&&(ec=!1,Qp(e));break;case 4:u=hn,hn=Ou(e.stateNode.containerInfo),Dt(t,e),Mt(e),hn=u;break;case 12:Dt(t,e),Mt(e);break;case 31:Dt(t,e),Mt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,mu(e,u)));break;case 13:Dt(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(yu=wt()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,mu(e,u)));break;case 22:f=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,R=Un,Y=ut;if(Un=R||f,ut=Y||T,Dt(t,e),ut=Y,Un=R,Mt(e),u&8192)e:for(t=e.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(a===null||T||Un||ut||Hl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){T=a=t;try{if(h=T.stateNode,f)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{k=T.stateNode;var Q=T.memoizedProps.style,U=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;k.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ue){Be(T,T.return,ue)}}}else if(t.tag===6){if(a===null){T=t;try{T.stateNode.nodeValue=f?"":T.memoizedProps}catch(ue){Be(T,T.return,ue)}}}else if(t.tag===18){if(a===null){T=t;try{var H=T.stateNode;f?Rm(H,!0):Rm(T.stateNode,!1)}catch(ue){Be(T,T.return,ue)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}u&4&&(u=e.updateQueue,u!==null&&(a=u.retryQueue,a!==null&&(u.retryQueue=null,mu(e,a))));break;case 19:Dt(t,e),Mt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,mu(e,u)));break;case 30:break;case 21:break;default:Dt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var a,u=e.return;u!==null;){if(jp(u)){a=u;break}u=u.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var f=a.stateNode,h=Po(e);pu(e,h,f);break;case 5:var b=a.stateNode;a.flags&32&&(ri(b,""),a.flags&=-33);var k=Po(e);pu(e,k,b);break;case 3:case 4:var T=a.stateNode.containerInfo,R=Po(e);Wo(e,R,T);break;default:throw Error(r(161))}}catch(Y){Be(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Qp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Hp(e,t.alternate,t),t=t.sibling}function Hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ul(4,t,t.return),Hl(t);break;case 1:Sn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Rp(t,t.return,a),Hl(t);break;case 27:Ka(t.stateNode);case 26:case 5:Sn(t,t.return),Hl(t);break;case 22:t.memoizedState===null&&Hl(t);break;case 30:Hl(t);break;default:Hl(t)}e=e.sibling}}function Yn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var u=t.alternate,f=e,h=t,b=h.flags;switch(h.tag){case 0:case 11:case 15:Yn(f,h,a),Ra(4,h);break;case 1:if(Yn(f,h,a),u=h,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(R){Be(u,u.return,R)}if(u=h,f=u.updateQueue,f!==null){var k=u.stateNode;try{var T=f.shared.hiddenCallbacks;if(T!==null)for(f.shared.hiddenCallbacks=null,f=0;f<T.length;f++)Ed(T[f],k)}catch(R){Be(u,u.return,R)}}a&&b&64&&Lp(h),Ba(h,h.return);break;case 27:Up(h);case 26:case 5:Yn(f,h,a),a&&u===null&&b&4&&Bp(h),Ba(h,h.return);break;case 12:Yn(f,h,a);break;case 31:Yn(f,h,a),a&&b&4&&Ip(f,h);break;case 13:Yn(f,h,a),a&&b&4&&Gp(f,h);break;case 22:h.memoizedState===null&&Yn(f,h,a),Ba(h,h.return);break;case 30:break;default:Yn(f,h,a)}t=t.sibling}}function tc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&wa(a))}function nc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wa(e))}function dn(e,t,a,u){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Xp(e,t,a,u),t=t.sibling}function Xp(e,t,a,u){var f=t.flags;switch(t.tag){case 0:case 11:case 15:dn(e,t,a,u),f&2048&&Ra(9,t);break;case 1:dn(e,t,a,u);break;case 3:dn(e,t,a,u),f&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wa(e)));break;case 12:if(f&2048){dn(e,t,a,u),e=t.stateNode;try{var h=t.memoizedProps,b=h.id,k=h.onPostCommit;typeof k=="function"&&k(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Be(t,t.return,T)}}else dn(e,t,a,u);break;case 31:dn(e,t,a,u);break;case 13:dn(e,t,a,u);break;case 23:break;case 22:h=t.stateNode,b=t.alternate,t.memoizedState!==null?h._visibility&2?dn(e,t,a,u):ja(e,t):h._visibility&2?dn(e,t,a,u):(h._visibility|=2,Ti(e,t,a,u,(t.subtreeFlags&10256)!==0||!1)),f&2048&&tc(b,t);break;case 24:dn(e,t,a,u),f&2048&&nc(t.alternate,t);break;default:dn(e,t,a,u)}}function Ti(e,t,a,u,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var h=e,b=t,k=a,T=u,R=b.flags;switch(b.tag){case 0:case 11:case 15:Ti(h,b,k,T,f),Ra(8,b);break;case 23:break;case 22:var Y=b.stateNode;b.memoizedState!==null?Y._visibility&2?Ti(h,b,k,T,f):ja(h,b):(Y._visibility|=2,Ti(h,b,k,T,f)),f&&R&2048&&tc(b.alternate,b);break;case 24:Ti(h,b,k,T,f),f&&R&2048&&nc(b.alternate,b);break;default:Ti(h,b,k,T,f)}t=t.sibling}}function ja(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,u=t,f=u.flags;switch(u.tag){case 22:ja(a,u),f&2048&&tc(u.alternate,u);break;case 24:ja(a,u),f&2048&&nc(u.alternate,u);break;default:ja(a,u)}t=t.sibling}}var Ua=8192;function _i(e,t,a){if(e.subtreeFlags&Ua)for(e=e.child;e!==null;)$p(e,t,a),e=e.sibling}function $p(e,t,a){switch(e.tag){case 26:_i(e,t,a),e.flags&Ua&&e.memoizedState!==null&&dS(a,hn,e.memoizedState,e.memoizedProps);break;case 5:_i(e,t,a);break;case 3:case 4:var u=hn;hn=Ou(e.stateNode.containerInfo),_i(e,t,a),hn=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=Ua,Ua=16777216,_i(e,t,a),Ua=u):_i(e,t,a));break;default:_i(e,t,a)}}function Fp(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 qa(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var u=t[a];dt=u,Jp(u,e)}Fp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zp(e),e=e.sibling}function Zp(e){switch(e.tag){case 0:case 11:case 15:qa(e),e.flags&2048&&ul(9,e,e.return);break;case 3:qa(e);break;case 12:qa(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,gu(e)):qa(e);break;default:qa(e)}}function gu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var u=t[a];dt=u,Jp(u,e)}Fp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ul(8,t,t.return),gu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,gu(t));break;default:gu(t)}e=e.sibling}}function Jp(e,t){for(;dt!==null;){var a=dt;switch(a.tag){case 0:case 11:case 15:ul(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var u=a.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:wa(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,dt=u;else e:for(a=e;dt!==null;){u=dt;var f=u.sibling,h=u.return;if(Yp(u),u===a){dt=null;break e}if(f!==null){f.return=h,dt=f;break e}dt=h}}}var Cb={getCacheForType:function(e){var t=gt(it),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return gt(it).controller.signal}},Ob=typeof WeakMap=="function"?WeakMap:Map,Me=0,Ve=null,Ee=null,_e=0,Re=0,It=null,sl=!1,Ci=!1,lc=!1,Vn=0,Pe=0,ol=0,Yl=0,ic=0,Gt=0,Oi=0,Ha=null,Lt=null,ac=!1,yu=0,Pp=0,bu=1/0,Su=null,cl=null,ct=0,fl=null,Ni=null,In=0,rc=0,uc=null,Wp=null,Ya=0,sc=null;function Kt(){return(Me&2)!==0&&_e!==0?_e&-_e:M.T!==null?pc():mh()}function em(){if(Gt===0)if((_e&536870912)===0||Oe){var e=_r;_r<<=1,(_r&3932160)===0&&(_r=262144),Gt=e}else Gt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Gt}function Rt(e,t,a){(e===Ve&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(zi(e,0),hl(e,_e,Gt,!1)),sa(e,a),((Me&2)===0||e!==Ve)&&(e===Ve&&((Me&2)===0&&(Yl|=a),Pe===4&&hl(e,_e,Gt,!1)),vn(e))}function tm(e,t,a){if((Me&6)!==0)throw Error(r(327));var u=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ua(e,t),f=u?Db(e,t):cc(e,t,!0),h=u;do{if(f===0){Ci&&!u&&hl(e,t,0,!1);break}else{if(a=e.current.alternate,h&&!Nb(a)){f=cc(e,t,!1),h=!1;continue}if(f===2){if(h=t,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var k=e;f=Ha;var T=k.current.memoizedState.isDehydrated;if(T&&(zi(k,b).flags|=256),b=cc(k,b,!1),b!==2){if(lc&&!T){k.errorRecoveryDisabledLanes|=h,Yl|=h,f=4;break e}h=Lt,Lt=f,h!==null&&(Lt===null?Lt=h:Lt.push.apply(Lt,h))}f=b}if(h=!1,f!==2)continue}}if(f===1){zi(e,0),hl(e,t,0,!0);break}e:{switch(u=e,h=f,h){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:hl(u,t,Gt,!sl);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(f=yu+300-wt(),10<f)){if(hl(u,t,Gt,!sl),Or(u,0,!0)!==0)break e;In=t,u.timeoutHandle=Dm(nm.bind(null,u,a,Lt,Su,ac,t,Gt,Yl,Oi,sl,h,"Throttled",-0,0),f);break e}nm(u,a,Lt,Su,ac,t,Gt,Yl,Oi,sl,h,null,-0,0)}}break}while(!0);vn(e)}function nm(e,t,a,u,f,h,b,k,T,R,Y,Q,U,H){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cn},$p(t,h,Q);var ue=(h&62914560)===h?yu-wt():(h&4194048)===h?Pp-wt():0;if(ue=pS(Q,ue),ue!==null){In=h,e.cancelPendingCommit=ue(cm.bind(null,e,t,h,a,u,f,b,k,T,Y,Q,null,U,H)),hl(e,h,b,!R);return}}cm(e,t,h,a,u,f,b,k,T)}function Nb(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var f=a[u],h=f.getSnapshot;f=f.value;try{if(!qt(h(),f))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 hl(e,t,a,u){t&=~ic,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,u&&(e.warmLanes|=t),u=e.expirationTimes;for(var f=t;0<f;){var h=31-Ye(f),b=1<<h;u[h]=-1,f&=~b}a!==0&&hh(e,a,t)}function vu(){return(Me&6)===0?(Va(0),!1):!0}function oc(){if(Ee!==null){if(Re===0)var e=Ee.return;else e=Ee,Dn=Dl=null,Ao(e),ki=null,xa=0,e=Ee;for(;e!==null;)Mp(e.alternate,e),e=e.return;Ee=null}}function zi(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Zb(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),In=0,oc(),Ve=e,Ee=a=Nn(e.current,null),_e=t,Re=0,It=null,sl=!1,Ci=ua(e,t),lc=!1,Oi=Gt=ic=Yl=ol=Pe=0,Lt=Ha=null,ac=!1,(t&8)!==0&&(t|=t&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=t;0<u;){var f=31-Ye(u),h=1<<f;t|=e[f],u&=~h}return Vn=t,Yr(),a}function lm(e,t){be=null,M.H=Da,t===vi||t===Fr?(t=Sd(),Re=3):t===ho?(t=Sd(),Re=4):Re=t===Yo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,It=t,Ee===null&&(Pe=1,ou(e,Pt(t,e.current)))}function im(){var e=Yt.current;return e===null?!0:(_e&4194048)===_e?nn===null:(_e&62914560)===_e||(_e&536870912)!==0?e===nn:!1}function am(){var e=M.H;return M.H=Da,e===null?Da:e}function rm(){var e=M.A;return M.A=Cb,e}function ku(){Pe=4,sl||(_e&4194048)!==_e&&Yt.current!==null||(Ci=!0),(ol&134217727)===0&&(Yl&134217727)===0||Ve===null||hl(Ve,_e,Gt,!1)}function cc(e,t,a){var u=Me;Me|=2;var f=am(),h=rm();(Ve!==e||_e!==t)&&(Su=null,zi(e,t)),t=!1;var b=Pe;e:do try{if(Re!==0&&Ee!==null){var k=Ee,T=It;switch(Re){case 8:oc(),b=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var R=Re;if(Re=0,It=null,Di(e,k,T,R),a&&Ci){b=0;break e}break;default:R=Re,Re=0,It=null,Di(e,k,T,R)}}zb(),b=Pe;break}catch(Y){lm(e,Y)}while(!0);return t&&e.shellSuspendCounter++,Dn=Dl=null,Me=u,M.H=f,M.A=h,Ee===null&&(Ve=null,_e=0,Yr()),b}function zb(){for(;Ee!==null;)um(Ee)}function Db(e,t){var a=Me;Me|=2;var u=am(),f=rm();Ve!==e||_e!==t?(Su=null,bu=wt()+500,zi(e,t)):Ci=ua(e,t);e:do try{if(Re!==0&&Ee!==null){t=Ee;var h=It;t:switch(Re){case 1:Re=0,It=null,Di(e,t,h,1);break;case 2:case 9:if(yd(h)){Re=0,It=null,sm(t);break}t=function(){Re!==2&&Re!==9||Ve!==e||(Re=7),vn(e)},h.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:yd(h)?(Re=0,It=null,sm(t)):(Re=0,It=null,Di(e,t,h,7));break;case 5:var b=null;switch(Ee.tag){case 26:b=Ee.memoizedState;case 5:case 27:var k=Ee;if(b?Xm(b):k.stateNode.complete){Re=0,It=null;var T=k.sibling;if(T!==null)Ee=T;else{var R=k.return;R!==null?(Ee=R,wu(R)):Ee=null}break t}}Re=0,It=null,Di(e,t,h,5);break;case 6:Re=0,It=null,Di(e,t,h,6);break;case 8:oc(),Pe=6;break e;default:throw Error(r(462))}}Mb();break}catch(Y){lm(e,Y)}while(!0);return Dn=Dl=null,M.H=u,M.A=f,Me=a,Ee!==null?0:(Ve=null,_e=0,Yr(),Pe)}function Mb(){for(;Ee!==null&&!ws();)um(Ee)}function um(e){var t=zp(e.alternate,e,Vn);e.memoizedProps=e.pendingProps,t===null?wu(e):Ee=t}function sm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ap(a,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=Ap(a,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:Ao(t);default:Mp(a,t),t=Ee=rd(t,Vn),t=zp(a,t,Vn)}e.memoizedProps=e.pendingProps,t===null?wu(e):Ee=t}function Di(e,t,a,u){Dn=Dl=null,Ao(t),ki=null,xa=0;var f=t.return;try{if(kb(e,f,t,a,_e)){Pe=1,ou(e,Pt(a,e.current)),Ee=null;return}}catch(h){if(f!==null)throw Ee=f,h;Pe=1,ou(e,Pt(a,e.current)),Ee=null;return}t.flags&32768?(Oe||u===1?e=!0:Ci||(_e&536870912)!==0?e=!1:(sl=e=!0,(u===2||u===9||u===3||u===6)&&(u=Yt.current,u!==null&&u.tag===13&&(u.flags|=16384))),om(t,e)):wu(t)}function wu(e){var t=e;do{if((t.flags&32768)!==0){om(t,sl);return}e=t.return;var a=xb(t.alternate,t,Vn);if(a!==null){Ee=a;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Pe===0&&(Pe=5)}function om(e,t){do{var a=Ab(e.alternate,e);if(a!==null){a.flags&=32767,Ee=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=a}while(e!==null);Pe=6,Ee=null}function cm(e,t,a,u,f,h,b,k,T){e.cancelPendingCommit=null;do Eu();while(ct!==0);if((Me&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(h=t.lanes|t.childLanes,h|=Js,h0(e,a,h,b,k,T),e===Ve&&(Ee=Ve=null,_e=0),Ni=t,fl=e,In=a,rc=h,uc=f,Wp=u,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,jb(me,function(){return mm(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||u){u=M.T,M.T=null,f=F.p,F.p=2,b=Me,Me|=4;try{Tb(e,t,a)}finally{Me=b,F.p=f,M.T=u}}ct=1,fm(),hm(),dm()}}function fm(){if(ct===1){ct=0;var e=fl,t=Ni,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var u=F.p;F.p=2;var f=Me;Me|=4;try{Kp(t,e);var h=wc,b=Jh(e.containerInfo),k=h.focusedElem,T=h.selectionRange;if(b!==k&&k&&k.ownerDocument&&Zh(k.ownerDocument.documentElement,k)){if(T!==null&&Qs(k)){var R=T.start,Y=T.end;if(Y===void 0&&(Y=R),"selectionStart"in k)k.selectionStart=R,k.selectionEnd=Math.min(Y,k.value.length);else{var Q=k.ownerDocument||document,U=Q&&Q.defaultView||window;if(U.getSelection){var H=U.getSelection(),ue=k.textContent.length,de=Math.min(T.start,ue),He=T.end===void 0?de:Math.min(T.end,ue);!H.extend&&de>He&&(b=He,He=de,de=b);var z=Fh(k,de),N=Fh(k,He);if(z&&N&&(H.rangeCount!==1||H.anchorNode!==z.node||H.anchorOffset!==z.offset||H.focusNode!==N.node||H.focusOffset!==N.offset)){var L=Q.createRange();L.setStart(z.node,z.offset),H.removeAllRanges(),de>He?(H.addRange(L),H.extend(N.node,N.offset)):(L.setEnd(N.node,N.offset),H.addRange(L))}}}}for(Q=[],H=k;H=H.parentNode;)H.nodeType===1&&Q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<Q.length;k++){var G=Q[k];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Ru=!!kc,wc=kc=null}finally{Me=f,F.p=u,M.T=a}}e.current=t,ct=2}}function hm(){if(ct===2){ct=0;var e=fl,t=Ni,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var u=F.p;F.p=2;var f=Me;Me|=4;try{Hp(e,t.alternate,t)}finally{Me=f,F.p=u,M.T=a}}ct=3}}function dm(){if(ct===4||ct===3){ct=0,Es();var e=fl,t=Ni,a=In,u=Wp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,Ni=fl=null,pm(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(cl=null),_s(a),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Et,t,void 0,(t.current.flags&128)===128)}catch{}if(u!==null){t=M.T,f=F.p,F.p=2,M.T=null;try{for(var h=e.onRecoverableError,b=0;b<u.length;b++){var k=u[b];h(k.value,{componentStack:k.stack})}}finally{M.T=t,F.p=f}}(In&3)!==0&&Eu(),vn(e),f=e.pendingLanes,(a&261930)!==0&&(f&42)!==0?e===sc?Ya++:(Ya=0,sc=e):Ya=0,Va(0)}}function pm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,wa(t)))}function Eu(){return fm(),hm(),dm(),mm()}function mm(){if(ct!==5)return!1;var e=fl,t=rc;rc=0;var a=_s(In),u=M.T,f=F.p;try{F.p=32>a?32:a,M.T=null,a=uc,uc=null;var h=fl,b=In;if(ct=0,Ni=fl=null,In=0,(Me&6)!==0)throw Error(r(331));var k=Me;if(Me|=4,Zp(h.current),Xp(h,h.current,b,a),Me=k,Va(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Et,h)}catch{}return!0}finally{F.p=f,M.T=u,pm(e,t)}}function gm(e,t,a){t=Pt(a,t),t=Ho(e.stateNode,t,2),e=il(e,t,2),e!==null&&(sa(e,2),vn(e))}function Be(e,t,a){if(e.tag===3)gm(e,e,a);else for(;t!==null;){if(t.tag===3){gm(t,e,a);break}else if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(cl===null||!cl.has(u))){e=Pt(a,e),a=yp(2),u=il(t,a,2),u!==null&&(bp(a,u,t,e),sa(u,2),vn(u));break}}t=t.return}}function fc(e,t,a){var u=e.pingCache;if(u===null){u=e.pingCache=new Ob;var f=new Set;u.set(t,f)}else f=u.get(t),f===void 0&&(f=new Set,u.set(t,f));f.has(a)||(lc=!0,f.add(a),e=Lb.bind(null,e,t,a),t.then(e,e))}function Lb(e,t,a){var u=e.pingCache;u!==null&&u.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ve===e&&(_e&a)===a&&(Pe===4||Pe===3&&(_e&62914560)===_e&&300>wt()-yu?(Me&2)===0&&zi(e,0):ic|=a,Oi===_e&&(Oi=0)),vn(e)}function ym(e,t){t===0&&(t=fh()),e=Ol(e,t),e!==null&&(sa(e,t),vn(e))}function Rb(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ym(e,a)}function Bb(e,t){var a=0;switch(e.tag){case 31:case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(a=f.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(t),ym(e,a)}function jb(e,t){return Wl(e,t)}var xu=null,Mi=null,hc=!1,Au=!1,dc=!1,dl=0;function vn(e){e!==Mi&&e.next===null&&(Mi===null?xu=Mi=e:Mi=Mi.next=e),Au=!0,hc||(hc=!0,qb())}function Va(e,t){if(!dc&&Au){dc=!0;do for(var a=!1,u=xu;u!==null;){if(e!==0){var f=u.pendingLanes;if(f===0)var h=0;else{var b=u.suspendedLanes,k=u.pingedLanes;h=(1<<31-Ye(42|e)+1)-1,h&=f&~(b&~k),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(a=!0,km(u,h))}else h=_e,h=Or(u,u===Ve?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||ua(u,h)||(a=!0,km(u,h));u=u.next}while(a);dc=!1}}function Ub(){bm()}function bm(){Au=hc=!1;var e=0;dl!==0&&Fb()&&(e=dl);for(var t=wt(),a=null,u=xu;u!==null;){var f=u.next,h=Sm(u,t);h===0?(u.next=null,a===null?xu=f:a.next=f,f===null&&(Mi=a)):(a=u,(e!==0||(h&3)!==0)&&(Au=!0)),u=f}ct!==0&&ct!==5||Va(e),dl!==0&&(dl=0)}function Sm(e,t){for(var a=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Ye(h),k=1<<b,T=f[b];T===-1?((k&a)===0||(k&u)!==0)&&(f[b]=f0(k,t)):T<=t&&(e.expiredLanes|=k),h&=~k}if(t=Ve,a=_e,a=Or(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,a===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&ra(u),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ua(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(u!==null&&ra(u),_s(a)){case 2:case 8:a=ne;break;case 32:a=me;break;case 268435456:a=Le;break;default:a=me}return u=vm.bind(null,e),a=Wl(a,u),e.callbackPriority=t,e.callbackNode=a,t}return u!==null&&u!==null&&ra(u),e.callbackPriority=2,e.callbackNode=null,2}function vm(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Eu()&&e.callbackNode!==a)return null;var u=_e;return u=Or(e,e===Ve?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(tm(e,u,t),Sm(e,wt()),e.callbackNode!=null&&e.callbackNode===a?vm.bind(null,e):null)}function km(e,t){if(Eu())return null;tm(e,t,!0)}function qb(){Jb(function(){(Me&6)!==0?Wl(I,Ub):bm()})}function pc(){if(dl===0){var e=bi;e===0&&(e=Tr,Tr<<=1,(Tr&261888)===0&&(Tr=256)),dl=e}return dl}function wm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mr(""+e)}function Em(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Hb(e,t,a,u,f){if(t==="submit"&&a&&a.stateNode===f){var h=wm((f[Ot]||null).action),b=u.submitter;b&&(t=(t=b[Ot]||null)?wm(t.formAction):b.getAttribute("formAction"),t!==null&&(h=t,b=null));var k=new jr("action","action",null,u,f);e.push({event:k,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(dl!==0){var T=b?Em(f,b):new FormData(f);Lo(a,{pending:!0,data:T,method:f.method,action:h},null,T)}}else typeof h=="function"&&(k.preventDefault(),T=b?Em(f,b):new FormData(f),Lo(a,{pending:!0,data:T,method:f.method,action:h},h,T))},currentTarget:f}]})}}for(var mc=0;mc<Zs.length;mc++){var gc=Zs[mc],Yb=gc.toLowerCase(),Vb=gc[0].toUpperCase()+gc.slice(1);fn(Yb,"on"+Vb)}fn(ed,"onAnimationEnd"),fn(td,"onAnimationIteration"),fn(nd,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(ib,"onTransitionRun"),fn(ab,"onTransitionStart"),fn(rb,"onTransitionCancel"),fn(ld,"onTransitionEnd"),ii("onMouseEnter",["mouseout","mouseover"]),ii("onMouseLeave",["mouseout","mouseover"]),ii("onPointerEnter",["pointerout","pointerover"]),ii("onPointerLeave",["pointerout","pointerover"]),Al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Al("onBeforeInput",["compositionend","keypress","textInput","paste"]),Al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ia="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(" "),Ib=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ia));function xm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var u=e[a],f=u.event;u=u.listeners;e:{var h=void 0;if(t)for(var b=u.length-1;0<=b;b--){var k=u[b],T=k.instance,R=k.currentTarget;if(k=k.listener,T!==h&&f.isPropagationStopped())break e;h=k,f.currentTarget=R;try{h(f)}catch(Y){Hr(Y)}f.currentTarget=null,h=T}else for(b=0;b<u.length;b++){if(k=u[b],T=k.instance,R=k.currentTarget,k=k.listener,T!==h&&f.isPropagationStopped())break e;h=k,f.currentTarget=R;try{h(f)}catch(Y){Hr(Y)}f.currentTarget=null,h=T}}}}function xe(e,t){var a=t[Cs];a===void 0&&(a=t[Cs]=new Set);var u=e+"__bubble";a.has(u)||(Am(t,e,2,!1),a.add(u))}function yc(e,t,a){var u=0;t&&(u|=4),Am(a,e,u,t)}var Tu="_reactListening"+Math.random().toString(36).slice(2);function bc(e){if(!e[Tu]){e[Tu]=!0,bh.forEach(function(a){a!=="selectionchange"&&(Ib.has(a)||yc(a,!1,e),yc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Tu]||(t[Tu]=!0,yc("selectionchange",!1,t))}}function Am(e,t,a,u){switch(eg(t)){case 2:var f=yS;break;case 8:f=bS;break;default:f=Mc}a=f.bind(null,t,a,e),f=void 0,!js||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(t,a,{capture:!0,passive:f}):e.addEventListener(t,a,!0):f!==void 0?e.addEventListener(t,a,{passive:f}):e.addEventListener(t,a,!1)}function Sc(e,t,a,u,f){var h=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var b=u.tag;if(b===3||b===4){var k=u.stateNode.containerInfo;if(k===f)break;if(b===4)for(b=u.return;b!==null;){var T=b.tag;if((T===3||T===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;k!==null;){if(b=ti(k),b===null)return;if(T=b.tag,T===5||T===6||T===26||T===27){u=h=b;continue e}k=k.parentNode}}u=u.return}Nh(function(){var R=h,Y=Rs(a),Q=[];e:{var U=id.get(e);if(U!==void 0){var H=jr,ue=e;switch(e){case"keypress":if(Rr(a)===0)break e;case"keydown":case"keyup":H=B0;break;case"focusin":ue="focus",H=Ys;break;case"focusout":ue="blur",H=Ys;break;case"beforeblur":case"afterblur":H=Ys;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Mh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=x0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=q0;break;case ed:case td:case nd:H=_0;break;case ld:H=Y0;break;case"scroll":case"scrollend":H=w0;break;case"wheel":H=I0;break;case"copy":case"cut":case"paste":H=O0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Rh;break;case"toggle":case"beforetoggle":H=K0}var de=(t&4)!==0,He=!de&&(e==="scroll"||e==="scrollend"),z=de?U!==null?U+"Capture":null:U;de=[];for(var N=R,L;N!==null;){var G=N;if(L=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||L===null||z===null||(G=fa(N,z),G!=null&&de.push(Ga(N,G,L))),He)break;N=N.return}0<de.length&&(U=new H(U,ue,null,a,Y),Q.push({event:U,listeners:de}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",U&&a!==Ls&&(ue=a.relatedTarget||a.fromElement)&&(ti(ue)||ue[ei]))break e;if((H||U)&&(U=Y.window===Y?Y:(U=Y.ownerDocument)?U.defaultView||U.parentWindow:window,H?(ue=a.relatedTarget||a.toElement,H=R,ue=ue?ti(ue):null,ue!==null&&(He=o(ue),de=ue.tag,ue!==He||de!==5&&de!==27&&de!==6)&&(ue=null)):(H=null,ue=R),H!==ue)){if(de=Mh,G="onMouseLeave",z="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(de=Rh,G="onPointerLeave",z="onPointerEnter",N="pointer"),He=H==null?U:ca(H),L=ue==null?U:ca(ue),U=new de(G,N+"leave",H,a,Y),U.target=He,U.relatedTarget=L,G=null,ti(Y)===R&&(de=new de(z,N+"enter",ue,a,Y),de.target=L,de.relatedTarget=He,G=de),He=G,H&&ue)t:{for(de=Gb,z=H,N=ue,L=0,G=z;G;G=de(G))L++;G=0;for(var fe=N;fe;fe=de(fe))G++;for(;0<L-G;)z=de(z),L--;for(;0<G-L;)N=de(N),G--;for(;L--;){if(z===N||N!==null&&z===N.alternate){de=z;break t}z=de(z),N=de(N)}de=null}else de=null;H!==null&&Tm(Q,U,H,de,!1),ue!==null&&He!==null&&Tm(Q,He,ue,de,!0)}}e:{if(U=R?ca(R):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var ze=Ih;else if(Yh(U))if(Gh)ze=tb;else{ze=W0;var oe=P0}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?R&&Ms(R.elementType)&&(ze=Ih):ze=eb;if(ze&&(ze=ze(e,R))){Vh(Q,ze,a,Y);break e}oe&&oe(e,U,R),e==="focusout"&&R&&U.type==="number"&&R.memoizedProps.value!=null&&Ds(U,"number",U.value)}switch(oe=R?ca(R):window,e){case"focusin":(Yh(oe)||oe.contentEditable==="true")&&(ci=oe,Xs=R,Sa=null);break;case"focusout":Sa=Xs=ci=null;break;case"mousedown":$s=!0;break;case"contextmenu":case"mouseup":case"dragend":$s=!1,Ph(Q,a,Y);break;case"selectionchange":if(lb)break;case"keydown":case"keyup":Ph(Q,a,Y)}var ve;if(Is)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else oi?qh(e,a)&&(Ce="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ce="onCompositionStart");Ce&&(Bh&&a.locale!=="ko"&&(oi||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&oi&&(ve=zh()):(Jn=Y,Us="value"in Jn?Jn.value:Jn.textContent,oi=!0)),oe=_u(R,Ce),0<oe.length&&(Ce=new Lh(Ce,e,null,a,Y),Q.push({event:Ce,listeners:oe}),ve?Ce.data=ve:(ve=Hh(a),ve!==null&&(Ce.data=ve)))),(ve=X0?$0(e,a):F0(e,a))&&(Ce=_u(R,"onBeforeInput"),0<Ce.length&&(oe=new Lh("onBeforeInput","beforeinput",null,a,Y),Q.push({event:oe,listeners:Ce}),oe.data=ve)),Hb(Q,e,R,a,Y)}xm(Q,t)})}function Ga(e,t,a){return{instance:e,listener:t,currentTarget:a}}function _u(e,t){for(var a=t+"Capture",u=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=fa(e,a),f!=null&&u.unshift(Ga(e,f,h)),f=fa(e,t),f!=null&&u.push(Ga(e,f,h))),e.tag===3)return u;e=e.return}return[]}function Gb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tm(e,t,a,u,f){for(var h=t._reactName,b=[];a!==null&&a!==u;){var k=a,T=k.alternate,R=k.stateNode;if(k=k.tag,T!==null&&T===u)break;k!==5&&k!==26&&k!==27||R===null||(T=R,f?(R=fa(a,h),R!=null&&b.unshift(Ga(a,R,T))):f||(R=fa(a,h),R!=null&&b.push(Ga(a,R,T)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var Kb=/\r\n?/g,Qb=/\u0000|\uFFFD/g;function _m(e){return(typeof e=="string"?e:""+e).replace(Kb,`
49
+ `).replace(Qb,"")}function Cm(e,t){return t=_m(t),_m(e)===t}function qe(e,t,a,u,f,h){switch(a){case"children":typeof u=="string"?t==="body"||t==="textarea"&&u===""||ri(e,u):(typeof u=="number"||typeof u=="bigint")&&t!=="body"&&ri(e,""+u);break;case"className":zr(e,"class",u);break;case"tabIndex":zr(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":zr(e,a,u);break;case"style":Ch(e,u,h);break;case"data":if(t!=="object"){zr(e,"data",u);break}case"src":case"href":if(u===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(a);break}u=Mr(""+u),e.setAttribute(a,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(a,"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"&&(a==="formAction"?(t!=="input"&&qe(e,t,"name",f.name,f,null),qe(e,t,"formEncType",f.formEncType,f,null),qe(e,t,"formMethod",f.formMethod,f,null),qe(e,t,"formTarget",f.formTarget,f,null)):(qe(e,t,"encType",f.encType,f,null),qe(e,t,"method",f.method,f,null),qe(e,t,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(a);break}u=Mr(""+u),e.setAttribute(a,u);break;case"onClick":u!=null&&(e.onclick=Cn);break;case"onScroll":u!=null&&xe("scroll",e);break;case"onScrollEnd":u!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(a=u.__html,a!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}a=Mr(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(a,""+u):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":u===!0?e.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(a,u):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(a,u):e.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(a):e.setAttribute(a,u);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Nr(e,"popover",u);break;case"xlinkActuate":_n(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":_n(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":_n(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":_n(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":_n(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":_n(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":_n(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":_n(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":_n(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Nr(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=v0.get(a)||a,Nr(e,a,u))}}function vc(e,t,a,u,f,h){switch(a){case"style":Ch(e,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(a=u.__html,a!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof u=="string"?ri(e,u):(typeof u=="number"||typeof u=="bigint")&&ri(e,""+u);break;case"onScroll":u!=null&&xe("scroll",e);break;case"onScrollEnd":u!=null&&xe("scrollend",e);break;case"onClick":u!=null&&(e.onclick=Cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Sh.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(f=a.endsWith("Capture"),t=a.slice(2,f?a.length-7:void 0),h=e[Ot]||null,h=h!=null?h[a]:null,typeof h=="function"&&e.removeEventListener(t,h,f),typeof u=="function")){typeof h!="function"&&h!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,u,f);break e}a in e?e[a]=u:u===!0?e.setAttribute(a,""):Nr(e,a,u)}}}function bt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var u=!1,f=!1,h;for(h in a)if(a.hasOwnProperty(h)){var b=a[h];if(b!=null)switch(h){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:qe(e,t,h,b,a,null)}}f&&qe(e,t,"srcSet",a.srcSet,a,null),u&&qe(e,t,"src",a.src,a,null);return;case"input":xe("invalid",e);var k=h=b=f=null,T=null,R=null;for(u in a)if(a.hasOwnProperty(u)){var Y=a[u];if(Y!=null)switch(u){case"name":f=Y;break;case"type":b=Y;break;case"checked":T=Y;break;case"defaultChecked":R=Y;break;case"value":h=Y;break;case"defaultValue":k=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,t));break;default:qe(e,t,u,Y,a,null)}}xh(e,h,k,T,R,b,f,!1);return;case"select":xe("invalid",e),u=b=h=null;for(f in a)if(a.hasOwnProperty(f)&&(k=a[f],k!=null))switch(f){case"value":h=k;break;case"defaultValue":b=k;break;case"multiple":u=k;default:qe(e,t,f,k,a,null)}t=h,a=b,e.multiple=!!u,t!=null?ai(e,!!u,t,!1):a!=null&&ai(e,!!u,a,!0);return;case"textarea":xe("invalid",e),h=f=u=null;for(b in a)if(a.hasOwnProperty(b)&&(k=a[b],k!=null))switch(b){case"value":u=k;break;case"defaultValue":f=k;break;case"children":h=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:qe(e,t,b,k,a,null)}Th(e,u,f,h);return;case"option":for(T in a)if(a.hasOwnProperty(T)&&(u=a[T],u!=null))switch(T){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:qe(e,t,T,u,a,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(u=0;u<Ia.length;u++)xe(Ia[u],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(R in a)if(a.hasOwnProperty(R)&&(u=a[R],u!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:qe(e,t,R,u,a,null)}return;default:if(Ms(t)){for(Y in a)a.hasOwnProperty(Y)&&(u=a[Y],u!==void 0&&vc(e,t,Y,u,a,void 0));return}}for(k in a)a.hasOwnProperty(k)&&(u=a[k],u!=null&&qe(e,t,k,u,a,null))}function Xb(e,t,a,u){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,b=null,k=null,T=null,R=null,Y=null;for(H in a){var Q=a[H];if(a.hasOwnProperty(H)&&Q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":T=Q;default:u.hasOwnProperty(H)||qe(e,t,H,null,u,Q)}}for(var U in u){var H=u[U];if(Q=a[U],u.hasOwnProperty(U)&&(H!=null||Q!=null))switch(U){case"type":h=H;break;case"name":f=H;break;case"checked":R=H;break;case"defaultChecked":Y=H;break;case"value":b=H;break;case"defaultValue":k=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:H!==Q&&qe(e,t,U,H,u,Q)}}zs(e,b,k,T,R,Y,h,f);return;case"select":H=b=k=U=null;for(h in a)if(T=a[h],a.hasOwnProperty(h)&&T!=null)switch(h){case"value":break;case"multiple":H=T;default:u.hasOwnProperty(h)||qe(e,t,h,null,u,T)}for(f in u)if(h=u[f],T=a[f],u.hasOwnProperty(f)&&(h!=null||T!=null))switch(f){case"value":U=h;break;case"defaultValue":k=h;break;case"multiple":b=h;default:h!==T&&qe(e,t,f,h,u,T)}t=k,a=b,u=H,U!=null?ai(e,!!a,U,!1):!!u!=!!a&&(t!=null?ai(e,!!a,t,!0):ai(e,!!a,a?[]:"",!1));return;case"textarea":H=U=null;for(k in a)if(f=a[k],a.hasOwnProperty(k)&&f!=null&&!u.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:qe(e,t,k,null,u,f)}for(b in u)if(f=u[b],h=a[b],u.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":U=f;break;case"defaultValue":H=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==h&&qe(e,t,b,f,u,h)}Ah(e,U,H);return;case"option":for(var ue in a)if(U=a[ue],a.hasOwnProperty(ue)&&U!=null&&!u.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:qe(e,t,ue,null,u,U)}for(T in u)if(U=u[T],H=a[T],u.hasOwnProperty(T)&&U!==H&&(U!=null||H!=null))switch(T){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:qe(e,t,T,U,u,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 a)U=a[de],a.hasOwnProperty(de)&&U!=null&&!u.hasOwnProperty(de)&&qe(e,t,de,null,u,U);for(R in u)if(U=u[R],H=a[R],u.hasOwnProperty(R)&&U!==H&&(U!=null||H!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:qe(e,t,R,U,u,H)}return;default:if(Ms(t)){for(var He in a)U=a[He],a.hasOwnProperty(He)&&U!==void 0&&!u.hasOwnProperty(He)&&vc(e,t,He,void 0,u,U);for(Y in u)U=u[Y],H=a[Y],!u.hasOwnProperty(Y)||U===H||U===void 0&&H===void 0||vc(e,t,Y,U,u,H);return}}for(var z in a)U=a[z],a.hasOwnProperty(z)&&U!=null&&!u.hasOwnProperty(z)&&qe(e,t,z,null,u,U);for(Q in u)U=u[Q],H=a[Q],!u.hasOwnProperty(Q)||U===H||U==null&&H==null||qe(e,t,Q,U,u,H)}function Om(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $b(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),u=0;u<a.length;u++){var f=a[u],h=f.transferSize,b=f.initiatorType,k=f.duration;if(h&&k&&Om(b)){for(b=0,k=f.responseEnd,u+=1;u<a.length;u++){var T=a[u],R=T.startTime;if(R>k)break;var Y=T.transferSize,Q=T.initiatorType;Y&&Om(Q)&&(T=T.responseEnd,b+=Y*(T<k?1:(k-R)/(T-R)))}if(--u,t+=8*(h+b)/(f.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 kc=null,wc=null;function Cu(e){return e.nodeType===9?e:e.ownerDocument}function Nm(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 zm(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 Ec(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 xc=null;function Fb(){var e=window.event;return e&&e.type==="popstate"?e===xc?!1:(xc=e,!0):(xc=null,!1)}var Dm=typeof setTimeout=="function"?setTimeout:void 0,Zb=typeof clearTimeout=="function"?clearTimeout:void 0,Mm=typeof Promise=="function"?Promise:void 0,Jb=typeof queueMicrotask=="function"?queueMicrotask:typeof Mm<"u"?function(e){return Mm.resolve(null).then(e).catch(Pb)}:Dm;function Pb(e){setTimeout(function(){throw e})}function pl(e){return e==="head"}function Lm(e,t){var a=t,u=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"||a==="/&"){if(u===0){e.removeChild(f),ji(t);return}u--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")u++;else if(a==="html")Ka(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ka(a);for(var h=a.firstChild;h;){var b=h.nextSibling,k=h.nodeName;h[oa]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&h.rel.toLowerCase()==="stylesheet"||a.removeChild(h),h=b}}else a==="body"&&Ka(e.ownerDocument.body);a=f}while(a);ji(t)}function Rm(e,t){var a=e;e=0;do{var u=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),u&&u.nodeType===8)if(a=u.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=u}while(a)}function Ac(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ac(a),Os(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Wb(e,t,a,u){for(;e.nodeType===1;){var f=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[oa])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!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=ln(e.nextSibling),e===null)break}return null}function eS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ln(e.nextSibling),e===null))return null;return e}function Bm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ln(e.nextSibling),e===null))return null;return e}function Tc(e){return e.data==="$?"||e.data==="$~"}function _c(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tS(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var u=function(){t(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function ln(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 Cc=null;function jm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return ln(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Um(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function qm(e,t,a){switch(t=Cu(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ka(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Os(e)}var an=new Map,Hm=new Set;function Ou(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Gn=F.d;F.d={f:nS,r:lS,D:iS,C:aS,L:rS,m:uS,X:oS,S:sS,M:cS};function nS(){var e=Gn.f(),t=vu();return e||t}function lS(e){var t=ni(e);t!==null&&t.tag===5&&t.type==="form"?lp(t):Gn.r(e)}var Li=typeof document>"u"?null:document;function Ym(e,t,a){var u=Li;if(u&&typeof t=="string"&&t){var f=Zt(t);f='link[rel="'+e+'"][href="'+f+'"]',typeof a=="string"&&(f+='[crossorigin="'+a+'"]'),Hm.has(f)||(Hm.add(f),e={rel:e,crossOrigin:a,href:t},u.querySelector(f)===null&&(t=u.createElement("link"),bt(t,"link",e),ht(t),u.head.appendChild(t)))}}function iS(e){Gn.D(e),Ym("dns-prefetch",e,null)}function aS(e,t){Gn.C(e,t),Ym("preconnect",e,t)}function rS(e,t,a){Gn.L(e,t,a);var u=Li;if(u&&e&&t){var f='link[rel="preload"][as="'+Zt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(f+='[imagesrcset="'+Zt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(f+='[imagesizes="'+Zt(a.imageSizes)+'"]')):f+='[href="'+Zt(e)+'"]';var h=f;switch(t){case"style":h=Ri(e);break;case"script":h=Bi(e)}an.has(h)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),an.set(h,e),u.querySelector(f)!==null||t==="style"&&u.querySelector(Qa(h))||t==="script"&&u.querySelector(Xa(h))||(t=u.createElement("link"),bt(t,"link",e),ht(t),u.head.appendChild(t)))}}function uS(e,t){Gn.m(e,t);var a=Li;if(a&&e){var u=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+Zt(u)+'"][href="'+Zt(e)+'"]',h=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Bi(e)}if(!an.has(h)&&(e=g({rel:"modulepreload",href:e},t),an.set(h,e),a.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Xa(h)))return}u=a.createElement("link"),bt(u,"link",e),ht(u),a.head.appendChild(u)}}}function sS(e,t,a){Gn.S(e,t,a);var u=Li;if(u&&e){var f=li(u).hoistableStyles,h=Ri(e);t=t||"default";var b=f.get(h);if(!b){var k={loading:0,preload:null};if(b=u.querySelector(Qa(h)))k.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=an.get(h))&&Oc(e,a);var T=b=u.createElement("link");ht(T),bt(T,"link",e),T._p=new Promise(function(R,Y){T.onload=R,T.onerror=Y}),T.addEventListener("load",function(){k.loading|=1}),T.addEventListener("error",function(){k.loading|=2}),k.loading|=4,Nu(b,t,u)}b={type:"stylesheet",instance:b,count:1,state:k},f.set(h,b)}}}function oS(e,t){Gn.X(e,t);var a=Li;if(a&&e){var u=li(a).hoistableScripts,f=Bi(e),h=u.get(f);h||(h=a.querySelector(Xa(f)),h||(e=g({src:e,async:!0},t),(t=an.get(f))&&Nc(e,t),h=a.createElement("script"),ht(h),bt(h,"link",e),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function cS(e,t){Gn.M(e,t);var a=Li;if(a&&e){var u=li(a).hoistableScripts,f=Bi(e),h=u.get(f);h||(h=a.querySelector(Xa(f)),h||(e=g({src:e,async:!0,type:"module"},t),(t=an.get(f))&&Nc(e,t),h=a.createElement("script"),ht(h),bt(h,"link",e),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function Vm(e,t,a,u){var f=(f=ce.current)?Ou(f):null;if(!f)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ri(a.href),a=li(f).hoistableStyles,u=a.get(t),u||(u={type:"style",instance:null,count:0,state:null},a.set(t,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ri(a.href);var h=li(f).hoistableStyles,b=h.get(e);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=f.querySelector(Qa(e)))&&!h._p&&(b.instance=h,b.state.loading=5),an.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},an.set(e,a),h||fS(f,e,a,b.state))),t&&u===null)throw Error(r(528,""));return b}if(t&&u!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Bi(a),a=li(f).hoistableScripts,u=a.get(t),u||(u={type:"script",instance:null,count:0,state:null},a.set(t,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ri(e){return'href="'+Zt(e)+'"'}function Qa(e){return'link[rel="stylesheet"]['+e+"]"}function Im(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function fS(e,t,a,u){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?u.loading=1:(t=e.createElement("link"),u.preload=t,t.addEventListener("load",function(){return u.loading|=1}),t.addEventListener("error",function(){return u.loading|=2}),bt(t,"link",a),ht(t),e.head.appendChild(t))}function Bi(e){return'[src="'+Zt(e)+'"]'}function Xa(e){return"script[async]"+e}function Gm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var u=e.querySelector('style[data-href~="'+Zt(a.href)+'"]');if(u)return t.instance=u,ht(u),u;var f=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),ht(u),bt(u,"style",f),Nu(u,a.precedence,e),t.instance=u;case"stylesheet":f=Ri(a.href);var h=e.querySelector(Qa(f));if(h)return t.state.loading|=4,t.instance=h,ht(h),h;u=Im(a),(f=an.get(f))&&Oc(u,f),h=(e.ownerDocument||e).createElement("link"),ht(h);var b=h;return b._p=new Promise(function(k,T){b.onload=k,b.onerror=T}),bt(h,"link",u),t.state.loading|=4,Nu(h,a.precedence,e),t.instance=h;case"script":return h=Bi(a.src),(f=e.querySelector(Xa(h)))?(t.instance=f,ht(f),f):(u=a,(f=an.get(h))&&(u=g({},a),Nc(u,f)),e=e.ownerDocument||e,f=e.createElement("script"),ht(f),bt(f,"link",u),e.head.appendChild(f),t.instance=f);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(u=t.instance,t.state.loading|=4,Nu(u,a.precedence,e));return t.instance}function Nu(e,t,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,h=f,b=0;b<u.length;b++){var k=u[b];if(k.dataset.precedence===t)h=k;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var zu=null;function Km(e,t,a){if(zu===null){var u=new Map,f=zu=new Map;f.set(a,u)}else f=zu,u=f.get(a),u||(u=new Map,f.set(a,u));if(u.has(e))return u;for(u.set(e,null),a=a.getElementsByTagName(e),f=0;f<a.length;f++){var h=a[f];if(!(h[oa]||h[pt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(t)||"";b=e+b;var k=u.get(b);k?k.push(h):u.set(b,[h])}}return u}function Qm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function hS(e,t,a){if(a===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 Xm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function dS(e,t,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=Ri(u.href),h=t.querySelector(Qa(f));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Du.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=h,ht(h);return}h=t.ownerDocument||t,u=Im(u),(f=an.get(f))&&Oc(u,f),h=h.createElement("link"),ht(h);var b=h;b._p=new Promise(function(k,T){b.onload=k,b.onerror=T}),bt(h,"link",u),a.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Du.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var zc=0;function pS(e,t){return e.stylesheets&&e.count===0&&Lu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var u=setTimeout(function(){if(e.stylesheets&&Lu(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&zc===0&&(zc=62500*$b());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Lu(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>zc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Du(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Lu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mu=null;function Lu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mu=new Map,t.forEach(mS,e),Mu=null,Du.call(e))}function mS(e,t){if(!(t.state.loading&4)){var a=Mu.get(e);if(a)var u=a.get(null);else{a=new Map,Mu.set(e,a);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var b=f[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),u=b)}u&&a.set(null,u)}f=t.instance,b=f.getAttribute("data-precedence"),h=a.get(b)||u,h===u&&a.set(null,f),a.set(b,f),this.count++,u=Du.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),t.state.loading|=4}}var $a={$$typeof:j,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function gS(e,t,a,u,f,h,b,k,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=As(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=As(0),this.hiddenUpdates=As(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function $m(e,t,a,u,f,h,b,k,T,R,Y,Q){return e=new gS(e,t,a,b,T,R,Y,Q,k),t=1,h===!0&&(t|=24),h=Ht(3,null,null,t),e.current=h,h.stateNode=e,t=oo(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:u,isDehydrated:a,cache:t},po(h),e}function Fm(e){return e?(e=di,e):di}function Zm(e,t,a,u,f,h){f=Fm(f),u.context===null?u.context=f:u.pendingContext=f,u=ll(t),u.payload={element:a},h=h===void 0?null:h,h!==null&&(u.callback=h),a=il(e,u,t),a!==null&&(Rt(a,e,t),Ta(a,e,t))}function Jm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Dc(e,t){Jm(e,t),(e=e.alternate)&&Jm(e,t)}function Pm(e){if(e.tag===13||e.tag===31){var t=Ol(e,67108864);t!==null&&Rt(t,e,67108864),Dc(e,67108864)}}function Wm(e){if(e.tag===13||e.tag===31){var t=Kt();t=Ts(t);var a=Ol(e,t);a!==null&&Rt(a,e,t),Dc(e,t)}}var Ru=!0;function yS(e,t,a,u){var f=M.T;M.T=null;var h=F.p;try{F.p=2,Mc(e,t,a,u)}finally{F.p=h,M.T=f}}function bS(e,t,a,u){var f=M.T;M.T=null;var h=F.p;try{F.p=8,Mc(e,t,a,u)}finally{F.p=h,M.T=f}}function Mc(e,t,a,u){if(Ru){var f=Lc(u);if(f===null)Sc(e,t,u,Bu,a),tg(e,u);else if(vS(f,e,t,a,u))u.stopPropagation();else if(tg(e,u),t&4&&-1<SS.indexOf(e)){for(;f!==null;){var h=ni(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=xl(h.pendingLanes);if(b!==0){var k=h;for(k.pendingLanes|=2,k.entangledLanes|=2;b;){var T=1<<31-Ye(b);k.entanglements[1]|=T,b&=~T}vn(h),(Me&6)===0&&(bu=wt()+500,Va(0))}}break;case 31:case 13:k=Ol(h,2),k!==null&&Rt(k,h,2),vu(),Dc(h,2)}if(h=Lc(u),h===null&&Sc(e,t,u,Bu,a),h===f)break;f=h}f!==null&&u.stopPropagation()}else Sc(e,t,u,null,a)}}function Lc(e){return e=Rs(e),Rc(e)}var Bu=null;function Rc(e){if(Bu=null,e=ti(e),e!==null){var t=o(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=c(t),e!==null)return e;e=null}else if(a===31){if(e=d(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Bu=e,null}function eg(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(xs()){case I:return 2;case ne:return 8;case me:case we:return 32;case Le:return 268435456;default:return 32}default:return 32}}var Bc=!1,ml=null,gl=null,yl=null,Fa=new Map,Za=new Map,bl=[],SS="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 tg(e,t){switch(e){case"focusin":case"focusout":ml=null;break;case"dragenter":case"dragleave":gl=null;break;case"mouseover":case"mouseout":yl=null;break;case"pointerover":case"pointerout":Fa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Za.delete(t.pointerId)}}function Ja(e,t,a,u,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:a,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]},t!==null&&(t=ni(t),t!==null&&Pm(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),e)}function vS(e,t,a,u,f){switch(t){case"focusin":return ml=Ja(ml,e,t,a,u,f),!0;case"dragenter":return gl=Ja(gl,e,t,a,u,f),!0;case"mouseover":return yl=Ja(yl,e,t,a,u,f),!0;case"pointerover":var h=f.pointerId;return Fa.set(h,Ja(Fa.get(h)||null,e,t,a,u,f)),!0;case"gotpointercapture":return h=f.pointerId,Za.set(h,Ja(Za.get(h)||null,e,t,a,u,f)),!0}return!1}function ng(e){var t=ti(e.target);if(t!==null){var a=o(t);if(a!==null){if(t=a.tag,t===13){if(t=c(a),t!==null){e.blockedOn=t,gh(e.priority,function(){Wm(a)});return}}else if(t===31){if(t=d(a),t!==null){e.blockedOn=t,gh(e.priority,function(){Wm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ju(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Lc(e.nativeEvent);if(a===null){a=e.nativeEvent;var u=new a.constructor(a.type,a);Ls=u,a.target.dispatchEvent(u),Ls=null}else return t=ni(a),t!==null&&Pm(t),e.blockedOn=a,!1;t.shift()}return!0}function lg(e,t,a){ju(e)&&a.delete(t)}function kS(){Bc=!1,ml!==null&&ju(ml)&&(ml=null),gl!==null&&ju(gl)&&(gl=null),yl!==null&&ju(yl)&&(yl=null),Fa.forEach(lg),Za.forEach(lg)}function Uu(e,t){e.blockedOn===t&&(e.blockedOn=null,Bc||(Bc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,kS)))}var qu=null;function ig(e){qu!==e&&(qu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){qu===e&&(qu=null);for(var t=0;t<e.length;t+=3){var a=e[t],u=e[t+1],f=e[t+2];if(typeof u!="function"){if(Rc(u||a)===null)continue;break}var h=ni(a);h!==null&&(e.splice(t,3),t-=3,Lo(h,{pending:!0,data:f,method:a.method,action:u},u,f))}}))}function ji(e){function t(T){return Uu(T,e)}ml!==null&&Uu(ml,e),gl!==null&&Uu(gl,e),yl!==null&&Uu(yl,e),Fa.forEach(t),Za.forEach(t);for(var a=0;a<bl.length;a++){var u=bl[a];u.blockedOn===e&&(u.blockedOn=null)}for(;0<bl.length&&(a=bl[0],a.blockedOn===null);)ng(a),a.blockedOn===null&&bl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var f=a[u],h=a[u+1],b=f[Ot]||null;if(typeof h=="function")b||ig(a);else if(b){var k=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[Ot]||null)k=b.formAction;else if(Rc(f)!==null)continue}else k=b.action;typeof k=="function"?a[u+1]=k:(a.splice(u,3),u-=3),ig(a)}}}function ag(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function t(){f!==null&&(f(),f=null),u||setTimeout(a,20)}function a(){if(!u&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function jc(e){this._internalRoot=e}Hu.prototype.render=jc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,u=Kt();Zm(a,u,e,t,null,null)},Hu.prototype.unmount=jc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zm(e.current,2,null,e,null,null),vu(),t[ei]=null}};function Hu(e){this._internalRoot=e}Hu.prototype.unstable_scheduleHydration=function(e){if(e){var t=mh();e={blockedOn:null,target:e,priority:t};for(var a=0;a<bl.length&&t!==0&&t<bl[a].priority;a++);bl.splice(a,0,e),a===0&&ng(e)}};var rg=l.version;if(rg!=="19.2.4")throw Error(r(527,rg,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var wS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yu.isDisabled&&Yu.supportsFiber)try{Et=Yu.inject(wS),ot=Yu}catch{}}return Wa.createRoot=function(e,t){if(!s(e))throw Error(r(299));var a=!1,u="",f=dp,h=pp,b=mp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=$m(e,1,!1,null,null,a,u,null,f,h,b,ag),e[ei]=t.current,bc(e),new jc(t)},Wa.hydrateRoot=function(e,t,a){if(!s(e))throw Error(r(299));var u=!1,f="",h=dp,b=pp,k=mp,T=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(k=a.onRecoverableError),a.formState!==void 0&&(T=a.formState)),t=$m(e,1,!0,t,a??null,u,f,T,h,b,k,ag),t.context=Fm(null),a=t.current,u=Kt(),u=Ts(u),f=ll(u),f.callback=null,il(a,f,u),a=u,t.current.lanes=a,sa(t,a),vn(t),e[ei]=t.current,bc(e),new Hu(t)},Wa.version="19.2.4",Wa}var gg;function DS(){if(gg)return Hc.exports;gg=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(l){console.error(l)}}return n(),Hc.exports=zS(),Hc.exports}var MS=DS();function LS(n,l){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const RS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,BS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jS={};function yg(n,l){return(jS.jsx?BS:RS).test(n)}const US=/[ \t\n\f\r]/g;function qS(n){return typeof n=="object"?n.type==="text"?bg(n.value):!1:bg(n)}function bg(n){return n.replace(US,"")===""}let gr=class{constructor(l,i,r){this.normal=i,this.property=l,r&&(this.space=r)}};gr.prototype.normal={};gr.prototype.property={};gr.prototype.space=void 0;function ky(n,l){const i={},r={};for(const s of n)Object.assign(i,s.property),Object.assign(r,s.normal);return new gr(i,r,l)}function pf(n){return n.toLowerCase()}class jt{constructor(l,i){this.attribute=i,this.property=l}}jt.prototype.attribute="";jt.prototype.booleanish=!1;jt.prototype.boolean=!1;jt.prototype.commaOrSpaceSeparated=!1;jt.prototype.commaSeparated=!1;jt.prototype.defined=!1;jt.prototype.mustUseProperty=!1;jt.prototype.number=!1;jt.prototype.overloadedBoolean=!1;jt.prototype.property="";jt.prototype.spaceSeparated=!1;jt.prototype.space=void 0;let HS=0;const ke=$l(),st=$l(),mf=$l(),ee=$l(),Ge=$l(),Xi=$l(),Qt=$l();function $l(){return 2**++HS}const gf=Object.freeze(Object.defineProperty({__proto__:null,boolean:ke,booleanish:st,commaOrSpaceSeparated:Qt,commaSeparated:Xi,number:ee,overloadedBoolean:mf,spaceSeparated:Ge},Symbol.toStringTag,{value:"Module"})),Gc=Object.keys(gf);class Df extends jt{constructor(l,i,r,s){let o=-1;if(super(l,i),Sg(this,"space",s),typeof r=="number")for(;++o<Gc.length;){const c=Gc[o];Sg(this,Gc[o],(r&gf[c])===gf[c])}}}Df.prototype.defined=!0;function Sg(n,l,i){i&&(n[l]=i)}function Wi(n){const l={},i={};for(const[r,s]of Object.entries(n.properties)){const o=new Df(r,n.transform(n.attributes||{},r),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),l[r]=o,i[pf(r)]=r,i[pf(o.attribute)]=r}return new gr(l,i,n.space)}const wy=Wi({properties:{ariaActiveDescendant:null,ariaAtomic:st,ariaAutoComplete:null,ariaBusy:st,ariaChecked:st,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:Ge,ariaCurrent:null,ariaDescribedBy:Ge,ariaDetails:null,ariaDisabled:st,ariaDropEffect:Ge,ariaErrorMessage:null,ariaExpanded:st,ariaFlowTo:Ge,ariaGrabbed:st,ariaHasPopup:null,ariaHidden:st,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ge,ariaLevel:ee,ariaLive:null,ariaModal:st,ariaMultiLine:st,ariaMultiSelectable:st,ariaOrientation:null,ariaOwns:Ge,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:st,ariaReadOnly:st,ariaRelevant:null,ariaRequired:st,ariaRoleDescription:Ge,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:st,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(n,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function Ey(n,l){return l in n?n[l]:l}function xy(n,l){return Ey(n,l.toLowerCase())}const YS=Wi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xi,acceptCharset:Ge,accessKey:Ge,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:Ge,autoFocus:ke,autoPlay:ke,blocking:Ge,capture:null,charSet:null,checked:ke,cite:null,className:Ge,cols:ee,colSpan:null,content:null,contentEditable:st,controls:ke,controlsList:Ge,coords:ee|Xi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:mf,draggable:st,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:Ge,height:ee,hidden:mf,high:ee,href:null,hrefLang:null,htmlFor:Ge,httpEquiv:Ge,id:null,imageSizes:null,imageSrcSet:null,inert:ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:Ge,itemRef:Ge,itemScope:ke,itemType:Ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ke,optimum:ee,pattern:null,ping:Ge,placeholder:null,playsInline:ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:Ge,required:ke,reversed:ke,rows:ee,rowSpan:ee,sandbox:Ge,scope:null,scoped:ke,seamless:ke,selected:ke,shadowRootClonable:ke,shadowRootDelegatesFocus:ke,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:st,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:st,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ge,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:st,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:xy}),VS=Wi({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:Qt,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:Ge,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,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:Xi,g2:Xi,glyphName:Xi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:Qt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,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:ee,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:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qt,rev:Qt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qt,requiredFeatures:Qt,requiredFonts:Qt,requiredFormats:Qt,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:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:Qt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qt,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ey}),Ay=Wi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,l){return"xlink:"+l.slice(5).toLowerCase()}}),Ty=Wi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xy}),_y=Wi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,l){return"xml:"+l.slice(3).toLowerCase()}}),IS={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"},GS=/[A-Z]/g,vg=/-[a-z]/g,KS=/^data[-\w.:]+$/i;function QS(n,l){const i=pf(l);let r=l,s=jt;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&KS.test(l)){if(l.charAt(4)==="-"){const o=l.slice(5).replace(vg,$S);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=l.slice(4);if(!vg.test(o)){let c=o.replace(GS,XS);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}s=Df}return new s(r,l)}function XS(n){return"-"+n.toLowerCase()}function $S(n){return n.charAt(1).toUpperCase()}const FS=ky([wy,YS,Ay,Ty,_y],"html"),Mf=ky([wy,VS,Ay,Ty,_y],"svg");function ZS(n){return n.join(" ").trim()}var Ui={},Kc,kg;function JS(){if(kg)return Kc;kg=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,i=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
50
+ `,p="/",y="*",g="",v="comment",S="declaration";function E(C,_){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];_=_||{};var q=1,j=1;function $(W){var J=W.match(l);J&&(q+=J.length);var M=W.lastIndexOf(m);j=~M?W.length-M:j+W.length}function P(){var W={line:q,column:j};return function(J){return J.position=new D(W),ae(),J}}function D(W){this.start=W,this.end={line:q,column:j},this.source=_.source}D.prototype.content=C;function K(W){var J=new Error(_.source+":"+q+":"+j+": "+W);if(J.reason=W,J.filename=_.source,J.line=q,J.column=j,J.source=C,!_.silent)throw J}function Z(W){var J=W.exec(C);if(J){var M=J[0];return $(M),C=C.slice(M.length),J}}function ae(){Z(i)}function B(W){var J;for(W=W||[];J=te();)J!==!1&&W.push(J);return W}function te(){var W=P();if(!(p!=C.charAt(0)||y!=C.charAt(1))){for(var J=2;g!=C.charAt(J)&&(y!=C.charAt(J)||p!=C.charAt(J+1));)++J;if(J+=2,g===C.charAt(J-1))return K("End of comment missing");var M=C.slice(2,J-2);return j+=2,$(M),C=C.slice(J),j+=2,W({type:v,comment:M})}}function X(){var W=P(),J=Z(r);if(J){if(te(),!Z(s))return K("property missing ':'");var M=Z(o),F=W({type:S,property:x(J[0].replace(n,g)),value:M?x(M[0].replace(n,g)):g});return Z(c),F}}function re(){var W=[];B(W);for(var J;J=X();)J!==!1&&(W.push(J),B(W));return W}return ae(),re()}function x(C){return C?C.replace(d,g):g}return Kc=E,Kc}var wg;function PS(){if(wg)return Ui;wg=1;var n=Ui&&Ui.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=i;const l=n(JS());function i(r,s){let o=null;if(!r||typeof r!="string")return o;const c=(0,l.default)(r),d=typeof s=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:y}=m;d?s(p,y,m):y&&(o=o||{},o[p]=y)}),o}return Ui}var er={},Eg;function WS(){if(Eg)return er;Eg=1,Object.defineProperty(er,"__esModule",{value:!0}),er.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,i=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(p){return!p||i.test(p)||n.test(p)},c=function(p,y){return y.toUpperCase()},d=function(p,y){return"".concat(y,"-")},m=function(p,y){return y===void 0&&(y={}),o(p)?p:(p=p.toLowerCase(),y.reactCompat?p=p.replace(s,d):p=p.replace(r,d),p.replace(l,c))};return er.camelCase=m,er}var tr,xg;function ev(){if(xg)return tr;xg=1;var n=tr&&tr.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},l=n(PS()),i=WS();function r(s,o){var c={};return!s||typeof s!="string"||(0,l.default)(s,function(d,m){d&&m&&(c[(0,i.camelCase)(d,o)]=m)}),c}return r.default=r,tr=r,tr}var tv=ev();const nv=vy(tv),Cy=Oy("end"),Lf=Oy("start");function Oy(n){return l;function l(i){const r=i&&i.position&&i.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function lv(n){const l=Lf(n),i=Cy(n);if(l&&i)return{start:l,end:i}}function ur(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Ag(n.position):"start"in n||"end"in n?Ag(n):"line"in n||"column"in n?yf(n):""}function yf(n){return Tg(n&&n.line)+":"+Tg(n&&n.column)}function Ag(n){return yf(n&&n.start)+"-"+yf(n&&n.end)}function Tg(n){return n&&typeof n=="number"?n:1}class kt extends Error{constructor(l,i,r){super(),typeof i=="string"&&(r=i,i=void 0);let s="",o={},c=!1;if(i&&("line"in i&&"column"in i?o={place:i}:"start"in i&&"end"in i?o={place:i}:"type"in i?o={ancestors:[i],place:i.position}:o={...i}),typeof l=="string"?s=l:!o.cause&&l&&(c=!0,s=l.message,o.cause=l),!o.ruleId&&!o.source&&typeof r=="string"){const m=r.indexOf(":");m===-1?o.ruleId=r:(o.source=r.slice(0,m),o.ruleId=r.slice(m+1))}if(!o.place&&o.ancestors&&o.ancestors){const m=o.ancestors[o.ancestors.length-1];m&&(o.place=m.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=ur(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}kt.prototype.file="";kt.prototype.name="";kt.prototype.reason="";kt.prototype.message="";kt.prototype.stack="";kt.prototype.column=void 0;kt.prototype.line=void 0;kt.prototype.ancestors=void 0;kt.prototype.cause=void 0;kt.prototype.fatal=void 0;kt.prototype.place=void 0;kt.prototype.ruleId=void 0;kt.prototype.source=void 0;const Rf={}.hasOwnProperty,iv=new Map,av=/[A-Z]/g,rv=new Set(["table","tbody","thead","tfoot","tr"]),uv=new Set(["td","th"]),Ny="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function sv(n,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=l.filePath||void 0;let r;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=gv(i,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=mv(i,l.jsx,l.jsxs)}const s={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:r,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Mf:FS,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},o=zy(s,n,void 0);return o&&typeof o!="string"?o:s.create(n,s.Fragment,{children:o||void 0},void 0)}function zy(n,l,i){if(l.type==="element")return ov(n,l,i);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return cv(n,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return hv(n,l,i);if(l.type==="mdxjsEsm")return fv(n,l);if(l.type==="root")return dv(n,l,i);if(l.type==="text")return pv(n,l)}function ov(n,l,i){const r=n.schema;let s=r;l.tagName.toLowerCase()==="svg"&&r.space==="html"&&(s=Mf,n.schema=s),n.ancestors.push(l);const o=My(n,l.tagName,!1),c=yv(n,l);let d=jf(n,l);return rv.has(l.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!qS(m):!0})),Dy(n,c,o,l),Bf(c,d),n.ancestors.pop(),n.schema=r,n.create(l,o,c,i)}function cv(n,l){if(l.data&&l.data.estree&&n.evaluater){const r=l.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}hr(n,l.position)}function fv(n,l){if(l.data&&l.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(l.data.estree);hr(n,l.position)}function hv(n,l,i){const r=n.schema;let s=r;l.name==="svg"&&r.space==="html"&&(s=Mf,n.schema=s),n.ancestors.push(l);const o=l.name===null?n.Fragment:My(n,l.name,!0),c=bv(n,l),d=jf(n,l);return Dy(n,c,o,l),Bf(c,d),n.ancestors.pop(),n.schema=r,n.create(l,o,c,i)}function dv(n,l,i){const r={};return Bf(r,jf(n,l)),n.create(l,n.Fragment,r,i)}function pv(n,l){return l.value}function Dy(n,l,i,r){typeof i!="string"&&i!==n.Fragment&&n.passNode&&(l.node=r)}function Bf(n,l){if(l.length>0){const i=l.length>1?l:l[0];i&&(n.children=i)}}function mv(n,l,i){return r;function r(s,o,c,d){const p=Array.isArray(c.children)?i:l;return d?p(o,c,d):p(o,c)}}function gv(n,l){return i;function i(r,s,o,c){const d=Array.isArray(o.children),m=Lf(r);return l(s,o,c,d,{columnNumber:m?m.column-1:void 0,fileName:n,lineNumber:m?m.line:void 0},void 0)}}function yv(n,l){const i={};let r,s;for(s in l.properties)if(s!=="children"&&Rf.call(l.properties,s)){const o=Sv(n,s,l.properties[s]);if(o){const[c,d]=o;n.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&uv.has(l.tagName)?r=d:i[c]=d}}if(r){const o=i.style||(i.style={});o[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return i}function bv(n,l){const i={};for(const r of l.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const o=r.data.estree.body[0];o.type;const c=o.expression;c.type;const d=c.properties[0];d.type,Object.assign(i,n.evaluater.evaluateExpression(d.argument))}else hr(n,l.position);else{const s=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const d=r.value.data.estree.body[0];d.type,o=n.evaluater.evaluateExpression(d.expression)}else hr(n,l.position);else o=r.value===null?!0:r.value;i[s]=o}return i}function jf(n,l){const i=[];let r=-1;const s=n.passKeys?new Map:iv;for(;++r<l.children.length;){const o=l.children[r];let c;if(n.passKeys){const m=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(m){const p=s.get(m)||0;c=m+"-"+p,s.set(m,p+1)}}const d=zy(n,o,c);d!==void 0&&i.push(d)}return i}function Sv(n,l,i){const r=QS(n.schema,l);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=r.commaSeparated?LS(i):ZS(i)),r.property==="style"){let s=typeof i=="object"?i:vv(n,String(i));return n.stylePropertyNameCase==="css"&&(s=kv(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&r.space?IS[r.property]||r.property:r.attribute,i]}}function vv(n,l){try{return nv(l,{reactCompat:!0})}catch(i){if(n.ignoreInvalidStyle)return{};const r=i,s=new kt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=Ny+"#cannot-parse-style-attribute",s}}function My(n,l,i){let r;if(!i)r={type:"Literal",value:l};else if(l.includes(".")){const s=l.split(".");let o=-1,c;for(;++o<s.length;){const d=yg(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(o&&d.type==="Literal"),optional:!1}:d}r=c}else r=yg(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(r.type==="Literal"){const s=r.value;return Rf.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(r);hr(n)}function hr(n,l){const i=new kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=n.filePath||void 0,i.url=Ny+"#cannot-handle-mdx-estrees-without-createevaluater",i}function kv(n){const l={};let i;for(i in n)Rf.call(n,i)&&(l[wv(i)]=n[i]);return l}function wv(n){let l=n.replace(av,Ev);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function Ev(n){return"-"+n.toLowerCase()}const Qc={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"]},xv={};function Uf(n,l){const i=xv,r=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Ly(n,r,s)}function Ly(n,l,i){if(Av(n)){if("value"in n)return n.type==="html"&&!i?"":n.value;if(l&&"alt"in n&&n.alt)return n.alt;if("children"in n)return _g(n.children,l,i)}return Array.isArray(n)?_g(n,l,i):""}function _g(n,l,i){const r=[];let s=-1;for(;++s<n.length;)r[s]=Ly(n[s],l,i);return r.join("")}function Av(n){return!!(n&&typeof n=="object")}const Cg=document.createElement("i");function qf(n){const l="&"+n+";";Cg.innerHTML=l;const i=Cg.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===l?!1:i}function Xt(n,l,i,r){const s=n.length;let o=0,c;if(l<0?l=-l>s?0:s+l:l=l>s?s:l,i=i>0?i:0,r.length<1e4)c=Array.from(r),c.unshift(l,i),n.splice(...c);else for(i&&n.splice(l,i);o<r.length;)c=r.slice(o,o+1e4),c.unshift(l,0),n.splice(...c),o+=1e4,l+=1e4}function rn(n,l){return n.length>0?(Xt(n,n.length,0,l),n):l}const Og={}.hasOwnProperty;function Ry(n){const l={};let i=-1;for(;++i<n.length;)Tv(l,n[i]);return l}function Tv(n,l){let i;for(i in l){const s=(Og.call(n,i)?n[i]:void 0)||(n[i]={}),o=l[i];let c;if(o)for(c in o){Og.call(s,c)||(s[c]=[]);const d=o[c];_v(s[c],Array.isArray(d)?d:d?[d]:[])}}}function _v(n,l){let i=-1;const r=[];for(;++i<l.length;)(l[i].add==="after"?n:r).push(l[i]);Xt(n,0,0,r)}function By(n,l){const i=Number.parseInt(n,l);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 mn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tt=El(/[A-Za-z]/),vt=El(/[\dA-Za-z]/),Cv=El(/[#-'*+\--9=?A-Z^-~]/);function ts(n){return n!==null&&(n<32||n===127)}const bf=El(/\d/),Ov=El(/[\dA-Fa-f]/),Nv=El(/[!-/:-@[-`{-~]/);function he(n){return n!==null&&n<-2}function Ie(n){return n!==null&&(n<0||n===32)}function Ae(n){return n===-2||n===-1||n===32}const us=El(new RegExp("\\p{P}|\\p{S}","u")),Ql=El(/\s/);function El(n){return l;function l(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function ea(n){const l=[];let i=-1,r=0,s=0;for(;++i<n.length;){const o=n.charCodeAt(i);let c="";if(o===37&&vt(n.charCodeAt(i+1))&&vt(n.charCodeAt(i+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const d=n.charCodeAt(i+1);o<56320&&d>56319&&d<57344?(c=String.fromCharCode(o,d),s=1):c="�"}else c=String.fromCharCode(o);c&&(l.push(n.slice(r,i),encodeURIComponent(c)),r=i+s+1,c=""),s&&(i+=s,s=0)}return l.join("")+n.slice(r)}function Ne(n,l,i,r){const s=r?r-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(m){return Ae(m)?(n.enter(i),d(m)):l(m)}function d(m){return Ae(m)&&o++<s?(n.consume(m),d):(n.exit(i),l(m))}}const zv={tokenize:Dv};function Dv(n){const l=n.attempt(this.parser.constructs.contentInitial,r,s);let i;return l;function r(d){if(d===null){n.consume(d);return}return n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),Ne(n,l,"linePrefix")}function s(d){return n.enter("paragraph"),o(d)}function o(d){const m=n.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=m),i=m,c(d)}function c(d){if(d===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(d);return}return he(d)?(n.consume(d),n.exit("chunkText"),o):(n.consume(d),c)}}const Mv={tokenize:Lv},Ng={tokenize:Rv};function Lv(n){const l=this,i=[];let r=0,s,o,c;return d;function d(j){if(r<i.length){const $=i[r];return l.containerState=$[1],n.attempt($[0].continuation,m,p)(j)}return p(j)}function m(j){if(r++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,s&&q();const $=l.events.length;let P=$,D;for(;P--;)if(l.events[P][0]==="exit"&&l.events[P][1].type==="chunkFlow"){D=l.events[P][1].end;break}_(r);let K=$;for(;K<l.events.length;)l.events[K][1].end={...D},K++;return Xt(l.events,P+1,0,l.events.slice($)),l.events.length=K,p(j)}return d(j)}function p(j){if(r===i.length){if(!s)return v(j);if(s.currentConstruct&&s.currentConstruct.concrete)return E(j);l.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return l.containerState={},n.check(Ng,y,g)(j)}function y(j){return s&&q(),_(r),v(j)}function g(j){return l.parser.lazy[l.now().line]=r!==i.length,c=l.now().offset,E(j)}function v(j){return l.containerState={},n.attempt(Ng,S,E)(j)}function S(j){return r++,i.push([l.currentConstruct,l.containerState]),v(j)}function E(j){if(j===null){s&&q(),_(0),n.consume(j);return}return s=s||l.parser.flow(l.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),x(j)}function x(j){if(j===null){C(n.exit("chunkFlow"),!0),_(0),n.consume(j);return}return he(j)?(n.consume(j),C(n.exit("chunkFlow")),r=0,l.interrupt=void 0,d):(n.consume(j),x)}function C(j,$){const P=l.sliceStream(j);if($&&P.push(null),j.previous=o,o&&(o.next=j),o=j,s.defineSkip(j.start),s.write(P),l.parser.lazy[j.start.line]){let D=s.events.length;for(;D--;)if(s.events[D][1].start.offset<c&&(!s.events[D][1].end||s.events[D][1].end.offset>c))return;const K=l.events.length;let Z=K,ae,B;for(;Z--;)if(l.events[Z][0]==="exit"&&l.events[Z][1].type==="chunkFlow"){if(ae){B=l.events[Z][1].end;break}ae=!0}for(_(r),D=K;D<l.events.length;)l.events[D][1].end={...B},D++;Xt(l.events,Z+1,0,l.events.slice(K)),l.events.length=D}}function _(j){let $=i.length;for(;$-- >j;){const P=i[$];l.containerState=P[1],P[0].exit.call(l,n)}i.length=j}function q(){s.write([null]),o=void 0,s=void 0,l.containerState._closeFlow=void 0}}function Rv(n,l,i){return Ne(n,n.attempt(this.parser.constructs.document,l,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Zi(n){if(n===null||Ie(n)||Ql(n))return 1;if(us(n))return 2}function ss(n,l,i){const r=[];let s=-1;for(;++s<n.length;){const o=n[s].resolveAll;o&&!r.includes(o)&&(l=o(l,i),r.push(o))}return l}const Sf={name:"attention",resolveAll:Bv,tokenize:jv};function Bv(n,l){let i=-1,r,s,o,c,d,m,p,y;for(;++i<n.length;)if(n[i][0]==="enter"&&n[i][1].type==="attentionSequence"&&n[i][1]._close){for(r=i;r--;)if(n[r][0]==="exit"&&n[r][1].type==="attentionSequence"&&n[r][1]._open&&l.sliceSerialize(n[r][1]).charCodeAt(0)===l.sliceSerialize(n[i][1]).charCodeAt(0)){if((n[r][1]._close||n[i][1]._open)&&(n[i][1].end.offset-n[i][1].start.offset)%3&&!((n[r][1].end.offset-n[r][1].start.offset+n[i][1].end.offset-n[i][1].start.offset)%3))continue;m=n[r][1].end.offset-n[r][1].start.offset>1&&n[i][1].end.offset-n[i][1].start.offset>1?2:1;const g={...n[r][1].end},v={...n[i][1].start};zg(g,-m),zg(v,m),c={type:m>1?"strongSequence":"emphasisSequence",start:g,end:{...n[r][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...n[i][1].start},end:v},o={type:m>1?"strongText":"emphasisText",start:{...n[r][1].end},end:{...n[i][1].start}},s={type:m>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},n[r][1].end={...c.start},n[i][1].start={...d.end},p=[],n[r][1].end.offset-n[r][1].start.offset&&(p=rn(p,[["enter",n[r][1],l],["exit",n[r][1],l]])),p=rn(p,[["enter",s,l],["enter",c,l],["exit",c,l],["enter",o,l]]),p=rn(p,ss(l.parser.constructs.insideSpan.null,n.slice(r+1,i),l)),p=rn(p,[["exit",o,l],["enter",d,l],["exit",d,l],["exit",s,l]]),n[i][1].end.offset-n[i][1].start.offset?(y=2,p=rn(p,[["enter",n[i][1],l],["exit",n[i][1],l]])):y=0,Xt(n,r-1,i-r+3,p),i=r+p.length-y-2;break}}for(i=-1;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");return n}function jv(n,l){const i=this.parser.constructs.attentionMarkers.null,r=this.previous,s=Zi(r);let o;return c;function c(m){return o=m,n.enter("attentionSequence"),d(m)}function d(m){if(m===o)return n.consume(m),d;const p=n.exit("attentionSequence"),y=Zi(m),g=!y||y===2&&s||i.includes(m),v=!s||s===2&&y||i.includes(r);return p._open=!!(o===42?g:g&&(s||!v)),p._close=!!(o===42?v:v&&(y||!g)),l(m)}}function zg(n,l){n.column+=l,n.offset+=l,n._bufferIndex+=l}const Uv={name:"autolink",tokenize:qv};function qv(n,l,i){let r=0;return s;function s(S){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),o}function o(S){return Tt(S)?(n.consume(S),c):S===64?i(S):p(S)}function c(S){return S===43||S===45||S===46||vt(S)?(r=1,d(S)):p(S)}function d(S){return S===58?(n.consume(S),r=0,m):(S===43||S===45||S===46||vt(S))&&r++<32?(n.consume(S),d):(r=0,p(S))}function m(S){return S===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),l):S===null||S===32||S===60||ts(S)?i(S):(n.consume(S),m)}function p(S){return S===64?(n.consume(S),y):Cv(S)?(n.consume(S),p):i(S)}function y(S){return vt(S)?g(S):i(S)}function g(S){return S===46?(n.consume(S),r=0,y):S===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),l):v(S)}function v(S){if((S===45||vt(S))&&r++<63){const E=S===45?v:g;return n.consume(S),E}return i(S)}}const yr={partial:!0,tokenize:Hv};function Hv(n,l,i){return r;function r(o){return Ae(o)?Ne(n,s,"linePrefix")(o):s(o)}function s(o){return o===null||he(o)?l(o):i(o)}}const jy={continuation:{tokenize:Vv},exit:Iv,name:"blockQuote",tokenize:Yv};function Yv(n,l,i){const r=this;return s;function s(c){if(c===62){const d=r.containerState;return d.open||(n.enter("blockQuote",{_container:!0}),d.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(c),n.exit("blockQuoteMarker"),o}return i(c)}function o(c){return Ae(c)?(n.enter("blockQuotePrefixWhitespace"),n.consume(c),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),l):(n.exit("blockQuotePrefix"),l(c))}}function Vv(n,l,i){const r=this;return s;function s(c){return Ae(c)?Ne(n,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return n.attempt(jy,l,i)(c)}}function Iv(n){n.exit("blockQuote")}const Uy={name:"characterEscape",tokenize:Gv};function Gv(n,l,i){return r;function r(o){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(o),n.exit("escapeMarker"),s}function s(o){return Nv(o)?(n.enter("characterEscapeValue"),n.consume(o),n.exit("characterEscapeValue"),n.exit("characterEscape"),l):i(o)}}const qy={name:"characterReference",tokenize:Kv};function Kv(n,l,i){const r=this;let s=0,o,c;return d;function d(g){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),m}function m(g){return g===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(g),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),o=31,c=vt,y(g))}function p(g){return g===88||g===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(g),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),o=6,c=Ov,y):(n.enter("characterReferenceValue"),o=7,c=bf,y(g))}function y(g){if(g===59&&s){const v=n.exit("characterReferenceValue");return c===vt&&!qf(r.sliceSerialize(v))?i(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),l)}return c(g)&&s++<o?(n.consume(g),y):i(g)}}const Dg={partial:!0,tokenize:Xv},Mg={concrete:!0,name:"codeFenced",tokenize:Qv};function Qv(n,l,i){const r=this,s={partial:!0,tokenize:P};let o=0,c=0,d;return m;function m(D){return p(D)}function p(D){const K=r.events[r.events.length-1];return o=K&&K[1].type==="linePrefix"?K[2].sliceSerialize(K[1],!0).length:0,d=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),y(D)}function y(D){return D===d?(c++,n.consume(D),y):c<3?i(D):(n.exit("codeFencedFenceSequence"),Ae(D)?Ne(n,g,"whitespace")(D):g(D))}function g(D){return D===null||he(D)?(n.exit("codeFencedFence"),r.interrupt?l(D):n.check(Dg,x,$)(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)):Ae(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Ne(n,S,"whitespace")(D)):D===96&&D===d?i(D):(n.consume(D),v)}function S(D){return D===null||he(D)?g(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),E(D))}function E(D){return D===null||he(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(D)):D===96&&D===d?i(D):(n.consume(D),E)}function x(D){return n.attempt(s,$,C)(D)}function C(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),_}function _(D){return o>0&&Ae(D)?Ne(n,q,"linePrefix",o+1)(D):q(D)}function q(D){return D===null||he(D)?n.check(Dg,x,$)(D):(n.enter("codeFlowValue"),j(D))}function j(D){return D===null||he(D)?(n.exit("codeFlowValue"),q(D)):(n.consume(D),j)}function $(D){return n.exit("codeFenced"),l(D)}function P(D,K,Z){let ae=0;return B;function B(J){return D.enter("lineEnding"),D.consume(J),D.exit("lineEnding"),te}function te(J){return D.enter("codeFencedFence"),Ae(J)?Ne(D,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):X(J)}function X(J){return J===d?(D.enter("codeFencedFenceSequence"),re(J)):Z(J)}function re(J){return J===d?(ae++,D.consume(J),re):ae>=c?(D.exit("codeFencedFenceSequence"),Ae(J)?Ne(D,W,"whitespace")(J):W(J)):Z(J)}function W(J){return J===null||he(J)?(D.exit("codeFencedFence"),K(J)):Z(J)}}}function Xv(n,l,i){const r=this;return s;function s(c){return c===null?i(c):(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),o)}function o(c){return r.parser.lazy[r.now().line]?i(c):l(c)}}const Xc={name:"codeIndented",tokenize:Fv},$v={partial:!0,tokenize:Zv};function Fv(n,l,i){const r=this;return s;function s(p){return n.enter("codeIndented"),Ne(n,o,"linePrefix",5)(p)}function o(p){const y=r.events[r.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(p):i(p)}function c(p){return p===null?m(p):he(p)?n.attempt($v,c,m)(p):(n.enter("codeFlowValue"),d(p))}function d(p){return p===null||he(p)?(n.exit("codeFlowValue"),c(p)):(n.consume(p),d)}function m(p){return n.exit("codeIndented"),l(p)}}function Zv(n,l,i){const r=this;return s;function s(c){return r.parser.lazy[r.now().line]?i(c):he(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),s):Ne(n,o,"linePrefix",5)(c)}function o(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):he(c)?s(c):i(c)}}const Jv={name:"codeText",previous:Wv,resolve:Pv,tokenize:ek};function Pv(n){let l=n.length-4,i=3,r,s;if((n[i][1].type==="lineEnding"||n[i][1].type==="space")&&(n[l][1].type==="lineEnding"||n[l][1].type==="space")){for(r=i;++r<l;)if(n[r][1].type==="codeTextData"){n[i][1].type="codeTextPadding",n[l][1].type="codeTextPadding",i+=2,l-=2;break}}for(r=i-1,l++;++r<=l;)s===void 0?r!==l&&n[r][1].type!=="lineEnding"&&(s=r):(r===l||n[r][1].type==="lineEnding")&&(n[s][1].type="codeTextData",r!==s+2&&(n[s][1].end=n[r-1][1].end,n.splice(s+2,r-s-2),l-=r-s-2,r=s+2),s=void 0);return n}function Wv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ek(n,l,i){let r=0,s,o;return c;function c(g){return n.enter("codeText"),n.enter("codeTextSequence"),d(g)}function d(g){return g===96?(n.consume(g),r++,d):(n.exit("codeTextSequence"),m(g))}function m(g){return g===null?i(g):g===32?(n.enter("space"),n.consume(g),n.exit("space"),m):g===96?(o=n.enter("codeTextSequence"),s=0,y(g)):he(g)?(n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),m):(n.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||he(g)?(n.exit("codeTextData"),m(g)):(n.consume(g),p)}function y(g){return g===96?(n.consume(g),s++,y):s===r?(n.exit("codeTextSequence"),n.exit("codeText"),l(g)):(o.type="codeTextData",p(g))}}class tk{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,i){const r=i??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(l,r):l>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(l,i,r){const s=i||0;this.setCursor(Math.trunc(l));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return r&&nr(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),nr(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),nr(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const i=this.left.splice(l,Number.POSITIVE_INFINITY);nr(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);nr(this.left,i.reverse())}}}function nr(n,l){let i=0;if(l.length<1e4)n.push(...l);else for(;i<l.length;)n.push(...l.slice(i,i+1e4)),i+=1e4}function Hy(n){const l={};let i=-1,r,s,o,c,d,m,p;const y=new tk(n);for(;++i<y.length;){for(;i in l;)i=l[i];if(r=y.get(i),i&&r[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(m=r[1]._tokenizer.events,o=0,o<m.length&&m[o][1].type==="lineEndingBlank"&&(o+=2),o<m.length&&m[o][1].type==="content"))for(;++o<m.length&&m[o][1].type!=="content";)m[o][1].type==="chunkText"&&(m[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(l,nk(y,i)),i=l[i],p=!0);else if(r[1]._container){for(o=i,s=void 0;o--;)if(c=y.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(r[1].end={...y.get(s)[1].start},d=y.slice(s,i),d.unshift(r),y.splice(s,i-s+1,d))}}return Xt(n,0,Number.POSITIVE_INFINITY,y.slice(0)),!p}function nk(n,l){const i=n.get(l)[1],r=n.get(l)[2];let s=l-1;const o=[];let c=i._tokenizer;c||(c=r.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,m=[],p={};let y,g,v=-1,S=i,E=0,x=0;const C=[x];for(;S;){for(;n.get(++s)[1]!==S;);o.push(s),S._tokenizer||(y=r.sliceStream(S),S.next||y.push(null),g&&c.defineSkip(S.start),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=S,S=S.next}for(S=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&&(x=v+1,C.push(x),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(c.events=[],S?(S._tokenizer=void 0,S.previous=void 0):C.pop(),v=C.length;v--;){const _=d.slice(C[v],C[v+1]),q=o.pop();m.push([q,q+_.length-1]),n.splice(q,2,_)}for(m.reverse(),v=-1;++v<m.length;)p[E+m[v][0]]=E+m[v][1],E+=m[v][1]-m[v][0]-1;return p}const lk={resolve:ak,tokenize:rk},ik={partial:!0,tokenize:uk};function ak(n){return Hy(n),n}function rk(n,l){let i;return r;function r(d){return n.enter("content"),i=n.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?o(d):he(d)?n.check(ik,c,o)(d):(n.consume(d),s)}function o(d){return n.exit("chunkContent"),n.exit("content"),l(d)}function c(d){return n.consume(d),n.exit("chunkContent"),i.next=n.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function uk(n,l,i){const r=this;return s;function s(c){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),Ne(n,o,"linePrefix")}function o(c){if(c===null||he(c))return i(c);const d=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):n.interrupt(r.parser.constructs.flow,i,l)(c)}}function Yy(n,l,i,r,s,o,c,d,m){const p=m||Number.POSITIVE_INFINITY;let y=0;return g;function g(_){return _===60?(n.enter(r),n.enter(s),n.enter(o),n.consume(_),n.exit(o),v):_===null||_===32||_===41||ts(_)?i(_):(n.enter(r),n.enter(c),n.enter(d),n.enter("chunkString",{contentType:"string"}),x(_))}function v(_){return _===62?(n.enter(o),n.consume(_),n.exit(o),n.exit(s),n.exit(r),l):(n.enter(d),n.enter("chunkString",{contentType:"string"}),S(_))}function S(_){return _===62?(n.exit("chunkString"),n.exit(d),v(_)):_===null||_===60||he(_)?i(_):(n.consume(_),_===92?E:S)}function E(_){return _===60||_===62||_===92?(n.consume(_),S):S(_)}function x(_){return!y&&(_===null||_===41||Ie(_))?(n.exit("chunkString"),n.exit(d),n.exit(c),n.exit(r),l(_)):y<p&&_===40?(n.consume(_),y++,x):_===41?(n.consume(_),y--,x):_===null||_===32||_===40||ts(_)?i(_):(n.consume(_),_===92?C:x)}function C(_){return _===40||_===41||_===92?(n.consume(_),x):x(_)}}function Vy(n,l,i,r,s,o){const c=this;let d=0,m;return p;function p(S){return n.enter(r),n.enter(s),n.consume(S),n.exit(s),n.enter(o),y}function y(S){return d>999||S===null||S===91||S===93&&!m||S===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?i(S):S===93?(n.exit(o),n.enter(s),n.consume(S),n.exit(s),n.exit(r),l):he(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),y):(n.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||S===91||S===93||he(S)||d++>999?(n.exit("chunkString"),y(S)):(n.consume(S),m||(m=!Ae(S)),S===92?v:g)}function v(S){return S===91||S===92||S===93?(n.consume(S),d++,g):g(S)}}function Iy(n,l,i,r,s,o){let c;return d;function d(v){return v===34||v===39||v===40?(n.enter(r),n.enter(s),n.consume(v),n.exit(s),c=v===40?41:v,m):i(v)}function m(v){return v===c?(n.enter(s),n.consume(v),n.exit(s),n.exit(r),l):(n.enter(o),p(v))}function p(v){return v===c?(n.exit(o),m(c)):v===null?i(v):he(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),Ne(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===c||v===null||he(v)?(n.exit("chunkString"),p(v)):(n.consume(v),v===92?g:y)}function g(v){return v===c||v===92?(n.consume(v),y):y(v)}}function sr(n,l){let i;return r;function r(s){return he(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i=!0,r):Ae(s)?Ne(n,r,i?"linePrefix":"lineSuffix")(s):l(s)}}const sk={name:"definition",tokenize:ck},ok={partial:!0,tokenize:fk};function ck(n,l,i){const r=this;let s;return o;function o(S){return n.enter("definition"),c(S)}function c(S){return Vy.call(r,n,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function d(S){return s=mn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),S===58?(n.enter("definitionMarker"),n.consume(S),n.exit("definitionMarker"),m):i(S)}function m(S){return Ie(S)?sr(n,p)(S):p(S)}function p(S){return Yy(n,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function y(S){return n.attempt(ok,g,g)(S)}function g(S){return Ae(S)?Ne(n,v,"whitespace")(S):v(S)}function v(S){return S===null||he(S)?(n.exit("definition"),r.parser.defined.push(s),l(S)):i(S)}}function fk(n,l,i){return r;function r(d){return Ie(d)?sr(n,s)(d):i(d)}function s(d){return Iy(n,o,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return Ae(d)?Ne(n,c,"whitespace")(d):c(d)}function c(d){return d===null||he(d)?l(d):i(d)}}const hk={name:"hardBreakEscape",tokenize:dk};function dk(n,l,i){return r;function r(o){return n.enter("hardBreakEscape"),n.consume(o),s}function s(o){return he(o)?(n.exit("hardBreakEscape"),l(o)):i(o)}}const pk={name:"headingAtx",resolve:mk,tokenize:gk};function mk(n,l){let i=n.length-2,r=3,s,o;return n[r][1].type==="whitespace"&&(r+=2),i-2>r&&n[i][1].type==="whitespace"&&(i-=2),n[i][1].type==="atxHeadingSequence"&&(r===i-1||i-4>r&&n[i-2][1].type==="whitespace")&&(i-=r+1===i?2:4),i>r&&(s={type:"atxHeadingText",start:n[r][1].start,end:n[i][1].end},o={type:"chunkText",start:n[r][1].start,end:n[i][1].end,contentType:"text"},Xt(n,r,i-r+1,[["enter",s,l],["enter",o,l],["exit",o,l],["exit",s,l]])),n}function gk(n,l,i){let r=0;return s;function s(y){return n.enter("atxHeading"),o(y)}function o(y){return n.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&r++<6?(n.consume(y),c):y===null||Ie(y)?(n.exit("atxHeadingSequence"),d(y)):i(y)}function d(y){return y===35?(n.enter("atxHeadingSequence"),m(y)):y===null||he(y)?(n.exit("atxHeading"),l(y)):Ae(y)?Ne(n,d,"whitespace")(y):(n.enter("atxHeadingText"),p(y))}function m(y){return y===35?(n.consume(y),m):(n.exit("atxHeadingSequence"),d(y))}function p(y){return y===null||y===35||Ie(y)?(n.exit("atxHeadingText"),d(y)):(n.consume(y),p)}}const yk=["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"],Lg=["pre","script","style","textarea"],bk={concrete:!0,name:"htmlFlow",resolveTo:kk,tokenize:wk},Sk={partial:!0,tokenize:xk},vk={partial:!0,tokenize:Ek};function kk(n){let l=n.length;for(;l--&&!(n[l][0]==="enter"&&n[l][1].type==="htmlFlow"););return l>1&&n[l-2][1].type==="linePrefix"&&(n[l][1].start=n[l-2][1].start,n[l+1][1].start=n[l-2][1].start,n.splice(l-2,2)),n}function wk(n,l,i){const r=this;let s,o,c,d,m;return p;function p(w){return y(w)}function y(w){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(w),g}function g(w){return w===33?(n.consume(w),v):w===47?(n.consume(w),o=!0,x):w===63?(n.consume(w),s=3,r.interrupt?l:A):Tt(w)?(n.consume(w),c=String.fromCharCode(w),C):i(w)}function v(w){return w===45?(n.consume(w),s=2,S):w===91?(n.consume(w),s=5,d=0,E):Tt(w)?(n.consume(w),s=4,r.interrupt?l:A):i(w)}function S(w){return w===45?(n.consume(w),r.interrupt?l:A):i(w)}function E(w){const ie="CDATA[";return w===ie.charCodeAt(d++)?(n.consume(w),d===ie.length?r.interrupt?l:X:E):i(w)}function x(w){return Tt(w)?(n.consume(w),c=String.fromCharCode(w),C):i(w)}function C(w){if(w===null||w===47||w===62||Ie(w)){const ie=w===47,pe=c.toLowerCase();return!ie&&!o&&Lg.includes(pe)?(s=1,r.interrupt?l(w):X(w)):yk.includes(c.toLowerCase())?(s=6,ie?(n.consume(w),_):r.interrupt?l(w):X(w)):(s=7,r.interrupt&&!r.parser.lazy[r.now().line]?i(w):o?q(w):j(w))}return w===45||vt(w)?(n.consume(w),c+=String.fromCharCode(w),C):i(w)}function _(w){return w===62?(n.consume(w),r.interrupt?l:X):i(w)}function q(w){return Ae(w)?(n.consume(w),q):B(w)}function j(w){return w===47?(n.consume(w),B):w===58||w===95||Tt(w)?(n.consume(w),$):Ae(w)?(n.consume(w),j):B(w)}function $(w){return w===45||w===46||w===58||w===95||vt(w)?(n.consume(w),$):P(w)}function P(w){return w===61?(n.consume(w),D):Ae(w)?(n.consume(w),P):j(w)}function D(w){return w===null||w===60||w===61||w===62||w===96?i(w):w===34||w===39?(n.consume(w),m=w,K):Ae(w)?(n.consume(w),D):Z(w)}function K(w){return w===m?(n.consume(w),m=null,ae):w===null||he(w)?i(w):(n.consume(w),K)}function Z(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Ie(w)?P(w):(n.consume(w),Z)}function ae(w){return w===47||w===62||Ae(w)?j(w):i(w)}function B(w){return w===62?(n.consume(w),te):i(w)}function te(w){return w===null||he(w)?X(w):Ae(w)?(n.consume(w),te):i(w)}function X(w){return w===45&&s===2?(n.consume(w),M):w===60&&s===1?(n.consume(w),F):w===62&&s===4?(n.consume(w),O):w===63&&s===3?(n.consume(w),A):w===93&&s===5?(n.consume(w),Se):he(w)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(Sk,V,re)(w)):w===null||he(w)?(n.exit("htmlFlowData"),re(w)):(n.consume(w),X)}function re(w){return n.check(vk,W,V)(w)}function W(w){return n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),J}function J(w){return w===null||he(w)?re(w):(n.enter("htmlFlowData"),X(w))}function M(w){return w===45?(n.consume(w),A):X(w)}function F(w){return w===47?(n.consume(w),c="",se):X(w)}function se(w){if(w===62){const ie=c.toLowerCase();return Lg.includes(ie)?(n.consume(w),O):X(w)}return Tt(w)&&c.length<8?(n.consume(w),c+=String.fromCharCode(w),se):X(w)}function Se(w){return w===93?(n.consume(w),A):X(w)}function A(w){return w===62?(n.consume(w),O):w===45&&s===2?(n.consume(w),A):X(w)}function O(w){return w===null||he(w)?(n.exit("htmlFlowData"),V(w)):(n.consume(w),O)}function V(w){return n.exit("htmlFlow"),l(w)}}function Ek(n,l,i){const r=this;return s;function s(c){return he(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),o):i(c)}function o(c){return r.parser.lazy[r.now().line]?i(c):l(c)}}function xk(n,l,i){return r;function r(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(yr,l,i)}}const Ak={name:"htmlText",tokenize:Tk};function Tk(n,l,i){const r=this;let s,o,c;return d;function d(A){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(A),m}function m(A){return A===33?(n.consume(A),p):A===47?(n.consume(A),P):A===63?(n.consume(A),j):Tt(A)?(n.consume(A),Z):i(A)}function p(A){return A===45?(n.consume(A),y):A===91?(n.consume(A),o=0,E):Tt(A)?(n.consume(A),q):i(A)}function y(A){return A===45?(n.consume(A),S):i(A)}function g(A){return A===null?i(A):A===45?(n.consume(A),v):he(A)?(c=g,F(A)):(n.consume(A),g)}function v(A){return A===45?(n.consume(A),S):g(A)}function S(A){return A===62?M(A):A===45?v(A):g(A)}function E(A){const O="CDATA[";return A===O.charCodeAt(o++)?(n.consume(A),o===O.length?x:E):i(A)}function x(A){return A===null?i(A):A===93?(n.consume(A),C):he(A)?(c=x,F(A)):(n.consume(A),x)}function C(A){return A===93?(n.consume(A),_):x(A)}function _(A){return A===62?M(A):A===93?(n.consume(A),_):x(A)}function q(A){return A===null||A===62?M(A):he(A)?(c=q,F(A)):(n.consume(A),q)}function j(A){return A===null?i(A):A===63?(n.consume(A),$):he(A)?(c=j,F(A)):(n.consume(A),j)}function $(A){return A===62?M(A):j(A)}function P(A){return Tt(A)?(n.consume(A),D):i(A)}function D(A){return A===45||vt(A)?(n.consume(A),D):K(A)}function K(A){return he(A)?(c=K,F(A)):Ae(A)?(n.consume(A),K):M(A)}function Z(A){return A===45||vt(A)?(n.consume(A),Z):A===47||A===62||Ie(A)?ae(A):i(A)}function ae(A){return A===47?(n.consume(A),M):A===58||A===95||Tt(A)?(n.consume(A),B):he(A)?(c=ae,F(A)):Ae(A)?(n.consume(A),ae):M(A)}function B(A){return A===45||A===46||A===58||A===95||vt(A)?(n.consume(A),B):te(A)}function te(A){return A===61?(n.consume(A),X):he(A)?(c=te,F(A)):Ae(A)?(n.consume(A),te):ae(A)}function X(A){return A===null||A===60||A===61||A===62||A===96?i(A):A===34||A===39?(n.consume(A),s=A,re):he(A)?(c=X,F(A)):Ae(A)?(n.consume(A),X):(n.consume(A),W)}function re(A){return A===s?(n.consume(A),s=void 0,J):A===null?i(A):he(A)?(c=re,F(A)):(n.consume(A),re)}function W(A){return A===null||A===34||A===39||A===60||A===61||A===96?i(A):A===47||A===62||Ie(A)?ae(A):(n.consume(A),W)}function J(A){return A===47||A===62||Ie(A)?ae(A):i(A)}function M(A){return A===62?(n.consume(A),n.exit("htmlTextData"),n.exit("htmlText"),l):i(A)}function F(A){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(A),n.exit("lineEnding"),se}function se(A){return Ae(A)?Ne(n,Se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):Se(A)}function Se(A){return n.enter("htmlTextData"),c(A)}}const Hf={name:"labelEnd",resolveAll:Nk,resolveTo:zk,tokenize:Dk},_k={tokenize:Mk},Ck={tokenize:Lk},Ok={tokenize:Rk};function Nk(n){let l=-1;const i=[];for(;++l<n.length;){const r=n[l][1];if(i.push(n[l]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const s=r.type==="labelImage"?4:2;r.type="data",l+=s}}return n.length!==i.length&&Xt(n,0,n.length,i),n}function zk(n,l){let i=n.length,r=0,s,o,c,d;for(;i--;)if(s=n[i][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(n[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=i,s.type!=="labelLink")){r=2;break}}else s.type==="labelEnd"&&(c=i);const m={type:n[o][1].type==="labelLink"?"link":"image",start:{...n[o][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[o][1].start},end:{...n[c][1].end}},y={type:"labelText",start:{...n[o+r+2][1].end},end:{...n[c-2][1].start}};return d=[["enter",m,l],["enter",p,l]],d=rn(d,n.slice(o+1,o+r+3)),d=rn(d,[["enter",y,l]]),d=rn(d,ss(l.parser.constructs.insideSpan.null,n.slice(o+r+4,c-3),l)),d=rn(d,[["exit",y,l],n[c-2],n[c-1],["exit",p,l]]),d=rn(d,n.slice(c+1)),d=rn(d,[["exit",m,l]]),Xt(n,o,n.length,d),n}function Dk(n,l,i){const r=this;let s=r.events.length,o,c;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){o=r.events[s][1];break}return d;function d(v){return o?o._inactive?g(v):(c=r.parser.defined.includes(mn(r.sliceSerialize({start:o.end,end:r.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(v),n.exit("labelMarker"),n.exit("labelEnd"),m):i(v)}function m(v){return v===40?n.attempt(_k,y,c?y:g)(v):v===91?n.attempt(Ck,y,c?p:g)(v):c?y(v):g(v)}function p(v){return n.attempt(Ok,y,g)(v)}function y(v){return l(v)}function g(v){return o._balanced=!0,i(v)}}function Mk(n,l,i){return r;function r(g){return n.enter("resource"),n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),s}function s(g){return Ie(g)?sr(n,o)(g):o(g)}function o(g){return g===41?y(g):Yy(n,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Ie(g)?sr(n,m)(g):y(g)}function d(g){return i(g)}function m(g){return g===34||g===39||g===40?Iy(n,p,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function p(g){return Ie(g)?sr(n,y)(g):y(g)}function y(g){return g===41?(n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),n.exit("resource"),l):i(g)}}function Lk(n,l,i){const r=this;return s;function s(d){return Vy.call(r,n,o,c,"reference","referenceMarker","referenceString")(d)}function o(d){return r.parser.defined.includes(mn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?l(d):i(d)}function c(d){return i(d)}}function Rk(n,l,i){return r;function r(o){return n.enter("reference"),n.enter("referenceMarker"),n.consume(o),n.exit("referenceMarker"),s}function s(o){return o===93?(n.enter("referenceMarker"),n.consume(o),n.exit("referenceMarker"),n.exit("reference"),l):i(o)}}const Bk={name:"labelStartImage",resolveAll:Hf.resolveAll,tokenize:jk};function jk(n,l,i){const r=this;return s;function s(d){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(d),n.exit("labelImageMarker"),o}function o(d){return d===91?(n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelImage"),c):i(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(d):l(d)}}const Uk={name:"labelStartLink",resolveAll:Hf.resolveAll,tokenize:qk};function qk(n,l,i){const r=this;return s;function s(c){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(c),n.exit("labelMarker"),n.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?i(c):l(c)}}const $c={name:"lineEnding",tokenize:Hk};function Hk(n,l){return i;function i(r){return n.enter("lineEnding"),n.consume(r),n.exit("lineEnding"),Ne(n,l,"linePrefix")}}const Ju={name:"thematicBreak",tokenize:Yk};function Yk(n,l,i){let r=0,s;return o;function o(p){return n.enter("thematicBreak"),c(p)}function c(p){return s=p,d(p)}function d(p){return p===s?(n.enter("thematicBreakSequence"),m(p)):r>=3&&(p===null||he(p))?(n.exit("thematicBreak"),l(p)):i(p)}function m(p){return p===s?(n.consume(p),r++,m):(n.exit("thematicBreakSequence"),Ae(p)?Ne(n,d,"whitespace")(p):d(p))}}const Bt={continuation:{tokenize:Kk},exit:Xk,name:"list",tokenize:Gk},Vk={partial:!0,tokenize:$k},Ik={partial:!0,tokenize:Qk};function Gk(n,l,i){const r=this,s=r.events[r.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(S){const E=r.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||S===r.containerState.marker:bf(S)){if(r.containerState.type||(r.containerState.type=E,n.enter(E,{_container:!0})),E==="listUnordered")return n.enter("listItemPrefix"),S===42||S===45?n.check(Ju,i,p)(S):p(S);if(!r.interrupt||S===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(S)}return i(S)}function m(S){return bf(S)&&++c<10?(n.consume(S),m):(!r.interrupt||c<2)&&(r.containerState.marker?S===r.containerState.marker:S===41||S===46)?(n.exit("listItemValue"),p(S)):i(S)}function p(S){return n.enter("listItemMarker"),n.consume(S),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||S,n.check(yr,r.interrupt?i:y,n.attempt(Vk,v,g))}function y(S){return r.containerState.initialBlankLine=!0,o++,v(S)}function g(S){return Ae(S)?(n.enter("listItemPrefixWhitespace"),n.consume(S),n.exit("listItemPrefixWhitespace"),v):i(S)}function v(S){return r.containerState.size=o+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,l(S)}}function Kk(n,l,i){const r=this;return r.containerState._closeFlow=void 0,n.check(yr,s,o);function s(d){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ne(n,l,"listItemIndent",r.containerState.size+1)(d)}function o(d){return r.containerState.furtherBlankLines||!Ae(d)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,c(d)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(Ik,l,c)(d))}function c(d){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ne(n,n.attempt(Bt,l,i),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function Qk(n,l,i){const r=this;return Ne(n,s,"listItemIndent",r.containerState.size+1);function s(o){const c=r.events[r.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===r.containerState.size?l(o):i(o)}}function Xk(n){n.exit(this.containerState.type)}function $k(n,l,i){const r=this;return Ne(n,s,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=r.events[r.events.length-1];return!Ae(o)&&c&&c[1].type==="listItemPrefixWhitespace"?l(o):i(o)}}const Rg={name:"setextUnderline",resolveTo:Fk,tokenize:Zk};function Fk(n,l){let i=n.length,r,s,o;for(;i--;)if(n[i][0]==="enter"){if(n[i][1].type==="content"){r=i;break}n[i][1].type==="paragraph"&&(s=i)}else n[i][1].type==="content"&&n.splice(i,1),!o&&n[i][1].type==="definition"&&(o=i);const c={type:"setextHeading",start:{...n[r][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",o?(n.splice(s,0,["enter",c,l]),n.splice(o+1,0,["exit",n[r][1],l]),n[r][1].end={...n[o][1].end}):n[r][1]=c,n.push(["exit",c,l]),n}function Zk(n,l,i){const r=this;let s;return o;function o(p){let y=r.events.length,g;for(;y--;)if(r.events[y][1].type!=="lineEnding"&&r.events[y][1].type!=="linePrefix"&&r.events[y][1].type!=="content"){g=r.events[y][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(n.enter("setextHeadingLine"),s=p,c(p)):i(p)}function c(p){return n.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===s?(n.consume(p),d):(n.exit("setextHeadingLineSequence"),Ae(p)?Ne(n,m,"lineSuffix")(p):m(p))}function m(p){return p===null||he(p)?(n.exit("setextHeadingLine"),l(p)):i(p)}}const Jk={tokenize:Pk};function Pk(n){const l=this,i=n.attempt(yr,r,n.attempt(this.parser.constructs.flowInitial,s,Ne(n,n.attempt(this.parser.constructs.flow,s,n.attempt(lk,s)),"linePrefix")));return i;function r(o){if(o===null){n.consume(o);return}return n.enter("lineEndingBlank"),n.consume(o),n.exit("lineEndingBlank"),l.currentConstruct=void 0,i}function s(o){if(o===null){n.consume(o);return}return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l.currentConstruct=void 0,i}}const Wk={resolveAll:Ky()},ew=Gy("string"),tw=Gy("text");function Gy(n){return{resolveAll:Ky(n==="text"?nw:void 0),tokenize:l};function l(i){const r=this,s=this.parser.constructs[n],o=i.attempt(s,c,d);return c;function c(y){return p(y)?o(y):d(y)}function d(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),m}function m(y){return p(y)?(i.exit("data"),o(y)):(i.consume(y),m)}function p(y){if(y===null)return!0;const g=s[y];let v=-1;if(g)for(;++v<g.length;){const S=g[v];if(!S.previous||S.previous.call(r,r.previous))return!0}return!1}}}function Ky(n){return l;function l(i,r){let s=-1,o;for(;++s<=i.length;)o===void 0?i[s]&&i[s][1].type==="data"&&(o=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==o+2&&(i[o][1].end=i[s-1][1].end,i.splice(o+2,s-o-2),s=o+2),o=void 0);return n?n(i,r):i}}function nw(n,l){let i=0;for(;++i<=n.length;)if((i===n.length||n[i][1].type==="lineEnding")&&n[i-1][1].type==="data"){const r=n[i-1][1],s=l.sliceStream(r);let o=s.length,c=-1,d=0,m;for(;o--;){const p=s[o];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(p===-2)m=!0,d++;else if(p!==-1){o++;break}}if(l._contentTypeTextTrailing&&i===n.length&&(d=0),d){const p={type:i===n.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:r.start._bufferIndex+c,_index:r.start._index+o,line:r.end.line,column:r.end.column-d,offset:r.end.offset-d},end:{...r.end}};r.end={...p.start},r.start.offset===r.end.offset?Object.assign(r,p):(n.splice(i,0,["enter",p,l],["exit",p,l]),i+=2)}i++}return n}const lw={42:Bt,43:Bt,45:Bt,48:Bt,49:Bt,50:Bt,51:Bt,52:Bt,53:Bt,54:Bt,55:Bt,56:Bt,57:Bt,62:jy},iw={91:sk},aw={[-2]:Xc,[-1]:Xc,32:Xc},rw={35:pk,42:Ju,45:[Rg,Ju],60:bk,61:Rg,95:Ju,96:Mg,126:Mg},uw={38:qy,92:Uy},sw={[-5]:$c,[-4]:$c,[-3]:$c,33:Bk,38:qy,42:Sf,60:[Uv,Ak],91:Uk,92:[hk,Uy],93:Hf,95:Sf,96:Jv},ow={null:[Sf,Wk]},cw={null:[42,95]},fw={null:[]},hw=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:cw,contentInitial:iw,disable:fw,document:lw,flow:rw,flowInitial:aw,insideSpan:ow,string:uw,text:sw},Symbol.toStringTag,{value:"Module"}));function dw(n,l,i){let r={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},o=[];let c=[],d=[];const m={attempt:K(P),check:K(D),consume:q,enter:j,exit:$,interrupt:K(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:x,events:[],now:E,parser:n,previous:null,sliceSerialize:v,sliceStream:S,write:g};let y=l.tokenize.call(p,m);return l.resolveAll&&o.push(l),p;function g(te){return c=rn(c,te),C(),c[c.length-1]!==null?[]:(Z(l,0),p.events=ss(o,p.events,p),p.events)}function v(te,X){return mw(S(te),X)}function S(te){return pw(c,te)}function E(){const{_bufferIndex:te,_index:X,line:re,column:W,offset:J}=r;return{_bufferIndex:te,_index:X,line:re,column:W,offset:J}}function x(te){s[te.line]=te.column,B()}function C(){let te;for(;r._index<c.length;){const X=c[r._index];if(typeof X=="string")for(te=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===te&&r._bufferIndex<X.length;)_(X.charCodeAt(r._bufferIndex));else _(X)}}function _(te){y=y(te)}function q(te){he(te)?(r.line++,r.column=1,r.offset+=te===-3?2:1,B()):te!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),p.previous=te}function j(te,X){const re=X||{};return re.type=te,re.start=E(),p.events.push(["enter",re,p]),d.push(re),re}function $(te){const X=d.pop();return X.end=E(),p.events.push(["exit",X,p]),X}function P(te,X){Z(te,X.from)}function D(te,X){X.restore()}function K(te,X){return re;function re(W,J,M){let F,se,Se,A;return Array.isArray(W)?V(W):"tokenize"in W?V([W]):O(W);function O(ce){return Te;function Te($e){const je=$e!==null&&ce[$e],$t=$e!==null&&ce.null,xn=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray($t)?$t:$t?[$t]:[]];return V(xn)($e)}}function V(ce){return F=ce,se=0,ce.length===0?M:w(ce[se])}function w(ce){return Te;function Te($e){return A=ae(),Se=ce,ce.partial||(p.currentConstruct=ce),ce.name&&p.parser.constructs.disable.null.includes(ce.name)?pe():ce.tokenize.call(X?Object.assign(Object.create(p),X):p,m,ie,pe)($e)}}function ie(ce){return te(Se,A),J}function pe(ce){return A.restore(),++se<F.length?w(F[se]):M}}}function Z(te,X){te.resolveAll&&!o.includes(te)&&o.push(te),te.resolve&&Xt(p.events,X,p.events.length-X,te.resolve(p.events.slice(X),p)),te.resolveTo&&(p.events=te.resolveTo(p.events,p))}function ae(){const te=E(),X=p.previous,re=p.currentConstruct,W=p.events.length,J=Array.from(d);return{from:W,restore:M};function M(){r=te,p.previous=X,p.currentConstruct=re,p.events.length=W,d=J,B()}}function B(){r.line in s&&r.column<2&&(r.column=s[r.line],r.offset+=s[r.line]-1)}}function pw(n,l){const i=l.start._index,r=l.start._bufferIndex,s=l.end._index,o=l.end._bufferIndex;let c;if(i===s)c=[n[i].slice(r,o)];else{if(c=n.slice(i,s),r>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(r):c.shift()}o>0&&c.push(n[s].slice(0,o))}return c}function mw(n,l){let i=-1;const r=[];let s;for(;++i<n.length;){const o=n[i];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
51
+ `;break}case-3:{c=`\r
52
+ `;break}case-2:{c=l?" ":" ";break}case-1:{if(!l&&s)continue;c=" ";break}default:c=String.fromCharCode(o)}s=o===-2,r.push(c)}return r.join("")}function gw(n){const r={constructs:Ry([hw,...(n||{}).extensions||[]]),content:s(zv),defined:[],document:s(Mv),flow:s(Jk),lazy:{},string:s(ew),text:s(tw)};return r;function s(o){return c;function c(d){return dw(r,o,d)}}}function yw(n){for(;!Hy(n););return n}const Bg=/[\0\t\n\r]/g;function bw(){let n=1,l="",i=!0,r;return s;function s(o,c,d){const m=[];let p,y,g,v,S;for(o=l+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),g=0,l="",i&&(o.charCodeAt(0)===65279&&g++,i=void 0);g<o.length;){if(Bg.lastIndex=g,p=Bg.exec(o),v=p&&p.index!==void 0?p.index:o.length,S=o.charCodeAt(v),!p){l=o.slice(g);break}if(S===10&&g===v&&r)m.push(-3),r=void 0;else switch(r&&(m.push(-5),r=void 0),g<v&&(m.push(o.slice(g,v)),n+=v-g),S){case 0:{m.push(65533),n++;break}case 9:{for(y=Math.ceil(n/4)*4,m.push(-2);n++<y;)m.push(-1);break}case 10:{m.push(-4),n=1;break}default:r=!0,n=1}g=v+1}return d&&(r&&m.push(-5),l&&m.push(l),m.push(null)),m}}const Sw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vw(n){return n.replace(Sw,kw)}function kw(n,l,i){if(l)return l;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),o=s===120||s===88;return By(i.slice(o?2:1),o?16:10)}return qf(i)||n}const Qy={}.hasOwnProperty;function ww(n,l,i){return typeof l!="string"&&(i=l,l=void 0),Ew(i)(yw(gw(i).document().write(bw()(n,l,!0))))}function Ew(n){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Pl),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:o(Zl),blockQuote:o($t),characterEscape:ae,characterReference:ae,codeFenced:o(xn),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(xn,c),codeText:o(aa,c),codeTextData:ae,data:ae,codeFlowValue:ae,definition:o(Er),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(An),hardBreakEscape:o(Jl),hardBreakTrailing:o(Jl),htmlFlow:o(xr,c),htmlFlowData:ae,htmlText:o(xr,c),htmlTextData:ae,image:o(Ar),label:c,link:o(Pl),listItem:o(ra),listItemValue:v,listOrdered:o(Wl,g),listUnordered:o(Wl),paragraph:o(ws),reference:w,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(Zl),strong:o(Es),thematicBreak:o(xs)},exit:{atxHeading:m(),atxHeadingSequence:P,autolink:m(),autolinkEmail:je,autolinkProtocol:$e,blockQuote:m(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:ce,characterReference:Te,codeFenced:m(C),codeFencedFence:x,codeFencedFenceInfo:S,codeFencedFenceMeta:E,codeFlowValue:B,codeIndented:m(_),codeText:m(J),codeTextData:B,data:B,definition:m(),definitionDestinationString:$,definitionLabelString:q,definitionTitleString:j,emphasis:m(),hardBreakEscape:m(X),hardBreakTrailing:m(X),htmlFlow:m(re),htmlFlowData:B,htmlText:m(W),htmlTextData:B,image:m(F),label:Se,labelText:se,lineEnding:te,link:m(M),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:ie,resourceDestinationString:A,resourceTitleString:O,resource:V,setextHeading:m(Z),setextHeadingLineSequence:K,setextHeadingText:D,strong:m(),thematicBreak:m()}};Xy(l,(n||{}).mdastExtensions||[]);const i={};return r;function r(I){let ne={type:"root",children:[]};const me={stack:[ne],tokenStack:[],config:l,enter:d,exit:p,buffer:c,resume:y,data:i},we=[];let Le=-1;for(;++Le<I.length;)if(I[Le][1].type==="listOrdered"||I[Le][1].type==="listUnordered")if(I[Le][0]==="enter")we.push(Le);else{const Ut=we.pop();Le=s(I,Ut,Le)}for(Le=-1;++Le<I.length;){const Ut=l[I[Le][0]];Qy.call(Ut,I[Le][1].type)&&Ut[I[Le][1].type].call(Object.assign({sliceSerialize:I[Le][2].sliceSerialize},me),I[Le][1])}if(me.tokenStack.length>0){const Ut=me.tokenStack[me.tokenStack.length-1];(Ut[1]||jg).call(me,void 0,Ut[0])}for(ne.position={start:vl(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:vl(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},Le=-1;++Le<l.transforms.length;)ne=l.transforms[Le](ne)||ne;return ne}function s(I,ne,me){let we=ne-1,Le=-1,Ut=!1,Tn,Et,ot,Ct;for(;++we<=me;){const Ye=I[we];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?Le++:Le--,Ct=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(Tn&&!Ct&&!Le&&!ot&&(ot=we),Ct=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ct=void 0}if(!Le&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||Le===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(Tn){let Fn=we;for(Et=void 0;Fn--;){const cn=I[Fn];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;Et&&(I[Et][1].type="lineEndingBlank",Ut=!0),cn[1].type="lineEnding",Et=Fn}else if(!(cn[1].type==="linePrefix"||cn[1].type==="blockQuotePrefix"||cn[1].type==="blockQuotePrefixWhitespace"||cn[1].type==="blockQuoteMarker"||cn[1].type==="listItemIndent"))break}ot&&(!Et||ot<Et)&&(Tn._spread=!0),Tn.end=Object.assign({},Et?I[Et][1].start:Ye[1].end),I.splice(Et||we,0,["exit",Tn,Ye[2]]),we++,me++}if(Ye[1].type==="listItemPrefix"){const Fn={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};Tn=Fn,I.splice(we,0,["enter",Fn,Ye[2]]),we++,me++,ot=void 0,Ct=!0}}}return I[ne][1]._spread=Ut,me}function o(I,ne){return me;function me(we){d.call(this,I(we),we),ne&&ne.call(this,we)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(I,ne,me){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([ne,me||void 0]),I.position={start:vl(ne.start),end:void 0}}function m(I){return ne;function ne(me){I&&I.call(this,me),p.call(this,me)}}function p(I,ne){const me=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==I.type&&(ne?ne.call(this,I,we[0]):(we[1]||jg).call(this,I,we[0]));else throw new Error("Cannot close `"+I.type+"` ("+ur({start:I.start,end:I.end})+"): it’s not open");me.position.end=vl(I.end)}function y(){return Uf(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(I){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function S(){const I=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=I}function E(){const I=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=I}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const I=this.resume(),ne=this.stack[this.stack.length-1];ne.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const I=this.resume(),ne=this.stack[this.stack.length-1];ne.value=I.replace(/(\r?\n|\r)$/g,"")}function q(I){const ne=this.resume(),me=this.stack[this.stack.length-1];me.label=ne,me.identifier=mn(this.sliceSerialize(I)).toLowerCase()}function j(){const I=this.resume(),ne=this.stack[this.stack.length-1];ne.title=I}function $(){const I=this.resume(),ne=this.stack[this.stack.length-1];ne.url=I}function P(I){const ne=this.stack[this.stack.length-1];if(!ne.depth){const me=this.sliceSerialize(I).length;ne.depth=me}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function K(I){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function Z(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(I){const me=this.stack[this.stack.length-1].children;let we=me[me.length-1];(!we||we.type!=="text")&&(we=wt(),we.position={start:vl(I.start),end:void 0},me.push(we)),this.stack.push(we)}function B(I){const ne=this.stack.pop();ne.value+=this.sliceSerialize(I),ne.position.end=vl(I.end)}function te(I){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=ne.children[ne.children.length-1];me.position.end=vl(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(ne.type)&&(ae.call(this,I),B.call(this,I))}function X(){this.data.atHardBreak=!0}function re(){const I=this.resume(),ne=this.stack[this.stack.length-1];ne.value=I}function W(){const I=this.resume(),ne=this.stack[this.stack.length-1];ne.value=I}function J(){const I=this.resume(),ne=this.stack[this.stack.length-1];ne.value=I}function M(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=ne,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function F(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=ne,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function se(I){const ne=this.sliceSerialize(I),me=this.stack[this.stack.length-2];me.label=vw(ne),me.identifier=mn(ne).toLowerCase()}function Se(){const I=this.stack[this.stack.length-1],ne=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const we=I.children;me.children=we}else me.alt=ne}function A(){const I=this.resume(),ne=this.stack[this.stack.length-1];ne.url=I}function O(){const I=this.resume(),ne=this.stack[this.stack.length-1];ne.title=I}function V(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ie(I){const ne=this.resume(),me=this.stack[this.stack.length-1];me.label=ne,me.identifier=mn(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function pe(I){this.data.characterReferenceType=I.type}function ce(I){const ne=this.sliceSerialize(I),me=this.data.characterReferenceType;let we;me?(we=By(ne,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=qf(ne);const Le=this.stack[this.stack.length-1];Le.value+=we}function Te(I){const ne=this.stack.pop();ne.position.end=vl(I.end)}function $e(I){B.call(this,I);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(I)}function je(I){B.call(this,I);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(I)}function $t(){return{type:"blockquote",children:[]}}function xn(){return{type:"code",lang:null,meta:null,value:""}}function aa(){return{type:"inlineCode",value:""}}function Er(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function An(){return{type:"emphasis",children:[]}}function Zl(){return{type:"heading",depth:0,children:[]}}function Jl(){return{type:"break"}}function xr(){return{type:"html",value:""}}function Ar(){return{type:"image",title:null,url:"",alt:null}}function Pl(){return{type:"link",title:null,url:"",children:[]}}function Wl(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function ra(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function ws(){return{type:"paragraph",children:[]}}function Es(){return{type:"strong",children:[]}}function wt(){return{type:"text",value:""}}function xs(){return{type:"thematicBreak"}}}function vl(n){return{line:n.line,column:n.column,offset:n.offset}}function Xy(n,l){let i=-1;for(;++i<l.length;){const r=l[i];Array.isArray(r)?Xy(n,r):xw(n,r)}}function xw(n,l){let i;for(i in l)if(Qy.call(l,i))switch(i){case"canContainEols":{const r=l[i];r&&n[i].push(...r);break}case"transforms":{const r=l[i];r&&n[i].push(...r);break}case"enter":case"exit":{const r=l[i];r&&Object.assign(n[i],r);break}}}function jg(n,l){throw n?new Error("Cannot close `"+n.type+"` ("+ur({start:n.start,end:n.end})+"): a different token (`"+l.type+"`, "+ur({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+ur({start:l.start,end:l.end})+") is still open")}function Aw(n){const l=this;l.parser=i;function i(r){return ww(r,{...l.data("settings"),...n,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function Tw(n,l){const i={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(l),!0)};return n.patch(l,i),n.applyData(l,i)}function _w(n,l){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(l,i),[n.applyData(l,i),{type:"text",value:`
53
+ `}]}function Cw(n,l){const i=l.value?l.value+`
54
+ `:"",r={},s=l.lang?l.lang.split(/\s+/):[];s.length>0&&(r.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:i}]};return l.meta&&(o.data={meta:l.meta}),n.patch(l,o),o=n.applyData(l,o),o={type:"element",tagName:"pre",properties:{},children:[o]},n.patch(l,o),o}function Ow(n,l){const i={type:"element",tagName:"del",properties:{},children:n.all(l)};return n.patch(l,i),n.applyData(l,i)}function Nw(n,l){const i={type:"element",tagName:"em",properties:{},children:n.all(l)};return n.patch(l,i),n.applyData(l,i)}function zw(n,l){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=String(l.identifier).toUpperCase(),s=ea(r.toLowerCase()),o=n.footnoteOrder.indexOf(r);let c,d=n.footnoteCounts.get(r);d===void 0?(d=0,n.footnoteOrder.push(r),c=n.footnoteOrder.length):c=o+1,d+=1,n.footnoteCounts.set(r,d);const m={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(c)}]};n.patch(l,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return n.patch(l,p),n.applyData(l,p)}function Dw(n,l){const i={type:"element",tagName:"h"+l.depth,properties:{},children:n.all(l)};return n.patch(l,i),n.applyData(l,i)}function Mw(n,l){if(n.options.allowDangerousHtml){const i={type:"raw",value:l.value};return n.patch(l,i),n.applyData(l,i)}}function $y(n,l){const i=l.referenceType;let r="]";if(i==="collapsed"?r+="[]":i==="full"&&(r+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+r}];const s=n.all(l),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=r:s.push({type:"text",value:r}),s}function Lw(n,l){const i=String(l.identifier).toUpperCase(),r=n.definitionById.get(i);if(!r)return $y(n,l);const s={src:ea(r.url||""),alt:l.alt};r.title!==null&&r.title!==void 0&&(s.title=r.title);const o={type:"element",tagName:"img",properties:s,children:[]};return n.patch(l,o),n.applyData(l,o)}function Rw(n,l){const i={src:ea(l.url)};l.alt!==null&&l.alt!==void 0&&(i.alt=l.alt),l.title!==null&&l.title!==void 0&&(i.title=l.title);const r={type:"element",tagName:"img",properties:i,children:[]};return n.patch(l,r),n.applyData(l,r)}function Bw(n,l){const i={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};n.patch(l,i);const r={type:"element",tagName:"code",properties:{},children:[i]};return n.patch(l,r),n.applyData(l,r)}function jw(n,l){const i=String(l.identifier).toUpperCase(),r=n.definitionById.get(i);if(!r)return $y(n,l);const s={href:ea(r.url||"")};r.title!==null&&r.title!==void 0&&(s.title=r.title);const o={type:"element",tagName:"a",properties:s,children:n.all(l)};return n.patch(l,o),n.applyData(l,o)}function Uw(n,l){const i={href:ea(l.url)};l.title!==null&&l.title!==void 0&&(i.title=l.title);const r={type:"element",tagName:"a",properties:i,children:n.all(l)};return n.patch(l,r),n.applyData(l,r)}function qw(n,l,i){const r=n.all(l),s=i?Hw(i):Fy(l),o={},c=[];if(typeof l.checked=="boolean"){const y=r[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},r.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d<r.length;){const y=r[d];(s||d!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
55
+ `}),y.type==="element"&&y.tagName==="p"&&!s?c.push(...y.children):c.push(y)}const m=r[r.length-1];m&&(s||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
56
+ `});const p={type:"element",tagName:"li",properties:o,children:c};return n.patch(l,p),n.applyData(l,p)}function Hw(n){let l=!1;if(n.type==="list"){l=n.spread||!1;const i=n.children;let r=-1;for(;!l&&++r<i.length;)l=Fy(i[r])}return l}function Fy(n){const l=n.spread;return l??n.children.length>1}function Yw(n,l){const i={},r=n.all(l);let s=-1;for(typeof l.start=="number"&&l.start!==1&&(i.start=l.start);++s<r.length;){const c=r[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const o={type:"element",tagName:l.ordered?"ol":"ul",properties:i,children:n.wrap(r,!0)};return n.patch(l,o),n.applyData(l,o)}function Vw(n,l){const i={type:"element",tagName:"p",properties:{},children:n.all(l)};return n.patch(l,i),n.applyData(l,i)}function Iw(n,l){const i={type:"root",children:n.wrap(n.all(l))};return n.patch(l,i),n.applyData(l,i)}function Gw(n,l){const i={type:"element",tagName:"strong",properties:{},children:n.all(l)};return n.patch(l,i),n.applyData(l,i)}function Kw(n,l){const i=n.all(l),r=i.shift(),s=[];if(r){const c={type:"element",tagName:"thead",properties:{},children:n.wrap([r],!0)};n.patch(l.children[0],c),s.push(c)}if(i.length>0){const c={type:"element",tagName:"tbody",properties:{},children:n.wrap(i,!0)},d=Lf(l.children[1]),m=Cy(l.children[l.children.length-1]);d&&m&&(c.position={start:d,end:m}),s.push(c)}const o={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(l,o),n.applyData(l,o)}function Qw(n,l,i){const r=i?i.children:void 0,o=(r?r.indexOf(l):1)===0?"th":"td",c=i&&i.type==="table"?i.align:void 0,d=c?c.length:l.children.length;let m=-1;const p=[];for(;++m<d;){const g=l.children[m],v={},S=c?c[m]:void 0;S&&(v.align=S);let E={type:"element",tagName:o,properties:v,children:[]};g&&(E.children=n.all(g),n.patch(g,E),E=n.applyData(g,E)),p.push(E)}const y={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(l,y),n.applyData(l,y)}function Xw(n,l){const i={type:"element",tagName:"td",properties:{},children:n.all(l)};return n.patch(l,i),n.applyData(l,i)}const Ug=9,qg=32;function $w(n){const l=String(n),i=/\r?\n|\r/g;let r=i.exec(l),s=0;const o=[];for(;r;)o.push(Hg(l.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=i.exec(l);return o.push(Hg(l.slice(s),s>0,!1)),o.join("")}function Hg(n,l,i){let r=0,s=n.length;if(l){let o=n.codePointAt(r);for(;o===Ug||o===qg;)r++,o=n.codePointAt(r)}if(i){let o=n.codePointAt(s-1);for(;o===Ug||o===qg;)s--,o=n.codePointAt(s-1)}return s>r?n.slice(r,s):""}function Fw(n,l){const i={type:"text",value:$w(String(l.value))};return n.patch(l,i),n.applyData(l,i)}function Zw(n,l){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(l,i),n.applyData(l,i)}const Jw={blockquote:Tw,break:_w,code:Cw,delete:Ow,emphasis:Nw,footnoteReference:zw,heading:Dw,html:Mw,imageReference:Lw,image:Rw,inlineCode:Bw,linkReference:jw,link:Uw,listItem:qw,list:Yw,paragraph:Vw,root:Iw,strong:Gw,table:Kw,tableCell:Xw,tableRow:Qw,text:Fw,thematicBreak:Zw,toml:Vu,yaml:Vu,definition:Vu,footnoteDefinition:Vu};function Vu(){}const Zy=-1,os=0,or=1,ns=2,Yf=3,Vf=4,If=5,Gf=6,Jy=7,Py=8,Yg=typeof self=="object"?self:globalThis,Pw=(n,l)=>{const i=(s,o)=>(n.set(o,s),s),r=s=>{if(n.has(s))return n.get(s);const[o,c]=l[s];switch(o){case os:case Zy:return i(c,s);case or:{const d=i([],s);for(const m of c)d.push(r(m));return d}case ns:{const d=i({},s);for(const[m,p]of c)d[r(m)]=r(p);return d}case Yf:return i(new Date(c),s);case Vf:{const{source:d,flags:m}=c;return i(new RegExp(d,m),s)}case If:{const d=i(new Map,s);for(const[m,p]of c)d.set(r(m),r(p));return d}case Gf:{const d=i(new Set,s);for(const m of c)d.add(r(m));return d}case Jy:{const{name:d,message:m}=c;return i(new Yg[d](m),s)}case Py:return i(BigInt(c),s);case"BigInt":return i(Object(BigInt(c)),s);case"ArrayBuffer":return i(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return i(new DataView(d),c)}}return i(new Yg[o](c),s)};return r},Vg=n=>Pw(new Map,n)(0),qi="",{toString:Ww}={},{keys:e2}=Object,lr=n=>{const l=typeof n;if(l!=="object"||!n)return[os,l];const i=Ww.call(n).slice(8,-1);switch(i){case"Array":return[or,qi];case"Object":return[ns,qi];case"Date":return[Yf,qi];case"RegExp":return[Vf,qi];case"Map":return[If,qi];case"Set":return[Gf,qi];case"DataView":return[or,i]}return i.includes("Array")?[or,i]:i.includes("Error")?[Jy,i]:[ns,i]},Iu=([n,l])=>n===os&&(l==="function"||l==="symbol"),t2=(n,l,i,r)=>{const s=(c,d)=>{const m=r.push(c)-1;return i.set(d,m),m},o=c=>{if(i.has(c))return i.get(c);let[d,m]=lr(c);switch(d){case os:{let y=c;switch(m){case"bigint":d=Py,y=c.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+m);y=null;break;case"undefined":return s([Zy],c)}return s([d,y],c)}case or:{if(m){let v=c;return m==="DataView"?v=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(v=new Uint8Array(c)),s([m,[...v]],c)}const y=[],g=s([d,y],c);for(const v of c)y.push(o(v));return g}case ns:{if(m)switch(m){case"BigInt":return s([m,c.toString()],c);case"Boolean":case"Number":case"String":return s([m,c.valueOf()],c)}if(l&&"toJSON"in c)return o(c.toJSON());const y=[],g=s([d,y],c);for(const v of e2(c))(n||!Iu(lr(c[v])))&&y.push([o(v),o(c[v])]);return g}case Yf:return s([d,c.toISOString()],c);case Vf:{const{source:y,flags:g}=c;return s([d,{source:y,flags:g}],c)}case If:{const y=[],g=s([d,y],c);for(const[v,S]of c)(n||!(Iu(lr(v))||Iu(lr(S))))&&y.push([o(v),o(S)]);return g}case Gf:{const y=[],g=s([d,y],c);for(const v of c)(n||!Iu(lr(v)))&&y.push(o(v));return g}}const{message:p}=c;return s([d,{name:m,message:p}],c)};return o},Ig=(n,{json:l,lossy:i}={})=>{const r=[];return t2(!(l||i),!!l,new Map,r)(n),r},ls=typeof structuredClone=="function"?(n,l)=>l&&("json"in l||"lossy"in l)?Vg(Ig(n,l)):structuredClone(n):(n,l)=>Vg(Ig(n,l));function n2(n,l){const i=[{type:"text",value:"↩"}];return l>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),i}function l2(n,l){return"Back to reference "+(n+1)+(l>1?"-"+l:"")}function i2(n){const l=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||n2,r=n.options.footnoteBackLabel||l2,s=n.options.footnoteLabel||"Footnotes",o=n.options.footnoteLabelTagName||"h2",c=n.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[m]);if(!p)continue;const y=n.all(p),g=String(p.identifier).toUpperCase(),v=ea(g.toLowerCase());let S=0;const E=[],x=n.footnoteCounts.get(g);for(;x!==void 0&&++S<=x;){E.length>0&&E.push({type:"text",value:" "});let q=typeof i=="string"?i:i(m,S);typeof q=="string"&&(q={type:"text",value:q}),E.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(m,S),className:["data-footnote-backref"]},children:Array.isArray(q)?q:[q]})}const C=y[y.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const q=C.children[C.children.length-1];q&&q.type==="text"?q.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...E)}else y.push(...E);const _={type:"element",tagName:"li",properties:{id:l+"fn-"+v},children:n.wrap(y,!0)};n.patch(p,_),d.push(_)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ls(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
57
+ `},{type:"element",tagName:"ol",properties:{},children:n.wrap(d,!0)},{type:"text",value:`
58
+ `}]}}const cs=(function(n){if(n==null)return s2;if(typeof n=="function")return fs(n);if(typeof n=="object")return Array.isArray(n)?a2(n):r2(n);if(typeof n=="string")return u2(n);throw new Error("Expected function, string, or object as test")});function a2(n){const l=[];let i=-1;for(;++i<n.length;)l[i]=cs(n[i]);return fs(r);function r(...s){let o=-1;for(;++o<l.length;)if(l[o].apply(this,s))return!0;return!1}}function r2(n){const l=n;return fs(i);function i(r){const s=r;let o;for(o in n)if(s[o]!==l[o])return!1;return!0}}function u2(n){return fs(l);function l(i){return i&&i.type===n}}function fs(n){return l;function l(i,r,s){return!!(o2(i)&&n.call(this,i,typeof r=="number"?r:void 0,s||void 0))}}function s2(){return!0}function o2(n){return n!==null&&typeof n=="object"&&"type"in n}const Wy=[],c2=!0,vf=!1,f2="skip";function e1(n,l,i,r){let s;typeof l=="function"&&typeof i!="function"?(r=i,i=l):s=l;const o=cs(s),c=r?-1:1;d(n,void 0,[])();function d(m,p,y){const g=m&&typeof m=="object"?m:{};if(typeof g.type=="string"){const S=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=Wy,E,x,C;if((!l||o(m,p,y[y.length-1]||void 0))&&(S=h2(i(m,y)),S[0]===vf))return S;if("children"in m&&m.children){const _=m;if(_.children&&S[0]!==f2)for(x=(r?_.children.length:-1)+c,C=y.concat(_);x>-1&&x<_.children.length;){const q=_.children[x];if(E=d(q,x,C)(),E[0]===vf)return E;x=typeof E[1]=="number"?E[1]:x+c}}return S}}}function h2(n){return Array.isArray(n)?n:typeof n=="number"?[c2,n]:n==null?Wy:[n]}function Kf(n,l,i,r){let s,o,c;typeof l=="function"&&typeof i!="function"?(o=void 0,c=l,s=i):(o=l,c=i,s=r),e1(n,o,d,s);function d(m,p){const y=p[p.length-1],g=y?y.children.indexOf(m):void 0;return c(m,g,y)}}const kf={}.hasOwnProperty,d2={};function p2(n,l){const i=l||d2,r=new Map,s=new Map,o=new Map,c={...Jw,...i.handlers},d={all:p,applyData:g2,definitionById:r,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:c,one:m,options:i,patch:m2,wrap:b2};return Kf(n,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?r:s,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),d;function m(y,g){const v=y.type,S=d.handlers[v];if(kf.call(d.handlers,v)&&S)return S(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in y){const{children:x,...C}=y,_=ls(C);return _.children=d.all(y),_}return ls(y)}return(d.options.unknownHandler||y2)(d,y,g)}function p(y){const g=[];if("children"in y){const v=y.children;let S=-1;for(;++S<v.length;){const E=d.one(v[S],y);if(E){if(S&&v[S-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Gg(E.value)),!Array.isArray(E)&&E.type==="element")){const x=E.children[0];x&&x.type==="text"&&(x.value=Gg(x.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function m2(n,l){n.position&&(l.position=lv(n))}function g2(n,l){let i=l;if(n&&n.data){const r=n.data.hName,s=n.data.hChildren,o=n.data.hProperties;if(typeof r=="string")if(i.type==="element")i.tagName=r;else{const c="children"in i?i.children:[i];i={type:"element",tagName:r,properties:{},children:c}}i.type==="element"&&o&&Object.assign(i.properties,ls(o)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function y2(n,l){const i=l.data||{},r="value"in l&&!(kf.call(i,"hProperties")||kf.call(i,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:n.all(l)};return n.patch(l,r),n.applyData(l,r)}function b2(n,l){const i=[];let r=-1;for(l&&i.push({type:"text",value:`
59
+ `});++r<n.length;)r&&i.push({type:"text",value:`
60
+ `}),i.push(n[r]);return l&&n.length>0&&i.push({type:"text",value:`
61
+ `}),i}function Gg(n){let l=0,i=n.charCodeAt(l);for(;i===9||i===32;)l++,i=n.charCodeAt(l);return n.slice(l)}function Kg(n,l){const i=p2(n,l),r=i.one(n,void 0),s=i2(i),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
62
+ `},s),o}function S2(n,l){return n&&"run"in n?async function(i,r){const s=Kg(i,{file:r,...l});await n.run(s,r)}:function(i,r){return Kg(i,{file:r,...n||l})}}function Qg(n){if(n)throw n}var Fc,Xg;function v2(){if(Xg)return Fc;Xg=1;var n=Object.prototype.hasOwnProperty,l=Object.prototype.toString,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=function(p){return typeof Array.isArray=="function"?Array.isArray(p):l.call(p)==="[object Array]"},o=function(p){if(!p||l.call(p)!=="[object Object]")return!1;var y=n.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!y&&!g)return!1;var v;for(v in p);return typeof v>"u"||n.call(p,v)},c=function(p,y){i&&y.name==="__proto__"?i(p,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):p[y.name]=y.newValue},d=function(p,y){if(y==="__proto__")if(n.call(p,y)){if(r)return r(p,y).value}else return;return p[y]};return Fc=function m(){var p,y,g,v,S,E,x=arguments[0],C=1,_=arguments.length,q=!1;for(typeof x=="boolean"&&(q=x,x=arguments[1]||{},C=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});C<_;++C)if(p=arguments[C],p!=null)for(y in p)g=d(x,y),v=d(p,y),x!==v&&(q&&v&&(o(v)||(S=s(v)))?(S?(S=!1,E=g&&s(g)?g:[]):E=g&&o(g)?g:{},c(x,{name:y,newValue:m(q,E,v)})):typeof v<"u"&&c(x,{name:y,newValue:v}));return x},Fc}var k2=v2();const Zc=vy(k2);function wf(n){if(typeof n!="object"||n===null)return!1;const l=Object.getPrototypeOf(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function w2(){const n=[],l={run:i,use:r};return l;function i(...s){let o=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...s);function d(m,...p){const y=n[++o];let g=-1;if(m){c(m);return}for(;++g<s.length;)(p[g]===null||p[g]===void 0)&&(p[g]=s[g]);s=p,y?E2(y,d)(...p):c(null,...p)}}function r(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),l}}function E2(n,l){let i;return r;function r(...c){const d=n.length>c.length;let m;d&&c.push(s);try{m=n.apply(this,c)}catch(p){const y=p;if(d&&i)throw y;return s(y)}d||(m&&m.then&&typeof m.then=="function"?m.then(o,s):m instanceof Error?s(m):o(m))}function s(c,...d){i||(i=!0,l(c,...d))}function o(c){s(null,c)}}const kn={basename:x2,dirname:A2,extname:T2,join:_2,sep:"/"};function x2(n,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');br(n);let i=0,r=-1,s=n.length,o;if(l===void 0||l.length===0||l.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(o){i=s+1;break}}else r<0&&(o=!0,r=s+1);return r<0?"":n.slice(i,r)}if(l===n)return"";let c=-1,d=l.length-1;for(;s--;)if(n.codePointAt(s)===47){if(o){i=s+1;break}}else c<0&&(o=!0,c=s+1),d>-1&&(n.codePointAt(s)===l.codePointAt(d--)?d<0&&(r=s):(d=-1,r=c));return i===r?r=c:r<0&&(r=n.length),n.slice(i,r)}function A2(n){if(br(n),n.length===0)return".";let l=-1,i=n.length,r;for(;--i;)if(n.codePointAt(i)===47){if(r){l=i;break}}else r||(r=!0);return l<0?n.codePointAt(0)===47?"/":".":l===1&&n.codePointAt(0)===47?"//":n.slice(0,l)}function T2(n){br(n);let l=n.length,i=-1,r=0,s=-1,o=0,c;for(;l--;){const d=n.codePointAt(l);if(d===47){if(c){r=l+1;break}continue}i<0&&(c=!0,i=l+1),d===46?s<0?s=l:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||i<0||o===0||o===1&&s===i-1&&s===r+1?"":n.slice(s,i)}function _2(...n){let l=-1,i;for(;++l<n.length;)br(n[l]),n[l]&&(i=i===void 0?n[l]:i+"/"+n[l]);return i===void 0?".":C2(i)}function C2(n){br(n);const l=n.codePointAt(0)===47;let i=O2(n,!l);return i.length===0&&!l&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),l?"/"+i:i}function O2(n,l){let i="",r=0,s=-1,o=0,c=-1,d,m;for(;++c<=n.length;){if(c<n.length)d=n.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(s===c-1||o===1))if(s!==c-1&&o===2){if(i.length<2||r!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(m=i.lastIndexOf("/"),m!==i.length-1){m<0?(i="",r=0):(i=i.slice(0,m),r=i.length-1-i.lastIndexOf("/")),s=c,o=0;continue}}else if(i.length>0){i="",r=0,s=c,o=0;continue}}l&&(i=i.length>0?i+"/..":"..",r=2)}else i.length>0?i+="/"+n.slice(s+1,c):i=n.slice(s+1,c),r=c-s-1;s=c,o=0}else d===46&&o>-1?o++:o=-1}return i}function br(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const N2={cwd:z2};function z2(){return"/"}function Ef(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function D2(n){if(typeof n=="string")n=new URL(n);else if(!Ef(n)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(n.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return M2(n)}function M2(n){if(n.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const l=n.pathname;let i=-1;for(;++i<l.length;)if(l.codePointAt(i)===37&&l.codePointAt(i+1)===50){const r=l.codePointAt(i+2);if(r===70||r===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(l)}const Jc=["history","path","basename","stem","extname","dirname"];class t1{constructor(l){let i;l?Ef(l)?i={path:l}:typeof l=="string"||L2(l)?i={value:l}:i=l:i={},this.cwd="cwd"in i?"":N2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Jc.length;){const o=Jc[r];o in i&&i[o]!==void 0&&i[o]!==null&&(this[o]=o==="history"?[...i[o]]:i[o])}let s;for(s in i)Jc.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?kn.basename(this.path):void 0}set basename(l){Wc(l,"basename"),Pc(l,"basename"),this.path=kn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?kn.dirname(this.path):void 0}set dirname(l){$g(this.basename,"dirname"),this.path=kn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?kn.extname(this.path):void 0}set extname(l){if(Pc(l,"extname"),$g(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=kn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){Ef(l)&&(l=D2(l)),Wc(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?kn.basename(this.path,this.extname):void 0}set stem(l){Wc(l,"stem"),Pc(l,"stem"),this.path=kn.join(this.dirname||"",l+(this.extname||""))}fail(l,i,r){const s=this.message(l,i,r);throw s.fatal=!0,s}info(l,i,r){const s=this.message(l,i,r);return s.fatal=void 0,s}message(l,i,r){const s=new kt(l,i,r);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Pc(n,l){if(n&&n.includes(kn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+kn.sep+"`")}function Wc(n,l){if(!n)throw new Error("`"+l+"` cannot be empty")}function $g(n,l){if(!n)throw new Error("Setting `"+l+"` requires `path` to be set too")}function L2(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const R2=(function(n){const r=this.constructor.prototype,s=r[n],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),B2={}.hasOwnProperty;class Qf extends R2{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=w2()}copy(){const l=new Qf;let i=-1;for(;++i<this.attachers.length;){const r=this.attachers[i];l.use(...r)}return l.data(Zc(!0,{},this.namespace)),l}data(l,i){return typeof l=="string"?arguments.length===2?(nf("data",this.frozen),this.namespace[l]=i,this):B2.call(this.namespace,l)&&this.namespace[l]||void 0:l?(nf("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const s=i.call(l,...r);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const i=Gu(l),r=this.parser||this.Parser;return ef("parse",r),r(String(i),i)}process(l,i){const r=this;return this.freeze(),ef("process",this.parser||this.Parser),tf("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(o,c){const d=Gu(l),m=r.parse(d);r.run(m,d,function(y,g,v){if(y||!g||!v)return p(y);const S=g,E=r.stringify(S,v);q2(E)?v.value=E:v.result=E,p(y,v)});function p(y,g){y||!g?c(y):o?o(g):i(void 0,g)}}}processSync(l){let i=!1,r;return this.freeze(),ef("processSync",this.parser||this.Parser),tf("processSync",this.compiler||this.Compiler),this.process(l,s),Zg("processSync","process",i),r;function s(o,c){i=!0,Qg(o),r=c}}run(l,i,r){Fg(l),this.freeze();const s=this.transformers;return!r&&typeof i=="function"&&(r=i,i=void 0),r?o(void 0,r):new Promise(o);function o(c,d){const m=Gu(i);s.run(l,m,p);function p(y,g,v){const S=g||l;y?d(y):c?c(S):r(void 0,S,v)}}}runSync(l,i){let r=!1,s;return this.run(l,i,o),Zg("runSync","run",r),s;function o(c,d){Qg(c),s=d,r=!0}}stringify(l,i){this.freeze();const r=Gu(i),s=this.compiler||this.Compiler;return tf("stringify",s),Fg(l),s(l,r)}use(l,...i){const r=this.attachers,s=this.namespace;if(nf("use",this.frozen),l!=null)if(typeof l=="function")m(l,i);else if(typeof l=="object")Array.isArray(l)?d(l):c(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function o(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[y,...g]=p;m(y,g)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))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(p.plugins),p.settings&&(s.settings=Zc(!0,s.settings,p.settings))}function d(p){let y=-1;if(p!=null)if(Array.isArray(p))for(;++y<p.length;){const g=p[y];o(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,y){let g=-1,v=-1;for(;++g<r.length;)if(r[g][0]===p){v=g;break}if(v===-1)r.push([p,...y]);else if(y.length>0){let[S,...E]=y;const x=r[v][1];wf(x)&&wf(S)&&(S=Zc(!0,x,S)),r[v]=[p,S,...E]}}}}const j2=new Qf().freeze();function ef(n,l){if(typeof l!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function tf(n,l){if(typeof l!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function nf(n,l){if(l)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Fg(n){if(!wf(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Zg(n,l,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+l+"` instead")}function Gu(n){return U2(n)?n:new t1(n)}function U2(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function q2(n){return typeof n=="string"||H2(n)}function H2(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const Y2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Jg=[],Pg={allowDangerousHtml:!0},V2=/^(https?|ircs?|mailto|xmpp)$/i,I2=[{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 G2(n){const l=K2(n),i=Q2(n);return X2(l.runSync(l.parse(i),i),n)}function K2(n){const l=n.rehypePlugins||Jg,i=n.remarkPlugins||Jg,r=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Pg}:Pg;return j2().use(Aw).use(i).use(S2,r).use(l)}function Q2(n){const l=n.children||"",i=new t1;return typeof l=="string"&&(i.value=l),i}function X2(n,l){const i=l.allowedElements,r=l.allowElement,s=l.components,o=l.disallowedElements,c=l.skipHtml,d=l.unwrapDisallowed,m=l.urlTransform||$2;for(const y of I2)Object.hasOwn(l,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Y2+y.id,void 0);return Kf(n,p),sv(n,{Fragment:le.Fragment,components:s,ignoreInvalidStyle:!0,jsx:le.jsx,jsxs:le.jsxs,passKeys:!0,passNode:!0});function p(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return c?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let S;for(S in Qc)if(Object.hasOwn(Qc,S)&&Object.hasOwn(y.properties,S)){const E=y.properties[S],x=Qc[S];(x===null||x.includes(y.tagName))&&(y.properties[S]=m(String(E||""),S,y))}}if(y.type==="element"){let S=i?!i.includes(y.tagName):o?o.includes(y.tagName):!1;if(!S&&r&&typeof g=="number"&&(S=!r(y,g,v)),S&&v&&typeof g=="number")return d&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function $2(n){const l=n.indexOf(":"),i=n.indexOf("?"),r=n.indexOf("#"),s=n.indexOf("/");return l===-1||s!==-1&&l>s||i!==-1&&l>i||r!==-1&&l>r||V2.test(n.slice(0,l))?n:""}function Wg(n,l){const i=String(n);if(typeof l!="string")throw new TypeError("Expected character");let r=0,s=i.indexOf(l);for(;s!==-1;)r++,s=i.indexOf(l,s+l.length);return r}function F2(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Z2(n,l,i){const s=cs((i||{}).ignore||[]),o=J2(l);let c=-1;for(;++c<o.length;)e1(n,"text",d);function d(p,y){let g=-1,v;for(;++g<y.length;){const S=y[g],E=v?v.children:void 0;if(s(S,E?E.indexOf(S):void 0,v))return;v=S}if(v)return m(p,y)}function m(p,y){const g=y[y.length-1],v=o[c][0],S=o[c][1];let E=0;const C=g.children.indexOf(p);let _=!1,q=[];v.lastIndex=0;let j=v.exec(p.value);for(;j;){const $=j.index,P={index:j.index,input:j.input,stack:[...y,p]};let D=S(...j,P);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?v.lastIndex=$+1:(E!==$&&q.push({type:"text",value:p.value.slice(E,$)}),Array.isArray(D)?q.push(...D):D&&q.push(D),E=$+j[0].length,_=!0),!v.global)break;j=v.exec(p.value)}return _?(E<p.value.length&&q.push({type:"text",value:p.value.slice(E)}),g.children.splice(C,1,...q)):q=[p],C+q.length}}function J2(n){const l=[];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 r=-1;for(;++r<i.length;){const s=i[r];l.push([P2(s[0]),W2(s[1])])}return l}function P2(n){return typeof n=="string"?new RegExp(F2(n),"g"):n}function W2(n){return typeof n=="function"?n:function(){return n}}const lf="phrasing",af=["autolink","link","image","label"];function eE(){return{transforms:[uE],enter:{literalAutolink:nE,literalAutolinkEmail:rf,literalAutolinkHttp:rf,literalAutolinkWww:rf},exit:{literalAutolink:rE,literalAutolinkEmail:aE,literalAutolinkHttp:lE,literalAutolinkWww:iE}}}function tE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:lf,notInConstruct:af},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:lf,notInConstruct:af},{character:":",before:"[ps]",after:"\\/",inConstruct:lf,notInConstruct:af}]}}function nE(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function rf(n){this.config.enter.autolinkProtocol.call(this,n)}function lE(n){this.config.exit.autolinkProtocol.call(this,n)}function iE(n){this.config.exit.data.call(this,n);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(n)}function aE(n){this.config.exit.autolinkEmail.call(this,n)}function rE(n){this.exit(n)}function uE(n){Z2(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,sE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),oE]],{ignore:["link","linkReference"]})}function sE(n,l,i,r,s){let o="";if(!n1(s)||(/^w/i.test(l)&&(i=l+i,l="",o="http://"),!cE(i)))return!1;const c=fE(i+r);if(!c[0])return!1;const d={type:"link",title:null,url:o+l+c[0],children:[{type:"text",value:l+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function oE(n,l,i,r){return!n1(r,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+i,children:[{type:"text",value:l+"@"+i}]}}function cE(n){const l=n.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function fE(n){const l=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!l)return[n,void 0];n=n.slice(0,l.index);let i=l[0],r=i.indexOf(")");const s=Wg(n,"(");let o=Wg(n,")");for(;r!==-1&&s>o;)n+=i.slice(0,r+1),i=i.slice(r+1),r=i.indexOf(")"),o++;return[n,i]}function n1(n,l){const i=n.input.charCodeAt(n.index-1);return(n.index===0||Ql(i)||us(i))&&(!l||i!==47)}l1.peek=vE;function hE(){this.buffer()}function dE(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function pE(){this.buffer()}function mE(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function gE(n){const l=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=mn(this.sliceSerialize(n)).toLowerCase(),i.label=l}function yE(n){this.exit(n)}function bE(n){const l=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=mn(this.sliceSerialize(n)).toLowerCase(),i.label=l}function SE(n){this.exit(n)}function vE(){return"["}function l1(n,l,i,r){const s=i.createTracker(r);let o=s.move("[^");const c=i.enter("footnoteReference"),d=i.enter("reference");return o+=s.move(i.safe(i.associationId(n),{after:"]",before:o})),d(),c(),o+=s.move("]"),o}function kE(){return{enter:{gfmFootnoteCallString:hE,gfmFootnoteCall:dE,gfmFootnoteDefinitionLabelString:pE,gfmFootnoteDefinition:mE},exit:{gfmFootnoteCallString:gE,gfmFootnoteCall:yE,gfmFootnoteDefinitionLabelString:bE,gfmFootnoteDefinition:SE}}}function wE(n){let l=!1;return n&&n.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:i,footnoteReference:l1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(r,s,o,c){const d=o.createTracker(c);let m=d.move("[^");const p=o.enter("footnoteDefinition"),y=o.enter("label");return m+=d.move(o.safe(o.associationId(r),{before:m,after:"]"})),y(),m+=d.move("]:"),r.children&&r.children.length>0&&(d.shift(4),m+=d.move((l?`
63
+ `:" ")+o.indentLines(o.containerFlow(r,d.current()),l?i1:EE))),p(),m}}function EE(n,l,i){return l===0?n:i1(n,l,i)}function i1(n,l,i){return(i?"":" ")+n}const xE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];a1.peek=OE;function AE(){return{canContainEols:["delete"],enter:{strikethrough:_E},exit:{strikethrough:CE}}}function TE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:xE}],handlers:{delete:a1}}}function _E(n){this.enter({type:"delete",children:[]},n)}function CE(n){this.exit(n)}function a1(n,l,i,r){const s=i.createTracker(r),o=i.enter("strikethrough");let c=s.move("~~");return c+=i.containerPhrasing(n,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),o(),c}function OE(){return"~"}function NE(n){return n.length}function zE(n,l){const i=l||{},r=(i.align||[]).concat(),s=i.stringLength||NE,o=[],c=[],d=[],m=[];let p=0,y=-1;for(;++y<n.length;){const x=[],C=[];let _=-1;for(n[y].length>p&&(p=n[y].length);++_<n[y].length;){const q=DE(n[y][_]);if(i.alignDelimiters!==!1){const j=s(q);C[_]=j,(m[_]===void 0||j>m[_])&&(m[_]=j)}x.push(q)}c[y]=x,d[y]=C}let g=-1;if(typeof r=="object"&&"length"in r)for(;++g<p;)o[g]=ey(r[g]);else{const x=ey(r);for(;++g<p;)o[g]=x}g=-1;const v=[],S=[];for(;++g<p;){const x=o[g];let C="",_="";x===99?(C=":",_=":"):x===108?C=":":x===114&&(_=":");let q=i.alignDelimiters===!1?1:Math.max(1,m[g]-C.length-_.length);const j=C+"-".repeat(q)+_;i.alignDelimiters!==!1&&(q=C.length+q+_.length,q>m[g]&&(m[g]=q),S[g]=q),v[g]=j}c.splice(1,0,v),d.splice(1,0,S),y=-1;const E=[];for(;++y<c.length;){const x=c[y],C=d[y];g=-1;const _=[];for(;++g<p;){const q=x[g]||"";let j="",$="";if(i.alignDelimiters!==!1){const P=m[g]-(C[g]||0),D=o[g];D===114?j=" ".repeat(P):D===99?P%2?(j=" ".repeat(P/2+.5),$=" ".repeat(P/2-.5)):(j=" ".repeat(P/2),$=j):$=" ".repeat(P)}i.delimiterStart!==!1&&!g&&_.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&q==="")&&(i.delimiterStart!==!1||g)&&_.push(" "),i.alignDelimiters!==!1&&_.push(j),_.push(q),i.alignDelimiters!==!1&&_.push($),i.padding!==!1&&_.push(" "),(i.delimiterEnd!==!1||g!==p-1)&&_.push("|")}E.push(i.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return E.join(`
64
+ `)}function DE(n){return n==null?"":String(n)}function ey(n){const l=typeof n=="string"?n.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function ME(n,l,i,r){const s=i.enter("blockquote"),o=i.createTracker(r);o.move("> "),o.shift(2);const c=i.indentLines(i.containerFlow(n,o.current()),LE);return s(),c}function LE(n,l,i){return">"+(i?"":" ")+n}function RE(n,l){return ty(n,l.inConstruct,!0)&&!ty(n,l.notInConstruct,!1)}function ty(n,l,i){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return i;let r=-1;for(;++r<l.length;)if(n.includes(l[r]))return!0;return!1}function ny(n,l,i,r){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
65
+ `&&RE(i.stack,i.unsafe[s]))return/[ \t]/.test(r.before)?"":" ";return`\\
66
+ `}function BE(n,l){const i=String(n);let r=i.indexOf(l),s=r,o=0,c=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===s?++o>c&&(c=o):o=1,s=r+l.length,r=i.indexOf(l,s);return c}function jE(n,l){return!!(l.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function UE(n){const l=n.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function qE(n,l,i,r){const s=UE(i),o=n.value||"",c=s==="`"?"GraveAccent":"Tilde";if(jE(n,i)){const g=i.enter("codeIndented"),v=i.indentLines(o,HE);return g(),v}const d=i.createTracker(r),m=s.repeat(Math.max(BE(o,s)+1,3)),p=i.enter("codeFenced");let y=d.move(m);if(n.lang){const g=i.enter(`codeFencedLang${c}`);y+=d.move(i.safe(n.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(n.lang&&n.meta){const g=i.enter(`codeFencedMeta${c}`);y+=d.move(" "),y+=d.move(i.safe(n.meta,{before:y,after:`
67
+ `,encode:["`"],...d.current()})),g()}return y+=d.move(`
68
+ `),o&&(y+=d.move(o+`
69
+ `)),y+=d.move(m),p(),y}function HE(n,l,i){return(i?"":" ")+n}function Xf(n){const l=n.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function YE(n,l,i,r){const s=Xf(i),o=s==='"'?"Quote":"Apostrophe",c=i.enter("definition");let d=i.enter("label");const m=i.createTracker(r);let p=m.move("[");return p+=m.move(i.safe(i.associationId(n),{before:p,after:"]",...m.current()})),p+=m.move("]: "),d(),!n.url||/[\0- \u007F]/.test(n.url)?(d=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=i.enter("destinationRaw"),p+=m.move(i.safe(n.url,{before:p,after:n.title?" ":`
70
+ `,...m.current()}))),d(),n.title&&(d=i.enter(`title${o}`),p+=m.move(" "+s),p+=m.move(i.safe(n.title,{before:p,after:s,...m.current()})),p+=m.move(s),d()),c(),p}function VE(n){const l=n.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function dr(n){return"&#x"+n.toString(16).toUpperCase()+";"}function is(n,l,i){const r=Zi(n),s=Zi(l);return r===void 0?s===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}r1.peek=IE;function r1(n,l,i,r){const s=VE(i),o=i.enter("emphasis"),c=i.createTracker(r),d=c.move(s);let m=c.move(i.containerPhrasing(n,{after:s,before:d,...c.current()}));const p=m.charCodeAt(0),y=is(r.before.charCodeAt(r.before.length-1),p,s);y.inside&&(m=dr(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=is(r.after.charCodeAt(0),g,s);v.inside&&(m=m.slice(0,-1)+dr(g));const S=c.move(s);return o(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+S}function IE(n,l,i){return i.options.emphasis||"*"}function GE(n,l){let i=!1;return Kf(n,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return i=!0,vf}),!!((!n.depth||n.depth<3)&&Uf(n)&&(l.options.setext||i))}function KE(n,l,i,r){const s=Math.max(Math.min(6,n.depth||1),1),o=i.createTracker(r);if(GE(n,i)){const y=i.enter("headingSetext"),g=i.enter("phrasing"),v=i.containerPhrasing(n,{...o.current(),before:`
71
+ `,after:`
72
+ `});return g(),y(),v+`
73
+ `+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
74
+ `))+1))}const c="#".repeat(s),d=i.enter("headingAtx"),m=i.enter("phrasing");o.move(c+" ");let p=i.containerPhrasing(n,{before:"# ",after:`
75
+ `,...o.current()});return/^[\t ]/.test(p)&&(p=dr(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,i.options.closeAtx&&(p+=" "+c),m(),d(),p}u1.peek=QE;function u1(n){return n.value||""}function QE(){return"<"}s1.peek=XE;function s1(n,l,i,r){const s=Xf(i),o=s==='"'?"Quote":"Apostrophe",c=i.enter("image");let d=i.enter("label");const m=i.createTracker(r);let p=m.move("![");return p+=m.move(i.safe(n.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),d(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(d=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=i.enter("destinationRaw"),p+=m.move(i.safe(n.url,{before:p,after:n.title?" ":")",...m.current()}))),d(),n.title&&(d=i.enter(`title${o}`),p+=m.move(" "+s),p+=m.move(i.safe(n.title,{before:p,after:s,...m.current()})),p+=m.move(s),d()),p+=m.move(")"),c(),p}function XE(){return"!"}o1.peek=$E;function o1(n,l,i,r){const s=n.referenceType,o=i.enter("imageReference");let c=i.enter("label");const d=i.createTracker(r);let m=d.move("![");const p=i.safe(n.alt,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),c();const y=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(n),{before:m,after:"]",...d.current()});return c(),i.stack=y,o(),s==="full"||!p||p!==g?m+=d.move(g+"]"):s==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function $E(){return"!"}c1.peek=FE;function c1(n,l,i){let r=n.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(r);)s+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<i.unsafe.length;){const c=i.unsafe[o],d=i.compilePattern(c);let m;if(c.atBreak)for(;m=d.exec(r);){let p=m.index;r.charCodeAt(p)===10&&r.charCodeAt(p-1)===13&&p--,r=r.slice(0,p)+" "+r.slice(m.index+1)}}return s+r+s}function FE(){return"`"}function f1(n,l){const i=Uf(n);return!!(!l.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))}h1.peek=ZE;function h1(n,l,i,r){const s=Xf(i),o=s==='"'?"Quote":"Apostrophe",c=i.createTracker(r);let d,m;if(f1(n,i)){const y=i.stack;i.stack=[],d=i.enter("autolink");let g=c.move("<");return g+=c.move(i.containerPhrasing(n,{before:g,after:">",...c.current()})),g+=c.move(">"),d(),i.stack=y,g}d=i.enter("link"),m=i.enter("label");let p=c.move("[");return p+=c.move(i.containerPhrasing(n,{before:p,after:"](",...c.current()})),p+=c.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=i.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(i.safe(n.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(m=i.enter("destinationRaw"),p+=c.move(i.safe(n.url,{before:p,after:n.title?" ":")",...c.current()}))),m(),n.title&&(m=i.enter(`title${o}`),p+=c.move(" "+s),p+=c.move(i.safe(n.title,{before:p,after:s,...c.current()})),p+=c.move(s),m()),p+=c.move(")"),d(),p}function ZE(n,l,i){return f1(n,i)?"<":"["}d1.peek=JE;function d1(n,l,i,r){const s=n.referenceType,o=i.enter("linkReference");let c=i.enter("label");const d=i.createTracker(r);let m=d.move("[");const p=i.containerPhrasing(n,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),c();const y=i.stack;i.stack=[],c=i.enter("reference");const g=i.safe(i.associationId(n),{before:m,after:"]",...d.current()});return c(),i.stack=y,o(),s==="full"||!p||p!==g?m+=d.move(g+"]"):s==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function JE(){return"["}function $f(n){const l=n.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function PE(n){const l=$f(n),i=n.options.bulletOther;if(!i)return l==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+i+"`) to be different");return i}function WE(n){const l=n.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function p1(n){const l=n.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function ex(n,l,i,r){const s=i.enter("list"),o=i.bulletCurrent;let c=n.ordered?WE(i):$f(i);const d=n.ordered?c==="."?")":".":PE(i);let m=l&&i.bulletLastUsed?c===i.bulletLastUsed:!1;if(!n.ordered){const y=n.children?n.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.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&&(m=!0),p1(i)===c&&y){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"){m=!0;break}}}}m&&(c=d),i.bulletCurrent=c;const p=i.containerFlow(n,r);return i.bulletLastUsed=c,i.bulletCurrent=o,s(),p}function tx(n){const l=n.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function nx(n,l,i,r){const s=tx(i);let o=i.bulletCurrent||$f(i);l&&l.type==="list"&&l.ordered&&(o=(typeof l.start=="number"&&l.start>-1?l.start:1)+(i.options.incrementListMarker===!1?0:l.children.indexOf(n))+o);let c=o.length+1;(s==="tab"||s==="mixed"&&(l&&l.type==="list"&&l.spread||n.spread))&&(c=Math.ceil(c/4)*4);const d=i.createTracker(r);d.move(o+" ".repeat(c-o.length)),d.shift(c);const m=i.enter("listItem"),p=i.indentLines(i.containerFlow(n,d.current()),y);return m(),p;function y(g,v,S){return v?(S?"":" ".repeat(c))+g:(S?o:o+" ".repeat(c-o.length))+g}}function lx(n,l,i,r){const s=i.enter("paragraph"),o=i.enter("phrasing"),c=i.containerPhrasing(n,r);return o(),s(),c}const ix=cs(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ax(n,l,i,r){return(n.children.some(function(c){return ix(c)})?i.containerPhrasing:i.containerFlow).call(i,n,r)}function rx(n){const l=n.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}m1.peek=ux;function m1(n,l,i,r){const s=rx(i),o=i.enter("strong"),c=i.createTracker(r),d=c.move(s+s);let m=c.move(i.containerPhrasing(n,{after:s,before:d,...c.current()}));const p=m.charCodeAt(0),y=is(r.before.charCodeAt(r.before.length-1),p,s);y.inside&&(m=dr(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=is(r.after.charCodeAt(0),g,s);v.inside&&(m=m.slice(0,-1)+dr(g));const S=c.move(s+s);return o(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+S}function ux(n,l,i){return i.options.strong||"*"}function sx(n,l,i,r){return i.safe(n.value,r)}function ox(n){const l=n.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function cx(n,l,i){const r=(p1(i)+(i.options.ruleSpaces?" ":"")).repeat(ox(i));return i.options.ruleSpaces?r.slice(0,-1):r}const g1={blockquote:ME,break:ny,code:qE,definition:YE,emphasis:r1,hardBreak:ny,heading:KE,html:u1,image:s1,imageReference:o1,inlineCode:c1,link:h1,linkReference:d1,list:ex,listItem:nx,paragraph:lx,root:ax,strong:m1,text:sx,thematicBreak:cx};function fx(){return{enter:{table:hx,tableData:ly,tableHeader:ly,tableRow:px},exit:{codeText:mx,table:dx,tableData:uf,tableHeader:uf,tableRow:uf}}}function hx(n){const l=n._align;this.enter({type:"table",align:l.map(function(i){return i==="none"?null:i}),children:[]},n),this.data.inTable=!0}function dx(n){this.exit(n),this.data.inTable=void 0}function px(n){this.enter({type:"tableRow",children:[]},n)}function uf(n){this.exit(n)}function ly(n){this.enter({type:"tableCell",children:[]},n)}function mx(n){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,gx));const i=this.stack[this.stack.length-1];i.type,i.value=l,this.exit(n)}function gx(n,l){return l==="|"?l:n}function yx(n){const l=n||{},i=l.tableCellPadding,r=l.tablePipeAlign,s=l.stringLength,o=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
76
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:m,tableRow:d}};function c(S,E,x,C){return p(y(S,x,C),S.align)}function d(S,E,x,C){const _=g(S,x,C),q=p([_]);return q.slice(0,q.indexOf(`
77
+ `))}function m(S,E,x,C){const _=x.enter("tableCell"),q=x.enter("phrasing"),j=x.containerPhrasing(S,{...C,before:o,after:o});return q(),_(),j}function p(S,E){return zE(S,{align:E,alignDelimiters:r,padding:i,stringLength:s})}function y(S,E,x){const C=S.children;let _=-1;const q=[],j=E.enter("table");for(;++_<C.length;)q[_]=g(C[_],E,x);return j(),q}function g(S,E,x){const C=S.children;let _=-1;const q=[],j=E.enter("tableRow");for(;++_<C.length;)q[_]=m(C[_],S,E,x);return j(),q}function v(S,E,x){let C=g1.inlineCode(S,E,x);return x.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function bx(){return{exit:{taskListCheckValueChecked:iy,taskListCheckValueUnchecked:iy,paragraph:vx}}}function Sx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:kx}}}function iy(n){const l=this.stack[this.stack.length-2];l.type,l.checked=n.type==="taskListCheckValueChecked"}function vx(n){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const r=i.children[0];if(r&&r.type==="text"){const s=l.children;let o=-1,c;for(;++o<s.length;){const d=s[o];if(d.type==="paragraph"){c=d;break}}c===i&&(r.value=r.value.slice(1),r.value.length===0?i.children.shift():i.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,i.position.start=Object.assign({},r.position.start)))}}this.exit(n)}function kx(n,l,i,r){const s=n.children[0],o=typeof n.checked=="boolean"&&s&&s.type==="paragraph",c="["+(n.checked?"x":" ")+"] ",d=i.createTracker(r);o&&d.move(c);let m=g1.listItem(n,l,i,{...r,...d.current()});return o&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(y){return y+c}}function wx(){return[eE(),kE(),AE(),fx(),bx()]}function Ex(n){return{extensions:[tE(),wE(n),TE(),yx(n),Sx()]}}const xx={tokenize:Nx,partial:!0},y1={tokenize:zx,partial:!0},b1={tokenize:Dx,partial:!0},S1={tokenize:Mx,partial:!0},Ax={tokenize:Lx,partial:!0},v1={name:"wwwAutolink",tokenize:Cx,previous:w1},k1={name:"protocolAutolink",tokenize:Ox,previous:E1},$n={name:"emailAutolink",tokenize:_x,previous:x1},En={};function Tx(){return{text:En}}let Vl=48;for(;Vl<123;)En[Vl]=$n,Vl++,Vl===58?Vl=65:Vl===91&&(Vl=97);En[43]=$n;En[45]=$n;En[46]=$n;En[95]=$n;En[72]=[$n,k1];En[104]=[$n,k1];En[87]=[$n,v1];En[119]=[$n,v1];function _x(n,l,i){const r=this;let s,o;return c;function c(g){return!xf(g)||!x1.call(r,r.previous)||Ff(r.events)?i(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),d(g))}function d(g){return xf(g)?(n.consume(g),d):g===64?(n.consume(g),m):i(g)}function m(g){return g===46?n.check(Ax,y,p)(g):g===45||g===95||vt(g)?(o=!0,n.consume(g),m):y(g)}function p(g){return n.consume(g),s=!0,m}function y(g){return o&&s&&Tt(r.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),l(g)):i(g)}}function Cx(n,l,i){const r=this;return s;function s(c){return c!==87&&c!==119||!w1.call(r,r.previous)||Ff(r.events)?i(c):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(xx,n.attempt(y1,n.attempt(b1,o),i),i)(c))}function o(c){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),l(c)}}function Ox(n,l,i){const r=this;let s="",o=!1;return c;function c(g){return(g===72||g===104)&&E1.call(r,r.previous)&&!Ff(r.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),n.consume(g),d):i(g)}function d(g){if(Tt(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),m}return i(g)}function m(g){return g===47?(n.consume(g),o?p:(o=!0,m)):i(g)}function p(g){return g===null||ts(g)||Ie(g)||Ql(g)||us(g)?i(g):n.attempt(y1,n.attempt(b1,y),i)(g)}function y(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),l(g)}}function Nx(n,l,i){let r=0;return s;function s(c){return(c===87||c===119)&&r<3?(r++,n.consume(c),s):c===46&&r===3?(n.consume(c),o):i(c)}function o(c){return c===null?i(c):l(c)}}function zx(n,l,i){let r,s,o;return c;function c(p){return p===46||p===95?n.check(S1,m,d)(p):p===null||Ie(p)||Ql(p)||p!==45&&us(p)?m(p):(o=!0,n.consume(p),c)}function d(p){return p===95?r=!0:(s=r,r=void 0),n.consume(p),c}function m(p){return s||r||!o?i(p):l(p)}}function Dx(n,l){let i=0,r=0;return s;function s(c){return c===40?(i++,n.consume(c),s):c===41&&r<i?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?n.check(S1,l,o)(c):c===null||Ie(c)||Ql(c)?l(c):(n.consume(c),s)}function o(c){return c===41&&r++,n.consume(c),s}}function Mx(n,l,i){return r;function r(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),r):d===38?(n.consume(d),o):d===93?(n.consume(d),s):d===60||d===null||Ie(d)||Ql(d)?l(d):i(d)}function s(d){return d===null||d===40||d===91||Ie(d)||Ql(d)?l(d):r(d)}function o(d){return Tt(d)?c(d):i(d)}function c(d){return d===59?(n.consume(d),r):Tt(d)?(n.consume(d),c):i(d)}}function Lx(n,l,i){return r;function r(o){return n.consume(o),s}function s(o){return vt(o)?i(o):l(o)}}function w1(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Ie(n)}function E1(n){return!Tt(n)}function x1(n){return!(n===47||xf(n))}function xf(n){return n===43||n===45||n===46||n===95||vt(n)}function Ff(n){let l=n.length,i=!1;for(;l--;){const r=n[l][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){i=!0;break}if(r._gfmAutolinkLiteralWalkedInto){i=!1;break}}return n.length>0&&!i&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const Rx={tokenize:Ix,partial:!0};function Bx(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Hx,continuation:{tokenize:Yx},exit:Vx}},text:{91:{name:"gfmFootnoteCall",tokenize:qx},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:jx,resolveTo:Ux}}}}function jx(n,l,i){const r=this;let s=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let c;for(;s--;){const m=r.events[s][1];if(m.type==="labelImage"){c=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return d;function d(m){if(!c||!c._balanced)return i(m);const p=mn(r.sliceSerialize({start:c.end,end:r.now()}));return p.codePointAt(0)!==94||!o.includes(p.slice(1))?i(m):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(m),n.exit("gfmFootnoteCallLabelMarker"),l(m))}}function Ux(n,l){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 r={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 o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},n[n.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[n[i+1],n[i+2],["enter",r,l],n[i+3],n[i+4],["enter",s,l],["exit",s,l],["enter",o,l],["enter",c,l],["exit",c,l],["exit",o,l],n[n.length-2],n[n.length-1],["exit",r,l]];return n.splice(i,n.length-i+1,...d),n}function qx(n,l,i){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,c;return d;function d(g){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),m}function m(g){return g!==94?i(g):(n.enter("gfmFootnoteCallMarker"),n.consume(g),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",p)}function p(g){if(o>999||g===93&&!c||g===null||g===91||Ie(g))return i(g);if(g===93){n.exit("chunkString");const v=n.exit("gfmFootnoteCallString");return s.includes(mn(r.sliceSerialize(v)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),l):i(g)}return Ie(g)||(c=!0),o++,n.consume(g),g===92?y:p}function y(g){return g===91||g===92||g===93?(n.consume(g),o++,p):p(g)}}function Hx(n,l,i){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,c=0,d;return m;function m(E){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(E),n.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(E){return E===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(E),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",y):i(E)}function y(E){if(c>999||E===93&&!d||E===null||E===91||Ie(E))return i(E);if(E===93){n.exit("chunkString");const x=n.exit("gfmFootnoteDefinitionLabelString");return o=mn(r.sliceSerialize(x)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(E),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),v}return Ie(E)||(d=!0),c++,n.consume(E),E===92?g:y}function g(E){return E===91||E===92||E===93?(n.consume(E),c++,y):y(E)}function v(E){return E===58?(n.enter("definitionMarker"),n.consume(E),n.exit("definitionMarker"),s.includes(o)||s.push(o),Ne(n,S,"gfmFootnoteDefinitionWhitespace")):i(E)}function S(E){return l(E)}}function Yx(n,l,i){return n.check(yr,l,n.attempt(Rx,l,i))}function Vx(n){n.exit("gfmFootnoteDefinition")}function Ix(n,l,i){const r=this;return Ne(n,s,"gfmFootnoteDefinitionIndent",5);function s(o){const c=r.events[r.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?l(o):i(o)}}function Gx(n){let i=(n||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:s};return i==null&&(i=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function s(c,d){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let p=m;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[m][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[m][1].end)},g={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[m][1].start)},v=[["enter",y,d],["enter",c[p][1],d],["exit",c[p][1],d],["enter",g,d]],S=d.parser.constructs.insideSpan.null;S&&Xt(v,v.length,0,ss(S,c.slice(p+1,m),d)),Xt(v,v.length,0,[["exit",g,d],["enter",c[m][1],d],["exit",c[m][1],d],["exit",y,d]]),Xt(c,p-1,m-p+3,v),m=p+v.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type="data");return c}function o(c,d,m){const p=this.previous,y=this.events;let g=0;return v;function v(E){return p===126&&y[y.length-1][1].type!=="characterEscape"?m(E):(c.enter("strikethroughSequenceTemporary"),S(E))}function S(E){const x=Zi(p);if(E===126)return g>1?m(E):(c.consume(E),g++,S);if(g<2&&!i)return m(E);const C=c.exit("strikethroughSequenceTemporary"),_=Zi(E);return C._open=!_||_===2&&!!x,C._close=!x||x===2&&!!_,d(E)}}}class Kx{constructor(){this.map=[]}add(l,i,r){Qx(this,l,i,r)}consume(l){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let i=this.map.length;const r=[];for(;i>0;)i-=1,r.push(l.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),l.length=this.map[i][0];r.push(l.slice()),l.length=0;let s=r.pop();for(;s;){for(const o of s)l.push(o);s=r.pop()}this.map.length=0}}function Qx(n,l,i,r){let s=0;if(!(i===0&&r.length===0)){for(;s<n.map.length;){if(n.map[s][0]===l){n.map[s][1]+=i,n.map[s][2].push(...r);return}s+=1}n.map.push([l,i,r])}}function Xx(n,l){let i=!1;const r=[];for(;l<n.length;){const s=n[l];if(i){if(s[0]==="enter")s[1].type==="tableContent"&&r.push(n[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[l-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(i=!0);l+=1}return r}function $x(){return{flow:{null:{name:"table",tokenize:Fx,resolveAll:Zx}}}}function Fx(n,l,i){const r=this;let s=0,o=0,c;return d;function d(B){let te=r.events.length-1;for(;te>-1;){const W=r.events[te][1].type;if(W==="lineEnding"||W==="linePrefix")te--;else break}const X=te>-1?r.events[te][1].type:null,re=X==="tableHead"||X==="tableRow"?D:m;return re===D&&r.parser.lazy[r.now().line]?i(B):re(B)}function m(B){return n.enter("tableHead"),n.enter("tableRow"),p(B)}function p(B){return B===124||(c=!0,o+=1),y(B)}function y(B){return B===null?i(B):he(B)?o>1?(o=0,r.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),S):i(B):Ae(B)?Ne(n,y,"whitespace")(B):(o+=1,c&&(c=!1,s+=1),B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),c=!0,y):(n.enter("data"),g(B)))}function g(B){return B===null||B===124||Ie(B)?(n.exit("data"),y(B)):(n.consume(B),B===92?v:g)}function v(B){return B===92||B===124?(n.consume(B),g):g(B)}function S(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?i(B):(n.enter("tableDelimiterRow"),c=!1,Ae(B)?Ne(n,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):E(B))}function E(B){return B===45||B===58?C(B):B===124?(c=!0,n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),x):P(B)}function x(B){return Ae(B)?Ne(n,C,"whitespace")(B):C(B)}function C(B){return B===58?(o+=1,c=!0,n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),_):B===45?(o+=1,_(B)):B===null||he(B)?$(B):P(B)}function _(B){return B===45?(n.enter("tableDelimiterFiller"),q(B)):P(B)}function q(B){return B===45?(n.consume(B),q):B===58?(c=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(B),n.exit("tableDelimiterMarker"),j):(n.exit("tableDelimiterFiller"),j(B))}function j(B){return Ae(B)?Ne(n,$,"whitespace")(B):$(B)}function $(B){return B===124?E(B):B===null||he(B)?!c||s!==o?P(B):(n.exit("tableDelimiterRow"),n.exit("tableHead"),l(B)):P(B)}function P(B){return i(B)}function D(B){return n.enter("tableRow"),K(B)}function K(B){return B===124?(n.enter("tableCellDivider"),n.consume(B),n.exit("tableCellDivider"),K):B===null||he(B)?(n.exit("tableRow"),l(B)):Ae(B)?Ne(n,K,"whitespace")(B):(n.enter("data"),Z(B))}function Z(B){return B===null||B===124||Ie(B)?(n.exit("data"),K(B)):(n.consume(B),B===92?ae:Z)}function ae(B){return B===92||B===124?(n.consume(B),Z):Z(B)}}function Zx(n,l){let i=-1,r=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,m=0,p,y,g;const v=new Kx;for(;++i<n.length;){const S=n[i],E=S[1];S[0]==="enter"?E.type==="tableHead"?(d=!1,m!==0&&(ay(v,l,m,p,y),y=void 0,m=0),p={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(i,0,[["enter",p,l]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(r=!0,g=void 0,o=[0,0,0,0],c=[0,i+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(i,0,[["enter",y,l]])),s=E.type==="tableDelimiterRow"?2:y?3:1):s&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(r=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],g=Ku(v,l,o,s,void 0,g),o=[0,0,0,0]),c[2]=i)):E.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(c[0]=c[1],g=Ku(v,l,o,s,void 0,g)),o=c,c=[o[1],i,0,0])):E.type==="tableHead"?(d=!0,m=i):E.type==="tableRow"||E.type==="tableDelimiterRow"?(m=i,o[1]!==0?(c[0]=c[1],g=Ku(v,l,o,s,i,g)):c[1]!==0&&(g=Ku(v,l,c,s,i,g)),s=0):s&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=i)}for(m!==0&&ay(v,l,m,p,y),v.consume(l.events),i=-1;++i<l.events.length;){const S=l.events[i];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=Xx(l.events,i))}return n}function Ku(n,l,i,r,s,o){const c=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(o.end=Object.assign({},Ii(l.events,i[0])),n.add(i[0],0,[["exit",o,l]]));const m=Ii(l.events,i[1]);if(o={type:c,start:Object.assign({},m),end:Object.assign({},m)},n.add(i[1],0,[["enter",o,l]]),i[2]!==0){const p=Ii(l.events,i[2]),y=Ii(l.events,i[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},y)};if(n.add(i[2],0,[["enter",g,l]]),r!==2){const v=l.events[i[2]],S=l.events[i[3]];if(v[1].end=Object.assign({},S[1].end),v[1].type="chunkText",v[1].contentType="text",i[3]>i[2]+1){const E=i[2]+1,x=i[3]-i[2]-1;n.add(E,x,[])}}n.add(i[3]+1,0,[["exit",g,l]])}return s!==void 0&&(o.end=Object.assign({},Ii(l.events,s)),n.add(s,0,[["exit",o,l]]),o=void 0),o}function ay(n,l,i,r,s){const o=[],c=Ii(l.events,i);s&&(s.end=Object.assign({},c),o.push(["exit",s,l])),r.end=Object.assign({},c),o.push(["exit",r,l]),n.add(i+1,0,o)}function Ii(n,l){const i=n[l],r=i[0]==="enter"?"start":"end";return i[1][r]}const Jx={name:"tasklistCheck",tokenize:Wx};function Px(){return{text:{91:Jx}}}function Wx(n,l,i){const r=this;return s;function s(m){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?i(m):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),o)}function o(m){return Ie(m)?(n.enter("taskListCheckValueUnchecked"),n.consume(m),n.exit("taskListCheckValueUnchecked"),c):m===88||m===120?(n.enter("taskListCheckValueChecked"),n.consume(m),n.exit("taskListCheckValueChecked"),c):i(m)}function c(m){return m===93?(n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),d):i(m)}function d(m){return he(m)?l(m):Ae(m)?n.check({tokenize:eA},l,i)(m):i(m)}}function eA(n,l,i){return Ne(n,r,"whitespace");function r(s){return s===null?i(s):l(s)}}function tA(n){return Ry([Tx(),Bx(),Gx(n),$x(),Px()])}const nA={};function lA(n){const l=this,i=n||nA,r=l.data(),s=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),c=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);s.push(tA(i)),o.push(wx()),c.push(Ex(i))}const Zf=Symbol.for("yaml.alias"),Af=Symbol.for("yaml.document"),wl=Symbol.for("yaml.map"),A1=Symbol.for("yaml.pair"),wn=Symbol.for("yaml.scalar"),ta=Symbol.for("yaml.seq"),on=Symbol.for("yaml.node.type"),Fl=n=>!!n&&typeof n=="object"&&n[on]===Zf,hs=n=>!!n&&typeof n=="object"&&n[on]===Af,Sr=n=>!!n&&typeof n=="object"&&n[on]===wl,lt=n=>!!n&&typeof n=="object"&&n[on]===A1,Ke=n=>!!n&&typeof n=="object"&&n[on]===wn,vr=n=>!!n&&typeof n=="object"&&n[on]===ta;function tt(n){if(n&&typeof n=="object")switch(n[on]){case wl:case ta:return!0}return!1}function nt(n){if(n&&typeof n=="object")switch(n[on]){case Zf:case wl:case wn:case ta:return!0}return!1}const T1=n=>(Ke(n)||tt(n))&&!!n.anchor,Il=Symbol("break visit"),iA=Symbol("skip children"),cr=Symbol("remove node");function na(n,l){const i=aA(l);hs(n)?Gi(null,n.contents,i,Object.freeze([n]))===cr&&(n.contents=null):Gi(null,n,i,Object.freeze([]))}na.BREAK=Il;na.SKIP=iA;na.REMOVE=cr;function Gi(n,l,i,r){const s=rA(n,l,i,r);if(nt(s)||lt(s))return uA(n,r,s),Gi(n,s,i,r);if(typeof s!="symbol"){if(tt(l)){r=Object.freeze(r.concat(l));for(let o=0;o<l.items.length;++o){const c=Gi(o,l.items[o],i,r);if(typeof c=="number")o=c-1;else{if(c===Il)return Il;c===cr&&(l.items.splice(o,1),o-=1)}}}else if(lt(l)){r=Object.freeze(r.concat(l));const o=Gi("key",l.key,i,r);if(o===Il)return Il;o===cr&&(l.key=null);const c=Gi("value",l.value,i,r);if(c===Il)return Il;c===cr&&(l.value=null)}}return s}function aA(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function rA(n,l,i,r){var s,o,c,d,m;if(typeof i=="function")return i(n,l,r);if(Sr(l))return(s=i.Map)==null?void 0:s.call(i,n,l,r);if(vr(l))return(o=i.Seq)==null?void 0:o.call(i,n,l,r);if(lt(l))return(c=i.Pair)==null?void 0:c.call(i,n,l,r);if(Ke(l))return(d=i.Scalar)==null?void 0:d.call(i,n,l,r);if(Fl(l))return(m=i.Alias)==null?void 0:m.call(i,n,l,r)}function uA(n,l,i){const r=l[l.length-1];if(tt(r))r.items[n]=i;else if(lt(r))n==="key"?r.key=i:r.value=i;else if(hs(r))r.contents=i;else{const s=Fl(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const sA={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},oA=n=>n.replace(/[!,[\]{}]/g,l=>sA[l]);class At{constructor(l,i){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},At.defaultYaml,l),this.tags=Object.assign({},At.defaultTags,i)}clone(){const l=new At(this.yaml,this.tags);return l.docStart=this.docStart,l}atDocument(){const l=new At(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:At.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},At.defaultTags);break}return l}add(l,i){this.atNextDocument&&(this.yaml={explicit:At.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},At.defaultTags),this.atNextDocument=!1);const r=l.trim().split(/[ \t]+/),s=r.shift();switch(s){case"%TAG":{if(r.length!==2&&(i(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[o,c]=r;return this.tags[o]=c,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return i(0,"%YAML directive should contain exactly one part"),!1;const[o]=r;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const c=/^\d+\.\d+$/.test(o);return i(6,`Unsupported YAML version ${o}`,c),!1}}default:return i(0,`Unknown directive ${s}`,!0),!1}}tagName(l,i){if(l==="!")return"!";if(l[0]!=="!")return i(`Not a valid tag: ${l}`),null;if(l[1]==="<"){const c=l.slice(2,-1);return c==="!"||c==="!!"?(i(`Verbatim tags aren't resolved, so ${l} is invalid.`),null):(l[l.length-1]!==">"&&i("Verbatim tags must end with a >"),c)}const[,r,s]=l.match(/^(.*!)([^!]*)$/s);s||i(`The ${l} tag has no suffix`);const o=this.tags[r];if(o)try{return o+decodeURIComponent(s)}catch(c){return i(String(c)),null}return r==="!"?l:(i(`Could not resolve tag: ${l}`),null)}tagString(l){for(const[i,r]of Object.entries(this.tags))if(l.startsWith(r))return i+oA(l.substring(r.length));return l[0]==="!"?l:`!<${l}>`}toString(l){const i=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let s;if(l&&r.length>0&&nt(l.contents)){const o={};na(l.contents,(c,d)=>{nt(d)&&d.tag&&(o[d.tag]=!0)}),s=Object.keys(o)}else s=[];for(const[o,c]of r)o==="!!"&&c==="tag:yaml.org,2002:"||(!l||s.some(d=>d.startsWith(c)))&&i.push(`%TAG ${o} ${c}`);return i.join(`
78
+ `)}}At.defaultYaml={explicit:!1,version:"1.2"};At.defaultTags={"!!":"tag:yaml.org,2002:"};function _1(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){const i=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(i)}return!0}function C1(n){const l=new Set;return na(n,{Value(i,r){r.anchor&&l.add(r.anchor)}}),l}function O1(n,l){for(let i=1;;++i){const r=`${n}${i}`;if(!l.has(r))return r}}function cA(n,l){const i=[],r=new Map;let s=null;return{onAnchor:o=>{i.push(o),s??(s=C1(n));const c=O1(l,s);return s.add(c),c},setAnchors:()=>{for(const o of i){const c=r.get(o);if(typeof c=="object"&&c.anchor&&(Ke(c.node)||tt(c.node)))c.node.anchor=c.anchor;else{const d=new Error("Failed to resolve repeated object (this should not happen)");throw d.source=o,d}}},sourceObjects:r}}function Ki(n,l,i,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let s=0,o=r.length;s<o;++s){const c=r[s],d=Ki(n,r,String(s),c);d===void 0?delete r[s]:d!==c&&(r[s]=d)}else if(r instanceof Map)for(const s of Array.from(r.keys())){const o=r.get(s),c=Ki(n,r,s,o);c===void 0?r.delete(s):c!==o&&r.set(s,c)}else if(r instanceof Set)for(const s of Array.from(r)){const o=Ki(n,r,s,s);o===void 0?r.delete(s):o!==s&&(r.delete(s),r.add(o))}else for(const[s,o]of Object.entries(r)){const c=Ki(n,r,s,o);c===void 0?delete r[s]:c!==o&&(r[s]=c)}return n.call(l,i,r)}function sn(n,l,i){if(Array.isArray(n))return n.map((r,s)=>sn(r,String(s),i));if(n&&typeof n.toJSON=="function"){if(!i||!T1(n))return n.toJSON(l,i);const r={aliasCount:0,count:1,res:void 0};i.anchors.set(n,r),i.onCreate=o=>{r.res=o,delete i.onCreate};const s=n.toJSON(l,i);return i.onCreate&&i.onCreate(s),s}return typeof n=="bigint"&&!(i!=null&&i.keep)?Number(n):n}class Jf{constructor(l){Object.defineProperty(this,on,{value:l})}clone(){const l=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(l.range=this.range.slice()),l}toJS(l,{mapAsMap:i,maxAliasCount:r,onAnchor:s,reviver:o}={}){if(!hs(l))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:l,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},d=sn(this,"",c);if(typeof s=="function")for(const{count:m,res:p}of c.anchors.values())s(p,m);return typeof o=="function"?Ki(o,{"":d},"",d):d}}class Pf extends Jf{constructor(l){super(Zf),this.source=l,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(l,i){let r;i!=null&&i.aliasResolveCache?r=i.aliasResolveCache:(r=[],na(l,{Node:(o,c)=>{(Fl(c)||T1(c))&&r.push(c)}}),i&&(i.aliasResolveCache=r));let s;for(const o of r){if(o===this)break;o.anchor===this.source&&(s=o)}return s}toJSON(l,i){if(!i)return{source:this.source};const{anchors:r,doc:s,maxAliasCount:o}=i,c=this.resolve(s,i);if(!c){const m=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(m)}let d=r.get(c);if(d||(sn(c,null,i),d=r.get(c)),(d==null?void 0:d.res)===void 0){const m="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(m)}if(o>=0&&(d.count+=1,d.aliasCount===0&&(d.aliasCount=Pu(s,c,r)),d.count*d.aliasCount>o)){const m="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(m)}return d.res}toString(l,i,r){const s=`*${this.source}`;if(l){if(_1(this.source),l.options.verifyAliasOrder&&!l.anchors.has(this.source)){const o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(l.implicitKey)return`${s} `}return s}}function Pu(n,l,i){if(Fl(l)){const r=l.resolve(n),s=i&&r&&i.get(r);return s?s.count*s.aliasCount:0}else if(tt(l)){let r=0;for(const s of l.items){const o=Pu(n,s,i);o>r&&(r=o)}return r}else if(lt(l)){const r=Pu(n,l.key,i),s=Pu(n,l.value,i);return Math.max(r,s)}return 1}const N1=n=>!n||typeof n!="function"&&typeof n!="object";class ye extends Jf{constructor(l){super(wn),this.value=l}toJSON(l,i){return i!=null&&i.keep?this.value:sn(this.value,l,i)}toString(){return String(this.value)}}ye.BLOCK_FOLDED="BLOCK_FOLDED";ye.BLOCK_LITERAL="BLOCK_LITERAL";ye.PLAIN="PLAIN";ye.QUOTE_DOUBLE="QUOTE_DOUBLE";ye.QUOTE_SINGLE="QUOTE_SINGLE";const fA="tag:yaml.org,2002:";function hA(n,l,i){if(l){const r=i.filter(o=>o.tag===l),s=r.find(o=>!o.format)??r[0];if(!s)throw new Error(`Tag ${l} not found`);return s}return i.find(r=>{var s;return((s=r.identify)==null?void 0:s.call(r,n))&&!r.format})}function pr(n,l,i){var g,v,S;if(hs(n)&&(n=n.contents),nt(n))return n;if(lt(n)){const E=(v=(g=i.schema[wl]).createNode)==null?void 0:v.call(g,i.schema,null,i);return E.items.push(n),E}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());const{aliasDuplicateObjects:r,onAnchor:s,onTagObj:o,schema:c,sourceObjects:d}=i;let m;if(r&&n&&typeof n=="object"){if(m=d.get(n),m)return m.anchor??(m.anchor=s(n)),new Pf(m.anchor);m={anchor:null,node:null},d.set(n,m)}l!=null&&l.startsWith("!!")&&(l=fA+l.slice(2));let p=hA(n,l,c.tags);if(!p){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){const E=new ye(n);return m&&(m.node=E),E}p=n instanceof Map?c[wl]:Symbol.iterator in Object(n)?c[ta]:c[wl]}o&&(o(p),delete i.onTagObj);const y=p!=null&&p.createNode?p.createNode(i.schema,n,i):typeof((S=p==null?void 0:p.nodeClass)==null?void 0:S.from)=="function"?p.nodeClass.from(i.schema,n,i):new ye(n);return l?y.tag=l:p.default||(y.tag=p.tag),m&&(m.node=y),y}function as(n,l,i){let r=i;for(let s=l.length-1;s>=0;--s){const o=l[s];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){const c=[];c[o]=r,r=c}else r=new Map([[o,r]])}return pr(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}const ar=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done;class z1 extends Jf{constructor(l,i){super(l),Object.defineProperty(this,"schema",{value:i,configurable:!0,enumerable:!1,writable:!0})}clone(l){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return l&&(i.schema=l),i.items=i.items.map(r=>nt(r)||lt(r)?r.clone(l):r),this.range&&(i.range=this.range.slice()),i}addIn(l,i){if(ar(l))this.add(i);else{const[r,...s]=l,o=this.get(r,!0);if(tt(o))o.addIn(s,i);else if(o===void 0&&this.schema)this.set(r,as(this.schema,s,i));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn(l){const[i,...r]=l;if(r.length===0)return this.delete(i);const s=this.get(i,!0);if(tt(s))return s.deleteIn(r);throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}getIn(l,i){const[r,...s]=l,o=this.get(r,!0);return s.length===0?!i&&Ke(o)?o.value:o:tt(o)?o.getIn(s,i):void 0}hasAllNullValues(l){return this.items.every(i=>{if(!lt(i))return!1;const r=i.value;return r==null||l&&Ke(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(l){const[i,...r]=l;if(r.length===0)return this.has(i);const s=this.get(i,!0);return tt(s)?s.hasIn(r):!1}setIn(l,i){const[r,...s]=l;if(s.length===0)this.set(r,i);else{const o=this.get(r,!0);if(tt(o))o.setIn(s,i);else if(o===void 0&&this.schema)this.set(r,as(this.schema,s,i));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}}const dA=n=>n.replace(/^(?!$)(?: $)?/gm,"#");function Qn(n,l){return/^\n+$/.test(n)?n.substring(1):l?n.replace(/^(?! *$)/gm,l):n}const Gl=(n,l,i)=>n.endsWith(`
79
+ `)?Qn(i,l):i.includes(`
80
+ `)?`
81
+ `+Qn(i,l):(n.endsWith(" ")?"":" ")+i,D1="flow",Tf="block",Wu="quoted";function ds(n,l,i="flow",{indentAtStart:r,lineWidth:s=80,minContentWidth:o=20,onFold:c,onOverflow:d}={}){if(!s||s<0)return n;s<o&&(o=0);const m=Math.max(1+o,1+s-l.length);if(n.length<=m)return n;const p=[],y={};let g=s-l.length;typeof r=="number"&&(r>s-Math.max(2,o)?p.push(0):g=s-r);let v,S,E=!1,x=-1,C=-1,_=-1;i===Tf&&(x=ry(n,x,l.length),x!==-1&&(g=x+m));for(let j;j=n[x+=1];){if(i===Wu&&j==="\\"){switch(C=x,n[x+1]){case"x":x+=3;break;case"u":x+=5;break;case"U":x+=9;break;default:x+=1}_=x}if(j===`
82
+ `)i===Tf&&(x=ry(n,x,l.length)),g=x+l.length+m,v=void 0;else{if(j===" "&&S&&S!==" "&&S!==`
83
+ `&&S!==" "){const $=n[x+1];$&&$!==" "&&$!==`
84
+ `&&$!==" "&&(v=x)}if(x>=g)if(v)p.push(v),g=v+m,v=void 0;else if(i===Wu){for(;S===" "||S===" ";)S=j,j=n[x+=1],E=!0;const $=x>_+1?x-2:C-1;if(y[$])return n;p.push($),y[$]=!0,g=$+m,v=void 0}else E=!0}S=j}if(E&&d&&d(),p.length===0)return n;c&&c();let q=n.slice(0,p[0]);for(let j=0;j<p.length;++j){const $=p[j],P=p[j+1]||n.length;$===0?q=`
85
+ ${l}${n.slice(0,P)}`:(i===Wu&&y[$]&&(q+=`${n[$]}\\`),q+=`
86
+ ${l}${n.slice($+1,P)}`)}return q}function ry(n,l,i){let r=l,s=l+1,o=n[s];for(;o===" "||o===" ";)if(l<s+i)o=n[++l];else{do o=n[++l];while(o&&o!==`
87
+ `);r=l,s=l+1,o=n[s]}return r}const ps=(n,l)=>({indentAtStart:l?n.indent.length:n.indentAtStart,lineWidth:n.options.lineWidth,minContentWidth:n.options.minContentWidth}),ms=n=>/^(%|---|\.\.\.)/m.test(n);function pA(n,l,i){if(!l||l<0)return!1;const r=l-i,s=n.length;if(s<=r)return!1;for(let o=0,c=0;o<s;++o)if(n[o]===`
88
+ `){if(o-c>r)return!0;if(c=o+1,s-c<=r)return!1}return!0}function fr(n,l){const i=JSON.stringify(n);if(l.options.doubleQuotedAsJSON)return i;const{implicitKey:r}=l,s=l.options.doubleQuotedMinMultiLineLength,o=l.indent||(ms(n)?" ":"");let c="",d=0;for(let m=0,p=i[m];p;p=i[++m])if(p===" "&&i[m+1]==="\\"&&i[m+2]==="n"&&(c+=i.slice(d,m)+"\\ ",m+=1,d=m,p="\\"),p==="\\")switch(i[m+1]){case"u":{c+=i.slice(d,m);const y=i.substr(m+2,4);switch(y){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:y.substr(0,2)==="00"?c+="\\x"+y.substr(2):c+=i.substr(m,6)}m+=5,d=m+1}break;case"n":if(r||i[m+2]==='"'||i.length<s)m+=1;else{for(c+=i.slice(d,m)+`
89
+
90
+ `;i[m+2]==="\\"&&i[m+3]==="n"&&i[m+4]!=='"';)c+=`
91
+ `,m+=2;c+=o,i[m+2]===" "&&(c+="\\"),m+=1,d=m+1}break;default:m+=1}return c=d?c+i.slice(d):i,r?c:ds(c,o,Wu,ps(l,!1))}function _f(n,l){if(l.options.singleQuote===!1||l.implicitKey&&n.includes(`
92
+ `)||/[ \t]\n|\n[ \t]/.test(n))return fr(n,l);const i=l.indent||(ms(n)?" ":""),r="'"+n.replace(/'/g,"''").replace(/\n+/g,`$&
93
+ ${i}`)+"'";return l.implicitKey?r:ds(r,i,D1,ps(l,!1))}function Qi(n,l){const{singleQuote:i}=l.options;let r;if(i===!1)r=fr;else{const s=n.includes('"'),o=n.includes("'");s&&!o?r=_f:o&&!s?r=fr:r=i?_f:fr}return r(n,l)}let Cf;try{Cf=new RegExp(`(^|(?<!
94
+ ))
95
+ +(?!
96
+ |$)`,"g")}catch{Cf=/\n+(?!\n|$)/g}function es({comment:n,type:l,value:i},r,s,o){const{blockQuote:c,commentString:d,lineWidth:m}=r.options;if(!c||/\n[\t ]+$/.test(i))return Qi(i,r);const p=r.indent||(r.forceBlockIndent||ms(i)?" ":""),y=c==="literal"?!0:c==="folded"||l===ye.BLOCK_FOLDED?!1:l===ye.BLOCK_LITERAL?!0:!pA(i,m,p.length);if(!i)return y?`|
97
+ `:`>
98
+ `;let g,v;for(v=i.length;v>0;--v){const P=i[v-1];if(P!==`
99
+ `&&P!==" "&&P!==" ")break}let S=i.substring(v);const E=S.indexOf(`
100
+ `);E===-1?g="-":i===S||E!==S.length-1?(g="+",o&&o()):g="",S&&(i=i.slice(0,-S.length),S[S.length-1]===`
101
+ `&&(S=S.slice(0,-1)),S=S.replace(Cf,`$&${p}`));let x=!1,C,_=-1;for(C=0;C<i.length;++C){const P=i[C];if(P===" ")x=!0;else if(P===`
102
+ `)_=C;else break}let q=i.substring(0,_<C?_+1:C);q&&(i=i.substring(q.length),q=q.replace(/\n+/g,`$&${p}`));let $=(x?p?"2":"1":"")+g;if(n&&($+=" "+d(n.replace(/ ?[\r\n]+/g," ")),s&&s()),!y){const P=i.replace(/\n+/g,`
103
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);let D=!1;const K=ps(r,!0);c!=="folded"&&l!==ye.BLOCK_FOLDED&&(K.onOverflow=()=>{D=!0});const Z=ds(`${q}${P}${S}`,p,Tf,K);if(!D)return`>${$}
104
+ ${p}${Z}`}return i=i.replace(/\n+/g,`$&${p}`),`|${$}
105
+ ${p}${q}${i}${S}`}function mA(n,l,i,r){const{type:s,value:o}=n,{actualString:c,implicitKey:d,indent:m,indentStep:p,inFlow:y}=l;if(d&&o.includes(`
106
+ `)||y&&/[[\]{},]/.test(o))return Qi(o,l);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return d||y||!o.includes(`
107
+ `)?Qi(o,l):es(n,l,i,r);if(!d&&!y&&s!==ye.PLAIN&&o.includes(`
108
+ `))return es(n,l,i,r);if(ms(o)){if(m==="")return l.forceBlockIndent=!0,es(n,l,i,r);if(d&&m===p)return Qi(o,l)}const g=o.replace(/\n+/g,`$&
109
+ ${m}`);if(c){const v=x=>{var C;return x.default&&x.tag!=="tag:yaml.org,2002:str"&&((C=x.test)==null?void 0:C.test(g))},{compat:S,tags:E}=l.doc.schema;if(E.some(v)||S!=null&&S.some(v))return Qi(o,l)}return d?g:ds(g,m,D1,ps(l,!1))}function Wf(n,l,i,r){const{implicitKey:s,inFlow:o}=l,c=typeof n.value=="string"?n:Object.assign({},n,{value:String(n.value)});let{type:d}=n;d!==ye.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(c.value)&&(d=ye.QUOTE_DOUBLE);const m=y=>{switch(y){case ye.BLOCK_FOLDED:case ye.BLOCK_LITERAL:return s||o?Qi(c.value,l):es(c,l,i,r);case ye.QUOTE_DOUBLE:return fr(c.value,l);case ye.QUOTE_SINGLE:return _f(c.value,l);case ye.PLAIN:return mA(c,l,i,r);default:return null}};let p=m(d);if(p===null){const{defaultKeyType:y,defaultStringType:g}=l.options,v=s&&y||g;if(p=m(v),p===null)throw new Error(`Unsupported default string type ${v}`)}return p}function M1(n,l){const i=Object.assign({blockQuote:!0,commentString:dA,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},n.schema.toStringOptions,l);let r;switch(i.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:n,flowCollectionPadding:i.flowCollectionPadding?" ":"",indent:"",indentStep:typeof i.indent=="number"?" ".repeat(i.indent):" ",inFlow:r,options:i}}function gA(n,l){var s;if(l.tag){const o=n.filter(c=>c.tag===l.tag);if(o.length>0)return o.find(c=>c.format===l.format)??o[0]}let i,r;if(Ke(l)){r=l.value;let o=n.filter(c=>{var d;return(d=c.identify)==null?void 0:d.call(c,r)});if(o.length>1){const c=o.filter(d=>d.test);c.length>0&&(o=c)}i=o.find(c=>c.format===l.format)??o.find(c=>!c.format)}else r=l,i=n.find(o=>o.nodeClass&&r instanceof o.nodeClass);if(!i){const o=((s=r==null?void 0:r.constructor)==null?void 0:s.name)??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${o} value`)}return i}function yA(n,l,{anchors:i,doc:r}){if(!r.directives)return"";const s=[],o=(Ke(n)||tt(n))&&n.anchor;o&&_1(o)&&(i.add(o),s.push(`&${o}`));const c=n.tag??(l.default?null:l.tag);return c&&s.push(r.directives.tagString(c)),s.join(" ")}function Ji(n,l,i,r){var m;if(lt(n))return n.toString(l,i,r);if(Fl(n)){if(l.doc.directives)return n.toString(l);if((m=l.resolvedAliases)!=null&&m.has(n))throw new TypeError("Cannot stringify circular structure without alias nodes");l.resolvedAliases?l.resolvedAliases.add(n):l.resolvedAliases=new Set([n]),n=n.resolve(l.doc)}let s;const o=nt(n)?n:l.doc.createNode(n,{onTagObj:p=>s=p});s??(s=gA(l.doc.schema.tags,o));const c=yA(o,s,l);c.length>0&&(l.indentAtStart=(l.indentAtStart??0)+c.length+1);const d=typeof s.stringify=="function"?s.stringify(o,l,i,r):Ke(o)?Wf(o,l,i,r):o.toString(l,i,r);return c?Ke(o)||d[0]==="{"||d[0]==="["?`${c} ${d}`:`${c}
110
+ ${l.indent}${d}`:d}function bA({key:n,value:l},i,r,s){const{allNullValues:o,doc:c,indent:d,indentStep:m,options:{commentString:p,indentSeq:y,simpleKeys:g}}=i;let v=nt(n)&&n.comment||null;if(g){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(tt(n)||!nt(n)&&typeof n=="object"){const K="With simple keys, collection cannot be used as a key value";throw new Error(K)}}let S=!g&&(!n||v&&l==null&&!i.inFlow||tt(n)||(Ke(n)?n.type===ye.BLOCK_FOLDED||n.type===ye.BLOCK_LITERAL:typeof n=="object"));i=Object.assign({},i,{allNullValues:!1,implicitKey:!S&&(g||!o),indent:d+m});let E=!1,x=!1,C=Ji(n,i,()=>E=!0,()=>x=!0);if(!S&&!i.inFlow&&C.length>1024){if(g)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");S=!0}if(i.inFlow){if(o||l==null)return E&&r&&r(),C===""?"?":S?`? ${C}`:C}else if(o&&!g||l==null&&S)return C=`? ${C}`,v&&!E?C+=Gl(C,i.indent,p(v)):x&&s&&s(),C;E&&(v=null),S?(v&&(C+=Gl(C,i.indent,p(v))),C=`? ${C}
111
+ ${d}:`):(C=`${C}:`,v&&(C+=Gl(C,i.indent,p(v))));let _,q,j;nt(l)?(_=!!l.spaceBefore,q=l.commentBefore,j=l.comment):(_=!1,q=null,j=null,l&&typeof l=="object"&&(l=c.createNode(l))),i.implicitKey=!1,!S&&!v&&Ke(l)&&(i.indentAtStart=C.length+1),x=!1,!y&&m.length>=2&&!i.inFlow&&!S&&vr(l)&&!l.flow&&!l.tag&&!l.anchor&&(i.indent=i.indent.substring(2));let $=!1;const P=Ji(l,i,()=>$=!0,()=>x=!0);let D=" ";if(v||_||q){if(D=_?`
112
+ `:"",q){const K=p(q);D+=`
113
+ ${Qn(K,i.indent)}`}P===""&&!i.inFlow?D===`
114
+ `&&j&&(D=`
115
+
116
+ `):D+=`
117
+ ${i.indent}`}else if(!S&&tt(l)){const K=P[0],Z=P.indexOf(`
118
+ `),ae=Z!==-1,B=i.inFlow??l.flow??l.items.length===0;if(ae||!B){let te=!1;if(ae&&(K==="&"||K==="!")){let X=P.indexOf(" ");K==="&"&&X!==-1&&X<Z&&P[X+1]==="!"&&(X=P.indexOf(" ",X+1)),(X===-1||Z<X)&&(te=!0)}te||(D=`
119
+ ${i.indent}`)}}else(P===""||P[0]===`
120
+ `)&&(D="");return C+=D+P,i.inFlow?$&&r&&r():j&&!$?C+=Gl(C,i.indent,p(j)):x&&s&&s(),C}function L1(n,l){(n==="debug"||n==="warn")&&console.warn(l)}const Qu="<<",Xn={identify:n=>n===Qu||typeof n=="symbol"&&n.description===Qu,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new ye(Symbol(Qu)),{addToJSMap:R1}),stringify:()=>Qu},SA=(n,l)=>(Xn.identify(l)||Ke(l)&&(!l.type||l.type===ye.PLAIN)&&Xn.identify(l.value))&&(n==null?void 0:n.doc.schema.tags.some(i=>i.tag===Xn.tag&&i.default));function R1(n,l,i){if(i=n&&Fl(i)?i.resolve(n.doc):i,vr(i))for(const r of i.items)sf(n,l,r);else if(Array.isArray(i))for(const r of i)sf(n,l,r);else sf(n,l,i)}function sf(n,l,i){const r=n&&Fl(i)?i.resolve(n.doc):i;if(!Sr(r))throw new Error("Merge sources must be maps or map aliases");const s=r.toJSON(null,n,Map);for(const[o,c]of s)l instanceof Map?l.has(o)||l.set(o,c):l instanceof Set?l.add(o):Object.prototype.hasOwnProperty.call(l,o)||Object.defineProperty(l,o,{value:c,writable:!0,enumerable:!0,configurable:!0});return l}function B1(n,l,{key:i,value:r}){if(nt(i)&&i.addToJSMap)i.addToJSMap(n,l,r);else if(SA(n,i))R1(n,l,r);else{const s=sn(i,"",n);if(l instanceof Map)l.set(s,sn(r,s,n));else if(l instanceof Set)l.add(s);else{const o=vA(i,s,n),c=sn(r,o,n);o in l?Object.defineProperty(l,o,{value:c,writable:!0,enumerable:!0,configurable:!0}):l[o]=c}}return l}function vA(n,l,i){if(l===null)return"";if(typeof l!="object")return String(l);if(nt(n)&&(i!=null&&i.doc)){const r=M1(i.doc,{});r.anchors=new Set;for(const o of i.anchors.keys())r.anchors.add(o.anchor);r.inFlow=!0,r.inStringifyKey=!0;const s=n.toString(r);if(!i.mapKeyWarned){let o=JSON.stringify(s);o.length>40&&(o=o.substring(0,36)+'..."'),L1(i.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),i.mapKeyWarned=!0}return s}return JSON.stringify(l)}function eh(n,l,i){const r=pr(n,void 0,i),s=pr(l,void 0,i);return new _t(r,s)}class _t{constructor(l,i=null){Object.defineProperty(this,on,{value:A1}),this.key=l,this.value=i}clone(l){let{key:i,value:r}=this;return nt(i)&&(i=i.clone(l)),nt(r)&&(r=r.clone(l)),new _t(i,r)}toJSON(l,i){const r=i!=null&&i.mapAsMap?new Map:{};return B1(i,r,this)}toString(l,i,r){return l!=null&&l.doc?bA(this,l,i,r):JSON.stringify(this)}}function j1(n,l,i){return(l.inFlow??n.flow?wA:kA)(n,l,i)}function kA({comment:n,items:l},i,{blockItemPrefix:r,flowChars:s,itemIndent:o,onChompKeep:c,onComment:d}){const{indent:m,options:{commentString:p}}=i,y=Object.assign({},i,{indent:o,type:null});let g=!1;const v=[];for(let E=0;E<l.length;++E){const x=l[E];let C=null;if(nt(x))!g&&x.spaceBefore&&v.push(""),rs(i,v,x.commentBefore,g),x.comment&&(C=x.comment);else if(lt(x)){const q=nt(x.key)?x.key:null;q&&(!g&&q.spaceBefore&&v.push(""),rs(i,v,q.commentBefore,g))}g=!1;let _=Ji(x,y,()=>C=null,()=>g=!0);C&&(_+=Gl(_,o,p(C))),g&&C&&(g=!1),v.push(r+_)}let S;if(v.length===0)S=s.start+s.end;else{S=v[0];for(let E=1;E<v.length;++E){const x=v[E];S+=x?`
121
+ ${m}${x}`:`
122
+ `}}return n?(S+=`
123
+ `+Qn(p(n),m),d&&d()):g&&c&&c(),S}function wA({items:n},l,{flowChars:i,itemIndent:r}){const{indent:s,indentStep:o,flowCollectionPadding:c,options:{commentString:d}}=l;r+=o;const m=Object.assign({},l,{indent:r,inFlow:!0,type:null});let p=!1,y=0;const g=[];for(let E=0;E<n.length;++E){const x=n[E];let C=null;if(nt(x))x.spaceBefore&&g.push(""),rs(l,g,x.commentBefore,!1),x.comment&&(C=x.comment);else if(lt(x)){const q=nt(x.key)?x.key:null;q&&(q.spaceBefore&&g.push(""),rs(l,g,q.commentBefore,!1),q.comment&&(p=!0));const j=nt(x.value)?x.value:null;j?(j.comment&&(C=j.comment),j.commentBefore&&(p=!0)):x.value==null&&(q!=null&&q.comment)&&(C=q.comment)}C&&(p=!0);let _=Ji(x,m,()=>C=null);E<n.length-1&&(_+=","),C&&(_+=Gl(_,r,d(C))),!p&&(g.length>y||_.includes(`
124
+ `))&&(p=!0),g.push(_),y=g.length}const{start:v,end:S}=i;if(g.length===0)return v+S;if(!p){const E=g.reduce((x,C)=>x+C.length+2,2);p=l.options.lineWidth>0&&E>l.options.lineWidth}if(p){let E=v;for(const x of g)E+=x?`
125
+ ${o}${s}${x}`:`
126
+ `;return`${E}
127
+ ${s}${S}`}else return`${v}${c}${g.join(" ")}${c}${S}`}function rs({indent:n,options:{commentString:l}},i,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){const o=Qn(l(r),n);i.push(o.trimStart())}}function Kl(n,l){const i=Ke(l)?l.value:l;for(const r of n)if(lt(r)&&(r.key===l||r.key===i||Ke(r.key)&&r.key.value===i))return r}class un extends z1{static get tagName(){return"tag:yaml.org,2002:map"}constructor(l){super(wl,l),this.items=[]}static from(l,i,r){const{keepUndefined:s,replacer:o}=r,c=new this(l),d=(m,p)=>{if(typeof o=="function")p=o.call(i,m,p);else if(Array.isArray(o)&&!o.includes(m))return;(p!==void 0||s)&&c.items.push(eh(m,p,r))};if(i instanceof Map)for(const[m,p]of i)d(m,p);else if(i&&typeof i=="object")for(const m of Object.keys(i))d(m,i[m]);return typeof l.sortMapEntries=="function"&&c.items.sort(l.sortMapEntries),c}add(l,i){var c;let r;lt(l)?r=l:!l||typeof l!="object"||!("key"in l)?r=new _t(l,l==null?void 0:l.value):r=new _t(l.key,l.value);const s=Kl(this.items,r.key),o=(c=this.schema)==null?void 0:c.sortMapEntries;if(s){if(!i)throw new Error(`Key ${r.key} already set`);Ke(s.value)&&N1(r.value)?s.value.value=r.value:s.value=r.value}else if(o){const d=this.items.findIndex(m=>o(r,m)<0);d===-1?this.items.push(r):this.items.splice(d,0,r)}else this.items.push(r)}delete(l){const i=Kl(this.items,l);return i?this.items.splice(this.items.indexOf(i),1).length>0:!1}get(l,i){const r=Kl(this.items,l),s=r==null?void 0:r.value;return(!i&&Ke(s)?s.value:s)??void 0}has(l){return!!Kl(this.items,l)}set(l,i){this.add(new _t(l,i),!0)}toJSON(l,i,r){const s=r?new r:i!=null&&i.mapAsMap?new Map:{};i!=null&&i.onCreate&&i.onCreate(s);for(const o of this.items)B1(i,s,o);return s}toString(l,i,r){if(!l)return JSON.stringify(this);for(const s of this.items)if(!lt(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!l.allNullValues&&this.hasAllNullValues(!1)&&(l=Object.assign({},l,{allNullValues:!0})),j1(this,l,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:l.indent||"",onChompKeep:r,onComment:i})}}const la={collection:"map",default:!0,nodeClass:un,tag:"tag:yaml.org,2002:map",resolve(n,l){return Sr(n)||l("Expected a mapping for this tag"),n},createNode:(n,l,i)=>un.from(n,l,i)};class Xl extends z1{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(l){super(ta,l),this.items=[]}add(l){this.items.push(l)}delete(l){const i=Xu(l);return typeof i!="number"?!1:this.items.splice(i,1).length>0}get(l,i){const r=Xu(l);if(typeof r!="number")return;const s=this.items[r];return!i&&Ke(s)?s.value:s}has(l){const i=Xu(l);return typeof i=="number"&&i<this.items.length}set(l,i){const r=Xu(l);if(typeof r!="number")throw new Error(`Expected a valid index, not ${l}.`);const s=this.items[r];Ke(s)&&N1(i)?s.value=i:this.items[r]=i}toJSON(l,i){const r=[];i!=null&&i.onCreate&&i.onCreate(r);let s=0;for(const o of this.items)r.push(sn(o,String(s++),i));return r}toString(l,i,r){return l?j1(this,l,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(l.indent||"")+" ",onChompKeep:r,onComment:i}):JSON.stringify(this)}static from(l,i,r){const{replacer:s}=r,o=new this(l);if(i&&Symbol.iterator in Object(i)){let c=0;for(let d of i){if(typeof s=="function"){const m=i instanceof Set?d:String(c++);d=s.call(i,m,d)}o.items.push(pr(d,void 0,r))}}return o}}function Xu(n){let l=Ke(n)?n.value:n;return l&&typeof l=="string"&&(l=Number(l)),typeof l=="number"&&Number.isInteger(l)&&l>=0?l:null}const ia={collection:"seq",default:!0,nodeClass:Xl,tag:"tag:yaml.org,2002:seq",resolve(n,l){return vr(n)||l("Expected a sequence for this tag"),n},createNode:(n,l,i)=>Xl.from(n,l,i)},gs={identify:n=>typeof n=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n=>n,stringify(n,l,i,r){return l=Object.assign({actualString:!0},l),Wf(n,l,i,r)}},ys={identify:n=>n==null,createNode:()=>new ye(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new ye(null),stringify:({source:n},l)=>typeof n=="string"&&ys.test.test(n)?n:l.options.nullStr},th={identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:n=>new ye(n[0]==="t"||n[0]==="T"),stringify({source:n,value:l},i){if(n&&th.test.test(n)){const r=n[0]==="t"||n[0]==="T";if(l===r)return n}return l?i.options.trueStr:i.options.falseStr}};function gn({format:n,minFractionDigits:l,tag:i,value:r}){if(typeof r=="bigint")return String(r);const s=typeof r=="number"?r:Number(r);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=Object.is(r,-0)?"-0":JSON.stringify(r);if(!n&&l&&(!i||i==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let c=o.indexOf(".");c<0&&(c=o.length,o+=".");let d=l-(o.length-c-1);for(;d-- >0;)o+="0"}return o}const U1={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:n=>n.slice(-3).toLowerCase()==="nan"?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:gn},q1={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:n=>parseFloat(n),stringify(n){const l=Number(n.value);return isFinite(l)?l.toExponential():gn(n)}},H1={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(n){const l=new ye(parseFloat(n)),i=n.indexOf(".");return i!==-1&&n[n.length-1]==="0"&&(l.minFractionDigits=n.length-i-1),l},stringify:gn},bs=n=>typeof n=="bigint"||Number.isInteger(n),nh=(n,l,i,{intAsBigInt:r})=>r?BigInt(n):parseInt(n.substring(l),i);function Y1(n,l,i){const{value:r}=n;return bs(r)&&r>=0?i+r.toString(l):gn(n)}const V1={identify:n=>bs(n)&&n>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(n,l,i)=>nh(n,2,8,i),stringify:n=>Y1(n,8,"0o")},I1={identify:bs,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(n,l,i)=>nh(n,0,10,i),stringify:gn},G1={identify:n=>bs(n)&&n>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(n,l,i)=>nh(n,2,16,i),stringify:n=>Y1(n,16,"0x")},EA=[la,ia,gs,ys,th,V1,I1,G1,U1,q1,H1];function uy(n){return typeof n=="bigint"||Number.isInteger(n)}const $u=({value:n})=>JSON.stringify(n),xA=[{identify:n=>typeof n=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n=>n,stringify:$u},{identify:n=>n==null,createNode:()=>new ye(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:$u},{identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:n=>n==="true",stringify:$u},{identify:uy,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(n,l,{intAsBigInt:i})=>i?BigInt(n):parseInt(n,10),stringify:({value:n})=>uy(n)?n.toString():JSON.stringify(n)},{identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:n=>parseFloat(n),stringify:$u}],AA={default:!0,tag:"",test:/^/,resolve(n,l){return l(`Unresolved plain scalar ${JSON.stringify(n)}`),n}},TA=[la,ia].concat(xA,AA),lh={identify:n=>n instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(n,l){if(typeof atob=="function"){const i=atob(n.replace(/[\n\r]/g,"")),r=new Uint8Array(i.length);for(let s=0;s<i.length;++s)r[s]=i.charCodeAt(s);return r}else return l("This environment does not support reading binary tags; either Buffer or atob is required"),n},stringify({comment:n,type:l,value:i},r,s,o){if(!i)return"";const c=i;let d;if(typeof btoa=="function"){let m="";for(let p=0;p<c.length;++p)m+=String.fromCharCode(c[p]);d=btoa(m)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(l??(l=ye.BLOCK_LITERAL),l!==ye.QUOTE_DOUBLE){const m=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),p=Math.ceil(d.length/m),y=new Array(p);for(let g=0,v=0;g<p;++g,v+=m)y[g]=d.substr(v,m);d=y.join(l===ye.BLOCK_LITERAL?`
128
+ `:" ")}return Wf({comment:n,type:l,value:d},r,s,o)}};function K1(n,l){if(vr(n))for(let i=0;i<n.items.length;++i){let r=n.items[i];if(!lt(r)){if(Sr(r)){r.items.length>1&&l("Each pair must have its own sequence indicator");const s=r.items[0]||new _t(new ye(null));if(r.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${r.commentBefore}
129
+ ${s.key.commentBefore}`:r.commentBefore),r.comment){const o=s.value??s.key;o.comment=o.comment?`${r.comment}
130
+ ${o.comment}`:r.comment}r=s}n.items[i]=lt(r)?r:new _t(r)}}else l("Expected a sequence for this tag");return n}function Q1(n,l,i){const{replacer:r}=i,s=new Xl(n);s.tag="tag:yaml.org,2002:pairs";let o=0;if(l&&Symbol.iterator in Object(l))for(let c of l){typeof r=="function"&&(c=r.call(l,String(o++),c));let d,m;if(Array.isArray(c))if(c.length===2)d=c[0],m=c[1];else throw new TypeError(`Expected [key, value] tuple: ${c}`);else if(c&&c instanceof Object){const p=Object.keys(c);if(p.length===1)d=p[0],m=c[d];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else d=c;s.items.push(eh(d,m,i))}return s}const ih={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:K1,createNode:Q1};class $i extends Xl{constructor(){super(),this.add=un.prototype.add.bind(this),this.delete=un.prototype.delete.bind(this),this.get=un.prototype.get.bind(this),this.has=un.prototype.has.bind(this),this.set=un.prototype.set.bind(this),this.tag=$i.tag}toJSON(l,i){if(!i)return super.toJSON(l);const r=new Map;i!=null&&i.onCreate&&i.onCreate(r);for(const s of this.items){let o,c;if(lt(s)?(o=sn(s.key,"",i),c=sn(s.value,o,i)):o=sn(s,"",i),r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,c)}return r}static from(l,i,r){const s=Q1(l,i,r),o=new this;return o.items=s.items,o}}$i.tag="tag:yaml.org,2002:omap";const ah={collection:"seq",identify:n=>n instanceof Map,nodeClass:$i,default:!1,tag:"tag:yaml.org,2002:omap",resolve(n,l){const i=K1(n,l),r=[];for(const{key:s}of i.items)Ke(s)&&(r.includes(s.value)?l(`Ordered maps must not include duplicate keys: ${s.value}`):r.push(s.value));return Object.assign(new $i,i)},createNode:(n,l,i)=>$i.from(n,l,i)};function X1({value:n,source:l},i){return l&&(n?$1:F1).test.test(l)?l:n?i.options.trueStr:i.options.falseStr}const $1={identify:n=>n===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new ye(!0),stringify:X1},F1={identify:n=>n===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new ye(!1),stringify:X1},_A={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:n=>n.slice(-3).toLowerCase()==="nan"?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:gn},CA={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:n=>parseFloat(n.replace(/_/g,"")),stringify(n){const l=Number(n.value);return isFinite(l)?l.toExponential():gn(n)}},OA={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(n){const l=new ye(parseFloat(n.replace(/_/g,""))),i=n.indexOf(".");if(i!==-1){const r=n.substring(i+1).replace(/_/g,"");r[r.length-1]==="0"&&(l.minFractionDigits=r.length)}return l},stringify:gn},kr=n=>typeof n=="bigint"||Number.isInteger(n);function Ss(n,l,i,{intAsBigInt:r}){const s=n[0];if((s==="-"||s==="+")&&(l+=1),n=n.substring(l).replace(/_/g,""),r){switch(i){case 2:n=`0b${n}`;break;case 8:n=`0o${n}`;break;case 16:n=`0x${n}`;break}const c=BigInt(n);return s==="-"?BigInt(-1)*c:c}const o=parseInt(n,i);return s==="-"?-1*o:o}function rh(n,l,i){const{value:r}=n;if(kr(r)){const s=r.toString(l);return r<0?"-"+i+s.substr(1):i+s}return gn(n)}const NA={identify:kr,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(n,l,i)=>Ss(n,2,2,i),stringify:n=>rh(n,2,"0b")},zA={identify:kr,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(n,l,i)=>Ss(n,1,8,i),stringify:n=>rh(n,8,"0")},DA={identify:kr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(n,l,i)=>Ss(n,0,10,i),stringify:gn},MA={identify:kr,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(n,l,i)=>Ss(n,2,16,i),stringify:n=>rh(n,16,"0x")};class Fi extends un{constructor(l){super(l),this.tag=Fi.tag}add(l){let i;lt(l)?i=l:l&&typeof l=="object"&&"key"in l&&"value"in l&&l.value===null?i=new _t(l.key,null):i=new _t(l,null),Kl(this.items,i.key)||this.items.push(i)}get(l,i){const r=Kl(this.items,l);return!i&&lt(r)?Ke(r.key)?r.key.value:r.key:r}set(l,i){if(typeof i!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof i}`);const r=Kl(this.items,l);r&&!i?this.items.splice(this.items.indexOf(r),1):!r&&i&&this.items.push(new _t(l))}toJSON(l,i){return super.toJSON(l,i,Set)}toString(l,i,r){if(!l)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},l,{allNullValues:!0}),i,r);throw new Error("Set items must all have null values")}static from(l,i,r){const{replacer:s}=r,o=new this(l);if(i&&Symbol.iterator in Object(i))for(let c of i)typeof s=="function"&&(c=s.call(i,c,c)),o.items.push(eh(c,null,r));return o}}Fi.tag="tag:yaml.org,2002:set";const uh={collection:"map",identify:n=>n instanceof Set,nodeClass:Fi,default:!1,tag:"tag:yaml.org,2002:set",createNode:(n,l,i)=>Fi.from(n,l,i),resolve(n,l){if(Sr(n)){if(n.hasAllNullValues(!0))return Object.assign(new Fi,n);l("Set items must all have null values")}else l("Expected a mapping for this tag");return n}};function sh(n,l){const i=n[0],r=i==="-"||i==="+"?n.substring(1):n,s=c=>l?BigInt(c):Number(c),o=r.replace(/_/g,"").split(":").reduce((c,d)=>c*s(60)+s(d),s(0));return i==="-"?s(-1)*o:o}function Z1(n){let{value:l}=n,i=c=>c;if(typeof l=="bigint")i=c=>BigInt(c);else if(isNaN(l)||!isFinite(l))return gn(n);let r="";l<0&&(r="-",l*=i(-1));const s=i(60),o=[l%s];return l<60?o.unshift(0):(l=(l-o[0])/s,o.unshift(l%s),l>=60&&(l=(l-o[0])/s,o.unshift(l))),r+o.map(c=>String(c).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const J1={identify:n=>typeof n=="bigint"||Number.isInteger(n),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(n,l,{intAsBigInt:i})=>sh(n,i),stringify:Z1},P1={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:n=>sh(n,!1),stringify:Z1},vs={identify:n=>n instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(n){const l=n.match(vs.test);if(!l)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,i,r,s,o,c,d]=l.map(Number),m=l[7]?Number((l[7]+"00").substr(1,3)):0;let p=Date.UTC(i,r-1,s,o||0,c||0,d||0,m);const y=l[8];if(y&&y!=="Z"){let g=sh(y,!1);Math.abs(g)<30&&(g*=60),p-=6e4*g}return new Date(p)},stringify:({value:n})=>(n==null?void 0:n.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},sy=[la,ia,gs,ys,$1,F1,NA,zA,DA,MA,_A,CA,OA,lh,Xn,ah,ih,uh,J1,P1,vs],oy=new Map([["core",EA],["failsafe",[la,ia,gs]],["json",TA],["yaml11",sy],["yaml-1.1",sy]]),cy={binary:lh,bool:th,float:H1,floatExp:q1,floatNaN:U1,floatTime:P1,int:I1,intHex:G1,intOct:V1,intTime:J1,map:la,merge:Xn,null:ys,omap:ah,pairs:ih,seq:ia,set:uh,timestamp:vs},LA={"tag:yaml.org,2002:binary":lh,"tag:yaml.org,2002:merge":Xn,"tag:yaml.org,2002:omap":ah,"tag:yaml.org,2002:pairs":ih,"tag:yaml.org,2002:set":uh,"tag:yaml.org,2002:timestamp":vs};function of(n,l,i){const r=oy.get(l);if(r&&!n)return i&&!r.includes(Xn)?r.concat(Xn):r.slice();let s=r;if(!s)if(Array.isArray(n))s=[];else{const o=Array.from(oy.keys()).filter(c=>c!=="yaml11").map(c=>JSON.stringify(c)).join(", ");throw new Error(`Unknown schema "${l}"; use one of ${o} or define customTags array`)}if(Array.isArray(n))for(const o of n)s=s.concat(o);else typeof n=="function"&&(s=n(s.slice()));return i&&(s=s.concat(Xn)),s.reduce((o,c)=>{const d=typeof c=="string"?cy[c]:c;if(!d){const m=JSON.stringify(c),p=Object.keys(cy).map(y=>JSON.stringify(y)).join(", ");throw new Error(`Unknown custom tag ${m}; use one of ${p}`)}return o.includes(d)||o.push(d),o},[])}const RA=(n,l)=>n.key<l.key?-1:n.key>l.key?1:0;class oh{constructor({compat:l,customTags:i,merge:r,resolveKnownTags:s,schema:o,sortMapEntries:c,toStringDefaults:d}){this.compat=Array.isArray(l)?of(l,"compat"):l?of(null,l):null,this.name=typeof o=="string"&&o||"core",this.knownTags=s?LA:{},this.tags=of(i,this.name,r),this.toStringOptions=d??null,Object.defineProperty(this,wl,{value:la}),Object.defineProperty(this,wn,{value:gs}),Object.defineProperty(this,ta,{value:ia}),this.sortMapEntries=typeof c=="function"?c:c===!0?RA:null}clone(){const l=Object.create(oh.prototype,Object.getOwnPropertyDescriptors(this));return l.tags=this.tags.slice(),l}}function BA(n,l){var m;const i=[];let r=l.directives===!0;if(l.directives!==!1&&n.directives){const p=n.directives.toString(n);p?(i.push(p),r=!0):n.directives.docStart&&(r=!0)}r&&i.push("---");const s=M1(n,l),{commentString:o}=s.options;if(n.commentBefore){i.length!==1&&i.unshift("");const p=o(n.commentBefore);i.unshift(Qn(p,""))}let c=!1,d=null;if(n.contents){if(nt(n.contents)){if(n.contents.spaceBefore&&r&&i.push(""),n.contents.commentBefore){const g=o(n.contents.commentBefore);i.push(Qn(g,""))}s.forceBlockIndent=!!n.comment,d=n.contents.comment}const p=d?void 0:()=>c=!0;let y=Ji(n.contents,s,()=>d=null,p);d&&(y+=Gl(y,"",o(d))),(y[0]==="|"||y[0]===">")&&i[i.length-1]==="---"?i[i.length-1]=`--- ${y}`:i.push(y)}else i.push(Ji(n.contents,s));if((m=n.directives)!=null&&m.docEnd)if(n.comment){const p=o(n.comment);p.includes(`
131
+ `)?(i.push("..."),i.push(Qn(p,""))):i.push(`... ${p}`)}else i.push("...");else{let p=n.comment;p&&c&&(p=p.replace(/^\n+/,"")),p&&((!c||d)&&i[i.length-1]!==""&&i.push(""),i.push(Qn(o(p),"")))}return i.join(`
132
+ `)+`
133
+ `}class ks{constructor(l,i,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,on,{value:Af});let s=null;typeof i=="function"||Array.isArray(i)?s=i:r===void 0&&i&&(r=i,i=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=o;let{version:c}=o;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(c=this.directives.yaml.version)):this.directives=new At({version:c}),this.setSchema(c,r),this.contents=l===void 0?null:this.createNode(l,s,r)}clone(){const l=Object.create(ks.prototype,{[on]:{value:Af}});return l.commentBefore=this.commentBefore,l.comment=this.comment,l.errors=this.errors.slice(),l.warnings=this.warnings.slice(),l.options=Object.assign({},this.options),this.directives&&(l.directives=this.directives.clone()),l.schema=this.schema.clone(),l.contents=nt(this.contents)?this.contents.clone(l.schema):this.contents,this.range&&(l.range=this.range.slice()),l}add(l){Hi(this.contents)&&this.contents.add(l)}addIn(l,i){Hi(this.contents)&&this.contents.addIn(l,i)}createAlias(l,i){if(!l.anchor){const r=C1(this);l.anchor=!i||r.has(i)?O1(i||"a",r):i}return new Pf(l.anchor)}createNode(l,i,r){let s;if(typeof i=="function")l=i.call({"":l},"",l),s=i;else if(Array.isArray(i)){const C=q=>typeof q=="number"||q instanceof String||q instanceof Number,_=i.filter(C).map(String);_.length>0&&(i=i.concat(_)),s=i}else r===void 0&&i&&(r=i,i=void 0);const{aliasDuplicateObjects:o,anchorPrefix:c,flow:d,keepUndefined:m,onTagObj:p,tag:y}=r??{},{onAnchor:g,setAnchors:v,sourceObjects:S}=cA(this,c||"a"),E={aliasDuplicateObjects:o??!0,keepUndefined:m??!1,onAnchor:g,onTagObj:p,replacer:s,schema:this.schema,sourceObjects:S},x=pr(l,y,E);return d&&tt(x)&&(x.flow=!0),v(),x}createPair(l,i,r={}){const s=this.createNode(l,null,r),o=this.createNode(i,null,r);return new _t(s,o)}delete(l){return Hi(this.contents)?this.contents.delete(l):!1}deleteIn(l){return ar(l)?this.contents==null?!1:(this.contents=null,!0):Hi(this.contents)?this.contents.deleteIn(l):!1}get(l,i){return tt(this.contents)?this.contents.get(l,i):void 0}getIn(l,i){return ar(l)?!i&&Ke(this.contents)?this.contents.value:this.contents:tt(this.contents)?this.contents.getIn(l,i):void 0}has(l){return tt(this.contents)?this.contents.has(l):!1}hasIn(l){return ar(l)?this.contents!==void 0:tt(this.contents)?this.contents.hasIn(l):!1}set(l,i){this.contents==null?this.contents=as(this.schema,[l],i):Hi(this.contents)&&this.contents.set(l,i)}setIn(l,i){ar(l)?this.contents=i:this.contents==null?this.contents=as(this.schema,Array.from(l),i):Hi(this.contents)&&this.contents.setIn(l,i)}setSchema(l,i={}){typeof l=="number"&&(l=String(l));let r;switch(l){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new At({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=l:this.directives=new At({version:l}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const s=JSON.stringify(l);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(i.schema instanceof Object)this.schema=i.schema;else if(r)this.schema=new oh(Object.assign(r,i));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:l,jsonArg:i,mapAsMap:r,maxAliasCount:s,onAnchor:o,reviver:c}={}){const d={anchors:new Map,doc:this,keep:!l,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},m=sn(this.contents,i??"",d);if(typeof o=="function")for(const{count:p,res:y}of d.anchors.values())o(y,p);return typeof c=="function"?Ki(c,{"":m},"",m):m}toJSON(l,i){return this.toJS({json:!0,jsonArg:l,mapAsMap:!1,onAnchor:i})}toString(l={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in l&&(!Number.isInteger(l.indent)||Number(l.indent)<=0)){const i=JSON.stringify(l.indent);throw new Error(`"indent" option must be a positive integer, not ${i}`)}return BA(this,l)}}function Hi(n){if(tt(n))return!0;throw new Error("Expected a YAML collection as document contents")}class W1 extends Error{constructor(l,i,r,s){super(),this.name=l,this.code=r,this.message=s,this.pos=i}}class rr extends W1{constructor(l,i,r){super("YAMLParseError",l,i,r)}}class jA extends W1{constructor(l,i,r){super("YAMLWarning",l,i,r)}}const fy=(n,l)=>i=>{if(i.pos[0]===-1)return;i.linePos=i.pos.map(d=>l.linePos(d));const{line:r,col:s}=i.linePos[0];i.message+=` at line ${r}, column ${s}`;let o=s-1,c=n.substring(l.lineStarts[r-1],l.lineStarts[r]).replace(/[\n\r]+$/,"");if(o>=60&&c.length>80){const d=Math.min(o-39,c.length-79);c="…"+c.substring(d),o-=d-1}if(c.length>80&&(c=c.substring(0,79)+"…"),r>1&&/^ *$/.test(c.substring(0,o))){let d=n.substring(l.lineStarts[r-2],l.lineStarts[r-1]);d.length>80&&(d=d.substring(0,79)+`…
134
+ `),c=d+c}if(/[^ ]/.test(c)){let d=1;const m=i.linePos[1];(m==null?void 0:m.line)===r&&m.col>s&&(d=Math.max(1,Math.min(m.col-s,80-o)));const p=" ".repeat(o)+"^".repeat(d);i.message+=`:
135
+
136
+ ${c}
137
+ ${p}
138
+ `}};function Pi(n,{flow:l,indicator:i,next:r,offset:s,onError:o,parentIndent:c,startOnNewline:d}){let m=!1,p=d,y=d,g="",v="",S=!1,E=!1,x=null,C=null,_=null,q=null,j=null,$=null,P=null;for(const Z of n)switch(E&&(Z.type!=="space"&&Z.type!=="newline"&&Z.type!=="comma"&&o(Z.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),E=!1),x&&(p&&Z.type!=="comment"&&Z.type!=="newline"&&o(x,"TAB_AS_INDENT","Tabs are not allowed as indentation"),x=null),Z.type){case"space":!l&&(i!=="doc-start"||(r==null?void 0:r.type)!=="flow-collection")&&Z.source.includes(" ")&&(x=Z),y=!0;break;case"comment":{y||o(Z,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const ae=Z.source.substring(1)||" ";g?g+=v+ae:g=ae,v="",p=!1;break}case"newline":p?g?g+=Z.source:(!$||i!=="seq-item-ind")&&(m=!0):v+=Z.source,p=!0,S=!0,(C||_)&&(q=Z),y=!0;break;case"anchor":C&&o(Z,"MULTIPLE_ANCHORS","A node can have at most one anchor"),Z.source.endsWith(":")&&o(Z.offset+Z.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),C=Z,P??(P=Z.offset),p=!1,y=!1,E=!0;break;case"tag":{_&&o(Z,"MULTIPLE_TAGS","A node can have at most one tag"),_=Z,P??(P=Z.offset),p=!1,y=!1,E=!0;break}case i:(C||_)&&o(Z,"BAD_PROP_ORDER",`Anchors and tags must be after the ${Z.source} indicator`),$&&o(Z,"UNEXPECTED_TOKEN",`Unexpected ${Z.source} in ${l??"collection"}`),$=Z,p=i==="seq-item-ind"||i==="explicit-key-ind",y=!1;break;case"comma":if(l){j&&o(Z,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`),j=Z,p=!1,y=!1;break}default:o(Z,"UNEXPECTED_TOKEN",`Unexpected ${Z.type} token`),p=!1,y=!1}const D=n[n.length-1],K=D?D.offset+D.source.length:s;return E&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&o(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),x&&(p&&x.indent<=c||(r==null?void 0:r.type)==="block-map"||(r==null?void 0:r.type)==="block-seq")&&o(x,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:j,found:$,spaceBefore:m,comment:g,hasNewline:S,anchor:C,tag:_,newlineAfterProp:q,end:K,start:P??K}}function mr(n){if(!n)return null;switch(n.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(n.source.includes(`
139
+ `))return!0;if(n.end){for(const l of n.end)if(l.type==="newline")return!0}return!1;case"flow-collection":for(const l of n.items){for(const i of l.start)if(i.type==="newline")return!0;if(l.sep){for(const i of l.sep)if(i.type==="newline")return!0}if(mr(l.key)||mr(l.value))return!0}return!1;default:return!0}}function Of(n,l,i){if((l==null?void 0:l.type)==="flow-collection"){const r=l.end[0];r.indent===n&&(r.source==="]"||r.source==="}")&&mr(l)&&i(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function e0(n,l,i){const{uniqueKeys:r}=n.options;if(r===!1)return!1;const s=typeof r=="function"?r:(o,c)=>o===c||Ke(o)&&Ke(c)&&o.value===c.value;return l.some(o=>s(o.key,i))}const hy="All mapping items must start at the same column";function UA({composeNode:n,composeEmptyNode:l},i,r,s,o){var y;const c=(o==null?void 0:o.nodeClass)??un,d=new c(i.schema);i.atRoot&&(i.atRoot=!1);let m=r.offset,p=null;for(const g of r.items){const{start:v,key:S,sep:E,value:x}=g,C=Pi(v,{indicator:"explicit-key-ind",next:S??(E==null?void 0:E[0]),offset:m,onError:s,parentIndent:r.indent,startOnNewline:!0}),_=!C.found;if(_){if(S&&(S.type==="block-seq"?s(m,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in S&&S.indent!==r.indent&&s(m,"BAD_INDENT",hy)),!C.anchor&&!C.tag&&!E){p=C.end,C.comment&&(d.comment?d.comment+=`
140
+ `+C.comment:d.comment=C.comment);continue}(C.newlineAfterProp||mr(S))&&s(S??v[v.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((y=C.found)==null?void 0:y.indent)!==r.indent&&s(m,"BAD_INDENT",hy);i.atKey=!0;const q=C.end,j=S?n(i,S,C,s):l(i,q,v,null,C,s);i.schema.compat&&Of(r.indent,S,s),i.atKey=!1,e0(i,d.items,j)&&s(q,"DUPLICATE_KEY","Map keys must be unique");const $=Pi(E??[],{indicator:"map-value-ind",next:x,offset:j.range[2],onError:s,parentIndent:r.indent,startOnNewline:!S||S.type==="block-scalar"});if(m=$.end,$.found){_&&((x==null?void 0:x.type)==="block-map"&&!$.hasNewline&&s(m,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),i.options.strict&&C.start<$.found.offset-1024&&s(j.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const P=x?n(i,x,$,s):l(i,m,E,null,$,s);i.schema.compat&&Of(r.indent,x,s),m=P.range[2];const D=new _t(j,P);i.options.keepSourceTokens&&(D.srcToken=g),d.items.push(D)}else{_&&s(j.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),$.comment&&(j.comment?j.comment+=`
141
+ `+$.comment:j.comment=$.comment);const P=new _t(j);i.options.keepSourceTokens&&(P.srcToken=g),d.items.push(P)}}return p&&p<m&&s(p,"IMPOSSIBLE","Map comment with trailing content"),d.range=[r.offset,m,p??m],d}function qA({composeNode:n,composeEmptyNode:l},i,r,s,o){const c=(o==null?void 0:o.nodeClass)??Xl,d=new c(i.schema);i.atRoot&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let m=r.offset,p=null;for(const{start:y,value:g}of r.items){const v=Pi(y,{indicator:"seq-item-ind",next:g,offset:m,onError:s,parentIndent:r.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||g)(g==null?void 0:g.type)==="block-seq"?s(v.end,"BAD_INDENT","All sequence items must start at the same column"):s(m,"MISSING_CHAR","Sequence item without - indicator");else{p=v.end,v.comment&&(d.comment=v.comment);continue}const S=g?n(i,g,v,s):l(i,v.end,y,null,v,s);i.schema.compat&&Of(r.indent,g,s),m=S.range[2],d.items.push(S)}return d.range=[r.offset,m,p??m],d}function wr(n,l,i,r){let s="";if(n){let o=!1,c="";for(const d of n){const{source:m,type:p}=d;switch(p){case"space":o=!0;break;case"comment":{i&&!o&&r(d,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const y=m.substring(1)||" ";s?s+=c+y:s=y,c="";break}case"newline":s&&(c+=m),o=!0;break;default:r(d,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}l+=m.length}}return{comment:s,offset:l}}const cf="Block collections are not allowed within flow collections",ff=n=>n&&(n.type==="block-map"||n.type==="block-seq");function HA({composeNode:n,composeEmptyNode:l},i,r,s,o){var C;const c=r.start.source==="{",d=c?"flow map":"flow sequence",m=(o==null?void 0:o.nodeClass)??(c?un:Xl),p=new m(i.schema);p.flow=!0;const y=i.atRoot;y&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let g=r.offset+r.start.source.length;for(let _=0;_<r.items.length;++_){const q=r.items[_],{start:j,key:$,sep:P,value:D}=q,K=Pi(j,{flow:d,indicator:"explicit-key-ind",next:$??(P==null?void 0:P[0]),offset:g,onError:s,parentIndent:r.indent,startOnNewline:!1});if(!K.found){if(!K.anchor&&!K.tag&&!P&&!D){_===0&&K.comma?s(K.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${d}`):_<r.items.length-1&&s(K.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${d}`),K.comment&&(p.comment?p.comment+=`
142
+ `+K.comment:p.comment=K.comment),g=K.end;continue}!c&&i.options.strict&&mr($)&&s($,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(_===0)K.comma&&s(K.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${d}`);else if(K.comma||s(K.start,"MISSING_CHAR",`Missing , between ${d} items`),K.comment){let Z="";e:for(const ae of j)switch(ae.type){case"comma":case"space":break;case"comment":Z=ae.source.substring(1);break e;default:break e}if(Z){let ae=p.items[p.items.length-1];lt(ae)&&(ae=ae.value??ae.key),ae.comment?ae.comment+=`
143
+ `+Z:ae.comment=Z,K.comment=K.comment.substring(Z.length+1)}}if(!c&&!P&&!K.found){const Z=D?n(i,D,K,s):l(i,K.end,P,null,K,s);p.items.push(Z),g=Z.range[2],ff(D)&&s(Z.range,"BLOCK_IN_FLOW",cf)}else{i.atKey=!0;const Z=K.end,ae=$?n(i,$,K,s):l(i,Z,j,null,K,s);ff($)&&s(ae.range,"BLOCK_IN_FLOW",cf),i.atKey=!1;const B=Pi(P??[],{flow:d,indicator:"map-value-ind",next:D,offset:ae.range[2],onError:s,parentIndent:r.indent,startOnNewline:!1});if(B.found){if(!c&&!K.found&&i.options.strict){if(P)for(const re of P){if(re===B.found)break;if(re.type==="newline"){s(re,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}K.start<B.found.offset-1024&&s(B.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else D&&("source"in D&&((C=D.source)==null?void 0:C[0])===":"?s(D,"MISSING_CHAR",`Missing space after : in ${d}`):s(B.start,"MISSING_CHAR",`Missing , or : between ${d} items`));const te=D?n(i,D,B,s):B.found?l(i,B.end,P,null,B,s):null;te?ff(D)&&s(te.range,"BLOCK_IN_FLOW",cf):B.comment&&(ae.comment?ae.comment+=`
144
+ `+B.comment:ae.comment=B.comment);const X=new _t(ae,te);if(i.options.keepSourceTokens&&(X.srcToken=q),c){const re=p;e0(i,re.items,ae)&&s(Z,"DUPLICATE_KEY","Map keys must be unique"),re.items.push(X)}else{const re=new un(i.schema);re.flow=!0,re.items.push(X);const W=(te??ae).range;re.range=[ae.range[0],W[1],W[2]],p.items.push(re)}g=te?te.range[2]:B.end}}const v=c?"}":"]",[S,...E]=r.end;let x=g;if((S==null?void 0:S.source)===v)x=S.offset+S.source.length;else{const _=d[0].toUpperCase()+d.substring(1),q=y?`${_} must end with a ${v}`:`${_} in block collection must be sufficiently indented and end with a ${v}`;s(g,y?"MISSING_CHAR":"BAD_INDENT",q),S&&S.source.length!==1&&E.unshift(S)}if(E.length>0){const _=wr(E,x,i.options.strict,s);_.comment&&(p.comment?p.comment+=`
145
+ `+_.comment:p.comment=_.comment),p.range=[r.offset,x,_.offset]}else p.range=[r.offset,x,x];return p}function hf(n,l,i,r,s,o){const c=i.type==="block-map"?UA(n,l,i,r,o):i.type==="block-seq"?qA(n,l,i,r,o):HA(n,l,i,r,o),d=c.constructor;return s==="!"||s===d.tagName?(c.tag=d.tagName,c):(s&&(c.tag=s),c)}function YA(n,l,i,r,s){var v;const o=r.tag,c=o?l.directives.tagName(o.source,S=>s(o,"TAG_RESOLVE_FAILED",S)):null;if(i.type==="block-seq"){const{anchor:S,newlineAfterProp:E}=r,x=S&&o?S.offset>o.offset?S:o:S??o;x&&(!E||E.offset<x.offset)&&s(x,"MISSING_CHAR","Missing newline after block sequence props")}const d=i.type==="block-map"?"map":i.type==="block-seq"?"seq":i.start.source==="{"?"map":"seq";if(!o||!c||c==="!"||c===un.tagName&&d==="map"||c===Xl.tagName&&d==="seq")return hf(n,l,i,s,c);let m=l.schema.tags.find(S=>S.tag===c&&S.collection===d);if(!m){const S=l.schema.knownTags[c];if((S==null?void 0:S.collection)===d)l.schema.tags.push(Object.assign({},S,{default:!1})),m=S;else return S?s(o,"BAD_COLLECTION_TYPE",`${S.tag} used for ${d} collection, but expects ${S.collection??"scalar"}`,!0):s(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${c}`,!0),hf(n,l,i,s,c)}const p=hf(n,l,i,s,c,m),y=((v=m.resolve)==null?void 0:v.call(m,p,S=>s(o,"TAG_RESOLVE_FAILED",S),l.options))??p,g=nt(y)?y:new ye(y);return g.range=p.range,g.tag=c,m!=null&&m.format&&(g.format=m.format),g}function VA(n,l,i){const r=l.offset,s=IA(l,n.options.strict,i);if(!s)return{value:"",type:null,comment:"",range:[r,r,r]};const o=s.mode===">"?ye.BLOCK_FOLDED:ye.BLOCK_LITERAL,c=l.source?GA(l.source):[];let d=c.length;for(let x=c.length-1;x>=0;--x){const C=c[x][1];if(C===""||C==="\r")d=x;else break}if(d===0){const x=s.chomp==="+"&&c.length>0?`
146
+ `.repeat(Math.max(1,c.length-1)):"";let C=r+s.length;return l.source&&(C+=l.source.length),{value:x,type:o,comment:s.comment,range:[r,C,C]}}let m=l.indent+s.indent,p=l.offset+s.length,y=0;for(let x=0;x<d;++x){const[C,_]=c[x];if(_===""||_==="\r")s.indent===0&&C.length>m&&(m=C.length);else{C.length<m&&i(p+C.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(m=C.length),y=x,m===0&&!n.atRoot&&i(p,"BAD_INDENT","Block scalar values in collections must be indented");break}p+=C.length+_.length+1}for(let x=c.length-1;x>=d;--x)c[x][0].length>m&&(d=x+1);let g="",v="",S=!1;for(let x=0;x<y;++x)g+=c[x][0].slice(m)+`
147
+ `;for(let x=y;x<d;++x){let[C,_]=c[x];p+=C.length+_.length+1;const q=_[_.length-1]==="\r";if(q&&(_=_.slice(0,-1)),_&&C.length<m){const $=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;i(p-_.length-(q?2:1),"BAD_INDENT",$),C=""}o===ye.BLOCK_LITERAL?(g+=v+C.slice(m)+_,v=`
148
+ `):C.length>m||_[0]===" "?(v===" "?v=`
149
+ `:!S&&v===`
150
+ `&&(v=`
151
+
152
+ `),g+=v+C.slice(m)+_,v=`
153
+ `,S=!0):_===""?v===`
154
+ `?g+=`
155
+ `:v=`
156
+ `:(g+=v+_,v=" ",S=!1)}switch(s.chomp){case"-":break;case"+":for(let x=d;x<c.length;++x)g+=`
157
+ `+c[x][0].slice(m);g[g.length-1]!==`
158
+ `&&(g+=`
159
+ `);break;default:g+=`
160
+ `}const E=r+s.length+l.source.length;return{value:g,type:o,comment:s.comment,range:[r,E,E]}}function IA({offset:n,props:l},i,r){if(l[0].type!=="block-scalar-header")return r(l[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=l[0],o=s[0];let c=0,d="",m=-1;for(let v=1;v<s.length;++v){const S=s[v];if(!d&&(S==="-"||S==="+"))d=S;else{const E=Number(S);!c&&E?c=E:m===-1&&(m=n+v)}}m!==-1&&r(m,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let p=!1,y="",g=s.length;for(let v=1;v<l.length;++v){const S=l[v];switch(S.type){case"space":p=!0;case"newline":g+=S.source.length;break;case"comment":i&&!p&&r(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),g+=S.source.length,y=S.source.substring(1);break;case"error":r(S,"UNEXPECTED_TOKEN",S.message),g+=S.source.length;break;default:{const E=`Unexpected token in block scalar header: ${S.type}`;r(S,"UNEXPECTED_TOKEN",E);const x=S.source;x&&typeof x=="string"&&(g+=x.length)}}}return{mode:o,indent:c,chomp:d,comment:y,length:g}}function GA(n){const l=n.split(/\n( *)/),i=l[0],r=i.match(/^( *)/),o=[r!=null&&r[1]?[r[1],i.slice(r[1].length)]:["",i]];for(let c=1;c<l.length;c+=2)o.push([l[c],l[c+1]]);return o}function KA(n,l,i){const{offset:r,type:s,source:o,end:c}=n;let d,m;const p=(v,S,E)=>i(r+v,S,E);switch(s){case"scalar":d=ye.PLAIN,m=QA(o,p);break;case"single-quoted-scalar":d=ye.QUOTE_SINGLE,m=XA(o,p);break;case"double-quoted-scalar":d=ye.QUOTE_DOUBLE,m=$A(o,p);break;default:return i(n,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[r,r+o.length,r+o.length]}}const y=r+o.length,g=wr(c,y,l,i);return{value:m,type:d,comment:g.comment,range:[r,y,g.offset]}}function QA(n,l){let i="";switch(n[0]){case" ":i="a tab character";break;case",":i="flow indicator character ,";break;case"%":i="directive indicator character %";break;case"|":case">":{i=`block scalar indicator ${n[0]}`;break}case"@":case"`":{i=`reserved character ${n[0]}`;break}}return i&&l(0,"BAD_SCALAR_START",`Plain value cannot start with ${i}`),t0(n)}function XA(n,l){return(n[n.length-1]!=="'"||n.length===1)&&l(n.length,"MISSING_CHAR","Missing closing 'quote"),t0(n.slice(1,-1)).replace(/''/g,"'")}function t0(n){let l,i;try{l=new RegExp(`(.*?)(?<![ ])[ ]*\r?
161
+ `,"sy"),i=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
162
+ `,"sy")}catch{l=/(.*?)[ \t]*\r?\n/sy,i=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=l.exec(n);if(!r)return n;let s=r[1],o=" ",c=l.lastIndex;for(i.lastIndex=c;r=i.exec(n);)r[1]===""?o===`
163
+ `?s+=o:o=`
164
+ `:(s+=o+r[1],o=" "),c=i.lastIndex;const d=/[ \t]*(.*)/sy;return d.lastIndex=c,r=d.exec(n),s+o+((r==null?void 0:r[1])??"")}function $A(n,l){let i="";for(let r=1;r<n.length-1;++r){const s=n[r];if(!(s==="\r"&&n[r+1]===`
165
+ `))if(s===`
166
+ `){const{fold:o,offset:c}=FA(n,r);i+=o,r=c}else if(s==="\\"){let o=n[++r];const c=ZA[o];if(c)i+=c;else if(o===`
167
+ `)for(o=n[r+1];o===" "||o===" ";)o=n[++r+1];else if(o==="\r"&&n[r+1]===`
168
+ `)for(o=n[++r+1];o===" "||o===" ";)o=n[++r+1];else if(o==="x"||o==="u"||o==="U"){const d={x:2,u:4,U:8}[o];i+=JA(n,r+1,d,l),r+=d}else{const d=n.substr(r-1,2);l(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${d}`),i+=d}}else if(s===" "||s===" "){const o=r;let c=n[r+1];for(;c===" "||c===" ";)c=n[++r+1];c!==`
169
+ `&&!(c==="\r"&&n[r+2]===`
170
+ `)&&(i+=r>o?n.slice(o,r+1):s)}else i+=s}return(n[n.length-1]!=='"'||n.length===1)&&l(n.length,"MISSING_CHAR",'Missing closing "quote'),i}function FA(n,l){let i="",r=n[l+1];for(;(r===" "||r===" "||r===`
171
+ `||r==="\r")&&!(r==="\r"&&n[l+2]!==`
172
+ `);)r===`
173
+ `&&(i+=`
174
+ `),l+=1,r=n[l+1];return i||(i=" "),{fold:i,offset:l}}const ZA={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
175
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function JA(n,l,i,r){const s=n.substr(l,i),c=s.length===i&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;if(isNaN(c)){const d=n.substr(l-2,i+2);return r(l-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${d}`),d}return String.fromCodePoint(c)}function n0(n,l,i,r){const{value:s,type:o,comment:c,range:d}=l.type==="block-scalar"?VA(n,l,r):KA(l,n.options.strict,r),m=i?n.directives.tagName(i.source,g=>r(i,"TAG_RESOLVE_FAILED",g)):null;let p;n.options.stringKeys&&n.atKey?p=n.schema[wn]:m?p=PA(n.schema,s,m,i,r):l.type==="scalar"?p=WA(n,s,l,r):p=n.schema[wn];let y;try{const g=p.resolve(s,v=>r(i??l,"TAG_RESOLVE_FAILED",v),n.options);y=Ke(g)?g:new ye(g)}catch(g){const v=g instanceof Error?g.message:String(g);r(i??l,"TAG_RESOLVE_FAILED",v),y=new ye(s)}return y.range=d,y.source=s,o&&(y.type=o),m&&(y.tag=m),p.format&&(y.format=p.format),c&&(y.comment=c),y}function PA(n,l,i,r,s){var d;if(i==="!")return n[wn];const o=[];for(const m of n.tags)if(!m.collection&&m.tag===i)if(m.default&&m.test)o.push(m);else return m;for(const m of o)if((d=m.test)!=null&&d.test(l))return m;const c=n.knownTags[i];return c&&!c.collection?(n.tags.push(Object.assign({},c,{default:!1,test:void 0})),c):(s(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,i!=="tag:yaml.org,2002:str"),n[wn])}function WA({atKey:n,directives:l,schema:i},r,s,o){const c=i.tags.find(d=>{var m;return(d.default===!0||n&&d.default==="key")&&((m=d.test)==null?void 0:m.test(r))})||i[wn];if(i.compat){const d=i.compat.find(m=>{var p;return m.default&&((p=m.test)==null?void 0:p.test(r))})??i[wn];if(c.tag!==d.tag){const m=l.tagString(c.tag),p=l.tagString(d.tag),y=`Value may be parsed as either ${m} or ${p}`;o(s,"TAG_RESOLVE_FAILED",y,!0)}}return c}function eT(n,l,i){if(l){i??(i=l.length);for(let r=i-1;r>=0;--r){let s=l[r];switch(s.type){case"space":case"comment":case"newline":n-=s.source.length;continue}for(s=l[++r];(s==null?void 0:s.type)==="space";)n+=s.source.length,s=l[++r];break}}return n}const tT={composeNode:l0,composeEmptyNode:ch};function l0(n,l,i,r){const s=n.atKey,{spaceBefore:o,comment:c,anchor:d,tag:m}=i;let p,y=!0;switch(l.type){case"alias":p=nT(n,l,r),(d||m)&&r(l,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=n0(n,l,m,r),d&&(p.anchor=d.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=YA(tT,n,l,i,r),d&&(p.anchor=d.source.substring(1));break;default:{const g=l.type==="error"?l.message:`Unsupported token (type: ${l.type})`;r(l,"UNEXPECTED_TOKEN",g),p=ch(n,l.offset,void 0,null,i,r),y=!1}}return d&&p.anchor===""&&r(d,"BAD_ALIAS","Anchor cannot be an empty string"),s&&n.options.stringKeys&&(!Ke(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&r(m??l,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(p.spaceBefore=!0),c&&(l.type==="scalar"&&l.source===""?p.comment=c:p.commentBefore=c),n.options.keepSourceTokens&&y&&(p.srcToken=l),p}function ch(n,l,i,r,{spaceBefore:s,comment:o,anchor:c,tag:d,end:m},p){const y={type:"scalar",offset:eT(l,i,r),indent:-1,source:""},g=n0(n,y,d,p);return c&&(g.anchor=c.source.substring(1),g.anchor===""&&p(c,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(g.spaceBefore=!0),o&&(g.comment=o,g.range[2]=m),g}function nT({options:n},{offset:l,source:i,end:r},s){const o=new Pf(i.substring(1));o.source===""&&s(l,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&s(l+i.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const c=l+i.length,d=wr(r,c,n.strict,s);return o.range=[l,c,d.offset],d.comment&&(o.comment=d.comment),o}function lT(n,l,{offset:i,start:r,value:s,end:o},c){const d=Object.assign({_directives:l},n),m=new ks(void 0,d),p={atKey:!1,atRoot:!0,directives:m.directives,options:m.options,schema:m.schema},y=Pi(r,{indicator:"doc-start",next:s??(o==null?void 0:o[0]),offset:i,onError:c,parentIndent:0,startOnNewline:!0});y.found&&(m.directives.docStart=!0,s&&(s.type==="block-map"||s.type==="block-seq")&&!y.hasNewline&&c(y.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),m.contents=s?l0(p,s,y,c):ch(p,y.end,r,null,y,c);const g=m.contents.range[2],v=wr(o,g,!1,c);return v.comment&&(m.comment=v.comment),m.range=[i,g,v.offset],m}function ir(n){if(typeof n=="number")return[n,n+1];if(Array.isArray(n))return n.length===2?n:[n[0],n[1]];const{offset:l,source:i}=n;return[l,l+(typeof i=="string"?i.length:1)]}function dy(n){var s;let l="",i=!1,r=!1;for(let o=0;o<n.length;++o){const c=n[o];switch(c[0]){case"#":l+=(l===""?"":r?`
176
+
177
+ `:`
178
+ `)+(c.substring(1)||" "),i=!0,r=!1;break;case"%":((s=n[o+1])==null?void 0:s[0])!=="#"&&(o+=1),i=!1;break;default:i||(r=!0),i=!1}}return{comment:l,afterEmptyLine:r}}class iT{constructor(l={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(i,r,s,o)=>{const c=ir(i);o?this.warnings.push(new jA(c,r,s)):this.errors.push(new rr(c,r,s))},this.directives=new At({version:l.version||"1.2"}),this.options=l}decorate(l,i){const{comment:r,afterEmptyLine:s}=dy(this.prelude);if(r){const o=l.contents;if(i)l.comment=l.comment?`${l.comment}
179
+ ${r}`:r;else if(s||l.directives.docStart||!o)l.commentBefore=r;else if(tt(o)&&!o.flow&&o.items.length>0){let c=o.items[0];lt(c)&&(c=c.key);const d=c.commentBefore;c.commentBefore=d?`${r}
180
+ ${d}`:r}else{const c=o.commentBefore;o.commentBefore=c?`${r}
181
+ ${c}`:r}}i?(Array.prototype.push.apply(l.errors,this.errors),Array.prototype.push.apply(l.warnings,this.warnings)):(l.errors=this.errors,l.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:dy(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(l,i=!1,r=-1){for(const s of l)yield*this.next(s);yield*this.end(i,r)}*next(l){switch(l.type){case"directive":this.directives.add(l.source,(i,r,s)=>{const o=ir(l);o[0]+=i,this.onError(o,"BAD_DIRECTIVE",r,s)}),this.prelude.push(l.source),this.atDirectives=!0;break;case"document":{const i=lT(this.options,this.directives,l,this.onError);this.atDirectives&&!i.directives.docStart&&this.onError(l,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(i,!1),this.doc&&(yield this.doc),this.doc=i,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(l.source);break;case"error":{const i=l.source?`${l.message}: ${JSON.stringify(l.source)}`:l.message,r=new rr(ir(l),"UNEXPECTED_TOKEN",i);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new rr(ir(l),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const i=wr(l.end,l.offset+l.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),i.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
182
+ ${i.comment}`:i.comment}this.doc.range[2]=i.offset;break}default:this.errors.push(new rr(ir(l),"UNEXPECTED_TOKEN",`Unsupported token ${l.type}`))}}*end(l=!1,i=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(l){const r=Object.assign({_directives:this.directives},this.options),s=new ks(void 0,r);this.atDirectives&&this.onError(i,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,i,i],this.decorate(s,!1),yield s}}}const i0="\uFEFF",a0="",r0="",Nf="";function aT(n){switch(n){case i0:return"byte-order-mark";case a0:return"doc-mode";case r0:return"flow-error-end";case Nf:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
183
+ `:case`\r
184
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(n[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function pn(n){switch(n){case void 0:case" ":case`
185
+ `:case"\r":case" ":return!0;default:return!1}}const py=new Set("0123456789ABCDEFabcdef"),rT=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Fu=new Set(",[]{}"),uT=new Set(` ,[]{}
186
+ \r `),df=n=>!n||uT.has(n);class sT{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(l,i=!1){if(l){if(typeof l!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+l:l,this.lineEndPos=null}this.atEnd=!i;let r=this.next??"stream";for(;r&&(i||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let l=this.pos,i=this.buffer[l];for(;i===" "||i===" ";)i=this.buffer[++l];return!i||i==="#"||i===`
187
+ `?!0:i==="\r"?this.buffer[l+1]===`
188
+ `:!1}charAt(l){return this.buffer[this.pos+l]}continueScalar(l){let i=this.buffer[l];if(this.indentNext>0){let r=0;for(;i===" ";)i=this.buffer[++r+l];if(i==="\r"){const s=this.buffer[r+l+1];if(s===`
189
+ `||!s&&!this.atEnd)return l+r+1}return i===`
190
+ `||r>=this.indentNext||!i&&!this.atEnd?l+r:-1}if(i==="-"||i==="."){const r=this.buffer.substr(l,3);if((r==="---"||r==="...")&&pn(this.buffer[l+3]))return-1}return l}getLine(){let l=this.lineEndPos;return(typeof l!="number"||l!==-1&&l<this.pos)&&(l=this.buffer.indexOf(`
191
+ `,this.pos),this.lineEndPos=l),l===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[l-1]==="\r"&&(l-=1),this.buffer.substring(this.pos,l))}hasChars(l){return this.pos+l<=this.buffer.length}setNext(l){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=l,null}peek(l){return this.buffer.substr(this.pos,l)}*parseNext(l){switch(l){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let l=this.getLine();if(l===null)return this.setNext("stream");if(l[0]===i0&&(yield*this.pushCount(1),l=l.substring(1)),l[0]==="%"){let i=l.length,r=l.indexOf("#");for(;r!==-1;){const o=l[r-1];if(o===" "||o===" "){i=r-1;break}else r=l.indexOf("#",r+1)}for(;;){const o=l[i-1];if(o===" "||o===" ")i-=1;else break}const s=(yield*this.pushCount(i))+(yield*this.pushSpaces(!0));return yield*this.pushCount(l.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const i=yield*this.pushSpaces(!0);return yield*this.pushCount(l.length-i),yield*this.pushNewline(),"stream"}return yield a0,yield*this.parseLineStart()}*parseLineStart(){const l=this.charAt(0);if(!l&&!this.atEnd)return this.setNext("line-start");if(l==="-"||l==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const i=this.peek(3);if((i==="---"||i==="...")&&pn(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,i==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!pn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[l,i]=this.peek(2);if(!i&&!this.atEnd)return this.setNext("block-start");if((l==="-"||l==="?"||l===":")&&pn(i)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const l=this.getLine();if(l===null)return this.setNext("doc");let i=yield*this.pushIndicators();switch(l[i]){case"#":yield*this.pushCount(l.length-i);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(df),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return i+=yield*this.parseBlockScalarHeader(),i+=yield*this.pushSpaces(!0),yield*this.pushCount(l.length-i),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let l,i,r=-1;do l=yield*this.pushNewline(),l>0?(i=yield*this.pushSpaces(!1),this.indentValue=r=i):i=0,i+=yield*this.pushSpaces(!0);while(l+i>0);const s=this.getLine();if(s===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&s[0]!=="#"||r===0&&(s.startsWith("---")||s.startsWith("..."))&&pn(s[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield r0,yield*this.parseLineStart();let o=0;for(;s[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),s[o]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(df),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const c=this.charAt(1);if(this.flowKey||pn(c)||c===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const l=this.charAt(0);let i=this.buffer.indexOf(l,this.pos+1);if(l==="'")for(;i!==-1&&this.buffer[i+1]==="'";)i=this.buffer.indexOf("'",i+2);else for(;i!==-1;){let o=0;for(;this.buffer[i-1-o]==="\\";)o+=1;if(o%2===0)break;i=this.buffer.indexOf('"',i+1)}const r=this.buffer.substring(0,i);let s=r.indexOf(`
192
+ `,this.pos);if(s!==-1){for(;s!==-1;){const o=this.continueScalar(s+1);if(o===-1)break;s=r.indexOf(`
193
+ `,o)}s!==-1&&(i=s-(r[s-1]==="\r"?2:1))}if(i===-1){if(!this.atEnd)return this.setNext("quoted-scalar");i=this.buffer.length}return yield*this.pushToIndex(i+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let l=this.pos;for(;;){const i=this.buffer[++l];if(i==="+")this.blockScalarKeep=!0;else if(i>"0"&&i<="9")this.blockScalarIndent=Number(i)-1;else if(i!=="-")break}return yield*this.pushUntil(i=>pn(i)||i==="#")}*parseBlockScalar(){let l=this.pos-1,i=0,r;e:for(let o=this.pos;r=this.buffer[o];++o)switch(r){case" ":i+=1;break;case`
194
+ `:l=o,i=0;break;case"\r":{const c=this.buffer[o+1];if(!c&&!this.atEnd)return this.setNext("block-scalar");if(c===`
195
+ `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(i>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=i:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const o=this.continueScalar(l+1);if(o===-1)break;l=this.buffer.indexOf(`
196
+ `,o)}while(l!==-1);if(l===-1){if(!this.atEnd)return this.setNext("block-scalar");l=this.buffer.length}}let s=l+1;for(r=this.buffer[s];r===" ";)r=this.buffer[++s];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
197
+ `;)r=this.buffer[++s];l=s-1}else if(!this.blockScalarKeep)do{let o=l-1,c=this.buffer[o];c==="\r"&&(c=this.buffer[--o]);const d=o;for(;c===" ";)c=this.buffer[--o];if(c===`
198
+ `&&o>=this.pos&&o+1+i>d)l=o;else break}while(!0);return yield Nf,yield*this.pushToIndex(l+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const l=this.flowLevel>0;let i=this.pos-1,r=this.pos-1,s;for(;s=this.buffer[++r];)if(s===":"){const o=this.buffer[r+1];if(pn(o)||l&&Fu.has(o))break;i=r}else if(pn(s)){let o=this.buffer[r+1];if(s==="\r"&&(o===`
199
+ `?(r+=1,s=`
200
+ `,o=this.buffer[r+1]):i=r),o==="#"||l&&Fu.has(o))break;if(s===`
201
+ `){const c=this.continueScalar(r+1);if(c===-1)break;r=Math.max(r,c-2)}}else{if(l&&Fu.has(s))break;i=r}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield Nf,yield*this.pushToIndex(i+1,!0),l?"flow":"doc")}*pushCount(l){return l>0?(yield this.buffer.substr(this.pos,l),this.pos+=l,l):0}*pushToIndex(l,i){const r=this.buffer.slice(this.pos,l);return r?(yield r,this.pos+=r.length,r.length):(i&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(df))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const l=this.flowLevel>0,i=this.charAt(1);if(pn(i)||l&&Fu.has(i))return l?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let l=this.pos+2,i=this.buffer[l];for(;!pn(i)&&i!==">";)i=this.buffer[++l];return yield*this.pushToIndex(i===">"?l+1:l,!1)}else{let l=this.pos+1,i=this.buffer[l];for(;i;)if(rT.has(i))i=this.buffer[++l];else if(i==="%"&&py.has(this.buffer[l+1])&&py.has(this.buffer[l+2]))i=this.buffer[l+=3];else break;return yield*this.pushToIndex(l,!1)}}*pushNewline(){const l=this.buffer[this.pos];return l===`
202
+ `?yield*this.pushCount(1):l==="\r"&&this.charAt(1)===`
203
+ `?yield*this.pushCount(2):0}*pushSpaces(l){let i=this.pos-1,r;do r=this.buffer[++i];while(r===" "||l&&r===" ");const s=i-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=i),s}*pushUntil(l){let i=this.pos,r=this.buffer[i];for(;!l(r);)r=this.buffer[++i];return yield*this.pushToIndex(i,!1)}}class oT{constructor(){this.lineStarts=[],this.addNewLine=l=>this.lineStarts.push(l),this.linePos=l=>{let i=0,r=this.lineStarts.length;for(;i<r;){const o=i+r>>1;this.lineStarts[o]<l?i=o+1:r=o}if(this.lineStarts[i]===l)return{line:i+1,col:1};if(i===0)return{line:0,col:l};const s=this.lineStarts[i-1];return{line:i,col:l-s+1}}}}function kl(n,l){for(let i=0;i<n.length;++i)if(n[i].type===l)return!0;return!1}function my(n){for(let l=0;l<n.length;++l)switch(n[l].type){case"space":case"comment":case"newline":break;default:return l}return-1}function u0(n){switch(n==null?void 0:n.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Zu(n){switch(n.type){case"document":return n.start;case"block-map":{const l=n.items[n.items.length-1];return l.sep??l.start}case"block-seq":return n.items[n.items.length-1].start;default:return[]}}function Yi(n){var i;if(n.length===0)return[];let l=n.length;e:for(;--l>=0;)switch(n[l].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((i=n[++l])==null?void 0:i.type)==="space";);return n.splice(l,n.length)}function gy(n){if(n.start.type==="flow-seq-start")for(const l of n.items)l.sep&&!l.value&&!kl(l.start,"explicit-key-ind")&&!kl(l.sep,"map-value-ind")&&(l.key&&(l.value=l.key),delete l.key,u0(l.value)?l.value.end?Array.prototype.push.apply(l.value.end,l.sep):l.value.end=l.sep:Array.prototype.push.apply(l.start,l.sep),delete l.sep)}class cT{constructor(l){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new sT,this.onNewLine=l}*parse(l,i=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(l,i))yield*this.next(r);i||(yield*this.end())}*next(l){if(this.source=l,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=l.length;return}const i=aT(l);if(i)if(i==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=i,yield*this.step(),i){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+l.length);break;case"space":this.atNewLine&&l[0]===" "&&(this.indent+=l.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=l.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=l.length}else{const r=`Not a YAML token: ${l}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:l}),this.offset+=l.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const l=this.peek(1);if(this.type==="doc-end"&&(l==null?void 0:l.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!l)return yield*this.stream();switch(l.type){case"document":return yield*this.document(l);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(l);case"block-scalar":return yield*this.blockScalar(l);case"block-map":return yield*this.blockMap(l);case"block-seq":return yield*this.blockSequence(l);case"flow-collection":return yield*this.flowCollection(l);case"doc-end":return yield*this.documentEnd(l)}yield*this.pop()}peek(l){return this.stack[this.stack.length-l]}*pop(l){const i=l??this.stack.pop();if(!i)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield i;else{const r=this.peek(1);switch(i.type==="block-scalar"?i.indent="indent"in r?r.indent:0:i.type==="flow-collection"&&r.type==="document"&&(i.indent=0),i.type==="flow-collection"&&gy(i),r.type){case"document":r.value=i;break;case"block-scalar":r.props.push(i);break;case"block-map":{const s=r.items[r.items.length-1];if(s.value){r.items.push({start:[],key:i,sep:[]}),this.onKeyLine=!0;return}else if(s.sep)s.value=i;else{Object.assign(s,{key:i,sep:[]}),this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{const s=r.items[r.items.length-1];s.value?r.items.push({start:[],value:i}):s.value=i;break}case"flow-collection":{const s=r.items[r.items.length-1];!s||s.value?r.items.push({start:[],key:i,sep:[]}):s.sep?s.value=i:Object.assign(s,{key:i,sep:[]});return}default:yield*this.pop(),yield*this.pop(i)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(i.type==="block-map"||i.type==="block-seq")){const s=i.items[i.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&my(s.start)===-1&&(i.indent===0||s.start.every(o=>o.type!=="comment"||o.indent<i.indent))&&(r.type==="document"?r.end=s.start:r.items.push({start:s.start}),i.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const l={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&l.start.push(this.sourceToken),this.stack.push(l);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(l){if(l.value)return yield*this.lineEnd(l);switch(this.type){case"doc-start":{my(l.start)!==-1?(yield*this.pop(),yield*this.step()):l.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":l.start.push(this.sourceToken);return}const i=this.startBlockValue(l);i?this.stack.push(i):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(l){if(this.type==="map-value-ind"){const i=Zu(this.peek(2)),r=Yi(i);let s;l.end?(s=l.end,s.push(this.sourceToken),delete l.end):s=[this.sourceToken];const o={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:r,key:l,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(l)}*blockScalar(l){switch(this.type){case"space":case"comment":case"newline":l.props.push(this.sourceToken);return;case"scalar":if(l.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let i=this.source.indexOf(`
204
+ `)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(`
205
+ `,i)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(l){var r;const i=l.items[l.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,i.value){const s="end"in i.value?i.value.end:void 0,o=Array.isArray(s)?s[s.length-1]:void 0;(o==null?void 0:o.type)==="comment"?s==null||s.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)l.items.push({start:[this.sourceToken]});else if(i.sep)i.sep.push(this.sourceToken);else{if(this.atIndentedComment(i.start,l.indent)){const s=l.items[l.items.length-2],o=(r=s==null?void 0:s.value)==null?void 0:r.end;if(Array.isArray(o)){Array.prototype.push.apply(o,i.start),o.push(this.sourceToken),l.items.pop();return}}i.start.push(this.sourceToken)}return}if(this.indent>=l.indent){const s=!this.onKeyLine&&this.indent===l.indent,o=s&&(i.sep||i.explicitKey)&&this.type!=="seq-item-ind";let c=[];if(o&&i.sep&&!i.value){const d=[];for(let m=0;m<i.sep.length;++m){const p=i.sep[m];switch(p.type){case"newline":d.push(m);break;case"space":break;case"comment":p.indent>l.indent&&(d.length=0);break;default:d.length=0}}d.length>=2&&(c=i.sep.splice(d[1]))}switch(this.type){case"anchor":case"tag":o||i.value?(c.push(this.sourceToken),l.items.push({start:c}),this.onKeyLine=!0):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"explicit-key-ind":!i.sep&&!i.explicitKey?(i.start.push(this.sourceToken),i.explicitKey=!0):o||i.value?(c.push(this.sourceToken),l.items.push({start:c,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(i.explicitKey)if(i.sep)if(i.value)l.items.push({start:[],key:null,sep:[this.sourceToken]});else if(kl(i.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:c,key:null,sep:[this.sourceToken]}]});else if(u0(i.key)&&!kl(i.sep,"newline")){const d=Yi(i.start),m=i.key,p=i.sep;p.push(this.sourceToken),delete i.key,delete i.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:d,key:m,sep:p}]})}else c.length>0?i.sep=i.sep.concat(c,this.sourceToken):i.sep.push(this.sourceToken);else if(kl(i.start,"newline"))Object.assign(i,{key:null,sep:[this.sourceToken]});else{const d=Yi(i.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:d,key:null,sep:[this.sourceToken]}]})}else i.sep?i.value||o?l.items.push({start:c,key:null,sep:[this.sourceToken]}):kl(i.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const d=this.flowScalar(this.type);o||i.value?(l.items.push({start:c,key:d,sep:[]}),this.onKeyLine=!0):i.sep?this.stack.push(d):(Object.assign(i,{key:d,sep:[]}),this.onKeyLine=!0);return}default:{const d=this.startBlockValue(l);if(d){if(d.type==="block-seq"){if(!i.explicitKey&&i.sep&&!kl(i.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else s&&l.items.push({start:c});this.stack.push(d);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(l){var r;const i=l.items[l.items.length-1];switch(this.type){case"newline":if(i.value){const s="end"in i.value?i.value.end:void 0,o=Array.isArray(s)?s[s.length-1]:void 0;(o==null?void 0:o.type)==="comment"?s==null||s.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)l.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(i.start,l.indent)){const s=l.items[l.items.length-2],o=(r=s==null?void 0:s.value)==null?void 0:r.end;if(Array.isArray(o)){Array.prototype.push.apply(o,i.start),o.push(this.sourceToken),l.items.pop();return}}i.start.push(this.sourceToken)}return;case"anchor":case"tag":if(i.value||this.indent<=l.indent)break;i.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==l.indent)break;i.value||kl(i.start,"seq-item-ind")?l.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return}if(this.indent>l.indent){const s=this.startBlockValue(l);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(l){const i=l.items[l.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while((r==null?void 0:r.type)==="flow-collection")}else if(l.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!i||i.sep?l.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return;case"map-value-ind":!i||i.value?l.items.push({start:[],key:null,sep:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!i||i.value?l.items.push({start:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);!i||i.value?l.items.push({start:[],key:s,sep:[]}):i.sep?this.stack.push(s):Object.assign(i,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":l.end.push(this.sourceToken);return}const r=this.startBlockValue(l);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===l.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const s=Zu(r),o=Yi(s);gy(l);const c=l.end.splice(1,l.end.length);c.push(this.sourceToken);const d={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:o,key:l,sep:c}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=d}else yield*this.lineEnd(l)}}flowScalar(l){if(this.onNewLine){let i=this.source.indexOf(`
206
+ `)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(`
207
+ `,i)+1}return{type:l,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(l){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const i=Zu(l),r=Yi(i);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const i=Zu(l),r=Yi(i);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(l,i){return this.type!=="comment"||this.indent<=i?!1:l.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(l){this.type!=="doc-mode"&&(l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(l){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function fT(n){const l=n.prettyErrors!==!1;return{lineCounter:n.lineCounter||l&&new oT||null,prettyErrors:l}}function hT(n,l={}){const{lineCounter:i,prettyErrors:r}=fT(l),s=new cT(i==null?void 0:i.addNewLine),o=new iT(l);let c=null;for(const d of o.compose(s.parse(n),!0,n.length))if(!c)c=d;else if(c.options.logLevel!=="silent"){c.errors.push(new rr(d.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&i&&(c.errors.forEach(fy(n,i)),c.warnings.forEach(fy(n,i))),c}function dT(n,l,i){let r;const s=hT(n,i);if(!s)return null;if(s.warnings.forEach(o=>L1(s.options.logLevel,o)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:r},i))}var ft=class extends Error{constructor(n){super(n),this.name="ParseError"}};function yy(n,l){if(n===null||typeof n!="object"||Array.isArray(n))throw new ft(`${l}: expected an object`)}function pT(n,l){if(!Array.isArray(n))throw new ft(`${l}: expected an array`)}function Kn(n,l){if(typeof n!="string")throw new ft(`${l}: expected a string`)}function mT(n){let l;try{l=dT(n)}catch(c){const d=c instanceof Error?c.message:String(c);throw new ft(`Invalid YAML: ${d}`)}yy(l,"root");const i=l;if(!("board"in i))throw new ft("Missing required field: board");if(Kn(i.board,"board"),i.board.trim()==="")throw new ft("board must be a non-empty string");if(!("columns"in i))throw new ft("Missing required field: columns");if(pT(i.columns,"columns"),i.columns.length===0)throw new ft("columns must be a non-empty array");const r=i.columns.map((c,d)=>{const m=`columns[${d}]`;if(typeof c=="string"){if(c.trim()==="")throw new ft(`${m}: column name must be non-empty`);return{name:c}}if(c!==null&&typeof c=="object"&&!Array.isArray(c)){const p=c;if(!("name"in p))throw new ft(`${m}: column object must have "name"`);if(Kn(p.name,`${m}.name`),p.name.trim()==="")throw new ft(`${m}.name: must be non-empty`);const y={name:p.name};if("limit"in p&&p.limit!==void 0){if(typeof p.limit!="number"||!Number.isInteger(p.limit)||p.limit<1)throw new ft(`${m}.limit: must be a positive integer`);y.limit=p.limit}return y}throw new ft(`${m}: expected a string or object with "name" (and optional "limit")`)});if(!("tasks"in i))throw new ft("Missing required field: tasks");if(i.tasks===null||typeof i.tasks!="object"||Array.isArray(i.tasks))throw new ft("tasks must be an object (map of task id to task)");const s=i.tasks,o={};for(const[c,d]of Object.entries(s)){const m=`tasks.${c}`;yy(d,m);const p=d;if(!("title"in p))throw new ft(`${m}: missing required field "title"`);if(Kn(p.title,`${m}.title`),!("status"in p))throw new ft(`${m}: missing required field "status"`);Kn(p.status,`${m}.status`);const y={title:p.title,status:p.status};if("description"in p&&p.description!==void 0&&(Kn(p.description,`${m}.description`),y.description=p.description),"spec"in p&&p.spec!==void 0&&(Kn(p.spec,`${m}.spec`),y.spec=p.spec),"owner"in p&&p.owner!==void 0&&(Kn(p.owner,`${m}.owner`),y.owner=p.owner),"priority"in p&&p.priority!==void 0&&(Kn(p.priority,`${m}.priority`),y.priority=p.priority),"depends_on"in p&&p.depends_on!==void 0)if(typeof p.depends_on=="string")y.depends_on=[p.depends_on];else if(Array.isArray(p.depends_on)){const g=p.depends_on;for(let v=0;v<g.length;v++)Kn(g[v],`${m}.depends_on[${v}]`);y.depends_on=g}else throw new ft(`${m}.depends_on: expected a string or array of strings`);o[c]=y}return{board:i.board,columns:r,tasks:o}}var Vi=["Backlog","Ready","In Progress","Done"];function gT(n){var c;const l=[],i=n.columns.map(d=>d.name);if(n.columns.length!==Vi.length)l.push({path:"columns",message:`Board must have exactly ${Vi.length} columns: ${Vi.join(", ")}. Got ${n.columns.length}.`,code:"COLUMNS_NOT_CANONICAL"});else for(let d=0;d<Vi.length;d++){const m=Vi[d],p=(c=n.columns[d])==null?void 0:c.name;p!==m&&l.push({path:`columns[${d}]`,message:`Column at index ${d} must be "${m}". Got "${p}". Canonical order: ${Vi.join(", ")}.`,code:"COLUMNS_NOT_CANONICAL"})}const r=new Set;for(let d=0;d<n.columns.length;d++){const m=n.columns[d].name;r.has(m)&&l.push({path:`columns[${d}]`,message:`Duplicate column name: "${m}"`,code:"DUPLICATE_COLUMN"}),r.add(m)}const s=new Set(Object.keys(n.tasks));for(const[d,m]of Object.entries(n.tasks)){const p=`tasks.${d}`;if(i.includes(m.status)||l.push({path:`${p}.status`,message:`Task status "${m.status}" does not match any column. Valid columns: ${i.join(", ")}`,code:"STATUS_INVALID"}),m.depends_on)for(const y of m.depends_on)s.has(y)||l.push({path:`${p}.depends_on`,message:`Task "${d}" depends on "${y}", which does not exist`,code:"DEPENDS_ON_INVALID"})}const o=new Map;for(const d of Object.values(n.tasks))o.set(d.status,(o.get(d.status)??0)+1);for(let d=0;d<n.columns.length;d++){const m=n.columns[d];if(m.limit==null)continue;const p=o.get(m.name)??0;p>m.limit&&l.push({path:`columns[${d}]`,message:`Column "${m.name}" has limit ${m.limit} but ${p} task(s) in that status`,code:"WIP_LIMIT_EXCEEDED"})}return l}function yT(n){const l=gT(n);return{valid:l.length===0,errors:l,warnings:[]}}const by=["var(--color-primary)","var(--color-secondary)","var(--color-tertiary)"];function s0(n){return by[n%by.length]}function bT({id:n,task:l,isMoving:i,onTaskClick:r}){const s=()=>r==null?void 0:r(n,l);return le.jsxs("article",{className:`card ${i?"card--moving":""} ${r?"card--clickable":""}`,"data-task-id":n,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?s:void 0,onKeyDown:r?o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),s())}:void 0,children:[le.jsx("div",{className:"card__id",children:n}),le.jsx("h3",{className:"card__title",children:l.title}),l.description!=null&&l.description!==""&&le.jsx("p",{className:"card__description",children:l.description}),(l.owner!=null||l.priority!=null)&&le.jsxs("div",{className:"card__meta",children:[l.owner!=null&&le.jsx("span",{className:"card__owner",children:l.owner}),l.priority!=null&&le.jsx("span",{className:"card__priority",children:l.priority})]}),l.depends_on!=null&&l.depends_on.length>0&&le.jsxs("div",{className:"card__deps",children:["Depends on: ",l.depends_on.join(", ")]})]})}function ST({board:n,movedTaskIds:l=new Set,onTaskClick:i}){const r=new Map;for(const[s,o]of Object.entries(n.tasks)){const c=r.get(o.status)??[];c.push({id:s,task:o}),r.set(o.status,c)}return le.jsxs("div",{className:"board",children:[le.jsx("h2",{className:"board__name",children:n.board}),le.jsx("div",{className:"board__lanes",children:n.columns.map((s,o)=>{const c=r.get(s.name)??[],d=c.length,m=s.limit!=null&&s.limit>=1&&d>=s.limit;return le.jsxs("section",{className:"lane",style:{"--lane-accent":s0(o)},children:[le.jsxs("header",{className:"lane__header",children:[le.jsx("span",{className:"lane__name",children:s.name}),s.limit!=null?le.jsxs("span",{className:`lane__count ${m?"lane__count--at-limit":""}`,children:[d,"/",s.limit]}):le.jsx("span",{className:"lane__count",children:d})]}),le.jsx("div",{className:"lane__cards",children:c.map(({id:p,task:y})=>le.jsx(bT,{id:p,task:y,isMoving:l.has(p),onTaskClick:i},p))})]},s.name)})})]})}const o0="statecraft-theme";function vT(){const n=localStorage.getItem(o0);return n==="light"||n==="dark"?n:typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Sy(n){const l=new Map;for(const[i,r]of Object.entries(n.tasks))l.set(i,r.status);return l}function kT(n,l){if(n===null)return new Set;const i=new Set;for(const[r,s]of Object.entries(l.tasks)){const o=n.get(r);o!==void 0&&o!==s.status&&i.add(r)}return i}function wT(){const[n,l]=Ze.useState(vT),[i,r]=Ze.useState(null),[s,o]=Ze.useState([]),[c,d]=Ze.useState(!1),[m,p]=Ze.useState(new Set),[y,g]=Ze.useState(null),[v,S]=Ze.useState(null),[E,x]=Ze.useState(!1),[C,_]=Ze.useState(null),q=Ze.useRef(null),j=Ze.useRef(null),$=Ze.useRef(null);Ze.useEffect(()=>{document.documentElement.setAttribute("data-theme",n),localStorage.setItem(o0,n)},[n]);const P=Ze.useCallback(()=>{l(X=>X==="light"?"dark":"light")},[]),D=Ze.useCallback(X=>{var M;o([]);let re;try{re=mT(X)}catch(F){const se=F instanceof ft?F.message:String(F);o([`Parse error: ${se}`]),r(null);return}const W=yT(re),J=W.errors.map(F=>F.message);(M=W.warnings)!=null&&M.length&&J.push(...W.warnings.map(F=>`Warning: ${F.message}`)),o(J),r(F=>{const se=F?Sy(F):null;q.current=Sy(re);const Se=kT(se,re);return Se.size>0&&(p(Se),$.current&&clearTimeout($.current),$.current=setTimeout(()=>{p(new Set),$.current=null},500)),re})},[]),K=Ze.useCallback(async()=>{d(!0),o([]);try{const X=await fetch("/api/board");if(!X.ok){const W=await X.text();o([`API error ${X.status}: ${W||X.statusText}`]),r(null);return}const re=await X.text();D(re)}catch(X){o([`Network error: ${X instanceof Error?X.message:String(X)}`]),r(null)}finally{d(!1)}},[D]);Ze.useEffect(()=>{K()},[K]),Ze.useEffect(()=>{const re=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/board/watch`,W=new WebSocket(re);return j.current=W,W.onmessage=J=>{const M=typeof J.data=="string"?J.data:"";D(M)},()=>{W.close(),j.current=null}},[D]),Ze.useEffect(()=>()=>{$.current&&clearTimeout($.current)},[]);const Z=Ze.useCallback(X=>{D(X.target.value)},[D]),ae=Ze.useCallback(X=>{var J;const re=(J=X.target.files)==null?void 0:J[0];if(!re)return;const W=new FileReader;W.onload=()=>{const M=typeof W.result=="string"?W.result:"";D(M)},W.readAsText(re),X.target.value=""},[D]),B=Ze.useCallback((X,re)=>{g({id:X,task:re}),S(null),_(null),re.spec&&(x(!0),fetch(`/api/spec?path=${encodeURIComponent(re.spec)}`).then(W=>{const J=W.headers.get("content-type")??"";if(!W.ok)throw new Error(W.status===404?"Spec file not found":W.statusText);return W.text().then(M=>{if(J.includes("text/html")||M.trimStart().startsWith("<!")||M.trimStart().toLowerCase().startsWith("<html"))throw new Error("Spec not available (unexpected response)");return M})}).then(W=>{S(W),_(null)}).catch(W=>_(W instanceof Error?W.message:"Failed to load spec")).finally(()=>x(!1)))},[]),te=Ze.useCallback(()=>{g(null),S(null),_(null),x(!1)},[]);return le.jsxs("div",{className:"app",children:[le.jsxs("header",{className:"header",children:[le.jsx("img",{src:"/logo.png",alt:"Statecraft",className:"header__logo"}),le.jsx("h1",{className:"header__title",children:"Statecraft"}),le.jsx("button",{type:"button",className:"header__theme-toggle",onClick:P,title:n==="light"?"Switch to dark mode":"Switch to light mode","aria-label":n==="light"?"Switch to dark mode":"Switch to light mode",children:n==="light"?le.jsx("svg",{className:"header__theme-icon",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:le.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):le.jsxs("svg",{className:"header__theme-icon",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[le.jsx("circle",{cx:"12",cy:"12",r:"5"}),le.jsx("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]})})]}),le.jsxs("main",{className:"main",children:[s.length>0&&le.jsxs("section",{className:"errors","aria-label":"Errors and warnings",children:[le.jsx("h2",{className:"errors__title",children:"Errors / Warnings"}),le.jsx("ul",{className:"errors__list",children:s.map((X,re)=>le.jsx("li",{className:"errors__item",children:X},re))})]}),i?le.jsxs(le.Fragment,{children:[le.jsx(ST,{board:i,movedTaskIds:m,onTaskClick:B}),y&&(()=>{const X=i.columns.findIndex(J=>J.name===y.task.status),re=s0(X>=0?X:0),W=y.task.description!=null&&y.task.description!==""||y.task.owner!=null||y.task.priority!=null||y.task.depends_on!=null&&y.task.depends_on.length>0;return le.jsx("div",{className:"modal-overlay",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",onClick:J=>J.target===J.currentTarget&&te(),children:le.jsxs("div",{className:"modal",onClick:J=>J.stopPropagation(),children:[le.jsxs("header",{className:"modal__header",style:{borderTopColor:re},children:[le.jsxs("div",{className:"modal__header-inner",children:[le.jsxs("h2",{id:"modal-title",className:"modal__title",children:[le.jsx("span",{className:"modal__id",children:y.id}),y.task.title]}),le.jsx("span",{className:"modal__status",style:{background:re},title:`Column: ${y.task.status}`,children:y.task.status})]}),le.jsx("button",{type:"button",className:"modal__close",onClick:te,"aria-label":"Close",children:"×"})]}),le.jsxs("div",{className:"modal__body",children:[y.task.description!=null&&y.task.description!==""||y.task.owner!=null||y.task.priority!=null||y.task.depends_on!=null&&y.task.depends_on.length>0?le.jsxs("section",{className:"modal__description-section",children:[le.jsx("h3",{className:"modal__section-title",children:"Description"}),y.task.description!=null&&y.task.description!==""&&le.jsx("p",{className:"modal__description",children:y.task.description}),(y.task.owner!=null||y.task.priority!=null)&&le.jsxs("div",{className:"modal__meta",children:[y.task.owner!=null&&le.jsx("span",{className:"modal__owner",children:y.task.owner}),y.task.priority!=null&&le.jsx("span",{className:"modal__priority",children:y.task.priority})]}),y.task.depends_on!=null&&y.task.depends_on.length>0&&le.jsxs("p",{className:"modal__deps",children:["Depends on:"," ",y.task.depends_on.join(", ")]})]}):null,y.task.spec&&le.jsxs("div",{className:`modal__spec ${W?"modal__spec--with-separator":""}`,children:[le.jsx("h3",{className:"modal__spec-title",children:"Spec"}),E&&le.jsx("p",{className:"modal__spec-loading",children:"Loading…"}),C&&le.jsx("p",{className:"modal__spec-error",children:C}),v!=null&&!E&&le.jsx("div",{className:"modal__spec-content",children:le.jsx(G2,{remarkPlugins:[lA],children:v})})]})]})]})})})()]}):le.jsxs("section",{className:"load-board","aria-label":"Load board",children:[le.jsx("h2",{className:"load-board__title",children:"Load board"}),c?le.jsx("p",{className:"load-board__hint",children:"Loading from API…"}):le.jsxs(le.Fragment,{children:[le.jsxs("p",{className:"load-board__hint",children:["Board not found or not loaded. Fetch from API (when served by"," ",le.jsx("code",{children:"statecraft render"}),"), or use paste/file below."]}),le.jsxs("div",{className:"load-board__actions",children:[le.jsx("button",{type:"button",className:"load-board__btn",onClick:K,disabled:c,children:"Fetch from API"}),le.jsxs("label",{className:"load-board__file-label",children:[le.jsx("span",{className:"load-board__file-text",children:"Choose file"}),le.jsx("input",{type:"file",accept:".yaml,.yml,text/yaml,text/plain",className:"load-board__file-input",onChange:ae})]})]}),le.jsxs("label",{className:"load-board__paste-label",children:[le.jsx("span",{className:"load-board__paste-caption",children:"Or paste YAML"}),le.jsx("textarea",{className:"load-board__paste-input",placeholder:"Paste board YAML here…",rows:8,onChange:Z})]})]})]})]})]})}MS.createRoot(document.getElementById("root")).render(le.jsx(Ze.StrictMode,{children:le.jsx(wT,{})}));