@robota-sdk/agent-cli 3.0.0-beta.8 → 3.0.0-beta.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -21
- package/README.md +1105 -116
- package/bin/robota.cjs +39 -0
- package/dist/node/bin.js +7 -9
- package/dist/node/bounded-output-DpjpS98g-DFgAppgl.js +2 -0
- package/dist/node/bounded-output-DpjpS98g-DFgAppgl.js.map +1 -0
- package/dist/node/bounded-output-DpjpS98g-DoRuRGhV.js +2 -0
- package/dist/node/bounded-output-DpjpS98g-yPybHprY.cjs +1 -0
- package/dist/node/cli-core-Bah38oug.js +2795 -0
- package/dist/node/command-executor-DV-H2oD6-BfKoGoFw.js +2 -0
- package/dist/node/command-executor-DV-H2oD6-OKy8pwYH.js +2 -0
- package/dist/node/command-executor-DV-H2oD6-OKy8pwYH.js.map +1 -0
- package/dist/node/command-executor-DV-H2oD6-iQAXtTLY.cjs +1 -0
- package/dist/node/headless.js +4 -0
- package/dist/node/http-executor-cWzI2svn-C7F17ZGz.cjs +1 -0
- package/dist/node/http-executor-cWzI2svn-TG_TMYKh.js +2 -0
- package/dist/node/http-executor-cWzI2svn-TG_TMYKh.js.map +1 -0
- package/dist/node/http-executor-cWzI2svn-Ype0naht.js +2 -0
- package/dist/node/index.cjs +2782 -1345
- package/dist/node/index.d.cts +3408 -36
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.d.ts +3408 -36
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +2794 -13
- package/dist/node/index.js.map +1 -0
- package/dist/node/node-2-nrieFn.js +2 -0
- package/dist/node/node-2-nrieFn.js.map +1 -0
- package/dist/node/node-C-hnFnOP.js +67 -0
- package/dist/node/node-CFTax5Wl.cjs +1 -0
- package/dist/node/node-CJnrbkAS.js +14 -0
- package/dist/node/node-CJnrbkAS.js.map +1 -0
- package/dist/node/node-ChG9Tg1I.js +2 -0
- package/dist/node/node-DDl02brx.cjs +66 -0
- package/dist/node/node-DIRGC_1P.js +67 -0
- package/dist/node/node-DIRGC_1P.js.map +1 -0
- package/dist/node/node-OBnZskvR.cjs +1 -0
- package/dist/node/node-bJ0lEuNF.js +2 -0
- package/dist/node/node-bJ0lEuNF.js.map +1 -0
- package/dist/node/node-tf433Aey.cjs +13 -0
- package/dist/node/node-uwhEt6sT.js +14 -0
- package/dist/node/rolldown-runtime-C9xYM0wc.js +1 -0
- package/dist/node/rolldown-runtime-DK3Fl9T5-BIInC43l.cjs +1 -0
- package/dist/node/rolldown-runtime-DK3Fl9T5-BeX3Bzvn.js +2 -0
- package/dist/node/rolldown-runtime-DK3Fl9T5-DK3Fl9T5.js +2 -0
- package/dist/node/rolldown-runtime-DK3Fl9T5-DK3Fl9T5.js.map +1 -0
- package/dist/node/rolldown-runtime-rs7quPpn.js +2 -0
- package/dist/node/verdict-decoder-Dk_w2NG9-BKWMtxp8.js +2 -0
- package/dist/node/verdict-decoder-Dk_w2NG9-Bka7Cldj.js +2 -0
- package/dist/node/verdict-decoder-Dk_w2NG9-Bka7Cldj.js.map +1 -0
- package/dist/node/verdict-decoder-Dk_w2NG9-DNTeVdQ8.cjs +1 -0
- package/dist/web/assets/index-8_Slbxe7.css +1 -0
- package/dist/web/assets/index-Cgu5C1kn.js +77 -0
- package/dist/web/index.html +13 -0
- package/package.json +159 -32
- package/dist/node/bin.cjs +0 -1339
- package/dist/node/bin.d.cts +0 -1
- package/dist/node/bin.d.ts +0 -1
- package/dist/node/chunk-ICKV3U6G.js +0 -1318
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const h of s)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function u(s){const h={};return s.integrity&&(h.integrity=s.integrity),s.referrerPolicy&&(h.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?h.credentials="include":s.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(s){if(s.ep)return;s.ep=!0;const h=u(s);fetch(s.href,h)}})();function cr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Oc={exports:{}},xa={};/**
|
|
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 wm;function P1(){if(wm)return xa;wm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function u(r,s,h){var f=null;if(h!==void 0&&(f=""+h),s.key!==void 0&&(f=""+s.key),"key"in s){h={};for(var m in s)m!=="key"&&(h[m]=s[m])}else h=s;return s=h.ref,{$$typeof:n,type:r,key:f,ref:s!==void 0?s:null,props:h}}return xa.Fragment=a,xa.jsx=u,xa.jsxs=u,xa}var Dm;function e0(){return Dm||(Dm=1,Oc.exports=P1()),Oc.exports}var X=e0(),Mc={exports:{}},ye={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Om;function t0(){if(Om)return ye;Om=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function v(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,q={};function N(A,Y,k){this.props=A,this.context=Y,this.refs=q,this.updater=k||z}N.prototype.isReactComponent={},N.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Y,"setState")},N.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function K(){}K.prototype=N.prototype;function Z(A,Y,k){this.props=A,this.context=Y,this.refs=q,this.updater=k||z}var ie=Z.prototype=new K;ie.constructor=Z,L(ie,N.prototype),ie.isPureReactComponent=!0;var ue=Array.isArray;function D(){}var F={H:null,A:null,T:null,S:null},de=Object.prototype.hasOwnProperty;function pe(A,Y,k){var P=k.ref;return{$$typeof:n,type:A,key:Y,ref:P!==void 0?P:null,props:k}}function U(A,Y){return pe(A.type,Y,A.props)}function te(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ee(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(k){return Y[k]})}var Se=/\/+/g;function le(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?ee(""+A.key):Y.toString(36)}function I(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(D,D):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function C(A,Y,k,P,he){var oe=typeof A;(oe==="undefined"||oe==="boolean")&&(A=null);var _e=!1;if(A===null)_e=!0;else switch(oe){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(A.$$typeof){case n:case a:_e=!0;break;case b:return _e=A._init,C(_e(A._payload),Y,k,P,he)}}if(_e)return he=he(A),_e=P===""?"."+le(A,0):P,ue(he)?(k="",_e!=null&&(k=_e.replace(Se,"$&/")+"/"),C(he,Y,k,"",function(Vt){return Vt})):he!=null&&(te(he)&&(he=U(he,k+(he.key==null||A&&A.key===he.key?"":(""+he.key).replace(Se,"$&/")+"/")+_e)),Y.push(he)),1;_e=0;var Ke=P===""?".":P+":";if(ue(A))for(var Le=0;Le<A.length;Le++)P=A[Le],oe=Ke+le(P,Le),_e+=C(P,Y,k,oe,he);else if(Le=v(A),typeof Le=="function")for(A=Le.call(A),Le=0;!(P=A.next()).done;)P=P.value,oe=Ke+le(P,Le++),_e+=C(P,Y,k,oe,he);else if(oe==="object"){if(typeof A.then=="function")return C(I(A),Y,k,P,he);throw Y=String(A),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return _e}function B(A,Y,k){if(A==null)return A;var P=[],he=0;return C(A,P,"","",function(oe){return Y.call(k,oe,he++)}),P}function $(A){if(A._status===-1){var Y=A._result;Y=Y(),Y.then(function(k){(A._status===0||A._status===-1)&&(A._status=1,A._result=k)},function(k){(A._status===0||A._status===-1)&&(A._status=2,A._result=k)}),A._status===-1&&(A._status=0,A._result=Y)}if(A._status===1)return A._result.default;throw A._result}var re=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},E={map:B,forEach:function(A,Y,k){B(A,function(){Y.apply(this,arguments)},k)},count:function(A){var Y=0;return B(A,function(){Y++}),Y},toArray:function(A){return B(A,function(Y){return Y})||[]},only:function(A){if(!te(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ye.Activity=y,ye.Children=E,ye.Component=N,ye.Fragment=u,ye.Profiler=s,ye.PureComponent=Z,ye.StrictMode=r,ye.Suspense=p,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ye.__COMPILER_RUNTIME={__proto__:null,c:function(A){return F.H.useMemoCache(A)}},ye.cache=function(A){return function(){return A.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(A,Y,k){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var P=L({},A.props),he=A.key;if(Y!=null)for(oe in Y.key!==void 0&&(he=""+Y.key),Y)!de.call(Y,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&Y.ref===void 0||(P[oe]=Y[oe]);var oe=arguments.length-2;if(oe===1)P.children=k;else if(1<oe){for(var _e=Array(oe),Ke=0;Ke<oe;Ke++)_e[Ke]=arguments[Ke+2];P.children=_e}return pe(A.type,he,P)},ye.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:h,_context:A},A},ye.createElement=function(A,Y,k){var P,he={},oe=null;if(Y!=null)for(P in Y.key!==void 0&&(oe=""+Y.key),Y)de.call(Y,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(he[P]=Y[P]);var _e=arguments.length-2;if(_e===1)he.children=k;else if(1<_e){for(var Ke=Array(_e),Le=0;Le<_e;Le++)Ke[Le]=arguments[Le+2];he.children=Ke}if(A&&A.defaultProps)for(P in _e=A.defaultProps,_e)he[P]===void 0&&(he[P]=_e[P]);return pe(A,oe,he)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(A){return{$$typeof:m,render:A}},ye.isValidElement=te,ye.lazy=function(A){return{$$typeof:b,_payload:{_status:-1,_result:A},_init:$}},ye.memo=function(A,Y){return{$$typeof:d,type:A,compare:Y===void 0?null:Y}},ye.startTransition=function(A){var Y=F.T,k={};F.T=k;try{var P=A(),he=F.S;he!==null&&he(k,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(D,re)}catch(oe){re(oe)}finally{Y!==null&&k.types!==null&&(Y.types=k.types),F.T=Y}},ye.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ye.use=function(A){return F.H.use(A)},ye.useActionState=function(A,Y,k){return F.H.useActionState(A,Y,k)},ye.useCallback=function(A,Y){return F.H.useCallback(A,Y)},ye.useContext=function(A){return F.H.useContext(A)},ye.useDebugValue=function(){},ye.useDeferredValue=function(A,Y){return F.H.useDeferredValue(A,Y)},ye.useEffect=function(A,Y){return F.H.useEffect(A,Y)},ye.useEffectEvent=function(A){return F.H.useEffectEvent(A)},ye.useId=function(){return F.H.useId()},ye.useImperativeHandle=function(A,Y,k){return F.H.useImperativeHandle(A,Y,k)},ye.useInsertionEffect=function(A,Y){return F.H.useInsertionEffect(A,Y)},ye.useLayoutEffect=function(A,Y){return F.H.useLayoutEffect(A,Y)},ye.useMemo=function(A,Y){return F.H.useMemo(A,Y)},ye.useOptimistic=function(A,Y){return F.H.useOptimistic(A,Y)},ye.useReducer=function(A,Y,k){return F.H.useReducer(A,Y,k)},ye.useRef=function(A){return F.H.useRef(A)},ye.useState=function(A){return F.H.useState(A)},ye.useSyncExternalStore=function(A,Y,k){return F.H.useSyncExternalStore(A,Y,k)},ye.useTransition=function(){return F.H.useTransition()},ye.version="19.2.8",ye}var Mm;function ds(){return Mm||(Mm=1,Mc.exports=t0()),Mc.exports}var xe=ds();const Np=cr(xe);var Nc={exports:{}},va={},Rc={exports:{}},Uc={};/**
|
|
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 Nm;function n0(){return Nm||(Nm=1,(function(n){function a(C,B){var $=C.length;C.push(B);e:for(;0<$;){var re=$-1>>>1,E=C[re];if(0<s(E,B))C[re]=B,C[$]=E,$=re;else break e}}function u(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var B=C[0],$=C.pop();if($!==B){C[0]=$;e:for(var re=0,E=C.length,A=E>>>1;re<A;){var Y=2*(re+1)-1,k=C[Y],P=Y+1,he=C[P];if(0>s(k,$))P<E&&0>s(he,k)?(C[re]=he,C[P]=$,re=P):(C[re]=k,C[Y]=$,re=Y);else if(P<E&&0>s(he,$))C[re]=he,C[P]=$,re=P;else break e}}return B}function s(C,B){var $=C.sortIndex-B.sortIndex;return $!==0?$:C.id-B.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var f=Date,m=f.now();n.unstable_now=function(){return f.now()-m}}var p=[],d=[],b=1,y=null,S=3,v=!1,z=!1,L=!1,q=!1,N=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function ie(C){for(var B=u(d);B!==null;){if(B.callback===null)r(d);else if(B.startTime<=C)r(d),B.sortIndex=B.expirationTime,a(p,B);else break;B=u(d)}}function ue(C){if(L=!1,ie(C),!z)if(u(p)!==null)z=!0,D||(D=!0,ee());else{var B=u(d);B!==null&&I(ue,B.startTime-C)}}var D=!1,F=-1,de=5,pe=-1;function U(){return q?!0:!(n.unstable_now()-pe<de)}function te(){if(q=!1,D){var C=n.unstable_now();pe=C;var B=!0;try{e:{z=!1,L&&(L=!1,K(F),F=-1),v=!0;var $=S;try{t:{for(ie(C),y=u(p);y!==null&&!(y.expirationTime>C&&U());){var re=y.callback;if(typeof re=="function"){y.callback=null,S=y.priorityLevel;var E=re(y.expirationTime<=C);if(C=n.unstable_now(),typeof E=="function"){y.callback=E,ie(C),B=!0;break t}y===u(p)&&r(p),ie(C)}else r(p);y=u(p)}if(y!==null)B=!0;else{var A=u(d);A!==null&&I(ue,A.startTime-C),B=!1}}break e}finally{y=null,S=$,v=!1}B=void 0}}finally{B?ee():D=!1}}}var ee;if(typeof Z=="function")ee=function(){Z(te)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,le=Se.port2;Se.port1.onmessage=te,ee=function(){le.postMessage(null)}}else ee=function(){N(te,0)};function I(C,B){F=N(function(){C(n.unstable_now())},B)}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(C){C.callback=null},n.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<C?Math.floor(1e3/C):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(C){switch(S){case 1:case 2:case 3:var B=3;break;default:B=S}var $=S;S=B;try{return C()}finally{S=$}},n.unstable_requestPaint=function(){q=!0},n.unstable_runWithPriority=function(C,B){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var $=S;S=C;try{return B()}finally{S=$}},n.unstable_scheduleCallback=function(C,B,$){var re=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?re+$:re):$=re,C){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=$+E,C={id:b++,callback:B,priorityLevel:C,startTime:$,expirationTime:E,sortIndex:-1},$>re?(C.sortIndex=$,a(d,C),u(p)===null&&C===u(d)&&(L?(K(F),F=-1):L=!0,I(ue,$-re))):(C.sortIndex=E,a(p,C),z||v||(z=!0,D||(D=!0,ee()))),C},n.unstable_shouldYield=U,n.unstable_wrapCallback=function(C){var B=S;return function(){var $=S;S=B;try{return C.apply(this,arguments)}finally{S=$}}}})(Uc)),Uc}var Rm;function l0(){return Rm||(Rm=1,Rc.exports=n0()),Rc.exports}var jc={exports:{}},mt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Um;function i0(){if(Um)return mt;Um=1;var n=ds();function a(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)d+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(a(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},s=Symbol.for("react.portal");function h(p,d,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:p,containerInfo:d,implementation:b}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mt.createPortal=function(p,d){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(a(299));return h(p,d,null,b)},mt.flushSync=function(p){var d=f.T,b=r.p;try{if(f.T=null,r.p=2,p)return p()}finally{f.T=d,r.p=b,r.d.f()}},mt.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(p,d))},mt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},mt.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var b=d.as,y=m(b,d.crossOrigin),S=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;b==="style"?r.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:v}):b==="script"&&r.d.X(p,{crossOrigin:y,integrity:S,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},mt.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var b=m(d.as,d.crossOrigin);r.d.M(p,{crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(p)},mt.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var b=d.as,y=m(b,d.crossOrigin);r.d.L(p,b,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},mt.preloadModule=function(p,d){if(typeof p=="string")if(d){var b=m(d.as,d.crossOrigin);r.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(p)},mt.requestFormReset=function(p){r.d.r(p)},mt.unstable_batchedUpdates=function(p,d){return p(d)},mt.useFormState=function(p,d,b){return f.H.useFormState(p,d,b)},mt.useFormStatus=function(){return f.H.useHostTransitionStatus()},mt.version="19.2.8",mt}var jm;function a0(){if(jm)return jc.exports;jm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),jc.exports=i0(),jc.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Lm;function u0(){if(Lm)return va;Lm=1;var n=l0(),a=ds(),u=a0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(r(188))}function d(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,i=t;;){var o=l.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){l=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===l)return p(o),e;if(c===i)return p(o),t;c=c.sibling}throw Error(r(188))}if(l.return!==i.return)l=o,i=c;else{for(var g=!1,x=o.child;x;){if(x===l){g=!0,l=o,i=c;break}if(x===i){g=!0,i=o,l=c;break}x=x.sibling}if(!g){for(x=c.child;x;){if(x===l){g=!0,l=c,i=o;break}if(x===i){g=!0,i=c,l=o;break}x=x.sibling}if(!g)throw Error(r(189))}}if(l.alternate!==i)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case N:return"Profiler";case q:return"StrictMode";case ue:return"Suspense";case D:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case Z:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case de:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var I=Array.isArray,C=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},re=[],E=-1;function A(e){return{current:e}}function Y(e){0>E||(e.current=re[E],re[E]=null,E--)}function k(e,t){E++,re[E]=e.current,e.current=t}var P=A(null),he=A(null),oe=A(null),_e=A(null);function Ke(e,t){switch(k(oe,t),k(he,e),k(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Pd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(P),k(P,e)}function Le(){Y(P),Y(he),Y(oe)}function Vt(e){e.memoizedState!==null&&k(_e,e);var t=P.current,l=Pd(t,e.type);t!==l&&(k(he,e),k(P,l))}function hn(e){he.current===e&&(Y(P),Y(he)),_e.current===e&&(Y(_e),pa._currentValue=$)}var _i,Ra;function dn(e){if(_i===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);_i=t&&t[1]||"",Ra=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+_i+e+Ra}var Ol=!1;function Ml(e,t){if(!e||Ol)return"";Ol=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={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(j){var R=j}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(j){R=j}e.call(Q.prototype)}}else{try{throw Error()}catch(j){R=j}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(j){if(j&&R&&typeof j.stack=="string")return[j.stack,R.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),g=c[0],x=c[1];if(g&&x){var T=g.split(`
|
|
44
|
+
`),M=x.split(`
|
|
45
|
+
`);for(o=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;if(i===T.length||o===M.length)for(i=T.length-1,o=M.length-1;1<=i&&0<=o&&T[i]!==M[o];)o--;for(;1<=i&&0<=o;i--,o--)if(T[i]!==M[o]){if(i!==1||o!==1)do if(i--,o--,0>o||T[i]!==M[o]){var H=`
|
|
46
|
+
`+T[i].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=i&&0<=o);break}}}finally{Ol=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?dn(l):""}function Ua(e,t){switch(e.tag){case 26:case 27:case 5:return dn(e.type);case 16:return dn("Lazy");case 13:return e.child!==t&&t!==null?dn("Suspense Fallback"):dn("Suspense");case 19:return dn("SuspenseList");case 0:case 15:return Ml(e.type,!1);case 11:return Ml(e.type.render,!1);case 1:return Ml(e.type,!0);case 31:return dn("Activity");default:return""}}function ja(e){try{var t="",l=null;do t+=Ua(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
|
|
47
|
+
Error generating stack: `+i.message+`
|
|
48
|
+
`+i.stack}}var Nl=Object.prototype.hasOwnProperty,Rl=n.unstable_scheduleCallback,zi=n.unstable_cancelCallback,pr=n.unstable_shouldYield,gr=n.unstable_requestPaint,bt=n.unstable_now,yr=n.unstable_getCurrentPriorityLevel,V=n.unstable_ImmediatePriority,W=n.unstable_UserBlockingPriority,me=n.unstable_NormalPriority,ke=n.unstable_LowPriority,Re=n.unstable_IdlePriority,Mt=n.log,mn=n.unstable_setDisableYieldValue,xt=null,at=null;function kt(e){if(typeof Mt=="function"&&mn(e),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(xt,e)}catch{}}var Ye=Math.clz32?Math.clz32:Hg,Un=Math.log,en=Math.LN2;function Hg(e){return e>>>=0,e===0?32:31-(Un(e)/en|0)|0}var La=256,Ba=262144,Ha=4194304;function cl(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 qa(e,t,l){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var x=i&134217727;return x!==0?(i=x&~c,i!==0?o=cl(i):(g&=x,g!==0?o=cl(g):l||(l=x&~e,l!==0&&(o=cl(l))))):(x=i&~c,x!==0?o=cl(x):g!==0?o=cl(g):l||(l=i&~e,l!==0&&(o=cl(l)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:o}function Ci(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ms(){var e=Ha;return Ha<<=1,(Ha&62914560)===0&&(Ha=4194304),e}function br(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function wi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yg(e,t,l,i,o,c){var g=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var x=e.entanglements,T=e.expirationTimes,M=e.hiddenUpdates;for(l=g&~l;0<l;){var H=31-Ye(l),Q=1<<H;x[H]=0,T[H]=-1;var R=M[H];if(R!==null)for(M[H]=null,H=0;H<R.length;H++){var j=R[H];j!==null&&(j.lane&=-536870913)}l&=~Q}i!==0&&Ns(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function Ns(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Ye(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function Rs(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var i=31-Ye(l),o=1<<i;o&t|e[i]&t&&(e[i]|=t),l&=~o}}function Us(e,t){var l=t&-t;return l=(l&42)!==0?1:xr(l),(l&(e.suspendedLanes|t))!==0?0:l}function xr(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 vr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function js(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:km(e.type))}function Ls(e,t){var l=B.p;try{return B.p=e,t()}finally{B.p=l}}var jn=Math.random().toString(36).slice(2),ct="__reactFiber$"+jn,Et="__reactProps$"+jn,Ul="__reactContainer$"+jn,Sr="__reactEvents$"+jn,Vg="__reactListeners$"+jn,Gg="__reactHandles$"+jn,Bs="__reactResources$"+jn,Di="__reactMarker$"+jn;function kr(e){delete e[ct],delete e[Et],delete e[Sr],delete e[Vg],delete e[Gg]}function jl(e){var t=e[ct];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ul]||l[ct]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=um(e);e!==null;){if(l=e[ct])return l;e=um(e)}return t}e=l,l=e.parentNode}return null}function Ll(e){if(e=e[ct]||e[Ul]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Oi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Bl(e){var t=e[Bs];return t||(t=e[Bs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[Di]=!0}var Hs=new Set,qs={};function sl(e,t){Hl(e,t),Hl(e+"Capture",t)}function Hl(e,t){for(qs[e]=t,e=0;e<t.length;e++)Hs.add(t[e])}var Xg=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]*$"),Ys={},Vs={};function Qg(e){return Nl.call(Vs,e)?!0:Nl.call(Ys,e)?!1:Xg.test(e)?Vs[e]=!0:(Ys[e]=!0,!1)}function Ya(e,t,l){if(Qg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Va(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function pn(e,t,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+i)}}function Gt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zg(e,t,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(g){l=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Er(e){if(!e._valueTracker){var t=Gs(e)?"checked":"value";e._valueTracker=Zg(e,t,""+e[t])}}function Xs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=Gs(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function Ga(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 Kg=/[\n"\\]/g;function Xt(e){return e.replace(Kg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Tr(e,t,l,i,o,c,g,x){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Gt(t)):e.value!==""+Gt(t)&&(e.value=""+Gt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Ar(e,g,Gt(t)):l!=null?Ar(e,g,Gt(l)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Gt(x):e.removeAttribute("name")}function Qs(e,t,l,i,o,c,g,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Er(e);return}l=l!=null?""+Gt(l):"",t=t!=null?""+Gt(t):l,x||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=x?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Er(e)}function Ar(e,t,l){t==="number"&&Ga(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ql(e,t,l,i){if(e=e.options,t){t={};for(var o=0;o<l.length;o++)t["$"+l[o]]=!0;for(l=0;l<e.length;l++)o=t.hasOwnProperty("$"+e[l].value),e[l].selected!==o&&(e[l].selected=o),o&&i&&(e[l].defaultSelected=!0)}else{for(l=""+Gt(l),t=null,o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Zs(e,t,l){if(t!=null&&(t=""+Gt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Gt(l):""}function Ks(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(r(92));if(I(i)){if(1<i.length)throw Error(r(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=Gt(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),Er(e)}function Yl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Jg=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Js(e,t,l){var i=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,l):typeof l!="number"||l===0||Jg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Fs(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&l[o]!==i&&Js(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&Js(e,c,t[c])}function _r(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 Fg=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"]]),Ig=/^[\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 Xa(e){return Ig.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function gn(){}var zr=null;function Cr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,Gl=null;function Is(e){var t=Ll(e);if(t&&(e=t.stateNode)){var l=e[Et]||null;e:switch(e=t.stateNode,t.type){case"input":if(Tr(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Xt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var i=l[t];if(i!==e&&i.form===e.form){var o=i[Et]||null;if(!o)throw Error(r(90));Tr(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)i=l[t],i.form===e.form&&Xs(i)}break e;case"textarea":Zs(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ql(e,!!l.multiple,t,!1)}}}var wr=!1;function $s(e,t,l){if(wr)return e(t,l);wr=!0;try{var i=e(t);return i}finally{if(wr=!1,(Vl!==null||Gl!==null)&&(Ou(),Vl&&(t=Vl,e=Gl,Gl=Vl=null,Is(t),e)))for(t=0;t<e.length;t++)Is(e[t])}}function Mi(e,t){var l=e.stateNode;if(l===null)return null;var i=l[Et]||null;if(i===null)return null;l=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dr=!1;if(yn)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){Dr=!0}}),window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{Dr=!1}var Ln=null,Or=null,Qa=null;function Ws(){if(Qa)return Qa;var e,t=Or,l=t.length,i,o="value"in Ln?Ln.value:Ln.textContent,c=o.length;for(e=0;e<l&&t[e]===o[e];e++);var g=l-e;for(i=1;i<=g&&t[l-i]===o[c-i];i++);return Qa=o.slice(e,1<i?1-i:void 0)}function Za(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 Ka(){return!0}function Ps(){return!1}function Tt(e){function t(l,i,o,c,g){this._reactName=l,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(l=e[x],this[x]=l?l(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ka:Ps,this.isPropagationStopped=Ps,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ka)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ka)},persist:function(){},isPersistent:Ka}),t}var fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ja=Tt(fl),Ri=y({},fl,{view:0,detail:0}),$g=Tt(Ri),Mr,Nr,Ui,Fa=y({},Ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ur,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!==Ui&&(Ui&&e.type==="mousemove"?(Mr=e.screenX-Ui.screenX,Nr=e.screenY-Ui.screenY):Nr=Mr=0,Ui=e),Mr)},movementY:function(e){return"movementY"in e?e.movementY:Nr}}),ef=Tt(Fa),Wg=y({},Fa,{dataTransfer:0}),Pg=Tt(Wg),ey=y({},Ri,{relatedTarget:0}),Rr=Tt(ey),ty=y({},fl,{animationName:0,elapsedTime:0,pseudoElement:0}),ny=Tt(ty),ly=y({},fl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iy=Tt(ly),ay=y({},fl,{data:0}),tf=Tt(ay),uy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ry={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"},oy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=oy[e])?!!t[e]:!1}function Ur(){return cy}var sy=y({},Ri,{key:function(e){if(e.key){var t=uy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Za(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ry[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ur,charCode:function(e){return e.type==="keypress"?Za(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Za(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fy=Tt(sy),hy=y({},Fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nf=Tt(hy),dy=y({},Ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ur}),my=Tt(dy),py=y({},fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),gy=Tt(py),yy=y({},Fa,{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}),by=Tt(yy),xy=y({},fl,{newState:0,oldState:0}),vy=Tt(xy),Sy=[9,13,27,32],jr=yn&&"CompositionEvent"in window,ji=null;yn&&"documentMode"in document&&(ji=document.documentMode);var ky=yn&&"TextEvent"in window&&!ji,lf=yn&&(!jr||ji&&8<ji&&11>=ji),af=" ",uf=!1;function rf(e,t){switch(e){case"keyup":return Sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function of(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xl=!1;function Ey(e,t){switch(e){case"compositionend":return of(t);case"keypress":return t.which!==32?null:(uf=!0,af);case"textInput":return e=t.data,e===af&&uf?null:e;default:return null}}function Ty(e,t){if(Xl)return e==="compositionend"||!jr&&rf(e,t)?(e=Ws(),Qa=Or=Ln=null,Xl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return lf&&t.locale!=="ko"?null:t.data;default:return null}}var Ay={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ay[e.type]:t==="textarea"}function sf(e,t,l,i){Vl?Gl?Gl.push(i):Gl=[i]:Vl=i,t=Bu(t,"onChange"),0<t.length&&(l=new Ja("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var Li=null,Bi=null;function _y(e){Zd(e,0)}function Ia(e){var t=Oi(e);if(Xs(t))return e}function ff(e,t){if(e==="change")return t}var hf=!1;if(yn){var Lr;if(yn){var Br="oninput"in document;if(!Br){var df=document.createElement("div");df.setAttribute("oninput","return;"),Br=typeof df.oninput=="function"}Lr=Br}else Lr=!1;hf=Lr&&(!document.documentMode||9<document.documentMode)}function mf(){Li&&(Li.detachEvent("onpropertychange",pf),Bi=Li=null)}function pf(e){if(e.propertyName==="value"&&Ia(Bi)){var t=[];sf(t,Bi,e,Cr(e)),$s(_y,t)}}function zy(e,t,l){e==="focusin"?(mf(),Li=t,Bi=l,Li.attachEvent("onpropertychange",pf)):e==="focusout"&&mf()}function Cy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ia(Bi)}function wy(e,t){if(e==="click")return Ia(t)}function Dy(e,t){if(e==="input"||e==="change")return Ia(t)}function Oy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:Oy;function Hi(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var o=l[i];if(!Nl.call(t,o)||!Nt(e[o],t[o]))return!1}return!0}function gf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yf(e,t){var l=gf(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=t&&i>=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=gf(l)}}function bf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ga(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ga(e.document)}return t}function Hr(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 My=yn&&"documentMode"in document&&11>=document.documentMode,Ql=null,qr=null,qi=null,Yr=!1;function vf(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Yr||Ql==null||Ql!==Ga(i)||(i=Ql,"selectionStart"in i&&Hr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),qi&&Hi(qi,i)||(qi=i,i=Bu(qr,"onSelect"),0<i.length&&(t=new Ja("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=Ql)))}function hl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Zl={animationend:hl("Animation","AnimationEnd"),animationiteration:hl("Animation","AnimationIteration"),animationstart:hl("Animation","AnimationStart"),transitionrun:hl("Transition","TransitionRun"),transitionstart:hl("Transition","TransitionStart"),transitioncancel:hl("Transition","TransitionCancel"),transitionend:hl("Transition","TransitionEnd")},Vr={},Sf={};yn&&(Sf=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function dl(e){if(Vr[e])return Vr[e];if(!Zl[e])return e;var t=Zl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Sf)return Vr[e]=t[l];return e}var kf=dl("animationend"),Ef=dl("animationiteration"),Tf=dl("animationstart"),Ny=dl("transitionrun"),Ry=dl("transitionstart"),Uy=dl("transitioncancel"),Af=dl("transitionend"),_f=new Map,Gr="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(" ");Gr.push("scrollEnd");function tn(e,t){_f.set(e,t),sl(t,[e])}var $a=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Qt=[],Kl=0,Xr=0;function Wa(){for(var e=Kl,t=Xr=Kl=0;t<e;){var l=Qt[t];Qt[t++]=null;var i=Qt[t];Qt[t++]=null;var o=Qt[t];Qt[t++]=null;var c=Qt[t];if(Qt[t++]=null,i!==null&&o!==null){var g=i.pending;g===null?o.next=o:(o.next=g.next,g.next=o),i.pending=o}c!==0&&zf(l,o,c)}}function Pa(e,t,l,i){Qt[Kl++]=e,Qt[Kl++]=t,Qt[Kl++]=l,Qt[Kl++]=i,Xr|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Qr(e,t,l,i){return Pa(e,t,l,i),eu(e)}function ml(e,t){return Pa(e,null,null,t),eu(e)}function zf(e,t,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var o=!1,c=e.return;c!==null;)c.childLanes|=l,i=c.alternate,i!==null&&(i.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Ye(l),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=l|536870912),c):null}function eu(e){if(50<oa)throw oa=0,tc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jl={};function jy(e,t,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,l,i){return new jy(e,t,l,i)}function Zr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bn(e,t){var l=e.alternate;return l===null?(l=Rt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Cf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function tu(e,t,l,i,o,c){var g=0;if(i=e,typeof e=="function")Zr(e)&&(g=1);else if(typeof e=="string")g=Y1(e,l,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=Rt(31,l,t,o),e.elementType=pe,e.lanes=c,e;case L:return pl(l.children,o,c,t);case q:g=8,o|=24;break;case N:return e=Rt(12,l,t,o|2),e.elementType=N,e.lanes=c,e;case ue:return e=Rt(13,l,t,o),e.elementType=ue,e.lanes=c,e;case D:return e=Rt(19,l,t,o),e.elementType=D,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:g=10;break e;case K:g=9;break e;case ie:g=11;break e;case F:g=14;break e;case de:g=16,i=null;break e}g=29,l=Error(r(130,e===null?"null":typeof e,"")),i=null}return t=Rt(g,l,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function pl(e,t,l,i){return e=Rt(7,e,i,t),e.lanes=l,e}function Kr(e,t,l){return e=Rt(6,e,null,t),e.lanes=l,e}function wf(e){var t=Rt(18,null,null,0);return t.stateNode=e,t}function Jr(e,t,l){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Df=new WeakMap;function Zt(e,t){if(typeof e=="object"&&e!==null){var l=Df.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ja(t)},Df.set(e,t),t)}return{value:e,source:t,stack:ja(t)}}var Fl=[],Il=0,nu=null,Yi=0,Kt=[],Jt=0,Bn=null,un=1,rn="";function xn(e,t){Fl[Il++]=Yi,Fl[Il++]=nu,nu=e,Yi=t}function Of(e,t,l){Kt[Jt++]=un,Kt[Jt++]=rn,Kt[Jt++]=Bn,Bn=e;var i=un;e=rn;var o=32-Ye(i)-1;i&=~(1<<o),l+=1;var c=32-Ye(t)+o;if(30<c){var g=o-o%5;c=(i&(1<<g)-1).toString(32),i>>=g,o-=g,un=1<<32-Ye(t)+o|l<<o|i,rn=c+e}else un=1<<c|l<<o|i,rn=e}function Fr(e){e.return!==null&&(xn(e,1),Of(e,1,0))}function Ir(e){for(;e===nu;)nu=Fl[--Il],Fl[Il]=null,Yi=Fl[--Il],Fl[Il]=null;for(;e===Bn;)Bn=Kt[--Jt],Kt[Jt]=null,rn=Kt[--Jt],Kt[Jt]=null,un=Kt[--Jt],Kt[Jt]=null}function Mf(e,t){Kt[Jt++]=un,Kt[Jt++]=rn,Kt[Jt++]=Bn,un=t.id,rn=t.overflow,Bn=e}var st=null,Qe=null,we=!1,Hn=null,Ft=!1,$r=Error(r(519));function qn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vi(Zt(t,e)),$r}function Nf(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[ct]=e,t[Et]=i,l){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(l=0;l<sa.length;l++)Te(sa[l],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),Qs(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),Ks(t,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||i.suppressHydrationWarning===!0||Id(t.textContent,l)?(i.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),i.onScroll!=null&&Te("scroll",t),i.onScrollEnd!=null&&Te("scrollend",t),i.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||qn(e,!0)}function Rf(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:st=st.return}}function $l(e){if(e!==st)return!1;if(!we)return Rf(e),we=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||gc(e.type,e.memoizedProps)),l=!l),l&&Qe&&qn(e),Rf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=am(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=am(e)}else t===27?(t=Qe,el(e.type)?(e=Sc,Sc=null,Qe=e):Qe=t):Qe=st?$t(e.stateNode.nextSibling):null;return!0}function gl(){Qe=st=null,we=!1}function Wr(){var e=Hn;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),Hn=null),e}function Vi(e){Hn===null?Hn=[e]:Hn.push(e)}var Pr=A(null),yl=null,vn=null;function Yn(e,t,l){k(Pr,t._currentValue),t._currentValue=l}function Sn(e){e._currentValue=Pr.current,Y(Pr)}function eo(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function to(e,t,l,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var g=o.child;c=c.firstContext;e:for(;c!==null;){var x=c;c=o;for(var T=0;T<t.length;T++)if(x.context===t[T]){c.lanes|=l,x=c.alternate,x!==null&&(x.lanes|=l),eo(c.return,l,e),i||(g=null);break e}c=x.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(r(341));g.lanes|=l,c=g.alternate,c!==null&&(c.lanes|=l),eo(g,l,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Wl(e,t,l,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var x=o.type;Nt(o.pendingProps.value,g.value)||(e!==null?e.push(x):e=[x])}}else if(o===_e.current){if(g=o.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(pa):e=[pa])}o=o.return}e!==null&&to(t,e,l,i),t.flags|=262144}function lu(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function bl(e){yl=e,vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return Uf(yl,e)}function iu(e,t){return yl===null&&bl(e),Uf(e,t)}function Uf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},vn===null){if(e===null)throw Error(r(308));vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vn=vn.next=t;return l}var Ly=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},By=n.unstable_scheduleCallback,Hy=n.unstable_NormalPriority,et={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function no(){return{controller:new Ly,data:new Map,refCount:0}}function Gi(e){e.refCount--,e.refCount===0&&By(Hy,function(){e.controller.abort()})}var Xi=null,lo=0,Pl=0,ei=null;function qy(e,t){if(Xi===null){var l=Xi=[];lo=0,Pl=rc(),ei={status:"pending",value:void 0,then:function(i){l.push(i)}}}return lo++,t.then(jf,jf),t}function jf(){if(--lo===0&&Xi!==null){ei!==null&&(ei.status="fulfilled");var e=Xi;Xi=null,Pl=0,ei=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Yy(e,t){var l=[],i={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),i}var Lf=C.S;C.S=function(e,t){vd=bt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&qy(e,t),Lf!==null&&Lf(e,t)};var xl=A(null);function io(){var e=xl.current;return e!==null?e:Ve.pooledCache}function au(e,t){t===null?k(xl,xl.current):k(xl,t.pool)}function Bf(){var e=io();return e===null?null:{parent:et._currentValue,pool:e}}var ti=Error(r(460)),ao=Error(r(474)),uu=Error(r(542)),ru={then:function(){}};function Hf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(gn,gn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vf(e),e;default:if(typeof t.status=="string")t.then(gn,gn);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vf(e),e}throw Sl=t,ti}}function vl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Sl=l,ti):l}}var Sl=null;function Yf(){if(Sl===null)throw Error(r(459));var e=Sl;return Sl=null,e}function Vf(e){if(e===ti||e===uu)throw Error(r(483))}var ni=null,Qi=0;function ou(e){var t=Qi;return Qi+=1,ni===null&&(ni=[]),qf(ni,e,t)}function Zi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function cu(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Gf(e){function t(w,_){if(e){var O=w.deletions;O===null?(w.deletions=[_],w.flags|=16):O.push(_)}}function l(w,_){if(!e)return null;for(;_!==null;)t(w,_),_=_.sibling;return null}function i(w){for(var _=new Map;w!==null;)w.key!==null?_.set(w.key,w):_.set(w.index,w),w=w.sibling;return _}function o(w,_){return w=bn(w,_),w.index=0,w.sibling=null,w}function c(w,_,O){return w.index=O,e?(O=w.alternate,O!==null?(O=O.index,O<_?(w.flags|=67108866,_):O):(w.flags|=67108866,_)):(w.flags|=1048576,_)}function g(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function x(w,_,O,G){return _===null||_.tag!==6?(_=Kr(O,w.mode,G),_.return=w,_):(_=o(_,O),_.return=w,_)}function T(w,_,O,G){var ce=O.type;return ce===L?H(w,_,O.props.children,G,O.key):_!==null&&(_.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===de&&vl(ce)===_.type)?(_=o(_,O.props),Zi(_,O),_.return=w,_):(_=tu(O.type,O.key,O.props,null,w.mode,G),Zi(_,O),_.return=w,_)}function M(w,_,O,G){return _===null||_.tag!==4||_.stateNode.containerInfo!==O.containerInfo||_.stateNode.implementation!==O.implementation?(_=Jr(O,w.mode,G),_.return=w,_):(_=o(_,O.children||[]),_.return=w,_)}function H(w,_,O,G,ce){return _===null||_.tag!==7?(_=pl(O,w.mode,G,ce),_.return=w,_):(_=o(_,O),_.return=w,_)}function Q(w,_,O){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Kr(""+_,w.mode,O),_.return=w,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case v:return O=tu(_.type,_.key,_.props,null,w.mode,O),Zi(O,_),O.return=w,O;case z:return _=Jr(_,w.mode,O),_.return=w,_;case de:return _=vl(_),Q(w,_,O)}if(I(_)||ee(_))return _=pl(_,w.mode,O,null),_.return=w,_;if(typeof _.then=="function")return Q(w,ou(_),O);if(_.$$typeof===Z)return Q(w,iu(w,_),O);cu(w,_)}return null}function R(w,_,O,G){var ce=_!==null?_.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ce!==null?null:x(w,_,""+O,G);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case v:return O.key===ce?T(w,_,O,G):null;case z:return O.key===ce?M(w,_,O,G):null;case de:return O=vl(O),R(w,_,O,G)}if(I(O)||ee(O))return ce!==null?null:H(w,_,O,G,null);if(typeof O.then=="function")return R(w,_,ou(O),G);if(O.$$typeof===Z)return R(w,_,iu(w,O),G);cu(w,O)}return null}function j(w,_,O,G,ce){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return w=w.get(O)||null,x(_,w,""+G,ce);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case v:return w=w.get(G.key===null?O:G.key)||null,T(_,w,G,ce);case z:return w=w.get(G.key===null?O:G.key)||null,M(_,w,G,ce);case de:return G=vl(G),j(w,_,O,G,ce)}if(I(G)||ee(G))return w=w.get(O)||null,H(_,w,G,ce,null);if(typeof G.then=="function")return j(w,_,O,ou(G),ce);if(G.$$typeof===Z)return j(w,_,O,iu(_,G),ce);cu(_,G)}return null}function ne(w,_,O,G){for(var ce=null,Oe=null,ae=_,ve=_=0,Ce=null;ae!==null&&ve<O.length;ve++){ae.index>ve?(Ce=ae,ae=null):Ce=ae.sibling;var Me=R(w,ae,O[ve],G);if(Me===null){ae===null&&(ae=Ce);break}e&&ae&&Me.alternate===null&&t(w,ae),_=c(Me,_,ve),Oe===null?ce=Me:Oe.sibling=Me,Oe=Me,ae=Ce}if(ve===O.length)return l(w,ae),we&&xn(w,ve),ce;if(ae===null){for(;ve<O.length;ve++)ae=Q(w,O[ve],G),ae!==null&&(_=c(ae,_,ve),Oe===null?ce=ae:Oe.sibling=ae,Oe=ae);return we&&xn(w,ve),ce}for(ae=i(ae);ve<O.length;ve++)Ce=j(ae,w,ve,O[ve],G),Ce!==null&&(e&&Ce.alternate!==null&&ae.delete(Ce.key===null?ve:Ce.key),_=c(Ce,_,ve),Oe===null?ce=Ce:Oe.sibling=Ce,Oe=Ce);return e&&ae.forEach(function(al){return t(w,al)}),we&&xn(w,ve),ce}function fe(w,_,O,G){if(O==null)throw Error(r(151));for(var ce=null,Oe=null,ae=_,ve=_=0,Ce=null,Me=O.next();ae!==null&&!Me.done;ve++,Me=O.next()){ae.index>ve?(Ce=ae,ae=null):Ce=ae.sibling;var al=R(w,ae,Me.value,G);if(al===null){ae===null&&(ae=Ce);break}e&&ae&&al.alternate===null&&t(w,ae),_=c(al,_,ve),Oe===null?ce=al:Oe.sibling=al,Oe=al,ae=Ce}if(Me.done)return l(w,ae),we&&xn(w,ve),ce;if(ae===null){for(;!Me.done;ve++,Me=O.next())Me=Q(w,Me.value,G),Me!==null&&(_=c(Me,_,ve),Oe===null?ce=Me:Oe.sibling=Me,Oe=Me);return we&&xn(w,ve),ce}for(ae=i(ae);!Me.done;ve++,Me=O.next())Me=j(ae,w,ve,Me.value,G),Me!==null&&(e&&Me.alternate!==null&&ae.delete(Me.key===null?ve:Me.key),_=c(Me,_,ve),Oe===null?ce=Me:Oe.sibling=Me,Oe=Me);return e&&ae.forEach(function(W1){return t(w,W1)}),we&&xn(w,ve),ce}function qe(w,_,O,G){if(typeof O=="object"&&O!==null&&O.type===L&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case v:e:{for(var ce=O.key;_!==null;){if(_.key===ce){if(ce=O.type,ce===L){if(_.tag===7){l(w,_.sibling),G=o(_,O.props.children),G.return=w,w=G;break e}}else if(_.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===de&&vl(ce)===_.type){l(w,_.sibling),G=o(_,O.props),Zi(G,O),G.return=w,w=G;break e}l(w,_);break}else t(w,_);_=_.sibling}O.type===L?(G=pl(O.props.children,w.mode,G,O.key),G.return=w,w=G):(G=tu(O.type,O.key,O.props,null,w.mode,G),Zi(G,O),G.return=w,w=G)}return g(w);case z:e:{for(ce=O.key;_!==null;){if(_.key===ce)if(_.tag===4&&_.stateNode.containerInfo===O.containerInfo&&_.stateNode.implementation===O.implementation){l(w,_.sibling),G=o(_,O.children||[]),G.return=w,w=G;break e}else{l(w,_);break}else t(w,_);_=_.sibling}G=Jr(O,w.mode,G),G.return=w,w=G}return g(w);case de:return O=vl(O),qe(w,_,O,G)}if(I(O))return ne(w,_,O,G);if(ee(O)){if(ce=ee(O),typeof ce!="function")throw Error(r(150));return O=ce.call(O),fe(w,_,O,G)}if(typeof O.then=="function")return qe(w,_,ou(O),G);if(O.$$typeof===Z)return qe(w,_,iu(w,O),G);cu(w,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,_!==null&&_.tag===6?(l(w,_.sibling),G=o(_,O),G.return=w,w=G):(l(w,_),G=Kr(O,w.mode,G),G.return=w,w=G),g(w)):l(w,_)}return function(w,_,O,G){try{Qi=0;var ce=qe(w,_,O,G);return ni=null,ce}catch(ae){if(ae===ti||ae===uu)throw ae;var Oe=Rt(29,ae,null,w.mode);return Oe.lanes=G,Oe.return=w,Oe}}}var kl=Gf(!0),Xf=Gf(!1),Vn=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ro(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 Gn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ne&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=eu(e),zf(e,null,l),t}return Pa(e,i,t,l),eu(e)}function Ki(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Rs(e,l)}}function oo(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var o=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var g={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,l=l.next}while(l!==null);c===null?o=c=t:c=c.next=t}else o=c=t;l={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var co=!1;function Ji(){if(co){var e=ei;if(e!==null)throw e}}function Fi(e,t,l,i){co=!1;var o=e.updateQueue;Vn=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var T=x,M=T.next;T.next=null,g===null?c=M:g.next=M,g=T;var H=e.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==g&&(x===null?H.firstBaseUpdate=M:x.next=M,H.lastBaseUpdate=T))}if(c!==null){var Q=o.baseState;g=0,H=M=T=null,x=c;do{var R=x.lane&-536870913,j=R!==x.lane;if(j?(ze&R)===R:(i&R)===R){R!==0&&R===Pl&&(co=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ne=e,fe=x;R=t;var qe=l;switch(fe.tag){case 1:if(ne=fe.payload,typeof ne=="function"){Q=ne.call(qe,Q,R);break e}Q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=fe.payload,R=typeof ne=="function"?ne.call(qe,Q,R):ne,R==null)break e;Q=y({},Q,R);break e;case 2:Vn=!0}}R=x.callback,R!==null&&(e.flags|=64,j&&(e.flags|=8192),j=o.callbacks,j===null?o.callbacks=[R]:j.push(R))}else j={lane:R,tag:x.tag,payload:x.payload,callback:x.callback,next:null},H===null?(M=H=j,T=Q):H=H.next=j,g|=R;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;j=x,x=j.next,j.next=null,o.lastBaseUpdate=j,o.shared.pending=null}}while(!0);H===null&&(T=Q),o.baseState=T,o.firstBaseUpdate=M,o.lastBaseUpdate=H,c===null&&(o.shared.lanes=0),Fn|=g,e.lanes=g,e.memoizedState=Q}}function Qf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Zf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Qf(l[e],t)}var li=A(null),su=A(0);function Kf(e,t){e=Dn,k(su,e),k(li,t),Dn=e|t.baseLanes}function so(){k(su,Dn),k(li,li.current)}function fo(){Dn=su.current,Y(li),Y(su)}var Ut=A(null),It=null;function Qn(e){var t=e.alternate;k(We,We.current&1),k(Ut,e),It===null&&(t===null||li.current!==null||t.memoizedState!==null)&&(It=e)}function ho(e){k(We,We.current),k(Ut,e),It===null&&(It=e)}function Jf(e){e.tag===22?(k(We,We.current),k(Ut,e),It===null&&(It=e)):Zn()}function Zn(){k(We,We.current),k(Ut,Ut.current)}function jt(e){Y(Ut),It===e&&(It=null),Y(We)}var We=A(0);function fu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||xc(l)||vc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kn=0,be=null,Be=null,tt=null,hu=!1,ii=!1,El=!1,du=0,Ii=0,ai=null,Vy=0;function Ie(){throw Error(r(321))}function mo(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Nt(e[l],t[l]))return!1;return!0}function po(e,t,l,i,o,c){return kn=c,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?Oh:Do,El=!1,c=l(i,o),El=!1,ii&&(c=If(t,l,i,o)),Ff(e),c}function Ff(e){C.H=Pi;var t=Be!==null&&Be.next!==null;if(kn=0,tt=Be=be=null,hu=!1,Ii=0,ai=null,t)throw Error(r(300));e===null||nt||(e=e.dependencies,e!==null&&lu(e)&&(nt=!0))}function If(e,t,l,i){be=e;var o=0;do{if(ii&&(ai=null),Ii=0,ii=!1,25<=o)throw Error(r(301));if(o+=1,tt=Be=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}C.H=Mh,c=t(l,i)}while(ii);return c}function Gy(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?$i(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(be.flags|=1024),t}function go(){var e=du!==0;return du=0,e}function yo(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function bo(e){if(hu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hu=!1}kn=0,tt=Be=be=null,ii=!1,Ii=du=0,ai=null}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?be.memoizedState=tt=e:tt=tt.next=e,tt}function Pe(){if(Be===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=tt===null?be.memoizedState:tt.next;if(t!==null)tt=t,Be=e;else{if(e===null)throw be.alternate===null?Error(r(467)):Error(r(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},tt===null?be.memoizedState=tt=e:tt=tt.next=e}return tt}function mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $i(e){var t=Ii;return Ii+=1,ai===null&&(ai=[]),e=qf(ai,e,t),t=be,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?Oh:Do),e}function pu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return $i(e);if(e.$$typeof===Z)return ft(e)}throw Error(r(438,String(e)))}function xo(e){var t=null,l=be.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=be.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=mu(),be.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),i=0;i<e;i++)l[i]=U;return t.index++,l}function En(e,t){return typeof t=="function"?t(e):t}function gu(e){var t=Pe();return vo(t,Be,e)}function vo(e,t,l){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=l;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var x=g=null,T=null,M=t,H=!1;do{var Q=M.lane&-536870913;if(Q!==M.lane?(ze&Q)===Q:(kn&Q)===Q){var R=M.revertLane;if(R===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),Q===Pl&&(H=!0);else if((kn&R)===R){M=M.next,R===Pl&&(H=!0);continue}else Q={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},T===null?(x=T=Q,g=c):T=T.next=Q,be.lanes|=R,Fn|=R;Q=M.action,El&&l(c,Q),c=M.hasEagerState?M.eagerState:l(c,Q)}else R={lane:Q,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},T===null?(x=T=R,g=c):T=T.next=R,be.lanes|=Q,Fn|=Q;M=M.next}while(M!==null&&M!==t);if(T===null?g=c:T.next=x,!Nt(c,e.memoizedState)&&(nt=!0,H&&(l=ei,l!==null)))throw l;e.memoizedState=c,e.baseState=g,e.baseQueue=T,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function So(e){var t=Pe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var i=l.dispatch,o=l.pending,c=t.memoizedState;if(o!==null){l.pending=null;var g=o=o.next;do c=e(c,g.action),g=g.next;while(g!==o);Nt(c,t.memoizedState)||(nt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,i]}function $f(e,t,l){var i=be,o=Pe(),c=we;if(c){if(l===void 0)throw Error(r(407));l=l()}else l=t();var g=!Nt((Be||o).memoizedState,l);if(g&&(o.memoizedState=l,nt=!0),o=o.queue,To(eh.bind(null,i,o,e),[e]),o.getSnapshot!==t||g||tt!==null&&tt.memoizedState.tag&1){if(i.flags|=2048,ui(9,{destroy:void 0},Pf.bind(null,i,o,l,t),null),Ve===null)throw Error(r(349));c||(kn&127)!==0||Wf(i,t,l)}return l}function Wf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=be.updateQueue,t===null?(t=mu(),be.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Pf(e,t,l,i){t.value=l,t.getSnapshot=i,th(t)&&nh(e)}function eh(e,t,l){return l(function(){th(t)&&nh(e)})}function th(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Nt(e,l)}catch{return!0}}function nh(e){var t=ml(e,2);t!==null&&wt(t,e,2)}function ko(e){var t=vt();if(typeof e=="function"){var l=e;if(e=l(),El){kt(!0);try{l()}finally{kt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},t}function lh(e,t,l,i){return e.baseState=l,vo(e,Be,typeof i=="function"?i:En)}function Xy(e,t,l,i,o){if(xu(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};C.T!==null?l(!0):c.isTransition=!1,i(c),l=t.pending,l===null?(c.next=t.pending=c,ih(t,c)):(c.next=l.next,t.pending=l.next=c)}}function ih(e,t){var l=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=C.T,g={};C.T=g;try{var x=l(o,i),T=C.S;T!==null&&T(g,x),ah(e,t,x)}catch(M){Eo(e,t,M)}finally{c!==null&&g.types!==null&&(c.types=g.types),C.T=c}}else try{c=l(o,i),ah(e,t,c)}catch(M){Eo(e,t,M)}}function ah(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){uh(e,t,i)},function(i){return Eo(e,t,i)}):uh(e,t,l)}function uh(e,t,l){t.status="fulfilled",t.value=l,rh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ih(e,l)))}function Eo(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,rh(t),t=t.next;while(t!==i)}e.action=null}function rh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oh(e,t){return t}function ch(e,t){if(we){var l=Ve.formState;if(l!==null){e:{var i=be;if(we){if(Qe){t:{for(var o=Qe,c=Ft;o.nodeType!==8;){if(!c){o=null;break t}if(o=$t(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Qe=$t(o.nextSibling),i=o.data==="F!";break e}}qn(i)}i=!1}i&&(t=l[0])}}return l=vt(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oh,lastRenderedState:t},l.queue=i,l=Ch.bind(null,be,i),i.dispatch=l,i=ko(!1),c=wo.bind(null,be,!1,i.queue),i=vt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,l=Xy.bind(null,be,o,c,l),o.dispatch=l,i.memoizedState=e,[t,l,!1]}function sh(e){var t=Pe();return fh(t,Be,e)}function fh(e,t,l){if(t=vo(e,t,oh)[0],e=gu(En)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=$i(t)}catch(g){throw g===ti?uu:g}else i=t;t=Pe();var o=t.queue,c=o.dispatch;return l!==t.memoizedState&&(be.flags|=2048,ui(9,{destroy:void 0},Qy.bind(null,o,l),null)),[i,c,e]}function Qy(e,t){e.action=t}function hh(e){var t=Pe(),l=Be;if(l!==null)return fh(t,l,e);Pe(),t=t.memoizedState,l=Pe();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function ui(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=be.updateQueue,t===null&&(t=mu(),be.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,t.lastEffect=e),e}function dh(){return Pe().memoizedState}function yu(e,t,l,i){var o=vt();be.flags|=e,o.memoizedState=ui(1|t,{destroy:void 0},l,i===void 0?null:i)}function bu(e,t,l,i){var o=Pe();i=i===void 0?null:i;var c=o.memoizedState.inst;Be!==null&&i!==null&&mo(i,Be.memoizedState.deps)?o.memoizedState=ui(t,c,l,i):(be.flags|=e,o.memoizedState=ui(1|t,c,l,i))}function mh(e,t){yu(8390656,8,e,t)}function To(e,t){bu(2048,8,e,t)}function Zy(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=mu(),be.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ph(e){var t=Pe().memoizedState;return Zy({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function gh(e,t){return bu(4,2,e,t)}function yh(e,t){return bu(4,4,e,t)}function bh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xh(e,t,l){l=l!=null?l.concat([e]):null,bu(4,4,bh.bind(null,t,e),l)}function Ao(){}function vh(e,t){var l=Pe();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&mo(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function Sh(e,t){var l=Pe();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&mo(t,i[1]))return i[0];if(i=e(),El){kt(!0);try{e()}finally{kt(!1)}}return l.memoizedState=[i,t],i}function _o(e,t,l){return l===void 0||(kn&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=kd(),be.lanes|=e,Fn|=e,l)}function kh(e,t,l,i){return Nt(l,t)?l:li.current!==null?(e=_o(e,l,i),Nt(e,t)||(nt=!0),e):(kn&42)===0||(kn&1073741824)!==0&&(ze&261930)===0?(nt=!0,e.memoizedState=l):(e=kd(),be.lanes|=e,Fn|=e,t)}function Eh(e,t,l,i,o){var c=B.p;B.p=c!==0&&8>c?c:8;var g=C.T,x={};C.T=x,wo(e,!1,t,l);try{var T=o(),M=C.S;if(M!==null&&M(x,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var H=Yy(T,i);Wi(e,t,H,Ht(e))}else Wi(e,t,i,Ht(e))}catch(Q){Wi(e,t,{then:function(){},status:"rejected",reason:Q},Ht())}finally{B.p=c,g!==null&&x.types!==null&&(g.types=x.types),C.T=g}}function Ky(){}function zo(e,t,l,i){if(e.tag!==5)throw Error(r(476));var o=Th(e).queue;Eh(e,o,t,$,l===null?Ky:function(){return Ah(e),l(i)})}function Th(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:$},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ah(e){var t=Th(e);t.next===null&&(t=e.alternate.memoizedState),Wi(e,t.next.queue,{},Ht())}function Co(){return ft(pa)}function _h(){return Pe().memoizedState}function zh(){return Pe().memoizedState}function Jy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Gn(l);var i=Xn(t,e,l);i!==null&&(wt(i,t,l),Ki(i,t,l)),t={cache:no()},e.payload=t;return}t=t.return}}function Fy(e,t,l){var i=Ht();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},xu(e)?wh(t,l):(l=Qr(e,t,l,i),l!==null&&(wt(l,e,i),Dh(l,t,i)))}function Ch(e,t,l){var i=Ht();Wi(e,t,l,i)}function Wi(e,t,l,i){var o={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(xu(e))wh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,x=c(g,l);if(o.hasEagerState=!0,o.eagerState=x,Nt(x,g))return Pa(e,t,o,0),Ve===null&&Wa(),!1}catch{}if(l=Qr(e,t,o,i),l!==null)return wt(l,e,i),Dh(l,t,i),!0}return!1}function wo(e,t,l,i){if(i={lane:2,revertLane:rc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},xu(e)){if(t)throw Error(r(479))}else t=Qr(e,l,i,2),t!==null&&wt(t,e,2)}function xu(e){var t=e.alternate;return e===be||t!==null&&t===be}function wh(e,t){ii=hu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dh(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Rs(e,l)}}var Pi={readContext:ft,use:pu,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};Pi.useEffectEvent=Ie;var Oh={readContext:ft,use:pu,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:mh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,yu(4194308,4,bh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return yu(4194308,4,e,t)},useInsertionEffect:function(e,t){yu(4,2,e,t)},useMemo:function(e,t){var l=vt();t=t===void 0?null:t;var i=e();if(El){kt(!0);try{e()}finally{kt(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=vt();if(l!==void 0){var o=l(t);if(El){kt(!0);try{l(t)}finally{kt(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=Fy.bind(null,be,e),[i.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=ko(e);var t=e.queue,l=Ch.bind(null,be,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ao,useDeferredValue:function(e,t){var l=vt();return _o(l,e,t)},useTransition:function(){var e=ko(!1);return e=Eh.bind(null,be,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=be,o=vt();if(we){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ve===null)throw Error(r(349));(ze&127)!==0||Wf(i,t,l)}o.memoizedState=l;var c={value:l,getSnapshot:t};return o.queue=c,mh(eh.bind(null,i,c,e),[e]),i.flags|=2048,ui(9,{destroy:void 0},Pf.bind(null,i,c,l,t),null),l},useId:function(){var e=vt(),t=Ve.identifierPrefix;if(we){var l=rn,i=un;l=(i&~(1<<32-Ye(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=du++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Vy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Co,useFormState:ch,useActionState:ch,useOptimistic:function(e){var t=vt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=wo.bind(null,be,!0,l),l.dispatch=t,[e,t]},useMemoCache:xo,useCacheRefresh:function(){return vt().memoizedState=Jy.bind(null,be)},useEffectEvent:function(e){var t=vt(),l={impl:e};return t.memoizedState=l,function(){if((Ne&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Do={readContext:ft,use:pu,useCallback:vh,useContext:ft,useEffect:To,useImperativeHandle:xh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:Sh,useReducer:gu,useRef:dh,useState:function(){return gu(En)},useDebugValue:Ao,useDeferredValue:function(e,t){var l=Pe();return kh(l,Be.memoizedState,e,t)},useTransition:function(){var e=gu(En)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:$i(e),t]},useSyncExternalStore:$f,useId:_h,useHostTransitionStatus:Co,useFormState:sh,useActionState:sh,useOptimistic:function(e,t){var l=Pe();return lh(l,Be,e,t)},useMemoCache:xo,useCacheRefresh:zh};Do.useEffectEvent=ph;var Mh={readContext:ft,use:pu,useCallback:vh,useContext:ft,useEffect:To,useImperativeHandle:xh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:Sh,useReducer:So,useRef:dh,useState:function(){return So(En)},useDebugValue:Ao,useDeferredValue:function(e,t){var l=Pe();return Be===null?_o(l,e,t):kh(l,Be.memoizedState,e,t)},useTransition:function(){var e=So(En)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:$i(e),t]},useSyncExternalStore:$f,useId:_h,useHostTransitionStatus:Co,useFormState:hh,useActionState:hh,useOptimistic:function(e,t){var l=Pe();return Be!==null?lh(l,Be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:xo,useCacheRefresh:zh};Mh.useEffectEvent=ph;function Oo(e,t,l,i){t=e.memoizedState,l=l(i,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Mo={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Ht(),o=Gn(i);o.payload=t,l!=null&&(o.callback=l),t=Xn(e,o,i),t!==null&&(wt(t,e,i),Ki(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=Ht(),o=Gn(i);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=Xn(e,o,i),t!==null&&(wt(t,e,i),Ki(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ht(),i=Gn(l);i.tag=2,t!=null&&(i.callback=t),t=Xn(e,i,l),t!==null&&(wt(t,e,l),Ki(t,e,l))}};function Nh(e,t,l,i,o,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,g):t.prototype&&t.prototype.isPureReactComponent?!Hi(l,i)||!Hi(o,c):!0}function Rh(e,t,l,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,i),t.state!==e&&Mo.enqueueReplaceState(t,t.state,null)}function Tl(e,t){var l=t;if("ref"in t){l={};for(var i in t)i!=="ref"&&(l[i]=t[i])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var o in e)l[o]===void 0&&(l[o]=e[o])}return l}function Uh(e){$a(e)}function jh(e){console.error(e)}function Lh(e){$a(e)}function vu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Bh(e,t,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function No(e,t,l){return l=Gn(l),l.tag=3,l.payload={element:null},l.callback=function(){vu(e,t)},l}function Hh(e){return e=Gn(e),e.tag=3,e}function qh(e,t,l,i){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){Bh(t,l,i)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Bh(t,l,i),typeof o!="function"&&(In===null?In=new Set([this]):In.add(this));var x=i.stack;this.componentDidCatch(i.value,{componentStack:x!==null?x:""})})}function Iy(e,t,l,i,o){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&Wl(t,l,o,!0),l=Ut.current,l!==null){switch(l.tag){case 31:case 13:return It===null?Mu():l.alternate===null&&$e===0&&($e=3),l.flags&=-257,l.flags|=65536,l.lanes=o,i===ru?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),ic(e,i,o)),!1;case 22:return l.flags|=65536,i===ru?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([i]):l.add(i)),ic(e,i,o)),!1}throw Error(r(435,l.tag))}return ic(e,i,o),Mu(),!1}if(we)return t=Ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==$r&&(e=Error(r(422),{cause:i}),Vi(Zt(e,l)))):(i!==$r&&(t=Error(r(423),{cause:i}),Vi(Zt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Zt(i,l),o=No(e.stateNode,i,o),oo(e,o),$e!==4&&($e=2)),!1;var c=Error(r(520),{cause:i});if(c=Zt(c,l),ra===null?ra=[c]:ra.push(c),$e!==4&&($e=2),t===null)return!0;i=Zt(i,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=No(l.stateNode,i,e),oo(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(In===null||!In.has(c))))return l.flags|=65536,o&=-o,l.lanes|=o,o=Hh(o),qh(o,e,l,i),oo(l,o),!1}l=l.return}while(l!==null);return!1}var Ro=Error(r(461)),nt=!1;function ht(e,t,l,i){t.child=e===null?Xf(t,null,l,i):kl(t,e.child,l,i)}function Yh(e,t,l,i,o){l=l.render;var c=t.ref;if("ref"in i){var g={};for(var x in i)x!=="ref"&&(g[x]=i[x])}else g=i;return bl(t),i=po(e,t,l,g,c,o),x=go(),e!==null&&!nt?(yo(e,t,o),Tn(e,t,o)):(we&&x&&Fr(t),t.flags|=1,ht(e,t,i,o),t.child)}function Vh(e,t,l,i,o){if(e===null){var c=l.type;return typeof c=="function"&&!Zr(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,Gh(e,t,c,i,o)):(e=tu(l.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Vo(e,o)){var g=c.memoizedProps;if(l=l.compare,l=l!==null?l:Hi,l(g,i)&&e.ref===t.ref)return Tn(e,t,o)}return t.flags|=1,e=bn(c,i),e.ref=t.ref,e.return=t,t.child=e}function Gh(e,t,l,i,o){if(e!==null){var c=e.memoizedProps;if(Hi(c,i)&&e.ref===t.ref)if(nt=!1,t.pendingProps=i=c,Vo(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,Tn(e,t,o)}return Uo(e,t,l,i,o)}function Xh(e,t,l,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|l:l,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return Qh(e,t,c,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&au(t,c!==null?c.cachePool:null),c!==null?Kf(t,c):so(),Jf(t);else return i=t.lanes=536870912,Qh(e,t,c!==null?c.baseLanes|l:l,l,i)}else c!==null?(au(t,c.cachePool),Kf(t,c),Zn(),t.memoizedState=null):(e!==null&&au(t,null),so(),Zn());return ht(e,t,o,l),t.child}function ea(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Qh(e,t,l,i,o){var c=io();return c=c===null?null:{parent:et._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&au(t,null),so(),Jf(t),e!==null&&Wl(e,t,i,!0),t.childLanes=o,null}function Su(e,t){return t=Eu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zh(e,t,l){return kl(t,e.child,null,l),e=Su(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function $y(e,t,l){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(i.mode==="hidden")return e=Su(t,i),t.lanes=536870912,ea(null,e);if(ho(t),(e=Qe)?(e=im(e,Ft),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:un,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=wf(e),l.return=t,t.child=l,st=t,Qe=null)):e=null,e===null)throw qn(t);return t.lanes=536870912,null}return Su(t,i)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(ho(t),o)if(t.flags&256)t.flags&=-257,t=Zh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(nt||Wl(e,t,l,!1),o=(l&e.childLanes)!==0,nt||o){if(i=Ve,i!==null&&(g=Us(i,l),g!==0&&g!==c.retryLane))throw c.retryLane=g,ml(e,g),wt(i,e,g),Ro;Mu(),t=Zh(e,t,l)}else e=c.treeContext,Qe=$t(g.nextSibling),st=t,we=!0,Hn=null,Ft=!1,e!==null&&Mf(t,e),t=Su(t,i),t.flags|=4096;return t}return e=bn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ku(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Uo(e,t,l,i,o){return bl(t),l=po(e,t,l,i,void 0,o),i=go(),e!==null&&!nt?(yo(e,t,o),Tn(e,t,o)):(we&&i&&Fr(t),t.flags|=1,ht(e,t,l,o),t.child)}function Kh(e,t,l,i,o,c){return bl(t),t.updateQueue=null,l=If(t,i,l,o),Ff(e),i=go(),e!==null&&!nt?(yo(e,t,c),Tn(e,t,c)):(we&&i&&Fr(t),t.flags|=1,ht(e,t,l,c),t.child)}function Jh(e,t,l,i,o){if(bl(t),t.stateNode===null){var c=Jl,g=l.contextType;typeof g=="object"&&g!==null&&(c=ft(g)),c=new l(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Mo,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},uo(t),g=l.contextType,c.context=typeof g=="object"&&g!==null?ft(g):Jl,c.state=t.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(Oo(t,l,g,i),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Mo.enqueueReplaceState(c,c.state,null),Fi(t,i,c,o),Ji(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var x=t.memoizedProps,T=Tl(l,x);c.props=T;var M=c.context,H=l.contextType;g=Jl,typeof H=="object"&&H!==null&&(g=ft(H));var Q=l.getDerivedStateFromProps;H=typeof Q=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||M!==g)&&Rh(t,c,i,g),Vn=!1;var R=t.memoizedState;c.state=R,Fi(t,i,c,o),Ji(),M=t.memoizedState,x||R!==M||Vn?(typeof Q=="function"&&(Oo(t,l,Q,i),M=t.memoizedState),(T=Vn||Nh(t,l,T,i,R,M,g))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=M),c.props=i,c.state=M,c.context=g,i=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,ro(e,t),g=t.memoizedProps,H=Tl(l,g),c.props=H,Q=t.pendingProps,R=c.context,M=l.contextType,T=Jl,typeof M=="object"&&M!==null&&(T=ft(M)),x=l.getDerivedStateFromProps,(M=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==Q||R!==T)&&Rh(t,c,i,T),Vn=!1,R=t.memoizedState,c.state=R,Fi(t,i,c,o),Ji();var j=t.memoizedState;g!==Q||R!==j||Vn||e!==null&&e.dependencies!==null&&lu(e.dependencies)?(typeof x=="function"&&(Oo(t,l,x,i),j=t.memoizedState),(H=Vn||Nh(t,l,H,i,R,j,T)||e!==null&&e.dependencies!==null&&lu(e.dependencies))?(M||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,j,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,j,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=j),c.props=i,c.state=j,c.context=T,i=H):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,ku(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=kl(t,e.child,null,o),t.child=kl(t,null,l,o)):ht(e,t,l,o),t.memoizedState=c.state,e=t.child):e=Tn(e,t,o),e}function Fh(e,t,l,i){return gl(),t.flags|=256,ht(e,t,l,i),t.child}var jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lo(e){return{baseLanes:e,cachePool:Bf()}}function Bo(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Bt),e}function Ih(e,t,l){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(o?Qn(t):Zn(),(e=Qe)?(e=im(e,Ft),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:un,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},l=wf(e),l.return=t,t.child=l,st=t,Qe=null)):e=null,e===null)throw qn(t);return vc(e)?t.lanes=32:t.lanes=536870912,null}var x=i.children;return i=i.fallback,o?(Zn(),o=t.mode,x=Eu({mode:"hidden",children:x},o),i=pl(i,o,l,null),x.return=t,i.return=t,x.sibling=i,t.child=x,i=t.child,i.memoizedState=Lo(l),i.childLanes=Bo(e,g,l),t.memoizedState=jo,ea(null,i)):(Qn(t),Ho(t,x))}var T=e.memoizedState;if(T!==null&&(x=T.dehydrated,x!==null)){if(c)t.flags&256?(Qn(t),t.flags&=-257,t=qo(e,t,l)):t.memoizedState!==null?(Zn(),t.child=e.child,t.flags|=128,t=null):(Zn(),x=i.fallback,o=t.mode,i=Eu({mode:"visible",children:i.children},o),x=pl(x,o,l,null),x.flags|=2,i.return=t,x.return=t,i.sibling=x,t.child=i,kl(t,e.child,null,l),i=t.child,i.memoizedState=Lo(l),i.childLanes=Bo(e,g,l),t.memoizedState=jo,t=ea(null,i));else if(Qn(t),vc(x)){if(g=x.nextSibling&&x.nextSibling.dataset,g)var M=g.dgst;g=M,i=Error(r(419)),i.stack="",i.digest=g,Vi({value:i,source:null,stack:null}),t=qo(e,t,l)}else if(nt||Wl(e,t,l,!1),g=(l&e.childLanes)!==0,nt||g){if(g=Ve,g!==null&&(i=Us(g,l),i!==0&&i!==T.retryLane))throw T.retryLane=i,ml(e,i),wt(g,e,i),Ro;xc(x)||Mu(),t=qo(e,t,l)}else xc(x)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Qe=$t(x.nextSibling),st=t,we=!0,Hn=null,Ft=!1,e!==null&&Mf(t,e),t=Ho(t,i.children),t.flags|=4096);return t}return o?(Zn(),x=i.fallback,o=t.mode,T=e.child,M=T.sibling,i=bn(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,M!==null?x=bn(M,x):(x=pl(x,o,l,null),x.flags|=2),x.return=t,i.return=t,i.sibling=x,t.child=i,ea(null,i),i=t.child,x=e.child.memoizedState,x===null?x=Lo(l):(o=x.cachePool,o!==null?(T=et._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Bf(),x={baseLanes:x.baseLanes|l,cachePool:o}),i.memoizedState=x,i.childLanes=Bo(e,g,l),t.memoizedState=jo,ea(e.child,i)):(Qn(t),l=e.child,e=l.sibling,l=bn(l,{mode:"visible",children:i.children}),l.return=t,l.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=l,t.memoizedState=null,l)}function Ho(e,t){return t=Eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Eu(e,t){return e=Rt(22,e,null,t),e.lanes=0,e}function qo(e,t,l){return kl(t,e.child,null,l),e=Ho(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $h(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),eo(e.return,t,l)}function Yo(e,t,l,i,o,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:o,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=i,g.tail=l,g.tailMode=o,g.treeForkCount=c)}function Wh(e,t,l){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var g=We.current,x=(g&2)!==0;if(x?(g=g&1|2,t.flags|=128):g&=1,k(We,g),ht(e,t,i,l),i=we?Yi:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$h(e,l,t);else if(e.tag===19)$h(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&fu(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Yo(t,!1,o,l,c,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&fu(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Yo(t,!0,l,null,c,i);break;case"together":Yo(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Tn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Wl(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=bn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=bn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Vo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&lu(e)))}function Wy(e,t,l){switch(t.tag){case 3:Ke(t,t.stateNode.containerInfo),Yn(t,et,e.memoizedState.cache),gl();break;case 27:case 5:Vt(t);break;case 4:Ke(t,t.stateNode.containerInfo);break;case 10:Yn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ho(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Qn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Ih(e,t,l):(Qn(t),e=Tn(e,t,l),e!==null?e.sibling:null);Qn(t);break;case 19:var o=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(Wl(e,t,l,!1),i=(l&t.childLanes)!==0),o){if(i)return Wh(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(We,We.current),i)break;return null;case 22:return t.lanes=0,Xh(e,t,l,t.pendingProps);case 24:Yn(t,et,e.memoizedState.cache)}return Tn(e,t,l)}function Ph(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Vo(e,l)&&(t.flags&128)===0)return nt=!1,Wy(e,t,l);nt=(e.flags&131072)!==0}else nt=!1,we&&(t.flags&1048576)!==0&&Of(t,Yi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=vl(t.elementType),t.type=e,typeof e=="function")Zr(e)?(i=Tl(e,i),t.tag=1,t=Jh(null,t,e,i,l)):(t.tag=0,t=Uo(null,t,e,i,l));else{if(e!=null){var o=e.$$typeof;if(o===ie){t.tag=11,t=Yh(null,t,e,i,l);break e}else if(o===F){t.tag=14,t=Vh(null,t,e,i,l);break e}}throw t=le(e)||e,Error(r(306,t,""))}}return t;case 0:return Uo(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,o=Tl(i,t.pendingProps),Jh(e,t,i,o,l);case 3:e:{if(Ke(t,t.stateNode.containerInfo),e===null)throw Error(r(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,ro(e,t),Fi(t,i,null,l);var g=t.memoizedState;if(i=g.cache,Yn(t,et,i),i!==c.cache&&to(t,[et],l,!0),Ji(),i=g.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Fh(e,t,i,l);break e}else if(i!==o){o=Zt(Error(r(424)),t),Vi(o),t=Fh(e,t,i,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Qe=$t(e.firstChild),st=t,we=!0,Hn=null,Ft=!0,l=Xf(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(gl(),i===o){t=Tn(e,t,l);break e}ht(e,t,i,l)}t=t.child}return t;case 26:return ku(e,t),e===null?(l=sm(t.type,null,t.pendingProps,null))?t.memoizedState=l:we||(l=t.type,e=t.pendingProps,i=Hu(oe.current).createElement(l),i[ct]=t,i[Et]=e,dt(i,l,e),rt(i),t.stateNode=i):t.memoizedState=sm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Vt(t),e===null&&we&&(i=t.stateNode=rm(t.type,t.pendingProps,oe.current),st=t,Ft=!0,o=Qe,el(t.type)?(Sc=o,Qe=$t(i.firstChild)):Qe=o),ht(e,t,t.pendingProps.children,l),ku(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((o=i=Qe)&&(i=C1(i,t.type,t.pendingProps,Ft),i!==null?(t.stateNode=i,st=t,Qe=$t(i.firstChild),Ft=!1,o=!0):o=!1),o||qn(t)),Vt(t),o=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,i=c.children,gc(o,c)?i=null:g!==null&&gc(o,g)&&(t.flags|=32),t.memoizedState!==null&&(o=po(e,t,Gy,null,null,l),pa._currentValue=o),ku(e,t),ht(e,t,i,l),t.child;case 6:return e===null&&we&&((e=l=Qe)&&(l=w1(l,t.pendingProps,Ft),l!==null?(t.stateNode=l,st=t,Qe=null,e=!0):e=!1),e||qn(t)),null;case 13:return Ih(e,t,l);case 4:return Ke(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=kl(t,null,i,l):ht(e,t,i,l),t.child;case 11:return Yh(e,t,t.type,t.pendingProps,l);case 7:return ht(e,t,t.pendingProps,l),t.child;case 8:return ht(e,t,t.pendingProps.children,l),t.child;case 12:return ht(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,Yn(t,t.type,i.value),ht(e,t,i.children,l),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,bl(t),o=ft(o),i=i(o),t.flags|=1,ht(e,t,i,l),t.child;case 14:return Vh(e,t,t.type,t.pendingProps,l);case 15:return Gh(e,t,t.type,t.pendingProps,l);case 19:return Wh(e,t,l);case 31:return $y(e,t,l);case 22:return Xh(e,t,l,t.pendingProps);case 24:return bl(t),i=ft(et),e===null?(o=io(),o===null&&(o=Ve,c=no(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=l),o=c),t.memoizedState={parent:i,cache:o},uo(t),Yn(t,et,o)):((e.lanes&l)!==0&&(ro(e,t),Fi(t,null,null,l),Ji()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Yn(t,et,i)):(i=c.cache,Yn(t,et,i),i!==o.cache&&to(t,[et],l,!0))),ht(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function An(e){e.flags|=4}function Go(e,t,l,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(_d())e.flags|=8192;else throw Sl=ru,ao}else e.flags&=-16777217}function ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!pm(t))if(_d())e.flags|=8192;else throw Sl=ru,ao}function Tu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ms():536870912,e.lanes|=t,si|=t)}function ta(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=l,t}function Py(e,t,l){var i=t.pendingProps;switch(Ir(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Sn(et),Le(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&($l(t)?An(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Wr())),Ze(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(An(t),c!==null?(Ze(t),ed(t,c)):(Ze(t),Go(t,o,null,i,l))):c?c!==e.memoizedState?(An(t),Ze(t),ed(t,c)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&An(t),Ze(t),Go(t,o,e,i,l)),null;case 27:if(hn(t),l=oe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&An(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Ze(t),null}e=P.current,$l(t)?Nf(t):(e=rm(o,i,l),t.stateNode=e,An(t))}return Ze(t),null;case 5:if(hn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&An(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Ze(t),null}if(c=P.current,$l(t))Nf(t);else{var g=Hu(oe.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?g.createElement("select",{is:i.is}):g.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?g.createElement(o,{is:i.is}):g.createElement(o)}}c[ct]=t,c[Et]=i;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(dt(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&An(t)}}return Ze(t),Go(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&An(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=oe.current,$l(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,o=st,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[ct]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||Id(e.nodeValue,l)),e||qn(t,!0)}else e=Hu(e).createTextNode(i),e[ct]=t,t.stateNode=e}return Ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=$l(t),l!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ct]=t}else gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else l=Wr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ze(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=$l(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[ct]=t}else gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),o=!1}else o=Wr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Tu(t,t.updateQueue),Ze(t),null);case 4:return Le(),e===null&&fc(t.stateNode.containerInfo),Ze(t),null;case 10:return Sn(t.type),Ze(t),null;case 19:if(Y(We),i=t.memoizedState,i===null)return Ze(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)ta(i,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=fu(e),c!==null){for(t.flags|=128,ta(i,!1),e=c.updateQueue,t.updateQueue=e,Tu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Cf(l,e),l=l.sibling;return k(We,We.current&1|2),we&&xn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&bt()>wu&&(t.flags|=128,o=!0,ta(i,!1),t.lanes=4194304)}else{if(!o)if(e=fu(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Tu(t,e),ta(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!we)return Ze(t),null}else 2*bt()-i.renderingStartTime>wu&&l!==536870912&&(t.flags|=128,o=!0,ta(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=bt(),e.sibling=null,l=We.current,k(We,o?l&1|2:l&1),we&&xn(t,i.treeForkCount),e):(Ze(t),null);case 22:case 23:return jt(t),fo(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(l&536870912)!==0&&(t.flags&128)===0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),l=t.updateQueue,l!==null&&Tu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==l&&(t.flags|=2048),e!==null&&Y(xl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Sn(et),Ze(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function e1(e,t){switch(Ir(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sn(et),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return hn(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(r(340));gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(We),null;case 4:return Le(),null;case 10:return Sn(t.type),null;case 22:case 23:return jt(t),fo(),e!==null&&Y(xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sn(et),null;case 25:return null;default:return null}}function td(e,t){switch(Ir(t),t.tag){case 3:Sn(et),Le();break;case 26:case 27:case 5:hn(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:Y(We);break;case 10:Sn(t.type);break;case 22:case 23:jt(t),fo(),e!==null&&Y(xl);break;case 24:Sn(et)}}function na(e,t){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var o=i.next;l=o;do{if((l.tag&e)===e){i=void 0;var c=l.create,g=l.inst;i=c(),g.destroy=i}l=l.next}while(l!==o)}}catch(x){je(t,t.return,x)}}function Kn(e,t,l){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var g=i.inst,x=g.destroy;if(x!==void 0){g.destroy=void 0,o=t;var T=l,M=x;try{M()}catch(H){je(o,T,H)}}}i=i.next}while(i!==c)}}catch(H){je(t,t.return,H)}}function nd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Zf(t,l)}catch(i){je(e,e.return,i)}}}function ld(e,t,l){l.props=Tl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){je(e,t,i)}}function la(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(o){je(e,t,o)}}function on(e,t){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(o){je(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){je(e,t,o)}else l.current=null}function id(e){var t=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(o){je(e,e.return,o)}}function Xo(e,t,l){try{var i=e.stateNode;k1(i,e.type,l,t),i[Et]=t}catch(o){je(e,e.return,o)}}function ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&el(e.type)||e.tag===4}function Qo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ad(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&el(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 Zo(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=gn));else if(i!==4&&(i===27&&el(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Zo(e,t,l),e=e.sibling;e!==null;)Zo(e,t,l),e=e.sibling}function Au(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(i===27&&el(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Au(e,t,l),e=e.sibling;e!==null;)Au(e,t,l),e=e.sibling}function ud(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);dt(t,i,l),t[ct]=e,t[Et]=l}catch(c){je(e,e.return,c)}}var _n=!1,lt=!1,Ko=!1,rd=typeof WeakSet=="function"?WeakSet:Set,ot=null;function t1(e,t){if(e=e.containerInfo,mc=Zu,e=xf(e),Hr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var g=0,x=-1,T=-1,M=0,H=0,Q=e,R=null;t:for(;;){for(var j;Q!==l||o!==0&&Q.nodeType!==3||(x=g+o),Q!==c||i!==0&&Q.nodeType!==3||(T=g+i),Q.nodeType===3&&(g+=Q.nodeValue.length),(j=Q.firstChild)!==null;)R=Q,Q=j;for(;;){if(Q===e)break t;if(R===l&&++M===o&&(x=g),R===c&&++H===i&&(T=g),(j=Q.nextSibling)!==null)break;Q=R,R=Q.parentNode}Q=j}l=x===-1||T===-1?null:{start:x,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(pc={focusedElem:e,selectionRange:l},Zu=!1,ot=t;ot!==null;)if(t=ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ot=e;else for(;ot!==null;){switch(t=ot,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)o=e[l],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,l=t,o=c.memoizedProps,c=c.memoizedState,i=l.stateNode;try{var ne=Tl(l.type,o);e=i.getSnapshotBeforeUpdate(ne,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(fe){je(l,l.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)bc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bc(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,ot=e;break}ot=t.return}}function od(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Cn(e,l),i&4&&na(5,l);break;case 1:if(Cn(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(g){je(l,l.return,g)}else{var o=Tl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){je(l,l.return,g)}}i&64&&nd(l),i&512&&la(l,l.return);break;case 3:if(Cn(e,l),i&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Zf(e,t)}catch(g){je(l,l.return,g)}}break;case 27:t===null&&i&4&&ud(l);case 26:case 5:Cn(e,l),t===null&&i&4&&id(l),i&512&&la(l,l.return);break;case 12:Cn(e,l);break;case 31:Cn(e,l),i&4&&fd(e,l);break;case 13:Cn(e,l),i&4&&hd(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=s1.bind(null,l),D1(e,l))));break;case 22:if(i=l.memoizedState!==null||_n,!i){t=t!==null&&t.memoizedState!==null||lt,o=_n;var c=lt;_n=i,(lt=t)&&!c?wn(e,l,(l.subtreeFlags&8772)!==0):Cn(e,l),_n=o,lt=c}break;case 30:break;default:Cn(e,l)}}function cd(e){var t=e.alternate;t!==null&&(e.alternate=null,cd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&kr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Je=null,At=!1;function zn(e,t,l){for(l=l.child;l!==null;)sd(e,t,l),l=l.sibling}function sd(e,t,l){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(xt,l)}catch{}switch(l.tag){case 26:lt||on(l,t),zn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||on(l,t);var i=Je,o=At;el(l.type)&&(Je=l.stateNode,At=!1),zn(e,t,l),ha(l.stateNode),Je=i,At=o;break;case 5:lt||on(l,t);case 6:if(i=Je,o=At,Je=null,zn(e,t,l),Je=i,At=o,Je!==null)if(At)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(l.stateNode)}catch(c){je(l,t,c)}else try{Je.removeChild(l.stateNode)}catch(c){je(l,t,c)}break;case 18:Je!==null&&(At?(e=Je,nm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),bi(e)):nm(Je,l.stateNode));break;case 4:i=Je,o=At,Je=l.stateNode.containerInfo,At=!0,zn(e,t,l),Je=i,At=o;break;case 0:case 11:case 14:case 15:Kn(2,l,t),lt||Kn(4,l,t),zn(e,t,l);break;case 1:lt||(on(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&ld(l,t,i)),zn(e,t,l);break;case 21:zn(e,t,l);break;case 22:lt=(i=lt)||l.memoizedState!==null,zn(e,t,l),lt=i;break;default:zn(e,t,l)}}function fd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{bi(e)}catch(l){je(t,t.return,l)}}}function hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{bi(e)}catch(l){je(t,t.return,l)}}function n1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rd),t;default:throw Error(r(435,e.tag))}}function _u(e,t){var l=n1(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var o=f1.bind(null,e,i);i.then(o,o)}})}function _t(e,t){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var o=l[i],c=e,g=t,x=g;e:for(;x!==null;){switch(x.tag){case 27:if(el(x.type)){Je=x.stateNode,At=!1;break e}break;case 5:Je=x.stateNode,At=!1;break e;case 3:case 4:Je=x.stateNode.containerInfo,At=!0;break e}x=x.return}if(Je===null)throw Error(r(160));sd(c,g,o),Je=null,At=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dd(t,e),t=t.sibling}var nn=null;function dd(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_t(t,e),zt(e),i&4&&(Kn(3,e,e.return),na(3,e),Kn(5,e,e.return));break;case 1:_t(t,e),zt(e),i&512&&(lt||l===null||on(l,l.return)),i&64&&_n&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var o=nn;if(_t(t,e),zt(e),i&512&&(lt||l===null||on(l,l.return)),i&4){var c=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Di]||c[ct]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),dt(c,i,l),c[ct]=e,rt(c),i=c;break e;case"link":var g=dm("link","href",o).get(i+(l.href||""));if(g){for(var x=0;x<g.length;x++)if(c=g[x],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){g.splice(x,1);break t}}c=o.createElement(i),dt(c,i,l),o.head.appendChild(c);break;case"meta":if(g=dm("meta","content",o).get(i+(l.content||""))){for(x=0;x<g.length;x++)if(c=g[x],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){g.splice(x,1);break t}}c=o.createElement(i),dt(c,i,l),o.head.appendChild(c);break;default:throw Error(r(468,i))}c[ct]=e,rt(c),i=c}e.stateNode=i}else mm(o,e.type,e.stateNode);else e.stateNode=hm(o,i,e.memoizedProps);else c!==i?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,i===null?mm(o,e.type,e.stateNode):hm(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Xo(e,e.memoizedProps,l.memoizedProps)}break;case 27:_t(t,e),zt(e),i&512&&(lt||l===null||on(l,l.return)),l!==null&&i&4&&Xo(e,e.memoizedProps,l.memoizedProps);break;case 5:if(_t(t,e),zt(e),i&512&&(lt||l===null||on(l,l.return)),e.flags&32){o=e.stateNode;try{Yl(o,"")}catch(ne){je(e,e.return,ne)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Xo(e,o,l!==null?l.memoizedProps:o)),i&1024&&(Ko=!0);break;case 6:if(_t(t,e),zt(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(ne){je(e,e.return,ne)}}break;case 3:if(Vu=null,o=nn,nn=qu(t.containerInfo),_t(t,e),nn=o,zt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{bi(t.containerInfo)}catch(ne){je(e,e.return,ne)}Ko&&(Ko=!1,md(e));break;case 4:i=nn,nn=qu(e.stateNode.containerInfo),_t(t,e),zt(e),nn=i;break;case 12:_t(t,e),zt(e);break;case 31:_t(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,_u(e,i)));break;case 13:_t(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Cu=bt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,_u(e,i)));break;case 22:o=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,M=_n,H=lt;if(_n=M||o,lt=H||T,_t(t,e),lt=H,_n=M,zt(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||T||_n||lt||Al(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){T=l=t;try{if(c=T.stateNode,o)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{x=T.stateNode;var Q=T.memoizedProps.style,R=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;x.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(ne){je(T,T.return,ne)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(ne){je(T,T.return,ne)}}}else if(t.tag===18){if(l===null){T=t;try{var j=T.stateNode;o?lm(j,!0):lm(T.stateNode,!1)}catch(ne){je(T,T.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,_u(e,l))));break;case 19:_t(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,_u(e,i)));break;case 30:break;case 21:break;default:_t(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(ad(i)){l=i;break}i=i.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var o=l.stateNode,c=Qo(e);Au(e,c,o);break;case 5:var g=l.stateNode;l.flags&32&&(Yl(g,""),l.flags&=-33);var x=Qo(e);Au(e,x,g);break;case 3:case 4:var T=l.stateNode.containerInfo,M=Qo(e);Zo(e,M,T);break;default:throw Error(r(161))}}catch(H){je(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function md(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;md(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)od(e,t.alternate,t),t=t.sibling}function Al(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Kn(4,t,t.return),Al(t);break;case 1:on(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ld(t,t.return,l),Al(t);break;case 27:ha(t.stateNode);case 26:case 5:on(t,t.return),Al(t);break;case 22:t.memoizedState===null&&Al(t);break;case 30:Al(t);break;default:Al(t)}e=e.sibling}}function wn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:wn(o,c,l),na(4,c);break;case 1:if(wn(o,c,l),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(M){je(i,i.return,M)}if(i=c,o=i.updateQueue,o!==null){var x=i.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)Qf(T[o],x)}catch(M){je(i,i.return,M)}}l&&g&64&&nd(c),la(c,c.return);break;case 27:ud(c);case 26:case 5:wn(o,c,l),l&&i===null&&g&4&&id(c),la(c,c.return);break;case 12:wn(o,c,l);break;case 31:wn(o,c,l),l&&g&4&&fd(o,c);break;case 13:wn(o,c,l),l&&g&4&&hd(o,c);break;case 22:c.memoizedState===null&&wn(o,c,l),la(c,c.return);break;case 30:break;default:wn(o,c,l)}t=t.sibling}}function Jo(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Gi(l))}function Fo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gi(e))}function ln(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pd(e,t,l,i),t=t.sibling}function pd(e,t,l,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:ln(e,t,l,i),o&2048&&na(9,t);break;case 1:ln(e,t,l,i);break;case 3:ln(e,t,l,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gi(e)));break;case 12:if(o&2048){ln(e,t,l,i),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,x=c.onPostCommit;typeof x=="function"&&x(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){je(t,t.return,T)}}else ln(e,t,l,i);break;case 31:ln(e,t,l,i);break;case 13:ln(e,t,l,i);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?ln(e,t,l,i):ia(e,t):c._visibility&2?ln(e,t,l,i):(c._visibility|=2,ri(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Jo(g,t);break;case 24:ln(e,t,l,i),o&2048&&Fo(t.alternate,t);break;default:ln(e,t,l,i)}}function ri(e,t,l,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,x=l,T=i,M=g.flags;switch(g.tag){case 0:case 11:case 15:ri(c,g,x,T,o),na(8,g);break;case 23:break;case 22:var H=g.stateNode;g.memoizedState!==null?H._visibility&2?ri(c,g,x,T,o):ia(c,g):(H._visibility|=2,ri(c,g,x,T,o)),o&&M&2048&&Jo(g.alternate,g);break;case 24:ri(c,g,x,T,o),o&&M&2048&&Fo(g.alternate,g);break;default:ri(c,g,x,T,o)}t=t.sibling}}function ia(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,i=t,o=i.flags;switch(i.tag){case 22:ia(l,i),o&2048&&Jo(i.alternate,i);break;case 24:ia(l,i),o&2048&&Fo(i.alternate,i);break;default:ia(l,i)}t=t.sibling}}var aa=8192;function oi(e,t,l){if(e.subtreeFlags&aa)for(e=e.child;e!==null;)gd(e,t,l),e=e.sibling}function gd(e,t,l){switch(e.tag){case 26:oi(e,t,l),e.flags&aa&&e.memoizedState!==null&&V1(l,nn,e.memoizedState,e.memoizedProps);break;case 5:oi(e,t,l);break;case 3:case 4:var i=nn;nn=qu(e.stateNode.containerInfo),oi(e,t,l),nn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=aa,aa=16777216,oi(e,t,l),aa=i):oi(e,t,l));break;default:oi(e,t,l)}}function yd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ua(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];ot=i,xd(i,e)}yd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bd(e),e=e.sibling}function bd(e){switch(e.tag){case 0:case 11:case 15:ua(e),e.flags&2048&&Kn(9,e,e.return);break;case 3:ua(e);break;case 12:ua(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zu(e)):ua(e);break;default:ua(e)}}function zu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];ot=i,xd(i,e)}yd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Kn(8,t,t.return),zu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,zu(t));break;default:zu(t)}e=e.sibling}}function xd(e,t){for(;ot!==null;){var l=ot;switch(l.tag){case 0:case 11:case 15:Kn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Gi(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,ot=i;else e:for(l=e;ot!==null;){i=ot;var o=i.sibling,c=i.return;if(cd(i),i===l){ot=null;break e}if(o!==null){o.return=c,ot=o;break e}ot=c}}}var l1={getCacheForType:function(e){var t=ft(et),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ft(et).controller.signal}},i1=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Ve=null,Ee=null,ze=0,Ue=0,Lt=null,Jn=!1,ci=!1,Io=!1,Dn=0,$e=0,Fn=0,_l=0,$o=0,Bt=0,si=0,ra=null,Ct=null,Wo=!1,Cu=0,vd=0,wu=1/0,Du=null,In=null,ut=0,$n=null,fi=null,On=0,Po=0,ec=null,Sd=null,oa=0,tc=null;function Ht(){return(Ne&2)!==0&&ze!==0?ze&-ze:C.T!==null?rc():js()}function kd(){if(Bt===0)if((ze&536870912)===0||we){var e=Ba;Ba<<=1,(Ba&3932160)===0&&(Ba=262144),Bt=e}else Bt=536870912;return e=Ut.current,e!==null&&(e.flags|=32),Bt}function wt(e,t,l){(e===Ve&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)&&(hi(e,0),Wn(e,ze,Bt,!1)),wi(e,l),((Ne&2)===0||e!==Ve)&&(e===Ve&&((Ne&2)===0&&(_l|=l),$e===4&&Wn(e,ze,Bt,!1)),cn(e))}function Ed(e,t,l){if((Ne&6)!==0)throw Error(r(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ci(e,t),o=i?r1(e,t):lc(e,t,!0),c=i;do{if(o===0){ci&&!i&&Wn(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!a1(l)){o=lc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var x=e;o=ra;var T=x.current.memoizedState.isDehydrated;if(T&&(hi(x,g).flags|=256),g=lc(x,g,!1),g!==2){if(Io&&!T){x.errorRecoveryDisabledLanes|=c,_l|=c,o=4;break e}c=Ct,Ct=o,c!==null&&(Ct===null?Ct=c:Ct.push.apply(Ct,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){hi(e,0),Wn(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Wn(i,t,Bt,!Jn);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=Cu+300-bt(),10<o)){if(Wn(i,t,Bt,!Jn),qa(i,0,!0)!==0)break e;On=t,i.timeoutHandle=em(Td.bind(null,i,l,Ct,Du,Wo,t,Bt,_l,si,Jn,c,"Throttled",-0,0),o);break e}Td(i,l,Ct,Du,Wo,t,Bt,_l,si,Jn,c,null,-0,0)}}break}while(!0);cn(e)}function Td(e,t,l,i,o,c,g,x,T,M,H,Q,R,j){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:gn},gd(t,c,Q);var ne=(c&62914560)===c?Cu-bt():(c&4194048)===c?vd-bt():0;if(ne=G1(Q,ne),ne!==null){On=c,e.cancelPendingCommit=ne(Md.bind(null,e,t,c,l,i,o,g,x,T,H,Q,null,R,j)),Wn(e,c,g,!M);return}}Md(e,t,c,l,i,o,g,x,T)}function a1(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var o=l[i],c=o.getSnapshot;o=o.value;try{if(!Nt(c(),o))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wn(e,t,l,i){t&=~$o,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Ye(o),g=1<<c;i[c]=-1,o&=~g}l!==0&&Ns(e,l,t)}function Ou(){return(Ne&6)===0?(ca(0),!1):!0}function nc(){if(Ee!==null){if(Ue===0)var e=Ee.return;else e=Ee,vn=yl=null,bo(e),ni=null,Qi=0,e=Ee;for(;e!==null;)td(e.alternate,e),e=e.return;Ee=null}}function hi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,A1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),On=0,nc(),Ve=e,Ee=l=bn(e.current,null),ze=t,Ue=0,Lt=null,Jn=!1,ci=Ci(e,t),Io=!1,si=Bt=$o=_l=Fn=$e=0,Ct=ra=null,Wo=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Ye(i),c=1<<o;t|=e[o],i&=~c}return Dn=t,Wa(),l}function Ad(e,t){be=null,C.H=Pi,t===ti||t===uu?(t=Yf(),Ue=3):t===ao?(t=Yf(),Ue=4):Ue=t===Ro?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,Ee===null&&($e=1,vu(e,Zt(t,e.current)))}function _d(){var e=Ut.current;return e===null?!0:(ze&4194048)===ze?It===null:(ze&62914560)===ze||(ze&536870912)!==0?e===It:!1}function zd(){var e=C.H;return C.H=Pi,e===null?Pi:e}function Cd(){var e=C.A;return C.A=l1,e}function Mu(){$e=4,Jn||(ze&4194048)!==ze&&Ut.current!==null||(ci=!0),(Fn&134217727)===0&&(_l&134217727)===0||Ve===null||Wn(Ve,ze,Bt,!1)}function lc(e,t,l){var i=Ne;Ne|=2;var o=zd(),c=Cd();(Ve!==e||ze!==t)&&(Du=null,hi(e,t)),t=!1;var g=$e;e:do try{if(Ue!==0&&Ee!==null){var x=Ee,T=Lt;switch(Ue){case 8:nc(),g=6;break e;case 3:case 2:case 9:case 6:Ut.current===null&&(t=!0);var M=Ue;if(Ue=0,Lt=null,di(e,x,T,M),l&&ci){g=0;break e}break;default:M=Ue,Ue=0,Lt=null,di(e,x,T,M)}}u1(),g=$e;break}catch(H){Ad(e,H)}while(!0);return t&&e.shellSuspendCounter++,vn=yl=null,Ne=i,C.H=o,C.A=c,Ee===null&&(Ve=null,ze=0,Wa()),g}function u1(){for(;Ee!==null;)wd(Ee)}function r1(e,t){var l=Ne;Ne|=2;var i=zd(),o=Cd();Ve!==e||ze!==t?(Du=null,wu=bt()+500,hi(e,t)):ci=Ci(e,t);e:do try{if(Ue!==0&&Ee!==null){t=Ee;var c=Lt;t:switch(Ue){case 1:Ue=0,Lt=null,di(e,t,c,1);break;case 2:case 9:if(Hf(c)){Ue=0,Lt=null,Dd(t);break}t=function(){Ue!==2&&Ue!==9||Ve!==e||(Ue=7),cn(e)},c.then(t,t);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:Hf(c)?(Ue=0,Lt=null,Dd(t)):(Ue=0,Lt=null,di(e,t,c,7));break;case 5:var g=null;switch(Ee.tag){case 26:g=Ee.memoizedState;case 5:case 27:var x=Ee;if(g?pm(g):x.stateNode.complete){Ue=0,Lt=null;var T=x.sibling;if(T!==null)Ee=T;else{var M=x.return;M!==null?(Ee=M,Nu(M)):Ee=null}break t}}Ue=0,Lt=null,di(e,t,c,5);break;case 6:Ue=0,Lt=null,di(e,t,c,6);break;case 8:nc(),$e=6;break e;default:throw Error(r(462))}}o1();break}catch(H){Ad(e,H)}while(!0);return vn=yl=null,C.H=i,C.A=o,Ne=l,Ee!==null?0:(Ve=null,ze=0,Wa(),$e)}function o1(){for(;Ee!==null&&!pr();)wd(Ee)}function wd(e){var t=Ph(e.alternate,e,Dn);e.memoizedProps=e.pendingProps,t===null?Nu(e):Ee=t}function Dd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Kh(l,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Kh(l,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:bo(t);default:td(l,t),t=Ee=Cf(t,Dn),t=Ph(l,t,Dn)}e.memoizedProps=e.pendingProps,t===null?Nu(e):Ee=t}function di(e,t,l,i){vn=yl=null,bo(t),ni=null,Qi=0;var o=t.return;try{if(Iy(e,o,t,l,ze)){$e=1,vu(e,Zt(l,e.current)),Ee=null;return}}catch(c){if(o!==null)throw Ee=o,c;$e=1,vu(e,Zt(l,e.current)),Ee=null;return}t.flags&32768?(we||i===1?e=!0:ci||(ze&536870912)!==0?e=!1:(Jn=e=!0,(i===2||i===9||i===3||i===6)&&(i=Ut.current,i!==null&&i.tag===13&&(i.flags|=16384))),Od(t,e)):Nu(t)}function Nu(e){var t=e;do{if((t.flags&32768)!==0){Od(t,Jn);return}e=t.return;var l=Py(t.alternate,t,Dn);if(l!==null){Ee=l;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);$e===0&&($e=5)}function Od(e,t){do{var l=e1(e.alternate,e);if(l!==null){l.flags&=32767,Ee=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=l}while(e!==null);$e=6,Ee=null}function Md(e,t,l,i,o,c,g,x,T){e.cancelPendingCommit=null;do Ru();while(ut!==0);if((Ne&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Xr,Yg(e,l,c,g,x,T),e===Ve&&(Ee=Ve=null,ze=0),fi=t,$n=e,On=l,Po=c,ec=o,Sd=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,h1(me,function(){return Ld(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=C.T,C.T=null,o=B.p,B.p=2,g=Ne,Ne|=4;try{t1(e,t,l)}finally{Ne=g,B.p=o,C.T=i}}ut=1,Nd(),Rd(),Ud()}}function Nd(){if(ut===1){ut=0;var e=$n,t=fi,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=C.T,C.T=null;var i=B.p;B.p=2;var o=Ne;Ne|=4;try{dd(t,e);var c=pc,g=xf(e.containerInfo),x=c.focusedElem,T=c.selectionRange;if(g!==x&&x&&x.ownerDocument&&bf(x.ownerDocument.documentElement,x)){if(T!==null&&Hr(x)){var M=T.start,H=T.end;if(H===void 0&&(H=M),"selectionStart"in x)x.selectionStart=M,x.selectionEnd=Math.min(H,x.value.length);else{var Q=x.ownerDocument||document,R=Q&&Q.defaultView||window;if(R.getSelection){var j=R.getSelection(),ne=x.textContent.length,fe=Math.min(T.start,ne),qe=T.end===void 0?fe:Math.min(T.end,ne);!j.extend&&fe>qe&&(g=qe,qe=fe,fe=g);var w=yf(x,fe),_=yf(x,qe);if(w&&_&&(j.rangeCount!==1||j.anchorNode!==w.node||j.anchorOffset!==w.offset||j.focusNode!==_.node||j.focusOffset!==_.offset)){var O=Q.createRange();O.setStart(w.node,w.offset),j.removeAllRanges(),fe>qe?(j.addRange(O),j.extend(_.node,_.offset)):(O.setEnd(_.node,_.offset),j.addRange(O))}}}}for(Q=[],j=x;j=j.parentNode;)j.nodeType===1&&Q.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Q.length;x++){var G=Q[x];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Zu=!!mc,pc=mc=null}finally{Ne=o,B.p=i,C.T=l}}e.current=t,ut=2}}function Rd(){if(ut===2){ut=0;var e=$n,t=fi,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=C.T,C.T=null;var i=B.p;B.p=2;var o=Ne;Ne|=4;try{od(e,t.alternate,t)}finally{Ne=o,B.p=i,C.T=l}}ut=3}}function Ud(){if(ut===4||ut===3){ut=0,gr();var e=$n,t=fi,l=On,i=Sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ut=5:(ut=0,fi=$n=null,jd(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(In=null),vr(l),t=t.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(xt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=C.T,o=B.p,B.p=2,C.T=null;try{for(var c=e.onRecoverableError,g=0;g<i.length;g++){var x=i[g];c(x.value,{componentStack:x.stack})}}finally{C.T=t,B.p=o}}(On&3)!==0&&Ru(),cn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===tc?oa++:(oa=0,tc=e):oa=0,ca(0)}}function jd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Gi(t)))}function Ru(){return Nd(),Rd(),Ud(),Ld()}function Ld(){if(ut!==5)return!1;var e=$n,t=Po;Po=0;var l=vr(On),i=C.T,o=B.p;try{B.p=32>l?32:l,C.T=null,l=ec,ec=null;var c=$n,g=On;if(ut=0,fi=$n=null,On=0,(Ne&6)!==0)throw Error(r(331));var x=Ne;if(Ne|=4,bd(c.current),pd(c,c.current,g,l),Ne=x,ca(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(xt,c)}catch{}return!0}finally{B.p=o,C.T=i,jd(e,t)}}function Bd(e,t,l){t=Zt(l,t),t=No(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(wi(e,2),cn(e))}function je(e,t,l){if(e.tag===3)Bd(e,e,l);else for(;t!==null;){if(t.tag===3){Bd(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(In===null||!In.has(i))){e=Zt(l,e),l=Hh(2),i=Xn(t,l,2),i!==null&&(qh(l,i,t,e),wi(i,2),cn(i));break}}t=t.return}}function ic(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new i1;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(l)||(Io=!0,o.add(l),e=c1.bind(null,e,t,l),t.then(e,e))}function c1(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ve===e&&(ze&l)===l&&($e===4||$e===3&&(ze&62914560)===ze&&300>bt()-Cu?(Ne&2)===0&&hi(e,0):$o|=l,si===ze&&(si=0)),cn(e)}function Hd(e,t){t===0&&(t=Ms()),e=ml(e,t),e!==null&&(wi(e,t),cn(e))}function s1(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Hd(e,l)}function f1(e,t){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),Hd(e,l)}function h1(e,t){return Rl(e,t)}var Uu=null,mi=null,ac=!1,ju=!1,uc=!1,Pn=0;function cn(e){e!==mi&&e.next===null&&(mi===null?Uu=mi=e:mi=mi.next=e),ju=!0,ac||(ac=!0,m1())}function ca(e,t){if(!uc&&ju){uc=!0;do for(var l=!1,i=Uu;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var g=i.suspendedLanes,x=i.pingedLanes;c=(1<<31-Ye(42|e)+1)-1,c&=o&~(g&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Gd(i,c))}else c=ze,c=qa(i,i===Ve?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||Ci(i,c)||(l=!0,Gd(i,c));i=i.next}while(l);uc=!1}}function d1(){qd()}function qd(){ju=ac=!1;var e=0;Pn!==0&&T1()&&(e=Pn);for(var t=bt(),l=null,i=Uu;i!==null;){var o=i.next,c=Yd(i,t);c===0?(i.next=null,l===null?Uu=o:l.next=o,o===null&&(mi=l)):(l=i,(e!==0||(c&3)!==0)&&(ju=!0)),i=o}ut!==0&&ut!==5||ca(e),Pn!==0&&(Pn=0)}function Yd(e,t){for(var l=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-Ye(c),x=1<<g,T=o[g];T===-1?((x&l)===0||(x&i)!==0)&&(o[g]=qg(x,t)):T<=t&&(e.expiredLanes|=x),c&=~x}if(t=Ve,l=ze,l=qa(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&zi(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ci(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&zi(i),vr(l)){case 2:case 8:l=W;break;case 32:l=me;break;case 268435456:l=Re;break;default:l=me}return i=Vd.bind(null,e),l=Rl(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&zi(i),e.callbackPriority=2,e.callbackNode=null,2}function Vd(e,t){if(ut!==0&&ut!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ru()&&e.callbackNode!==l)return null;var i=ze;return i=qa(e,e===Ve?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Ed(e,i,t),Yd(e,bt()),e.callbackNode!=null&&e.callbackNode===l?Vd.bind(null,e):null)}function Gd(e,t){if(Ru())return null;Ed(e,t,!0)}function m1(){_1(function(){(Ne&6)!==0?Rl(V,d1):qd()})}function rc(){if(Pn===0){var e=Pl;e===0&&(e=La,La<<=1,(La&261888)===0&&(La=256)),Pn=e}return Pn}function Xd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xa(""+e)}function Qd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function p1(e,t,l,i,o){if(t==="submit"&&l&&l.stateNode===o){var c=Xd((o[Et]||null).action),g=i.submitter;g&&(t=(t=g[Et]||null)?Xd(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var x=new Ja("action","action",null,i,o);e.push({event:x,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Pn!==0){var T=g?Qd(o,g):new FormData(o);zo(l,{pending:!0,data:T,method:o.method,action:c},null,T)}}else typeof c=="function"&&(x.preventDefault(),T=g?Qd(o,g):new FormData(o),zo(l,{pending:!0,data:T,method:o.method,action:c},c,T))},currentTarget:o}]})}}for(var oc=0;oc<Gr.length;oc++){var cc=Gr[oc],g1=cc.toLowerCase(),y1=cc[0].toUpperCase()+cc.slice(1);tn(g1,"on"+y1)}tn(kf,"onAnimationEnd"),tn(Ef,"onAnimationIteration"),tn(Tf,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(Ny,"onTransitionRun"),tn(Ry,"onTransitionStart"),tn(Uy,"onTransitionCancel"),tn(Af,"onTransitionEnd"),Hl("onMouseEnter",["mouseout","mouseover"]),Hl("onMouseLeave",["mouseout","mouseover"]),Hl("onPointerEnter",["pointerout","pointerover"]),Hl("onPointerLeave",["pointerout","pointerover"]),sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sl("onBeforeInput",["compositionend","keypress","textInput","paste"]),sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),b1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sa));function Zd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var g=i.length-1;0<=g;g--){var x=i[g],T=x.instance,M=x.currentTarget;if(x=x.listener,T!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=M;try{c(o)}catch(H){$a(H)}o.currentTarget=null,c=T}else for(g=0;g<i.length;g++){if(x=i[g],T=x.instance,M=x.currentTarget,x=x.listener,T!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=M;try{c(o)}catch(H){$a(H)}o.currentTarget=null,c=T}}}}function Te(e,t){var l=t[Sr];l===void 0&&(l=t[Sr]=new Set);var i=e+"__bubble";l.has(i)||(Kd(t,e,2,!1),l.add(i))}function sc(e,t,l){var i=0;t&&(i|=4),Kd(l,e,i,t)}var Lu="_reactListening"+Math.random().toString(36).slice(2);function fc(e){if(!e[Lu]){e[Lu]=!0,Hs.forEach(function(l){l!=="selectionchange"&&(b1.has(l)||sc(l,!1,e),sc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Lu]||(t[Lu]=!0,sc("selectionchange",!1,t))}}function Kd(e,t,l,i){switch(km(t)){case 2:var o=Z1;break;case 8:o=K1;break;default:o=_c}l=o.bind(null,t,l,e),o=void 0,!Dr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,l,{capture:!0,passive:o}):e.addEventListener(t,l,!0):o!==void 0?e.addEventListener(t,l,{passive:o}):e.addEventListener(t,l,!1)}function hc(e,t,l,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var x=i.stateNode.containerInfo;if(x===o)break;if(g===4)for(g=i.return;g!==null;){var T=g.tag;if((T===3||T===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;x!==null;){if(g=jl(x),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){i=c=g;continue e}x=x.parentNode}}i=i.return}$s(function(){var M=c,H=Cr(l),Q=[];e:{var R=_f.get(e);if(R!==void 0){var j=Ja,ne=e;switch(e){case"keypress":if(Za(l)===0)break e;case"keydown":case"keyup":j=fy;break;case"focusin":ne="focus",j=Rr;break;case"focusout":ne="blur",j=Rr;break;case"beforeblur":case"afterblur":j=Rr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=ef;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Pg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=my;break;case kf:case Ef:case Tf:j=ny;break;case Af:j=gy;break;case"scroll":case"scrollend":j=$g;break;case"wheel":j=by;break;case"copy":case"cut":case"paste":j=iy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=nf;break;case"toggle":case"beforetoggle":j=vy}var fe=(t&4)!==0,qe=!fe&&(e==="scroll"||e==="scrollend"),w=fe?R!==null?R+"Capture":null:R;fe=[];for(var _=M,O;_!==null;){var G=_;if(O=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||O===null||w===null||(G=Mi(_,w),G!=null&&fe.push(fa(_,G,O))),qe)break;_=_.return}0<fe.length&&(R=new j(R,ne,null,l,H),Q.push({event:R,listeners:fe}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",R&&l!==zr&&(ne=l.relatedTarget||l.fromElement)&&(jl(ne)||ne[Ul]))break e;if((j||R)&&(R=H.window===H?H:(R=H.ownerDocument)?R.defaultView||R.parentWindow:window,j?(ne=l.relatedTarget||l.toElement,j=M,ne=ne?jl(ne):null,ne!==null&&(qe=h(ne),fe=ne.tag,ne!==qe||fe!==5&&fe!==27&&fe!==6)&&(ne=null)):(j=null,ne=M),j!==ne)){if(fe=ef,G="onMouseLeave",w="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(fe=nf,G="onPointerLeave",w="onPointerEnter",_="pointer"),qe=j==null?R:Oi(j),O=ne==null?R:Oi(ne),R=new fe(G,_+"leave",j,l,H),R.target=qe,R.relatedTarget=O,G=null,jl(H)===M&&(fe=new fe(w,_+"enter",ne,l,H),fe.target=O,fe.relatedTarget=qe,G=fe),qe=G,j&&ne)t:{for(fe=x1,w=j,_=ne,O=0,G=w;G;G=fe(G))O++;G=0;for(var ce=_;ce;ce=fe(ce))G++;for(;0<O-G;)w=fe(w),O--;for(;0<G-O;)_=fe(_),G--;for(;O--;){if(w===_||_!==null&&w===_.alternate){fe=w;break t}w=fe(w),_=fe(_)}fe=null}else fe=null;j!==null&&Jd(Q,R,j,fe,!1),ne!==null&&qe!==null&&Jd(Q,qe,ne,fe,!0)}}e:{if(R=M?Oi(M):window,j=R.nodeName&&R.nodeName.toLowerCase(),j==="select"||j==="input"&&R.type==="file")var Oe=ff;else if(cf(R))if(hf)Oe=Dy;else{Oe=Cy;var ae=zy}else j=R.nodeName,!j||j.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?M&&_r(M.elementType)&&(Oe=ff):Oe=wy;if(Oe&&(Oe=Oe(e,M))){sf(Q,Oe,l,H);break e}ae&&ae(e,R,M),e==="focusout"&&M&&R.type==="number"&&M.memoizedProps.value!=null&&Ar(R,"number",R.value)}switch(ae=M?Oi(M):window,e){case"focusin":(cf(ae)||ae.contentEditable==="true")&&(Ql=ae,qr=M,qi=null);break;case"focusout":qi=qr=Ql=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":Yr=!1,vf(Q,l,H);break;case"selectionchange":if(My)break;case"keydown":case"keyup":vf(Q,l,H)}var ve;if(jr)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Xl?rf(e,l)&&(Ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ce="onCompositionStart");Ce&&(lf&&l.locale!=="ko"&&(Xl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Xl&&(ve=Ws()):(Ln=H,Or="value"in Ln?Ln.value:Ln.textContent,Xl=!0)),ae=Bu(M,Ce),0<ae.length&&(Ce=new tf(Ce,e,null,l,H),Q.push({event:Ce,listeners:ae}),ve?Ce.data=ve:(ve=of(l),ve!==null&&(Ce.data=ve)))),(ve=ky?Ey(e,l):Ty(e,l))&&(Ce=Bu(M,"onBeforeInput"),0<Ce.length&&(ae=new tf("onBeforeInput","beforeinput",null,l,H),Q.push({event:ae,listeners:Ce}),ae.data=ve)),p1(Q,e,M,l,H)}Zd(Q,t)})}function fa(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Bu(e,t){for(var l=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Mi(e,l),o!=null&&i.unshift(fa(e,o,c)),o=Mi(e,t),o!=null&&i.push(fa(e,o,c))),e.tag===3)return i;e=e.return}return[]}function x1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jd(e,t,l,i,o){for(var c=t._reactName,g=[];l!==null&&l!==i;){var x=l,T=x.alternate,M=x.stateNode;if(x=x.tag,T!==null&&T===i)break;x!==5&&x!==26&&x!==27||M===null||(T=M,o?(M=Mi(l,c),M!=null&&g.unshift(fa(l,M,T))):o||(M=Mi(l,c),M!=null&&g.push(fa(l,M,T)))),l=l.return}g.length!==0&&e.push({event:t,listeners:g})}var v1=/\r\n?/g,S1=/\u0000|\uFFFD/g;function Fd(e){return(typeof e=="string"?e:""+e).replace(v1,`
|
|
49
|
+
`).replace(S1,"")}function Id(e,t){return t=Fd(t),Fd(e)===t}function He(e,t,l,i,o,c){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Yl(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Yl(e,""+i);break;case"className":Va(e,"class",i);break;case"tabIndex":Va(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Va(e,l,i);break;case"style":Fs(e,i,c);break;case"data":if(t!=="object"){Va(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Xa(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(l==="formAction"?(t!=="input"&&He(e,t,"name",o.name,o,null),He(e,t,"formEncType",o.formEncType,o,null),He(e,t,"formMethod",o.formMethod,o,null),He(e,t,"formTarget",o.formTarget,o,null)):(He(e,t,"encType",o.encType,o,null),He(e,t,"method",o.method,o,null),He(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=Xa(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=gn);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=Xa(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Ya(e,"popover",i);break;case"xlinkActuate":pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":pn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":pn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":pn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":pn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ya(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Fg.get(l)||l,Ya(e,l,i))}}function dc(e,t,l,i,o,c){switch(l){case"style":Fs(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof i=="string"?Yl(e,i):(typeof i=="number"||typeof i=="bigint")&&Yl(e,""+i);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"onClick":i!=null&&(e.onclick=gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qs.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),t=l.slice(2,o?l.length-7:void 0),c=e[Et]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,i,o);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):Ya(e,l,i)}}}function dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var i=!1,o=!1,c;for(c in l)if(l.hasOwnProperty(c)){var g=l[c];if(g!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:He(e,t,c,g,l,null)}}o&&He(e,t,"srcSet",l.srcSet,l,null),i&&He(e,t,"src",l.src,l,null);return;case"input":Te("invalid",e);var x=c=g=o=null,T=null,M=null;for(i in l)if(l.hasOwnProperty(i)){var H=l[i];if(H!=null)switch(i){case"name":o=H;break;case"type":g=H;break;case"checked":T=H;break;case"defaultChecked":M=H;break;case"value":c=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:He(e,t,i,H,l,null)}}Qs(e,c,x,T,M,g,o,!1);return;case"select":Te("invalid",e),i=g=c=null;for(o in l)if(l.hasOwnProperty(o)&&(x=l[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":g=x;break;case"multiple":i=x;default:He(e,t,o,x,l,null)}t=c,l=g,e.multiple=!!i,t!=null?ql(e,!!i,t,!1):l!=null&&ql(e,!!i,l,!0);return;case"textarea":Te("invalid",e),c=o=i=null;for(g in l)if(l.hasOwnProperty(g)&&(x=l[g],x!=null))switch(g){case"value":i=x;break;case"defaultValue":o=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:He(e,t,g,x,l,null)}Ks(e,i,o,c);return;case"option":for(T in l)l.hasOwnProperty(T)&&(i=l[T],i!=null)&&(T==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":He(e,t,T,i,l,null));return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(i=0;i<sa.length;i++)Te(sa[i],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in l)if(l.hasOwnProperty(M)&&(i=l[M],i!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:He(e,t,M,i,l,null)}return;default:if(_r(t)){for(H in l)l.hasOwnProperty(H)&&(i=l[H],i!==void 0&&dc(e,t,H,i,l,void 0));return}}for(x in l)l.hasOwnProperty(x)&&(i=l[x],i!=null&&He(e,t,x,i,l,null))}function k1(e,t,l,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,g=null,x=null,T=null,M=null,H=null;for(j in l){var Q=l[j];if(l.hasOwnProperty(j)&&Q!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":T=Q;default:i.hasOwnProperty(j)||He(e,t,j,null,i,Q)}}for(var R in i){var j=i[R];if(Q=l[R],i.hasOwnProperty(R)&&(j!=null||Q!=null))switch(R){case"type":c=j;break;case"name":o=j;break;case"checked":M=j;break;case"defaultChecked":H=j;break;case"value":g=j;break;case"defaultValue":x=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:j!==Q&&He(e,t,R,j,i,Q)}}Tr(e,g,x,T,M,H,c,o);return;case"select":j=g=x=R=null;for(c in l)if(T=l[c],l.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":j=T;default:i.hasOwnProperty(c)||He(e,t,c,null,i,T)}for(o in i)if(c=i[o],T=l[o],i.hasOwnProperty(o)&&(c!=null||T!=null))switch(o){case"value":R=c;break;case"defaultValue":x=c;break;case"multiple":g=c;default:c!==T&&He(e,t,o,c,i,T)}t=x,l=g,i=j,R!=null?ql(e,!!l,R,!1):!!i!=!!l&&(t!=null?ql(e,!!l,t,!0):ql(e,!!l,l?[]:"",!1));return;case"textarea":j=R=null;for(x in l)if(o=l[x],l.hasOwnProperty(x)&&o!=null&&!i.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:He(e,t,x,null,i,o)}for(g in i)if(o=i[g],c=l[g],i.hasOwnProperty(g)&&(o!=null||c!=null))switch(g){case"value":R=o;break;case"defaultValue":j=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&He(e,t,g,o,i,c)}Zs(e,R,j);return;case"option":for(var ne in l)R=l[ne],l.hasOwnProperty(ne)&&R!=null&&!i.hasOwnProperty(ne)&&(ne==="selected"?e.selected=!1:He(e,t,ne,null,i,R));for(T in i)R=i[T],j=l[T],i.hasOwnProperty(T)&&R!==j&&(R!=null||j!=null)&&(T==="selected"?e.selected=R&&typeof R!="function"&&typeof R!="symbol":He(e,t,T,R,i,j));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in l)R=l[fe],l.hasOwnProperty(fe)&&R!=null&&!i.hasOwnProperty(fe)&&He(e,t,fe,null,i,R);for(M in i)if(R=i[M],j=l[M],i.hasOwnProperty(M)&&R!==j&&(R!=null||j!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:He(e,t,M,R,i,j)}return;default:if(_r(t)){for(var qe in l)R=l[qe],l.hasOwnProperty(qe)&&R!==void 0&&!i.hasOwnProperty(qe)&&dc(e,t,qe,void 0,i,R);for(H in i)R=i[H],j=l[H],!i.hasOwnProperty(H)||R===j||R===void 0&&j===void 0||dc(e,t,H,R,i,j);return}}for(var w in l)R=l[w],l.hasOwnProperty(w)&&R!=null&&!i.hasOwnProperty(w)&&He(e,t,w,null,i,R);for(Q in i)R=i[Q],j=l[Q],!i.hasOwnProperty(Q)||R===j||R==null&&j==null||He(e,t,Q,R,i,j)}function $d(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function E1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var o=l[i],c=o.transferSize,g=o.initiatorType,x=o.duration;if(c&&x&&$d(g)){for(g=0,x=o.responseEnd,i+=1;i<l.length;i++){var T=l[i],M=T.startTime;if(M>x)break;var H=T.transferSize,Q=T.initiatorType;H&&$d(Q)&&(T=T.responseEnd,g+=H*(T<x?1:(x-M)/(T-M)))}if(--i,t+=8*(c+g)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var mc=null,pc=null;function Hu(e){return e.nodeType===9?e:e.ownerDocument}function Wd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Pd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function gc(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 yc=null;function T1(){var e=window.event;return e&&e.type==="popstate"?e===yc?!1:(yc=e,!0):(yc=null,!1)}var em=typeof setTimeout=="function"?setTimeout:void 0,A1=typeof clearTimeout=="function"?clearTimeout:void 0,tm=typeof Promise=="function"?Promise:void 0,_1=typeof queueMicrotask=="function"?queueMicrotask:typeof tm<"u"?function(e){return tm.resolve(null).then(e).catch(z1)}:em;function z1(e){setTimeout(function(){throw e})}function el(e){return e==="head"}function nm(e,t){var l=t,i=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(o),bi(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")ha(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ha(l);for(var c=l.firstChild;c;){var g=c.nextSibling,x=c.nodeName;c[Di]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=g}}else l==="body"&&ha(e.ownerDocument.body);l=o}while(l);bi(t)}function lm(e,t){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function bc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":bc(l),kr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function C1(e,t,l,i){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Di])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function w1(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=$t(e.nextSibling),e===null))return null;return e}function im(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$t(e.nextSibling),e===null))return null;return e}function xc(e){return e.data==="$?"||e.data==="$~"}function vc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function D1(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var i=function(){t(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function $t(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 Sc=null;function am(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return $t(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function um(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function rm(e,t,l){switch(t=Hu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function ha(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);kr(e)}var Wt=new Map,om=new Set;function qu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mn=B.d;B.d={f:O1,r:M1,D:N1,C:R1,L:U1,m:j1,X:B1,S:L1,M:H1};function O1(){var e=Mn.f(),t=Ou();return e||t}function M1(e){var t=Ll(e);t!==null&&t.tag===5&&t.type==="form"?Ah(t):Mn.r(e)}var pi=typeof document>"u"?null:document;function cm(e,t,l){var i=pi;if(i&&typeof t=="string"&&t){var o=Xt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),om.has(o)||(om.add(o),e={rel:e,crossOrigin:l,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),dt(t,"link",e),rt(t),i.head.appendChild(t)))}}function N1(e){Mn.D(e),cm("dns-prefetch",e,null)}function R1(e,t){Mn.C(e,t),cm("preconnect",e,t)}function U1(e,t,l){Mn.L(e,t,l);var i=pi;if(i&&e&&t){var o='link[rel="preload"][as="'+Xt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Xt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Xt(l.imageSizes)+'"]')):o+='[href="'+Xt(e)+'"]';var c=o;switch(t){case"style":c=gi(e);break;case"script":c=yi(e)}Wt.has(c)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Wt.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(da(c))||t==="script"&&i.querySelector(ma(c))||(t=i.createElement("link"),dt(t,"link",e),rt(t),i.head.appendChild(t)))}}function j1(e,t){Mn.m(e,t);var l=pi;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Xt(i)+'"][href="'+Xt(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=yi(e)}if(!Wt.has(c)&&(e=y({rel:"modulepreload",href:e},t),Wt.set(c,e),l.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ma(c)))return}i=l.createElement("link"),dt(i,"link",e),rt(i),l.head.appendChild(i)}}}function L1(e,t,l){Mn.S(e,t,l);var i=pi;if(i&&e){var o=Bl(i).hoistableStyles,c=gi(e);t=t||"default";var g=o.get(c);if(!g){var x={loading:0,preload:null};if(g=i.querySelector(da(c)))x.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Wt.get(c))&&kc(e,l);var T=g=i.createElement("link");rt(T),dt(T,"link",e),T._p=new Promise(function(M,H){T.onload=M,T.onerror=H}),T.addEventListener("load",function(){x.loading|=1}),T.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Yu(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:x},o.set(c,g)}}}function B1(e,t){Mn.X(e,t);var l=pi;if(l&&e){var i=Bl(l).hoistableScripts,o=yi(e),c=i.get(o);c||(c=l.querySelector(ma(o)),c||(e=y({src:e,async:!0},t),(t=Wt.get(o))&&Ec(e,t),c=l.createElement("script"),rt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function H1(e,t){Mn.M(e,t);var l=pi;if(l&&e){var i=Bl(l).hoistableScripts,o=yi(e),c=i.get(o);c||(c=l.querySelector(ma(o)),c||(e=y({src:e,async:!0,type:"module"},t),(t=Wt.get(o))&&Ec(e,t),c=l.createElement("script"),rt(c),dt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function sm(e,t,l,i){var o=(o=oe.current)?qu(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=gi(l.href),l=Bl(o).hoistableStyles,i=l.get(t),i||(i={type:"style",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=gi(l.href);var c=Bl(o).hoistableStyles,g=c.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=o.querySelector(da(e)))&&!c._p&&(g.instance=c,g.state.loading=5),Wt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Wt.set(e,l),c||q1(o,e,l,g.state))),t&&i===null)throw Error(r(528,""));return g}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=yi(l),l=Bl(o).hoistableScripts,i=l.get(t),i||(i={type:"script",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function gi(e){return'href="'+Xt(e)+'"'}function da(e){return'link[rel="stylesheet"]['+e+"]"}function fm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function q1(e,t,l,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),dt(t,"link",l),rt(t),e.head.appendChild(t))}function yi(e){return'[src="'+Xt(e)+'"]'}function ma(e){return"script[async]"+e}function hm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Xt(l.href)+'"]');if(i)return t.instance=i,rt(i),i;var o=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),rt(i),dt(i,"style",o),Yu(i,l.precedence,e),t.instance=i;case"stylesheet":o=gi(l.href);var c=e.querySelector(da(o));if(c)return t.state.loading|=4,t.instance=c,rt(c),c;i=fm(l),(o=Wt.get(o))&&kc(i,o),c=(e.ownerDocument||e).createElement("link"),rt(c);var g=c;return g._p=new Promise(function(x,T){g.onload=x,g.onerror=T}),dt(c,"link",i),t.state.loading|=4,Yu(c,l.precedence,e),t.instance=c;case"script":return c=yi(l.src),(o=e.querySelector(ma(c)))?(t.instance=o,rt(o),o):(i=l,(o=Wt.get(c))&&(i=y({},l),Ec(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),rt(o),dt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Yu(i,l.precedence,e));return t.instance}function Yu(e,t,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,g=0;g<i.length;g++){var x=i[g];if(x.dataset.precedence===t)c=x;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vu=null;function dm(e,t,l){if(Vu===null){var i=new Map,o=Vu=new Map;o.set(l,i)}else o=Vu,i=o.get(l),i||(i=new Map,o.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),o=0;o<l.length;o++){var c=l[o];if(!(c[Di]||c[ct]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var x=i.get(g);x?x.push(c):i.set(g,[c])}}return i}function mm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Y1(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function pm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function V1(e,t,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=gi(i.href),c=t.querySelector(da(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Gu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,rt(c);return}c=t.ownerDocument||t,i=fm(i),(o=Wt.get(o))&&kc(i,o),c=c.createElement("link"),rt(c);var g=c;g._p=new Promise(function(x,T){g.onload=x,g.onerror=T}),dt(c,"link",i),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Gu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Tc=0;function G1(e,t){return e.stylesheets&&e.count===0&&Qu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&Qu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Tc===0&&(Tc=62500*E1());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Tc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Gu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xu=null;function Qu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xu=new Map,t.forEach(X1,e),Xu=null,Gu.call(e))}function X1(e,t){if(!(t.state.loading&4)){var l=Xu.get(e);if(l)var i=l.get(null);else{l=new Map,Xu.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var g=o[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(l.set(g.dataset.precedence,g),i=g)}i&&l.set(null,i)}o=t.instance,g=o.getAttribute("data-precedence"),c=l.get(g)||i,c===i&&l.set(null,o),l.set(g,o),this.count++,i=Gu.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var pa={$$typeof:Z,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Q1(e,t,l,i,o,c,g,x,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=br(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=br(0),this.hiddenUpdates=br(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function gm(e,t,l,i,o,c,g,x,T,M,H,Q){return e=new Q1(e,t,l,g,T,M,H,Q,x),t=1,c===!0&&(t|=24),c=Rt(3,null,null,t),e.current=c,c.stateNode=e,t=no(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:l,cache:t},uo(c),e}function ym(e){return e?(e=Jl,e):Jl}function bm(e,t,l,i,o,c){o=ym(o),i.context===null?i.context=o:i.pendingContext=o,i=Gn(t),i.payload={element:l},c=c===void 0?null:c,c!==null&&(i.callback=c),l=Xn(e,i,t),l!==null&&(wt(l,e,t),Ki(l,e,t))}function xm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ac(e,t){xm(e,t),(e=e.alternate)&&xm(e,t)}function vm(e){if(e.tag===13||e.tag===31){var t=ml(e,67108864);t!==null&&wt(t,e,67108864),Ac(e,67108864)}}function Sm(e){if(e.tag===13||e.tag===31){var t=Ht();t=xr(t);var l=ml(e,t);l!==null&&wt(l,e,t),Ac(e,t)}}var Zu=!0;function Z1(e,t,l,i){var o=C.T;C.T=null;var c=B.p;try{B.p=2,_c(e,t,l,i)}finally{B.p=c,C.T=o}}function K1(e,t,l,i){var o=C.T;C.T=null;var c=B.p;try{B.p=8,_c(e,t,l,i)}finally{B.p=c,C.T=o}}function _c(e,t,l,i){if(Zu){var o=zc(i);if(o===null)hc(e,t,i,Ku,l),Em(e,i);else if(F1(o,e,t,l,i))i.stopPropagation();else if(Em(e,i),t&4&&-1<J1.indexOf(e)){for(;o!==null;){var c=Ll(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=cl(c.pendingLanes);if(g!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;g;){var T=1<<31-Ye(g);x.entanglements[1]|=T,g&=~T}cn(c),(Ne&6)===0&&(wu=bt()+500,ca(0))}}break;case 31:case 13:x=ml(c,2),x!==null&&wt(x,c,2),Ou(),Ac(c,2)}if(c=zc(i),c===null&&hc(e,t,i,Ku,l),c===o)break;o=c}o!==null&&i.stopPropagation()}else hc(e,t,i,null,l)}}function zc(e){return e=Cr(e),Cc(e)}var Ku=null;function Cc(e){if(Ku=null,e=jl(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ku=e,null}function km(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(yr()){case V:return 2;case W:return 8;case me:case ke:return 32;case Re:return 268435456;default:return 32}default:return 32}}var wc=!1,tl=null,nl=null,ll=null,ga=new Map,ya=new Map,il=[],J1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Em(e,t){switch(e){case"focusin":case"focusout":tl=null;break;case"dragenter":case"dragleave":nl=null;break;case"mouseover":case"mouseout":ll=null;break;case"pointerover":case"pointerout":ga.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ya.delete(t.pointerId)}}function ba(e,t,l,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Ll(t),t!==null&&vm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function F1(e,t,l,i,o){switch(t){case"focusin":return tl=ba(tl,e,t,l,i,o),!0;case"dragenter":return nl=ba(nl,e,t,l,i,o),!0;case"mouseover":return ll=ba(ll,e,t,l,i,o),!0;case"pointerover":var c=o.pointerId;return ga.set(c,ba(ga.get(c)||null,e,t,l,i,o)),!0;case"gotpointercapture":return c=o.pointerId,ya.set(c,ba(ya.get(c)||null,e,t,l,i,o)),!0}return!1}function Tm(e){var t=jl(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,Ls(e.priority,function(){Sm(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Ls(e.priority,function(){Sm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ju(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=zc(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);zr=i,l.target.dispatchEvent(i),zr=null}else return t=Ll(l),t!==null&&vm(t),e.blockedOn=l,!1;t.shift()}return!0}function Am(e,t,l){Ju(e)&&l.delete(t)}function I1(){wc=!1,tl!==null&&Ju(tl)&&(tl=null),nl!==null&&Ju(nl)&&(nl=null),ll!==null&&Ju(ll)&&(ll=null),ga.forEach(Am),ya.forEach(Am)}function Fu(e,t){e.blockedOn===t&&(e.blockedOn=null,wc||(wc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,I1)))}var Iu=null;function _m(e){Iu!==e&&(Iu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Iu===e&&(Iu=null);for(var t=0;t<e.length;t+=3){var l=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Cc(i||l)===null)continue;break}var c=Ll(l);c!==null&&(e.splice(t,3),t-=3,zo(c,{pending:!0,data:o,method:l.method,action:i},i,o))}}))}function bi(e){function t(T){return Fu(T,e)}tl!==null&&Fu(tl,e),nl!==null&&Fu(nl,e),ll!==null&&Fu(ll,e),ga.forEach(t),ya.forEach(t);for(var l=0;l<il.length;l++){var i=il[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<il.length&&(l=il[0],l.blockedOn===null);)Tm(l),l.blockedOn===null&&il.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var o=l[i],c=l[i+1],g=o[Et]||null;if(typeof c=="function")g||_m(l);else if(g){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[Et]||null)x=g.formAction;else if(Cc(o)!==null)continue}else x=g.action;typeof x=="function"?l[i+1]=x:(l.splice(i,3),i-=3),_m(l)}}}function zm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Dc(e){this._internalRoot=e}$u.prototype.render=Dc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,i=Ht();bm(l,i,e,t,null,null)},$u.prototype.unmount=Dc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bm(e.current,2,null,e,null,null),Ou(),t[Ul]=null}};function $u(e){this._internalRoot=e}$u.prototype.unstable_scheduleHydration=function(e){if(e){var t=js();e={blockedOn:null,target:e,priority:t};for(var l=0;l<il.length&&t!==0&&t<il[l].priority;l++);il.splice(l,0,e),l===0&&Tm(e)}};var Cm=a.version;if(Cm!=="19.2.8")throw Error(r(527,Cm,"19.2.8"));B.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=d(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var $1={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wu.isDisabled&&Wu.supportsFiber)try{xt=Wu.inject($1),at=Wu}catch{}}return va.createRoot=function(e,t){if(!s(e))throw Error(r(299));var l=!1,i="",o=Uh,c=jh,g=Lh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=gm(e,1,!1,null,null,l,i,null,o,c,g,zm),e[Ul]=t.current,fc(e),new Dc(t)},va.hydrateRoot=function(e,t,l){if(!s(e))throw Error(r(299));var i=!1,o="",c=Uh,g=jh,x=Lh,T=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(x=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),t=gm(e,1,!0,t,l??null,i,o,T,c,g,x,zm),t.context=ym(null),l=t.current,i=Ht(),i=xr(i),o=Gn(i),o.callback=null,Xn(l,o,i),l=i,t.current.lanes=l,wi(t,l),cn(t),e[Ul]=t.current,fc(e),new $u(t)},va.version="19.2.8",va}var Bm;function r0(){if(Bm)return Nc.exports;Bm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Nc.exports=u0(),Nc.exports}var o0=r0();const c0=cr(o0);function Fe(n){return typeof n=="object"&&!!n&&!Array.isArray(n)}const pt=n=>typeof n=="string",xi=n=>typeof n=="string"&&n.length>0,Pu=n=>typeof n=="boolean",Rp=n=>a=>a===void 0||n(a),Lc=n=>Array.isArray(n)&&n.every(Fe),Hm=n=>n===null||Fe(n),Bc=n=>a=>typeof a=="string"&&n.includes(a),s0=["cancel","close","send"],ul={driverId:Rp(pt)},f0={text_delta:{delta:pt,...ul},user_message:{content:pt,...ul},tool_start:{state:Fe,...ul},tool_end:{state:Fe,...ul},thinking:{isThinking:Pu,...ul},complete:{result:Fe,...ul},interrupted:{result:Fe,...ul},error:{message:pt,...ul},command_result:{name:pt,message:pt,success:Pu},messages:{messages:Lc},context:{state:Fe},usage_report:{report:Fe},personal_usage_report:{requestId:xi,report:Fe},personal_usage_report_error:{requestId:xi,code:Bc(["not_available","report_failed"]),message:pt},stored_session_usage_report:{requestId:xi,sessionId:xi,report:Fe},stored_session_usage_report_error:{requestId:xi,sessionId:xi,code:Bc(["not_available","report_failed"]),message:pt},executing:{executing:Pu},pending:{pending:n=>n===null||pt(n)},execution_workspace_event:{snapshot:Fe},background_task_event:{event:Fe},background_job_group_event:{event:Fe},plan_event:{event:Fe},context_file_refreshed:{event:Fe},branch_event:{event:Fe},background_tasks:{tasks:Lc},background_task:{taskId:pt,task:Hm},background_job_groups:{groups:Lc},background_job_group:{groupId:pt,group:Hm},background_task_log:{taskId:pt,page:Fe},permission_request:{event:Fe},ask_request:{event:Fe},prompt_resolved:{event:Fe},ui_intent:{event:Fe},session_renamed:{event:Fe},history_cleared:{},background_task_control_result:{action:Bc(s0),taskId:pt,success:Pu,message:Rp(pt)},protocol_error:{message:pt},resume_gap:{}};function h0(n,a,u){if(!Fe(n))return{ok:!1,reason:"message must be a JSON object"};let r=n.type;if(!pt(r))return{ok:!1,reason:"message type must be a string"};let s=Object.prototype.hasOwnProperty.call(a,r)?a[r]:void 0;if(s===void 0)return{ok:!1,reason:`Unknown message type: ${r}`};for(let[h,f]of Object.entries(s))if(!f(n[h]))return{ok:!1,reason:u(h)};return{ok:!0,message:n}}function d0(n){return h0(n,f0,a=>`${a} has an invalid shape`)}function m0(n,a){if(n.length>4194304)return{ok:!1,reason:"Frame too large"};let u;try{u=JSON.parse(n)}catch{return{ok:!1,reason:"Invalid JSON"}}return a(u)}function p0(n,a){const u={};return(n[n.length-1]===""?[...n,""]:n).join((u.padRight?" ":"")+","+(u.padLeft===!1?"":" ")).trim()}const g0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,y0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,b0={};function qm(n,a){return(b0.jsx?y0:g0).test(n)}const x0=/[ \t\n\f\r]/g;function v0(n){return typeof n=="object"?n.type==="text"?Ym(n.value):!1:Ym(n)}function Ym(n){return n.replace(x0,"")===""}class Oa{constructor(a,u,r){this.normal=u,this.property=a,r&&(this.space=r)}}Oa.prototype.normal={};Oa.prototype.property={};Oa.prototype.space=void 0;function Up(n,a){const u={},r={};for(const s of n)Object.assign(u,s.property),Object.assign(r,s.normal);return new Oa(u,r,a)}function ns(n){return n.toLowerCase()}class Ot{constructor(a,u){this.attribute=u,this.property=a}}Ot.prototype.attribute="";Ot.prototype.booleanish=!1;Ot.prototype.boolean=!1;Ot.prototype.commaOrSpaceSeparated=!1;Ot.prototype.commaSeparated=!1;Ot.prototype.defined=!1;Ot.prototype.mustUseProperty=!1;Ot.prototype.number=!1;Ot.prototype.overloadedBoolean=!1;Ot.prototype.property="";Ot.prototype.spaceSeparated=!1;Ot.prototype.space=void 0;let S0=0;const ge=Dl(),it=Dl(),ls=Dl(),J=Dl(),Ge=Dl(),Cl=Dl(),qt=Dl();function Dl(){return 2**++S0}const is=Object.freeze(Object.defineProperty({__proto__:null,boolean:ge,booleanish:it,commaOrSpaceSeparated:qt,commaSeparated:Cl,number:J,overloadedBoolean:ls,spaceSeparated:Ge},Symbol.toStringTag,{value:"Module"})),Hc=Object.keys(is);class ms extends Ot{constructor(a,u,r,s){let h=-1;if(super(a,u),Vm(this,"space",s),typeof r=="number")for(;++h<Hc.length;){const f=Hc[h];Vm(this,Hc[h],(r&is[f])===is[f])}}}ms.prototype.defined=!0;function Vm(n,a,u){u&&(n[a]=u)}function Ti(n){const a={},u={};for(const[r,s]of Object.entries(n.properties)){const h=new ms(r,n.transform(n.attributes||{},r),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(h.mustUseProperty=!0),a[r]=h,u[ns(r)]=r,u[ns(h.attribute)]=r}return new Oa(a,u,n.space)}const jp=Ti({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Ge,ariaCurrent:null,ariaDescribedBy:Ge,ariaDetails:null,ariaDisabled:it,ariaDropEffect:Ge,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:Ge,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ge,ariaLevel:J,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:Ge,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:Ge,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:it,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Lp(n,a){return a in n?n[a]:a}function Bp(n,a){return Lp(n,a.toLowerCase())}const k0=Ti({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cl,acceptCharset:Ge,accessKey:Ge,action:null,allow:null,allowFullScreen:ge,allowPaymentRequest:ge,allowUserMedia:ge,alpha:ge,alt:null,as:null,async:ge,autoCapitalize:null,autoComplete:Ge,autoFocus:ge,autoPlay:ge,blocking:Ge,capture:null,charSet:null,checked:ge,cite:null,className:Ge,closedBy:null,colorSpace:null,cols:J,colSpan:J,command:null,commandFor:null,content:null,contentEditable:it,controls:ge,controlsList:Ge,coords:J|Cl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ge,defer:ge,dir:null,dirName:null,disabled:ge,download:ls,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ge,formTarget:null,headers:Ge,height:J,hidden:ls,high:J,href:null,hrefLang:null,htmlFor:Ge,httpEquiv:Ge,id:null,imageSizes:null,imageSrcSet:null,inert:ge,inputMode:null,integrity:null,is:null,isMap:ge,itemId:null,itemProp:Ge,itemRef:Ge,itemScope:ge,itemType:Ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ge,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:ge,muted:ge,name:null,nonce:null,noModule:ge,noValidate:ge,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:ge,optimum:J,pattern:null,ping:Ge,placeholder:null,playsInline:ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ge,referrerPolicy:null,rel:Ge,required:ge,reversed:ge,rows:J,rowSpan:J,sandbox:Ge,scope:null,scoped:ge,seamless:ge,selected:ge,shadowRootClonable:ge,shadowRootCustomElementRegistry:ge,shadowRootDelegatesFocus:ge,shadowRootMode:null,shadowRootSerializable:ge,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:ge,useMap:null,value:it,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ge,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ge,declare:ge,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:ge,noHref:ge,noShade:ge,noWrap:ge,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ge,disablePictureInPicture:ge,disableRemotePlayback:ge,exportParts:Cl,part:Ge,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:Bp}),E0=Ti({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",maskType:"mask-type",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:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className: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:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Cl,g2:Cl,glyphName:Cl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:qt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:J,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:qt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qt,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Lp}),Hp=Ti({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),qp=Ti({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Bp}),Yp=Ti({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),T0={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"},A0=/[A-Z]/g,Gm=/-[a-z]/g,_0=/^data[-\w.:]+$/i;function z0(n,a){const u=ns(a);let r=a,s=Ot;if(u in n.normal)return n.property[n.normal[u]];if(u.length>4&&u.slice(0,4)==="data"&&_0.test(a)){if(a.charAt(4)==="-"){const h=a.slice(5).replace(Gm,w0);r="data"+h.charAt(0).toUpperCase()+h.slice(1)}else{const h=a.slice(4);if(!Gm.test(h)){let f=h.replace(A0,C0);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=ms}return new s(r,a)}function C0(n){return"-"+n.toLowerCase()}function w0(n){return n.charAt(1).toUpperCase()}const D0=Up([jp,k0,Hp,qp,Yp],"html"),ps=Up([jp,E0,Hp,qp,Yp],"svg");function O0(n){return n.join(" ").trim()}var vi={},qc,Xm;function M0(){if(Xm)return qc;Xm=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,u=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,h=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,m=/^\s+|\s+$/g,p=`
|
|
50
|
+
`,d="/",b="*",y="",S="comment",v="declaration";function z(q,N){if(typeof q!="string")throw new TypeError("First argument must be a string");if(!q)return[];N=N||{};var K=1,Z=1;function ie(le){var I=le.match(a);I&&(K+=I.length);var C=le.lastIndexOf(p);Z=~C?le.length-C:Z+le.length}function ue(){var le={line:K,column:Z};return function(I){return I.position=new D(le),pe(),I}}function D(le){this.start=le,this.end={line:K,column:Z},this.source=N.source}D.prototype.content=q;function F(le){var I=new Error(N.source+":"+K+":"+Z+": "+le);if(I.reason=le,I.filename=N.source,I.line=K,I.column=Z,I.source=q,!N.silent)throw I}function de(le){var I=le.exec(q);if(I){var C=I[0];return ie(C),q=q.slice(C.length),I}}function pe(){de(u)}function U(le){var I;for(le=le||[];I=te();)I!==!1&&le.push(I);return le}function te(){var le=ue();if(!(d!=q.charAt(0)||b!=q.charAt(1))){for(var I=2;y!=q.charAt(I)&&(b!=q.charAt(I)||d!=q.charAt(I+1));)++I;if(I+=2,y===q.charAt(I-1))return F("End of comment missing");var C=q.slice(2,I-2);return Z+=2,ie(C),q=q.slice(I),Z+=2,le({type:S,comment:C})}}function ee(){var le=ue(),I=de(r);if(I){if(te(),!de(s))return F("property missing ':'");var C=de(h),B=le({type:v,property:L(I[0].replace(n,y)),value:C?L(C[0].replace(n,y)):y});return de(f),B}}function Se(){var le=[];U(le);for(var I;I=ee();)I!==!1&&(le.push(I),U(le));return le}return pe(),Se()}function L(q){return q?q.replace(m,y):y}return qc=z,qc}var Qm;function N0(){if(Qm)return vi;Qm=1;var n=vi&&vi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vi,"__esModule",{value:!0}),vi.default=u;const a=n(M0());function u(r,s){let h=null;if(!r||typeof r!="string")return h;const f=(0,a.default)(r),m=typeof s=="function";return f.forEach(p=>{if(p.type!=="declaration")return;const{property:d,value:b}=p;m?s(d,b,p):b&&(h=h||{},h[d]=b)}),h}return vi}var Sa={},Zm;function R0(){if(Zm)return Sa;Zm=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,u=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,h=function(d){return!d||u.test(d)||n.test(d)},f=function(d,b){return b.toUpperCase()},m=function(d,b){return"".concat(b,"-")},p=function(d,b){return b===void 0&&(b={}),h(d)?d:(d=d.toLowerCase(),b.reactCompat?d=d.replace(s,m):d=d.replace(r,m),d.replace(a,f))};return Sa.camelCase=p,Sa}var ka,Km;function U0(){if(Km)return ka;Km=1;var n=ka&&ka.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(N0()),u=R0();function r(s,h){var f={};return!s||typeof s!="string"||(0,a.default)(s,function(m,p){m&&p&&(f[(0,u.camelCase)(m,h)]=p)}),f}return r.default=r,ka=r,ka}var j0=U0();const L0=cr(j0),Vp=Gp("end"),gs=Gp("start");function Gp(n){return a;function a(u){const r=u&&u.position&&u.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function B0(n){const a=gs(n),u=Vp(n);if(a&&u)return{start:a,end:u}}function _a(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Jm(n.position):"start"in n||"end"in n?Jm(n):"line"in n||"column"in n?as(n):""}function as(n){return Fm(n&&n.line)+":"+Fm(n&&n.column)}function Jm(n){return as(n&&n.start)+"-"+as(n&&n.end)}function Fm(n){return n&&typeof n=="number"?n:1}class yt extends Error{constructor(a,u,r){super(),typeof u=="string"&&(r=u,u=void 0);let s="",h={},f=!1;if(u&&("line"in u&&"column"in u?h={place:u}:"start"in u&&"end"in u?h={place:u}:"type"in u?h={ancestors:[u],place:u.position}:h={...u}),typeof a=="string"?s=a:!h.cause&&a&&(f=!0,s=a.message,h.cause=a),!h.ruleId&&!h.source&&typeof r=="string"){const p=r.indexOf(":");p===-1?h.ruleId=r:(h.source=r.slice(0,p),h.ruleId=r.slice(p+1))}if(!h.place&&h.ancestors&&h.ancestors){const p=h.ancestors[h.ancestors.length-1];p&&(h.place=p.position)}const m=h.place&&"start"in h.place?h.place.start:h.place;this.ancestors=h.ancestors||void 0,this.cause=h.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=m?m.line:void 0,this.name=_a(h.place)||"1:1",this.place=h.place||void 0,this.reason=this.message,this.ruleId=h.ruleId||void 0,this.source=h.source||void 0,this.stack=f&&h.cause&&typeof h.cause.stack=="string"?h.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}yt.prototype.file="";yt.prototype.name="";yt.prototype.reason="";yt.prototype.message="";yt.prototype.stack="";yt.prototype.column=void 0;yt.prototype.line=void 0;yt.prototype.ancestors=void 0;yt.prototype.cause=void 0;yt.prototype.fatal=void 0;yt.prototype.place=void 0;yt.prototype.ruleId=void 0;yt.prototype.source=void 0;const ys={}.hasOwnProperty,H0=new Map,q0=/[A-Z]/g,Y0=new Set(["table","tbody","thead","tfoot","tr"]),V0=new Set(["td","th"]),Xp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function G0(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const u=a.filePath||void 0;let r;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=$0(u,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=I0(u,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:r,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:u,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?ps:D0,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},h=Qp(s,n,void 0);return h&&typeof h!="string"?h:s.create(n,s.Fragment,{children:h||void 0},void 0)}function Qp(n,a,u){if(a.type==="element")return X0(n,a,u);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Q0(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return K0(n,a,u);if(a.type==="mdxjsEsm")return Z0(n,a);if(a.type==="root")return J0(n,a,u);if(a.type==="text")return F0(n,a)}function X0(n,a,u){const r=n.schema;let s=r;a.tagName.toLowerCase()==="svg"&&r.space==="html"&&(s=ps,n.schema=s),n.ancestors.push(a);const h=Kp(n,a.tagName,!1),f=W0(n,a);let m=xs(n,a);return Y0.has(a.tagName)&&(m=m.filter(function(p){return typeof p=="string"?!v0(p):!0})),Zp(n,f,h,a),bs(f,m),n.ancestors.pop(),n.schema=r,n.create(a,h,f,u)}function Q0(n,a){if(a.data&&a.data.estree&&n.evaluater){const r=a.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}wa(n,a.position)}function Z0(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);wa(n,a.position)}function K0(n,a,u){const r=n.schema;let s=r;a.name==="svg"&&r.space==="html"&&(s=ps,n.schema=s),n.ancestors.push(a);const h=a.name===null?n.Fragment:Kp(n,a.name,!0),f=P0(n,a),m=xs(n,a);return Zp(n,f,h,a),bs(f,m),n.ancestors.pop(),n.schema=r,n.create(a,h,f,u)}function J0(n,a,u){const r={};return bs(r,xs(n,a)),n.create(a,n.Fragment,r,u)}function F0(n,a){return a.value}function Zp(n,a,u,r){typeof u!="string"&&u!==n.Fragment&&n.passNode&&(a.node=r)}function bs(n,a){if(a.length>0){const u=a.length>1?a:a[0];u&&(n.children=u)}}function I0(n,a,u){return r;function r(s,h,f,m){const d=Array.isArray(f.children)?u:a;return m?d(h,f,m):d(h,f)}}function $0(n,a){return u;function u(r,s,h,f){const m=Array.isArray(h.children),p=gs(r);return a(s,h,f,m,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function W0(n,a){const u={};let r,s;for(s in a.properties)if(s!=="children"&&ys.call(a.properties,s)){const h=eb(n,s,a.properties[s]);if(h){const[f,m]=h;n.tableCellAlignToStyle&&f==="align"&&typeof m=="string"&&V0.has(a.tagName)?r=m:u[f]=m}}if(r){const h=u.style||(u.style={});h[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return u}function P0(n,a){const u={};for(const r of a.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const h=r.data.estree.body[0];h.type;const f=h.expression;f.type;const m=f.properties[0];m.type,Object.assign(u,n.evaluater.evaluateExpression(m.argument))}else wa(n,a.position);else{const s=r.name;let h;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const m=r.value.data.estree.body[0];m.type,h=n.evaluater.evaluateExpression(m.expression)}else wa(n,a.position);else h=r.value===null?!0:r.value;u[s]=h}return u}function xs(n,a){const u=[];let r=-1;const s=n.passKeys?new Map:H0;for(;++r<a.children.length;){const h=a.children[r];let f;if(n.passKeys){const p=h.type==="element"?h.tagName:h.type==="mdxJsxFlowElement"||h.type==="mdxJsxTextElement"?h.name:void 0;if(p){const d=s.get(p)||0;f=p+"-"+d,s.set(p,d+1)}}const m=Qp(n,h,f);m!==void 0&&u.push(m)}return u}function eb(n,a,u){const r=z0(n.schema,a);if(!(u==null||typeof u=="number"&&Number.isNaN(u))){if(Array.isArray(u)&&(u=r.commaSeparated?p0(u):O0(u)),r.property==="style"){let s=typeof u=="object"?u:tb(n,String(u));return n.stylePropertyNameCase==="css"&&(s=nb(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&r.space?T0[r.property]||r.property:r.attribute,u]}}function tb(n,a){try{return L0(a,{reactCompat:!0})}catch(u){if(n.ignoreInvalidStyle)return{};const r=u,s=new yt("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=Xp+"#cannot-parse-style-attribute",s}}function Kp(n,a,u){let r;if(!u)r={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let h=-1,f;for(;++h<s.length;){const m=qm(s[h])?{type:"Identifier",name:s[h]}:{type:"Literal",value:s[h]};f=f?{type:"MemberExpression",object:f,property:m,computed:!!(h&&m.type==="Literal"),optional:!1}:m}r=f}else r=qm(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(r.type==="Literal"){const s=r.value;return ys.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(r);wa(n)}function wa(n,a){const u=new yt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw u.file=n.filePath||void 0,u.url=Xp+"#cannot-handle-mdx-estrees-without-createevaluater",u}function nb(n){const a={};let u;for(u in n)ys.call(n,u)&&(a[lb(u)]=n[u]);return a}function lb(n){let a=n.replace(q0,ib);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function ib(n){return"-"+n.toLowerCase()}const Yc={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"]},ab={};function vs(n,a){const u=ab,r=typeof u.includeImageAlt=="boolean"?u.includeImageAlt:!0,s=typeof u.includeHtml=="boolean"?u.includeHtml:!0;return Jp(n,r,s)}function Jp(n,a,u){if(ub(n)){if("value"in n)return n.type==="html"&&!u?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Im(n.children,a,u)}return Array.isArray(n)?Im(n,a,u):""}function Im(n,a,u){const r=[];let s=-1;for(;++s<n.length;)r[s]=Jp(n[s],a,u);return r.join("")}function ub(n){return!!(n&&typeof n=="object")}const $m=document.createElement("i");function Ss(n){const a="&"+n+";";$m.innerHTML=a;const u=$m.textContent;return u.charCodeAt(u.length-1)===59&&n!=="semi"||u===a?!1:u}function Yt(n,a,u,r){const s=n.length;let h=0,f;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,u=u>0?u:0,r.length<1e4)f=Array.from(r),f.unshift(a,u),n.splice(...f);else for(u&&n.splice(a,u);h<r.length;)f=r.slice(h,h+1e4),f.unshift(a,0),n.splice(...f),h+=1e4,a+=1e4}function Pt(n,a){return n.length>0?(Yt(n,n.length,0,a),n):a}const Wm={}.hasOwnProperty;function Fp(n){const a={};let u=-1;for(;++u<n.length;)rb(a,n[u]);return a}function rb(n,a){let u;for(u in a){const s=(Wm.call(n,u)?n[u]:void 0)||(n[u]={}),h=a[u];let f;if(h)for(f in h){Wm.call(s,f)||(s[f]=[]);const m=h[f];ob(s[f],Array.isArray(m)?m:m?[m]:[])}}}function ob(n,a){let u=-1;const r=[];for(;++u<a.length;)(a[u].add==="after"?n:r).push(a[u]);Yt(n,0,0,r)}function Ip(n,a){const u=Number.parseInt(n,a);return u<9||u===11||u>13&&u<32||u>126&&u<160||u>55295&&u<57344||u>64975&&u<65008||(u&65535)===65535||(u&65535)===65534||u>1114111?"�":String.fromCodePoint(u)}function an(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const St=ol(/[A-Za-z]/),gt=ol(/[\dA-Za-z]/),cb=ol(/[#-'*+\--9=?A-Z^-~]/);function ar(n){return n!==null&&(n<32||n===127)}const us=ol(/\d/),sb=ol(/[\dA-Fa-f]/),fb=ol(/[!-/:-@[-`{-~]/);function se(n){return n!==null&&n<-2}function Xe(n){return n!==null&&(n<0||n===32)}function Ae(n){return n===-2||n===-1||n===32}const sr=ol(/\p{P}|\p{S}/u),wl=ol(/\s/);function ol(n){return a;function a(u){return u!==null&&u>-1&&n.test(String.fromCharCode(u))}}function Ai(n){const a=[];let u=-1,r=0,s=0;for(;++u<n.length;){const h=n.charCodeAt(u);let f="";if(h===37&>(n.charCodeAt(u+1))&>(n.charCodeAt(u+2)))s=2;else if(h<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(h))||(f=String.fromCharCode(h));else if(h>55295&&h<57344){const m=n.charCodeAt(u+1);h<56320&&m>56319&&m<57344?(f=String.fromCharCode(h,m),s=1):f="�"}else f=String.fromCharCode(h);f&&(a.push(n.slice(r,u),encodeURIComponent(f)),r=u+s+1,f=""),s&&(u+=s,s=0)}return a.join("")+n.slice(r)}function De(n,a,u,r){const s=r?r-1:Number.POSITIVE_INFINITY;let h=0;return f;function f(p){return Ae(p)?(n.enter(u),m(p)):a(p)}function m(p){return Ae(p)&&h++<s?(n.consume(p),m):(n.exit(u),a(p))}}const hb={tokenize:db};function db(n){const a=n.attempt(this.parser.constructs.contentInitial,r,s);let u;return a;function r(m){if(m===null){n.consume(m);return}return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),De(n,a,"linePrefix")}function s(m){return n.enter("paragraph"),h(m)}function h(m){const p=n.enter("chunkText",{contentType:"text",previous:u});return u&&(u.next=p),u=p,f(m)}function f(m){if(m===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(m);return}return se(m)?(n.consume(m),n.exit("chunkText"),h):(n.consume(m),f)}}const mb={tokenize:pb},Pm={tokenize:gb};function pb(n){const a=this,u=[];let r=0,s,h,f;return m;function m(Z){if(r<u.length){const ie=u[r];return a.containerState=ie[1],n.attempt(ie[0].continuation,p,d)(Z)}return d(Z)}function p(Z){if(r++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&K();const ie=a.events.length;let ue=ie,D;for(;ue--;)if(a.events[ue][0]==="exit"&&a.events[ue][1].type==="chunkFlow"){D=a.events[ue][1].end;break}N(r);let F=ie;for(;F<a.events.length;)a.events[F][1].end={...D},F++;return Yt(a.events,ue+1,0,a.events.slice(ie)),a.events.length=F,d(Z)}return m(Z)}function d(Z){if(r===u.length){if(!s)return S(Z);if(s.currentConstruct&&s.currentConstruct.concrete)return z(Z);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(Pm,b,y)(Z)}function b(Z){return s&&K(),N(r),S(Z)}function y(Z){return a.parser.lazy[a.now().line]=r!==u.length,f=a.now().offset,z(Z)}function S(Z){return a.containerState={},n.attempt(Pm,v,z)(Z)}function v(Z){return r++,u.push([a.currentConstruct,a.containerState]),S(Z)}function z(Z){if(Z===null){s&&K(),N(0),n.consume(Z);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:h}),L(Z)}function L(Z){if(Z===null){q(n.exit("chunkFlow"),!0),N(0),n.consume(Z);return}return se(Z)?(n.consume(Z),q(n.exit("chunkFlow")),r=0,a.interrupt=void 0,m):(n.consume(Z),L)}function q(Z,ie){const ue=a.sliceStream(Z);if(ie&&ue.push(null),Z.previous=h,h&&(h.next=Z),h=Z,s.defineSkip(Z.start),s.write(ue),a.parser.lazy[Z.start.line]){let D=s.events.length;for(;D--;)if(s.events[D][1].start.offset<f&&(!s.events[D][1].end||s.events[D][1].end.offset>f))return;const F=a.events.length;let de=F,pe,U;for(;de--;)if(a.events[de][0]==="exit"&&a.events[de][1].type==="chunkFlow"){if(pe){U=a.events[de][1].end;break}pe=!0}for(N(r),D=F;D<a.events.length;)a.events[D][1].end={...U},D++;Yt(a.events,de+1,0,a.events.slice(F)),a.events.length=D}}function N(Z){let ie=u.length;for(;ie-- >Z;){const ue=u[ie];a.containerState=ue[1],ue[0].exit.call(a,n)}u.length=Z}function K(){s.write([null]),h=void 0,s=void 0,a.containerState._closeFlow=void 0}}function gb(n,a,u){return De(n,n.attempt(this.parser.constructs.document,a,u),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ei(n){if(n===null||Xe(n)||wl(n))return 1;if(sr(n))return 2}function fr(n,a,u){const r=[];let s=-1;for(;++s<n.length;){const h=n[s].resolveAll;h&&!r.includes(h)&&(a=h(a,u),r.push(h))}return a}const rs={name:"attention",resolveAll:yb,tokenize:bb};function yb(n,a){let u=-1,r,s,h,f,m,p,d,b;for(;++u<n.length;)if(n[u][0]==="enter"&&n[u][1].type==="attentionSequence"&&n[u][1]._close){for(r=u;r--;)if(n[r][0]==="exit"&&n[r][1].type==="attentionSequence"&&n[r][1]._open&&a.sliceSerialize(n[r][1]).charCodeAt(0)===a.sliceSerialize(n[u][1]).charCodeAt(0)){if((n[r][1]._close||n[u][1]._open)&&(n[u][1].end.offset-n[u][1].start.offset)%3&&!((n[r][1].end.offset-n[r][1].start.offset+n[u][1].end.offset-n[u][1].start.offset)%3))continue;p=n[r][1].end.offset-n[r][1].start.offset>1&&n[u][1].end.offset-n[u][1].start.offset>1?2:1;const y={...n[r][1].end},S={...n[u][1].start};ep(y,-p),ep(S,p),f={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...n[r][1].end}},m={type:p>1?"strongSequence":"emphasisSequence",start:{...n[u][1].start},end:S},h={type:p>1?"strongText":"emphasisText",start:{...n[r][1].end},end:{...n[u][1].start}},s={type:p>1?"strong":"emphasis",start:{...f.start},end:{...m.end}},n[r][1].end={...f.start},n[u][1].start={...m.end},d=[],n[r][1].end.offset-n[r][1].start.offset&&(d=Pt(d,[["enter",n[r][1],a],["exit",n[r][1],a]])),d=Pt(d,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",h,a]]),d=Pt(d,fr(a.parser.constructs.insideSpan.null,n.slice(r+1,u),a)),d=Pt(d,[["exit",h,a],["enter",m,a],["exit",m,a],["exit",s,a]]),n[u][1].end.offset-n[u][1].start.offset?(b=2,d=Pt(d,[["enter",n[u][1],a],["exit",n[u][1],a]])):b=0,Yt(n,r-1,u-r+3,d),u=r+d.length-b-2;break}}for(u=-1;++u<n.length;)n[u][1].type==="attentionSequence"&&(n[u][1].type="data");return n}function bb(n,a){const u=this.parser.constructs.attentionMarkers.null,r=this.previous,s=Ei(r);let h;return f;function f(p){return h=p,n.enter("attentionSequence"),m(p)}function m(p){if(p===h)return n.consume(p),m;const d=n.exit("attentionSequence"),b=Ei(p),y=!b||b===2&&s||u.includes(p),S=!s||s===2&&b||u.includes(r);return d._open=!!(h===42?y:y&&(s||!S)),d._close=!!(h===42?S:S&&(b||!y)),a(p)}}function ep(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const xb={name:"autolink",tokenize:vb};function vb(n,a,u){let r=0;return s;function s(v){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),h}function h(v){return St(v)?(n.consume(v),f):v===64?u(v):d(v)}function f(v){return v===43||v===45||v===46||gt(v)?(r=1,m(v)):d(v)}function m(v){return v===58?(n.consume(v),r=0,p):(v===43||v===45||v===46||gt(v))&&r++<32?(n.consume(v),m):(r=0,d(v))}function p(v){return v===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):v===null||v===32||v===60||ar(v)?u(v):(n.consume(v),p)}function d(v){return v===64?(n.consume(v),b):cb(v)?(n.consume(v),d):u(v)}function b(v){return gt(v)?y(v):u(v)}function y(v){return v===46?(n.consume(v),r=0,b):v===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):S(v)}function S(v){if((v===45||gt(v))&&r++<63){const z=v===45?S:y;return n.consume(v),z}return u(v)}}const Ma={partial:!0,tokenize:Sb};function Sb(n,a,u){return r;function r(h){return Ae(h)?De(n,s,"linePrefix")(h):s(h)}function s(h){return h===null||se(h)?a(h):u(h)}}const $p={continuation:{tokenize:Eb},exit:Tb,name:"blockQuote",tokenize:kb};function kb(n,a,u){const r=this;return s;function s(f){if(f===62){const m=r.containerState;return m.open||(n.enter("blockQuote",{_container:!0}),m.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),h}return u(f)}function h(f){return Ae(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function Eb(n,a,u){const r=this;return s;function s(f){return Ae(f)?De(n,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):h(f)}function h(f){return n.attempt($p,a,u)(f)}}function Tb(n){n.exit("blockQuote")}const Wp={name:"characterEscape",tokenize:Ab};function Ab(n,a,u){return r;function r(h){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(h),n.exit("escapeMarker"),s}function s(h){return fb(h)?(n.enter("characterEscapeValue"),n.consume(h),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):u(h)}}const Pp={name:"characterReference",tokenize:_b};function _b(n,a,u){const r=this;let s=0,h,f;return m;function m(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),p}function p(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),d):(n.enter("characterReferenceValue"),h=31,f=gt,b(y))}function d(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),h=6,f=sb,b):(n.enter("characterReferenceValue"),h=7,f=us,b(y))}function b(y){if(y===59&&s){const S=n.exit("characterReferenceValue");return f===gt&&!Ss(r.sliceSerialize(S))?u(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return f(y)&&s++<h?(n.consume(y),b):u(y)}}const tp={partial:!0,tokenize:Cb},np={concrete:!0,name:"codeFenced",tokenize:zb};function zb(n,a,u){const r=this,s={partial:!0,tokenize:ue};let h=0,f=0,m;return p;function p(D){return d(D)}function d(D){const F=r.events[r.events.length-1];return h=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,m=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(D)}function b(D){return D===m?(f++,n.consume(D),b):f<3?u(D):(n.exit("codeFencedFenceSequence"),Ae(D)?De(n,y,"whitespace")(D):y(D))}function y(D){return D===null||se(D)?(n.exit("codeFencedFence"),r.interrupt?a(D):n.check(tp,L,ie)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(D))}function S(D){return D===null||se(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(D)):Ae(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),De(n,v,"whitespace")(D)):D===96&&D===m?u(D):(n.consume(D),S)}function v(D){return D===null||se(D)?y(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),z(D))}function z(D){return D===null||se(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(D)):D===96&&D===m?u(D):(n.consume(D),z)}function L(D){return n.attempt(s,ie,q)(D)}function q(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),N}function N(D){return h>0&&Ae(D)?De(n,K,"linePrefix",h+1)(D):K(D)}function K(D){return D===null||se(D)?n.check(tp,L,ie)(D):(n.enter("codeFlowValue"),Z(D))}function Z(D){return D===null||se(D)?(n.exit("codeFlowValue"),K(D)):(n.consume(D),Z)}function ie(D){return n.exit("codeFenced"),a(D)}function ue(D,F,de){let pe=0;return U;function U(I){return D.enter("lineEnding"),D.consume(I),D.exit("lineEnding"),te}function te(I){return D.enter("codeFencedFence"),Ae(I)?De(D,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):ee(I)}function ee(I){return I===m?(D.enter("codeFencedFenceSequence"),Se(I)):de(I)}function Se(I){return I===m?(pe++,D.consume(I),Se):pe>=f?(D.exit("codeFencedFenceSequence"),Ae(I)?De(D,le,"whitespace")(I):le(I)):de(I)}function le(I){return I===null||se(I)?(D.exit("codeFencedFence"),F(I)):de(I)}}}function Cb(n,a,u){const r=this;return s;function s(f){return f===null?u(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),h)}function h(f){return r.parser.lazy[r.now().line]?u(f):a(f)}}const Vc={name:"codeIndented",tokenize:Db},wb={partial:!0,tokenize:Ob};function Db(n,a,u){const r=this;return s;function s(d){return n.enter("codeIndented"),De(n,h,"linePrefix",5)(d)}function h(d){const b=r.events[r.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?f(d):u(d)}function f(d){return d===null?p(d):se(d)?n.attempt(wb,f,p)(d):(n.enter("codeFlowValue"),m(d))}function m(d){return d===null||se(d)?(n.exit("codeFlowValue"),f(d)):(n.consume(d),m)}function p(d){return n.exit("codeIndented"),a(d)}}function Ob(n,a,u){const r=this;return s;function s(f){return r.parser.lazy[r.now().line]?u(f):se(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):De(n,h,"linePrefix",5)(f)}function h(f){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(f):se(f)?s(f):u(f)}}const Mb={name:"codeText",previous:Rb,resolve:Nb,tokenize:Ub};function Nb(n){let a=n.length-4,u=3,r,s;if((n[u][1].type==="lineEnding"||n[u][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(r=u;++r<a;)if(n[r][1].type==="codeTextData"){n[u][1].type="codeTextPadding",n[a][1].type="codeTextPadding",u+=2,a-=2;break}}for(r=u-1,a++;++r<=a;)s===void 0?r!==a&&n[r][1].type!=="lineEnding"&&(s=r):(r===a||n[r][1].type==="lineEnding")&&(n[s][1].type="codeTextData",r!==s+2&&(n[s][1].end=n[r-1][1].end,n.splice(s+2,r-s-2),a-=r-s-2,r=s+2),s=void 0);return n}function Rb(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ub(n,a,u){let r=0,s,h;return f;function f(y){return n.enter("codeText"),n.enter("codeTextSequence"),m(y)}function m(y){return y===96?(n.consume(y),r++,m):(n.exit("codeTextSequence"),p(y))}function p(y){return y===null?u(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),p):y===96?(h=n.enter("codeTextSequence"),s=0,b(y)):se(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),p):(n.enter("codeTextData"),d(y))}function d(y){return y===null||y===32||y===96||se(y)?(n.exit("codeTextData"),p(y)):(n.consume(y),d)}function b(y){return y===96?(n.consume(y),s++,b):s===r?(n.exit("codeTextSequence"),n.exit("codeText"),a(y)):(h.type="codeTextData",d(y))}}class jb{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,u){const r=u??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(a,r):a>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(a,u,r){const s=u||0;this.setCursor(Math.trunc(a));const h=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return r&&Ea(this.left,r),h.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Ea(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Ea(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const u=this.left.splice(a,Number.POSITIVE_INFINITY);Ea(this.right,u.reverse())}else{const u=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Ea(this.left,u.reverse())}}}function Ea(n,a){let u=0;if(a.length<1e4)n.push(...a);else for(;u<a.length;)n.push(...a.slice(u,u+1e4)),u+=1e4}function eg(n){const a={};let u=-1,r,s,h,f,m,p,d;const b=new jb(n);for(;++u<b.length;){for(;u in a;)u=a[u];if(r=b.get(u),u&&r[1].type==="chunkFlow"&&b.get(u-1)[1].type==="listItemPrefix"&&(p=r[1]._tokenizer.events,h=0,h<p.length&&p[h][1].type==="lineEndingBlank"&&(h+=2),h<p.length&&p[h][1].type==="content"))for(;++h<p.length&&p[h][1].type!=="content";)p[h][1].type==="chunkText"&&(p[h][1]._isInFirstContentOfListItem=!0,h++);if(r[0]==="enter")r[1].contentType&&(Object.assign(a,Lb(b,u)),u=a[u],d=!0);else if(r[1]._container){for(h=u,s=void 0;h--;)if(f=b.get(h),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(b.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=h);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(r[1].end={...b.get(s)[1].start},m=b.slice(s,u),m.unshift(r),b.splice(s,u-s+1,m))}}return Yt(n,0,Number.POSITIVE_INFINITY,b.slice(0)),!d}function Lb(n,a){const u=n.get(a)[1],r=n.get(a)[2];let s=a-1;const h=[];let f=u._tokenizer;f||(f=r.parser[u.contentType](u.start),u._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const m=f.events,p=[],d={};let b,y,S=-1,v=u,z=0,L=0;const q=[L];for(;v;){for(;n.get(++s)[1]!==v;);h.push(s),v._tokenizer||(b=r.sliceStream(v),v.next||b.push(null),y&&f.defineSkip(v.start),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(b),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),y=v,v=v.next}for(v=u;++S<m.length;)m[S][0]==="exit"&&m[S-1][0]==="enter"&&m[S][1].type===m[S-1][1].type&&m[S][1].start.line!==m[S][1].end.line&&(L=S+1,q.push(L),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):q.pop(),S=q.length;S--;){const N=m.slice(q[S],q[S+1]),K=h.pop();p.push([K,K+N.length-1]),n.splice(K,2,N)}for(p.reverse(),S=-1;++S<p.length;)d[z+p[S][0]]=z+p[S][1],z+=p[S][1]-p[S][0]-1;return d}const Bb={resolve:qb,tokenize:Yb},Hb={partial:!0,tokenize:Vb};function qb(n){return eg(n),n}function Yb(n,a){let u;return r;function r(m){return n.enter("content"),u=n.enter("chunkContent",{contentType:"content"}),s(m)}function s(m){return m===null?h(m):se(m)?n.check(Hb,f,h)(m):(n.consume(m),s)}function h(m){return n.exit("chunkContent"),n.exit("content"),a(m)}function f(m){return n.consume(m),n.exit("chunkContent"),u.next=n.enter("chunkContent",{contentType:"content",previous:u}),u=u.next,s}}function Vb(n,a,u){const r=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),De(n,h,"linePrefix")}function h(f){if(f===null||se(f))return u(f);const m=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(f):n.interrupt(r.parser.constructs.flow,u,a)(f)}}function tg(n,a,u,r,s,h,f,m,p){const d=p||Number.POSITIVE_INFINITY;let b=0;return y;function y(N){return N===60?(n.enter(r),n.enter(s),n.enter(h),n.consume(N),n.exit(h),S):N===null||N===32||N===41||ar(N)?u(N):(n.enter(r),n.enter(f),n.enter(m),n.enter("chunkString",{contentType:"string"}),L(N))}function S(N){return N===62?(n.enter(h),n.consume(N),n.exit(h),n.exit(s),n.exit(r),a):(n.enter(m),n.enter("chunkString",{contentType:"string"}),v(N))}function v(N){return N===62?(n.exit("chunkString"),n.exit(m),S(N)):N===null||N===60||se(N)?u(N):(n.consume(N),N===92?z:v)}function z(N){return N===60||N===62||N===92?(n.consume(N),v):v(N)}function L(N){return!b&&(N===null||N===41||Xe(N))?(n.exit("chunkString"),n.exit(m),n.exit(f),n.exit(r),a(N)):b<d&&N===40?(n.consume(N),b++,L):N===41?(n.consume(N),b--,L):N===null||N===32||N===40||ar(N)?u(N):(n.consume(N),N===92?q:L)}function q(N){return N===40||N===41||N===92?(n.consume(N),L):L(N)}}function ng(n,a,u,r,s,h){const f=this;let m=0,p;return d;function d(v){return n.enter(r),n.enter(s),n.consume(v),n.exit(s),n.enter(h),b}function b(v){return m>999||v===null||v===91||v===93&&!p||v===94&&!m&&"_hiddenFootnoteSupport"in f.parser.constructs?u(v):v===93?(n.exit(h),n.enter(s),n.consume(v),n.exit(s),n.exit(r),a):se(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===null||v===91||v===93||se(v)||m++>999?(n.exit("chunkString"),b(v)):(n.consume(v),p||(p=!Ae(v)),v===92?S:y)}function S(v){return v===91||v===92||v===93?(n.consume(v),m++,y):y(v)}}function lg(n,a,u,r,s,h){let f;return m;function m(S){return S===34||S===39||S===40?(n.enter(r),n.enter(s),n.consume(S),n.exit(s),f=S===40?41:S,p):u(S)}function p(S){return S===f?(n.enter(s),n.consume(S),n.exit(s),n.exit(r),a):(n.enter(h),d(S))}function d(S){return S===f?(n.exit(h),p(f)):S===null?u(S):se(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),De(n,d,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===f||S===null||se(S)?(n.exit("chunkString"),d(S)):(n.consume(S),S===92?y:b)}function y(S){return S===f||S===92?(n.consume(S),b):b(S)}}function za(n,a){let u;return r;function r(s){return se(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),u=!0,r):Ae(s)?De(n,r,u?"linePrefix":"lineSuffix")(s):a(s)}}const Gb={name:"definition",tokenize:Qb},Xb={partial:!0,tokenize:Zb};function Qb(n,a,u){const r=this;let s;return h;function h(v){return n.enter("definition"),f(v)}function f(v){return ng.call(r,n,m,u,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function m(v){return s=an(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),v===58?(n.enter("definitionMarker"),n.consume(v),n.exit("definitionMarker"),p):u(v)}function p(v){return Xe(v)?za(n,d)(v):d(v)}function d(v){return tg(n,b,u,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function b(v){return n.attempt(Xb,y,y)(v)}function y(v){return Ae(v)?De(n,S,"whitespace")(v):S(v)}function S(v){return v===null||se(v)?(n.exit("definition"),r.parser.defined.push(s),a(v)):u(v)}}function Zb(n,a,u){return r;function r(m){return Xe(m)?za(n,s)(m):u(m)}function s(m){return lg(n,h,u,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function h(m){return Ae(m)?De(n,f,"whitespace")(m):f(m)}function f(m){return m===null||se(m)?a(m):u(m)}}const Kb={name:"hardBreakEscape",tokenize:Jb};function Jb(n,a,u){return r;function r(h){return n.enter("hardBreakEscape"),n.consume(h),s}function s(h){return se(h)?(n.exit("hardBreakEscape"),a(h)):u(h)}}const Fb={name:"headingAtx",resolve:Ib,tokenize:$b};function Ib(n,a){let u=n.length-2,r=3,s,h;return n[r][1].type==="whitespace"&&(r+=2),u-2>r&&n[u][1].type==="whitespace"&&(u-=2),n[u][1].type==="atxHeadingSequence"&&(r===u-1||u-4>r&&n[u-2][1].type==="whitespace")&&(u-=r+1===u?2:4),u>r&&(s={type:"atxHeadingText",start:n[r][1].start,end:n[u][1].end},h={type:"chunkText",start:n[r][1].start,end:n[u][1].end,contentType:"text"},Yt(n,r,u-r+1,[["enter",s,a],["enter",h,a],["exit",h,a],["exit",s,a]])),n}function $b(n,a,u){let r=0;return s;function s(b){return n.enter("atxHeading"),h(b)}function h(b){return n.enter("atxHeadingSequence"),f(b)}function f(b){return b===35&&r++<6?(n.consume(b),f):b===null||Xe(b)?(n.exit("atxHeadingSequence"),m(b)):u(b)}function m(b){return b===35?(n.enter("atxHeadingSequence"),p(b)):b===null||se(b)?(n.exit("atxHeading"),a(b)):Ae(b)?De(n,m,"whitespace")(b):(n.enter("atxHeadingText"),d(b))}function p(b){return b===35?(n.consume(b),p):(n.exit("atxHeadingSequence"),m(b))}function d(b){return b===null||b===35||Xe(b)?(n.exit("atxHeadingText"),m(b)):(n.consume(b),d)}}const Wb=["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"],lp=["pre","script","style","textarea"],Pb={concrete:!0,name:"htmlFlow",resolveTo:nx,tokenize:lx},ex={partial:!0,tokenize:ax},tx={partial:!0,tokenize:ix};function nx(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function lx(n,a,u){const r=this;let s,h,f,m,p;return d;function d(k){return b(k)}function b(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),y}function y(k){return k===33?(n.consume(k),S):k===47?(n.consume(k),h=!0,L):k===63?(n.consume(k),s=3,r.interrupt?a:E):St(k)?(n.consume(k),f=String.fromCharCode(k),q):u(k)}function S(k){return k===45?(n.consume(k),s=2,v):k===91?(n.consume(k),s=5,m=0,z):St(k)?(n.consume(k),s=4,r.interrupt?a:E):u(k)}function v(k){return k===45?(n.consume(k),r.interrupt?a:E):u(k)}function z(k){const P="CDATA[";return k===P.charCodeAt(m++)?(n.consume(k),m===P.length?r.interrupt?a:ee:z):u(k)}function L(k){return St(k)?(n.consume(k),f=String.fromCharCode(k),q):u(k)}function q(k){if(k===null||k===47||k===62||Xe(k)){const P=k===47,he=f.toLowerCase();return!P&&!h&&lp.includes(he)?(s=1,r.interrupt?a(k):ee(k)):Wb.includes(f.toLowerCase())?(s=6,P?(n.consume(k),N):r.interrupt?a(k):ee(k)):(s=7,r.interrupt&&!r.parser.lazy[r.now().line]?u(k):h?K(k):Z(k))}return k===45||gt(k)?(n.consume(k),f+=String.fromCharCode(k),q):u(k)}function N(k){return k===62?(n.consume(k),r.interrupt?a:ee):u(k)}function K(k){return Ae(k)?(n.consume(k),K):U(k)}function Z(k){return k===47?(n.consume(k),U):k===58||k===95||St(k)?(n.consume(k),ie):Ae(k)?(n.consume(k),Z):U(k)}function ie(k){return k===45||k===46||k===58||k===95||gt(k)?(n.consume(k),ie):ue(k)}function ue(k){return k===61?(n.consume(k),D):Ae(k)?(n.consume(k),ue):Z(k)}function D(k){return k===null||k===60||k===61||k===62||k===96?u(k):k===34||k===39?(n.consume(k),p=k,F):Ae(k)?(n.consume(k),D):de(k)}function F(k){return k===p?(n.consume(k),p=null,pe):k===null||se(k)?u(k):(n.consume(k),F)}function de(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Xe(k)?ue(k):(n.consume(k),de)}function pe(k){return k===47||k===62||Ae(k)?Z(k):u(k)}function U(k){return k===62?(n.consume(k),te):u(k)}function te(k){return k===null||se(k)?ee(k):Ae(k)?(n.consume(k),te):u(k)}function ee(k){return k===45&&s===2?(n.consume(k),C):k===60&&s===1?(n.consume(k),B):k===62&&s===4?(n.consume(k),A):k===63&&s===3?(n.consume(k),E):k===93&&s===5?(n.consume(k),re):se(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(ex,Y,Se)(k)):k===null||se(k)?(n.exit("htmlFlowData"),Se(k)):(n.consume(k),ee)}function Se(k){return n.check(tx,le,Y)(k)}function le(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),I}function I(k){return k===null||se(k)?Se(k):(n.enter("htmlFlowData"),ee(k))}function C(k){return k===45?(n.consume(k),E):ee(k)}function B(k){return k===47?(n.consume(k),f="",$):ee(k)}function $(k){if(k===62){const P=f.toLowerCase();return lp.includes(P)?(n.consume(k),A):ee(k)}return St(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),$):ee(k)}function re(k){return k===93?(n.consume(k),E):ee(k)}function E(k){return k===62?(n.consume(k),A):k===45&&s===2?(n.consume(k),E):ee(k)}function A(k){return k===null||se(k)?(n.exit("htmlFlowData"),Y(k)):(n.consume(k),A)}function Y(k){return n.exit("htmlFlow"),a(k)}}function ix(n,a,u){const r=this;return s;function s(f){return se(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),h):u(f)}function h(f){return r.parser.lazy[r.now().line]?u(f):a(f)}}function ax(n,a,u){return r;function r(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(Ma,a,u)}}const ux={name:"htmlText",tokenize:rx};function rx(n,a,u){const r=this;let s,h,f;return m;function m(E){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(E),p}function p(E){return E===33?(n.consume(E),d):E===47?(n.consume(E),ue):E===63?(n.consume(E),Z):St(E)?(n.consume(E),de):u(E)}function d(E){return E===45?(n.consume(E),b):E===91?(n.consume(E),h=0,z):St(E)?(n.consume(E),K):u(E)}function b(E){return E===45?(n.consume(E),v):u(E)}function y(E){return E===null?u(E):E===45?(n.consume(E),S):se(E)?(f=y,B(E)):(n.consume(E),y)}function S(E){return E===45?(n.consume(E),v):y(E)}function v(E){return E===62?C(E):E===45?S(E):y(E)}function z(E){const A="CDATA[";return E===A.charCodeAt(h++)?(n.consume(E),h===A.length?L:z):u(E)}function L(E){return E===null?u(E):E===93?(n.consume(E),q):se(E)?(f=L,B(E)):(n.consume(E),L)}function q(E){return E===93?(n.consume(E),N):L(E)}function N(E){return E===62?C(E):E===93?(n.consume(E),N):L(E)}function K(E){return E===null||E===62?C(E):se(E)?(f=K,B(E)):(n.consume(E),K)}function Z(E){return E===null?u(E):E===63?(n.consume(E),ie):se(E)?(f=Z,B(E)):(n.consume(E),Z)}function ie(E){return E===62?C(E):Z(E)}function ue(E){return St(E)?(n.consume(E),D):u(E)}function D(E){return E===45||gt(E)?(n.consume(E),D):F(E)}function F(E){return se(E)?(f=F,B(E)):Ae(E)?(n.consume(E),F):C(E)}function de(E){return E===45||gt(E)?(n.consume(E),de):E===47||E===62||Xe(E)?pe(E):u(E)}function pe(E){return E===47?(n.consume(E),C):E===58||E===95||St(E)?(n.consume(E),U):se(E)?(f=pe,B(E)):Ae(E)?(n.consume(E),pe):C(E)}function U(E){return E===45||E===46||E===58||E===95||gt(E)?(n.consume(E),U):te(E)}function te(E){return E===61?(n.consume(E),ee):se(E)?(f=te,B(E)):Ae(E)?(n.consume(E),te):pe(E)}function ee(E){return E===null||E===60||E===61||E===62||E===96?u(E):E===34||E===39?(n.consume(E),s=E,Se):se(E)?(f=ee,B(E)):Ae(E)?(n.consume(E),ee):(n.consume(E),le)}function Se(E){return E===s?(n.consume(E),s=void 0,I):E===null?u(E):se(E)?(f=Se,B(E)):(n.consume(E),Se)}function le(E){return E===null||E===34||E===39||E===60||E===61||E===96?u(E):E===47||E===62||Xe(E)?pe(E):(n.consume(E),le)}function I(E){return E===47||E===62||Xe(E)?pe(E):u(E)}function C(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),a):u(E)}function B(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),$}function $(E){return Ae(E)?De(n,re,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):re(E)}function re(E){return n.enter("htmlTextData"),f(E)}}const ks={name:"labelEnd",resolveAll:fx,resolveTo:hx,tokenize:dx},ox={tokenize:mx},cx={tokenize:px},sx={tokenize:gx};function fx(n){let a=-1;const u=[];for(;++a<n.length;){const r=n[a][1];if(u.push(n[a]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const s=r.type==="labelImage"?4:2;r.type="data",a+=s}}return n.length!==u.length&&Yt(n,0,n.length,u),n}function hx(n,a){let u=n.length,r=0,s,h,f,m;for(;u--;)if(s=n[u][1],h){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[u][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(n[u][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(h=u,s.type!=="labelLink")){r=2;break}}else s.type==="labelEnd"&&(f=u);const p={type:n[h][1].type==="labelLink"?"link":"image",start:{...n[h][1].start},end:{...n[n.length-1][1].end}},d={type:"label",start:{...n[h][1].start},end:{...n[f][1].end}},b={type:"labelText",start:{...n[h+r+2][1].end},end:{...n[f-2][1].start}};return m=[["enter",p,a],["enter",d,a]],m=Pt(m,n.slice(h+1,h+r+3)),m=Pt(m,[["enter",b,a]]),m=Pt(m,fr(a.parser.constructs.insideSpan.null,n.slice(h+r+4,f-3),a)),m=Pt(m,[["exit",b,a],n[f-2],n[f-1],["exit",d,a]]),m=Pt(m,n.slice(f+1)),m=Pt(m,[["exit",p,a]]),Yt(n,h,n.length,m),n}function dx(n,a,u){const r=this;let s=r.events.length,h,f;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){h=r.events[s][1];break}return m;function m(S){return h?h._inactive?y(S):(f=r.parser.defined.includes(an(r.sliceSerialize({start:h.end,end:r.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(S),n.exit("labelMarker"),n.exit("labelEnd"),p):u(S)}function p(S){return S===40?n.attempt(ox,b,f?b:y)(S):S===91?n.attempt(cx,b,f?d:y)(S):f?b(S):y(S)}function d(S){return n.attempt(sx,b,y)(S)}function b(S){return a(S)}function y(S){return h._balanced=!0,u(S)}}function mx(n,a,u){return r;function r(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),s}function s(y){return Xe(y)?za(n,h)(y):h(y)}function h(y){return y===41?b(y):tg(n,f,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return Xe(y)?za(n,p)(y):b(y)}function m(y){return u(y)}function p(y){return y===34||y===39||y===40?lg(n,d,u,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):b(y)}function d(y){return Xe(y)?za(n,b)(y):b(y)}function b(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),a):u(y)}}function px(n,a,u){const r=this;return s;function s(m){return ng.call(r,n,h,f,"reference","referenceMarker","referenceString")(m)}function h(m){return r.parser.defined.includes(an(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?a(m):u(m)}function f(m){return u(m)}}function gx(n,a,u){return r;function r(h){return n.enter("reference"),n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),s}function s(h){return h===93?(n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),n.exit("reference"),a):u(h)}}const yx={name:"labelStartImage",resolveAll:ks.resolveAll,tokenize:bx};function bx(n,a,u){const r=this;return s;function s(m){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(m),n.exit("labelImageMarker"),h}function h(m){return m===91?(n.enter("labelMarker"),n.consume(m),n.exit("labelMarker"),n.exit("labelImage"),f):u(m)}function f(m){return m===94&&"_hiddenFootnoteSupport"in r.parser.constructs?u(m):a(m)}}const xx={name:"labelStartLink",resolveAll:ks.resolveAll,tokenize:vx};function vx(n,a,u){const r=this;return s;function s(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),h}function h(f){return f===94&&"_hiddenFootnoteSupport"in r.parser.constructs?u(f):a(f)}}const Gc={name:"lineEnding",tokenize:Sx};function Sx(n,a){return u;function u(r){return n.enter("lineEnding"),n.consume(r),n.exit("lineEnding"),De(n,a,"linePrefix")}}const ir={name:"thematicBreak",tokenize:kx};function kx(n,a,u){let r=0,s;return h;function h(d){return n.enter("thematicBreak"),f(d)}function f(d){return s=d,m(d)}function m(d){return d===s?(n.enter("thematicBreakSequence"),p(d)):r>=3&&(d===null||se(d))?(n.exit("thematicBreak"),a(d)):u(d)}function p(d){return d===s?(n.consume(d),r++,p):(n.exit("thematicBreakSequence"),Ae(d)?De(n,m,"whitespace")(d):m(d))}}const Dt={continuation:{tokenize:_x},exit:Cx,name:"list",tokenize:Ax},Ex={partial:!0,tokenize:wx},Tx={partial:!0,tokenize:zx};function Ax(n,a,u){const r=this,s=r.events[r.events.length-1];let h=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return m;function m(v){const z=r.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(z==="listUnordered"?!r.containerState.marker||v===r.containerState.marker:us(v)){if(r.containerState.type||(r.containerState.type=z,n.enter(z,{_container:!0})),z==="listUnordered")return n.enter("listItemPrefix"),v===42||v===45?n.check(ir,u,d)(v):d(v);if(!r.interrupt||v===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(v)}return u(v)}function p(v){return us(v)&&++f<10?(n.consume(v),p):(!r.interrupt||f<2)&&(r.containerState.marker?v===r.containerState.marker:v===41||v===46)?(n.exit("listItemValue"),d(v)):u(v)}function d(v){return n.enter("listItemMarker"),n.consume(v),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||v,n.check(Ma,r.interrupt?u:b,n.attempt(Ex,S,y))}function b(v){return r.containerState.initialBlankLine=!0,h++,S(v)}function y(v){return Ae(v)?(n.enter("listItemPrefixWhitespace"),n.consume(v),n.exit("listItemPrefixWhitespace"),S):u(v)}function S(v){return r.containerState.size=h+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(v)}}function _x(n,a,u){const r=this;return r.containerState._closeFlow=void 0,n.check(Ma,s,h);function s(m){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,De(n,a,"listItemIndent",r.containerState.size+1)(m)}function h(m){return r.containerState.furtherBlankLines||!Ae(m)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,f(m)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(Tx,a,f)(m))}function f(m){return r.containerState._closeFlow=!0,r.interrupt=void 0,De(n,n.attempt(Dt,a,u),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function zx(n,a,u){const r=this;return De(n,s,"listItemIndent",r.containerState.size+1);function s(h){const f=r.events[r.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===r.containerState.size?a(h):u(h)}}function Cx(n){n.exit(this.containerState.type)}function wx(n,a,u){const r=this;return De(n,s,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(h){const f=r.events[r.events.length-1];return!Ae(h)&&f&&f[1].type==="listItemPrefixWhitespace"?a(h):u(h)}}const ip={name:"setextUnderline",resolveTo:Dx,tokenize:Ox};function Dx(n,a){let u=n.length,r,s,h;for(;u--;)if(n[u][0]==="enter"){if(n[u][1].type==="content"){r=u;break}n[u][1].type==="paragraph"&&(s=u)}else n[u][1].type==="content"&&n.splice(u,1),!h&&n[u][1].type==="definition"&&(h=u);const f={type:"setextHeading",start:{...n[r][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",h?(n.splice(s,0,["enter",f,a]),n.splice(h+1,0,["exit",n[r][1],a]),n[r][1].end={...n[h][1].end}):n[r][1]=f,n.push(["exit",f,a]),n}function Ox(n,a,u){const r=this;let s;return h;function h(d){let b=r.events.length,y;for(;b--;)if(r.events[b][1].type!=="lineEnding"&&r.events[b][1].type!=="linePrefix"&&r.events[b][1].type!=="content"){y=r.events[b][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||y)?(n.enter("setextHeadingLine"),s=d,f(d)):u(d)}function f(d){return n.enter("setextHeadingLineSequence"),m(d)}function m(d){return d===s?(n.consume(d),m):(n.exit("setextHeadingLineSequence"),Ae(d)?De(n,p,"lineSuffix")(d):p(d))}function p(d){return d===null||se(d)?(n.exit("setextHeadingLine"),a(d)):u(d)}}const Mx={tokenize:Nx};function Nx(n){const a=this,u=n.attempt(Ma,r,n.attempt(this.parser.constructs.flowInitial,s,De(n,n.attempt(this.parser.constructs.flow,s,n.attempt(Bb,s)),"linePrefix")));return u;function r(h){if(h===null){n.consume(h);return}return n.enter("lineEndingBlank"),n.consume(h),n.exit("lineEndingBlank"),a.currentConstruct=void 0,u}function s(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),a.currentConstruct=void 0,u}}const Rx={resolveAll:ag()},Ux=ig("string"),jx=ig("text");function ig(n){return{resolveAll:ag(n==="text"?Lx:void 0),tokenize:a};function a(u){const r=this,s=this.parser.constructs[n],h=u.attempt(s,f,m);return f;function f(b){return d(b)?h(b):m(b)}function m(b){if(b===null){u.consume(b);return}return u.enter("data"),u.consume(b),p}function p(b){return d(b)?(u.exit("data"),h(b)):(u.consume(b),p)}function d(b){if(b===null)return!0;const y=s[b];let S=-1;if(y)for(;++S<y.length;){const v=y[S];if(!v.previous||v.previous.call(r,r.previous))return!0}return!1}}}function ag(n){return a;function a(u,r){let s=-1,h;for(;++s<=u.length;)h===void 0?u[s]&&u[s][1].type==="data"&&(h=s,s++):(!u[s]||u[s][1].type!=="data")&&(s!==h+2&&(u[h][1].end=u[s-1][1].end,u.splice(h+2,s-h-2),s=h+2),h=void 0);return n?n(u,r):u}}function Lx(n,a){let u=0;for(;++u<=n.length;)if((u===n.length||n[u][1].type==="lineEnding")&&n[u-1][1].type==="data"){const r=n[u-1][1],s=a.sliceStream(r);let h=s.length,f=-1,m=0,p;for(;h--;){const d=s[h];if(typeof d=="string"){for(f=d.length;d.charCodeAt(f-1)===32;)m++,f--;if(f)break;f=-1}else if(d===-2)p=!0,m++;else if(d!==-1){h++;break}}if(a._contentTypeTextTrailing&&u===n.length&&(m=0),m){const d={type:u===n.length||p||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:h?f:r.start._bufferIndex+f,_index:r.start._index+h,line:r.end.line,column:r.end.column-m,offset:r.end.offset-m},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(n.splice(u,0,["enter",d,a],["exit",d,a]),u+=2)}u++}return n}const Bx={42:Dt,43:Dt,45:Dt,48:Dt,49:Dt,50:Dt,51:Dt,52:Dt,53:Dt,54:Dt,55:Dt,56:Dt,57:Dt,62:$p},Hx={91:Gb},qx={[-2]:Vc,[-1]:Vc,32:Vc},Yx={35:Fb,42:ir,45:[ip,ir],60:Pb,61:ip,95:ir,96:np,126:np},Vx={38:Pp,92:Wp},Gx={[-5]:Gc,[-4]:Gc,[-3]:Gc,33:yx,38:Pp,42:rs,60:[xb,ux],91:xx,92:[Kb,Wp],93:ks,95:rs,96:Mb},Xx={null:[rs,Rx]},Qx={null:[42,95]},Zx={null:[]},Kx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Qx,contentInitial:Hx,disable:Zx,document:Bx,flow:Yx,flowInitial:qx,insideSpan:Xx,string:Vx,text:Gx},Symbol.toStringTag,{value:"Module"}));function Jx(n,a,u){let r={_bufferIndex:-1,_index:0,line:u&&u.line||1,column:u&&u.column||1,offset:u&&u.offset||0};const s={},h=[];let f=[],m=[];const p={attempt:F(ue),check:F(D),consume:K,enter:Z,exit:ie,interrupt:F(D,{interrupt:!0})},d={code:null,containerState:{},defineSkip:L,events:[],now:z,parser:n,previous:null,sliceSerialize:S,sliceStream:v,write:y};let b=a.tokenize.call(d,p);return a.resolveAll&&h.push(a),d;function y(te){return f=Pt(f,te),q(),f[f.length-1]!==null?[]:(de(a,0),d.events=fr(h,d.events,d),d.events)}function S(te,ee){return Ix(v(te),ee)}function v(te){return Fx(f,te)}function z(){const{_bufferIndex:te,_index:ee,line:Se,column:le,offset:I}=r;return{_bufferIndex:te,_index:ee,line:Se,column:le,offset:I}}function L(te){s[te.line]=te.column,U()}function q(){let te;for(;r._index<f.length;){const ee=f[r._index];if(typeof ee=="string")for(te=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===te&&r._bufferIndex<ee.length;)N(ee.charCodeAt(r._bufferIndex));else N(ee)}}function N(te){b=b(te)}function K(te){se(te)?(r.line++,r.column=1,r.offset+=te===-3?2:1,U()):te!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===f[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=te}function Z(te,ee){const Se=ee||{};return Se.type=te,Se.start=z(),d.events.push(["enter",Se,d]),m.push(Se),Se}function ie(te){const ee=m.pop();return ee.end=z(),d.events.push(["exit",ee,d]),ee}function ue(te,ee){de(te,ee.from)}function D(te,ee){ee.restore()}function F(te,ee){return Se;function Se(le,I,C){let B,$,re,E;return Array.isArray(le)?Y(le):"tokenize"in le?Y([le]):A(le);function A(oe){return _e;function _e(Ke){const Le=Ke!==null&&oe[Ke],Vt=Ke!==null&&oe.null,hn=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(Vt)?Vt:Vt?[Vt]:[]];return Y(hn)(Ke)}}function Y(oe){return B=oe,$=0,oe.length===0?C:k(oe[$])}function k(oe){return _e;function _e(Ke){return E=pe(),re=oe,oe.partial||(d.currentConstruct=oe),oe.name&&d.parser.constructs.disable.null.includes(oe.name)?he():oe.tokenize.call(ee?Object.assign(Object.create(d),ee):d,p,P,he)(Ke)}}function P(oe){return te(re,E),I}function he(oe){return E.restore(),++$<B.length?k(B[$]):C}}}function de(te,ee){te.resolveAll&&!h.includes(te)&&h.push(te),te.resolve&&Yt(d.events,ee,d.events.length-ee,te.resolve(d.events.slice(ee),d)),te.resolveTo&&(d.events=te.resolveTo(d.events,d))}function pe(){const te=z(),ee=d.previous,Se=d.currentConstruct,le=d.events.length,I=Array.from(m);return{from:le,restore:C};function C(){r=te,d.previous=ee,d.currentConstruct=Se,d.events.length=le,m=I,U()}}function U(){r.line in s&&r.column<2&&(r.column=s[r.line],r.offset+=s[r.line]-1)}}function Fx(n,a){const u=a.start._index,r=a.start._bufferIndex,s=a.end._index,h=a.end._bufferIndex;let f;if(u===s)f=[n[u].slice(r,h)];else{if(f=n.slice(u,s),r>-1){const m=f[0];typeof m=="string"?f[0]=m.slice(r):f.shift()}h>0&&f.push(n[s].slice(0,h))}return f}function Ix(n,a){let u=-1;const r=[];let s;for(;++u<n.length;){const h=n[u];let f;if(typeof h=="string")f=h;else switch(h){case-5:{f="\r";break}case-4:{f=`
|
|
51
|
+
`;break}case-3:{f=`\r
|
|
52
|
+
`;break}case-2:{f=a?" ":" ";break}case-1:{if(!a&&s)continue;f=" ";break}default:f=String.fromCharCode(h)}s=h===-2,r.push(f)}return r.join("")}function $x(n){const r={constructs:Fp([Kx,...(n||{}).extensions||[]]),content:s(hb),defined:[],document:s(mb),flow:s(Mx),lazy:{},string:s(Ux),text:s(jx)};return r;function s(h){return f;function f(m){return Jx(r,h,m)}}}function Wx(n){for(;!eg(n););return n}const ap=/[\0\t\n\r]/g;function Px(){let n=1,a="",u=!0,r;return s;function s(h,f,m){const p=[];let d,b,y,S,v;for(h=a+(typeof h=="string"?h.toString():new TextDecoder(f||void 0).decode(h)),y=0,a="",u&&(h.charCodeAt(0)===65279&&y++,u=void 0);y<h.length;){if(ap.lastIndex=y,d=ap.exec(h),S=d&&d.index!==void 0?d.index:h.length,v=h.charCodeAt(S),!d){a=h.slice(y);break}if(v===10&&y===S&&r)p.push(-3),r=void 0;else switch(r&&(p.push(-5),r=void 0),y<S&&(p.push(h.slice(y,S)),n+=S-y),v){case 0:{p.push(65533),n++;break}case 9:{for(b=Math.ceil(n/4)*4,p.push(-2);n++<b;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:r=!0,n=1}y=S+1}return m&&(r&&p.push(-5),a&&p.push(a),p.push(null)),p}}const ev=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tv(n){return n.replace(ev,nv)}function nv(n,a,u){if(a)return a;if(u.charCodeAt(0)===35){const s=u.charCodeAt(1),h=s===120||s===88;return Ip(u.slice(h?2:1),h?16:10)}return Ss(u)||n}const ug={}.hasOwnProperty;function lv(n,a,u){return a&&typeof a=="object"&&(u=a,a=void 0),iv(u)(Wx($x(u).document().write(Px()(n,a,!0))))}function iv(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(Nl),autolinkProtocol:pe,autolinkEmail:pe,atxHeading:h(Ol),blockQuote:h(Vt),characterEscape:pe,characterReference:pe,codeFenced:h(hn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:h(hn,f),codeText:h(_i,f),codeTextData:pe,data:pe,codeFlowValue:pe,definition:h(Ra),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:h(dn),hardBreakEscape:h(Ml),hardBreakTrailing:h(Ml),htmlFlow:h(Ua,f),htmlFlowData:pe,htmlText:h(Ua,f),htmlTextData:pe,image:h(ja),label:f,link:h(Nl),listItem:h(zi),listItemValue:S,listOrdered:h(Rl,y),listUnordered:h(Rl),paragraph:h(pr),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:h(Ol),strong:h(gr),thematicBreak:h(yr)},exit:{atxHeading:p(),atxHeadingSequence:ue,autolink:p(),autolinkEmail:Le,autolinkProtocol:Ke,blockQuote:p(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:oe,characterReference:_e,codeFenced:p(q),codeFencedFence:L,codeFencedFenceInfo:v,codeFencedFenceMeta:z,codeFlowValue:U,codeIndented:p(N),codeText:p(I),codeTextData:U,data:U,definition:p(),definitionDestinationString:ie,definitionLabelString:K,definitionTitleString:Z,emphasis:p(),hardBreakEscape:p(ee),hardBreakTrailing:p(ee),htmlFlow:p(Se),htmlFlowData:U,htmlText:p(le),htmlTextData:U,image:p(B),label:re,labelText:$,lineEnding:te,link:p(C),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:P,resourceDestinationString:E,resourceTitleString:A,resource:Y,setextHeading:p(de),setextHeadingLineSequence:F,setextHeadingText:D,strong:p(),thematicBreak:p()}};rg(a,(n||{}).mdastExtensions||[]);const u={};return r;function r(V){let W={type:"root",children:[]};const me={stack:[W],tokenStack:[],config:a,enter:m,exit:d,buffer:f,resume:b,data:u},ke=[];let Re=-1;for(;++Re<V.length;)if(V[Re][1].type==="listOrdered"||V[Re][1].type==="listUnordered")if(V[Re][0]==="enter")ke.push(Re);else{const Mt=ke.pop();Re=s(V,Mt,Re)}for(Re=-1;++Re<V.length;){const Mt=a[V[Re][0]];ug.call(Mt,V[Re][1].type)&&Mt[V[Re][1].type].call(Object.assign({sliceSerialize:V[Re][2].sliceSerialize},me),V[Re][1])}if(me.tokenStack.length>0){const Mt=me.tokenStack[me.tokenStack.length-1];(Mt[1]||up).call(me,void 0,Mt[0])}for(W.position={start:rl(V.length>0?V[0][1].start:{line:1,column:1,offset:0}),end:rl(V.length>0?V[V.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<a.transforms.length;)W=a.transforms[Re](W)||W;return W}function s(V,W,me){let ke=W-1,Re=-1,Mt=!1,mn,xt,at,kt;for(;++ke<=me;){const Ye=V[ke];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?Re++:Re--,kt=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(mn&&!kt&&!Re&&!at&&(at=ke),kt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:kt=void 0}if(!Re&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||Re===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(mn){let Un=ke;for(xt=void 0;Un--;){const en=V[Un];if(en[1].type==="lineEnding"||en[1].type==="lineEndingBlank"){if(en[0]==="exit")continue;xt&&(V[xt][1].type="lineEndingBlank",Mt=!0),en[1].type="lineEnding",xt=Un}else if(!(en[1].type==="linePrefix"||en[1].type==="blockQuotePrefix"||en[1].type==="blockQuotePrefixWhitespace"||en[1].type==="blockQuoteMarker"||en[1].type==="listItemIndent"))break}at&&(!xt||at<xt)&&(mn._spread=!0),mn.end=Object.assign({},xt?V[xt][1].start:Ye[1].end),V.splice(xt||ke,0,["exit",mn,Ye[2]]),ke++,me++}if(Ye[1].type==="listItemPrefix"){const Un={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};mn=Un,V.splice(ke,0,["enter",Un,Ye[2]]),ke++,me++,at=void 0,kt=!0}}}return V[W][1]._spread=Mt,me}function h(V,W){return me;function me(ke){m.call(this,V(ke),ke),W&&W.call(this,ke)}}function f(){this.stack.push({type:"fragment",children:[]})}function m(V,W,me){this.stack[this.stack.length-1].children.push(V),this.stack.push(V),this.tokenStack.push([W,me||void 0]),V.position={start:rl(W.start),end:void 0}}function p(V){return W;function W(me){V&&V.call(this,me),d.call(this,me)}}function d(V,W){const me=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==V.type&&(W?W.call(this,V,ke[0]):(ke[1]||up).call(this,V,ke[0]));else throw new Error("Cannot close `"+V.type+"` ("+_a({start:V.start,end:V.end})+"): it’s not open");me.position.end=rl(V.end)}function b(){return vs(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function S(V){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(V),10),this.data.expectingFirstListItemValue=void 0}}function v(){const V=this.resume(),W=this.stack[this.stack.length-1];W.lang=V}function z(){const V=this.resume(),W=this.stack[this.stack.length-1];W.meta=V}function L(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function q(){const V=this.resume(),W=this.stack[this.stack.length-1];W.value=V.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const V=this.resume(),W=this.stack[this.stack.length-1];W.value=V.replace(/(\r?\n|\r)$/g,"")}function K(V){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=an(this.sliceSerialize(V)).toLowerCase()}function Z(){const V=this.resume(),W=this.stack[this.stack.length-1];W.title=V}function ie(){const V=this.resume(),W=this.stack[this.stack.length-1];W.url=V}function ue(V){const W=this.stack[this.stack.length-1];if(!W.depth){const me=this.sliceSerialize(V).length;W.depth=me}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function F(V){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(V).codePointAt(0)===61?1:2}function de(){this.data.setextHeadingSlurpLineEnding=void 0}function pe(V){const me=this.stack[this.stack.length-1].children;let ke=me[me.length-1];(!ke||ke.type!=="text")&&(ke=bt(),ke.position={start:rl(V.start),end:void 0},me.push(ke)),this.stack.push(ke)}function U(V){const W=this.stack.pop();W.value+=this.sliceSerialize(V),W.position.end=rl(V.end)}function te(V){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=W.children[W.children.length-1];me.position.end=rl(V.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(W.type)&&(pe.call(this,V),U.call(this,V))}function ee(){this.data.atHardBreak=!0}function Se(){const V=this.resume(),W=this.stack[this.stack.length-1];W.value=V}function le(){const V=this.resume(),W=this.stack[this.stack.length-1];W.value=V}function I(){const V=this.resume(),W=this.stack[this.stack.length-1];W.value=V}function C(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=W,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function B(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=W,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function $(V){const W=this.sliceSerialize(V),me=this.stack[this.stack.length-2];me.label=tv(W),me.identifier=an(W).toLowerCase()}function re(){const V=this.stack[this.stack.length-1],W=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const ke=V.children;me.children=ke}else me.alt=W}function E(){const V=this.resume(),W=this.stack[this.stack.length-1];W.url=V}function A(){const V=this.resume(),W=this.stack[this.stack.length-1];W.title=V}function Y(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function P(V){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=an(this.sliceSerialize(V)).toLowerCase(),this.data.referenceType="full"}function he(V){this.data.characterReferenceType=V.type}function oe(V){const W=this.sliceSerialize(V),me=this.data.characterReferenceType;let ke;me?(ke=Ip(W,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=Ss(W);const Re=this.stack[this.stack.length-1];Re.value+=ke}function _e(V){const W=this.stack.pop();W.position.end=rl(V.end)}function Ke(V){U.call(this,V);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(V)}function Le(V){U.call(this,V);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(V)}function Vt(){return{type:"blockquote",children:[]}}function hn(){return{type:"code",lang:null,meta:null,value:""}}function _i(){return{type:"inlineCode",value:""}}function Ra(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function dn(){return{type:"emphasis",children:[]}}function Ol(){return{type:"heading",depth:0,children:[]}}function Ml(){return{type:"break"}}function Ua(){return{type:"html",value:""}}function ja(){return{type:"image",title:null,url:"",alt:null}}function Nl(){return{type:"link",title:null,url:"",children:[]}}function Rl(V){return{type:"list",ordered:V.type==="listOrdered",start:null,spread:V._spread,children:[]}}function zi(V){return{type:"listItem",spread:V._spread,checked:null,children:[]}}function pr(){return{type:"paragraph",children:[]}}function gr(){return{type:"strong",children:[]}}function bt(){return{type:"text",value:""}}function yr(){return{type:"thematicBreak"}}}function rl(n){return{line:n.line,column:n.column,offset:n.offset}}function rg(n,a){let u=-1;for(;++u<a.length;){const r=a[u];Array.isArray(r)?rg(n,r):av(n,r)}}function av(n,a){let u;for(u in a)if(ug.call(a,u))switch(u){case"canContainEols":{const r=a[u];r&&n[u].push(...r);break}case"transforms":{const r=a[u];r&&n[u].push(...r);break}case"enter":case"exit":{const r=a[u];r&&Object.assign(n[u],r);break}}}function up(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+_a({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+_a({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+_a({start:a.start,end:a.end})+") is still open")}function uv(n){const a=this;a.parser=u;function u(r){return lv(r,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function rv(n,a){const u={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,u),n.applyData(a,u)}function ov(n,a){const u={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,u),[n.applyData(a,u),{type:"text",value:`
|
|
53
|
+
`}]}function cv(n,a){const u=a.value?a.value+`
|
|
54
|
+
`:"",r={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(r.className=["language-"+s[0]]);let h={type:"element",tagName:"code",properties:r,children:[{type:"text",value:u}]};return a.meta&&(h.data={meta:a.meta}),n.patch(a,h),h=n.applyData(a,h),h={type:"element",tagName:"pre",properties:{},children:[h]},n.patch(a,h),h}function sv(n,a){const u={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function fv(n,a){const u={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function hv(n,a){const u=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=String(a.identifier).toUpperCase(),s=Ai(r.toLowerCase()),h=n.footnoteOrder.indexOf(r);let f,m=n.footnoteCounts.get(r);m===void 0?(m=0,n.footnoteOrder.push(r),f=n.footnoteOrder.length):f=h+1,m+=1,n.footnoteCounts.set(r,m);const p={type:"element",tagName:"a",properties:{href:"#"+u+"fn-"+s,id:u+"fnref-"+s+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(a,p);const d={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(a,d),n.applyData(a,d)}function dv(n,a){const u={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function mv(n,a){if(n.options.allowDangerousHtml){const u={type:"raw",value:a.value};return n.patch(a,u),n.applyData(a,u)}}function og(n,a){const u=a.referenceType;let r="]";if(u==="collapsed"?r+="[]":u==="full"&&(r+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+r}];const s=n.all(a),h=s[0];h&&h.type==="text"?h.value="["+h.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=r:s.push({type:"text",value:r}),s}function pv(n,a){const u=String(a.identifier).toUpperCase(),r=n.definitionById.get(u);if(!r)return og(n,a);const s={src:Ai(r.url||""),alt:a.alt};r.title!==null&&r.title!==void 0&&(s.title=r.title);const h={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,h),n.applyData(a,h)}function gv(n,a){const u={src:Ai(a.url)};a.alt!==null&&a.alt!==void 0&&(u.alt=a.alt),a.title!==null&&a.title!==void 0&&(u.title=a.title);const r={type:"element",tagName:"img",properties:u,children:[]};return n.patch(a,r),n.applyData(a,r)}function yv(n,a){const u={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,u);const r={type:"element",tagName:"code",properties:{},children:[u]};return n.patch(a,r),n.applyData(a,r)}function bv(n,a){const u=String(a.identifier).toUpperCase(),r=n.definitionById.get(u);if(!r)return og(n,a);const s={href:Ai(r.url||"")};r.title!==null&&r.title!==void 0&&(s.title=r.title);const h={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,h),n.applyData(a,h)}function xv(n,a){const u={href:Ai(a.url)};a.title!==null&&a.title!==void 0&&(u.title=a.title);const r={type:"element",tagName:"a",properties:u,children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function vv(n,a,u){const r=n.all(a),s=u?Sv(u):cg(a),h={},f=[];if(typeof a.checked=="boolean"){const b=r[0];let y;b&&b.type==="element"&&b.tagName==="p"?y=b:(y={type:"element",tagName:"p",properties:{},children:[]},r.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),h.className=["task-list-item"]}let m=-1;for(;++m<r.length;){const b=r[m];(s||m!==0||b.type!=="element"||b.tagName!=="p")&&f.push({type:"text",value:`
|
|
55
|
+
`}),b.type==="element"&&b.tagName==="p"&&!s?f.push(...b.children):f.push(b)}const p=r[r.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&f.push({type:"text",value:`
|
|
56
|
+
`});const d={type:"element",tagName:"li",properties:h,children:f};return n.patch(a,d),n.applyData(a,d)}function Sv(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const u=n.children;let r=-1;for(;!a&&++r<u.length;)a=cg(u[r])}return a}function cg(n){const a=n.spread;return a??n.children.length>1}function kv(n,a){const u={},r=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(u.start=a.start);++s<r.length;){const f=r[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){u.className=["contains-task-list"];break}}const h={type:"element",tagName:a.ordered?"ol":"ul",properties:u,children:n.wrap(r,!0)};return n.patch(a,h),n.applyData(a,h)}function Ev(n,a){const u={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function Tv(n,a){const u={type:"root",children:n.wrap(n.all(a))};return n.patch(a,u),n.applyData(a,u)}function Av(n,a){const u={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function _v(n,a){const u=n.all(a),r=u.shift(),s=[];if(r){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([r],!0)};n.patch(a.children[0],f),s.push(f)}if(u.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(u,!0)},m=gs(a.children[1]),p=Vp(a.children[a.children.length-1]);m&&p&&(f.position={start:m,end:p}),s.push(f)}const h={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(a,h),n.applyData(a,h)}function zv(n,a,u){const r=u?u.children:void 0,h=(r?r.indexOf(a):1)===0?"th":"td",f=u&&u.type==="table"?u.align:void 0,m=f?f.length:a.children.length;let p=-1;const d=[];for(;++p<m;){const y=a.children[p],S={},v=f?f[p]:void 0;v&&(S.align=v);let z={type:"element",tagName:h,properties:S,children:[]};y&&(z.children=n.all(y),n.patch(y,z),z=n.applyData(y,z)),d.push(z)}const b={type:"element",tagName:"tr",properties:{},children:n.wrap(d,!0)};return n.patch(a,b),n.applyData(a,b)}function Cv(n,a){const u={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}const rp=9,op=32;function wv(n){const a=String(n),u=/\r?\n|\r/g;let r=u.exec(a),s=0;const h=[];for(;r;)h.push(cp(a.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=u.exec(a);return h.push(cp(a.slice(s),s>0,!1)),h.join("")}function cp(n,a,u){let r=0,s=n.length;if(a){let h=n.codePointAt(r);for(;h===rp||h===op;)r++,h=n.codePointAt(r)}if(u){let h=n.codePointAt(s-1);for(;h===rp||h===op;)s--,h=n.codePointAt(s-1)}return s>r?n.slice(r,s):""}function Dv(n,a){const u={type:"text",value:wv(String(a.value))};return n.patch(a,u),n.applyData(a,u)}function Ov(n,a){const u={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,u),n.applyData(a,u)}const Mv={blockquote:rv,break:ov,code:cv,delete:sv,emphasis:fv,footnoteReference:hv,heading:dv,html:mv,imageReference:pv,image:gv,inlineCode:yv,linkReference:bv,link:xv,listItem:vv,list:kv,paragraph:Ev,root:Tv,strong:Av,table:_v,tableCell:Cv,tableRow:zv,text:Dv,thematicBreak:Ov,toml:er,yaml:er,definition:er,footnoteDefinition:er};function er(){}const sg=-1,hr=0,Ca=1,ur=2,Es=3,Ts=4,As=5,_s=6,fg=7,hg=8,Nv=typeof self=="object"?self:globalThis,sp=(n,a)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new Nv[n](a)},Rv=(n,a)=>{const u=(s,h)=>(n.set(h,s),s),r=s=>{if(n.has(s))return n.get(s);const[h,f]=a[s];switch(h){case hr:case sg:return u(f,s);case Ca:{const m=u([],s);for(const p of f)m.push(r(p));return m}case ur:{const m=u({},s);for(const[p,d]of f)m[r(p)]=r(d);return m}case Es:return u(new Date(f),s);case Ts:{const{source:m,flags:p}=f;return u(new RegExp(m,p),s)}case As:{const m=u(new Map,s);for(const[p,d]of f)m.set(r(p),r(d));return m}case _s:{const m=u(new Set,s);for(const p of f)m.add(r(p));return m}case fg:{const{name:m,message:p}=f;return u(sp(m,p),s)}case hg:return u(BigInt(f),s);case"BigInt":return u(Object(BigInt(f)),s);case"ArrayBuffer":return u(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:m}=new Uint8Array(f);return u(new DataView(m),f)}}return u(sp(h,f),s)};return r},fp=n=>Rv(new Map,n)(0),Si="",{toString:Uv}={},{keys:jv}=Object,Ta=n=>{const a=typeof n;if(a!=="object"||!n)return[hr,a];const u=Uv.call(n).slice(8,-1);switch(u){case"Array":return[Ca,Si];case"Object":return[ur,Si];case"Date":return[Es,Si];case"RegExp":return[Ts,Si];case"Map":return[As,Si];case"Set":return[_s,Si];case"DataView":return[Ca,u]}return u.includes("Array")?[Ca,u]:u.includes("Error")?[fg,u]:[ur,u]},tr=([n,a])=>n===hr&&(a==="function"||a==="symbol"),Lv=(n,a,u,r)=>{const s=(f,m)=>{const p=r.push(f)-1;return u.set(m,p),p},h=f=>{if(u.has(f))return u.get(f);let[m,p]=Ta(f);switch(m){case hr:{let b=f;switch(p){case"bigint":m=hg,b=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);b=null;break;case"undefined":return s([sg],f)}return s([m,b],f)}case Ca:{if(p){let S=f;return p==="DataView"?S=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(S=new Uint8Array(f)),s([p,[...S]],f)}const b=[],y=s([m,b],f);for(const S of f)b.push(h(S));return y}case ur:{if(p)switch(p){case"BigInt":return s([p,f.toString()],f);case"Boolean":case"Number":case"String":return s([p,f.valueOf()],f)}if(a&&"toJSON"in f)return h(f.toJSON());const b=[],y=s([m,b],f);for(const S of jv(f))(n||!tr(Ta(f[S])))&&b.push([h(S),h(f[S])]);return y}case Es:return s([m,f.toISOString()],f);case Ts:{const{source:b,flags:y}=f;return s([m,{source:b,flags:y}],f)}case As:{const b=[],y=s([m,b],f);for(const[S,v]of f)(n||!(tr(Ta(S))||tr(Ta(v))))&&b.push([h(S),h(v)]);return y}case _s:{const b=[],y=s([m,b],f);for(const S of f)(n||!tr(Ta(S)))&&b.push(h(S));return y}}const{message:d}=f;return s([m,{name:p,message:d}],f)};return h},hp=(n,{json:a,lossy:u}={})=>{const r=[];return Lv(!(a||u),!!a,new Map,r)(n),r},rr=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?fp(hp(n,a)):structuredClone(n):(n,a)=>fp(hp(n,a));function Bv(n,a){const u=[{type:"text",value:"↩"}];return a>1&&u.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),u}function Hv(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function qv(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=n.options.footnoteBackContent||Bv,r=n.options.footnoteBackLabel||Hv,s=n.options.footnoteLabel||"Footnotes",h=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let p=-1;for(;++p<n.footnoteOrder.length;){const d=n.footnoteById.get(n.footnoteOrder[p]);if(!d)continue;const b=n.all(d),y=String(d.identifier).toUpperCase(),S=Ai(y.toLowerCase());let v=0;const z=[],L=n.footnoteCounts.get(y);for(;L!==void 0&&++v<=L;){z.length>0&&z.push({type:"text",value:" "});let K=typeof u=="string"?u:u(p,v);typeof K=="string"&&(K={type:"text",value:K}),z.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+S+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(p,v),className:["data-footnote-backref"]},children:Array.isArray(K)?K:[K]})}const q=b[b.length-1];if(q&&q.type==="element"&&q.tagName==="p"){const K=q.children[q.children.length-1];K&&K.type==="text"?K.value+=" ":q.children.push({type:"text",value:" "}),q.children.push(...z)}else b.push(...z);const N={type:"element",tagName:"li",properties:{id:a+"fn-"+S},children:n.wrap(b,!0)};n.patch(d,N),m.push(N)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:h,properties:{...rr(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
57
|
+
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(m,!0)},{type:"text",value:`
|
|
58
|
+
`}]}}const dr=(function(n){if(n==null)return Xv;if(typeof n=="function")return mr(n);if(typeof n=="object")return Array.isArray(n)?Yv(n):Vv(n);if(typeof n=="string")return Gv(n);throw new Error("Expected function, string, or object as test")});function Yv(n){const a=[];let u=-1;for(;++u<n.length;)a[u]=dr(n[u]);return mr(r);function r(...s){let h=-1;for(;++h<a.length;)if(a[h].apply(this,s))return!0;return!1}}function Vv(n){const a=n;return mr(u);function u(r){const s=r;let h;for(h in n)if(s[h]!==a[h])return!1;return!0}}function Gv(n){return mr(a);function a(u){return u&&u.type===n}}function mr(n){return a;function a(u,r,s){return!!(Qv(u)&&n.call(this,u,typeof r=="number"?r:void 0,s||void 0))}}function Xv(){return!0}function Qv(n){return n!==null&&typeof n=="object"&&"type"in n}const dg=[],Zv=!0,os=!1,Kv="skip";function mg(n,a,u,r){let s;typeof a=="function"&&typeof u!="function"?(r=u,u=a):s=a;const h=dr(s),f=r?-1:1;m(n,void 0,[])();function m(p,d,b){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const v=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return S;function S(){let v=dg,z,L,q;if((!a||h(p,d,b[b.length-1]||void 0))&&(v=Jv(u(p,b)),v[0]===os))return v;if("children"in p&&p.children){const N=p;if(N.children&&v[0]!==Kv)for(L=(r?N.children.length:-1)+f,q=b.concat(N);L>-1&&L<N.children.length;){const K=N.children[L];if(z=m(K,L,q)(),z[0]===os)return z;L=typeof z[1]=="number"?z[1]:L+f}}return v}}}function Jv(n){return Array.isArray(n)?n:typeof n=="number"?[Zv,n]:n==null?dg:[n]}function zs(n,a,u,r){let s,h,f;typeof a=="function"&&typeof u!="function"?(h=void 0,f=a,s=u):(h=a,f=u,s=r),mg(n,h,m,s);function m(p,d){const b=d[d.length-1],y=b?b.children.indexOf(p):void 0;return f(p,y,b)}}const cs={}.hasOwnProperty,Fv={};function Iv(n,a){const u=a||Fv,r=new Map,s=new Map,h=new Map,f={...Mv,...u.handlers},m={all:d,applyData:Wv,definitionById:r,footnoteById:s,footnoteCounts:h,footnoteOrder:[],handlers:f,one:p,options:u,patch:$v,wrap:eS};return zs(n,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const y=b.type==="definition"?r:s,S=String(b.identifier).toUpperCase();y.has(S)||y.set(S,b)}}),m;function p(b,y){const S=b.type,v=m.handlers[S];if(cs.call(m.handlers,S)&&v)return v(m,b,y);if(m.options.passThrough&&m.options.passThrough.includes(S)){if("children"in b){const{children:L,...q}=b,N=rr(q);return N.children=m.all(b),N}return rr(b)}return(m.options.unknownHandler||Pv)(m,b,y)}function d(b){const y=[];if("children"in b){const S=b.children;let v=-1;for(;++v<S.length;){const z=m.one(S[v],b);if(z){if(v&&S[v-1].type==="break"&&(!Array.isArray(z)&&z.type==="text"&&(z.value=dp(z.value)),!Array.isArray(z)&&z.type==="element")){const L=z.children[0];L&&L.type==="text"&&(L.value=dp(L.value))}Array.isArray(z)?y.push(...z):y.push(z)}}}return y}}function $v(n,a){n.position&&(a.position=B0(n))}function Wv(n,a){let u=a;if(n&&n.data){const r=n.data.hName,s=n.data.hChildren,h=n.data.hProperties;if(typeof r=="string")if(u.type==="element")u.tagName=r;else{const f="children"in u?u.children:[u];u={type:"element",tagName:r,properties:{},children:f}}u.type==="element"&&h&&Object.assign(u.properties,rr(h)),"children"in u&&u.children&&s!==null&&s!==void 0&&(u.children=s)}return u}function Pv(n,a){const u=a.data||{},r="value"in a&&!(cs.call(u,"hProperties")||cs.call(u,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function eS(n,a){const u=[];let r=-1;for(a&&u.push({type:"text",value:`
|
|
59
|
+
`});++r<n.length;)r&&u.push({type:"text",value:`
|
|
60
|
+
`}),u.push(n[r]);return a&&n.length>0&&u.push({type:"text",value:`
|
|
61
|
+
`}),u}function dp(n){let a=0,u=n.charCodeAt(a);for(;u===9||u===32;)a++,u=n.charCodeAt(a);return n.slice(a)}function mp(n,a){const u=Iv(n,a),r=u.one(n,void 0),s=qv(u),h=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return s&&h.children.push({type:"text",value:`
|
|
62
|
+
`},s),h}function tS(n,a){return n&&"run"in n?async function(u,r){const s=mp(u,{file:r,...a});await n.run(s,r)}:function(u,r){return mp(u,{file:r,...n||a})}}function pp(n){if(n)throw n}var Xc,gp;function nS(){if(gp)return Xc;gp=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,u=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):a.call(d)==="[object Array]"},h=function(d){if(!d||a.call(d)!=="[object Object]")return!1;var b=n.call(d,"constructor"),y=d.constructor&&d.constructor.prototype&&n.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!b&&!y)return!1;var S;for(S in d);return typeof S>"u"||n.call(d,S)},f=function(d,b){u&&b.name==="__proto__"?u(d,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):d[b.name]=b.newValue},m=function(d,b){if(b==="__proto__")if(n.call(d,b)){if(r)return r(d,b).value}else return;return d[b]};return Xc=function p(){var d,b,y,S,v,z,L=arguments[0],q=1,N=arguments.length,K=!1;for(typeof L=="boolean"&&(K=L,L=arguments[1]||{},q=2),(L==null||typeof L!="object"&&typeof L!="function")&&(L={});q<N;++q)if(d=arguments[q],d!=null)for(b in d)y=m(L,b),S=m(d,b),L!==S&&(K&&S&&(h(S)||(v=s(S)))?(v?(v=!1,z=y&&s(y)?y:[]):z=y&&h(y)?y:{},f(L,{name:b,newValue:p(K,z,S)})):typeof S<"u"&&f(L,{name:b,newValue:S}));return L},Xc}var lS=nS();const Qc=cr(lS);function ss(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function iS(){const n=[],a={run:u,use:r};return a;function u(...s){let h=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);m(null,...s);function m(p,...d){const b=n[++h];let y=-1;if(p){f(p);return}for(;++y<s.length;)(d[y]===null||d[y]===void 0)&&(d[y]=s[y]);s=d,b?aS(b,m)(...d):f(null,...d)}}function r(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function aS(n,a){let u;return r;function r(...f){const m=n.length>f.length;let p;m&&f.push(s);try{p=n.apply(this,f)}catch(d){const b=d;if(m&&u)throw b;return s(b)}m||(p&&p.then&&typeof p.then=="function"?p.then(h,s):p instanceof Error?s(p):h(p))}function s(f,...m){u||(u=!0,a(f,...m))}function h(f){s(null,f)}}const sn={basename:uS,dirname:rS,extname:oS,join:cS,sep:"/"};function uS(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Na(n);let u=0,r=-1,s=n.length,h;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(h){u=s+1;break}}else r<0&&(h=!0,r=s+1);return r<0?"":n.slice(u,r)}if(a===n)return"";let f=-1,m=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(h){u=s+1;break}}else f<0&&(h=!0,f=s+1),m>-1&&(n.codePointAt(s)===a.codePointAt(m--)?m<0&&(r=s):(m=-1,r=f));return u===r?r=f:r<0&&(r=n.length),n.slice(u,r)}function rS(n){if(Na(n),n.length===0)return".";let a=-1,u=n.length,r;for(;--u;)if(n.codePointAt(u)===47){if(r){a=u;break}}else r||(r=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function oS(n){Na(n);let a=n.length,u=-1,r=0,s=-1,h=0,f;for(;a--;){const m=n.codePointAt(a);if(m===47){if(f){r=a+1;break}continue}u<0&&(f=!0,u=a+1),m===46?s<0?s=a:h!==1&&(h=1):s>-1&&(h=-1)}return s<0||u<0||h===0||h===1&&s===u-1&&s===r+1?"":n.slice(s,u)}function cS(...n){let a=-1,u;for(;++a<n.length;)Na(n[a]),n[a]&&(u=u===void 0?n[a]:u+"/"+n[a]);return u===void 0?".":sS(u)}function sS(n){Na(n);const a=n.codePointAt(0)===47;let u=fS(n,!a);return u.length===0&&!a&&(u="."),u.length>0&&n.codePointAt(n.length-1)===47&&(u+="/"),a?"/"+u:u}function fS(n,a){let u="",r=0,s=-1,h=0,f=-1,m,p;for(;++f<=n.length;){if(f<n.length)m=n.codePointAt(f);else{if(m===47)break;m=47}if(m===47){if(!(s===f-1||h===1))if(s!==f-1&&h===2){if(u.length<2||r!==2||u.codePointAt(u.length-1)!==46||u.codePointAt(u.length-2)!==46){if(u.length>2){if(p=u.lastIndexOf("/"),p!==u.length-1){p<0?(u="",r=0):(u=u.slice(0,p),r=u.length-1-u.lastIndexOf("/")),s=f,h=0;continue}}else if(u.length>0){u="",r=0,s=f,h=0;continue}}a&&(u=u.length>0?u+"/..":"..",r=2)}else u.length>0?u+="/"+n.slice(s+1,f):u=n.slice(s+1,f),r=f-s-1;s=f,h=0}else m===46&&h>-1?h++:h=-1}return u}function Na(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const hS={cwd:dS};function dS(){return"/"}function fs(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function mS(n){if(typeof n=="string")n=new URL(n);else if(!fs(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return pS(n)}function pS(n){if(n.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const a=n.pathname;let u=-1;for(;++u<a.length;)if(a.codePointAt(u)===37&&a.codePointAt(u+1)===50){const r=a.codePointAt(u+2);if(r===70||r===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const Zc=["history","path","basename","stem","extname","dirname"];class pg{constructor(a){let u;a?fs(a)?u={path:a}:typeof a=="string"||gS(a)?u={value:a}:u=a:u={},this.cwd="cwd"in u?"":hS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Zc.length;){const h=Zc[r];h in u&&u[h]!==void 0&&u[h]!==null&&(this[h]=h==="history"?[...u[h]]:u[h])}let s;for(s in u)Zc.includes(s)||(this[s]=u[s])}get basename(){return typeof this.path=="string"?sn.basename(this.path):void 0}set basename(a){Jc(a,"basename"),Kc(a,"basename"),this.path=sn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?sn.dirname(this.path):void 0}set dirname(a){yp(this.basename,"dirname"),this.path=sn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?sn.extname(this.path):void 0}set extname(a){if(Kc(a,"extname"),yp(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=sn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){fs(a)&&(a=mS(a)),Jc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?sn.basename(this.path,this.extname):void 0}set stem(a){Jc(a,"stem"),Kc(a,"stem"),this.path=sn.join(this.dirname||"",a+(this.extname||""))}fail(a,u,r){const s=this.message(a,u,r);throw s.fatal=!0,s}info(a,u,r){const s=this.message(a,u,r);return s.fatal=void 0,s}message(a,u,r){const s=new yt(a,u,r);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Kc(n,a){if(n&&n.includes(sn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+sn.sep+"`")}function Jc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function yp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function gS(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const yS=(function(n){const r=this.constructor.prototype,s=r[n],h=function(){return s.apply(h,arguments)};return Object.setPrototypeOf(h,r),h}),bS={}.hasOwnProperty;class Cs extends yS{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=iS()}copy(){const a=new Cs;let u=-1;for(;++u<this.attachers.length;){const r=this.attachers[u];a.use(...r)}return a.data(Qc(!0,{},this.namespace)),a}data(a,u){return typeof a=="string"?arguments.length===2?($c("data",this.frozen),this.namespace[a]=u,this):bS.call(this.namespace,a)&&this.namespace[a]||void 0:a?($c("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[u,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const s=u.call(a,...r);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const u=nr(a),r=this.parser||this.Parser;return Fc("parse",r),r(String(u),u)}process(a,u){const r=this;return this.freeze(),Fc("process",this.parser||this.Parser),Ic("process",this.compiler||this.Compiler),u?s(void 0,u):new Promise(s);function s(h,f){const m=nr(a),p=r.parse(m);r.run(p,m,function(b,y,S){if(b||!y||!S)return d(b);const v=y,z=r.stringify(v,S);SS(z)?S.value=z:S.result=z,d(b,S)});function d(b,y){b||!y?f(b):h?h(y):u(void 0,y)}}}processSync(a){let u=!1,r;return this.freeze(),Fc("processSync",this.parser||this.Parser),Ic("processSync",this.compiler||this.Compiler),this.process(a,s),xp("processSync","process",u),r;function s(h,f){u=!0,pp(h),r=f}}run(a,u,r){bp(a),this.freeze();const s=this.transformers;return!r&&typeof u=="function"&&(r=u,u=void 0),r?h(void 0,r):new Promise(h);function h(f,m){const p=nr(u);s.run(a,p,d);function d(b,y,S){const v=y||a;b?m(b):f?f(v):r(void 0,v,S)}}}runSync(a,u){let r=!1,s;return this.run(a,u,h),xp("runSync","run",r),s;function h(f,m){pp(f),s=m,r=!0}}stringify(a,u){this.freeze();const r=nr(u),s=this.compiler||this.Compiler;return Ic("stringify",s),bp(a),s(a,r)}use(a,...u){const r=this.attachers,s=this.namespace;if($c("use",this.frozen),a!=null)if(typeof a=="function")p(a,u);else if(typeof a=="object")Array.isArray(a)?m(a):f(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function h(d){if(typeof d=="function")p(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[b,...y]=d;p(b,y)}else f(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function f(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");m(d.plugins),d.settings&&(s.settings=Qc(!0,s.settings,d.settings))}function m(d){let b=-1;if(d!=null)if(Array.isArray(d))for(;++b<d.length;){const y=d[b];h(y)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function p(d,b){let y=-1,S=-1;for(;++y<r.length;)if(r[y][0]===d){S=y;break}if(S===-1)r.push([d,...b]);else if(b.length>0){let[v,...z]=b;const L=r[S][1];ss(L)&&ss(v)&&(v=Qc(!0,L,v)),r[S]=[d,v,...z]}}}}const xS=new Cs().freeze();function Fc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Ic(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function $c(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bp(n){if(!ss(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function xp(n,a,u){if(!u)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function nr(n){return vS(n)?n:new pg(n)}function vS(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function SS(n){return typeof n=="string"||kS(n)}function kS(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const ES="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vp=[],Sp={allowDangerousHtml:!0},TS=/^(https?|ircs?|mailto|xmpp)$/i,AS=[{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 _S(n){const a=zS(n),u=CS(n);return wS(a.runSync(a.parse(u),u),n)}function zS(n){const a=n.rehypePlugins||vp,u=n.remarkPlugins||vp,r=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Sp}:Sp;return xS().use(uv).use(u).use(tS,r).use(a)}function CS(n){const a=n.children||"",u=new pg;return typeof a=="string"&&(u.value=a),u}function wS(n,a){const u=a.allowedElements,r=a.allowElement,s=a.components,h=a.disallowedElements,f=a.skipHtml,m=a.unwrapDisallowed,p=a.urlTransform||DS;for(const b of AS)Object.hasOwn(a,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+ES+b.id,void 0);return zs(n,d),G0(n,{Fragment:X.Fragment,components:s,ignoreInvalidStyle:!0,jsx:X.jsx,jsxs:X.jsxs,passKeys:!0,passNode:!0});function d(b,y,S){if(b.type==="raw"&&S&&typeof y=="number")return f?S.children.splice(y,1):S.children[y]={type:"text",value:b.value},y;if(b.type==="element"){let v;for(v in Yc)if(Object.hasOwn(Yc,v)&&Object.hasOwn(b.properties,v)){const z=b.properties[v],L=Yc[v];(L===null||L.includes(b.tagName))&&(b.properties[v]=p(String(z||""),v,b))}}if(b.type==="element"){let v=u?!u.includes(b.tagName):h?h.includes(b.tagName):!1;if(!v&&r&&typeof y=="number"&&(v=!r(b,y,S)),v&&S&&typeof y=="number")return m&&b.children?S.children.splice(y,1,...b.children):S.children.splice(y,1),y}}}function DS(n){const a=n.indexOf(":"),u=n.indexOf("?"),r=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||u!==-1&&a>u||r!==-1&&a>r||TS.test(n.slice(0,a))?n:""}function kp(n,a){const u=String(n);if(typeof a!="string")throw new TypeError("Expected character");let r=0,s=u.indexOf(a);for(;s!==-1;)r++,s=u.indexOf(a,s+a.length);return r}function OS(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function MS(n,a,u){const s=dr((u||{}).ignore||[]),h=NS(a);let f=-1;for(;++f<h.length;)mg(n,"text",m);function m(d,b){let y=-1,S;for(;++y<b.length;){const v=b[y],z=S?S.children:void 0;if(s(v,z?z.indexOf(v):void 0,S))return;S=v}if(S)return p(d,b)}function p(d,b){const y=b[b.length-1],S=h[f][0],v=h[f][1];let z=0;const q=y.children.indexOf(d);let N=!1,K=[];S.lastIndex=0;let Z=S.exec(d.value);for(;Z;){const ie=Z.index,ue={index:Z.index,input:Z.input,stack:[...b,d]};let D=v(...Z,ue);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?S.lastIndex=ie+1:(z!==ie&&K.push({type:"text",value:d.value.slice(z,ie)}),Array.isArray(D)?K.push(...D):D&&K.push(D),z=ie+Z[0].length,N=!0),!S.global)break;Z=S.exec(d.value)}return N?(z<d.value.length&&K.push({type:"text",value:d.value.slice(z)}),y.children.splice(q,1,...K)):K=[d],q+K.length}}function NS(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const u=!n[0]||Array.isArray(n[0])?n:[n];let r=-1;for(;++r<u.length;){const s=u[r];a.push([RS(s[0]),US(s[1])])}return a}function RS(n){return typeof n=="string"?new RegExp(OS(n),"g"):n}function US(n){return typeof n=="function"?n:function(){return n}}const Wc="phrasing",Pc=["autolink","link","image","label"];function jS(){return{transforms:[GS],enter:{literalAutolink:BS,literalAutolinkEmail:es,literalAutolinkHttp:es,literalAutolinkWww:es},exit:{literalAutolink:VS,literalAutolinkEmail:YS,literalAutolinkHttp:HS,literalAutolinkWww:qS}}}function LS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Wc,notInConstruct:Pc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Wc,notInConstruct:Pc},{character:":",before:"[ps]",after:"\\/",inConstruct:Wc,notInConstruct:Pc}]}}function BS(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function es(n){this.config.enter.autolinkProtocol.call(this,n)}function HS(n){this.config.exit.autolinkProtocol.call(this,n)}function qS(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function YS(n){this.config.exit.autolinkEmail.call(this,n)}function VS(n){this.exit(n)}function GS(n){MS(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,XS],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,QS]],{ignore:["link","linkReference"]})}function XS(n,a,u,r,s){let h="";if(!gg(s)||(/^w/i.test(a)&&(u=a+u,a="",h="http://"),!ZS(u)))return!1;const f=KS(u+r);if(!f[0])return!1;const m={type:"link",title:null,url:h+a+f[0],children:[{type:"text",value:a+f[0]}]};return f[1]?[m,{type:"text",value:f[1]}]:m}function QS(n,a,u,r){return!gg(r,!0)||/[-\d_]$/.test(u)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+u,children:[{type:"text",value:a+"@"+u}]}}function ZS(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function KS(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let u=a[0],r=u.indexOf(")");const s=kp(n,"(");let h=kp(n,")");for(;r!==-1&&s>h;)n+=u.slice(0,r+1),u=u.slice(r+1),r=u.indexOf(")"),h++;return[n,u]}function gg(n,a){const u=n.input.charCodeAt(n.index-1);return(n.index===0||wl(u)||sr(u))&&(!a||u!==47)}yg.peek=n2;function JS(){this.buffer()}function FS(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function IS(){this.buffer()}function $S(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function WS(n){const a=this.resume(),u=this.stack[this.stack.length-1];u.type,u.identifier=an(this.sliceSerialize(n)).toLowerCase(),u.label=a}function PS(n){this.exit(n)}function e2(n){const a=this.resume(),u=this.stack[this.stack.length-1];u.type,u.identifier=an(this.sliceSerialize(n)).toLowerCase(),u.label=a}function t2(n){this.exit(n)}function n2(){return"["}function yg(n,a,u,r){const s=u.createTracker(r);let h=s.move("[^");const f=u.enter("footnoteReference"),m=u.enter("reference");return h+=s.move(u.safe(u.associationId(n),{after:"]",before:h})),m(),f(),h+=s.move("]"),h}function l2(){return{enter:{gfmFootnoteCallString:JS,gfmFootnoteCall:FS,gfmFootnoteDefinitionLabelString:IS,gfmFootnoteDefinition:$S},exit:{gfmFootnoteCallString:WS,gfmFootnoteCall:PS,gfmFootnoteDefinitionLabelString:e2,gfmFootnoteDefinition:t2}}}function i2(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:u,footnoteReference:yg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function u(r,s,h,f){const m=h.createTracker(f);let p=m.move("[^");const d=h.enter("footnoteDefinition"),b=h.enter("label");return p+=m.move(h.safe(h.associationId(r),{before:p,after:"]"})),b(),p+=m.move("]:"),r.children&&r.children.length>0&&(m.shift(4),p+=m.move((a?`
|
|
63
|
+
`:" ")+h.indentLines(h.containerFlow(r,m.current()),a?bg:a2))),d(),p}}function a2(n,a,u){return a===0?n:bg(n,a,u)}function bg(n,a,u){return(u?"":" ")+n}const u2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];xg.peek=f2;function r2(){return{canContainEols:["delete"],enter:{strikethrough:c2},exit:{strikethrough:s2}}}function o2(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:u2}],handlers:{delete:xg}}}function c2(n){this.enter({type:"delete",children:[]},n)}function s2(n){this.exit(n)}function xg(n,a,u,r){const s=u.createTracker(r),h=u.enter("strikethrough");let f=s.move("~~");return f+=u.containerPhrasing(n,{...s.current(),before:f,after:"~"}),f+=s.move("~~"),h(),f}function f2(){return"~"}function h2(n){return n.length}function d2(n,a){const u=a||{},r=(u.align||[]).concat(),s=u.stringLength||h2,h=[],f=[],m=[],p=[];let d=0,b=-1;for(;++b<n.length;){const L=[],q=[];let N=-1;for(n[b].length>d&&(d=n[b].length);++N<n[b].length;){const K=m2(n[b][N]);if(u.alignDelimiters!==!1){const Z=s(K);q[N]=Z,(p[N]===void 0||Z>p[N])&&(p[N]=Z)}L.push(K)}f[b]=L,m[b]=q}let y=-1;if(typeof r=="object"&&"length"in r)for(;++y<d;)h[y]=Ep(r[y]);else{const L=Ep(r);for(;++y<d;)h[y]=L}y=-1;const S=[],v=[];for(;++y<d;){const L=h[y];let q="",N="";L===99?(q=":",N=":"):L===108?q=":":L===114&&(N=":");let K=u.alignDelimiters===!1?1:Math.max(1,p[y]-q.length-N.length);const Z=q+"-".repeat(K)+N;u.alignDelimiters!==!1&&(K=q.length+K+N.length,K>p[y]&&(p[y]=K),v[y]=K),S[y]=Z}f.splice(1,0,S),m.splice(1,0,v),b=-1;const z=[];for(;++b<f.length;){const L=f[b],q=m[b];y=-1;const N=[];for(;++y<d;){const K=L[y]||"";let Z="",ie="";if(u.alignDelimiters!==!1){const ue=p[y]-(q[y]||0),D=h[y];D===114?Z=" ".repeat(ue):D===99?ue%2?(Z=" ".repeat(ue/2+.5),ie=" ".repeat(ue/2-.5)):(Z=" ".repeat(ue/2),ie=Z):ie=" ".repeat(ue)}u.delimiterStart!==!1&&!y&&N.push("|"),u.padding!==!1&&!(u.alignDelimiters===!1&&K==="")&&(u.delimiterStart!==!1||y)&&N.push(" "),u.alignDelimiters!==!1&&N.push(Z),N.push(K),u.alignDelimiters!==!1&&N.push(ie),u.padding!==!1&&N.push(" "),(u.delimiterEnd!==!1||y!==d-1)&&N.push("|")}z.push(u.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return z.join(`
|
|
64
|
+
`)}function m2(n){return n==null?"":String(n)}function Ep(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function p2(n,a,u,r){const s=u.enter("blockquote"),h=u.createTracker(r);h.move("> "),h.shift(2);const f=u.indentLines(u.containerFlow(n,h.current()),g2);return s(),f}function g2(n,a,u){return">"+(u?"":" ")+n}function y2(n,a){return Tp(n,a.inConstruct,!0)&&!Tp(n,a.notInConstruct,!1)}function Tp(n,a,u){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return u;let r=-1;for(;++r<a.length;)if(n.includes(a[r]))return!0;return!1}function Ap(n,a,u,r){let s=-1;for(;++s<u.unsafe.length;)if(u.unsafe[s].character===`
|
|
65
|
+
`&&y2(u.stack,u.unsafe[s]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
66
|
+
`}function b2(n,a){const u=String(n);let r=u.indexOf(a),s=r,h=0,f=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===s?++h>f&&(f=h):h=1,s=r+a.length,r=u.indexOf(a,s);return f}function x2(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function v2(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function S2(n,a,u,r){const s=v2(u),h=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(x2(n,u)){const y=u.enter("codeIndented"),S=u.indentLines(h,k2);return y(),S}const m=u.createTracker(r),p=s.repeat(Math.max(b2(h,s)+1,3)),d=u.enter("codeFenced");let b=m.move(p);if(n.lang){const y=u.enter(`codeFencedLang${f}`);b+=m.move(u.safe(n.lang,{before:b,after:" ",encode:["`"],...m.current()})),y()}if(n.lang&&n.meta){const y=u.enter(`codeFencedMeta${f}`);b+=m.move(" "),b+=m.move(u.safe(n.meta,{before:b,after:`
|
|
67
|
+
`,encode:["`"],...m.current()})),y()}return b+=m.move(`
|
|
68
|
+
`),h&&(b+=m.move(h+`
|
|
69
|
+
`)),b+=m.move(p),d(),b}function k2(n,a,u){return(u?"":" ")+n}function ws(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function E2(n,a,u,r){const s=ws(u),h=s==='"'?"Quote":"Apostrophe",f=u.enter("definition");let m=u.enter("label");const p=u.createTracker(r);let d=p.move("[");return d+=p.move(u.safe(u.associationId(n),{before:d,after:"]",...p.current()})),d+=p.move("]: "),m(),!n.url||/[\0- \u007F]/.test(n.url)?(m=u.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(u.safe(n.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(m=u.enter("destinationRaw"),d+=p.move(u.safe(n.url,{before:d,after:n.title?" ":`
|
|
70
|
+
`,...p.current()}))),m(),n.title&&(m=u.enter(`title${h}`),d+=p.move(" "+s),d+=p.move(u.safe(n.title,{before:d,after:s,...p.current()})),d+=p.move(s),m()),f(),d}function T2(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function Da(n){return"&#x"+n.toString(16).toUpperCase()+";"}function or(n,a,u){const r=Ei(n),s=Ei(a);return r===void 0?s===void 0?u==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}vg.peek=A2;function vg(n,a,u,r){const s=T2(u),h=u.enter("emphasis"),f=u.createTracker(r),m=f.move(s);let p=f.move(u.containerPhrasing(n,{after:s,before:m,...f.current()}));const d=p.charCodeAt(0),b=or(r.before.charCodeAt(r.before.length-1),d,s);b.inside&&(p=Da(d)+p.slice(1));const y=p.charCodeAt(p.length-1),S=or(r.after.charCodeAt(0),y,s);S.inside&&(p=p.slice(0,-1)+Da(y));const v=f.move(s);return h(),u.attentionEncodeSurroundingInfo={after:S.outside,before:b.outside},m+p+v}function A2(n,a,u){return u.options.emphasis||"*"}function _2(n,a){let u=!1;return zs(n,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return u=!0,os}),!!((!n.depth||n.depth<3)&&vs(n)&&(a.options.setext||u))}function z2(n,a,u,r){const s=Math.max(Math.min(6,n.depth||1),1),h=u.createTracker(r);if(_2(n,u)){const b=u.enter("headingSetext"),y=u.enter("phrasing"),S=u.containerPhrasing(n,{...h.current(),before:`
|
|
71
|
+
`,after:`
|
|
72
|
+
`});return y(),b(),S+`
|
|
73
|
+
`+(s===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
|
|
74
|
+
`))+1))}const f="#".repeat(s),m=u.enter("headingAtx"),p=u.enter("phrasing");h.move(f+" ");let d=u.containerPhrasing(n,{before:"# ",after:`
|
|
75
|
+
`,...h.current()});return/^[\t ]/.test(d)&&(d=Da(d.charCodeAt(0))+d.slice(1)),d=d?f+" "+d:f,u.options.closeAtx&&(d+=" "+f),p(),m(),d}Sg.peek=C2;function Sg(n){return n.value||""}function C2(){return"<"}kg.peek=w2;function kg(n,a,u,r){const s=ws(u),h=s==='"'?"Quote":"Apostrophe",f=u.enter("image");let m=u.enter("label");const p=u.createTracker(r);let d=p.move("![");return d+=p.move(u.safe(n.alt,{before:d,after:"]",...p.current()})),d+=p.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=u.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(u.safe(n.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(m=u.enter("destinationRaw"),d+=p.move(u.safe(n.url,{before:d,after:n.title?" ":")",...p.current()}))),m(),n.title&&(m=u.enter(`title${h}`),d+=p.move(" "+s),d+=p.move(u.safe(n.title,{before:d,after:s,...p.current()})),d+=p.move(s),m()),d+=p.move(")"),f(),d}function w2(){return"!"}Eg.peek=D2;function Eg(n,a,u,r){const s=n.referenceType,h=u.enter("imageReference");let f=u.enter("label");const m=u.createTracker(r);let p=m.move("![");const d=u.safe(n.alt,{before:p,after:"]",...m.current()});p+=m.move(d+"]["),f();const b=u.stack;u.stack=[],f=u.enter("reference");const y=u.safe(u.associationId(n),{before:p,after:"]",...m.current()});return f(),u.stack=b,h(),s==="full"||!d||d!==y?p+=m.move(y+"]"):s==="shortcut"?p=p.slice(0,-1):p+=m.move("]"),p}function D2(){return"!"}Tg.peek=O2;function Tg(n,a,u){let r=n.value||"",s="`",h=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(r);)s+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++h<u.unsafe.length;){const f=u.unsafe[h],m=u.compilePattern(f);let p;if(f.atBreak)for(;p=m.exec(r);){let d=p.index;r.charCodeAt(d)===10&&r.charCodeAt(d-1)===13&&d--,r=r.slice(0,d)+" "+r.slice(p.index+1)}}return s+r+s}function O2(){return"`"}function Ag(n,a){const u=vs(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(u===n.url||"mailto:"+u===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}_g.peek=M2;function _g(n,a,u,r){const s=ws(u),h=s==='"'?"Quote":"Apostrophe",f=u.createTracker(r);let m,p;if(Ag(n,u)){const b=u.stack;u.stack=[],m=u.enter("autolink");let y=f.move("<");return y+=f.move(u.containerPhrasing(n,{before:y,after:">",...f.current()})),y+=f.move(">"),m(),u.stack=b,y}m=u.enter("link"),p=u.enter("label");let d=f.move("[");return d+=f.move(u.containerPhrasing(n,{before:d,after:"](",...f.current()})),d+=f.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=u.enter("destinationLiteral"),d+=f.move("<"),d+=f.move(u.safe(n.url,{before:d,after:">",...f.current()})),d+=f.move(">")):(p=u.enter("destinationRaw"),d+=f.move(u.safe(n.url,{before:d,after:n.title?" ":")",...f.current()}))),p(),n.title&&(p=u.enter(`title${h}`),d+=f.move(" "+s),d+=f.move(u.safe(n.title,{before:d,after:s,...f.current()})),d+=f.move(s),p()),d+=f.move(")"),m(),d}function M2(n,a,u){return Ag(n,u)?"<":"["}zg.peek=N2;function zg(n,a,u,r){const s=n.referenceType,h=u.enter("linkReference");let f=u.enter("label");const m=u.createTracker(r);let p=m.move("[");const d=u.containerPhrasing(n,{before:p,after:"]",...m.current()});p+=m.move(d+"]["),f();const b=u.stack;u.stack=[],f=u.enter("reference");const y=u.safe(u.associationId(n),{before:p,after:"]",...m.current()});return f(),u.stack=b,h(),s==="full"||!d||d!==y?p+=m.move(y+"]"):s==="shortcut"?p=p.slice(0,-1):p+=m.move("]"),p}function N2(){return"["}function Ds(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function R2(n){const a=Ds(n),u=n.options.bulletOther;if(!u)return a==="*"?"-":"*";if(u!=="*"&&u!=="+"&&u!=="-")throw new Error("Cannot serialize items with `"+u+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(u===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+u+"`) to be different");return u}function U2(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function Cg(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function j2(n,a,u,r){const s=u.enter("list"),h=u.bulletCurrent;let f=n.ordered?U2(u):Ds(u);const m=n.ordered?f==="."?")":".":R2(u);let p=a&&u.bulletLastUsed?f===u.bulletLastUsed:!1;if(!n.ordered){const b=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&b&&(!b.children||!b.children[0])&&u.stack[u.stack.length-1]==="list"&&u.stack[u.stack.length-2]==="listItem"&&u.stack[u.stack.length-3]==="list"&&u.stack[u.stack.length-4]==="listItem"&&u.indexStack[u.indexStack.length-1]===0&&u.indexStack[u.indexStack.length-2]===0&&u.indexStack[u.indexStack.length-3]===0&&(p=!0),Cg(u)===f&&b){let y=-1;for(;++y<n.children.length;){const S=n.children[y];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(f=m),u.bulletCurrent=f;const d=u.containerFlow(n,r);return u.bulletLastUsed=f,u.bulletCurrent=h,s(),d}function L2(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function B2(n,a,u,r){const s=L2(u);let h=u.bulletCurrent||Ds(u);a&&a.type==="list"&&a.ordered&&(h=(typeof a.start=="number"&&a.start>-1?a.start:1)+(u.options.incrementListMarker===!1?0:a.children.indexOf(n))+h);let f=h.length+1;(s==="tab"||s==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(f=Math.ceil(f/4)*4);const m=u.createTracker(r);m.move(h+" ".repeat(f-h.length)),m.shift(f);const p=u.enter("listItem"),d=u.indentLines(u.containerFlow(n,m.current()),b);return p(),d;function b(y,S,v){return S?(v?"":" ".repeat(f))+y:(v?h:h+" ".repeat(f-h.length))+y}}function H2(n,a,u,r){const s=u.enter("paragraph"),h=u.enter("phrasing"),f=u.containerPhrasing(n,r);return h(),s(),f}const q2=dr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Y2(n,a,u,r){return(n.children.some(function(f){return q2(f)})?u.containerPhrasing:u.containerFlow).call(u,n,r)}function V2(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}wg.peek=G2;function wg(n,a,u,r){const s=V2(u),h=u.enter("strong"),f=u.createTracker(r),m=f.move(s+s);let p=f.move(u.containerPhrasing(n,{after:s,before:m,...f.current()}));const d=p.charCodeAt(0),b=or(r.before.charCodeAt(r.before.length-1),d,s);b.inside&&(p=Da(d)+p.slice(1));const y=p.charCodeAt(p.length-1),S=or(r.after.charCodeAt(0),y,s);S.inside&&(p=p.slice(0,-1)+Da(y));const v=f.move(s+s);return h(),u.attentionEncodeSurroundingInfo={after:S.outside,before:b.outside},m+p+v}function G2(n,a,u){return u.options.strong||"*"}function X2(n,a,u,r){return u.safe(n.value,r)}function Q2(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function Z2(n,a,u){const r=(Cg(u)+(u.options.ruleSpaces?" ":"")).repeat(Q2(u));return u.options.ruleSpaces?r.slice(0,-1):r}const Dg={blockquote:p2,break:Ap,code:S2,definition:E2,emphasis:vg,hardBreak:Ap,heading:z2,html:Sg,image:kg,imageReference:Eg,inlineCode:Tg,link:_g,linkReference:zg,list:j2,listItem:B2,paragraph:H2,root:Y2,strong:wg,text:X2,thematicBreak:Z2};function K2(){return{enter:{table:J2,tableData:_p,tableHeader:_p,tableRow:I2},exit:{codeText:$2,table:F2,tableData:ts,tableHeader:ts,tableRow:ts}}}function J2(n){const a=n._align;this.enter({type:"table",align:a.map(function(u){return u==="none"?null:u}),children:[]},n),this.data.inTable=!0}function F2(n){this.exit(n),this.data.inTable=void 0}function I2(n){this.enter({type:"tableRow",children:[]},n)}function ts(n){this.exit(n)}function _p(n){this.enter({type:"tableCell",children:[]},n)}function $2(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,W2));const u=this.stack[this.stack.length-1];u.type,u.value=a,this.exit(n)}function W2(n,a){return a==="|"?a:n}function P2(n){const a=n||{},u=a.tableCellPadding,r=a.tablePipeAlign,s=a.stringLength,h=u?" ":"|";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:S,table:f,tableCell:p,tableRow:m}};function f(v,z,L,q){return d(b(v,L,q),v.align)}function m(v,z,L,q){const N=y(v,L,q),K=d([N]);return K.slice(0,K.indexOf(`
|
|
77
|
+
`))}function p(v,z,L,q){const N=L.enter("tableCell"),K=L.enter("phrasing"),Z=L.containerPhrasing(v,{...q,before:h,after:h});return K(),N(),Z}function d(v,z){return d2(v,{align:z,alignDelimiters:r,padding:u,stringLength:s})}function b(v,z,L){const q=v.children;let N=-1;const K=[],Z=z.enter("table");for(;++N<q.length;)K[N]=y(q[N],z,L);return Z(),K}function y(v,z,L){const q=v.children;let N=-1;const K=[],Z=z.enter("tableRow");for(;++N<q.length;)K[N]=p(q[N],v,z,L);return Z(),K}function S(v,z,L){let q=Dg.inlineCode(v,z,L);return L.stack.includes("tableCell")&&(q=q.replace(/\|/g,"\\$&")),q}}function ek(){return{exit:{taskListCheckValueChecked:zp,taskListCheckValueUnchecked:zp,paragraph:nk}}}function tk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:lk}}}function zp(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function nk(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const u=this.stack[this.stack.length-1];u.type;const r=u.children[0];if(r&&r.type==="text"){const s=a.children;let h=-1,f;for(;++h<s.length;){const m=s[h];if(m.type==="paragraph"){f=m;break}}f===u&&(r.value=r.value.slice(1),r.value.length===0?u.children.shift():u.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,u.position.start=Object.assign({},r.position.start)))}}this.exit(n)}function lk(n,a,u,r){const s=n.children[0],h=typeof n.checked=="boolean"&&s&&s.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",m=u.createTracker(r);h&&m.move(f);let p=Dg.listItem(n,a,u,{...r,...m.current()});return h&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),p;function d(b){return b+f}}function ik(){return[jS(),l2(),r2(),K2(),ek()]}function ak(n){return{extensions:[LS(),i2(n),o2(),P2(n),tk()]}}const uk={tokenize:hk,partial:!0},Og={tokenize:dk,partial:!0},Mg={tokenize:mk,partial:!0},Ng={tokenize:pk,partial:!0},rk={tokenize:gk,partial:!0},Rg={name:"wwwAutolink",tokenize:sk,previous:jg},Ug={name:"protocolAutolink",tokenize:fk,previous:Lg},Rn={name:"emailAutolink",tokenize:ck,previous:Bg},fn={};function ok(){return{text:fn}}let zl=48;for(;zl<123;)fn[zl]=Rn,zl++,zl===58?zl=65:zl===91&&(zl=97);fn[43]=Rn;fn[45]=Rn;fn[46]=Rn;fn[95]=Rn;fn[72]=[Rn,Ug];fn[104]=[Rn,Ug];fn[87]=[Rn,Rg];fn[119]=[Rn,Rg];function ck(n,a,u){const r=this;let s,h;return f;function f(y){return!hs(y)||!Bg.call(r,r.previous)||Os(r.events)?u(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),m(y))}function m(y){return hs(y)?(n.consume(y),m):y===64?(n.consume(y),p):u(y)}function p(y){return y===46?n.check(rk,b,d)(y):y===45||y===95||gt(y)?(h=!0,n.consume(y),p):b(y)}function d(y){return n.consume(y),s=!0,p}function b(y){return h&&s&&St(r.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(y)):u(y)}}function sk(n,a,u){const r=this;return s;function s(f){return f!==87&&f!==119||!jg.call(r,r.previous)||Os(r.events)?u(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(uk,n.attempt(Og,n.attempt(Mg,h),u),u)(f))}function h(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function fk(n,a,u){const r=this;let s="",h=!1;return f;function f(y){return(y===72||y===104)&&Lg.call(r,r.previous)&&!Os(r.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),n.consume(y),m):u(y)}function m(y){if(St(y)&&s.length<5)return s+=String.fromCodePoint(y),n.consume(y),m;if(y===58){const S=s.toLowerCase();if(S==="http"||S==="https")return n.consume(y),p}return u(y)}function p(y){return y===47?(n.consume(y),h?d:(h=!0,p)):u(y)}function d(y){return y===null||ar(y)||Xe(y)||wl(y)||sr(y)?u(y):n.attempt(Og,n.attempt(Mg,b),u)(y)}function b(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(y)}}function hk(n,a,u){let r=0;return s;function s(f){return(f===87||f===119)&&r<3?(r++,n.consume(f),s):f===46&&r===3?(n.consume(f),h):u(f)}function h(f){return f===null?u(f):a(f)}}function dk(n,a,u){let r,s,h;return f;function f(d){return d===46||d===95?n.check(Ng,p,m)(d):d===null||Xe(d)||wl(d)||d!==45&&sr(d)?p(d):(h=!0,n.consume(d),f)}function m(d){return d===95?r=!0:(s=r,r=void 0),n.consume(d),f}function p(d){return s||r||!h?u(d):a(d)}}function mk(n,a){let u=0,r=0;return s;function s(f){return f===40?(u++,n.consume(f),s):f===41&&r<u?h(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(Ng,a,h)(f):f===null||Xe(f)||wl(f)?a(f):(n.consume(f),s)}function h(f){return f===41&&r++,n.consume(f),s}}function pk(n,a,u){return r;function r(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(n.consume(m),r):m===38?(n.consume(m),h):m===93?(n.consume(m),s):m===60||m===null||Xe(m)||wl(m)?a(m):u(m)}function s(m){return m===null||m===40||m===91||Xe(m)||wl(m)?a(m):r(m)}function h(m){return St(m)?f(m):u(m)}function f(m){return m===59?(n.consume(m),r):St(m)?(n.consume(m),f):u(m)}}function gk(n,a,u){return r;function r(h){return n.consume(h),s}function s(h){return gt(h)?u(h):a(h)}}function jg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Xe(n)}function Lg(n){return!St(n)}function Bg(n){return!(n===47||hs(n))}function hs(n){return n===43||n===45||n===46||n===95||gt(n)}function Os(n){let a=n.length,u=!1;for(;a--;){const r=n[a][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){u=!0;break}if(r._gfmAutolinkLiteralWalkedInto){u=!1;break}}return n.length>0&&!u&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),u}const yk={tokenize:Ak,partial:!0};function bk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:kk,continuation:{tokenize:Ek},exit:Tk}},text:{91:{name:"gfmFootnoteCall",tokenize:Sk},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xk,resolveTo:vk}}}}function xk(n,a,u){const r=this;let s=r.events.length;const h=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let f;for(;s--;){const p=r.events[s][1];if(p.type==="labelImage"){f=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return m;function m(p){if(!f||!f._balanced)return u(p);const d=an(r.sliceSerialize({start:f.end,end:r.now()}));return d.codePointAt(0)!==94||!h.includes(d.slice(1))?u(p):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(p),n.exit("gfmFootnoteCallLabelMarker"),a(p))}}function vk(n,a){let u=n.length;for(;u--;)if(n[u][1].type==="labelImage"&&n[u][0]==="enter"){n[u][1];break}n[u+1][1].type="data",n[u+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},n[u+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[u+3][1].end),end:Object.assign({},n[u+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const h={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},h.start),end:Object.assign({},h.end)},m=[n[u+1],n[u+2],["enter",r,a],n[u+3],n[u+4],["enter",s,a],["exit",s,a],["enter",h,a],["enter",f,a],["exit",f,a],["exit",h,a],n[n.length-2],n[n.length-1],["exit",r,a]];return n.splice(u,n.length-u+1,...m),n}function Sk(n,a,u){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h=0,f;return m;function m(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),p}function p(y){return y!==94?u(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",d)}function d(y){if(h>999||y===93&&!f||y===null||y===91||Xe(y))return u(y);if(y===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return s.includes(an(r.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):u(y)}return Xe(y)||(f=!0),h++,n.consume(y),y===92?b:d}function b(y){return y===91||y===92||y===93?(n.consume(y),h++,d):d(y)}}function kk(n,a,u){const r=this,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let h,f=0,m;return p;function p(z){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(z),n.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(z){return z===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(z),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",b):u(z)}function b(z){if(f>999||z===93&&!m||z===null||z===91||Xe(z))return u(z);if(z===93){n.exit("chunkString");const L=n.exit("gfmFootnoteDefinitionLabelString");return h=an(r.sliceSerialize(L)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(z),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return Xe(z)||(m=!0),f++,n.consume(z),z===92?y:b}function y(z){return z===91||z===92||z===93?(n.consume(z),f++,b):b(z)}function S(z){return z===58?(n.enter("definitionMarker"),n.consume(z),n.exit("definitionMarker"),s.includes(h)||s.push(h),De(n,v,"gfmFootnoteDefinitionWhitespace")):u(z)}function v(z){return a(z)}}function Ek(n,a,u){return n.check(Ma,a,n.attempt(yk,a,u))}function Tk(n){n.exit("gfmFootnoteDefinition")}function Ak(n,a,u){const r=this;return De(n,s,"gfmFootnoteDefinitionIndent",5);function s(h){const f=r.events[r.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?a(h):u(h)}}function _k(n){let u=(n||{}).singleTilde;const r={name:"strikethrough",tokenize:h,resolveAll:s};return u==null&&(u=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function s(f,m){let p=-1;for(;++p<f.length;)if(f[p][0]==="enter"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._close){let d=p;for(;d--;)if(f[d][0]==="exit"&&f[d][1].type==="strikethroughSequenceTemporary"&&f[d][1]._open&&f[p][1].end.offset-f[p][1].start.offset===f[d][1].end.offset-f[d][1].start.offset){f[p][1].type="strikethroughSequence",f[d][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},f[d][1].start),end:Object.assign({},f[p][1].end)},y={type:"strikethroughText",start:Object.assign({},f[d][1].end),end:Object.assign({},f[p][1].start)},S=[["enter",b,m],["enter",f[d][1],m],["exit",f[d][1],m],["enter",y,m]],v=m.parser.constructs.insideSpan.null;v&&Yt(S,S.length,0,fr(v,f.slice(d+1,p),m)),Yt(S,S.length,0,[["exit",y,m],["enter",f[p][1],m],["exit",f[p][1],m],["exit",b,m]]),Yt(f,d-1,p-d+3,S),p=d+S.length-2;break}}for(p=-1;++p<f.length;)f[p][1].type==="strikethroughSequenceTemporary"&&(f[p][1].type="data");return f}function h(f,m,p){const d=this.previous,b=this.events;let y=0;return S;function S(z){return d===126&&b[b.length-1][1].type!=="characterEscape"?p(z):(f.enter("strikethroughSequenceTemporary"),v(z))}function v(z){const L=Ei(d);if(z===126)return y>1?p(z):(f.consume(z),y++,v);if(y<2&&!u)return p(z);const q=f.exit("strikethroughSequenceTemporary"),N=Ei(z);return q._open=!N||N===2&&!!L,q._close=!L||L===2&&!!N,m(z)}}}class zk{constructor(){this.map=[]}add(a,u,r){Ck(this,a,u,r)}consume(a){if(this.map.sort(function(h,f){return h[0]-f[0]}),this.map.length===0)return;let u=this.map.length;const r=[];for(;u>0;)u-=1,r.push(a.slice(this.map[u][0]+this.map[u][1]),this.map[u][2]),a.length=this.map[u][0];r.push(a.slice()),a.length=0;let s=r.pop();for(;s;){for(const h of s)a.push(h);s=r.pop()}this.map.length=0}}function Ck(n,a,u,r){let s=0;if(!(u===0&&r.length===0)){for(;s<n.map.length;){if(n.map[s][0]===a){n.map[s][1]+=u,n.map[s][2].push(...r);return}s+=1}n.map.push([a,u,r])}}function wk(n,a){let u=!1;const r=[];for(;a<n.length;){const s=n[a];if(u){if(s[0]==="enter")s[1].type==="tableContent"&&r.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const h=r.length-1;r[h]=r[h]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(u=!0);a+=1}return r}function Dk(){return{flow:{null:{name:"table",tokenize:Ok,resolveAll:Mk}}}}function Ok(n,a,u){const r=this;let s=0,h=0,f;return m;function m(U){let te=r.events.length-1;for(;te>-1;){const le=r.events[te][1].type;if(le==="lineEnding"||le==="linePrefix")te--;else break}const ee=te>-1?r.events[te][1].type:null,Se=ee==="tableHead"||ee==="tableRow"?D:p;return Se===D&&r.parser.lazy[r.now().line]?u(U):Se(U)}function p(U){return n.enter("tableHead"),n.enter("tableRow"),d(U)}function d(U){return U===124||(f=!0,h+=1),b(U)}function b(U){return U===null?u(U):se(U)?h>1?(h=0,r.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(U),n.exit("lineEnding"),v):u(U):Ae(U)?De(n,b,"whitespace")(U):(h+=1,f&&(f=!1,s+=1),U===124?(n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),f=!0,b):(n.enter("data"),y(U)))}function y(U){return U===null||U===124||Xe(U)?(n.exit("data"),b(U)):(n.consume(U),U===92?S:y)}function S(U){return U===92||U===124?(n.consume(U),y):y(U)}function v(U){return r.interrupt=!1,r.parser.lazy[r.now().line]?u(U):(n.enter("tableDelimiterRow"),f=!1,Ae(U)?De(n,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):z(U))}function z(U){return U===45||U===58?q(U):U===124?(f=!0,n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),L):ue(U)}function L(U){return Ae(U)?De(n,q,"whitespace")(U):q(U)}function q(U){return U===58?(h+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(U),n.exit("tableDelimiterMarker"),N):U===45?(h+=1,N(U)):U===null||se(U)?ie(U):ue(U)}function N(U){return U===45?(n.enter("tableDelimiterFiller"),K(U)):ue(U)}function K(U){return U===45?(n.consume(U),K):U===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(U),n.exit("tableDelimiterMarker"),Z):(n.exit("tableDelimiterFiller"),Z(U))}function Z(U){return Ae(U)?De(n,ie,"whitespace")(U):ie(U)}function ie(U){return U===124?z(U):U===null||se(U)?!f||s!==h?ue(U):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(U)):ue(U)}function ue(U){return u(U)}function D(U){return n.enter("tableRow"),F(U)}function F(U){return U===124?(n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),F):U===null||se(U)?(n.exit("tableRow"),a(U)):Ae(U)?De(n,F,"whitespace")(U):(n.enter("data"),de(U))}function de(U){return U===null||U===124||Xe(U)?(n.exit("data"),F(U)):(n.consume(U),U===92?pe:de)}function pe(U){return U===92||U===124?(n.consume(U),de):de(U)}}function Mk(n,a){let u=-1,r=!0,s=0,h=[0,0,0,0],f=[0,0,0,0],m=!1,p=0,d,b,y;const S=new zk;for(;++u<n.length;){const v=n[u],z=v[1];v[0]==="enter"?z.type==="tableHead"?(m=!1,p!==0&&(Cp(S,a,p,d,b),b=void 0,p=0),d={type:"table",start:Object.assign({},z.start),end:Object.assign({},z.end)},S.add(u,0,[["enter",d,a]])):z.type==="tableRow"||z.type==="tableDelimiterRow"?(r=!0,y=void 0,h=[0,0,0,0],f=[0,u+1,0,0],m&&(m=!1,b={type:"tableBody",start:Object.assign({},z.start),end:Object.assign({},z.end)},S.add(u,0,[["enter",b,a]])),s=z.type==="tableDelimiterRow"?2:b?3:1):s&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")?(r=!1,f[2]===0&&(h[1]!==0&&(f[0]=f[1],y=lr(S,a,h,s,void 0,y),h=[0,0,0,0]),f[2]=u)):z.type==="tableCellDivider"&&(r?r=!1:(h[1]!==0&&(f[0]=f[1],y=lr(S,a,h,s,void 0,y)),h=f,f=[h[1],u,0,0])):z.type==="tableHead"?(m=!0,p=u):z.type==="tableRow"||z.type==="tableDelimiterRow"?(p=u,h[1]!==0?(f[0]=f[1],y=lr(S,a,h,s,u,y)):f[1]!==0&&(y=lr(S,a,f,s,u,y)),s=0):s&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")&&(f[3]=u)}for(p!==0&&Cp(S,a,p,d,b),S.consume(a.events),u=-1;++u<a.events.length;){const v=a.events[u];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=wk(a.events,u))}return n}function lr(n,a,u,r,s,h){const f=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",m="tableContent";u[0]!==0&&(h.end=Object.assign({},ki(a.events,u[0])),n.add(u[0],0,[["exit",h,a]]));const p=ki(a.events,u[1]);if(h={type:f,start:Object.assign({},p),end:Object.assign({},p)},n.add(u[1],0,[["enter",h,a]]),u[2]!==0){const d=ki(a.events,u[2]),b=ki(a.events,u[3]),y={type:m,start:Object.assign({},d),end:Object.assign({},b)};if(n.add(u[2],0,[["enter",y,a]]),r!==2){const S=a.events[u[2]],v=a.events[u[3]];if(S[1].end=Object.assign({},v[1].end),S[1].type="chunkText",S[1].contentType="text",u[3]>u[2]+1){const z=u[2]+1,L=u[3]-u[2]-1;n.add(z,L,[])}}n.add(u[3]+1,0,[["exit",y,a]])}return s!==void 0&&(h.end=Object.assign({},ki(a.events,s)),n.add(s,0,[["exit",h,a]]),h=void 0),h}function Cp(n,a,u,r,s){const h=[],f=ki(a.events,u);s&&(s.end=Object.assign({},f),h.push(["exit",s,a])),r.end=Object.assign({},f),h.push(["exit",r,a]),n.add(u+1,0,h)}function ki(n,a){const u=n[a],r=u[0]==="enter"?"start":"end";return u[1][r]}const Nk={name:"tasklistCheck",tokenize:Uk};function Rk(){return{text:{91:Nk}}}function Uk(n,a,u){const r=this;return s;function s(p){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?u(p):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),h)}function h(p){return Xe(p)?(n.enter("taskListCheckValueUnchecked"),n.consume(p),n.exit("taskListCheckValueUnchecked"),f):p===88||p===120?(n.enter("taskListCheckValueChecked"),n.consume(p),n.exit("taskListCheckValueChecked"),f):u(p)}function f(p){return p===93?(n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),m):u(p)}function m(p){return se(p)?a(p):Ae(p)?n.check({tokenize:jk},a,u)(p):u(p)}}function jk(n,a,u){return De(n,r,"whitespace");function r(s){return s===null?u(s):a(s)}}function Lk(n){return Fp([ok(),bk(),_k(n),Dk(),Rk()])}const Bk={};function Hk(n){const a=this,u=n||Bk,r=a.data(),s=r.micromarkExtensions||(r.micromarkExtensions=[]),h=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),f=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);s.push(Lk(u)),h.push(ik()),f.push(ak(u))}function qk(n,a){switch(a.type){case"permission_request":{const{id:u,toolName:r,toolArgs:s,requesterDriverId:h}=a.event;return n.some(f=>f.id===u)?n:[...n,{kind:"permission",id:u,toolName:r,toolArgs:s,...h?{requesterDriverId:h}:{}}]}case"ask_request":{const{id:u,request:r,requesterDriverId:s}=a.event;return n.some(h=>h.id===u)?n:[...n,{kind:"ask",id:u,request:r,...s?{requesterDriverId:s}:{}}]}case"prompt_resolved":{const{id:u}=a.event,r=n.filter(s=>s.id!==u);return r.length===n.length?n:r}default:return n}}function Yk(n,a){return{type:"permission-response",id:n,result:a}}function Vk(n,a){return{type:"ask-response",id:n,response:a}}let Gk=0;function Xk(){return`ui_intent_${++Gk}_${Date.now()}`}const Aa="is not available on this surface. Use the robota terminal on the host.";function Qk(n){switch(n.type){case"show-plugin-manager":return`The plugin manager ${Aa}`;case"show-settings":return`The settings screen ${Aa}`;case"show-session-picker":return`The session picker ${Aa}`;case"show-agent-switcher":return`The agent switcher ${Aa}`;default:return`The screen requested by '${n.type}' ${Aa}`}}function Zk(n,a){if(a.type!=="ui_intent")return n;const{intent:u,requesterDriverId:r}=a.event;return[...n,{id:Xk(),intentType:u.type,notice:Qk(u),...r?{requesterDriverId:r}:{}}]}function Kk(n,a){const u=n.filter(r=>r.id!==a);return u.length===n.length?n:u}const Jk=2e3,Fk=10;function Ik(n,a){let u=null,r="disconnected",s=null,h=0,f=!1;function m(v){r=v,a.onStatusChange(v)}function p(){f||h>=Fk||(s=setTimeout(()=>{h++,d()},Jk))}function d(){m("connecting"),u=new WebSocket(n),u.onopen=()=>{h=0,m("connected"),S({type:"get-messages"})},u.onmessage=v=>{const z=v.data;if(typeof z!="string")return;const L=m0(z,d0);if(!L.ok){a.onMessage({type:"protocol_error",message:`Malformed message from server (${L.reason})`});return}a.onMessage(L.message)},u.onclose=()=>{u=null,f?m("disconnected"):(m("disconnected"),p())},u.onerror=()=>{m("error")}}function b(){f=!1,s!==null&&(clearTimeout(s),s=null),d()}function y(){f=!0,s!==null&&(clearTimeout(s),s=null),u?.close(),u=null,m("disconnected")}function S(v){u?.readyState===WebSocket.OPEN&&u.send(JSON.stringify(v))}return{connect:b,disconnect:y,send:S,status:()=>r}}const $k={text_delta:"reducer-state",user_message:"reducer-state",tool_start:"reducer-state",tool_end:"reducer-state",thinking:"reducer-state",complete:"reducer-state",interrupted:"reducer-state",error:"visible-notice",command_result:"visible-notice",messages:"reducer-state",context:"intentionally-not-rendered",usage_report:"reducer-state",personal_usage_report:"reducer-state",personal_usage_report_error:"visible-notice",stored_session_usage_report:"reducer-state",stored_session_usage_report_error:"visible-notice",executing:"intentionally-not-rendered",pending:"intentionally-not-rendered",execution_workspace_event:"reducer-state",background_task_event:"intentionally-not-rendered",background_job_group_event:"intentionally-not-rendered",plan_event:"intentionally-not-rendered",context_file_refreshed:"intentionally-not-rendered",branch_event:"intentionally-not-rendered",background_tasks:"intentionally-not-rendered",background_task:"intentionally-not-rendered",background_job_groups:"intentionally-not-rendered",background_job_group:"intentionally-not-rendered",background_task_log:"intentionally-not-rendered",permission_request:"reducer-state",ask_request:"reducer-state",prompt_resolved:"reducer-state",ui_intent:"visible-notice",session_renamed:"reducer-state",history_cleared:"reducer-state",background_task_control_result:"intentionally-not-rendered",protocol_error:"visible-notice",resume_gap:"transport-control"};let wp=0;function Dp(n){return wp+=1,`${n}_${wp}_${Date.now()}`}function Wk(n){const[a,u]=xe.useState("idle"),[r,s]=xe.useState(null),[h,f]=xe.useState(null),[m,p]=xe.useState("idle"),[d,b]=xe.useState(null),[y,S]=xe.useState(null),[v,z]=xe.useState(null),[L,q]=xe.useState("idle"),[N,K]=xe.useState(null),Z=xe.useRef(null),ie=xe.useRef(null),ue=xe.useCallback(D=>D.type==="personal_usage_report"||D.type==="personal_usage_report_error"?(Z.current!==D.requestId||(s(D.type==="personal_usage_report"?D.report:null),f(D.type==="personal_usage_report_error"?D.message:null),u(D.type==="personal_usage_report"?"ready":"error")),!0):D.type==="usage_report"?(K(D.report),q("ready"),!0):D.type==="stored_session_usage_report"||D.type==="stored_session_usage_report_error"?(ie.current!==D.requestId||(b(D.type==="stored_session_usage_report"?D.report:null),S(D.sessionId),z(D.type==="stored_session_usage_report_error"?D.message:null),p(D.type==="stored_session_usage_report"?"ready":"error")),!0):(D.type==="protocol_error"&&q(F=>F==="loading"?"error":F),!1),[]);return{personalUsageStatus:a,personalUsageReport:r,personalUsageError:h,requestPersonalUsage:xe.useCallback(D=>{const F=Dp("personal_usage");Z.current=F,u("loading"),f(null),n({type:"get-personal-usage-report",requestId:F,period:D,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"})},[n]),storedSessionUsageStatus:m,storedSessionUsageReport:d,storedSessionUsageSessionId:y,storedSessionUsageError:v,requestStoredSessionUsage:xe.useCallback(D=>{const F=Dp("stored_session_usage");ie.current=F,p("loading"),b(null),S(D),z(null),n({type:"get-stored-session-usage-report",requestId:F,sessionId:D})},[n]),currentSessionUsageStatus:L,currentSessionUsageReport:N,requestCurrentSessionUsage:xe.useCallback(()=>{q("loading"),n({type:"get-usage-report"})},[n]),handleUsageMessage:ue}}let Pk=0;function Nn(){return`msg_${++Pk}_${Date.now()}`}function eE(n){const[a,u]=xe.useState("disconnected"),[r,s]=xe.useState([]),[h,f]=xe.useState([]),[m,p]=xe.useState(""),[d,b]=xe.useState(!1),[y,S]=xe.useState(null),[v,z]=xe.useState([]),[L,q]=xe.useState(null),[N,K]=xe.useState([]),[Z,ie]=xe.useState([]),ue=xe.useRef(null),D=xe.useRef(null),F=xe.useRef(""),de=xe.useCallback(C=>ue.current?.send(C),[]),{handleUsageMessage:pe,...U}=Wk(de),te=xe.useCallback(C=>{if($k[C.type],!pe(C))switch(C.type){case"messages":{const B=C.messages.flatMap($=>{if($.role!=="user"&&$.role!=="assistant")return[];const re=$.content??"";return[{id:Nn(),role:$.role,content:re}]});s(B);break}case"user_message":s(B=>[...B,{id:Nn(),role:"user",content:C.content??"",...C.driverId?{author:C.driverId}:{}}]);break;case"text_delta":p(B=>{const $=B+C.delta;return F.current=$,D.current===null&&(D.current=Nn()),$});break;case"thinking":b(C.isThinking);break;case"tool_start":{const{state:B}=C,$=Nn();f(re=>[...re,{id:$,name:B.toolName,status:"running",input:B.firstArg}]);break}case"tool_end":{const{state:B}=C;f($=>$.map(re=>re.name===B.toolName&&re.status==="running"?{...re,status:B.isRunning?"running":"done",result:B.result}:re));break}case"execution_workspace_event":S(C.snapshot);break;case"permission_request":case"ask_request":case"prompt_resolved":z(B=>qk(B,C));break;case"ui_intent":K(B=>Zk(B,C));break;case"session_renamed":q(C.event.name);break;case"history_cleared":F.current="",D.current=null,p(""),s([]);break;case"error":{const B=F.current,$=D.current;F.current="",D.current=null,p(""),b(!1),f(re=>re.map(E=>E.status==="running"?{...E,status:"error"}:E)),B&&s(re=>[...re,{id:$??Nn(),role:"assistant",content:B}]),ie(re=>[...re,{id:Nn(),kind:"session-error",message:C.message}]);break}case"protocol_error":ie(B=>[...B,{id:Nn(),kind:"protocol-error",message:C.message}]);break;case"command_result":ie(B=>[...B,{id:Nn(),kind:"command-result",message:`/${C.name}: ${C.message}`,success:C.success}]);break;case"complete":case"interrupted":{const B=F.current,$=D.current;F.current="",D.current=null,p(""),b(!1),f([]),B&&s(re=>[...re,{id:$??Nn(),role:"assistant",content:B}]);break}}},[pe]),ee=xe.useCallback((C,B)=>{ue.current?.send(Yk(C,B)),z($=>$.filter(re=>re.id!==C))},[]),Se=xe.useCallback((C,B)=>{ue.current?.send(Vk(C,B)),z($=>$.filter(re=>re.id!==C))},[]),le=xe.useCallback(C=>{K(B=>Kk(B,C))},[]),I=xe.useCallback(C=>{ie(B=>B.filter($=>$.id!==C))},[]);return xe.useEffect(()=>{const C=n({onMessage:te,onStatusChange:u});return ue.current=C,C.connect(),()=>{C.disconnect(),ue.current=null}},[n,te]),{status:a,messages:r,activeTools:h,streamingText:m,isThinking:d,executionWorkspace:y,sessionName:L,send:de,pendingPrompts:v,answerPermission:ee,answerAsk:Se,uiIntentNotices:N,dismissUiIntentNotice:le,...U,sessionNotices:Z,dismissSessionNotice:I}}function tE(n){return eE(xe.useCallback(a=>Ik(n,a),[n]))}function nE({children:n}){return X.jsx(_S,{remarkPlugins:[Hk],components:{h1:({children:a})=>X.jsx("h1",{className:"text-base font-bold mt-4 mb-2 text-foreground border-b border-border/50 pb-1.5",children:a}),h2:({children:a})=>X.jsx("h2",{className:"text-sm font-semibold mt-3 mb-1.5 text-foreground",children:a}),h3:({children:a})=>X.jsx("h3",{className:"text-sm font-medium mt-2 mb-1 text-muted-foreground",children:a}),p:({children:a})=>X.jsx("p",{className:"mb-2 last:mb-0 leading-relaxed text-sm",children:a}),pre:({children:a})=>X.jsx("pre",{className:"bg-black/30 border border-border/40 rounded-lg p-3 my-2 overflow-x-auto text-xs font-mono leading-relaxed",children:a}),code:({className:a,children:u})=>a?X.jsx("code",{className:`font-mono leading-relaxed ${a??""}`,children:u}):X.jsx("code",{className:"font-mono text-[11px] bg-black/25 px-1.5 py-0.5 rounded text-amber-300/80 border border-border/30",children:u}),ul:({children:a})=>X.jsx("ul",{className:"list-disc list-outside ml-4 mb-2 space-y-0.5 text-sm",children:a}),ol:({children:a})=>X.jsx("ol",{className:"list-decimal list-outside ml-4 mb-2 space-y-0.5 text-sm",children:a}),li:({children:a})=>X.jsx("li",{className:"leading-relaxed",children:a}),strong:({children:a})=>X.jsx("strong",{className:"font-semibold text-foreground",children:a}),em:({children:a})=>X.jsx("em",{className:"italic text-muted-foreground/80",children:a}),a:({href:a,children:u})=>X.jsx("a",{href:a,className:"text-primary underline underline-offset-2 hover:opacity-75 transition-opacity",target:"_blank",rel:"noopener noreferrer",children:u}),table:({children:a})=>X.jsx("div",{className:"overflow-x-auto my-2 rounded-lg border border-border/50",children:X.jsx("table",{className:"w-full text-xs border-collapse",children:a})}),thead:({children:a})=>X.jsx("thead",{className:"bg-muted/40",children:a}),th:({children:a})=>X.jsx("th",{className:"px-3 py-2 text-left font-medium text-muted-foreground border-b border-border/50 text-[11px] tracking-wide",children:a}),td:({children:a})=>X.jsx("td",{className:"px-3 py-2 border-b border-border/30 text-xs last-of-type:border-0",children:a}),blockquote:({children:a})=>X.jsx("blockquote",{className:"border-l-2 border-primary/40 pl-3 my-2 text-muted-foreground text-sm italic",children:a}),hr:()=>X.jsx("hr",{className:"border-border/50 my-3"})},children:n})}function lE(n){return n.length>12?`${n.slice(0,8)}…`:n}function iE({content:n,author:a}){const u=a&&a!=="owner"?a:void 0;return X.jsxs("div",{className:"flex flex-col gap-1",children:[X.jsxs("span",{className:"text-[10px] font-mono tracking-[0.14em] uppercase text-primary/50 px-1",children:["You",u&&X.jsxs("span",{className:"ml-1.5 text-primary/40 normal-case tracking-normal",children:["· from ",lE(u)]})]}),X.jsx("div",{className:"rounded-xl border border-primary/20 bg-primary/8 px-4 py-3 text-sm leading-relaxed text-foreground",children:n})]})}function Op({content:n,isStreaming:a=!1}){return X.jsxs("div",{className:"flex flex-col gap-1",children:[X.jsx("span",{className:"text-[10px] font-mono tracking-[0.14em] uppercase text-muted-foreground/50 px-1",children:"Agent"}),X.jsxs("div",{className:"rounded-xl border border-border/60 bg-card px-4 py-3 text-card-foreground",children:[X.jsx(nE,{children:n}),a&&X.jsx("span",{className:"inline-block w-[2px] h-[14px] bg-primary/60 ml-0.5 align-middle animate-pulse"})]})]})}function aE({tool:n}){const a=n.status==="running";return X.jsxs("div",{className:`flex items-center gap-2.5 rounded-lg border px-3.5 py-2 text-[11px] font-mono transition-colors ${a?"bg-amber-500/5 border-amber-500/20 text-amber-300/80":"bg-emerald-500/5 border-emerald-500/20 text-emerald-300/80"}`,children:[X.jsx("span",{className:`h-1.5 w-1.5 rounded-full flex-shrink-0 ${a?"bg-amber-400 animate-pulse":"bg-emerald-400"}`}),X.jsx("span",{className:"opacity-50",children:a?"▶":"✓"}),X.jsx("span",{className:"font-medium tracking-wide",children:n.name}),typeof n.input=="string"&&n.input&&X.jsx("span",{className:"opacity-35 truncate max-w-[200px] text-[10px]",children:n.input}),X.jsx("span",{className:"ml-auto opacity-35 text-[10px]",children:a?"running…":"done"})]})}function uE(){return X.jsxs("div",{className:"flex items-center gap-2.5 px-1",children:[X.jsx("span",{className:"text-[10px] font-mono tracking-[0.14em] uppercase text-muted-foreground/50",children:"Agent"}),X.jsx("div",{className:"flex gap-1 items-center",children:[0,1,2].map(n=>X.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400/60 animate-bounce",style:{animationDelay:`${n*150}ms`}},n))})]})}function rE({messages:n,activeTools:a,streamingText:u,isThinking:r}){const s=xe.useRef(null);return xe.useEffect(()=>{s.current?.scrollIntoView({behavior:"smooth"})},[n.length,u,r,a.length]),X.jsxs("div",{className:"flex flex-col gap-3 p-4 overflow-y-auto h-full",children:[n.length===0&&!r&&a.length===0&&!u&&X.jsx("div",{className:"flex h-full items-center justify-center",children:X.jsx("p",{className:"text-xs font-mono text-muted-foreground/50 tracking-widest uppercase",children:"No messages yet"})}),n.map(h=>h.role==="user"?X.jsx(iE,{content:h.content,author:h.author},h.id):X.jsx(Op,{content:h.content},h.id)),r&&!u&&X.jsx(uE,{}),a.map(h=>X.jsx(aE,{tool:h},h.id)),u&&X.jsx(Op,{content:u,isStreaming:!0}),X.jsx("div",{ref:s})]})}function oE({tasks:n,className:a}){const u=n.filter(r=>r.status==="running").length;return X.jsxs("div",{className:`flex flex-col overflow-hidden bg-card/10 ${a??""}`,children:[X.jsxs("div",{className:"px-3 py-2 border-b border-border/50 flex items-center gap-2 flex-shrink-0",children:[u>0?X.jsxs("span",{className:"relative flex h-1.5 w-1.5 flex-shrink-0",children:[X.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-amber-400 opacity-60"}),X.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-amber-500"})]}):X.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-zinc-600 flex-shrink-0"}),X.jsx("span",{className:"text-[10px] font-mono font-semibold tracking-[0.14em] uppercase text-muted-foreground",children:"Agents"}),u>0&&X.jsxs("span",{className:"ml-auto text-[10px] font-mono text-amber-400/70 tabular-nums",children:[u," running"]})]}),X.jsx("div",{className:"flex-1 overflow-y-auto px-2 py-2 space-y-1.5",children:n.map(r=>X.jsx(cE,{entry:r},r.id))})]})}function cE({entry:n}){const a=hE(n.status,n.attention);return X.jsxs("div",{className:`relative rounded-md overflow-hidden border transition-opacity duration-500 ${a.cardCls} ${n.status==="completed"?"opacity-40":""}`,children:[X.jsx("div",{className:`absolute left-0 top-0 bottom-0 w-0.5 ${a.barCls}`}),X.jsxs("div",{className:"pl-3.5 pr-3 py-2",children:[X.jsxs("div",{className:"flex items-center gap-2",children:[X.jsx(sE,{status:n.status,attention:n.attention}),X.jsx("span",{className:"text-[11px] font-mono font-medium text-foreground/90 truncate flex-1 leading-none",children:n.title}),X.jsx(fE,{attention:n.attention,status:n.status})]}),n.currentAction&&X.jsx("p",{className:"text-[10px] text-foreground/50 leading-snug mt-1.5 truncate",children:n.currentAction}),n.preview&&X.jsxs("p",{className:"text-[10px] font-mono text-muted-foreground/40 leading-snug mt-0.5 truncate",children:["“",n.preview,"”"]})]})]})}function sE({status:n,attention:a}){return a==="permission"||n==="waiting_permission"?X.jsxs("span",{className:"relative flex h-1.5 w-1.5 flex-shrink-0",children:[X.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-rose-400 opacity-70"}),X.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-rose-500"})]}):a==="failed"||n==="failed"?X.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-rose-500 flex-shrink-0"}):n==="running"?X.jsxs("span",{className:"relative flex h-1.5 w-1.5 flex-shrink-0",children:[X.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-amber-400 opacity-55"}),X.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-amber-400"})]}):n==="completed"?X.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-400/60 flex-shrink-0"}):X.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-zinc-600 flex-shrink-0"})}function fE({attention:n,status:a}){return n==="permission"||a==="waiting_permission"?X.jsx("span",{className:"text-[9px] font-mono text-rose-400 bg-rose-500/10 border border-rose-500/25 px-1.5 py-px rounded flex-shrink-0",children:"perm"}):n==="failed"||a==="failed"?X.jsx("span",{className:"text-[9px] font-mono text-rose-400 bg-rose-500/10 border border-rose-500/25 px-1.5 py-px rounded flex-shrink-0",children:"err"}):a==="completed"?X.jsx("span",{className:"text-[9px] font-mono text-emerald-400/50 flex-shrink-0",children:"done"}):a==="queued"?X.jsx("span",{className:"text-[9px] font-mono text-zinc-500 flex-shrink-0",children:"queued"}):null}function hE(n,a){return a==="permission"||n==="waiting_permission"?{cardCls:"border-rose-500/40 bg-rose-950/10",barCls:"bg-rose-400"}:a==="failed"||n==="failed"?{cardCls:"border-rose-500/30 bg-rose-950/15",barCls:"bg-rose-500"}:n==="running"?{cardCls:"border-amber-500/20 bg-card/30",barCls:"bg-amber-400"}:n==="completed"?{cardCls:"border-border/20 bg-card/20",barCls:"bg-emerald-400/50"}:{cardCls:"border-border/30 bg-card/25",barCls:"bg-zinc-600/50"}}const Mp={connected:{label:"Connected",dot:"bg-emerald-400",text:"text-emerald-400",glow:"shadow-[0_0_7px_1px_rgba(52,211,153,0.55)]"},connecting:{label:"Connecting…",dot:"bg-amber-400 animate-pulse",text:"text-amber-400",glow:""},disconnected:{label:"Disconnected",dot:"bg-zinc-600",text:"text-zinc-500",glow:""},error:{label:"Error",dot:"bg-rose-500",text:"text-rose-400",glow:""}};function dE({wsUrl:n,className:a}){const[u,r]=xe.useState(n),[s,h]=xe.useState(n),{status:f,messages:m,activeTools:p,streamingText:d,isThinking:b,executionWorkspace:y,send:S}=tE(u),v=Mp[f]??Mp.disconnected,z=y?.entries.filter(q=>q.kind==="background_task"&&q.visibility!=="collapsed")??[],L=z.length>0;return X.jsxs("div",{className:`flex flex-col h-full overflow-hidden bg-background ${a??""}`,children:[X.jsxs("div",{className:"flex items-center gap-3 border-b border-border/50 px-4 py-2.5 bg-card/30 flex-shrink-0",children:[X.jsxs("div",{className:"flex items-center gap-2.5",children:[X.jsx("span",{className:`h-2 w-2 rounded-full flex-shrink-0 ${v.dot} ${v.glow}`}),X.jsx("span",{className:"text-[11px] font-mono font-semibold tracking-[0.14em] uppercase text-foreground/70",children:"CLI Monitor"}),X.jsx("span",{className:"text-border/60 font-mono text-xs",children:"·"}),X.jsx("span",{role:"status",className:`text-[11px] font-mono ${v.text}`,children:v.label})]}),X.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[X.jsx("input",{"aria-label":"WebSocket URL",className:"h-7 rounded-lg border border-border/60 bg-background/60 px-2.5 text-[11px] font-mono text-foreground/70 placeholder:text-muted-foreground/35 focus:outline-none focus:border-primary/50 focus:ring-1 focus:ring-primary/15 w-52 transition-all",value:s,onChange:q=>h(q.target.value),onKeyDown:q=>{q.key==="Enter"&&r(s)},placeholder:"ws://localhost:7070"}),X.jsx("button",{className:"h-7 rounded-lg border border-border/60 px-3 text-[11px] font-mono text-muted-foreground hover:text-foreground hover:border-primary/40 hover:bg-primary/5 transition-all",onClick:()=>r(s),children:"Connect"})]})]}),X.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[X.jsxs("div",{className:`flex flex-col overflow-hidden min-w-0 ${L?"flex-[2]":"flex-1"}`,children:[X.jsx("div",{className:"flex-1 overflow-hidden",children:f==="connected"?X.jsx(rE,{messages:m,activeTools:p,streamingText:d,isThinking:b}):X.jsx("div",{className:"flex h-full items-center justify-center",children:X.jsxs("div",{className:"flex flex-col items-center gap-3 text-center px-8",children:[X.jsx("div",{className:"h-9 w-9 rounded-full border border-border/50 flex items-center justify-center",children:X.jsx("span",{className:`h-2.5 w-2.5 rounded-full ${v.dot}`})}),X.jsx("p",{className:"text-xs font-mono text-muted-foreground max-w-[260px] leading-relaxed",children:f==="connecting"?`Connecting to ${u}…`:f==="error"?`Connection error — could not reach ${u}. Check the CLI is running and the URL is correct.`:"Run robota to start the CLI (WS transport starts automatically)."})]})})}),X.jsx(mE,{enabled:f==="connected",onSubmit:q=>S({type:"submit",prompt:q})})]}),L&&X.jsx(oE,{tasks:z,className:"flex-1 border-l border-border/50"})]})]})}function mE({enabled:n,onSubmit:a}){const[u,r]=xe.useState(""),s=()=>{const h=u.trim();h&&(a(h),r(""))};return X.jsxs("div",{className:"border-t border-border/50 px-3 py-2.5 flex gap-2 items-end bg-card/20 flex-shrink-0",children:[X.jsx("textarea",{"aria-label":"Message",className:"flex-1 resize-none rounded-xl border border-border/60 bg-background/50 px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground/35 focus:outline-none focus:border-primary/45 focus:ring-1 focus:ring-primary/15 min-h-[36px] max-h-[120px] transition-all font-[inherit] leading-relaxed",rows:1,placeholder:n?"Send a message…":"Connect to send messages",disabled:!n,value:u,onChange:h=>r(h.target.value),onKeyDown:h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),s())}}),X.jsx("button",{className:"h-9 rounded-xl border border-border/60 px-3.5 text-[11px] font-mono text-muted-foreground hover:text-foreground hover:border-primary/40 hover:bg-primary/5 transition-all disabled:opacity-25 disabled:cursor-not-allowed",disabled:!n||!u.trim(),onClick:s,children:"Send"})]})}class pE extends Np.Component{constructor(a){super(a),this.state={error:null}}static getDerivedStateFromError(a){return{error:a}}render(){return this.state.error?X.jsx("div",{className:"min-h-screen bg-[var(--background)] flex items-center justify-center p-8",children:X.jsxs("div",{className:"text-[var(--destructive)] font-mono text-[13px] max-w-[600px]",children:[X.jsx("p",{className:"text-[var(--foreground)] mb-2 font-bold",children:"Monitor Error"}),X.jsx("p",{className:"text-[var(--muted-foreground)] mb-2",children:this.state.error.message}),X.jsx("pre",{className:"bg-[var(--card)] p-3 rounded-md text-[var(--muted-foreground)] text-[11px] overflow-auto whitespace-pre-wrap",children:this.state.error.stack})]})}):this.props.children}}function gE(n){const a=n.getElementById("root");if(!a)throw new Error("No #root element");return a}function yE(n,a){const u=n?.trim();return u||`ws://${a}`}function bE(n){return n.querySelector('meta[name="ws-url"]')?.getAttribute("content")??null}const xE=yE(bE(document),window.location.host),vE=gE(document);c0.createRoot(vE).render(X.jsx(Np.StrictMode,{children:X.jsx(pE,{children:X.jsx("div",{className:"h-screen w-screen overflow-hidden",children:X.jsx(dE,{wsUrl:xE})})})}));
|