safe-mdx 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/dist/assets/HtmlToJsxConverter-Ds0bTjpw.js +24 -0
- package/dist/assets/_commonjsHelpers-CqkleIqs.js +1 -0
- package/dist/assets/index-B5fPOjPt.css +1 -0
- package/dist/assets/index-B7ATSoRE.js +9 -0
- package/dist/assets/index-BwZ2FTRd.js +146 -0
- package/dist/assets/index-R1UqLMGJ.js +1 -0
- package/dist/assets/index-c0qeY2gs.js +9 -0
- package/dist/assets/jsx-runtime-BhZZLbvw.js +9 -0
- package/dist/assets/jsx-runtime-NArryeSM.js +1 -0
- package/dist/assets/react-Ca6JzGpx.js +1 -0
- package/dist/assets/react-dom-BYRHYqYl.js +1 -0
- package/dist/html/attributes.d.ts +19 -0
- package/dist/html/attributes.d.ts.map +1 -0
- package/dist/html/attributes.js +289 -0
- package/dist/html/attributes.js.map +1 -0
- package/dist/html/convert-attributes.d.ts +6 -0
- package/dist/html/convert-attributes.d.ts.map +1 -0
- package/dist/html/convert-attributes.js +43 -0
- package/dist/html/convert-attributes.js.map +1 -0
- package/dist/html/domparser-browser.d.ts +4 -0
- package/dist/html/domparser-browser.d.ts.map +1 -0
- package/dist/html/domparser-browser.js +7 -0
- package/dist/html/domparser-browser.js.map +1 -0
- package/dist/html/domparser.d.ts +2 -0
- package/dist/html/domparser.d.ts.map +1 -0
- package/dist/html/domparser.js +5 -0
- package/dist/html/domparser.js.map +1 -0
- package/dist/html/html-to-mdx-ast.d.ts +23 -0
- package/dist/html/html-to-mdx-ast.d.ts.map +1 -0
- package/dist/html/html-to-mdx-ast.js +227 -0
- package/dist/html/html-to-mdx-ast.js.map +1 -0
- package/dist/html/html-to-mdx-ast.test.d.ts +2 -0
- package/dist/html/html-to-mdx-ast.test.d.ts.map +1 -0
- package/dist/html/html-to-mdx-ast.test.js +324 -0
- package/dist/html/html-to-mdx-ast.test.js.map +1 -0
- package/dist/html/remark-mdx-jsx-normalize.d.ts +10 -0
- package/dist/html/remark-mdx-jsx-normalize.d.ts.map +1 -0
- package/dist/html/remark-mdx-jsx-normalize.js +117 -0
- package/dist/html/remark-mdx-jsx-normalize.js.map +1 -0
- package/dist/html/valid-html-elements.d.ts +10 -0
- package/dist/html/valid-html-elements.d.ts.map +1 -0
- package/dist/html/valid-html-elements.js +50 -0
- package/dist/html/valid-html-elements.js.map +1 -0
- package/dist/index.html +19 -0
- package/dist/parse.d.ts +2 -0
- package/dist/parse.d.ts.map +1 -1
- package/dist/parse.js +2 -0
- package/dist/parse.js.map +1 -1
- package/dist/safe-mdx.d.ts +1 -1
- package/dist/safe-mdx.d.ts.map +1 -1
- package/dist/safe-mdx.js +23 -71
- package/dist/safe-mdx.js.map +1 -1
- package/dist/safe-mdx.test.js +161 -8
- package/dist/safe-mdx.test.js.map +1 -1
- package/package.json +27 -6
- package/src/html/README +17 -0
- package/src/html/attributes.ts +297 -0
- package/src/html/convert-attributes.ts +59 -0
- package/src/html/domparser-browser.ts +6 -0
- package/src/html/domparser.ts +5 -0
- package/src/html/html-to-mdx-ast.test.ts +365 -0
- package/src/html/html-to-mdx-ast.ts +304 -0
- package/src/html/remark-mdx-jsx-normalize.ts +128 -0
- package/src/html/valid-html-elements.ts +65 -0
- package/src/parse.ts +3 -0
- package/src/safe-mdx.test.tsx +178 -12
- package/src/safe-mdx.tsx +23 -79
- package/dist/HtmlToJsxConverter.d.ts +0 -10
- package/dist/HtmlToJsxConverter.d.ts.map +0 -1
- package/dist/HtmlToJsxConverter.js +0 -22
- package/dist/HtmlToJsxConverter.js.map +0 -1
- package/dist/plugins.d.ts +0 -12
- package/dist/plugins.d.ts.map +0 -1
- package/dist/plugins.js +0 -68
- package/dist/plugins.js.map +0 -1
- package/src/HtmlToJsxConverter.tsx +0 -37
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HtmlToJsxConverter-Ds0bTjpw.js","assets/index-R1UqLMGJ.js","assets/_commonjsHelpers-CqkleIqs.js","assets/index-c0qeY2gs.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{j as ha}from"./jsx-runtime-BhZZLbvw.js";import{g as Js}from"./_commonjsHelpers-CqkleIqs.js";import{r as xb}from"./index-c0qeY2gs.js";import{r as gb,a as Sm}from"./index-B7ATSoRE.js";import{r as _n,R as Nr}from"./index-R1UqLMGJ.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function r(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();var Bc={exports:{}},Is={},zc={exports:{}},Pc={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* scheduler.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var km;function bb(){return km||(km=1,function(t){function n(K,nt){var dt=K.length;K.push(nt);t:for(;0<dt;){var At=dt-1>>>1,D=K[At];if(0<o(D,nt))K[At]=nt,K[dt]=D,dt=At;else break t}}function r(K){return K.length===0?null:K[0]}function u(K){if(K.length===0)return null;var nt=K[0],dt=K.pop();if(dt!==nt){K[0]=dt;t:for(var At=0,D=K.length,Gt=D>>>1;At<Gt;){var Lt=2*(At+1)-1,O=K[Lt],Bt=Lt+1,ie=K[Bt];if(0>o(O,dt))Bt<D&&0>o(ie,O)?(K[At]=ie,K[Bt]=dt,At=Bt):(K[At]=O,K[Lt]=dt,At=Lt);else if(Bt<D&&0>o(ie,dt))K[At]=ie,K[Bt]=dt,At=Bt;else break t}}return nt}function o(K,nt){var dt=K.sortIndex-nt.sortIndex;return dt!==0?dt:K.id-nt.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var f=Date,x=f.now();t.unstable_now=function(){return f.now()-x}}var p=[],g=[],y=1,b=null,k=3,C=!1,L=!1,B=!1,F=!1,I=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function W(K){for(var nt=r(g);nt!==null;){if(nt.callback===null)u(g);else if(nt.startTime<=K)u(g),nt.sortIndex=nt.expirationTime,n(p,nt);else break;nt=r(g)}}function V(K){if(B=!1,W(K),!L)if(r(p)!==null)L=!0,v||(v=!0,st());else{var nt=r(g);nt!==null&&vt(V,nt.startTime-K)}}var v=!1,R=-1,X=5,rt=-1;function q(){return F?!0:!(t.unstable_now()-rt<X)}function ut(){if(F=!1,v){var K=t.unstable_now();rt=K;var nt=!0;try{t:{L=!1,B&&(B=!1,G(R),R=-1),C=!0;var dt=k;try{e:{for(W(K),b=r(p);b!==null&&!(b.expirationTime>K&&q());){var At=b.callback;if(typeof At=="function"){b.callback=null,k=b.priorityLevel;var D=At(b.expirationTime<=K);if(K=t.unstable_now(),typeof D=="function"){b.callback=D,W(K),nt=!0;break e}b===r(p)&&u(p),W(K)}else u(p);b=r(p)}if(b!==null)nt=!0;else{var Gt=r(g);Gt!==null&&vt(V,Gt.startTime-K),nt=!1}}break t}finally{b=null,k=dt,C=!1}nt=void 0}}finally{nt?st():v=!1}}}var st;if(typeof z=="function")st=function(){z(ut)};else if(typeof MessageChannel<"u"){var pt=new MessageChannel,Nt=pt.port2;pt.port1.onmessage=ut,st=function(){Nt.postMessage(null)}}else st=function(){I(ut,0)};function vt(K,nt){R=I(function(){K(t.unstable_now())},nt)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return k},t.unstable_next=function(K){switch(k){case 1:case 2:case 3:var nt=3;break;default:nt=k}var dt=k;k=nt;try{return K()}finally{k=dt}},t.unstable_requestPaint=function(){F=!0},t.unstable_runWithPriority=function(K,nt){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var dt=k;k=K;try{return nt()}finally{k=dt}},t.unstable_scheduleCallback=function(K,nt,dt){var At=t.unstable_now();switch(typeof dt=="object"&&dt!==null?(dt=dt.delay,dt=typeof dt=="number"&&0<dt?At+dt:At):dt=At,K){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=dt+D,K={id:y++,callback:nt,priorityLevel:K,startTime:dt,expirationTime:D,sortIndex:-1},dt>At?(K.sortIndex=dt,n(g,K),r(p)===null&&K===r(g)&&(B?(G(R),R=-1):B=!0,vt(V,dt-At))):(K.sortIndex=D,n(p,K),L||C||(L=!0,v||(v=!0,st()))),K},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(K){var nt=k;return function(){var dt=k;k=nt;try{return K.apply(this,arguments)}finally{k=dt}}}}(Pc)),Pc}var Em;function yb(){return Em||(Em=1,zc.exports=bb()),zc.exports}/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-dom-client.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var wm;function vb(){if(wm)return Is;wm=1;var t=yb(),n=xb(),r=gb();function u(e){var i="https://react.dev/errors/"+e;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var i=e,a=e;if(e.alternate)for(;i.return;)i=i.return;else{e=i;do i=e,(i.flags&4098)!==0&&(a=i.return),e=i.return;while(e)}return i.tag===3?a:null}function f(e){if(e.tag===13){var i=e.memoizedState;if(i===null&&(e=e.alternate,e!==null&&(i=e.memoizedState)),i!==null)return i.dehydrated}return null}function x(e){if(c(e)!==e)throw Error(u(188))}function p(e){var i=e.alternate;if(!i){if(i=c(e),i===null)throw Error(u(188));return i!==e?null:e}for(var a=e,l=i;;){var h=a.return;if(h===null)break;var m=h.alternate;if(m===null){if(l=h.return,l!==null){a=l;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===a)return x(h),e;if(m===l)return x(h),i;m=m.sibling}throw Error(u(188))}if(a.return!==l.return)a=h,l=m;else{for(var E=!1,A=h.child;A;){if(A===a){E=!0,a=h,l=m;break}if(A===l){E=!0,l=h,a=m;break}A=A.sibling}if(!E){for(A=m.child;A;){if(A===a){E=!0,a=m,l=h;break}if(A===l){E=!0,l=m,a=h;break}A=A.sibling}if(!E)throw Error(u(189))}}if(a.alternate!==l)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:i}function g(e){var i=e.tag;if(i===5||i===26||i===27||i===6)return e;for(e=e.child;e!==null;){if(i=g(e),i!==null)return i;e=e.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),G=Symbol.for("react.consumer"),z=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),rt=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),ut=Symbol.iterator;function st(e){return e===null||typeof e!="object"?null:(e=ut&&e[ut]||e["@@iterator"],typeof e=="function"?e:null)}var pt=Symbol.for("react.client.reference");function Nt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case F:return"Profiler";case B:return"StrictMode";case V:return"Suspense";case v:return"SuspenseList";case rt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case z:return(e.displayName||"Context")+".Provider";case G:return(e._context.displayName||"Context")+".Consumer";case W:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case R:return i=e.displayName||null,i!==null?i:Nt(e.type)||"Memo";case X:i=e._payload,e=e._init;try{return Nt(e(i))}catch{}}return null}var vt=Array.isArray,K=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,dt={pending:!1,data:null,method:null,action:null},At=[],D=-1;function Gt(e){return{current:e}}function Lt(e){0>D||(e.current=At[D],At[D]=null,D--)}function O(e,i){D++,At[D]=e.current,e.current=i}var Bt=Gt(null),ie=Gt(null),qt=Gt(null),Xe=Gt(null);function Ve(e,i){switch(O(qt,i),O(ie,e),O(Bt,null),i.nodeType){case 9:case 11:e=(e=i.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=i.tagName,i=i.namespaceURI)i=Yd(i),e=Zd(i,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Lt(Bt),O(Bt,e)}function he(){Lt(Bt),Lt(ie),Lt(qt)}function Ce(e){e.memoizedState!==null&&O(Xe,e);var i=Bt.current,a=Zd(i,e.type);i!==a&&(O(ie,e),O(Bt,a))}function pe(e){ie.current===e&&(Lt(Bt),Lt(ie)),Xe.current===e&&(Lt(Xe),Ls._currentValue=dt)}var Ji=Object.prototype.hasOwnProperty,di=t.unstable_scheduleCallback,Qi=t.unstable_cancelCallback,Mi=t.unstable_shouldYield,Xi=t.unstable_requestPaint,ce=t.unstable_now,mi=t.unstable_getCurrentPriorityLevel,xi=t.unstable_ImmediatePriority,ai=t.unstable_UserBlockingPriority,Ye=t.unstable_NormalPriority,un=t.unstable_LowPriority,Ae=t.unstable_IdlePriority,Zt=t.log,ln=t.unstable_setDisableYieldValue,tt=null,$=null;function T(e){if(typeof Zt=="function"&&ln(e),$&&typeof $.setStrictMode=="function")try{$.setStrictMode(tt,e)}catch{}}var ft=Math.clz32?Math.clz32:ht,Ft=Math.log,ge=Math.LN2;function ht(e){return e>>>=0,e===0?32:31-(Ft(e)/ge|0)|0}var Le=256,gi=4194304;function He(e){var i=e&42;if(i!==0)return i;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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 se(e,i,a){var l=e.pendingLanes;if(l===0)return 0;var h=0,m=e.suspendedLanes,E=e.pingedLanes;e=e.warmLanes;var A=l&134217727;return A!==0?(l=A&~m,l!==0?h=He(l):(E&=A,E!==0?h=He(E):a||(a=A&~e,a!==0&&(h=He(a))))):(A=l&~m,A!==0?h=He(A):E!==0?h=He(E):a||(a=l&~e,a!==0&&(h=He(a)))),h===0?0:i!==0&&i!==h&&(i&m)===0&&(m=h&-h,a=i&-i,m>=a||m===32&&(a&4194048)!==0)?i:h}function Fe(e,i){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&i)===0}function Ze(e,i){switch(e){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Ks(){var e=Le;return Le<<=1,(Le&4194048)===0&&(Le=256),e}function ba(){var e=gi;return gi<<=1,(gi&62914560)===0&&(gi=4194304),e}function je(e){for(var i=[],a=0;31>a;a++)i.push(e);return i}function De(e,i){e.pendingLanes|=i,i!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function te(e,i,a,l,h,m){var E=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var A=e.entanglements,M=e.expirationTimes,J=e.hiddenUpdates;for(a=E&~a;0<a;){var et=31-ft(a),at=1<<et;A[et]=0,M[et]=-1;var Y=J[et];if(Y!==null)for(J[et]=null,et=0;et<Y.length;et++){var Z=Y[et];Z!==null&&(Z.lane&=-536870913)}a&=~at}l!==0&&on(e,l,0),m!==0&&h===0&&e.tag!==0&&(e.suspendedLanes|=m&~(E&~i))}function on(e,i,a){e.pendingLanes|=i,e.suspendedLanes&=~i;var l=31-ft(i);e.entangledLanes|=i,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function wt(e,i){var a=e.entangledLanes|=i;for(e=e.entanglements;a;){var l=31-ft(a),h=1<<l;h&i|e[l]&i&&(e[l]|=i),a&=~h}}function Ha(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 ya(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ws(){var e=nt.p;return e!==0?e:(e=window.event,e===void 0?32:mm(e.type))}function Ga(e,i){var a=nt.p;try{return nt.p=e,i()}finally{nt.p=a}}var Be=Math.random().toString(36).slice(2),Oe="__reactFiber$"+Be,ve="__reactProps$"+Be,bi="__reactContainer$"+Be,Ja="__reactEvents$"+Be,Vl="__reactListeners$"+Be,$s="__reactHandles$"+Be,Br="__reactResources$"+Be,In="__reactMarker$"+Be;function Qa(e){delete e[Oe],delete e[ve],delete e[Ja],delete e[Vl],delete e[$s]}function cn(e){var i=e[Oe];if(i)return i;for(var a=e.parentNode;a;){if(i=a[bi]||a[Oe]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(e=tm(e);e!==null;){if(a=e[Oe])return a;e=tm(e)}return i}e=a,a=e.parentNode}return null}function Vn(e){if(e=e[Oe]||e[bi]){var i=e.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return e}return null}function va(e){var i=e.tag;if(i===5||i===26||i===27||i===6)return e.stateNode;throw Error(u(33))}function Bn(e){var i=e[Br];return i||(i=e[Br]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Se(e){e[In]=!0}var zr=new Set,Pr={};function Yi(e,i){fn(e,i),fn(e+"Capture",i)}function fn(e,i){for(Pr[e]=i,e=0;e<i.length;e++)zr.add(i[e])}var tu=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]*$"),Ur={},eu={};function Bl(e){return Ji.call(eu,e)?!0:Ji.call(Ur,e)?!1:tu.test(e)?eu[e]=!0:(Ur[e]=!0,!1)}function Sa(e,i,a){if(Bl(i))if(a===null)e.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(i);return}}e.setAttribute(i,""+a)}}function Xa(e,i,a){if(a===null)e.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttribute(i,""+a)}}function ri(e,i,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(i,a,""+l)}}var Ya,iu;function ct(e){if(Ya===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);Ya=i&&i[1]||"",iu=-1<a.stack.indexOf(`
|
|
19
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
20
|
+
`+Ya+e+iu}var zn=!1;function Ke(e,i){if(!e||zn)return"";zn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(i){var at=function(){throw Error()};if(Object.defineProperty(at.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(at,[])}catch(Z){var Y=Z}Reflect.construct(e,[],at)}else{try{at.call()}catch(Z){Y=Z}e.call(at.prototype)}}else{try{throw Error()}catch(Z){Y=Z}(at=e())&&typeof at.catch=="function"&&at.catch(function(){})}}catch(Z){if(Z&&Y&&typeof Z.stack=="string")return[Z.stack,Y.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),E=m[0],A=m[1];if(E&&A){var M=E.split(`
|
|
21
|
+
`),J=A.split(`
|
|
22
|
+
`);for(h=l=0;l<M.length&&!M[l].includes("DetermineComponentFrameRoot");)l++;for(;h<J.length&&!J[h].includes("DetermineComponentFrameRoot");)h++;if(l===M.length||h===J.length)for(l=M.length-1,h=J.length-1;1<=l&&0<=h&&M[l]!==J[h];)h--;for(;1<=l&&0<=h;l--,h--)if(M[l]!==J[h]){if(l!==1||h!==1)do if(l--,h--,0>h||M[l]!==J[h]){var et=`
|
|
23
|
+
`+M[l].replace(" at new "," at ");return e.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",e.displayName)),et}while(1<=l&&0<=h);break}}}finally{zn=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ct(a):""}function zl(e){switch(e.tag){case 26:case 27:case 5:return ct(e.type);case 16:return ct("Lazy");case 13:return ct("Suspense");case 19:return ct("SuspenseList");case 0:case 15:return Ke(e.type,!1);case 11:return Ke(e.type.render,!1);case 1:return Ke(e.type,!0);case 31:return ct("Activity");default:return""}}function nu(e){try{var i="";do i+=zl(e),e=e.return;while(e);return i}catch(a){return`
|
|
24
|
+
Error generating stack: `+a.message+`
|
|
25
|
+
`+a.stack}}function Ge(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function au(e){var i=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Pl(e){var i=au(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,i),l=""+e[i];if(!e.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var h=a.get,m=a.set;return Object.defineProperty(e,i,{configurable:!0,get:function(){return h.call(this)},set:function(E){l=""+E,m.call(this,E)}}),Object.defineProperty(e,i,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(E){l=""+E},stopTracking:function(){e._valueTracker=null,delete e[i]}}}}function ka(e){e._valueTracker||(e._valueTracker=Pl(e))}function ru(e){if(!e)return!1;var i=e._valueTracker;if(!i)return!0;var a=i.getValue(),l="";return e&&(l=au(e)?e.checked?"true":"false":e.value),e=l,e!==a?(i.setValue(e),!0):!1}function Ea(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 Ii=/[\n"\\]/g;function re(e){return e.replace(Ii,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Fr(e,i,a,l,h,m,E,A){e.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.type=E:e.removeAttribute("type"),i!=null?E==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+Ge(i)):e.value!==""+Ge(i)&&(e.value=""+Ge(i)):E!=="submit"&&E!=="reset"||e.removeAttribute("value"),i!=null?qr(e,E,Ge(i)):a!=null?qr(e,E,Ge(a)):l!=null&&e.removeAttribute("value"),h==null&&m!=null&&(e.defaultChecked=!!m),h!=null&&(e.checked=h&&typeof h!="function"&&typeof h!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+Ge(A):e.removeAttribute("name")}function jr(e,i,a,l,h,m,E,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),i!=null||a!=null){if(!(m!=="submit"&&m!=="reset"||i!=null))return;a=a!=null?""+Ge(a):"",i=i!=null?""+Ge(i):a,A||i===e.value||(e.value=i),e.defaultValue=i}l=l??h,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=A?e.checked:!!l,e.defaultChecked=!!l,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(e.name=E)}function qr(e,i,a){i==="number"&&Ea(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Pn(e,i,a,l){if(e=e.options,i){i={};for(var h=0;h<a.length;h++)i["$"+a[h]]=!0;for(a=0;a<e.length;a++)h=i.hasOwnProperty("$"+e[a].value),e[a].selected!==h&&(e[a].selected=h),h&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Ge(a),i=null,h=0;h<e.length;h++){if(e[h].value===a){e[h].selected=!0,l&&(e[h].defaultSelected=!0);return}i!==null||e[h].disabled||(i=e[h])}i!==null&&(i.selected=!0)}}function su(e,i,a){if(i!=null&&(i=""+Ge(i),i!==e.value&&(e.value=i),a==null)){e.defaultValue!==i&&(e.defaultValue=i);return}e.defaultValue=a!=null?""+Ge(a):""}function uu(e,i,a,l){if(i==null){if(l!=null){if(a!=null)throw Error(u(92));if(vt(l)){if(1<l.length)throw Error(u(93));l=l[0]}a=l}a==null&&(a=""),i=a}a=Ge(i),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Vi(e,i){if(i){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=i;return}}e.textContent=i}var lu=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 Hr(e,i,a){var l=i.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="":l?e.setProperty(i,a):typeof a!="number"||a===0||lu.has(i)?i==="float"?e.cssFloat=a:e[i]=(""+a).trim():e[i]=a+"px"}function Gr(e,i,a){if(i!=null&&typeof i!="object")throw Error(u(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||i!=null&&i.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var h in i)l=i[h],i.hasOwnProperty(h)&&a[h]!==l&&Hr(e,h,l)}else for(var m in i)i.hasOwnProperty(m)&&Hr(e,m,i[m])}function Un(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 Rt=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"]]),Ul=/^[\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 wa(e){return Ul.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Za=null;function Ka(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fn=null,jn=null;function ou(e){var i=Vn(e);if(i&&(e=i.stateNode)){var a=e[ve]||null;t:switch(e=i.stateNode,i.type){case"input":if(Fr(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),i=a.name,a.type==="radio"&&i!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+re(""+i)+'"][type="radio"]'),i=0;i<a.length;i++){var l=a[i];if(l!==e&&l.form===e.form){var h=l[ve]||null;if(!h)throw Error(u(90));Fr(l,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<a.length;i++)l=a[i],l.form===e.form&&ru(l)}break t;case"textarea":su(e,a.value,a.defaultValue);break t;case"select":i=a.value,i!=null&&Pn(e,!!a.multiple,i,!1)}}}var s=!1;function d(e,i,a){if(s)return e(i,a);s=!0;try{var l=e(i);return l}finally{if(s=!1,(Fn!==null||jn!==null)&&(Hu(),Fn&&(i=Fn,e=jn,jn=Fn=null,ou(i),e)))for(i=0;i<e.length;i++)ou(e[i])}}function S(e,i){var a=e.stateNode;if(a===null)return null;var l=a[ve]||null;if(l===null)return null;a=l[i];t:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break t;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,i,typeof a));return a}var w=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),N=!1;if(w)try{var j={};Object.defineProperty(j,"passive",{get:function(){N=!0}}),window.addEventListener("test",j,j),window.removeEventListener("test",j,j)}catch{N=!1}var Q=null,lt=null,ot=null;function Tt(){if(ot)return ot;var e,i=lt,a=i.length,l,h="value"in Q?Q.value:Q.textContent,m=h.length;for(e=0;e<a&&i[e]===h[e];e++);var E=a-e;for(l=1;l<=E&&i[a-l]===h[m-l];l++);return ot=h.slice(e,1<l?1-l:void 0)}function St(e){var i=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&i===13&&(e=13)):e=i,e===10&&(e=13),32<=e||e===13?e:0}function ue(){return!0}function Zi(){return!1}function ke(e){function i(a,l,h,m,E){this._reactName=a,this._targetInst=h,this.type=l,this.nativeEvent=m,this.target=E,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(a=e[A],this[A]=a?a(m):m[A]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ue:Zi,this.isPropagationStopped=Zi,this}return y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ue)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ue)},persist:function(){},isPersistent:ue}),i}var We={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=ke(We),yi=y({},We,{view:0,detail:0}),qn=ke(yi),Fl,jl,Jr,cu=y({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hl,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!==Jr&&(Jr&&e.type==="mousemove"?(Fl=e.screenX-Jr.screenX,jl=e.screenY-Jr.screenY):jl=Fl=0,Jr=e),Fl)},movementY:function(e){return"movementY"in e?e.movementY:jl}}),eh=ke(cu),gg=y({},cu,{dataTransfer:0}),bg=ke(gg),yg=y({},yi,{relatedTarget:0}),ql=ke(yg),vg=y({},We,{animationName:0,elapsedTime:0,pseudoElement:0}),Sg=ke(vg),kg=y({},We,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Eg=ke(kg),wg=y({},We,{data:0}),ih=ke(wg),Cg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ag={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_g={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tg(e){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(e):(e=_g[e])?!!i[e]:!1}function Hl(){return Tg}var Ng=y({},yi,{key:function(e){if(e.key){var i=Cg[e.key]||e.key;if(i!=="Unidentified")return i}return e.type==="keypress"?(e=St(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ag[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hl,charCode:function(e){return e.type==="keypress"?St(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?St(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lg=ke(Ng),Dg=y({},cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nh=ke(Dg),Og=y({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hl}),Rg=ke(Og),Mg=y({},We,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ig=ke(Mg),Vg=y({},cu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Bg=ke(Vg),zg=y({},We,{newState:0,oldState:0}),Pg=ke(zg),Ug=[9,13,27,32],Gl=w&&"CompositionEvent"in window,Qr=null;w&&"documentMode"in document&&(Qr=document.documentMode);var Fg=w&&"TextEvent"in window&&!Qr,ah=w&&(!Gl||Qr&&8<Qr&&11>=Qr),rh=" ",sh=!1;function uh(e,i){switch(e){case"keyup":return Ug.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wa=!1;function jg(e,i){switch(e){case"compositionend":return lh(i);case"keypress":return i.which!==32?null:(sh=!0,rh);case"textInput":return e=i.data,e===rh&&sh?null:e;default:return null}}function qg(e,i){if(Wa)return e==="compositionend"||!Gl&&uh(e,i)?(e=Tt(),ot=lt=Q=null,Wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return ah&&i.locale!=="ko"?null:i.data;default:return null}}var Hg={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 oh(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i==="input"?!!Hg[e.type]:i==="textarea"}function ch(e,i,a,l){Fn?jn?jn.push(l):jn=[l]:Fn=l,i=Zu(i,"onChange"),0<i.length&&(a=new hn("onChange","change",null,a,l),e.push({event:a,listeners:i}))}var Xr=null,Yr=null;function Gg(e){Hd(e,0)}function fu(e){var i=va(e);if(ru(i))return e}function fh(e,i){if(e==="change")return i}var hh=!1;if(w){var Jl;if(w){var Ql="oninput"in document;if(!Ql){var ph=document.createElement("div");ph.setAttribute("oninput","return;"),Ql=typeof ph.oninput=="function"}Jl=Ql}else Jl=!1;hh=Jl&&(!document.documentMode||9<document.documentMode)}function dh(){Xr&&(Xr.detachEvent("onpropertychange",mh),Yr=Xr=null)}function mh(e){if(e.propertyName==="value"&&fu(Yr)){var i=[];ch(i,Yr,e,Ka(e)),d(Gg,i)}}function Jg(e,i,a){e==="focusin"?(dh(),Xr=i,Yr=a,Xr.attachEvent("onpropertychange",mh)):e==="focusout"&&dh()}function Qg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fu(Yr)}function Xg(e,i){if(e==="click")return fu(i)}function Yg(e,i){if(e==="input"||e==="change")return fu(i)}function Zg(e,i){return e===i&&(e!==0||1/e===1/i)||e!==e&&i!==i}var si=typeof Object.is=="function"?Object.is:Zg;function Zr(e,i){if(si(e,i))return!0;if(typeof e!="object"||e===null||typeof i!="object"||i===null)return!1;var a=Object.keys(e),l=Object.keys(i);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var h=a[l];if(!Ji.call(i,h)||!si(e[h],i[h]))return!1}return!0}function xh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gh(e,i){var a=xh(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=i&&l>=i)return{node:a,offset:i-e};e=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=xh(a)}}function bh(e,i){return e&&i?e===i?!0:e&&e.nodeType===3?!1:i&&i.nodeType===3?bh(e,i.parentNode):"contains"in e?e.contains(i):e.compareDocumentPosition?!!(e.compareDocumentPosition(i)&16):!1:!1}function yh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var i=Ea(e.document);i instanceof e.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)e=i.contentWindow;else break;i=Ea(e.document)}return i}function Xl(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i&&(i==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||i==="textarea"||e.contentEditable==="true")}var Kg=w&&"documentMode"in document&&11>=document.documentMode,$a=null,Yl=null,Kr=null,Zl=!1;function vh(e,i,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Zl||$a==null||$a!==Ea(l)||(l=$a,"selectionStart"in l&&Xl(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Kr&&Zr(Kr,l)||(Kr=l,l=Zu(Yl,"onSelect"),0<l.length&&(i=new hn("onSelect","select",null,i,a),e.push({event:i,listeners:l}),i.target=$a)))}function Ca(e,i){var a={};return a[e.toLowerCase()]=i.toLowerCase(),a["Webkit"+e]="webkit"+i,a["Moz"+e]="moz"+i,a}var tr={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},Kl={},Sh={};w&&(Sh=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function Aa(e){if(Kl[e])return Kl[e];if(!tr[e])return e;var i=tr[e],a;for(a in i)if(i.hasOwnProperty(a)&&a in Sh)return Kl[e]=i[a];return e}var kh=Aa("animationend"),Eh=Aa("animationiteration"),wh=Aa("animationstart"),Wg=Aa("transitionrun"),$g=Aa("transitionstart"),t1=Aa("transitioncancel"),Ch=Aa("transitionend"),Ah=new Map,Wl="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(" ");Wl.push("scrollEnd");function Bi(e,i){Ah.set(e,i),Yi(i,[e])}var _h=new WeakMap;function vi(e,i){if(typeof e=="object"&&e!==null){var a=_h.get(e);return a!==void 0?a:(i={value:e,source:i,stack:nu(i)},_h.set(e,i),i)}return{value:e,source:i,stack:nu(i)}}var Si=[],er=0,$l=0;function hu(){for(var e=er,i=$l=er=0;i<e;){var a=Si[i];Si[i++]=null;var l=Si[i];Si[i++]=null;var h=Si[i];Si[i++]=null;var m=Si[i];if(Si[i++]=null,l!==null&&h!==null){var E=l.pending;E===null?h.next=h:(h.next=E.next,E.next=h),l.pending=h}m!==0&&Th(a,h,m)}}function pu(e,i,a,l){Si[er++]=e,Si[er++]=i,Si[er++]=a,Si[er++]=l,$l|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function to(e,i,a,l){return pu(e,i,a,l),du(e)}function ir(e,i){return pu(e,null,null,i),du(e)}function Th(e,i,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var h=!1,m=e.return;m!==null;)m.childLanes|=a,l=m.alternate,l!==null&&(l.childLanes|=a),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(h=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,h&&i!==null&&(h=31-ft(a),e=m.hiddenUpdates,l=e[h],l===null?e[h]=[i]:l.push(i),i.lane=a|536870912),m):null}function du(e){if(50<ks)throw ks=0,uc=null,Error(u(185));for(var i=e.return;i!==null;)e=i,i=e.return;return e.tag===3?e.stateNode:null}var nr={};function e1(e,i,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ui(e,i,a,l){return new e1(e,i,a,l)}function eo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pn(e,i){var a=e.alternate;return a===null?(a=ui(e.tag,i,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=i,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,i=e.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Nh(e,i){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=i,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,i=a.dependencies,e.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),e}function mu(e,i,a,l,h,m){var E=0;if(l=e,typeof e=="function")eo(e)&&(E=1);else if(typeof e=="string")E=nb(e,a,Bt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case rt:return e=ui(31,a,i,h),e.elementType=rt,e.lanes=m,e;case L:return _a(a.children,h,m,i);case B:E=8,h|=24;break;case F:return e=ui(12,a,i,h|2),e.elementType=F,e.lanes=m,e;case V:return e=ui(13,a,i,h),e.elementType=V,e.lanes=m,e;case v:return e=ui(19,a,i,h),e.elementType=v,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case I:case z:E=10;break t;case G:E=9;break t;case W:E=11;break t;case R:E=14;break t;case X:E=16,l=null;break t}E=29,a=Error(u(130,e===null?"null":typeof e,"")),l=null}return i=ui(E,a,i,h),i.elementType=e,i.type=l,i.lanes=m,i}function _a(e,i,a,l){return e=ui(7,e,l,i),e.lanes=a,e}function io(e,i,a){return e=ui(6,e,null,i),e.lanes=a,e}function no(e,i,a){return i=ui(4,e.children!==null?e.children:[],e.key,i),i.lanes=a,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}var ar=[],rr=0,xu=null,gu=0,ki=[],Ei=0,Ta=null,dn=1,mn="";function Na(e,i){ar[rr++]=gu,ar[rr++]=xu,xu=e,gu=i}function Lh(e,i,a){ki[Ei++]=dn,ki[Ei++]=mn,ki[Ei++]=Ta,Ta=e;var l=dn;e=mn;var h=32-ft(l)-1;l&=~(1<<h),a+=1;var m=32-ft(i)+h;if(30<m){var E=h-h%5;m=(l&(1<<E)-1).toString(32),l>>=E,h-=E,dn=1<<32-ft(i)+h|a<<h|l,mn=m+e}else dn=1<<m|a<<h|l,mn=e}function ao(e){e.return!==null&&(Na(e,1),Lh(e,1,0))}function ro(e){for(;e===xu;)xu=ar[--rr],ar[rr]=null,gu=ar[--rr],ar[rr]=null;for(;e===Ta;)Ta=ki[--Ei],ki[Ei]=null,mn=ki[--Ei],ki[Ei]=null,dn=ki[--Ei],ki[Ei]=null}var Je=null,de=null,Jt=!1,La=null,Ki=!1,so=Error(u(519));function Da(e){var i=Error(u(418,""));throw ts(vi(i,e)),so}function Dh(e){var i=e.stateNode,a=e.type,l=e.memoizedProps;switch(i[Oe]=e,i[ve]=l,a){case"dialog":Vt("cancel",i),Vt("close",i);break;case"iframe":case"object":case"embed":Vt("load",i);break;case"video":case"audio":for(a=0;a<ws.length;a++)Vt(ws[a],i);break;case"source":Vt("error",i);break;case"img":case"image":case"link":Vt("error",i),Vt("load",i);break;case"details":Vt("toggle",i);break;case"input":Vt("invalid",i),jr(i,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ka(i);break;case"select":Vt("invalid",i);break;case"textarea":Vt("invalid",i),uu(i,l.value,l.defaultValue,l.children),ka(i)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||i.textContent===""+a||l.suppressHydrationWarning===!0||Xd(i.textContent,a)?(l.popover!=null&&(Vt("beforetoggle",i),Vt("toggle",i)),l.onScroll!=null&&Vt("scroll",i),l.onScrollEnd!=null&&Vt("scrollend",i),l.onClick!=null&&(i.onclick=Ku),i=!0):i=!1,i||Da(e)}function Oh(e){for(Je=e.return;Je;)switch(Je.tag){case 5:case 13:Ki=!1;return;case 27:case 3:Ki=!0;return;default:Je=Je.return}}function Wr(e){if(e!==Je)return!1;if(!Jt)return Oh(e),Jt=!0,!1;var i=e.tag,a;if((a=i!==3&&i!==27)&&((a=i===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ec(e.type,e.memoizedProps)),a=!a),a&&de&&Da(e),Oh(e),i===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));t:{for(e=e.nextSibling,i=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(i===0){de=Pi(e.nextSibling);break t}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++;e=e.nextSibling}de=null}}else i===27?(i=de,ra(e.type)?(e=_c,_c=null,de=e):de=i):de=Je?Pi(e.stateNode.nextSibling):null;return!0}function $r(){de=Je=null,Jt=!1}function Rh(){var e=La;return e!==null&&(ei===null?ei=e:ei.push.apply(ei,e),La=null),e}function ts(e){La===null?La=[e]:La.push(e)}var uo=Gt(null),Oa=null,xn=null;function Hn(e,i,a){O(uo,i._currentValue),i._currentValue=a}function gn(e){e._currentValue=uo.current,Lt(uo)}function lo(e,i,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&i)!==i?(e.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),e===a)break;e=e.return}}function oo(e,i,a,l){var h=e.child;for(h!==null&&(h.return=e);h!==null;){var m=h.dependencies;if(m!==null){var E=h.child;m=m.firstContext;t:for(;m!==null;){var A=m;m=h;for(var M=0;M<i.length;M++)if(A.context===i[M]){m.lanes|=a,A=m.alternate,A!==null&&(A.lanes|=a),lo(m.return,a,e),l||(E=null);break t}m=A.next}}else if(h.tag===18){if(E=h.return,E===null)throw Error(u(341));E.lanes|=a,m=E.alternate,m!==null&&(m.lanes|=a),lo(E,a,e),E=null}else E=h.child;if(E!==null)E.return=h;else for(E=h;E!==null;){if(E===e){E=null;break}if(h=E.sibling,h!==null){h.return=E.return,E=h;break}E=E.return}h=E}}function es(e,i,a,l){e=null;for(var h=i,m=!1;h!==null;){if(!m){if((h.flags&524288)!==0)m=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var E=h.alternate;if(E===null)throw Error(u(387));if(E=E.memoizedProps,E!==null){var A=h.type;si(h.pendingProps.value,E.value)||(e!==null?e.push(A):e=[A])}}else if(h===Xe.current){if(E=h.alternate,E===null)throw Error(u(387));E.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(e!==null?e.push(Ls):e=[Ls])}h=h.return}e!==null&&oo(i,e,a,l),i.flags|=262144}function bu(e){for(e=e.firstContext;e!==null;){if(!si(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ra(e){Oa=e,xn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qe(e){return Mh(Oa,e)}function yu(e,i){return Oa===null&&Ra(e),Mh(e,i)}function Mh(e,i){var a=i._currentValue;if(i={context:i,memoizedValue:a,next:null},xn===null){if(e===null)throw Error(u(308));xn=i,e.dependencies={lanes:0,firstContext:i},e.flags|=524288}else xn=xn.next=i;return a}var i1=typeof AbortController<"u"?AbortController:function(){var e=[],i=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){i.aborted=!0,e.forEach(function(a){return a()})}},n1=t.unstable_scheduleCallback,a1=t.unstable_NormalPriority,_e={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function co(){return{controller:new i1,data:new Map,refCount:0}}function is(e){e.refCount--,e.refCount===0&&n1(a1,function(){e.controller.abort()})}var ns=null,fo=0,sr=0,ur=null;function r1(e,i){if(ns===null){var a=ns=[];fo=0,sr=dc(),ur={status:"pending",value:void 0,then:function(l){a.push(l)}}}return fo++,i.then(Ih,Ih),i}function Ih(){if(--fo===0&&ns!==null){ur!==null&&(ur.status="fulfilled");var e=ns;ns=null,sr=0,ur=null;for(var i=0;i<e.length;i++)(0,e[i])()}}function s1(e,i){var a=[],l={status:"pending",value:null,reason:null,then:function(h){a.push(h)}};return e.then(function(){l.status="fulfilled",l.value=i;for(var h=0;h<a.length;h++)(0,a[h])(i)},function(h){for(l.status="rejected",l.reason=h,h=0;h<a.length;h++)(0,a[h])(void 0)}),l}var Vh=K.S;K.S=function(e,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&r1(e,i),Vh!==null&&Vh(e,i)};var Ma=Gt(null);function ho(){var e=Ma.current;return e!==null?e:ne.pooledCache}function vu(e,i){i===null?O(Ma,Ma.current):O(Ma,i.pool)}function Bh(){var e=ho();return e===null?null:{parent:_e._currentValue,pool:e}}var as=Error(u(460)),zh=Error(u(474)),Su=Error(u(542)),po={then:function(){}};function Ph(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ku(){}function Uh(e,i,a){switch(a=e[a],a===void 0?e.push(i):a!==i&&(i.then(ku,ku),i=a),i.status){case"fulfilled":return i.value;case"rejected":throw e=i.reason,jh(e),e;default:if(typeof i.status=="string")i.then(ku,ku);else{if(e=ne,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=i,e.status="pending",e.then(function(l){if(i.status==="pending"){var h=i;h.status="fulfilled",h.value=l}},function(l){if(i.status==="pending"){var h=i;h.status="rejected",h.reason=l}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw e=i.reason,jh(e),e}throw rs=i,as}}var rs=null;function Fh(){if(rs===null)throw Error(u(459));var e=rs;return rs=null,e}function jh(e){if(e===as||e===Su)throw Error(u(483))}var Gn=!1;function mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xo(e,i){e=e.updateQueue,i.updateQueue===e&&(i.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qn(e,i,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Xt&2)!==0){var h=l.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),l.pending=i,i=du(e),Th(e,null,a),i}return pu(e,l,i,a),du(e)}function ss(e,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194048)!==0)){var l=i.lanes;l&=e.pendingLanes,a|=l,i.lanes=a,wt(e,a)}}function go(e,i){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var h=null,m=null;if(a=a.firstBaseUpdate,a!==null){do{var E={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};m===null?h=m=E:m=m.next=E,a=a.next}while(a!==null);m===null?h=m=i:m=m.next=i}else h=m=i;a={baseState:l.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=i:e.next=i,a.lastBaseUpdate=i}var bo=!1;function us(){if(bo){var e=ur;if(e!==null)throw e}}function ls(e,i,a,l){bo=!1;var h=e.updateQueue;Gn=!1;var m=h.firstBaseUpdate,E=h.lastBaseUpdate,A=h.shared.pending;if(A!==null){h.shared.pending=null;var M=A,J=M.next;M.next=null,E===null?m=J:E.next=J,E=M;var et=e.alternate;et!==null&&(et=et.updateQueue,A=et.lastBaseUpdate,A!==E&&(A===null?et.firstBaseUpdate=J:A.next=J,et.lastBaseUpdate=M))}if(m!==null){var at=h.baseState;E=0,et=J=M=null,A=m;do{var Y=A.lane&-536870913,Z=Y!==A.lane;if(Z?(Ut&Y)===Y:(l&Y)===Y){Y!==0&&Y===sr&&(bo=!0),et!==null&&(et=et.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});t:{var Ct=e,kt=A;Y=i;var $t=a;switch(kt.tag){case 1:if(Ct=kt.payload,typeof Ct=="function"){at=Ct.call($t,at,Y);break t}at=Ct;break t;case 3:Ct.flags=Ct.flags&-65537|128;case 0:if(Ct=kt.payload,Y=typeof Ct=="function"?Ct.call($t,at,Y):Ct,Y==null)break t;at=y({},at,Y);break t;case 2:Gn=!0}}Y=A.callback,Y!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=h.callbacks,Z===null?h.callbacks=[Y]:Z.push(Y))}else Z={lane:Y,tag:A.tag,payload:A.payload,callback:A.callback,next:null},et===null?(J=et=Z,M=at):et=et.next=Z,E|=Y;if(A=A.next,A===null){if(A=h.shared.pending,A===null)break;Z=A,A=Z.next,Z.next=null,h.lastBaseUpdate=Z,h.shared.pending=null}}while(!0);et===null&&(M=at),h.baseState=M,h.firstBaseUpdate=J,h.lastBaseUpdate=et,m===null&&(h.shared.lanes=0),ea|=E,e.lanes=E,e.memoizedState=at}}function qh(e,i){if(typeof e!="function")throw Error(u(191,e));e.call(i)}function Hh(e,i){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)qh(a[e],i)}var lr=Gt(null),Eu=Gt(0);function Gh(e,i){e=wn,O(Eu,e),O(lr,i),wn=e|i.baseLanes}function yo(){O(Eu,wn),O(lr,lr.current)}function vo(){wn=Eu.current,Lt(lr),Lt(Eu)}var Xn=0,Dt=null,Kt=null,Ee=null,wu=!1,or=!1,Ia=!1,Cu=0,os=0,cr=null,u1=0;function be(){throw Error(u(321))}function So(e,i){if(i===null)return!1;for(var a=0;a<i.length&&a<e.length;a++)if(!si(e[a],i[a]))return!1;return!0}function ko(e,i,a,l,h,m){return Xn=m,Dt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,K.H=e===null||e.memoizedState===null?Tp:Np,Ia=!1,m=a(l,h),Ia=!1,or&&(m=Qh(i,a,l,h)),Jh(e),m}function Jh(e){K.H=Du;var i=Kt!==null&&Kt.next!==null;if(Xn=0,Ee=Kt=Dt=null,wu=!1,os=0,cr=null,i)throw Error(u(300));e===null||Re||(e=e.dependencies,e!==null&&bu(e)&&(Re=!0))}function Qh(e,i,a,l){Dt=e;var h=0;do{if(or&&(cr=null),os=0,or=!1,25<=h)throw Error(u(301));if(h+=1,Ee=Kt=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}K.H=d1,m=i(a,l)}while(or);return m}function l1(){var e=K.H,i=e.useState()[0];return i=typeof i.then=="function"?cs(i):i,e=e.useState()[0],(Kt!==null?Kt.memoizedState:null)!==e&&(Dt.flags|=1024),i}function Eo(){var e=Cu!==0;return Cu=0,e}function wo(e,i,a){i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~a}function Co(e){if(wu){for(e=e.memoizedState;e!==null;){var i=e.queue;i!==null&&(i.pending=null),e=e.next}wu=!1}Xn=0,Ee=Kt=Dt=null,or=!1,os=Cu=0,cr=null}function $e(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?Dt.memoizedState=Ee=e:Ee=Ee.next=e,Ee}function we(){if(Kt===null){var e=Dt.alternate;e=e!==null?e.memoizedState:null}else e=Kt.next;var i=Ee===null?Dt.memoizedState:Ee.next;if(i!==null)Ee=i,Kt=e;else{if(e===null)throw Dt.alternate===null?Error(u(467)):Error(u(310));Kt=e,e={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},Ee===null?Dt.memoizedState=Ee=e:Ee=Ee.next=e}return Ee}function Ao(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cs(e){var i=os;return os+=1,cr===null&&(cr=[]),e=Uh(cr,e,i),i=Dt,(Ee===null?i.memoizedState:Ee.next)===null&&(i=i.alternate,K.H=i===null||i.memoizedState===null?Tp:Np),e}function Au(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return cs(e);if(e.$$typeof===z)return qe(e)}throw Error(u(438,String(e)))}function _o(e){var i=null,a=Dt.updateQueue;if(a!==null&&(i=a.memoCache),i==null){var l=Dt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(i={data:l.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),a===null&&(a=Ao(),Dt.updateQueue=a),a.memoCache=i,a=i.data[i.index],a===void 0)for(a=i.data[i.index]=Array(e),l=0;l<e;l++)a[l]=q;return i.index++,a}function bn(e,i){return typeof i=="function"?i(e):i}function _u(e){var i=we();return To(i,Kt,e)}function To(e,i,a){var l=e.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=a;var h=e.baseQueue,m=l.pending;if(m!==null){if(h!==null){var E=h.next;h.next=m.next,m.next=E}i.baseQueue=h=m,l.pending=null}if(m=e.baseState,h===null)e.memoizedState=m;else{i=h.next;var A=E=null,M=null,J=i,et=!1;do{var at=J.lane&-536870913;if(at!==J.lane?(Ut&at)===at:(Xn&at)===at){var Y=J.revertLane;if(Y===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),at===sr&&(et=!0);else if((Xn&Y)===Y){J=J.next,Y===sr&&(et=!0);continue}else at={lane:0,revertLane:J.revertLane,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},M===null?(A=M=at,E=m):M=M.next=at,Dt.lanes|=Y,ea|=Y;at=J.action,Ia&&a(m,at),m=J.hasEagerState?J.eagerState:a(m,at)}else Y={lane:at,revertLane:J.revertLane,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},M===null?(A=M=Y,E=m):M=M.next=Y,Dt.lanes|=at,ea|=at;J=J.next}while(J!==null&&J!==i);if(M===null?E=m:M.next=A,!si(m,e.memoizedState)&&(Re=!0,et&&(a=ur,a!==null)))throw a;e.memoizedState=m,e.baseState=E,e.baseQueue=M,l.lastRenderedState=m}return h===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function No(e){var i=we(),a=i.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var l=a.dispatch,h=a.pending,m=i.memoizedState;if(h!==null){a.pending=null;var E=h=h.next;do m=e(m,E.action),E=E.next;while(E!==h);si(m,i.memoizedState)||(Re=!0),i.memoizedState=m,i.baseQueue===null&&(i.baseState=m),a.lastRenderedState=m}return[m,l]}function Xh(e,i,a){var l=Dt,h=we(),m=Jt;if(m){if(a===void 0)throw Error(u(407));a=a()}else a=i();var E=!si((Kt||h).memoizedState,a);E&&(h.memoizedState=a,Re=!0),h=h.queue;var A=Kh.bind(null,l,h,e);if(fs(2048,8,A,[e]),h.getSnapshot!==i||E||Ee!==null&&Ee.memoizedState.tag&1){if(l.flags|=2048,fr(9,Tu(),Zh.bind(null,l,h,a,i),null),ne===null)throw Error(u(349));m||(Xn&124)!==0||Yh(l,i,a)}return a}function Yh(e,i,a){e.flags|=16384,e={getSnapshot:i,value:a},i=Dt.updateQueue,i===null?(i=Ao(),Dt.updateQueue=i,i.stores=[e]):(a=i.stores,a===null?i.stores=[e]:a.push(e))}function Zh(e,i,a,l){i.value=a,i.getSnapshot=l,Wh(i)&&$h(e)}function Kh(e,i,a){return a(function(){Wh(i)&&$h(e)})}function Wh(e){var i=e.getSnapshot;e=e.value;try{var a=i();return!si(e,a)}catch{return!0}}function $h(e){var i=ir(e,2);i!==null&&hi(i,e,2)}function Lo(e){var i=$e();if(typeof e=="function"){var a=e;if(e=a(),Ia){T(!0);try{a()}finally{T(!1)}}}return i.memoizedState=i.baseState=e,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:e},i}function tp(e,i,a,l){return e.baseState=a,To(e,Kt,typeof l=="function"?l:bn)}function o1(e,i,a,l,h){if(Lu(e))throw Error(u(485));if(e=i.action,e!==null){var m={payload:h,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){m.listeners.push(E)}};K.T!==null?a(!0):m.isTransition=!1,l(m),a=i.pending,a===null?(m.next=i.pending=m,ep(i,m)):(m.next=a.next,i.pending=a.next=m)}}function ep(e,i){var a=i.action,l=i.payload,h=e.state;if(i.isTransition){var m=K.T,E={};K.T=E;try{var A=a(h,l),M=K.S;M!==null&&M(E,A),ip(e,i,A)}catch(J){Do(e,i,J)}finally{K.T=m}}else try{m=a(h,l),ip(e,i,m)}catch(J){Do(e,i,J)}}function ip(e,i,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){np(e,i,l)},function(l){return Do(e,i,l)}):np(e,i,a)}function np(e,i,a){i.status="fulfilled",i.value=a,ap(i),e.state=a,i=e.pending,i!==null&&(a=i.next,a===i?e.pending=null:(a=a.next,i.next=a,ep(e,a)))}function Do(e,i,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do i.status="rejected",i.reason=a,ap(i),i=i.next;while(i!==l)}e.action=null}function ap(e){e=e.listeners;for(var i=0;i<e.length;i++)(0,e[i])()}function rp(e,i){return i}function sp(e,i){if(Jt){var a=ne.formState;if(a!==null){t:{var l=Dt;if(Jt){if(de){e:{for(var h=de,m=Ki;h.nodeType!==8;){if(!m){h=null;break e}if(h=Pi(h.nextSibling),h===null){h=null;break e}}m=h.data,h=m==="F!"||m==="F"?h:null}if(h){de=Pi(h.nextSibling),l=h.data==="F!";break t}}Da(l)}l=!1}l&&(i=a[0])}}return a=$e(),a.memoizedState=a.baseState=i,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rp,lastRenderedState:i},a.queue=l,a=Cp.bind(null,Dt,l),l.dispatch=a,l=Lo(!1),m=Vo.bind(null,Dt,!1,l.queue),l=$e(),h={state:i,dispatch:null,action:e,pending:null},l.queue=h,a=o1.bind(null,Dt,h,m,a),h.dispatch=a,l.memoizedState=e,[i,a,!1]}function up(e){var i=we();return lp(i,Kt,e)}function lp(e,i,a){if(i=To(e,i,rp)[0],e=_u(bn)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var l=cs(i)}catch(E){throw E===as?Su:E}else l=i;i=we();var h=i.queue,m=h.dispatch;return a!==i.memoizedState&&(Dt.flags|=2048,fr(9,Tu(),c1.bind(null,h,a),null)),[l,m,e]}function c1(e,i){e.action=i}function op(e){var i=we(),a=Kt;if(a!==null)return lp(i,a,e);we(),i=i.memoizedState,a=we();var l=a.queue.dispatch;return a.memoizedState=e,[i,l,!1]}function fr(e,i,a,l){return e={tag:e,create:a,deps:l,inst:i,next:null},i=Dt.updateQueue,i===null&&(i=Ao(),Dt.updateQueue=i),a=i.lastEffect,a===null?i.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,i.lastEffect=e),e}function Tu(){return{destroy:void 0,resource:void 0}}function cp(){return we().memoizedState}function Nu(e,i,a,l){var h=$e();l=l===void 0?null:l,Dt.flags|=e,h.memoizedState=fr(1|i,Tu(),a,l)}function fs(e,i,a,l){var h=we();l=l===void 0?null:l;var m=h.memoizedState.inst;Kt!==null&&l!==null&&So(l,Kt.memoizedState.deps)?h.memoizedState=fr(i,m,a,l):(Dt.flags|=e,h.memoizedState=fr(1|i,m,a,l))}function fp(e,i){Nu(8390656,8,e,i)}function hp(e,i){fs(2048,8,e,i)}function pp(e,i){return fs(4,2,e,i)}function dp(e,i){return fs(4,4,e,i)}function mp(e,i){if(typeof i=="function"){e=e();var a=i(e);return function(){typeof a=="function"?a():i(null)}}if(i!=null)return e=e(),i.current=e,function(){i.current=null}}function xp(e,i,a){a=a!=null?a.concat([e]):null,fs(4,4,mp.bind(null,i,e),a)}function Oo(){}function gp(e,i){var a=we();i=i===void 0?null:i;var l=a.memoizedState;return i!==null&&So(i,l[1])?l[0]:(a.memoizedState=[e,i],e)}function bp(e,i){var a=we();i=i===void 0?null:i;var l=a.memoizedState;if(i!==null&&So(i,l[1]))return l[0];if(l=e(),Ia){T(!0);try{e()}finally{T(!1)}}return a.memoizedState=[l,i],l}function Ro(e,i,a){return a===void 0||(Xn&1073741824)!==0?e.memoizedState=i:(e.memoizedState=a,e=Sd(),Dt.lanes|=e,ea|=e,a)}function yp(e,i,a,l){return si(a,i)?a:lr.current!==null?(e=Ro(e,a,l),si(e,i)||(Re=!0),e):(Xn&42)===0?(Re=!0,e.memoizedState=a):(e=Sd(),Dt.lanes|=e,ea|=e,i)}function vp(e,i,a,l,h){var m=nt.p;nt.p=m!==0&&8>m?m:8;var E=K.T,A={};K.T=A,Vo(e,!1,i,a);try{var M=h(),J=K.S;if(J!==null&&J(A,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var et=s1(M,l);hs(e,i,et,fi(e))}else hs(e,i,l,fi(e))}catch(at){hs(e,i,{then:function(){},status:"rejected",reason:at},fi())}finally{nt.p=m,K.T=E}}function f1(){}function Mo(e,i,a,l){if(e.tag!==5)throw Error(u(476));var h=Sp(e).queue;vp(e,h,i,dt,a===null?f1:function(){return kp(e),a(l)})}function Sp(e){var i=e.memoizedState;if(i!==null)return i;i={memoizedState:dt,baseState:dt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:dt},next:null};var a={};return i.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:a},next:null},e.memoizedState=i,e=e.alternate,e!==null&&(e.memoizedState=i),i}function kp(e){var i=Sp(e).next.queue;hs(e,i,{},fi())}function Io(){return qe(Ls)}function Ep(){return we().memoizedState}function wp(){return we().memoizedState}function h1(e){for(var i=e.return;i!==null;){switch(i.tag){case 24:case 3:var a=fi();e=Jn(a);var l=Qn(i,e,a);l!==null&&(hi(l,i,a),ss(l,i,a)),i={cache:co()},e.payload=i;return}i=i.return}}function p1(e,i,a){var l=fi();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Lu(e)?Ap(i,a):(a=to(e,i,a,l),a!==null&&(hi(a,e,l),_p(a,i,l)))}function Cp(e,i,a){var l=fi();hs(e,i,a,l)}function hs(e,i,a,l){var h={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Lu(e))Ap(i,h);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=i.lastRenderedReducer,m!==null))try{var E=i.lastRenderedState,A=m(E,a);if(h.hasEagerState=!0,h.eagerState=A,si(A,E))return pu(e,i,h,0),ne===null&&hu(),!1}catch{}finally{}if(a=to(e,i,h,l),a!==null)return hi(a,e,l),_p(a,i,l),!0}return!1}function Vo(e,i,a,l){if(l={lane:2,revertLane:dc(),action:l,hasEagerState:!1,eagerState:null,next:null},Lu(e)){if(i)throw Error(u(479))}else i=to(e,a,l,2),i!==null&&hi(i,e,2)}function Lu(e){var i=e.alternate;return e===Dt||i!==null&&i===Dt}function Ap(e,i){or=wu=!0;var a=e.pending;a===null?i.next=i:(i.next=a.next,a.next=i),e.pending=i}function _p(e,i,a){if((a&4194048)!==0){var l=i.lanes;l&=e.pendingLanes,a|=l,i.lanes=a,wt(e,a)}}var Du={readContext:qe,use:Au,useCallback:be,useContext:be,useEffect:be,useImperativeHandle:be,useLayoutEffect:be,useInsertionEffect:be,useMemo:be,useReducer:be,useRef:be,useState:be,useDebugValue:be,useDeferredValue:be,useTransition:be,useSyncExternalStore:be,useId:be,useHostTransitionStatus:be,useFormState:be,useActionState:be,useOptimistic:be,useMemoCache:be,useCacheRefresh:be},Tp={readContext:qe,use:Au,useCallback:function(e,i){return $e().memoizedState=[e,i===void 0?null:i],e},useContext:qe,useEffect:fp,useImperativeHandle:function(e,i,a){a=a!=null?a.concat([e]):null,Nu(4194308,4,mp.bind(null,i,e),a)},useLayoutEffect:function(e,i){return Nu(4194308,4,e,i)},useInsertionEffect:function(e,i){Nu(4,2,e,i)},useMemo:function(e,i){var a=$e();i=i===void 0?null:i;var l=e();if(Ia){T(!0);try{e()}finally{T(!1)}}return a.memoizedState=[l,i],l},useReducer:function(e,i,a){var l=$e();if(a!==void 0){var h=a(i);if(Ia){T(!0);try{a(i)}finally{T(!1)}}}else h=i;return l.memoizedState=l.baseState=h,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:h},l.queue=e,e=e.dispatch=p1.bind(null,Dt,e),[l.memoizedState,e]},useRef:function(e){var i=$e();return e={current:e},i.memoizedState=e},useState:function(e){e=Lo(e);var i=e.queue,a=Cp.bind(null,Dt,i);return i.dispatch=a,[e.memoizedState,a]},useDebugValue:Oo,useDeferredValue:function(e,i){var a=$e();return Ro(a,e,i)},useTransition:function(){var e=Lo(!1);return e=vp.bind(null,Dt,e.queue,!0,!1),$e().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,i,a){var l=Dt,h=$e();if(Jt){if(a===void 0)throw Error(u(407));a=a()}else{if(a=i(),ne===null)throw Error(u(349));(Ut&124)!==0||Yh(l,i,a)}h.memoizedState=a;var m={value:a,getSnapshot:i};return h.queue=m,fp(Kh.bind(null,l,m,e),[e]),l.flags|=2048,fr(9,Tu(),Zh.bind(null,l,m,a,i),null),a},useId:function(){var e=$e(),i=ne.identifierPrefix;if(Jt){var a=mn,l=dn;a=(l&~(1<<32-ft(l)-1)).toString(32)+a,i="«"+i+"R"+a,a=Cu++,0<a&&(i+="H"+a.toString(32)),i+="»"}else a=u1++,i="«"+i+"r"+a.toString(32)+"»";return e.memoizedState=i},useHostTransitionStatus:Io,useFormState:sp,useActionState:sp,useOptimistic:function(e){var i=$e();i.memoizedState=i.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=a,i=Vo.bind(null,Dt,!0,a),a.dispatch=i,[e,i]},useMemoCache:_o,useCacheRefresh:function(){return $e().memoizedState=h1.bind(null,Dt)}},Np={readContext:qe,use:Au,useCallback:gp,useContext:qe,useEffect:hp,useImperativeHandle:xp,useInsertionEffect:pp,useLayoutEffect:dp,useMemo:bp,useReducer:_u,useRef:cp,useState:function(){return _u(bn)},useDebugValue:Oo,useDeferredValue:function(e,i){var a=we();return yp(a,Kt.memoizedState,e,i)},useTransition:function(){var e=_u(bn)[0],i=we().memoizedState;return[typeof e=="boolean"?e:cs(e),i]},useSyncExternalStore:Xh,useId:Ep,useHostTransitionStatus:Io,useFormState:up,useActionState:up,useOptimistic:function(e,i){var a=we();return tp(a,Kt,e,i)},useMemoCache:_o,useCacheRefresh:wp},d1={readContext:qe,use:Au,useCallback:gp,useContext:qe,useEffect:hp,useImperativeHandle:xp,useInsertionEffect:pp,useLayoutEffect:dp,useMemo:bp,useReducer:No,useRef:cp,useState:function(){return No(bn)},useDebugValue:Oo,useDeferredValue:function(e,i){var a=we();return Kt===null?Ro(a,e,i):yp(a,Kt.memoizedState,e,i)},useTransition:function(){var e=No(bn)[0],i=we().memoizedState;return[typeof e=="boolean"?e:cs(e),i]},useSyncExternalStore:Xh,useId:Ep,useHostTransitionStatus:Io,useFormState:op,useActionState:op,useOptimistic:function(e,i){var a=we();return Kt!==null?tp(a,Kt,e,i):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:_o,useCacheRefresh:wp},hr=null,ps=0;function Ou(e){var i=ps;return ps+=1,hr===null&&(hr=[]),Uh(hr,e,i)}function ds(e,i){i=i.props.ref,e.ref=i!==void 0?i:null}function Ru(e,i){throw i.$$typeof===b?Error(u(525)):(e=Object.prototype.toString.call(i),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":e)))}function Lp(e){var i=e._init;return i(e._payload)}function Dp(e){function i(U,P){if(e){var H=U.deletions;H===null?(U.deletions=[P],U.flags|=16):H.push(P)}}function a(U,P){if(!e)return null;for(;P!==null;)i(U,P),P=P.sibling;return null}function l(U){for(var P=new Map;U!==null;)U.key!==null?P.set(U.key,U):P.set(U.index,U),U=U.sibling;return P}function h(U,P){return U=pn(U,P),U.index=0,U.sibling=null,U}function m(U,P,H){return U.index=H,e?(H=U.alternate,H!==null?(H=H.index,H<P?(U.flags|=67108866,P):H):(U.flags|=67108866,P)):(U.flags|=1048576,P)}function E(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function A(U,P,H,it){return P===null||P.tag!==6?(P=io(H,U.mode,it),P.return=U,P):(P=h(P,H),P.return=U,P)}function M(U,P,H,it){var mt=H.type;return mt===L?et(U,P,H.props.children,it,H.key):P!==null&&(P.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===X&&Lp(mt)===P.type)?(P=h(P,H.props),ds(P,H),P.return=U,P):(P=mu(H.type,H.key,H.props,null,U.mode,it),ds(P,H),P.return=U,P)}function J(U,P,H,it){return P===null||P.tag!==4||P.stateNode.containerInfo!==H.containerInfo||P.stateNode.implementation!==H.implementation?(P=no(H,U.mode,it),P.return=U,P):(P=h(P,H.children||[]),P.return=U,P)}function et(U,P,H,it,mt){return P===null||P.tag!==7?(P=_a(H,U.mode,it,mt),P.return=U,P):(P=h(P,H),P.return=U,P)}function at(U,P,H){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=io(""+P,U.mode,H),P.return=U,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case k:return H=mu(P.type,P.key,P.props,null,U.mode,H),ds(H,P),H.return=U,H;case C:return P=no(P,U.mode,H),P.return=U,P;case X:var it=P._init;return P=it(P._payload),at(U,P,H)}if(vt(P)||st(P))return P=_a(P,U.mode,H,null),P.return=U,P;if(typeof P.then=="function")return at(U,Ou(P),H);if(P.$$typeof===z)return at(U,yu(U,P),H);Ru(U,P)}return null}function Y(U,P,H,it){var mt=P!==null?P.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return mt!==null?null:A(U,P,""+H,it);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case k:return H.key===mt?M(U,P,H,it):null;case C:return H.key===mt?J(U,P,H,it):null;case X:return mt=H._init,H=mt(H._payload),Y(U,P,H,it)}if(vt(H)||st(H))return mt!==null?null:et(U,P,H,it,null);if(typeof H.then=="function")return Y(U,P,Ou(H),it);if(H.$$typeof===z)return Y(U,P,yu(U,H),it);Ru(U,H)}return null}function Z(U,P,H,it,mt){if(typeof it=="string"&&it!==""||typeof it=="number"||typeof it=="bigint")return U=U.get(H)||null,A(P,U,""+it,mt);if(typeof it=="object"&&it!==null){switch(it.$$typeof){case k:return U=U.get(it.key===null?H:it.key)||null,M(P,U,it,mt);case C:return U=U.get(it.key===null?H:it.key)||null,J(P,U,it,mt);case X:var Mt=it._init;return it=Mt(it._payload),Z(U,P,H,it,mt)}if(vt(it)||st(it))return U=U.get(H)||null,et(P,U,it,mt,null);if(typeof it.then=="function")return Z(U,P,H,Ou(it),mt);if(it.$$typeof===z)return Z(U,P,H,yu(P,it),mt);Ru(P,it)}return null}function Ct(U,P,H,it){for(var mt=null,Mt=null,yt=P,Et=P=0,Ie=null;yt!==null&&Et<H.length;Et++){yt.index>Et?(Ie=yt,yt=null):Ie=yt.sibling;var Ht=Y(U,yt,H[Et],it);if(Ht===null){yt===null&&(yt=Ie);break}e&&yt&&Ht.alternate===null&&i(U,yt),P=m(Ht,P,Et),Mt===null?mt=Ht:Mt.sibling=Ht,Mt=Ht,yt=Ie}if(Et===H.length)return a(U,yt),Jt&&Na(U,Et),mt;if(yt===null){for(;Et<H.length;Et++)yt=at(U,H[Et],it),yt!==null&&(P=m(yt,P,Et),Mt===null?mt=yt:Mt.sibling=yt,Mt=yt);return Jt&&Na(U,Et),mt}for(yt=l(yt);Et<H.length;Et++)Ie=Z(yt,U,Et,H[Et],it),Ie!==null&&(e&&Ie.alternate!==null&&yt.delete(Ie.key===null?Et:Ie.key),P=m(Ie,P,Et),Mt===null?mt=Ie:Mt.sibling=Ie,Mt=Ie);return e&&yt.forEach(function(ca){return i(U,ca)}),Jt&&Na(U,Et),mt}function kt(U,P,H,it){if(H==null)throw Error(u(151));for(var mt=null,Mt=null,yt=P,Et=P=0,Ie=null,Ht=H.next();yt!==null&&!Ht.done;Et++,Ht=H.next()){yt.index>Et?(Ie=yt,yt=null):Ie=yt.sibling;var ca=Y(U,yt,Ht.value,it);if(ca===null){yt===null&&(yt=Ie);break}e&&yt&&ca.alternate===null&&i(U,yt),P=m(ca,P,Et),Mt===null?mt=ca:Mt.sibling=ca,Mt=ca,yt=Ie}if(Ht.done)return a(U,yt),Jt&&Na(U,Et),mt;if(yt===null){for(;!Ht.done;Et++,Ht=H.next())Ht=at(U,Ht.value,it),Ht!==null&&(P=m(Ht,P,Et),Mt===null?mt=Ht:Mt.sibling=Ht,Mt=Ht);return Jt&&Na(U,Et),mt}for(yt=l(yt);!Ht.done;Et++,Ht=H.next())Ht=Z(yt,U,Et,Ht.value,it),Ht!==null&&(e&&Ht.alternate!==null&&yt.delete(Ht.key===null?Et:Ht.key),P=m(Ht,P,Et),Mt===null?mt=Ht:Mt.sibling=Ht,Mt=Ht);return e&&yt.forEach(function(mb){return i(U,mb)}),Jt&&Na(U,Et),mt}function $t(U,P,H,it){if(typeof H=="object"&&H!==null&&H.type===L&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case k:t:{for(var mt=H.key;P!==null;){if(P.key===mt){if(mt=H.type,mt===L){if(P.tag===7){a(U,P.sibling),it=h(P,H.props.children),it.return=U,U=it;break t}}else if(P.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===X&&Lp(mt)===P.type){a(U,P.sibling),it=h(P,H.props),ds(it,H),it.return=U,U=it;break t}a(U,P);break}else i(U,P);P=P.sibling}H.type===L?(it=_a(H.props.children,U.mode,it,H.key),it.return=U,U=it):(it=mu(H.type,H.key,H.props,null,U.mode,it),ds(it,H),it.return=U,U=it)}return E(U);case C:t:{for(mt=H.key;P!==null;){if(P.key===mt)if(P.tag===4&&P.stateNode.containerInfo===H.containerInfo&&P.stateNode.implementation===H.implementation){a(U,P.sibling),it=h(P,H.children||[]),it.return=U,U=it;break t}else{a(U,P);break}else i(U,P);P=P.sibling}it=no(H,U.mode,it),it.return=U,U=it}return E(U);case X:return mt=H._init,H=mt(H._payload),$t(U,P,H,it)}if(vt(H))return Ct(U,P,H,it);if(st(H)){if(mt=st(H),typeof mt!="function")throw Error(u(150));return H=mt.call(H),kt(U,P,H,it)}if(typeof H.then=="function")return $t(U,P,Ou(H),it);if(H.$$typeof===z)return $t(U,P,yu(U,H),it);Ru(U,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,P!==null&&P.tag===6?(a(U,P.sibling),it=h(P,H),it.return=U,U=it):(a(U,P),it=io(H,U.mode,it),it.return=U,U=it),E(U)):a(U,P)}return function(U,P,H,it){try{ps=0;var mt=$t(U,P,H,it);return hr=null,mt}catch(yt){if(yt===as||yt===Su)throw yt;var Mt=ui(29,yt,null,U.mode);return Mt.lanes=it,Mt.return=U,Mt}finally{}}}var pr=Dp(!0),Op=Dp(!1),wi=Gt(null),Wi=null;function Yn(e){var i=e.alternate;O(Te,Te.current&1),O(wi,e),Wi===null&&(i===null||lr.current!==null||i.memoizedState!==null)&&(Wi=e)}function Rp(e){if(e.tag===22){if(O(Te,Te.current),O(wi,e),Wi===null){var i=e.alternate;i!==null&&i.memoizedState!==null&&(Wi=e)}}else Zn()}function Zn(){O(Te,Te.current),O(wi,wi.current)}function yn(e){Lt(wi),Wi===e&&(Wi=null),Lt(Te)}var Te=Gt(0);function Mu(e){for(var i=e;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Ac(a)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Bo(e,i,a,l){i=e.memoizedState,a=a(l,i),a=a==null?i:y({},i,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var zo={enqueueSetState:function(e,i,a){e=e._reactInternals;var l=fi(),h=Jn(l);h.payload=i,a!=null&&(h.callback=a),i=Qn(e,h,l),i!==null&&(hi(i,e,l),ss(i,e,l))},enqueueReplaceState:function(e,i,a){e=e._reactInternals;var l=fi(),h=Jn(l);h.tag=1,h.payload=i,a!=null&&(h.callback=a),i=Qn(e,h,l),i!==null&&(hi(i,e,l),ss(i,e,l))},enqueueForceUpdate:function(e,i){e=e._reactInternals;var a=fi(),l=Jn(a);l.tag=2,i!=null&&(l.callback=i),i=Qn(e,l,a),i!==null&&(hi(i,e,a),ss(i,e,a))}};function Mp(e,i,a,l,h,m,E){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,m,E):i.prototype&&i.prototype.isPureReactComponent?!Zr(a,l)||!Zr(h,m):!0}function Ip(e,i,a,l){e=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,l),i.state!==e&&zo.enqueueReplaceState(i,i.state,null)}function Va(e,i){var a=i;if("ref"in i){a={};for(var l in i)l!=="ref"&&(a[l]=i[l])}if(e=e.defaultProps){a===i&&(a=y({},a));for(var h in e)a[h]===void 0&&(a[h]=e[h])}return a}var Iu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=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(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Vp(e){Iu(e)}function Bp(e){console.error(e)}function zp(e){Iu(e)}function Vu(e,i){try{var a=e.onUncaughtError;a(i.value,{componentStack:i.stack})}catch(l){setTimeout(function(){throw l})}}function Pp(e,i,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Po(e,i,a){return a=Jn(a),a.tag=3,a.payload={element:null},a.callback=function(){Vu(e,i)},a}function Up(e){return e=Jn(e),e.tag=3,e}function Fp(e,i,a,l){var h=a.type.getDerivedStateFromError;if(typeof h=="function"){var m=l.value;e.payload=function(){return h(m)},e.callback=function(){Pp(i,a,l)}}var E=a.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(e.callback=function(){Pp(i,a,l),typeof h!="function"&&(ia===null?ia=new Set([this]):ia.add(this));var A=l.stack;this.componentDidCatch(l.value,{componentStack:A!==null?A:""})})}function m1(e,i,a,l,h){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(i=a.alternate,i!==null&&es(i,a,h,!0),a=wi.current,a!==null){switch(a.tag){case 13:return Wi===null?oc():a.alternate===null&&me===0&&(me=3),a.flags&=-257,a.flags|=65536,a.lanes=h,l===po?a.flags|=16384:(i=a.updateQueue,i===null?a.updateQueue=new Set([l]):i.add(l),fc(e,l,h)),!1;case 22:return a.flags|=65536,l===po?a.flags|=16384:(i=a.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=i):(a=i.retryQueue,a===null?i.retryQueue=new Set([l]):a.add(l)),fc(e,l,h)),!1}throw Error(u(435,a.tag))}return fc(e,l,h),oc(),!1}if(Jt)return i=wi.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,l!==so&&(e=Error(u(422),{cause:l}),ts(vi(e,a)))):(l!==so&&(i=Error(u(423),{cause:l}),ts(vi(i,a))),e=e.current.alternate,e.flags|=65536,h&=-h,e.lanes|=h,l=vi(l,a),h=Po(e.stateNode,l,h),go(e,h),me!==4&&(me=2)),!1;var m=Error(u(520),{cause:l});if(m=vi(m,a),Ss===null?Ss=[m]:Ss.push(m),me!==4&&(me=2),i===null)return!0;l=vi(l,a),a=i;do{switch(a.tag){case 3:return a.flags|=65536,e=h&-h,a.lanes|=e,e=Po(a.stateNode,l,e),go(a,e),!1;case 1:if(i=a.type,m=a.stateNode,(a.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ia===null||!ia.has(m))))return a.flags|=65536,h&=-h,a.lanes|=h,h=Up(h),Fp(h,e,a,l),go(a,h),!1}a=a.return}while(a!==null);return!1}var jp=Error(u(461)),Re=!1;function ze(e,i,a,l){i.child=e===null?Op(i,null,a,l):pr(i,e.child,a,l)}function qp(e,i,a,l,h){a=a.render;var m=i.ref;if("ref"in l){var E={};for(var A in l)A!=="ref"&&(E[A]=l[A])}else E=l;return Ra(i),l=ko(e,i,a,E,m,h),A=Eo(),e!==null&&!Re?(wo(e,i,h),vn(e,i,h)):(Jt&&A&&ao(i),i.flags|=1,ze(e,i,l,h),i.child)}function Hp(e,i,a,l,h){if(e===null){var m=a.type;return typeof m=="function"&&!eo(m)&&m.defaultProps===void 0&&a.compare===null?(i.tag=15,i.type=m,Gp(e,i,m,l,h)):(e=mu(a.type,null,l,i,i.mode,h),e.ref=i.ref,e.return=i,i.child=e)}if(m=e.child,!Qo(e,h)){var E=m.memoizedProps;if(a=a.compare,a=a!==null?a:Zr,a(E,l)&&e.ref===i.ref)return vn(e,i,h)}return i.flags|=1,e=pn(m,l),e.ref=i.ref,e.return=i,i.child=e}function Gp(e,i,a,l,h){if(e!==null){var m=e.memoizedProps;if(Zr(m,l)&&e.ref===i.ref)if(Re=!1,i.pendingProps=l=m,Qo(e,h))(e.flags&131072)!==0&&(Re=!0);else return i.lanes=e.lanes,vn(e,i,h)}return Uo(e,i,a,l,h)}function Jp(e,i,a){var l=i.pendingProps,h=l.children,m=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((i.flags&128)!==0){if(l=m!==null?m.baseLanes|a:a,e!==null){for(h=i.child=e.child,m=0;h!==null;)m=m|h.lanes|h.childLanes,h=h.sibling;i.childLanes=m&~l}else i.childLanes=0,i.child=null;return Qp(e,i,l,a)}if((a&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},e!==null&&vu(i,m!==null?m.cachePool:null),m!==null?Gh(i,m):yo(),Rp(i);else return i.lanes=i.childLanes=536870912,Qp(e,i,m!==null?m.baseLanes|a:a,a)}else m!==null?(vu(i,m.cachePool),Gh(i,m),Zn(),i.memoizedState=null):(e!==null&&vu(i,null),yo(),Zn());return ze(e,i,h,a),i.child}function Qp(e,i,a,l){var h=ho();return h=h===null?null:{parent:_e._currentValue,pool:h},i.memoizedState={baseLanes:a,cachePool:h},e!==null&&vu(i,null),yo(),Rp(i),e!==null&&es(e,i,l,!0),null}function Bu(e,i){var a=i.ref;if(a===null)e!==null&&e.ref!==null&&(i.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(i.flags|=4194816)}}function Uo(e,i,a,l,h){return Ra(i),a=ko(e,i,a,l,void 0,h),l=Eo(),e!==null&&!Re?(wo(e,i,h),vn(e,i,h)):(Jt&&l&&ao(i),i.flags|=1,ze(e,i,a,h),i.child)}function Xp(e,i,a,l,h,m){return Ra(i),i.updateQueue=null,a=Qh(i,l,a,h),Jh(e),l=Eo(),e!==null&&!Re?(wo(e,i,m),vn(e,i,m)):(Jt&&l&&ao(i),i.flags|=1,ze(e,i,a,m),i.child)}function Yp(e,i,a,l,h){if(Ra(i),i.stateNode===null){var m=nr,E=a.contextType;typeof E=="object"&&E!==null&&(m=qe(E)),m=new a(l,m),i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=zo,i.stateNode=m,m._reactInternals=i,m=i.stateNode,m.props=l,m.state=i.memoizedState,m.refs={},mo(i),E=a.contextType,m.context=typeof E=="object"&&E!==null?qe(E):nr,m.state=i.memoizedState,E=a.getDerivedStateFromProps,typeof E=="function"&&(Bo(i,a,E,l),m.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(E=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),E!==m.state&&zo.enqueueReplaceState(m,m.state,null),ls(i,l,m,h),us(),m.state=i.memoizedState),typeof m.componentDidMount=="function"&&(i.flags|=4194308),l=!0}else if(e===null){m=i.stateNode;var A=i.memoizedProps,M=Va(a,A);m.props=M;var J=m.context,et=a.contextType;E=nr,typeof et=="object"&&et!==null&&(E=qe(et));var at=a.getDerivedStateFromProps;et=typeof at=="function"||typeof m.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,et||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(A||J!==E)&&Ip(i,m,l,E),Gn=!1;var Y=i.memoizedState;m.state=Y,ls(i,l,m,h),us(),J=i.memoizedState,A||Y!==J||Gn?(typeof at=="function"&&(Bo(i,a,at,l),J=i.memoizedState),(M=Gn||Mp(i,a,M,l,Y,J,E))?(et||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(i.flags|=4194308)):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=J),m.props=l,m.state=J,m.context=E,l=M):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{m=i.stateNode,xo(e,i),E=i.memoizedProps,et=Va(a,E),m.props=et,at=i.pendingProps,Y=m.context,J=a.contextType,M=nr,typeof J=="object"&&J!==null&&(M=qe(J)),A=a.getDerivedStateFromProps,(J=typeof A=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(E!==at||Y!==M)&&Ip(i,m,l,M),Gn=!1,Y=i.memoizedState,m.state=Y,ls(i,l,m,h),us();var Z=i.memoizedState;E!==at||Y!==Z||Gn||e!==null&&e.dependencies!==null&&bu(e.dependencies)?(typeof A=="function"&&(Bo(i,a,A,l),Z=i.memoizedState),(et=Gn||Mp(i,a,et,l,Y,Z,M)||e!==null&&e.dependencies!==null&&bu(e.dependencies))?(J||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,Z,M),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,Z,M)),typeof m.componentDidUpdate=="function"&&(i.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof m.componentDidUpdate!="function"||E===e.memoizedProps&&Y===e.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&Y===e.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=Z),m.props=l,m.state=Z,m.context=M,l=et):(typeof m.componentDidUpdate!="function"||E===e.memoizedProps&&Y===e.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&Y===e.memoizedState||(i.flags|=1024),l=!1)}return m=l,Bu(e,i),l=(i.flags&128)!==0,m||l?(m=i.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:m.render(),i.flags|=1,e!==null&&l?(i.child=pr(i,e.child,null,h),i.child=pr(i,null,a,h)):ze(e,i,a,h),i.memoizedState=m.state,e=i.child):e=vn(e,i,h),e}function Zp(e,i,a,l){return $r(),i.flags|=256,ze(e,i,a,l),i.child}var Fo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jo(e){return{baseLanes:e,cachePool:Bh()}}function qo(e,i,a){return e=e!==null?e.childLanes&~a:0,i&&(e|=Ci),e}function Kp(e,i,a){var l=i.pendingProps,h=!1,m=(i.flags&128)!==0,E;if((E=m)||(E=e!==null&&e.memoizedState===null?!1:(Te.current&2)!==0),E&&(h=!0,i.flags&=-129),E=(i.flags&32)!==0,i.flags&=-33,e===null){if(Jt){if(h?Yn(i):Zn(),Jt){var A=de,M;if(M=A){t:{for(M=A,A=Ki;M.nodeType!==8;){if(!A){A=null;break t}if(M=Pi(M.nextSibling),M===null){A=null;break t}}A=M}A!==null?(i.memoizedState={dehydrated:A,treeContext:Ta!==null?{id:dn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},M=ui(18,null,null,0),M.stateNode=A,M.return=i,i.child=M,Je=i,de=null,M=!0):M=!1}M||Da(i)}if(A=i.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return Ac(A)?i.lanes=32:i.lanes=536870912,null;yn(i)}return A=l.children,l=l.fallback,h?(Zn(),h=i.mode,A=zu({mode:"hidden",children:A},h),l=_a(l,h,a,null),A.return=i,l.return=i,A.sibling=l,i.child=A,h=i.child,h.memoizedState=jo(a),h.childLanes=qo(e,E,a),i.memoizedState=Fo,l):(Yn(i),Ho(i,A))}if(M=e.memoizedState,M!==null&&(A=M.dehydrated,A!==null)){if(m)i.flags&256?(Yn(i),i.flags&=-257,i=Go(e,i,a)):i.memoizedState!==null?(Zn(),i.child=e.child,i.flags|=128,i=null):(Zn(),h=l.fallback,A=i.mode,l=zu({mode:"visible",children:l.children},A),h=_a(h,A,a,null),h.flags|=2,l.return=i,h.return=i,l.sibling=h,i.child=l,pr(i,e.child,null,a),l=i.child,l.memoizedState=jo(a),l.childLanes=qo(e,E,a),i.memoizedState=Fo,i=h);else if(Yn(i),Ac(A)){if(E=A.nextSibling&&A.nextSibling.dataset,E)var J=E.dgst;E=J,l=Error(u(419)),l.stack="",l.digest=E,ts({value:l,source:null,stack:null}),i=Go(e,i,a)}else if(Re||es(e,i,a,!1),E=(a&e.childLanes)!==0,Re||E){if(E=ne,E!==null&&(l=a&-a,l=(l&42)!==0?1:Ha(l),l=(l&(E.suspendedLanes|a))!==0?0:l,l!==0&&l!==M.retryLane))throw M.retryLane=l,ir(e,l),hi(E,e,l),jp;A.data==="$?"||oc(),i=Go(e,i,a)}else A.data==="$?"?(i.flags|=192,i.child=e.child,i=null):(e=M.treeContext,de=Pi(A.nextSibling),Je=i,Jt=!0,La=null,Ki=!1,e!==null&&(ki[Ei++]=dn,ki[Ei++]=mn,ki[Ei++]=Ta,dn=e.id,mn=e.overflow,Ta=i),i=Ho(i,l.children),i.flags|=4096);return i}return h?(Zn(),h=l.fallback,A=i.mode,M=e.child,J=M.sibling,l=pn(M,{mode:"hidden",children:l.children}),l.subtreeFlags=M.subtreeFlags&65011712,J!==null?h=pn(J,h):(h=_a(h,A,a,null),h.flags|=2),h.return=i,l.return=i,l.sibling=h,i.child=l,l=h,h=i.child,A=e.child.memoizedState,A===null?A=jo(a):(M=A.cachePool,M!==null?(J=_e._currentValue,M=M.parent!==J?{parent:J,pool:J}:M):M=Bh(),A={baseLanes:A.baseLanes|a,cachePool:M}),h.memoizedState=A,h.childLanes=qo(e,E,a),i.memoizedState=Fo,l):(Yn(i),a=e.child,e=a.sibling,a=pn(a,{mode:"visible",children:l.children}),a.return=i,a.sibling=null,e!==null&&(E=i.deletions,E===null?(i.deletions=[e],i.flags|=16):E.push(e)),i.child=a,i.memoizedState=null,a)}function Ho(e,i){return i=zu({mode:"visible",children:i},e.mode),i.return=e,e.child=i}function zu(e,i){return e=ui(22,e,null,i),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Go(e,i,a){return pr(i,e.child,null,a),e=Ho(i,i.pendingProps.children),e.flags|=2,i.memoizedState=null,e}function Wp(e,i,a){e.lanes|=i;var l=e.alternate;l!==null&&(l.lanes|=i),lo(e.return,i,a)}function Jo(e,i,a,l,h){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:h}:(m.isBackwards=i,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=a,m.tailMode=h)}function $p(e,i,a){var l=i.pendingProps,h=l.revealOrder,m=l.tail;if(ze(e,i,l.children,a),l=Te.current,(l&2)!==0)l=l&1|2,i.flags|=128;else{if(e!==null&&(e.flags&128)!==0)t:for(e=i.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wp(e,a,i);else if(e.tag===19)Wp(e,a,i);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break t;for(;e.sibling===null;){if(e.return===null||e.return===i)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(O(Te,l),h){case"forwards":for(a=i.child,h=null;a!==null;)e=a.alternate,e!==null&&Mu(e)===null&&(h=a),a=a.sibling;a=h,a===null?(h=i.child,i.child=null):(h=a.sibling,a.sibling=null),Jo(i,!1,h,a,m);break;case"backwards":for(a=null,h=i.child,i.child=null;h!==null;){if(e=h.alternate,e!==null&&Mu(e)===null){i.child=h;break}e=h.sibling,h.sibling=a,a=h,h=e}Jo(i,!0,a,null,m);break;case"together":Jo(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function vn(e,i,a){if(e!==null&&(i.dependencies=e.dependencies),ea|=i.lanes,(a&i.childLanes)===0)if(e!==null){if(es(e,i,a,!1),(a&i.childLanes)===0)return null}else return null;if(e!==null&&i.child!==e.child)throw Error(u(153));if(i.child!==null){for(e=i.child,a=pn(e,e.pendingProps),i.child=a,a.return=i;e.sibling!==null;)e=e.sibling,a=a.sibling=pn(e,e.pendingProps),a.return=i;a.sibling=null}return i.child}function Qo(e,i){return(e.lanes&i)!==0?!0:(e=e.dependencies,!!(e!==null&&bu(e)))}function x1(e,i,a){switch(i.tag){case 3:Ve(i,i.stateNode.containerInfo),Hn(i,_e,e.memoizedState.cache),$r();break;case 27:case 5:Ce(i);break;case 4:Ve(i,i.stateNode.containerInfo);break;case 10:Hn(i,i.type,i.memoizedProps.value);break;case 13:var l=i.memoizedState;if(l!==null)return l.dehydrated!==null?(Yn(i),i.flags|=128,null):(a&i.child.childLanes)!==0?Kp(e,i,a):(Yn(i),e=vn(e,i,a),e!==null?e.sibling:null);Yn(i);break;case 19:var h=(e.flags&128)!==0;if(l=(a&i.childLanes)!==0,l||(es(e,i,a,!1),l=(a&i.childLanes)!==0),h){if(l)return $p(e,i,a);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),O(Te,Te.current),l)break;return null;case 22:case 23:return i.lanes=0,Jp(e,i,a);case 24:Hn(i,_e,e.memoizedState.cache)}return vn(e,i,a)}function td(e,i,a){if(e!==null)if(e.memoizedProps!==i.pendingProps)Re=!0;else{if(!Qo(e,a)&&(i.flags&128)===0)return Re=!1,x1(e,i,a);Re=(e.flags&131072)!==0}else Re=!1,Jt&&(i.flags&1048576)!==0&&Lh(i,gu,i.index);switch(i.lanes=0,i.tag){case 16:t:{e=i.pendingProps;var l=i.elementType,h=l._init;if(l=h(l._payload),i.type=l,typeof l=="function")eo(l)?(e=Va(l,e),i.tag=1,i=Yp(null,i,l,e,a)):(i.tag=0,i=Uo(null,i,l,e,a));else{if(l!=null){if(h=l.$$typeof,h===W){i.tag=11,i=qp(null,i,l,e,a);break t}else if(h===R){i.tag=14,i=Hp(null,i,l,e,a);break t}}throw i=Nt(l)||l,Error(u(306,i,""))}}return i;case 0:return Uo(e,i,i.type,i.pendingProps,a);case 1:return l=i.type,h=Va(l,i.pendingProps),Yp(e,i,l,h,a);case 3:t:{if(Ve(i,i.stateNode.containerInfo),e===null)throw Error(u(387));l=i.pendingProps;var m=i.memoizedState;h=m.element,xo(e,i),ls(i,l,null,a);var E=i.memoizedState;if(l=E.cache,Hn(i,_e,l),l!==m.cache&&oo(i,[_e],a,!0),us(),l=E.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:E.cache},i.updateQueue.baseState=m,i.memoizedState=m,i.flags&256){i=Zp(e,i,l,a);break t}else if(l!==h){h=vi(Error(u(424)),i),ts(h),i=Zp(e,i,l,a);break t}else{switch(e=i.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(de=Pi(e.firstChild),Je=i,Jt=!0,La=null,Ki=!0,a=Op(i,null,l,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if($r(),l===h){i=vn(e,i,a);break t}ze(e,i,l,a)}i=i.child}return i;case 26:return Bu(e,i),e===null?(a=am(i.type,null,i.pendingProps,null))?i.memoizedState=a:Jt||(a=i.type,e=i.pendingProps,l=Wu(qt.current).createElement(a),l[Oe]=i,l[ve]=e,Ue(l,a,e),Se(l),i.stateNode=l):i.memoizedState=am(i.type,e.memoizedProps,i.pendingProps,e.memoizedState),null;case 27:return Ce(i),e===null&&Jt&&(l=i.stateNode=em(i.type,i.pendingProps,qt.current),Je=i,Ki=!0,h=de,ra(i.type)?(_c=h,de=Pi(l.firstChild)):de=h),ze(e,i,i.pendingProps.children,a),Bu(e,i),e===null&&(i.flags|=4194304),i.child;case 5:return e===null&&Jt&&((h=l=de)&&(l=H1(l,i.type,i.pendingProps,Ki),l!==null?(i.stateNode=l,Je=i,de=Pi(l.firstChild),Ki=!1,h=!0):h=!1),h||Da(i)),Ce(i),h=i.type,m=i.pendingProps,E=e!==null?e.memoizedProps:null,l=m.children,Ec(h,m)?l=null:E!==null&&Ec(h,E)&&(i.flags|=32),i.memoizedState!==null&&(h=ko(e,i,l1,null,null,a),Ls._currentValue=h),Bu(e,i),ze(e,i,l,a),i.child;case 6:return e===null&&Jt&&((e=a=de)&&(a=G1(a,i.pendingProps,Ki),a!==null?(i.stateNode=a,Je=i,de=null,e=!0):e=!1),e||Da(i)),null;case 13:return Kp(e,i,a);case 4:return Ve(i,i.stateNode.containerInfo),l=i.pendingProps,e===null?i.child=pr(i,null,l,a):ze(e,i,l,a),i.child;case 11:return qp(e,i,i.type,i.pendingProps,a);case 7:return ze(e,i,i.pendingProps,a),i.child;case 8:return ze(e,i,i.pendingProps.children,a),i.child;case 12:return ze(e,i,i.pendingProps.children,a),i.child;case 10:return l=i.pendingProps,Hn(i,i.type,l.value),ze(e,i,l.children,a),i.child;case 9:return h=i.type._context,l=i.pendingProps.children,Ra(i),h=qe(h),l=l(h),i.flags|=1,ze(e,i,l,a),i.child;case 14:return Hp(e,i,i.type,i.pendingProps,a);case 15:return Gp(e,i,i.type,i.pendingProps,a);case 19:return $p(e,i,a);case 31:return l=i.pendingProps,a=i.mode,l={mode:l.mode,children:l.children},e===null?(a=zu(l,a),a.ref=i.ref,i.child=a,a.return=i,i=a):(a=pn(e.child,l),a.ref=i.ref,i.child=a,a.return=i,i=a),i;case 22:return Jp(e,i,a);case 24:return Ra(i),l=qe(_e),e===null?(h=ho(),h===null&&(h=ne,m=co(),h.pooledCache=m,m.refCount++,m!==null&&(h.pooledCacheLanes|=a),h=m),i.memoizedState={parent:l,cache:h},mo(i),Hn(i,_e,h)):((e.lanes&a)!==0&&(xo(e,i),ls(i,null,null,a),us()),h=e.memoizedState,m=i.memoizedState,h.parent!==l?(h={parent:l,cache:l},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),Hn(i,_e,l)):(l=m.cache,Hn(i,_e,l),l!==h.cache&&oo(i,[_e],a,!0))),ze(e,i,i.pendingProps.children,a),i.child;case 29:throw i.pendingProps}throw Error(u(156,i.tag))}function Sn(e){e.flags|=4}function ed(e,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!om(i)){if(i=wi.current,i!==null&&((Ut&4194048)===Ut?Wi!==null:(Ut&62914560)!==Ut&&(Ut&536870912)===0||i!==Wi))throw rs=po,zh;e.flags|=8192}}function Pu(e,i){i!==null&&(e.flags|=4),e.flags&16384&&(i=e.tag!==22?ba():536870912,e.lanes|=i,gr|=i)}function ms(e,i){if(!Jt)switch(e.tailMode){case"hidden":i=e.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?i||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function fe(e){var i=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(i)for(var h=e.child;h!==null;)a|=h.lanes|h.childLanes,l|=h.subtreeFlags&65011712,l|=h.flags&65011712,h.return=e,h=h.sibling;else for(h=e.child;h!==null;)a|=h.lanes|h.childLanes,l|=h.subtreeFlags,l|=h.flags,h.return=e,h=h.sibling;return e.subtreeFlags|=l,e.childLanes=a,i}function g1(e,i,a){var l=i.pendingProps;switch(ro(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fe(i),null;case 1:return fe(i),null;case 3:return a=i.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),gn(_e),he(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Wr(i)?Sn(i):e===null||e.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Rh())),fe(i),null;case 26:return a=i.memoizedState,e===null?(Sn(i),a!==null?(fe(i),ed(i,a)):(fe(i),i.flags&=-16777217)):a?a!==e.memoizedState?(Sn(i),fe(i),ed(i,a)):(fe(i),i.flags&=-16777217):(e.memoizedProps!==l&&Sn(i),fe(i),i.flags&=-16777217),null;case 27:pe(i),a=qt.current;var h=i.type;if(e!==null&&i.stateNode!=null)e.memoizedProps!==l&&Sn(i);else{if(!l){if(i.stateNode===null)throw Error(u(166));return fe(i),null}e=Bt.current,Wr(i)?Dh(i):(e=em(h,l,a),i.stateNode=e,Sn(i))}return fe(i),null;case 5:if(pe(i),a=i.type,e!==null&&i.stateNode!=null)e.memoizedProps!==l&&Sn(i);else{if(!l){if(i.stateNode===null)throw Error(u(166));return fe(i),null}if(e=Bt.current,Wr(i))Dh(i);else{switch(h=Wu(qt.current),e){case 1:e=h.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=h.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=h.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=h.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=h.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?h.createElement(a,{is:l.is}):h.createElement(a)}}e[Oe]=i,e[ve]=l;t:for(h=i.child;h!==null;){if(h.tag===5||h.tag===6)e.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===i)break t;for(;h.sibling===null;){if(h.return===null||h.return===i)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}i.stateNode=e;t:switch(Ue(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break t;case"img":e=!0;break t;default:e=!1}e&&Sn(i)}}return fe(i),i.flags&=-16777217,null;case 6:if(e&&i.stateNode!=null)e.memoizedProps!==l&&Sn(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(u(166));if(e=qt.current,Wr(i)){if(e=i.stateNode,a=i.memoizedProps,l=null,h=Je,h!==null)switch(h.tag){case 27:case 5:l=h.memoizedProps}e[Oe]=i,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Xd(e.nodeValue,a)),e||Da(i)}else e=Wu(e).createTextNode(l),e[Oe]=i,i.stateNode=e}return fe(i),null;case 13:if(l=i.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(h=Wr(i),l!==null&&l.dehydrated!==null){if(e===null){if(!h)throw Error(u(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(u(317));h[Oe]=i}else $r(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;fe(i),h=!1}else h=Rh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(yn(i),i):(yn(i),null)}if(yn(i),(i.flags&128)!==0)return i.lanes=a,i;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=i.child,h=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(h=l.alternate.memoizedState.cachePool.pool);var m=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==h&&(l.flags|=2048)}return a!==e&&a&&(i.child.flags|=8192),Pu(i,i.updateQueue),fe(i),null;case 4:return he(),e===null&&bc(i.stateNode.containerInfo),fe(i),null;case 10:return gn(i.type),fe(i),null;case 19:if(Lt(Te),h=i.memoizedState,h===null)return fe(i),null;if(l=(i.flags&128)!==0,m=h.rendering,m===null)if(l)ms(h,!1);else{if(me!==0||e!==null&&(e.flags&128)!==0)for(e=i.child;e!==null;){if(m=Mu(e),m!==null){for(i.flags|=128,ms(h,!1),e=m.updateQueue,i.updateQueue=e,Pu(i,e),i.subtreeFlags=0,e=a,a=i.child;a!==null;)Nh(a,e),a=a.sibling;return O(Te,Te.current&1|2),i.child}e=e.sibling}h.tail!==null&&ce()>ju&&(i.flags|=128,l=!0,ms(h,!1),i.lanes=4194304)}else{if(!l)if(e=Mu(m),e!==null){if(i.flags|=128,l=!0,e=e.updateQueue,i.updateQueue=e,Pu(i,e),ms(h,!0),h.tail===null&&h.tailMode==="hidden"&&!m.alternate&&!Jt)return fe(i),null}else 2*ce()-h.renderingStartTime>ju&&a!==536870912&&(i.flags|=128,l=!0,ms(h,!1),i.lanes=4194304);h.isBackwards?(m.sibling=i.child,i.child=m):(e=h.last,e!==null?e.sibling=m:i.child=m,h.last=m)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=ce(),i.sibling=null,e=Te.current,O(Te,l?e&1|2:e&1),i):(fe(i),null);case 22:case 23:return yn(i),vo(),l=i.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?(a&536870912)!==0&&(i.flags&128)===0&&(fe(i),i.subtreeFlags&6&&(i.flags|=8192)):fe(i),a=i.updateQueue,a!==null&&Pu(i,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==a&&(i.flags|=2048),e!==null&&Lt(Ma),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),i.memoizedState.cache!==a&&(i.flags|=2048),gn(_e),fe(i),null;case 25:return null;case 30:return null}throw Error(u(156,i.tag))}function b1(e,i){switch(ro(i),i.tag){case 1:return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return gn(_e),he(),e=i.flags,(e&65536)!==0&&(e&128)===0?(i.flags=e&-65537|128,i):null;case 26:case 27:case 5:return pe(i),null;case 13:if(yn(i),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(u(340));$r()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return Lt(Te),null;case 4:return he(),null;case 10:return gn(i.type),null;case 22:case 23:return yn(i),vo(),e!==null&&Lt(Ma),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 24:return gn(_e),null;case 25:return null;default:return null}}function id(e,i){switch(ro(i),i.tag){case 3:gn(_e),he();break;case 26:case 27:case 5:pe(i);break;case 4:he();break;case 13:yn(i);break;case 19:Lt(Te);break;case 10:gn(i.type);break;case 22:case 23:yn(i),vo(),e!==null&&Lt(Ma);break;case 24:gn(_e)}}function xs(e,i){try{var a=i.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var h=l.next;a=h;do{if((a.tag&e)===e){l=void 0;var m=a.create,E=a.inst;l=m(),E.destroy=l}a=a.next}while(a!==h)}}catch(A){ee(i,i.return,A)}}function Kn(e,i,a){try{var l=i.updateQueue,h=l!==null?l.lastEffect:null;if(h!==null){var m=h.next;l=m;do{if((l.tag&e)===e){var E=l.inst,A=E.destroy;if(A!==void 0){E.destroy=void 0,h=i;var M=a,J=A;try{J()}catch(et){ee(h,M,et)}}}l=l.next}while(l!==m)}}catch(et){ee(i,i.return,et)}}function nd(e){var i=e.updateQueue;if(i!==null){var a=e.stateNode;try{Hh(i,a)}catch(l){ee(e,e.return,l)}}}function ad(e,i,a){a.props=Va(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){ee(e,i,l)}}function gs(e,i){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(h){ee(e,i,h)}}function $i(e,i){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(h){ee(e,i,h)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){ee(e,i,h)}else a.current=null}function rd(e){var i=e.type,a=e.memoizedProps,l=e.stateNode;try{t:switch(i){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(h){ee(e,e.return,h)}}function Xo(e,i,a){try{var l=e.stateNode;P1(l,e.type,a,i),l[ve]=i}catch(h){ee(e,e.return,h)}}function sd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ra(e.type)||e.tag===4}function Yo(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||sd(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&&ra(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zo(e,i,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,i?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,i):(i=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,i.appendChild(e),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=Ku));else if(l!==4&&(l===27&&ra(e.type)&&(a=e.stateNode,i=null),e=e.child,e!==null))for(Zo(e,i,a),e=e.sibling;e!==null;)Zo(e,i,a),e=e.sibling}function Uu(e,i,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,i?a.insertBefore(e,i):a.appendChild(e);else if(l!==4&&(l===27&&ra(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Uu(e,i,a),e=e.sibling;e!==null;)Uu(e,i,a),e=e.sibling}function ud(e){var i=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,h=i.attributes;h.length;)i.removeAttributeNode(h[0]);Ue(i,l,a),i[Oe]=e,i[ve]=a}catch(m){ee(e,e.return,m)}}var kn=!1,ye=!1,Ko=!1,ld=typeof WeakSet=="function"?WeakSet:Set,Me=null;function y1(e,i){if(e=e.containerInfo,Sc=al,e=yh(e),Xl(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else t:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var h=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{a.nodeType,m.nodeType}catch{a=null;break t}var E=0,A=-1,M=-1,J=0,et=0,at=e,Y=null;e:for(;;){for(var Z;at!==a||h!==0&&at.nodeType!==3||(A=E+h),at!==m||l!==0&&at.nodeType!==3||(M=E+l),at.nodeType===3&&(E+=at.nodeValue.length),(Z=at.firstChild)!==null;)Y=at,at=Z;for(;;){if(at===e)break e;if(Y===a&&++J===h&&(A=E),Y===m&&++et===l&&(M=E),(Z=at.nextSibling)!==null)break;at=Y,Y=at.parentNode}at=Z}a=A===-1||M===-1?null:{start:A,end:M}}else a=null}a=a||{start:0,end:0}}else a=null;for(kc={focusedElem:e,selectionRange:a},al=!1,Me=i;Me!==null;)if(i=Me,e=i.child,(i.subtreeFlags&1024)!==0&&e!==null)e.return=i,Me=e;else for(;Me!==null;){switch(i=Me,m=i.alternate,e=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,a=i,h=m.memoizedProps,m=m.memoizedState,l=a.stateNode;try{var Ct=Va(a.type,h,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(Ct,m),l.__reactInternalSnapshotBeforeUpdate=e}catch(kt){ee(a,a.return,kt)}}break;case 3:if((e&1024)!==0){if(e=i.stateNode.containerInfo,a=e.nodeType,a===9)Cc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Cc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=i.sibling,e!==null){e.return=i.return,Me=e;break}Me=i.return}}function od(e,i,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Wn(e,a),l&4&&xs(5,a);break;case 1:if(Wn(e,a),l&4)if(e=a.stateNode,i===null)try{e.componentDidMount()}catch(E){ee(a,a.return,E)}else{var h=Va(a.type,i.memoizedProps);i=i.memoizedState;try{e.componentDidUpdate(h,i,e.__reactInternalSnapshotBeforeUpdate)}catch(E){ee(a,a.return,E)}}l&64&&nd(a),l&512&&gs(a,a.return);break;case 3:if(Wn(e,a),l&64&&(e=a.updateQueue,e!==null)){if(i=null,a.child!==null)switch(a.child.tag){case 27:case 5:i=a.child.stateNode;break;case 1:i=a.child.stateNode}try{Hh(e,i)}catch(E){ee(a,a.return,E)}}break;case 27:i===null&&l&4&&ud(a);case 26:case 5:Wn(e,a),i===null&&l&4&&rd(a),l&512&&gs(a,a.return);break;case 12:Wn(e,a);break;case 13:Wn(e,a),l&4&&hd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=T1.bind(null,a),J1(e,a))));break;case 22:if(l=a.memoizedState!==null||kn,!l){i=i!==null&&i.memoizedState!==null||ye,h=kn;var m=ye;kn=l,(ye=i)&&!m?$n(e,a,(a.subtreeFlags&8772)!==0):Wn(e,a),kn=h,ye=m}break;case 30:break;default:Wn(e,a)}}function cd(e){var i=e.alternate;i!==null&&(e.alternate=null,cd(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&Qa(i)),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 le=null,ti=!1;function En(e,i,a){for(a=a.child;a!==null;)fd(e,i,a),a=a.sibling}function fd(e,i,a){if($&&typeof $.onCommitFiberUnmount=="function")try{$.onCommitFiberUnmount(tt,a)}catch{}switch(a.tag){case 26:ye||$i(a,i),En(e,i,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ye||$i(a,i);var l=le,h=ti;ra(a.type)&&(le=a.stateNode,ti=!1),En(e,i,a),As(a.stateNode),le=l,ti=h;break;case 5:ye||$i(a,i);case 6:if(l=le,h=ti,le=null,En(e,i,a),le=l,ti=h,le!==null)if(ti)try{(le.nodeType===9?le.body:le.nodeName==="HTML"?le.ownerDocument.body:le).removeChild(a.stateNode)}catch(m){ee(a,i,m)}else try{le.removeChild(a.stateNode)}catch(m){ee(a,i,m)}break;case 18:le!==null&&(ti?(e=le,$d(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ms(e)):$d(le,a.stateNode));break;case 4:l=le,h=ti,le=a.stateNode.containerInfo,ti=!0,En(e,i,a),le=l,ti=h;break;case 0:case 11:case 14:case 15:ye||Kn(2,a,i),ye||Kn(4,a,i),En(e,i,a);break;case 1:ye||($i(a,i),l=a.stateNode,typeof l.componentWillUnmount=="function"&&ad(a,i,l)),En(e,i,a);break;case 21:En(e,i,a);break;case 22:ye=(l=ye)||a.memoizedState!==null,En(e,i,a),ye=l;break;default:En(e,i,a)}}function hd(e,i){if(i.memoizedState===null&&(e=i.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ms(e)}catch(a){ee(i,i.return,a)}}function v1(e){switch(e.tag){case 13:case 19:var i=e.stateNode;return i===null&&(i=e.stateNode=new ld),i;case 22:return e=e.stateNode,i=e._retryCache,i===null&&(i=e._retryCache=new ld),i;default:throw Error(u(435,e.tag))}}function Wo(e,i){var a=v1(e);i.forEach(function(l){var h=N1.bind(null,e,l);a.has(l)||(a.add(l),l.then(h,h))})}function li(e,i){var a=i.deletions;if(a!==null)for(var l=0;l<a.length;l++){var h=a[l],m=e,E=i,A=E;t:for(;A!==null;){switch(A.tag){case 27:if(ra(A.type)){le=A.stateNode,ti=!1;break t}break;case 5:le=A.stateNode,ti=!1;break t;case 3:case 4:le=A.stateNode.containerInfo,ti=!0;break t}A=A.return}if(le===null)throw Error(u(160));fd(m,E,h),le=null,ti=!1,m=h.alternate,m!==null&&(m.return=null),h.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)pd(i,e),i=i.sibling}var zi=null;function pd(e,i){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:li(i,e),oi(e),l&4&&(Kn(3,e,e.return),xs(3,e),Kn(5,e,e.return));break;case 1:li(i,e),oi(e),l&512&&(ye||a===null||$i(a,a.return)),l&64&&kn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var h=zi;if(li(i,e),oi(e),l&512&&(ye||a===null||$i(a,a.return)),l&4){var m=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){t:{l=e.type,a=e.memoizedProps,h=h.ownerDocument||h;e:switch(l){case"title":m=h.getElementsByTagName("title")[0],(!m||m[In]||m[Oe]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=h.createElement(l),h.head.insertBefore(m,h.querySelector("head > title"))),Ue(m,l,a),m[Oe]=e,Se(m),l=m;break t;case"link":var E=um("link","href",h).get(l+(a.href||""));if(E){for(var A=0;A<E.length;A++)if(m=E[A],m.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&m.getAttribute("rel")===(a.rel==null?null:a.rel)&&m.getAttribute("title")===(a.title==null?null:a.title)&&m.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){E.splice(A,1);break e}}m=h.createElement(l),Ue(m,l,a),h.head.appendChild(m);break;case"meta":if(E=um("meta","content",h).get(l+(a.content||""))){for(A=0;A<E.length;A++)if(m=E[A],m.getAttribute("content")===(a.content==null?null:""+a.content)&&m.getAttribute("name")===(a.name==null?null:a.name)&&m.getAttribute("property")===(a.property==null?null:a.property)&&m.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&m.getAttribute("charset")===(a.charSet==null?null:a.charSet)){E.splice(A,1);break e}}m=h.createElement(l),Ue(m,l,a),h.head.appendChild(m);break;default:throw Error(u(468,l))}m[Oe]=e,Se(m),l=m}e.stateNode=l}else lm(h,e.type,e.stateNode);else e.stateNode=sm(h,l,e.memoizedProps);else m!==l?(m===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):m.count--,l===null?lm(h,e.type,e.stateNode):sm(h,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Xo(e,e.memoizedProps,a.memoizedProps)}break;case 27:li(i,e),oi(e),l&512&&(ye||a===null||$i(a,a.return)),a!==null&&l&4&&Xo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(li(i,e),oi(e),l&512&&(ye||a===null||$i(a,a.return)),e.flags&32){h=e.stateNode;try{Vi(h,"")}catch(Z){ee(e,e.return,Z)}}l&4&&e.stateNode!=null&&(h=e.memoizedProps,Xo(e,h,a!==null?a.memoizedProps:h)),l&1024&&(Ko=!0);break;case 6:if(li(i,e),oi(e),l&4){if(e.stateNode===null)throw Error(u(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(Z){ee(e,e.return,Z)}}break;case 3:if(el=null,h=zi,zi=$u(i.containerInfo),li(i,e),zi=h,oi(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ms(i.containerInfo)}catch(Z){ee(e,e.return,Z)}Ko&&(Ko=!1,dd(e));break;case 4:l=zi,zi=$u(e.stateNode.containerInfo),li(i,e),oi(e),zi=l;break;case 12:li(i,e),oi(e);break;case 13:li(i,e),oi(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ac=ce()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Wo(e,l)));break;case 22:h=e.memoizedState!==null;var M=a!==null&&a.memoizedState!==null,J=kn,et=ye;if(kn=J||h,ye=et||M,li(i,e),ye=et,kn=J,oi(e),l&8192)t:for(i=e.stateNode,i._visibility=h?i._visibility&-2:i._visibility|1,h&&(a===null||M||kn||ye||Ba(e)),a=null,i=e;;){if(i.tag===5||i.tag===26){if(a===null){M=a=i;try{if(m=M.stateNode,h)E=m.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{A=M.stateNode;var at=M.memoizedProps.style,Y=at!=null&&at.hasOwnProperty("display")?at.display:null;A.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(Z){ee(M,M.return,Z)}}}else if(i.tag===6){if(a===null){M=i;try{M.stateNode.nodeValue=h?"":M.memoizedProps}catch(Z){ee(M,M.return,Z)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===e)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;a===i&&(a=null),i=i.return}a===i&&(a=null),i.sibling.return=i.return,i=i.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Wo(e,a))));break;case 19:li(i,e),oi(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Wo(e,l)));break;case 30:break;case 21:break;default:li(i,e),oi(e)}}function oi(e){var i=e.flags;if(i&2){try{for(var a,l=e.return;l!==null;){if(sd(l)){a=l;break}l=l.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var h=a.stateNode,m=Yo(e);Uu(e,m,h);break;case 5:var E=a.stateNode;a.flags&32&&(Vi(E,""),a.flags&=-33);var A=Yo(e);Uu(e,A,E);break;case 3:case 4:var M=a.stateNode.containerInfo,J=Yo(e);Zo(e,J,M);break;default:throw Error(u(161))}}catch(et){ee(e,e.return,et)}e.flags&=-3}i&4096&&(e.flags&=-4097)}function dd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var i=e;dd(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),e=e.sibling}}function Wn(e,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)od(e,i.alternate,i),i=i.sibling}function Ba(e){for(e=e.child;e!==null;){var i=e;switch(i.tag){case 0:case 11:case 14:case 15:Kn(4,i,i.return),Ba(i);break;case 1:$i(i,i.return);var a=i.stateNode;typeof a.componentWillUnmount=="function"&&ad(i,i.return,a),Ba(i);break;case 27:As(i.stateNode);case 26:case 5:$i(i,i.return),Ba(i);break;case 22:i.memoizedState===null&&Ba(i);break;case 30:Ba(i);break;default:Ba(i)}e=e.sibling}}function $n(e,i,a){for(a=a&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var l=i.alternate,h=e,m=i,E=m.flags;switch(m.tag){case 0:case 11:case 15:$n(h,m,a),xs(4,m);break;case 1:if($n(h,m,a),l=m,h=l.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(J){ee(l,l.return,J)}if(l=m,h=l.updateQueue,h!==null){var A=l.stateNode;try{var M=h.shared.hiddenCallbacks;if(M!==null)for(h.shared.hiddenCallbacks=null,h=0;h<M.length;h++)qh(M[h],A)}catch(J){ee(l,l.return,J)}}a&&E&64&&nd(m),gs(m,m.return);break;case 27:ud(m);case 26:case 5:$n(h,m,a),a&&l===null&&E&4&&rd(m),gs(m,m.return);break;case 12:$n(h,m,a);break;case 13:$n(h,m,a),a&&E&4&&hd(h,m);break;case 22:m.memoizedState===null&&$n(h,m,a),gs(m,m.return);break;case 30:break;default:$n(h,m,a)}i=i.sibling}}function $o(e,i){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(e=i.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&is(a))}function tc(e,i){e=null,i.alternate!==null&&(e=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==e&&(i.refCount++,e!=null&&is(e))}function tn(e,i,a,l){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)md(e,i,a,l),i=i.sibling}function md(e,i,a,l){var h=i.flags;switch(i.tag){case 0:case 11:case 15:tn(e,i,a,l),h&2048&&xs(9,i);break;case 1:tn(e,i,a,l);break;case 3:tn(e,i,a,l),h&2048&&(e=null,i.alternate!==null&&(e=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==e&&(i.refCount++,e!=null&&is(e)));break;case 12:if(h&2048){tn(e,i,a,l),e=i.stateNode;try{var m=i.memoizedProps,E=m.id,A=m.onPostCommit;typeof A=="function"&&A(E,i.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){ee(i,i.return,M)}}else tn(e,i,a,l);break;case 13:tn(e,i,a,l);break;case 23:break;case 22:m=i.stateNode,E=i.alternate,i.memoizedState!==null?m._visibility&2?tn(e,i,a,l):bs(e,i):m._visibility&2?tn(e,i,a,l):(m._visibility|=2,dr(e,i,a,l,(i.subtreeFlags&10256)!==0)),h&2048&&$o(E,i);break;case 24:tn(e,i,a,l),h&2048&&tc(i.alternate,i);break;default:tn(e,i,a,l)}}function dr(e,i,a,l,h){for(h=h&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var m=e,E=i,A=a,M=l,J=E.flags;switch(E.tag){case 0:case 11:case 15:dr(m,E,A,M,h),xs(8,E);break;case 23:break;case 22:var et=E.stateNode;E.memoizedState!==null?et._visibility&2?dr(m,E,A,M,h):bs(m,E):(et._visibility|=2,dr(m,E,A,M,h)),h&&J&2048&&$o(E.alternate,E);break;case 24:dr(m,E,A,M,h),h&&J&2048&&tc(E.alternate,E);break;default:dr(m,E,A,M,h)}i=i.sibling}}function bs(e,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var a=e,l=i,h=l.flags;switch(l.tag){case 22:bs(a,l),h&2048&&$o(l.alternate,l);break;case 24:bs(a,l),h&2048&&tc(l.alternate,l);break;default:bs(a,l)}i=i.sibling}}var ys=8192;function mr(e){if(e.subtreeFlags&ys)for(e=e.child;e!==null;)xd(e),e=e.sibling}function xd(e){switch(e.tag){case 26:mr(e),e.flags&ys&&e.memoizedState!==null&&rb(zi,e.memoizedState,e.memoizedProps);break;case 5:mr(e);break;case 3:case 4:var i=zi;zi=$u(e.stateNode.containerInfo),mr(e),zi=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ys,ys=16777216,mr(e),ys=i):mr(e));break;default:mr(e)}}function gd(e){var i=e.alternate;if(i!==null&&(e=i.child,e!==null)){i.child=null;do i=e.sibling,e.sibling=null,e=i;while(e!==null)}}function vs(e){var i=e.deletions;if((e.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var l=i[a];Me=l,yd(l,e)}gd(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:vs(e),e.flags&2048&&Kn(9,e,e.return);break;case 3:vs(e);break;case 12:vs(e);break;case 22:var i=e.stateNode;e.memoizedState!==null&&i._visibility&2&&(e.return===null||e.return.tag!==13)?(i._visibility&=-3,Fu(e)):vs(e);break;default:vs(e)}}function Fu(e){var i=e.deletions;if((e.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var l=i[a];Me=l,yd(l,e)}gd(e)}for(e=e.child;e!==null;){switch(i=e,i.tag){case 0:case 11:case 15:Kn(8,i,i.return),Fu(i);break;case 22:a=i.stateNode,a._visibility&2&&(a._visibility&=-3,Fu(i));break;default:Fu(i)}e=e.sibling}}function yd(e,i){for(;Me!==null;){var a=Me;switch(a.tag){case 0:case 11:case 15:Kn(8,a,i);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:is(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Me=l;else t:for(a=e;Me!==null;){l=Me;var h=l.sibling,m=l.return;if(cd(l),l===a){Me=null;break t}if(h!==null){h.return=m,Me=h;break t}Me=m}}}var S1={getCacheForType:function(e){var i=qe(_e),a=i.data.get(e);return a===void 0&&(a=e(),i.data.set(e,a)),a}},k1=typeof WeakMap=="function"?WeakMap:Map,Xt=0,ne=null,It=null,Ut=0,Yt=0,ci=null,ta=!1,xr=!1,ec=!1,wn=0,me=0,ea=0,za=0,ic=0,Ci=0,gr=0,Ss=null,ei=null,nc=!1,ac=0,ju=1/0,qu=null,ia=null,Pe=0,na=null,br=null,yr=0,rc=0,sc=null,vd=null,ks=0,uc=null;function fi(){if((Xt&2)!==0&&Ut!==0)return Ut&-Ut;if(K.T!==null){var e=sr;return e!==0?e:dc()}return Ws()}function Sd(){Ci===0&&(Ci=(Ut&536870912)===0||Jt?Ks():536870912);var e=wi.current;return e!==null&&(e.flags|=32),Ci}function hi(e,i,a){(e===ne&&(Yt===2||Yt===9)||e.cancelPendingCommit!==null)&&(vr(e,0),aa(e,Ut,Ci,!1)),De(e,a),((Xt&2)===0||e!==ne)&&(e===ne&&((Xt&2)===0&&(za|=a),me===4&&aa(e,Ut,Ci,!1)),en(e))}function kd(e,i,a){if((Xt&6)!==0)throw Error(u(327));var l=!a&&(i&124)===0&&(i&e.expiredLanes)===0||Fe(e,i),h=l?C1(e,i):cc(e,i,!0),m=l;do{if(h===0){xr&&!l&&aa(e,i,0,!1);break}else{if(a=e.current.alternate,m&&!E1(a)){h=cc(e,i,!1),m=!1;continue}if(h===2){if(m=i,e.errorRecoveryDisabledLanes&m)var E=0;else E=e.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){i=E;t:{var A=e;h=Ss;var M=A.current.memoizedState.isDehydrated;if(M&&(vr(A,E).flags|=256),E=cc(A,E,!1),E!==2){if(ec&&!M){A.errorRecoveryDisabledLanes|=m,za|=m,h=4;break t}m=ei,ei=h,m!==null&&(ei===null?ei=m:ei.push.apply(ei,m))}h=E}if(m=!1,h!==2)continue}}if(h===1){vr(e,0),aa(e,i,0,!0);break}t:{switch(l=e,m=h,m){case 0:case 1:throw Error(u(345));case 4:if((i&4194048)!==i)break;case 6:aa(l,i,Ci,!ta);break t;case 2:ei=null;break;case 3:case 5:break;default:throw Error(u(329))}if((i&62914560)===i&&(h=ac+300-ce(),10<h)){if(aa(l,i,Ci,!ta),se(l,0,!0)!==0)break t;l.timeoutHandle=Kd(Ed.bind(null,l,a,ei,qu,nc,i,Ci,za,gr,ta,m,2,-0,0),h);break t}Ed(l,a,ei,qu,nc,i,Ci,za,gr,ta,m,0,-0,0)}}break}while(!0);en(e)}function Ed(e,i,a,l,h,m,E,A,M,J,et,at,Y,Z){if(e.timeoutHandle=-1,at=i.subtreeFlags,(at&8192||(at&16785408)===16785408)&&(Ns={stylesheets:null,count:0,unsuspend:ab},xd(i),at=sb(),at!==null)){e.cancelPendingCommit=at(Ld.bind(null,e,i,m,a,l,h,E,A,M,et,1,Y,Z)),aa(e,m,E,!J);return}Ld(e,i,m,a,l,h,E,A,M)}function E1(e){for(var i=e;;){var a=i.tag;if((a===0||a===11||a===15)&&i.flags&16384&&(a=i.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var h=a[l],m=h.getSnapshot;h=h.value;try{if(!si(m(),h))return!1}catch{return!1}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function aa(e,i,a,l){i&=~ic,i&=~za,e.suspendedLanes|=i,e.pingedLanes&=~i,l&&(e.warmLanes|=i),l=e.expirationTimes;for(var h=i;0<h;){var m=31-ft(h),E=1<<m;l[m]=-1,h&=~E}a!==0&&on(e,a,i)}function Hu(){return(Xt&6)===0?(Es(0),!1):!0}function lc(){if(It!==null){if(Yt===0)var e=It.return;else e=It,xn=Oa=null,Co(e),hr=null,ps=0,e=It;for(;e!==null;)id(e.alternate,e),e=e.return;It=null}}function vr(e,i){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,F1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),lc(),ne=e,It=a=pn(e.current,null),Ut=i,Yt=0,ci=null,ta=!1,xr=Fe(e,i),ec=!1,gr=Ci=ic=za=ea=me=0,ei=Ss=null,nc=!1,(i&8)!==0&&(i|=i&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=i;0<l;){var h=31-ft(l),m=1<<h;i|=e[h],l&=~m}return wn=i,hu(),a}function wd(e,i){Dt=null,K.H=Du,i===as||i===Su?(i=Fh(),Yt=3):i===zh?(i=Fh(),Yt=4):Yt=i===jp?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,ci=i,It===null&&(me=1,Vu(e,vi(i,e.current)))}function Cd(){var e=K.H;return K.H=Du,e===null?Du:e}function Ad(){var e=K.A;return K.A=S1,e}function oc(){me=4,ta||(Ut&4194048)!==Ut&&wi.current!==null||(xr=!0),(ea&134217727)===0&&(za&134217727)===0||ne===null||aa(ne,Ut,Ci,!1)}function cc(e,i,a){var l=Xt;Xt|=2;var h=Cd(),m=Ad();(ne!==e||Ut!==i)&&(qu=null,vr(e,i)),i=!1;var E=me;t:do try{if(Yt!==0&&It!==null){var A=It,M=ci;switch(Yt){case 8:lc(),E=6;break t;case 3:case 2:case 9:case 6:wi.current===null&&(i=!0);var J=Yt;if(Yt=0,ci=null,Sr(e,A,M,J),a&&xr){E=0;break t}break;default:J=Yt,Yt=0,ci=null,Sr(e,A,M,J)}}w1(),E=me;break}catch(et){wd(e,et)}while(!0);return i&&e.shellSuspendCounter++,xn=Oa=null,Xt=l,K.H=h,K.A=m,It===null&&(ne=null,Ut=0,hu()),E}function w1(){for(;It!==null;)_d(It)}function C1(e,i){var a=Xt;Xt|=2;var l=Cd(),h=Ad();ne!==e||Ut!==i?(qu=null,ju=ce()+500,vr(e,i)):xr=Fe(e,i);t:do try{if(Yt!==0&&It!==null){i=It;var m=ci;e:switch(Yt){case 1:Yt=0,ci=null,Sr(e,i,m,1);break;case 2:case 9:if(Ph(m)){Yt=0,ci=null,Td(i);break}i=function(){Yt!==2&&Yt!==9||ne!==e||(Yt=7),en(e)},m.then(i,i);break t;case 3:Yt=7;break t;case 4:Yt=5;break t;case 7:Ph(m)?(Yt=0,ci=null,Td(i)):(Yt=0,ci=null,Sr(e,i,m,7));break;case 5:var E=null;switch(It.tag){case 26:E=It.memoizedState;case 5:case 27:var A=It;if(!E||om(E)){Yt=0,ci=null;var M=A.sibling;if(M!==null)It=M;else{var J=A.return;J!==null?(It=J,Gu(J)):It=null}break e}}Yt=0,ci=null,Sr(e,i,m,5);break;case 6:Yt=0,ci=null,Sr(e,i,m,6);break;case 8:lc(),me=6;break t;default:throw Error(u(462))}}A1();break}catch(et){wd(e,et)}while(!0);return xn=Oa=null,K.H=l,K.A=h,Xt=a,It!==null?0:(ne=null,Ut=0,hu(),me)}function A1(){for(;It!==null&&!Mi();)_d(It)}function _d(e){var i=td(e.alternate,e,wn);e.memoizedProps=e.pendingProps,i===null?Gu(e):It=i}function Td(e){var i=e,a=i.alternate;switch(i.tag){case 15:case 0:i=Xp(a,i,i.pendingProps,i.type,void 0,Ut);break;case 11:i=Xp(a,i,i.pendingProps,i.type.render,i.ref,Ut);break;case 5:Co(i);default:id(a,i),i=It=Nh(i,wn),i=td(a,i,wn)}e.memoizedProps=e.pendingProps,i===null?Gu(e):It=i}function Sr(e,i,a,l){xn=Oa=null,Co(i),hr=null,ps=0;var h=i.return;try{if(m1(e,h,i,a,Ut)){me=1,Vu(e,vi(a,e.current)),It=null;return}}catch(m){if(h!==null)throw It=h,m;me=1,Vu(e,vi(a,e.current)),It=null;return}i.flags&32768?(Jt||l===1?e=!0:xr||(Ut&536870912)!==0?e=!1:(ta=e=!0,(l===2||l===9||l===3||l===6)&&(l=wi.current,l!==null&&l.tag===13&&(l.flags|=16384))),Nd(i,e)):Gu(i)}function Gu(e){var i=e;do{if((i.flags&32768)!==0){Nd(i,ta);return}e=i.return;var a=g1(i.alternate,i,wn);if(a!==null){It=a;return}if(i=i.sibling,i!==null){It=i;return}It=i=e}while(i!==null);me===0&&(me=5)}function Nd(e,i){do{var a=b1(e.alternate,e);if(a!==null){a.flags&=32767,It=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!i&&(e=e.sibling,e!==null)){It=e;return}It=e=a}while(e!==null);me=6,It=null}function Ld(e,i,a,l,h,m,E,A,M){e.cancelPendingCommit=null;do Ju();while(Pe!==0);if((Xt&6)!==0)throw Error(u(327));if(i!==null){if(i===e.current)throw Error(u(177));if(m=i.lanes|i.childLanes,m|=$l,te(e,a,m,E,A,M),e===ne&&(It=ne=null,Ut=0),br=i,na=e,yr=a,rc=m,sc=h,vd=l,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,L1(Ye,function(){return Id(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||l){l=K.T,K.T=null,h=nt.p,nt.p=2,E=Xt,Xt|=4;try{y1(e,i,a)}finally{Xt=E,nt.p=h,K.T=l}}Pe=1,Dd(),Od(),Rd()}}function Dd(){if(Pe===1){Pe=0;var e=na,i=br,a=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||a){a=K.T,K.T=null;var l=nt.p;nt.p=2;var h=Xt;Xt|=4;try{pd(i,e);var m=kc,E=yh(e.containerInfo),A=m.focusedElem,M=m.selectionRange;if(E!==A&&A&&A.ownerDocument&&bh(A.ownerDocument.documentElement,A)){if(M!==null&&Xl(A)){var J=M.start,et=M.end;if(et===void 0&&(et=J),"selectionStart"in A)A.selectionStart=J,A.selectionEnd=Math.min(et,A.value.length);else{var at=A.ownerDocument||document,Y=at&&at.defaultView||window;if(Y.getSelection){var Z=Y.getSelection(),Ct=A.textContent.length,kt=Math.min(M.start,Ct),$t=M.end===void 0?kt:Math.min(M.end,Ct);!Z.extend&&kt>$t&&(E=$t,$t=kt,kt=E);var U=gh(A,kt),P=gh(A,$t);if(U&&P&&(Z.rangeCount!==1||Z.anchorNode!==U.node||Z.anchorOffset!==U.offset||Z.focusNode!==P.node||Z.focusOffset!==P.offset)){var H=at.createRange();H.setStart(U.node,U.offset),Z.removeAllRanges(),kt>$t?(Z.addRange(H),Z.extend(P.node,P.offset)):(H.setEnd(P.node,P.offset),Z.addRange(H))}}}}for(at=[],Z=A;Z=Z.parentNode;)Z.nodeType===1&&at.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<at.length;A++){var it=at[A];it.element.scrollLeft=it.left,it.element.scrollTop=it.top}}al=!!Sc,kc=Sc=null}finally{Xt=h,nt.p=l,K.T=a}}e.current=i,Pe=2}}function Od(){if(Pe===2){Pe=0;var e=na,i=br,a=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||a){a=K.T,K.T=null;var l=nt.p;nt.p=2;var h=Xt;Xt|=4;try{od(e,i.alternate,i)}finally{Xt=h,nt.p=l,K.T=a}}Pe=3}}function Rd(){if(Pe===4||Pe===3){Pe=0,Xi();var e=na,i=br,a=yr,l=vd;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Pe=5:(Pe=0,br=na=null,Md(e,e.pendingLanes));var h=e.pendingLanes;if(h===0&&(ia=null),ya(a),i=i.stateNode,$&&typeof $.onCommitFiberRoot=="function")try{$.onCommitFiberRoot(tt,i,void 0,(i.current.flags&128)===128)}catch{}if(l!==null){i=K.T,h=nt.p,nt.p=2,K.T=null;try{for(var m=e.onRecoverableError,E=0;E<l.length;E++){var A=l[E];m(A.value,{componentStack:A.stack})}}finally{K.T=i,nt.p=h}}(yr&3)!==0&&Ju(),en(e),h=e.pendingLanes,(a&4194090)!==0&&(h&42)!==0?e===uc?ks++:(ks=0,uc=e):ks=0,Es(0)}}function Md(e,i){(e.pooledCacheLanes&=i)===0&&(i=e.pooledCache,i!=null&&(e.pooledCache=null,is(i)))}function Ju(e){return Dd(),Od(),Rd(),Id()}function Id(){if(Pe!==5)return!1;var e=na,i=rc;rc=0;var a=ya(yr),l=K.T,h=nt.p;try{nt.p=32>a?32:a,K.T=null,a=sc,sc=null;var m=na,E=yr;if(Pe=0,br=na=null,yr=0,(Xt&6)!==0)throw Error(u(331));var A=Xt;if(Xt|=4,bd(m.current),md(m,m.current,E,a),Xt=A,Es(0,!1),$&&typeof $.onPostCommitFiberRoot=="function")try{$.onPostCommitFiberRoot(tt,m)}catch{}return!0}finally{nt.p=h,K.T=l,Md(e,i)}}function Vd(e,i,a){i=vi(a,i),i=Po(e.stateNode,i,2),e=Qn(e,i,2),e!==null&&(De(e,2),en(e))}function ee(e,i,a){if(e.tag===3)Vd(e,e,a);else for(;i!==null;){if(i.tag===3){Vd(i,e,a);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ia===null||!ia.has(l))){e=vi(a,e),a=Up(2),l=Qn(i,a,2),l!==null&&(Fp(a,l,i,e),De(l,2),en(l));break}}i=i.return}}function fc(e,i,a){var l=e.pingCache;if(l===null){l=e.pingCache=new k1;var h=new Set;l.set(i,h)}else h=l.get(i),h===void 0&&(h=new Set,l.set(i,h));h.has(a)||(ec=!0,h.add(a),e=_1.bind(null,e,i,a),i.then(e,e))}function _1(e,i,a){var l=e.pingCache;l!==null&&l.delete(i),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ne===e&&(Ut&a)===a&&(me===4||me===3&&(Ut&62914560)===Ut&&300>ce()-ac?(Xt&2)===0&&vr(e,0):ic|=a,gr===Ut&&(gr=0)),en(e)}function Bd(e,i){i===0&&(i=ba()),e=ir(e,i),e!==null&&(De(e,i),en(e))}function T1(e){var i=e.memoizedState,a=0;i!==null&&(a=i.retryLane),Bd(e,a)}function N1(e,i){var a=0;switch(e.tag){case 13:var l=e.stateNode,h=e.memoizedState;h!==null&&(a=h.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(i),Bd(e,a)}function L1(e,i){return di(e,i)}var Qu=null,kr=null,hc=!1,Xu=!1,pc=!1,Pa=0;function en(e){e!==kr&&e.next===null&&(kr===null?Qu=kr=e:kr=kr.next=e),Xu=!0,hc||(hc=!0,O1())}function Es(e,i){if(!pc&&Xu){pc=!0;do for(var a=!1,l=Qu;l!==null;){if(e!==0){var h=l.pendingLanes;if(h===0)var m=0;else{var E=l.suspendedLanes,A=l.pingedLanes;m=(1<<31-ft(42|e)+1)-1,m&=h&~(E&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(a=!0,Fd(l,m))}else m=Ut,m=se(l,l===ne?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||Fe(l,m)||(a=!0,Fd(l,m));l=l.next}while(a);pc=!1}}function D1(){zd()}function zd(){Xu=hc=!1;var e=0;Pa!==0&&(U1()&&(e=Pa),Pa=0);for(var i=ce(),a=null,l=Qu;l!==null;){var h=l.next,m=Pd(l,i);m===0?(l.next=null,a===null?Qu=h:a.next=h,h===null&&(kr=a)):(a=l,(e!==0||(m&3)!==0)&&(Xu=!0)),l=h}Es(e)}function Pd(e,i){for(var a=e.suspendedLanes,l=e.pingedLanes,h=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var E=31-ft(m),A=1<<E,M=h[E];M===-1?((A&a)===0||(A&l)!==0)&&(h[E]=Ze(A,i)):M<=i&&(e.expiredLanes|=A),m&=~A}if(i=ne,a=Ut,a=se(e,e===i?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===i&&(Yt===2||Yt===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Qi(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Fe(e,a)){if(i=a&-a,i===e.callbackPriority)return i;switch(l!==null&&Qi(l),ya(a)){case 2:case 8:a=ai;break;case 32:a=Ye;break;case 268435456:a=Ae;break;default:a=Ye}return l=Ud.bind(null,e),a=di(a,l),e.callbackPriority=i,e.callbackNode=a,i}return l!==null&&l!==null&&Qi(l),e.callbackPriority=2,e.callbackNode=null,2}function Ud(e,i){if(Pe!==0&&Pe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ju()&&e.callbackNode!==a)return null;var l=Ut;return l=se(e,e===ne?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(kd(e,l,i),Pd(e,ce()),e.callbackNode!=null&&e.callbackNode===a?Ud.bind(null,e):null)}function Fd(e,i){if(Ju())return null;kd(e,i,!0)}function O1(){j1(function(){(Xt&6)!==0?di(xi,D1):zd()})}function dc(){return Pa===0&&(Pa=Ks()),Pa}function jd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wa(""+e)}function qd(e,i){var a=i.ownerDocument.createElement("input");return a.name=i.name,a.value=i.value,e.id&&a.setAttribute("form",e.id),i.parentNode.insertBefore(a,i),e=new FormData(e),a.parentNode.removeChild(a),e}function R1(e,i,a,l,h){if(i==="submit"&&a&&a.stateNode===h){var m=jd((h[ve]||null).action),E=l.submitter;E&&(i=(i=E[ve]||null)?jd(i.formAction):E.getAttribute("formAction"),i!==null&&(m=i,E=null));var A=new hn("action","action",null,l,h);e.push({event:A,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Pa!==0){var M=E?qd(h,E):new FormData(h);Mo(a,{pending:!0,data:M,method:h.method,action:m},null,M)}}else typeof m=="function"&&(A.preventDefault(),M=E?qd(h,E):new FormData(h),Mo(a,{pending:!0,data:M,method:h.method,action:m},m,M))},currentTarget:h}]})}}for(var mc=0;mc<Wl.length;mc++){var xc=Wl[mc],M1=xc.toLowerCase(),I1=xc[0].toUpperCase()+xc.slice(1);Bi(M1,"on"+I1)}Bi(kh,"onAnimationEnd"),Bi(Eh,"onAnimationIteration"),Bi(wh,"onAnimationStart"),Bi("dblclick","onDoubleClick"),Bi("focusin","onFocus"),Bi("focusout","onBlur"),Bi(Wg,"onTransitionRun"),Bi($g,"onTransitionStart"),Bi(t1,"onTransitionCancel"),Bi(Ch,"onTransitionEnd"),fn("onMouseEnter",["mouseout","mouseover"]),fn("onMouseLeave",["mouseout","mouseover"]),fn("onPointerEnter",["pointerout","pointerover"]),fn("onPointerLeave",["pointerout","pointerover"]),Yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ws="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(" "),V1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ws));function Hd(e,i){i=(i&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],h=l.event;l=l.listeners;t:{var m=void 0;if(i)for(var E=l.length-1;0<=E;E--){var A=l[E],M=A.instance,J=A.currentTarget;if(A=A.listener,M!==m&&h.isPropagationStopped())break t;m=A,h.currentTarget=J;try{m(h)}catch(et){Iu(et)}h.currentTarget=null,m=M}else for(E=0;E<l.length;E++){if(A=l[E],M=A.instance,J=A.currentTarget,A=A.listener,M!==m&&h.isPropagationStopped())break t;m=A,h.currentTarget=J;try{m(h)}catch(et){Iu(et)}h.currentTarget=null,m=M}}}}function Vt(e,i){var a=i[Ja];a===void 0&&(a=i[Ja]=new Set);var l=e+"__bubble";a.has(l)||(Gd(i,e,2,!1),a.add(l))}function gc(e,i,a){var l=0;i&&(l|=4),Gd(a,e,l,i)}var Yu="_reactListening"+Math.random().toString(36).slice(2);function bc(e){if(!e[Yu]){e[Yu]=!0,zr.forEach(function(a){a!=="selectionchange"&&(V1.has(a)||gc(a,!1,e),gc(a,!0,e))});var i=e.nodeType===9?e:e.ownerDocument;i===null||i[Yu]||(i[Yu]=!0,gc("selectionchange",!1,i))}}function Gd(e,i,a,l){switch(mm(i)){case 2:var h=ob;break;case 8:h=cb;break;default:h=Oc}a=h.bind(null,i,a,e),h=void 0,!N||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),l?h!==void 0?e.addEventListener(i,a,{capture:!0,passive:h}):e.addEventListener(i,a,!0):h!==void 0?e.addEventListener(i,a,{passive:h}):e.addEventListener(i,a,!1)}function yc(e,i,a,l,h){var m=l;if((i&1)===0&&(i&2)===0&&l!==null)t:for(;;){if(l===null)return;var E=l.tag;if(E===3||E===4){var A=l.stateNode.containerInfo;if(A===h)break;if(E===4)for(E=l.return;E!==null;){var M=E.tag;if((M===3||M===4)&&E.stateNode.containerInfo===h)return;E=E.return}for(;A!==null;){if(E=cn(A),E===null)return;if(M=E.tag,M===5||M===6||M===26||M===27){l=m=E;continue t}A=A.parentNode}}l=l.return}d(function(){var J=m,et=Ka(a),at=[];t:{var Y=Ah.get(e);if(Y!==void 0){var Z=hn,Ct=e;switch(e){case"keypress":if(St(a)===0)break t;case"keydown":case"keyup":Z=Lg;break;case"focusin":Ct="focus",Z=ql;break;case"focusout":Ct="blur",Z=ql;break;case"beforeblur":case"afterblur":Z=ql;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=eh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=bg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=Rg;break;case kh:case Eh:case wh:Z=Sg;break;case Ch:Z=Ig;break;case"scroll":case"scrollend":Z=qn;break;case"wheel":Z=Bg;break;case"copy":case"cut":case"paste":Z=Eg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=nh;break;case"toggle":case"beforetoggle":Z=Pg}var kt=(i&4)!==0,$t=!kt&&(e==="scroll"||e==="scrollend"),U=kt?Y!==null?Y+"Capture":null:Y;kt=[];for(var P=J,H;P!==null;){var it=P;if(H=it.stateNode,it=it.tag,it!==5&&it!==26&&it!==27||H===null||U===null||(it=S(P,U),it!=null&&kt.push(Cs(P,it,H))),$t)break;P=P.return}0<kt.length&&(Y=new Z(Y,Ct,null,a,et),at.push({event:Y,listeners:kt}))}}if((i&7)===0){t:{if(Y=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",Y&&a!==Za&&(Ct=a.relatedTarget||a.fromElement)&&(cn(Ct)||Ct[bi]))break t;if((Z||Y)&&(Y=et.window===et?et:(Y=et.ownerDocument)?Y.defaultView||Y.parentWindow:window,Z?(Ct=a.relatedTarget||a.toElement,Z=J,Ct=Ct?cn(Ct):null,Ct!==null&&($t=c(Ct),kt=Ct.tag,Ct!==$t||kt!==5&&kt!==27&&kt!==6)&&(Ct=null)):(Z=null,Ct=J),Z!==Ct)){if(kt=eh,it="onMouseLeave",U="onMouseEnter",P="mouse",(e==="pointerout"||e==="pointerover")&&(kt=nh,it="onPointerLeave",U="onPointerEnter",P="pointer"),$t=Z==null?Y:va(Z),H=Ct==null?Y:va(Ct),Y=new kt(it,P+"leave",Z,a,et),Y.target=$t,Y.relatedTarget=H,it=null,cn(et)===J&&(kt=new kt(U,P+"enter",Ct,a,et),kt.target=H,kt.relatedTarget=$t,it=kt),$t=it,Z&&Ct)e:{for(kt=Z,U=Ct,P=0,H=kt;H;H=Er(H))P++;for(H=0,it=U;it;it=Er(it))H++;for(;0<P-H;)kt=Er(kt),P--;for(;0<H-P;)U=Er(U),H--;for(;P--;){if(kt===U||U!==null&&kt===U.alternate)break e;kt=Er(kt),U=Er(U)}kt=null}else kt=null;Z!==null&&Jd(at,Y,Z,kt,!1),Ct!==null&&$t!==null&&Jd(at,$t,Ct,kt,!0)}}t:{if(Y=J?va(J):window,Z=Y.nodeName&&Y.nodeName.toLowerCase(),Z==="select"||Z==="input"&&Y.type==="file")var mt=fh;else if(oh(Y))if(hh)mt=Yg;else{mt=Qg;var Mt=Jg}else Z=Y.nodeName,!Z||Z.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?J&&Un(J.elementType)&&(mt=fh):mt=Xg;if(mt&&(mt=mt(e,J))){ch(at,mt,a,et);break t}Mt&&Mt(e,Y,J),e==="focusout"&&J&&Y.type==="number"&&J.memoizedProps.value!=null&&qr(Y,"number",Y.value)}switch(Mt=J?va(J):window,e){case"focusin":(oh(Mt)||Mt.contentEditable==="true")&&($a=Mt,Yl=J,Kr=null);break;case"focusout":Kr=Yl=$a=null;break;case"mousedown":Zl=!0;break;case"contextmenu":case"mouseup":case"dragend":Zl=!1,vh(at,a,et);break;case"selectionchange":if(Kg)break;case"keydown":case"keyup":vh(at,a,et)}var yt;if(Gl)t:{switch(e){case"compositionstart":var Et="onCompositionStart";break t;case"compositionend":Et="onCompositionEnd";break t;case"compositionupdate":Et="onCompositionUpdate";break t}Et=void 0}else Wa?uh(e,a)&&(Et="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Et="onCompositionStart");Et&&(ah&&a.locale!=="ko"&&(Wa||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&Wa&&(yt=Tt()):(Q=et,lt="value"in Q?Q.value:Q.textContent,Wa=!0)),Mt=Zu(J,Et),0<Mt.length&&(Et=new ih(Et,e,null,a,et),at.push({event:Et,listeners:Mt}),yt?Et.data=yt:(yt=lh(a),yt!==null&&(Et.data=yt)))),(yt=Fg?jg(e,a):qg(e,a))&&(Et=Zu(J,"onBeforeInput"),0<Et.length&&(Mt=new ih("onBeforeInput","beforeinput",null,a,et),at.push({event:Mt,listeners:Et}),Mt.data=yt)),R1(at,e,J,a,et)}Hd(at,i)})}function Cs(e,i,a){return{instance:e,listener:i,currentTarget:a}}function Zu(e,i){for(var a=i+"Capture",l=[];e!==null;){var h=e,m=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||m===null||(h=S(e,a),h!=null&&l.unshift(Cs(e,h,m)),h=S(e,i),h!=null&&l.push(Cs(e,h,m))),e.tag===3)return l;e=e.return}return[]}function Er(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jd(e,i,a,l,h){for(var m=i._reactName,E=[];a!==null&&a!==l;){var A=a,M=A.alternate,J=A.stateNode;if(A=A.tag,M!==null&&M===l)break;A!==5&&A!==26&&A!==27||J===null||(M=J,h?(J=S(a,m),J!=null&&E.unshift(Cs(a,J,M))):h||(J=S(a,m),J!=null&&E.push(Cs(a,J,M)))),a=a.return}E.length!==0&&e.push({event:i,listeners:E})}var B1=/\r\n?/g,z1=/\u0000|\uFFFD/g;function Qd(e){return(typeof e=="string"?e:""+e).replace(B1,`
|
|
26
|
+
`).replace(z1,"")}function Xd(e,i){return i=Qd(i),Qd(e)===i}function Ku(){}function Wt(e,i,a,l,h,m){switch(a){case"children":typeof l=="string"?i==="body"||i==="textarea"&&l===""||Vi(e,l):(typeof l=="number"||typeof l=="bigint")&&i!=="body"&&Vi(e,""+l);break;case"className":Xa(e,"class",l);break;case"tabIndex":Xa(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Xa(e,a,l);break;case"style":Gr(e,l,m);break;case"data":if(i!=="object"){Xa(e,"data",l);break}case"src":case"href":if(l===""&&(i!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=wa(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(a==="formAction"?(i!=="input"&&Wt(e,i,"name",h.name,h,null),Wt(e,i,"formEncType",h.formEncType,h,null),Wt(e,i,"formMethod",h.formMethod,h,null),Wt(e,i,"formTarget",h.formTarget,h,null)):(Wt(e,i,"encType",h.encType,h,null),Wt(e,i,"method",h.method,h,null),Wt(e,i,"target",h.target,h,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=wa(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Ku);break;case"onScroll":l!=null&&Vt("scroll",e);break;case"onScrollEnd":l!=null&&Vt("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(h.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=wa(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Vt("beforetoggle",e),Vt("toggle",e),Sa(e,"popover",l);break;case"xlinkActuate":ri(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ri(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ri(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ri(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ri(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ri(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ri(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ri(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ri(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Sa(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Rt.get(a)||a,Sa(e,a,l))}}function vc(e,i,a,l,h,m){switch(a){case"style":Gr(e,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(h.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Vi(e,l):(typeof l=="number"||typeof l=="bigint")&&Vi(e,""+l);break;case"onScroll":l!=null&&Vt("scroll",e);break;case"onScrollEnd":l!=null&&Vt("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Ku);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Pr.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),i=a.slice(2,h?a.length-7:void 0),m=e[ve]||null,m=m!=null?m[a]:null,typeof m=="function"&&e.removeEventListener(i,m,h),typeof l=="function")){typeof m!="function"&&m!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(i,l,h);break t}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Sa(e,a,l)}}}function Ue(e,i,a){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Vt("error",e),Vt("load",e);var l=!1,h=!1,m;for(m in a)if(a.hasOwnProperty(m)){var E=a[m];if(E!=null)switch(m){case"src":l=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,i));default:Wt(e,i,m,E,a,null)}}h&&Wt(e,i,"srcSet",a.srcSet,a,null),l&&Wt(e,i,"src",a.src,a,null);return;case"input":Vt("invalid",e);var A=m=E=h=null,M=null,J=null;for(l in a)if(a.hasOwnProperty(l)){var et=a[l];if(et!=null)switch(l){case"name":h=et;break;case"type":E=et;break;case"checked":M=et;break;case"defaultChecked":J=et;break;case"value":m=et;break;case"defaultValue":A=et;break;case"children":case"dangerouslySetInnerHTML":if(et!=null)throw Error(u(137,i));break;default:Wt(e,i,l,et,a,null)}}jr(e,m,A,M,J,E,h,!1),ka(e);return;case"select":Vt("invalid",e),l=E=m=null;for(h in a)if(a.hasOwnProperty(h)&&(A=a[h],A!=null))switch(h){case"value":m=A;break;case"defaultValue":E=A;break;case"multiple":l=A;default:Wt(e,i,h,A,a,null)}i=m,a=E,e.multiple=!!l,i!=null?Pn(e,!!l,i,!1):a!=null&&Pn(e,!!l,a,!0);return;case"textarea":Vt("invalid",e),m=h=l=null;for(E in a)if(a.hasOwnProperty(E)&&(A=a[E],A!=null))switch(E){case"value":l=A;break;case"defaultValue":h=A;break;case"children":m=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(u(91));break;default:Wt(e,i,E,A,a,null)}uu(e,l,h,m),ka(e);return;case"option":for(M in a)if(a.hasOwnProperty(M)&&(l=a[M],l!=null))switch(M){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Wt(e,i,M,l,a,null)}return;case"dialog":Vt("beforetoggle",e),Vt("toggle",e),Vt("cancel",e),Vt("close",e);break;case"iframe":case"object":Vt("load",e);break;case"video":case"audio":for(l=0;l<ws.length;l++)Vt(ws[l],e);break;case"image":Vt("error",e),Vt("load",e);break;case"details":Vt("toggle",e);break;case"embed":case"source":case"link":Vt("error",e),Vt("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(J in a)if(a.hasOwnProperty(J)&&(l=a[J],l!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,i));default:Wt(e,i,J,l,a,null)}return;default:if(Un(i)){for(et in a)a.hasOwnProperty(et)&&(l=a[et],l!==void 0&&vc(e,i,et,l,a,void 0));return}}for(A in a)a.hasOwnProperty(A)&&(l=a[A],l!=null&&Wt(e,i,A,l,a,null))}function P1(e,i,a,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,m=null,E=null,A=null,M=null,J=null,et=null;for(Z in a){var at=a[Z];if(a.hasOwnProperty(Z)&&at!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":M=at;default:l.hasOwnProperty(Z)||Wt(e,i,Z,null,l,at)}}for(var Y in l){var Z=l[Y];if(at=a[Y],l.hasOwnProperty(Y)&&(Z!=null||at!=null))switch(Y){case"type":m=Z;break;case"name":h=Z;break;case"checked":J=Z;break;case"defaultChecked":et=Z;break;case"value":E=Z;break;case"defaultValue":A=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(u(137,i));break;default:Z!==at&&Wt(e,i,Y,Z,l,at)}}Fr(e,E,A,M,J,et,m,h);return;case"select":Z=E=A=Y=null;for(m in a)if(M=a[m],a.hasOwnProperty(m)&&M!=null)switch(m){case"value":break;case"multiple":Z=M;default:l.hasOwnProperty(m)||Wt(e,i,m,null,l,M)}for(h in l)if(m=l[h],M=a[h],l.hasOwnProperty(h)&&(m!=null||M!=null))switch(h){case"value":Y=m;break;case"defaultValue":A=m;break;case"multiple":E=m;default:m!==M&&Wt(e,i,h,m,l,M)}i=A,a=E,l=Z,Y!=null?Pn(e,!!a,Y,!1):!!l!=!!a&&(i!=null?Pn(e,!!a,i,!0):Pn(e,!!a,a?[]:"",!1));return;case"textarea":Z=Y=null;for(A in a)if(h=a[A],a.hasOwnProperty(A)&&h!=null&&!l.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Wt(e,i,A,null,l,h)}for(E in l)if(h=l[E],m=a[E],l.hasOwnProperty(E)&&(h!=null||m!=null))switch(E){case"value":Y=h;break;case"defaultValue":Z=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(u(91));break;default:h!==m&&Wt(e,i,E,h,l,m)}su(e,Y,Z);return;case"option":for(var Ct in a)if(Y=a[Ct],a.hasOwnProperty(Ct)&&Y!=null&&!l.hasOwnProperty(Ct))switch(Ct){case"selected":e.selected=!1;break;default:Wt(e,i,Ct,null,l,Y)}for(M in l)if(Y=l[M],Z=a[M],l.hasOwnProperty(M)&&Y!==Z&&(Y!=null||Z!=null))switch(M){case"selected":e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:Wt(e,i,M,Y,l,Z)}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 kt in a)Y=a[kt],a.hasOwnProperty(kt)&&Y!=null&&!l.hasOwnProperty(kt)&&Wt(e,i,kt,null,l,Y);for(J in l)if(Y=l[J],Z=a[J],l.hasOwnProperty(J)&&Y!==Z&&(Y!=null||Z!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(u(137,i));break;default:Wt(e,i,J,Y,l,Z)}return;default:if(Un(i)){for(var $t in a)Y=a[$t],a.hasOwnProperty($t)&&Y!==void 0&&!l.hasOwnProperty($t)&&vc(e,i,$t,void 0,l,Y);for(et in l)Y=l[et],Z=a[et],!l.hasOwnProperty(et)||Y===Z||Y===void 0&&Z===void 0||vc(e,i,et,Y,l,Z);return}}for(var U in a)Y=a[U],a.hasOwnProperty(U)&&Y!=null&&!l.hasOwnProperty(U)&&Wt(e,i,U,null,l,Y);for(at in l)Y=l[at],Z=a[at],!l.hasOwnProperty(at)||Y===Z||Y==null&&Z==null||Wt(e,i,at,Y,l,Z)}var Sc=null,kc=null;function Wu(e){return e.nodeType===9?e:e.ownerDocument}function Yd(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 Zd(e,i){if(e===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&i==="foreignObject"?0:e}function Ec(e,i){return e==="textarea"||e==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var wc=null;function U1(){var e=window.event;return e&&e.type==="popstate"?e===wc?!1:(wc=e,!0):(wc=null,!1)}var Kd=typeof setTimeout=="function"?setTimeout:void 0,F1=typeof clearTimeout=="function"?clearTimeout:void 0,Wd=typeof Promise=="function"?Promise:void 0,j1=typeof queueMicrotask=="function"?queueMicrotask:typeof Wd<"u"?function(e){return Wd.resolve(null).then(e).catch(q1)}:Kd;function q1(e){setTimeout(function(){throw e})}function ra(e){return e==="head"}function $d(e,i){var a=i,l=0,h=0;do{var m=a.nextSibling;if(e.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(0<l&&8>l){a=l;var E=e.ownerDocument;if(a&1&&As(E.documentElement),a&2&&As(E.body),a&4)for(a=E.head,As(a),E=a.firstChild;E;){var A=E.nextSibling,M=E.nodeName;E[In]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&E.rel.toLowerCase()==="stylesheet"||a.removeChild(E),E=A}}if(h===0){e.removeChild(m),Ms(i);return}h--}else a==="$"||a==="$?"||a==="$!"?h++:l=a.charCodeAt(0)-48;else l=0;a=m}while(a);Ms(i)}function Cc(e){var i=e.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var a=i;switch(i=i.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Cc(a),Qa(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function H1(e,i,a,l){for(;e.nodeType===1;){var h=a;if(e.nodeName.toLowerCase()!==i.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[In])switch(i){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==h.rel||e.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||e.getAttribute("title")!==(h.title==null?null:h.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(h.src==null?null:h.src)||e.getAttribute("type")!==(h.type==null?null:h.type)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(i==="input"&&e.type==="hidden"){var m=h.name==null?null:""+h.name;if(h.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=Pi(e.nextSibling),e===null)break}return null}function G1(e,i,a){if(i==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Pi(e.nextSibling),e===null))return null;return e}function Ac(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function J1(e,i){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")i();else{var l=function(){i(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Pi(e){for(;e!=null;e=e.nextSibling){var i=e.nodeType;if(i===1||i===3)break;if(i===8){if(i=e.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return e}var _c=null;function tm(e){e=e.previousSibling;for(var i=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return e;i--}else a==="/$"&&i++}e=e.previousSibling}return null}function em(e,i,a){switch(i=Wu(a),e){case"html":if(e=i.documentElement,!e)throw Error(u(452));return e;case"head":if(e=i.head,!e)throw Error(u(453));return e;case"body":if(e=i.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function As(e){for(var i=e.attributes;i.length;)e.removeAttributeNode(i[0]);Qa(e)}var Ai=new Map,im=new Set;function $u(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cn=nt.d;nt.d={f:Q1,r:X1,D:Y1,C:Z1,L:K1,m:W1,X:tb,S:$1,M:eb};function Q1(){var e=Cn.f(),i=Hu();return e||i}function X1(e){var i=Vn(e);i!==null&&i.tag===5&&i.type==="form"?kp(i):Cn.r(e)}var wr=typeof document>"u"?null:document;function nm(e,i,a){var l=wr;if(l&&typeof i=="string"&&i){var h=re(i);h='link[rel="'+e+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),im.has(h)||(im.add(h),e={rel:e,crossOrigin:a,href:i},l.querySelector(h)===null&&(i=l.createElement("link"),Ue(i,"link",e),Se(i),l.head.appendChild(i)))}}function Y1(e){Cn.D(e),nm("dns-prefetch",e,null)}function Z1(e,i){Cn.C(e,i),nm("preconnect",e,i)}function K1(e,i,a){Cn.L(e,i,a);var l=wr;if(l&&e&&i){var h='link[rel="preload"][as="'+re(i)+'"]';i==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+re(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+re(a.imageSizes)+'"]')):h+='[href="'+re(e)+'"]';var m=h;switch(i){case"style":m=Cr(e);break;case"script":m=Ar(e)}Ai.has(m)||(e=y({rel:"preload",href:i==="image"&&a&&a.imageSrcSet?void 0:e,as:i},a),Ai.set(m,e),l.querySelector(h)!==null||i==="style"&&l.querySelector(_s(m))||i==="script"&&l.querySelector(Ts(m))||(i=l.createElement("link"),Ue(i,"link",e),Se(i),l.head.appendChild(i)))}}function W1(e,i){Cn.m(e,i);var a=wr;if(a&&e){var l=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+re(l)+'"][href="'+re(e)+'"]',m=h;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ar(e)}if(!Ai.has(m)&&(e=y({rel:"modulepreload",href:e},i),Ai.set(m,e),a.querySelector(h)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ts(m)))return}l=a.createElement("link"),Ue(l,"link",e),Se(l),a.head.appendChild(l)}}}function $1(e,i,a){Cn.S(e,i,a);var l=wr;if(l&&e){var h=Bn(l).hoistableStyles,m=Cr(e);i=i||"default";var E=h.get(m);if(!E){var A={loading:0,preload:null};if(E=l.querySelector(_s(m)))A.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":i},a),(a=Ai.get(m))&&Tc(e,a);var M=E=l.createElement("link");Se(M),Ue(M,"link",e),M._p=new Promise(function(J,et){M.onload=J,M.onerror=et}),M.addEventListener("load",function(){A.loading|=1}),M.addEventListener("error",function(){A.loading|=2}),A.loading|=4,tl(E,i,l)}E={type:"stylesheet",instance:E,count:1,state:A},h.set(m,E)}}}function tb(e,i){Cn.X(e,i);var a=wr;if(a&&e){var l=Bn(a).hoistableScripts,h=Ar(e),m=l.get(h);m||(m=a.querySelector(Ts(h)),m||(e=y({src:e,async:!0},i),(i=Ai.get(h))&&Nc(e,i),m=a.createElement("script"),Se(m),Ue(m,"link",e),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(h,m))}}function eb(e,i){Cn.M(e,i);var a=wr;if(a&&e){var l=Bn(a).hoistableScripts,h=Ar(e),m=l.get(h);m||(m=a.querySelector(Ts(h)),m||(e=y({src:e,async:!0,type:"module"},i),(i=Ai.get(h))&&Nc(e,i),m=a.createElement("script"),Se(m),Ue(m,"link",e),a.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(h,m))}}function am(e,i,a,l){var h=(h=qt.current)?$u(h):null;if(!h)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(i=Cr(a.href),a=Bn(h).hoistableStyles,l=a.get(i),l||(l={type:"style",instance:null,count:0,state:null},a.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Cr(a.href);var m=Bn(h).hoistableStyles,E=m.get(e);if(E||(h=h.ownerDocument||h,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,E),(m=h.querySelector(_s(e)))&&!m._p&&(E.instance=m,E.state.loading=5),Ai.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ai.set(e,a),m||ib(h,e,a,E.state))),i&&l===null)throw Error(u(528,""));return E}if(i&&l!==null)throw Error(u(529,""));return null;case"script":return i=a.async,a=a.src,typeof a=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ar(a),a=Bn(h).hoistableScripts,l=a.get(i),l||(l={type:"script",instance:null,count:0,state:null},a.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Cr(e){return'href="'+re(e)+'"'}function _s(e){return'link[rel="stylesheet"]['+e+"]"}function rm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function ib(e,i,a,l){e.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=e.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),Ue(i,"link",a),Se(i),e.head.appendChild(i))}function Ar(e){return'[src="'+re(e)+'"]'}function Ts(e){return"script[async]"+e}function sm(e,i,a){if(i.count++,i.instance===null)switch(i.type){case"style":var l=e.querySelector('style[data-href~="'+re(a.href)+'"]');if(l)return i.instance=l,Se(l),l;var h=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Se(l),Ue(l,"style",h),tl(l,a.precedence,e),i.instance=l;case"stylesheet":h=Cr(a.href);var m=e.querySelector(_s(h));if(m)return i.state.loading|=4,i.instance=m,Se(m),m;l=rm(a),(h=Ai.get(h))&&Tc(l,h),m=(e.ownerDocument||e).createElement("link"),Se(m);var E=m;return E._p=new Promise(function(A,M){E.onload=A,E.onerror=M}),Ue(m,"link",l),i.state.loading|=4,tl(m,a.precedence,e),i.instance=m;case"script":return m=Ar(a.src),(h=e.querySelector(Ts(m)))?(i.instance=h,Se(h),h):(l=a,(h=Ai.get(m))&&(l=y({},a),Nc(l,h)),e=e.ownerDocument||e,h=e.createElement("script"),Se(h),Ue(h,"link",l),e.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error(u(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(l=i.instance,i.state.loading|=4,tl(l,a.precedence,e));return i.instance}function tl(e,i,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=l.length?l[l.length-1]:null,m=h,E=0;E<l.length;E++){var A=l[E];if(A.dataset.precedence===i)m=A;else if(m!==h)break}m?m.parentNode.insertBefore(e,m.nextSibling):(i=a.nodeType===9?a.head:a,i.insertBefore(e,i.firstChild))}function Tc(e,i){e.crossOrigin==null&&(e.crossOrigin=i.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=i.referrerPolicy),e.title==null&&(e.title=i.title)}function Nc(e,i){e.crossOrigin==null&&(e.crossOrigin=i.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=i.referrerPolicy),e.integrity==null&&(e.integrity=i.integrity)}var el=null;function um(e,i,a){if(el===null){var l=new Map,h=el=new Map;h.set(a,l)}else h=el,l=h.get(a),l||(l=new Map,h.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),h=0;h<a.length;h++){var m=a[h];if(!(m[In]||m[Oe]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var E=m.getAttribute(i)||"";E=e+E;var A=l.get(E);A?A.push(m):l.set(E,[m])}}return l}function lm(e,i,a){e=e.ownerDocument||e,e.head.insertBefore(a,i==="title"?e.querySelector("head > title"):null)}function nb(e,i,a){if(a===1||i.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return e=i.disabled,typeof i.precedence=="string"&&e==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function om(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Ns=null;function ab(){}function rb(e,i,a){if(Ns===null)throw Error(u(475));var l=Ns;if(i.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var h=Cr(a.href),m=e.querySelector(_s(h));if(m){e=m._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=il.bind(l),e.then(l,l)),i.state.loading|=4,i.instance=m,Se(m);return}m=e.ownerDocument||e,a=rm(a),(h=Ai.get(h))&&Tc(a,h),m=m.createElement("link"),Se(m);var E=m;E._p=new Promise(function(A,M){E.onload=A,E.onerror=M}),Ue(m,"link",a),i.instance=m}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(l.count++,i=il.bind(l),e.addEventListener("load",i),e.addEventListener("error",i))}}function sb(){if(Ns===null)throw Error(u(475));var e=Ns;return e.stylesheets&&e.count===0&&Lc(e,e.stylesheets),0<e.count?function(i){var a=setTimeout(function(){if(e.stylesheets&&Lc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(a)}}:null}function il(){if(this.count--,this.count===0){if(this.stylesheets)Lc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var nl=null;function Lc(e,i){e.stylesheets=null,e.unsuspend!==null&&(e.count++,nl=new Map,i.forEach(ub,e),nl=null,il.call(e))}function ub(e,i){if(!(i.state.loading&4)){var a=nl.get(e);if(a)var l=a.get(null);else{a=new Map,nl.set(e,a);for(var h=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<h.length;m++){var E=h[m];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(a.set(E.dataset.precedence,E),l=E)}l&&a.set(null,l)}h=i.instance,E=h.getAttribute("data-precedence"),m=a.get(E)||l,m===l&&a.set(null,h),a.set(E,h),this.count++,l=il.bind(this),h.addEventListener("load",l),h.addEventListener("error",l),m?m.parentNode.insertBefore(h,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(h,e.firstChild)),i.state.loading|=4}}var Ls={$$typeof:z,Provider:null,Consumer:null,_currentValue:dt,_currentValue2:dt,_threadCount:0};function lb(e,i,a,l,h,m,E,A){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=je(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=je(0),this.hiddenUpdates=je(null),this.identifierPrefix=l,this.onUncaughtError=h,this.onCaughtError=m,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function cm(e,i,a,l,h,m,E,A,M,J,et,at){return e=new lb(e,i,a,E,A,M,J,at),i=1,m===!0&&(i|=24),m=ui(3,null,null,i),e.current=m,m.stateNode=e,i=co(),i.refCount++,e.pooledCache=i,i.refCount++,m.memoizedState={element:l,isDehydrated:a,cache:i},mo(m),e}function fm(e){return e?(e=nr,e):nr}function hm(e,i,a,l,h,m){h=fm(h),l.context===null?l.context=h:l.pendingContext=h,l=Jn(i),l.payload={element:a},m=m===void 0?null:m,m!==null&&(l.callback=m),a=Qn(e,l,i),a!==null&&(hi(a,e,i),ss(a,e,i))}function pm(e,i){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<i?a:i}}function Dc(e,i){pm(e,i),(e=e.alternate)&&pm(e,i)}function dm(e){if(e.tag===13){var i=ir(e,67108864);i!==null&&hi(i,e,67108864),Dc(e,67108864)}}var al=!0;function ob(e,i,a,l){var h=K.T;K.T=null;var m=nt.p;try{nt.p=2,Oc(e,i,a,l)}finally{nt.p=m,K.T=h}}function cb(e,i,a,l){var h=K.T;K.T=null;var m=nt.p;try{nt.p=8,Oc(e,i,a,l)}finally{nt.p=m,K.T=h}}function Oc(e,i,a,l){if(al){var h=Rc(l);if(h===null)yc(e,i,l,rl,a),xm(e,l);else if(hb(h,e,i,a,l))l.stopPropagation();else if(xm(e,l),i&4&&-1<fb.indexOf(e)){for(;h!==null;){var m=Vn(h);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var E=He(m.pendingLanes);if(E!==0){var A=m;for(A.pendingLanes|=2,A.entangledLanes|=2;E;){var M=1<<31-ft(E);A.entanglements[1]|=M,E&=~M}en(m),(Xt&6)===0&&(ju=ce()+500,Es(0))}}break;case 13:A=ir(m,2),A!==null&&hi(A,m,2),Hu(),Dc(m,2)}if(m=Rc(l),m===null&&yc(e,i,l,rl,a),m===h)break;h=m}h!==null&&l.stopPropagation()}else yc(e,i,l,null,a)}}function Rc(e){return e=Ka(e),Mc(e)}var rl=null;function Mc(e){if(rl=null,e=cn(e),e!==null){var i=c(e);if(i===null)e=null;else{var a=i.tag;if(a===13){if(e=f(i),e!==null)return e;e=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;e=null}else i!==e&&(e=null)}}return rl=e,null}function mm(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(mi()){case xi:return 2;case ai:return 8;case Ye:case un:return 32;case Ae:return 268435456;default:return 32}default:return 32}}var Ic=!1,sa=null,ua=null,la=null,Ds=new Map,Os=new Map,oa=[],fb="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 xm(e,i){switch(e){case"focusin":case"focusout":sa=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":Ds.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(i.pointerId)}}function Rs(e,i,a,l,h,m){return e===null||e.nativeEvent!==m?(e={blockedOn:i,domEventName:a,eventSystemFlags:l,nativeEvent:m,targetContainers:[h]},i!==null&&(i=Vn(i),i!==null&&dm(i)),e):(e.eventSystemFlags|=l,i=e.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),e)}function hb(e,i,a,l,h){switch(i){case"focusin":return sa=Rs(sa,e,i,a,l,h),!0;case"dragenter":return ua=Rs(ua,e,i,a,l,h),!0;case"mouseover":return la=Rs(la,e,i,a,l,h),!0;case"pointerover":var m=h.pointerId;return Ds.set(m,Rs(Ds.get(m)||null,e,i,a,l,h)),!0;case"gotpointercapture":return m=h.pointerId,Os.set(m,Rs(Os.get(m)||null,e,i,a,l,h)),!0}return!1}function gm(e){var i=cn(e.target);if(i!==null){var a=c(i);if(a!==null){if(i=a.tag,i===13){if(i=f(a),i!==null){e.blockedOn=i,Ga(e.priority,function(){if(a.tag===13){var l=fi();l=Ha(l);var h=ir(a,l);h!==null&&hi(h,a,l),Dc(a,l)}});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sl(e){if(e.blockedOn!==null)return!1;for(var i=e.targetContainers;0<i.length;){var a=Rc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Za=l,a.target.dispatchEvent(l),Za=null}else return i=Vn(a),i!==null&&dm(i),e.blockedOn=a,!1;i.shift()}return!0}function bm(e,i,a){sl(e)&&a.delete(i)}function pb(){Ic=!1,sa!==null&&sl(sa)&&(sa=null),ua!==null&&sl(ua)&&(ua=null),la!==null&&sl(la)&&(la=null),Ds.forEach(bm),Os.forEach(bm)}function ul(e,i){e.blockedOn===i&&(e.blockedOn=null,Ic||(Ic=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,pb)))}var ll=null;function ym(e){ll!==e&&(ll=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ll===e&&(ll=null);for(var i=0;i<e.length;i+=3){var a=e[i],l=e[i+1],h=e[i+2];if(typeof l!="function"){if(Mc(l||a)===null)continue;break}var m=Vn(a);m!==null&&(e.splice(i,3),i-=3,Mo(m,{pending:!0,data:h,method:a.method,action:l},l,h))}}))}function Ms(e){function i(M){return ul(M,e)}sa!==null&&ul(sa,e),ua!==null&&ul(ua,e),la!==null&&ul(la,e),Ds.forEach(i),Os.forEach(i);for(var a=0;a<oa.length;a++){var l=oa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<oa.length&&(a=oa[0],a.blockedOn===null);)gm(a),a.blockedOn===null&&oa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var h=a[l],m=a[l+1],E=h[ve]||null;if(typeof m=="function")E||ym(a);else if(E){var A=null;if(m&&m.hasAttribute("formAction")){if(h=m,E=m[ve]||null)A=E.formAction;else if(Mc(h)!==null)continue}else A=E.action;typeof A=="function"?a[l+1]=A:(a.splice(l,3),l-=3),ym(a)}}}function Vc(e){this._internalRoot=e}ol.prototype.render=Vc.prototype.render=function(e){var i=this._internalRoot;if(i===null)throw Error(u(409));var a=i.current,l=fi();hm(a,l,e,i,null,null)},ol.prototype.unmount=Vc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var i=e.containerInfo;hm(e.current,2,null,e,null,null),Hu(),i[bi]=null}};function ol(e){this._internalRoot=e}ol.prototype.unstable_scheduleHydration=function(e){if(e){var i=Ws();e={blockedOn:null,target:e,priority:i};for(var a=0;a<oa.length&&i!==0&&i<oa[a].priority;a++);oa.splice(a,0,e),a===0&&gm(e)}};var vm=n.version;if(vm!=="19.1.0")throw Error(u(527,vm,"19.1.0"));nt.findDOMNode=function(e){var i=e._reactInternals;if(i===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=p(i),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var db={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cl.isDisabled&&cl.supportsFiber)try{tt=cl.inject(db),$=cl}catch{}}return Is.createRoot=function(e,i){if(!o(e))throw Error(u(299));var a=!1,l="",h=Vp,m=Bp,E=zp,A=null;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(m=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(A=i.unstable_transitionCallbacks)),i=cm(e,1,!1,null,null,a,l,h,m,E,A,null),e[bi]=i.current,bc(e),new Vc(i)},Is.hydrateRoot=function(e,i,a){if(!o(e))throw Error(u(299));var l=!1,h="",m=Vp,E=Bp,A=zp,M=null,J=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(E=a.onCaughtError),a.onRecoverableError!==void 0&&(A=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(M=a.unstable_transitionCallbacks),a.formState!==void 0&&(J=a.formState)),i=cm(e,1,!0,i,a??null,l,h,m,E,A,M,J),i.context=fm(null),a=i.current,l=fi(),l=Ha(l),h=Jn(l),h.callback=null,Qn(a,h,l),a=l,i.current.lanes=a,De(i,a),en(i),e[bi]=i.current,bc(e),new ol(i)},Is.version="19.1.0",Is}var Cm;function Sb(){if(Cm)return Bc.exports;Cm=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),Bc.exports=vb(),Bc.exports}var kb=Sb();const Eb=Js(kb),wb="modulepreload",Cb=function(t){return"/"+t},Am={},Ab=function(n,r,u){let o=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),x=f?.nonce||f?.getAttribute("nonce");o=Promise.allSettled(r.map(p=>{if(p=Cb(p),p in Am)return;Am[p]=!0;const g=p.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const b=document.createElement("link");if(b.rel=g?"stylesheet":wb,g||(b.as="script"),b.crossOrigin="",b.href=p,x&&b.setAttribute("nonce",x),document.head.appendChild(b),g)return new Promise((k,C)=>{b.addEventListener("load",k),b.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(f){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=f,window.dispatchEvent(x),!x.defaultPrevented)throw f}return o.then(f=>{for(const x of f||[])x.status==="rejected"&&c(x.reason);return n().catch(c)})};var Uc,_m;function Mf(){if(_m)return Uc;_m=1;function t(n){if(!n||typeof n!="object")return n;switch(n.type){case"StringLiteral":n.type="Literal",n.raw=`"${n.value}"`;break;case"NumericLiteral":n.type="Literal",n.raw=String(n.value);break;case"BooleanLiteral":n.type="Literal",n.raw=String(n.value);break;case"NullLiteral":n.type="Literal",n.value=null,n.raw="null";break;case"RegExpLiteral":n.type="Literal",n.value=new RegExp(n.pattern,n.flags),n.regex={pattern:n.pattern,flags:n.flags},n.raw=`/${n.pattern}/${n.flags}`;break;case"BigIntLiteral":n.type="Literal",n.value=BigInt(n.value),n.raw=`${n.value}n`,n.bigint=n.value;break}n.properties&&(n.properties=n.properties.map(r=>{const u=t(r);return r.type==="ObjectProperty"&&(u.type="Property",u.kind="init"),u}));for(const[r,u]of Object.entries(n))r==="type"||u==null||typeof u!="object"||(Array.isArray(u)?n[r]=u.map(o=>t(o)):n[r]=t(u));return n}return Uc={forEscodegen:t},Uc}var _r={},Tm;function Al(){if(Tm)return _r;Tm=1;const{defineProperty:t}=Reflect,n=new Set(["constructor","prototype","__proto__","__defineGetter__"]);return _r.isSafeKey=r=>n.has(r)===!1,_r.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),_r.isEmpty=r=>r==null||Array.isArray(r)&&r.length===0,_r.define=(r,u,o)=>t(r,u,{value:o,enumerable:!1}),_r}var Fc,Nm;function z0(){if(Nm)return Fc;Nm=1;const t=Mf(),n=Al();return Fc=r=>{class u extends r{constructor(...c){super(...c),this.state={},this.generate=this.options.generate}ArrowFunctionExpression(c,f){return this.FunctionExpression(c,f)}CallExpression(c,f,x){const p=this.visit(c.callee,f,c),g=[];if(p===u.FAIL||typeof p!="function")return this.state.fail=!0,u.FAIL;let y=c.callee.object?this.visit(c.callee.object,f,c.callee):null;y===u.FAIL&&(y=null);for(const b of c.arguments){const k=this.visit(b,f,c);if(k===u.FAIL||this.state.fail)return this.state.fail=!0,u.FAIL;b.type==="SpreadElement"?g.push(...k):g.push(k)}if(!this.state.noExecute)return p.apply(y,g)}ExpressionStatement(c,f,x){return this.visit(c.expression,f,x)}FunctionExpression(c,f){const x=typeof f=="function"?f:{...f};for(let b=0;b<c.params.length;b++){const k=c.params[b];if(k.type==="Identifier")x[k.name]=null;else return this.state.fail=!0,u.FAIL}const p=b=>{const k=this.state.noExecute;if(this.state.noExecute=!0,this.visit(b,x,c)===u.FAIL||this.state.fail===!0)return this.state.fail=!0,u.FAIL;this.state.noExecute=k};if(c.body.body){for(const b of c.body.body)if(p(b),this.state.noExecute)return}this.generate&&(c=t.forEscodegen(c));const g=Object.keys(f),y=Object.values(f);if(typeof this.generate!="function")throw new TypeError('Expected options.generate to be the "generate" function from "escodegen"');return Function(g.join(", "),"return "+this.generate(c))(...y)}MemberExpression(c,f){const x=this.visit(c.object,f,c);if(!x||this.state.fail)return u.FAIL;if(c.property.type==="Identifier"&&!c.computed)return n.isSafeKey(c.property.name)?x[c.property.name]:(this.state.fail=!0,u.FAIL);const p=this.visit(c.property,f,c);if(p===null||!n.isSafeKey(p))return;const g=x[p];return typeof g=="function"?g.bind(x):g}NewExpression(c,f){const x=this.visit(c.callee,f,c),p=[];if(x===u.FAIL||this.state.fail||typeof x!="function")return this.state.fail=!0,u.FAIL;for(const g of c.arguments){const y=this.visit(g,f,c);if(y===u.FAIL||this.state.fail)return this.state.fail=!0,u.FAIL;g.type==="SpreadElement"?p.push(...y):p.push(y)}return new x(...p)}OptionalCallExpression(c,f){return this.CallExpression(c,f)}ReturnStatement(c,f){return this.visit(c.argument,f,c)}TaggedTemplateExpression(c,f){const x=this.visit(c.tag,f,c),p=c.quasi.quasis.map(y=>this.visit(y,f,c)),g=c.quasi.expressions.map(y=>this.visit(y,f,c));return x(...[p].concat(g))}}return u},Fc}var jc,Lm;function _b(){if(Lm)return jc;Lm=1;const t=z0(),n=Mf(),r=Al();return jc=u=>{class o extends t(u){AwaitExpression(f,x,p){return this.visit(f.argument,x,p)}async CallExpression(f,x){const p=await this.visit(f.callee,x,f),g=[];if(p===o.FAIL||typeof p!="function")return this.state.fail=!0,o.FAIL;let y=f.callee.object?await this.visit(f.callee.object,x,f.callee):null;y===o.FAIL&&(y=null);for(const b of f.arguments){const k=await this.visit(b,x,f);if(k===o.FAIL)return this.state.fail=!0,o.FAIL;b.type==="SpreadElement"?g.push(...k):g.push(k)}if(!this.state.noExecute)return p.apply(y,g)}async FunctionExpression(f,x){const p=typeof x=="function"?x:{...x};for(let k=0;k<f.params.length;k++){const C=f.params[k];if(C.type==="Identifier")p[C.name]=null;else return this.state.fail=!0,o.FAIL}const g=async k=>{const C=this.state.noExecute;if(this.state.noExecute=!0,await this.visit(k,p,f)===o.FAIL||this.state.fail===!0)return this.state.fail=!0,o.FAIL;this.state.noExecute=C};if(f.body.body){for(const k of f.body.body)if(await g(k),this.state.noExecute)return}this.generate&&(f=n.forEscodegen(f));const y=Object.keys(x),b=Object.values(x);if(typeof this.generate!="function")throw new TypeError('Expected options.generate to be the "generate" function from "escodegen"');return Function(y.join(", "),"return "+this.generate(f))(...b)}async MemberExpression(f,x,p){const g=await this.visit(f.object,x,f);if(!g||this.state.fail)return o.FAIL;if(f.property.type==="Identifier"&&f.computed===!1){if(r.isSafeKey(f.property.name)){const k=g?.[f.property.name];return g!=null&&typeof k=="function"?k.bind(g):k}return this.state.fail=!0,o.FAIL}const y=await this.visit(f.property,x,f);if(y===null||!r.isSafeKey(y))return;const b=g?.[y];return g!=null&&typeof b=="function"?b.bind(g):b}async NewExpression(f,x){const p=await this.visit(f.callee,x,f),g=[];if(p===o.FAIL||this.state.fail||typeof p!="function")return this.state.fail=!0,o.FAIL;for(const y of f.arguments){const b=await this.visit(y,x,f);if(b===o.FAIL||this.state.fail)return this.state.fail=!0,o.FAIL;y.type==="SpreadElement"?g.push(...b):g.push(b)}return new p(...g)}async TaggedTemplateExpression(f,x){const p=await this.visit(f.tag,x,f),g=await Promise.all(f.quasi.quasis.map(b=>this.visit(b,x,f))),y=await Promise.all(f.quasi.expressions.map(b=>this.visit(b,x,f)));return p(...[g].concat(y))}}return o},jc}var qc,Dm;function P0(){return Dm||(Dm=1,qc=(n,r={})=>{const u=[],o=(f,x,p)=>{if(Reflect.defineProperty(f,"parent",{value:p}),x(f,p),f.right&&o(f.right,x,f),f.left&&o(f.left,x,f),f.object&&o(f.object,x,f),f.callee&&o(f.callee,x,f),f.argument&&o(f.argument,x,f),f.property&&o(f.property,x,f),f.alternate&&o(f.alternate,x,f),f.consequent&&o(f.consequent,x,f),f.test&&o(f.test,x,f),f.expressions){const g=f.expressions.length;for(let y=0;y<g;y++)o(f.quasis[y],x,f),o(f.expressions[y],x,f);o(f.quasis[g],x,f);return}f.properties&&c(f.properties,x,f),f.arguments&&c(f.arguments,x,f),f.elements&&c(f.elements,x,f),f.body&&c(f.body,x,f)},c=(f,x,p)=>{for(const g of f)o(g,x,p)};return o(n,(f,x)=>{if(f.type==="Identifier")if(f===x?.property){if(r.withMembers!==!0||u.length===0)return;u.push(`${u.pop()}.${f.name}`)}else u.includes(f.name)||u.push(f.name)}),[...new Set(u)].reverse()}),qc}var Hc,Om;function Tb(){if(Om)return Hc;Om=1;const t=z0(),n=_b(),r=P0(),u=Al(),o=1e4,c=50;class f{static FAIL=Symbol("fail");static ExpressionSync=f;static variables=(p,g)=>r(p,g);static evaluate=(p,g,y)=>new f(p,y).evaluate(g);constructor(p,g={},{created:y=!1}={}){if(this.options={maxExpressionDepth:c,maxArrayLength:o,...g},this.visitors={...this.options.visitors},this.tree=p,this.state={stackDepth:0,expressionDepth:0,seenObjects:new WeakSet,templateLiterals:new Set},this.stack=[],this.seen=new Set,g.functions&&!y){const k=(this.constructor.isAsync?n:t)(this.constructor);return new k(p,g,{created:!0})}}incrementDepth(){if(this.state.expressionDepth++,this.state.expressionDepth>c)throw new RangeError("Maximum expression depth exceeded")}decrementDepth(){this.state.expressionDepth--}visit(p,g,y){this.incrementDepth();try{Reflect.defineProperty(p,"parent",{value:p.parent||y});const b=this.visitors[p.type]||this[p.type];if(typeof b!="function"){const F=`${p.type==="CallExpression"?"Functions are":`visitor "${p.type}" is`} not supported`;throw new TypeError(F)}const k=p.type==="ArrayExpression"||p.type==="ObjectExpression";k&&this.stack.push(p);const C=b.call(this,p,g,y),L=B=>{if(B instanceof Promise)return B.then(F=>L(F));if(k&&this.stack.pop(),!this.state.fail)return B};return L(C)}finally{this.decrementDepth()}}evaluate(p){return this.visit(this.tree,p||{})}isRegExpOperator(p,g){return p.operator==="="&&p.right?.operator==="~"&&this.options.regexOperator!==!1}assignment(p){switch(p.operator){case"=":case"*=":case"**=":case"/=":case"%=":case"+=":case"-=":case"<<=":case">>=":case">>>=":case"&=":case"^=":case"|=":case"&&=":case"||=":case"??=":default:throw new SyntaxError(`Assignment expression "${p.operator}" is not supported`)}}postfix(p,g){switch(p.operator){case"++":return g+1;case"--":return g-1}}prefix(p,g){switch(p.operator){case"++":return g+1;case"--":return g-1}}unset(p,g){const y=this.visit(p.object,g,p),b=k=>{if(u.isObject(k))return Reflect.deleteProperty(k,p.property.name),g[p.object.name]=k,!0};return y instanceof Promise?y.then(k=>b(k)):b(y)}comparison(p,g,y,b,k){const C=this.options.booleanLogicalOperators===!0;if(typeof p=="symbol"||typeof y=="symbol")return this.state.fail=!0,f.FAIL;const L=F=>{if(typeof F=="symbol"){this.state.fail=!0;return}return F},B=()=>L(typeof y=="function"?y():y);if(g==="in"){const F=B();return!this.options.strict&&(typeof F=="string"||Array.isArray(F))?F.includes(p):p in F}switch(k.operator){case"+":return p+B();case"-":return p-B();case"/":return p/B();case"*":return p*B();case"%":return p%B();case"**":return p**B();case"instanceof":return p instanceof B();case"<":return p<B();case">":return p>B();case"<=":return p<=B();case">=":return p>=B();case"!==":return p!==B();case"===":return p===B();case"!=":return p!=B();case"==":return p==B();case"<<":return p<<B();case">>":return p>>B();case">>>":return p>>>B();case"&":return p&B();case"|":return p|B();case"^":return p^B();case"&&":return C?!!(p&&B()):p&&B();case"||":return C?!!(p||B()):p||B();case"??":return C?!!(p??B()):p??B()}}AssignmentExpression(p,g,y){if(this.isRegExpOperator(p,g)){const b=this.visit(p.left,g,p),k=this.visit(p.right.argument,g,p.right);if(k instanceof RegExp)return k.test(b)}try{return this.assignment(p,g,y)}catch{throw new SyntaxError(`Assignment expression "${p.operator}" is not supported`)}}ArrayExpression(p,g,y){const b=[];for(const k of p.elements){if(b.length>=this.options.maxArrayLength)throw new RangeError("Maximum array length exceeded");const C=this.visit(k,g,p);if(this.state.fail||C===f.FAIL)return this.state.fail=!0,f.FAIL;if(k.type==="SpreadElement"){const L=C;if(Array.isArray(L)){if(b.length+L.length>this.options.maxArrayLength)throw new RangeError("Maximum array length exceeded");b.push(...L)}}else b.push(C)}return b}BigIntLiteral(p){return BigInt(p.value)}BinaryExpression(p,g){const y=this.visit(p.left,g,p),b=()=>this.visit(p.right,g,p);return y instanceof Promise?y.then(k=>this.comparison(k,p.operator,b,g,p)):this.comparison(y,p.operator,b,g,p)}BlockStatement(p,g,y){const b=[];for(const k of p.body)b.push(this.visit(k,g,p));return b}BooleanLiteral(p){return p.value}ConditionalExpression(p,g){const{test:y,consequent:b,alternate:k}=p;return this.visit(y,g,p)?this.visit(b,g,p):this.visit(k,g,p)}Identifier(p,g,y){if(!u.isSafeKey(p.name))return;if(g==null&&this.options.strict!==!1)throw new TypeError(`Cannot read property '${p.name}' of undefined`);if(p.name==="undefined"&&this.stack.length===0)return;if(g!=null){if(g[p.name]!==void 0)return g[p.name];if(hasOwnProperty.call(g,p.name))return}const b=()=>{if(this.options.strict!==!1)throw new ReferenceError(`${p.name} is undefined`);return this.state.fail=!0,f.FAIL};if(y?.type==="ObjectProperty"&&y.shorthand===!0||this.stack.some(k=>k.type==="ArrayExpression"||k.type==="ObjectExpression"))return b();if(this.options.strict===!0&&this.options.functions!==!0)throw new TypeError(`Cannot read property '${p.name}' of undefined`)}Literal(p){return p.value}LogicalExpression(p,g,y){return this.BinaryExpression(p,g,y)}MemberExpression(p,g,y){const{computed:b,object:k,property:C,unset:L}=p,B=this.visit(k,g,p)??g[k.name],F=b?g:B;if(!u.isSafeKey(C.name))return this.state.fail=!0,f.FAIL;let I;if(L)I=B;else if(p.optional){const G=z=>this.visit(C,F||{},p);I=C instanceof Promise?C.then(z=>G()):G()}else I=this.visit(C,F,p);if(I==null&&C.name&&F&&(I=F[C.name]),!!u.isSafeKey(I))return b&&B&&I!=null?B[I]:I}NullLiteral(p){return null}NumericLiteral(p){return p.value}ObjectExpression(p,g){const y={};for(const b of p.properties){const{key:k,type:C,value:L}=b;if(C==="SpreadElement")Object.assign(y,this.visit(b,g,p));else{const B=b.computed?this.visit(k,g,b):k.value||k.name;y[B]=this.visit(L,g,b)}}return y}OptionalMemberExpression(p,g){const y=this.visit(p.object,g,p),b=k=>this.visit(p.property,k||{},p);return y instanceof Promise?y.then(k=>b(k)):b(y)}RegExpLiteral(p){return new RegExp(p.pattern,p.flags)}SequenceExpression(p,g,y){const b=p.expressions.length;for(let k=0;k<b-1;k++)this.visit(p.expressions[k],g,p);return this.visit(p.expressions[b-1],g,p)}SpreadElement(p,g){return this.visit(p.argument,g,p)}StringLiteral(p,g){return this.options.allowContextStringLiterals===!0?g[p.value]??p.value:p.value}TemplateElement(p){return p.value.cooked}TemplateLiteral(p,g){const y=p.expressions.length;let b="";for(let k=0;k<y;k++)b+=this.visit(p.quasis[k],g,p),b+=this.visit(p.expressions[k],g,p);return b+=this.visit(p.quasis[y],g,p),b}ThisExpression(p,g){if(!g)throw new TypeError('Cannot read property "this" of undefined');if(Reflect.has(g,"this"))return g.this}UnaryExpression(p,g){const y=p.operator!=="delete"&&this.visit(p.argument,g,p),b=k=>{switch(p.operator){case"delete":return this.unset(p.argument,g,p);case"typeof":return typeof k;case"void":return;case"~":return~k;case"!":return!k;case"+":return+k;case"-":return-k}};return y instanceof Promise?y.then(k=>b(k)):b(y)}UpdateExpression(p,g,y){const b=this.visit(p.argument,g,p),k=C=>{const L=p.prefix?this.prefix(p,C):this.postfix(p,C);return g[p.argument.name]=L,L};return b instanceof Promise?b.then(C=>k(C)):k(b)}}return Hc=f,Hc}var Gc,Rm;function Nb(){if(Rm)return Gc;Rm=1;const t=Tb();Mf();const n=P0(),r=Al();class u extends t{static isAsync=!0;static Expression=u;static ExpressionSync=t;static variables=(c,f)=>n(c,f);static evaluate=(c,f,x)=>new u(c,x).evaluate(f);async evaluate(c){return this.visit(this.tree,c||{})}async comparison(c,f,x,p,g){const y=this.options.booleanLogicalOperators===!0;if(typeof c=="symbol"&&c===u.FAIL)return this.state.fail=!0,u.FAIL;if(typeof x=="symbol"&&x===u.FAIL)return this.state.fail=!0,u.FAIL;const b=C=>{if(typeof C=="symbol"&&C===u.FAIL){this.state.fail=!0;return}return C},k=()=>b(typeof x=="function"?x():x);switch(f){case"+":return c+await k();case"-":return c-await k();case"/":return c/await k();case"*":return c*await k();case"%":return c%await k();case"**":return c**await k();case"<":return c<await k();case">":return c>await k();case"<=":return c<=await k();case">=":return c>=await k();case"instanceof":return c instanceof await k();case"in":{const C=await k();return!this.options.strict&&(typeof C=="string"||Array.isArray(C))?C.includes(c):c in C}case"!==":return c!==await k();case"===":return c===await k();case"!=":return c!=await k();case"==":return c==await k();case"<<":return c<<await k();case">>":return c>>await k();case">>>":return c>>>await k();case"&":return c&await k();case"|":return c|await k();case"^":return c^await k();case"&&":return y?!!(c&&await k()):c&&await k();case"||":return y?!!(c||await k()):c||await k();case"??":return y?!!(c??await k()):c??await k()}}async ArrayExpression(c,f,x){const p=[];for(const g of c.elements){const y=await this.visit(g,f,c);if(y===u.FAIL)return this.state.fail=!0,u.FAIL;g.type==="SpreadElement"?p.push(...y):p.push(y)}return p}async AssignmentExpression(c,f,x){if(this.isRegExpOperator(c,f)){const p=await this.visit(c.left,f,c),g=await this.visit(c.right.argument,f,c.right);if(g instanceof RegExp)return g.test(p)}try{return this.assignment(c,f,x)}catch{throw new SyntaxError(`Assignment expression "${c.operator}" is not supported`)}}async BinaryExpression(c,f){const x=await this.visit(c.left,f,c),p=()=>this.visit(c.right,f,c);return this.comparison(x,c.operator,p,f,c)}async BlockStatement(c,f,x){const p=[];for(const g of c.body)p.push(await this.visit(g,f,c));return p}async ConditionalExpression(c,f){const{test:x,consequent:p,alternate:g}=c;return await this.visit(x,f,c)?await this.visit(p,f,c):await this.visit(g,f,c)}async MemberExpression(c,f,x){const{computed:p,object:g,property:y,unset:b}=c,k=await this.visit(g,f,c)??f[g.name],C=p?f:k;if(!r.isSafeKey(y.name))return this.state.fail=!0,u.FAIL;let L=b?k:await this.visit(y,c.optional?C||{}:C,c);if(L===void 0&&y.name&&C&&(L=C[y.name]),!!r.isSafeKey(L))return p&&k&&L!=null?k[L]:L}async ObjectExpression(c,f){const x={};for(const p of c.properties){const{key:g,type:y,value:b}=p;if(y==="SpreadElement")Object.assign(x,await this.visit(p,f,c));else{const k=p.computed?await this.visit(g,f,p):g.value||g.name;x[k]=await this.visit(b,f,p)}}return x}async SequenceExpression(c,f,x){const p=c.expressions.length;for(let g=0;g<p-1;g++)await this.visit(c.expressions[g],f,c);return this.visit(c.expressions[p-1],f,c)}async TemplateLiteral(c,f){const x=c.expressions.length;let p="";for(let g=0;g<x;g++)p+=await this.visit(c.quasis[g],f,c),p+=await this.visit(c.expressions[g],f,c);return p+=await this.visit(c.quasis[x],f,c),p}async YieldExpression(c,f){throw new SyntaxError("YieldExpression is not supported yet")}}return u.evaluate.sync=(...o)=>t.evaluate(...o),Gc=u,Gc}var Jc,Mm;function Lb(){return Mm||(Mm=1,Jc=Nb()),Jc}var Db=Lb();const Qc=Js(Db),Ob=t=>()=>{};function Rb(){return _n.useSyncExternalStore(Ob,()=>!0,()=>!1)}class Mb extends _n.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n,r){console.error(`Error loading ESM component ${this.props.componentName}:`,n,r)}render(){return this.state.hasError?null:this.props.children}}function Im({importUrl:t,componentName:n,...r}){const u=Rb();if(t)try{const f=new URL(t).origin;Sm.prefetchDNS(f),Sm.preconnect(f)}catch{}const[o]=_n.useState(()=>typeof window>"u"?null:_n.lazy(async()=>{try{const c=await import(t),f=c[n]||c.default;if(!f)throw new Error(`Component "${n}" not found in module ${t}`);return{default:f}}catch(c){throw console.error(`Failed to load ESM component from ${t}:`,c),c}}));return!u||!o?null:ha.jsx(Mb,{componentName:n,children:ha.jsx(_n.Suspense,{fallback:null,children:ha.jsx(o,{...r})})})}function Ib(t){try{return new URL(t).protocol==="https:"}catch{return!1}}function Vb(t,n){const r=new Map;if(!t.data?.estree)return r;try{const u=t.data.estree;for(const o of u.body)if(o.type==="ImportDeclaration"&&o.source.value&&typeof o.source.value=="string"){const c=o.source.value;if(!Ib(c)){n({message:`Invalid import URL: "${c}". Only HTTPS URLs are allowed for security reasons.`,line:t.position?.start?.line});continue}for(const f of o.specifiers)if(f.type==="ImportDefaultSpecifier")r.set(f.local.name,c);else if(f.type==="ImportSpecifier"){const x=f.imported.type==="Identifier"?f.imported.name:String(f.imported.value);r.set(f.local.name,`${c}#${x}`)}}}catch(u){n({message:`Failed to parse ESM import: ${u instanceof Error?u.message:"Unknown error"}`,line:t.position?.start?.line})}return r}function Xc(t){const[n,r]=t.includes("#")?t.split("#"):[t,"default"];return{importUrl:n,componentName:r}}const Bb=Nr.lazy(()=>Ab(()=>import("./HtmlToJsxConverter-Ds0bTjpw.js"),__vite__mapDeps([0,1,2,3])).then(t=>({default:t.HtmlToJsxConverter}))),zb=Nr.memo(function({components:n,markdown:r="",mdast:u=null,renderNode:o,componentPropsSchema:c,createElement:f,allowClientEsmImports:x=!1,addMarkdownLineNumbers:p=!1}){return new Pb({markdown:r,mdast:u,components:n,renderNode:o,componentPropsSchema:c,createElement:f,allowClientEsmImports:x,addMarkdownLineNumbers:p}).run()});class Pb{mdast;str;jsxStr="";c;errors=[];renderNode;componentPropsSchema;createElement;esmImports=new Map;allowClientEsmImports;addMarkdownLineNumbers;constructor({markdown:n="",mdast:r,components:u={},renderNode:o,componentPropsSchema:c,createElement:f=Nr.createElement,allowClientEsmImports:x=!1,addMarkdownLineNumbers:p=!1}){this.str=n,this.mdast=r,this.renderNode=o,this.componentPropsSchema=c,this.createElement=f,this.allowClientEsmImports=x,this.addMarkdownLineNumbers=p,this.c={...Object.fromEntries(Ub.map(g=>[g,g])),...u}}addLineNumberToProps(n,r){if(!this.addMarkdownLineNumbers)return n||{};const u=r.position?.start?.line;return u?{...n,"data-markdown-line":u}:n||{}}validateComponentProps(n,r,u){if(!this.componentPropsSchema||!this.componentPropsSchema[n])return;let c=this.componentPropsSchema[n]["~standard"].validate(r);c instanceof Promise||c.issues&&c.issues.forEach(f=>{const x=f.path?.join(".")||"unknown";this.errors.push({message:`Invalid props for component "${n}" at "${x}": ${f.message}`,line:u,schemaPath:f.path?.join(".")})})}mapMdastChildren(n){const r=n.children?.flatMap(u=>this.mdastTransformer(u)).filter(Boolean);return Array.isArray(r)?r.length?r.length===1?r[0]:r.map((u,o)=>Nr.isValidElement(u)?_n.cloneElement(u,{key:o}):u):null:r||null}mapJsxChildren(n){const r=n.children?.flatMap((u,o)=>this.jsxTransformer(u)).filter(Boolean);return Array.isArray(r)?r.length?r.length===1?r[0]:r.map((u,o)=>Nr.isValidElement(u)?_n.cloneElement(u,{key:o}):u):null:r||null}jsxTransformer(n){if(!n)return[];switch(n.type){case"mdxJsxTextElement":case"mdxJsxFlowElement":{if(!n.name)return[];const r=this.allowClientEsmImports?this.esmImports.get(n.name):null;let u;if(r){const{importUrl:f,componentName:x}=Xc(r);u=Im;let p=this.getJsxAttrs(n,y=>{this.errors.push(y)}),g=Object.fromEntries(p);return this.createElement(u,this.addLineNumberToProps({...g,importUrl:f,componentName:x},n),this.mapJsxChildren(n))}else if(u=Vm(this.c,n.name),!u)return this.errors.push({message:`Unsupported jsx component ${n.name}`,line:n.position?.start?.line}),null;let o=this.getJsxAttrs(n,f=>{this.errors.push(f)}),c=Object.fromEntries(o);return this.validateComponentProps(n.name,c,n.position?.start?.line),this.createElement(u,this.addLineNumberToProps(c,n),this.mapJsxChildren(n))}default:return this.mdastTransformer(n)}}transformJsxElement(n,r,u){try{if(n.openingElement){const o=n.openingElement.name?.type==="JSXIdentifier"?n.openingElement.name.name:null;if(!o)return r?.({message:"JSX element missing component name",line:u}),null;const c=this.allowClientEsmImports?this.esmImports.get(o):null;let f;if(c){const{importUrl:g,componentName:y}=Xc(c);f=Im}else if(f=Vm(this.c,o),!f)return r?.({message:`Unsupported jsx component ${o} in attribute`,line:u}),null;const x={};if(n.openingElement.attributes)for(const g of n.openingElement.attributes)g.type==="JSXAttribute"&&g.name?.type==="JSXIdentifier"&&g.name.name&&(g.value?g.value.type==="Literal"?x[g.name.name]=g.value.value:g.value.type==="JSXExpressionContainer"&&g.value.expression.type==="Literal"&&(x[g.name.name]=g.value.expression.value):x[g.name.name]=!0);const p=[];if(n.children){for(const g of n.children)if(g.type==="JSXText")p.push(g.value);else if(g.type==="JSXElement"){const y=this.transformJsxElement(g);y&&p.push(y)}}if(c){const{importUrl:g,componentName:y}=Xc(c);return this.createElement(f,{...x,importUrl:g,componentName:y},...p)}else return this.createElement(f,x,...p)}}catch(o){return r?.({message:`Failed to transform JSX element: ${o instanceof Error?o.message:"Unknown error"}`,line:u}),null}return null}getJsxAttrs(n,r=console.error){let u=[];for(const o of n.attributes){if(o.type==="mdxJsxExpressionAttribute"){if(o.data?.estree)try{const f=o.data.estree;if(f.body?.length>0&&f.body[0].type==="ExpressionStatement"){const x=f.body[0].expression;try{const p=Qc.evaluate.sync(x);if(typeof p=="object"&&p!=null){const g=Object.entries(p);u.push(...g)}}catch(p){r({message:`Failed to evaluate expression attribute: ${o.value.replace(/\n+/g," ").replace(/ +/g," ")}. ${p instanceof Error?p.message:String(p)}`,line:o.position?.start?.line})}}}catch(f){r({message:`Failed to evaluate expression attribute: ${o.value.replace(/\n+/g," ").replace(/ +/g," ")}. ${f instanceof Error?f.message:String(f)}`,line:o.position?.start?.line})}else r({message:`Expressions in jsx props are not supported (${o.value.replace(/\n+/g," ").replace(/ +/g," ")})`,line:o.position?.start?.line});continue}if(o.type!=="mdxJsxAttribute"){r({message:`non mdxJsxAttribute attribute is not supported: ${o}`,line:n.position?.start?.line});continue}const c=o.value;if(typeof c=="string"||typeof c=="number"){u.push([o.name,c]);continue}if(c===null){u.push([o.name,!0]);continue}if(c?.type==="mdxJsxAttributeValueExpression"){if(c.value==="true"){u.push([o.name,!0]);continue}if(c.value==="false"){u.push([o.name,!1]);continue}if(c.value==="null"){u.push([o.name,null]);continue}if(c.value==="undefined"){u.push([o.name,void 0]);continue}if(c.data?.estree)try{const f=c.data.estree;if(f.body?.length>0&&f.body[0].type==="ExpressionStatement"){const x=f.body[0].expression;if(x.type==="JSXElement"){const p=this.transformJsxElement(x,r,o.position?.start?.line);if(p){u.push([o.name,p]);continue}}try{const p=Qc.evaluate.sync(x);u.push([o.name,p]);continue}catch(p){r({message:`Failed to evaluate expression attribute: ${o.name}={${c.value}}. ${p instanceof Error?p.message:String(p)}`,line:o.position?.start?.line})}}}catch{}r({message:`Expressions in jsx prop not evaluated: (${o.name}={${c.value}})`,line:o.position?.start?.line})}}return u}run(){const n=this.mdastTransformer(this.mdast);return Array.isArray(n)&&n.length===1?n[0]:n}mdastTransformer(n){if(!n)return[];if(this.renderNode){const r=this.renderNode(n,this.mdastTransformer.bind(this));if(r!==void 0)return r}switch(n.type){case"mdxjsEsm":return this.allowClientEsmImports&&Vb(n,u=>this.errors.push(u)).forEach((u,o)=>{this.esmImports.set(o,u)}),[];case"mdxJsxTextElement":case"mdxJsxFlowElement":{const r=n.position?.start?.offset,u=n.position?.end?.offset,o=this.str.slice(r,u);try{this.jsxStr=o;const c=this.jsxTransformer(n);if(Array.isArray(c))console.log("Unexpected array result");else if(c)return c}finally{this.jsxStr=""}return[]}case"mdxFlowExpression":case"mdxTextExpression":{if(!n.value)return[];if(n.data?.estree)try{const r=n.data.estree;if(r.body?.length>0&&r.body[0].type==="ExpressionStatement"){const u=r.body[0].expression;try{return Qc.evaluate.sync(u)}catch(o){this.errors.push({message:`Failed to evaluate expression: ${n.value}. ${o instanceof Error?o.message:String(o)}`,line:n.position?.start?.line})}}}catch(r){this.errors.push({message:`Failed to evaluate expression: ${n.value}. ${r instanceof Error?r.message:String(r)}`,line:n.position?.start?.line})}return[]}case"yaml":return n.value?[]:[];case"heading":{const r=n.depth,u=this.c[`h${r}`]??`h${r}`;return this.createElement(u,this.addLineNumberToProps(n.data?.hProperties,n),this.mapMdastChildren(n))}case"paragraph":return this.createElement(this.c.p,this.addLineNumberToProps(n.data?.hProperties,n),this.mapMdastChildren(n));case"blockquote":return this.createElement(this.c.blockquote,this.addLineNumberToProps(n.data?.hProperties,n),this.mapMdastChildren(n));case"thematicBreak":return this.createElement(this.c.hr,this.addLineNumberToProps(n.data?.hProperties,n));case"code":{if(!n.value)return[];const r=n.lang||"",u=n.value,o=c=>this.createElement(this.c.pre,this.addLineNumberToProps(n.data?.hProperties,n),this.createElement(this.c.code,{className:c},u));return r?o(`language-${r}`):o()}case"list":return n.ordered?this.createElement(this.c.ol,this.addLineNumberToProps({start:n.start,...n.data?.hProperties},n),this.mapMdastChildren(n)):this.createElement(this.c.ul,this.addLineNumberToProps(n.data?.hProperties,n),this.mapMdastChildren(n));case"listItem":return n?.checked!=null?this.createElement(this.c.li,this.addLineNumberToProps({"data-checked":n.checked,...n.data?.hProperties},n),this.mapMdastChildren(n)):this.createElement(this.c.li,this.addLineNumberToProps(n.data?.hProperties,n),this.mapMdastChildren(n));case"text":return n.value?n.data?.hProperties?this.createElement(this.c.span,this.addLineNumberToProps(n.data.hProperties,n),n.value):n.value:[];case"image":{const r=n.url||"",u=n.alt||"",o=n.title||"";return this.createElement(this.c.img,this.addLineNumberToProps({src:r,alt:u,title:o,...n.data?.hProperties},n))}case"link":{const r=n.url||"",u=n.title||"";return this.createElement(this.c.a,this.addLineNumberToProps({href:r,title:u,...n.data?.hProperties},n),this.mapMdastChildren(n))}case"strong":return this.createElement(this.c.strong,this.addLineNumberToProps(n.data?.hProperties,n),this.mapMdastChildren(n));case"emphasis":return this.createElement(this.c.em,this.addLineNumberToProps(n.data?.hProperties,n),this.mapMdastChildren(n));case"delete":return this.createElement(this.c.del,this.addLineNumberToProps(n.data?.hProperties,n),this.mapMdastChildren(n));case"inlineCode":return n.value?this.createElement(this.c.code,this.addLineNumberToProps(n.data?.hProperties,n),n.value):[];case"break":return this.createElement(this.c.br,this.addLineNumberToProps(n.data?.hProperties,n));case"root":return n.data?.hProperties?this.createElement(this.c.div,this.addLineNumberToProps(n.data.hProperties,n),this.mapMdastChildren(n)):this.createElement(_n.Fragment,null,this.mapMdastChildren(n));case"table":{const[r,...u]=Nr.Children.toArray(this.mapMdastChildren(n));return this.createElement(this.c.table,this.addLineNumberToProps(n.data?.hProperties,n),r&&this.createElement(this.c.thead,null,r),!!u?.length&&this.createElement(this.c.tbody,null,u))}case"tableRow":return this.createElement(this.c.tr,this.addLineNumberToProps({className:"",...n.data?.hProperties},n),this.mapMdastChildren(n));case"tableCell":{let r=this.mapMdastChildren(n);return this.createElement(this.c.td,this.addLineNumberToProps({className:"",...n.data?.hProperties},n),r)}case"definition":return[];case"linkReference":{let r="",u="";return Bm(this.mdast,o=>{o.type==="definition"&&o.identifier===n.identifier&&(r=o.url||"",u=o.title||"")}),this.createElement(this.c.a,this.addLineNumberToProps({href:r,title:u,...n.data?.hProperties},n),this.mapMdastChildren(n))}case"footnoteReference":return[];case"footnoteDefinition":return[];case"html":{const r=n.position?.start?.offset,u=n.position?.end?.offset,o=this.str.slice(r,u);return o?this.createElement(_n.Suspense,{fallback:null},this.createElement(Bb,{htmlText:o,instance:this,node:n})):[]}case"imageReference":return[];default:throw Bm(n,r=>{delete r.position}),new Error("cannot convert node"+JSON.stringify(n,null,2))}}}function Vm(t,n){return n.split(".").map(r=>r.trim()).filter(Boolean).reduce((r,u)=>r[u],t)}function Bm(t,n){const r=[t],u=[];for(;r.length;){const o=r.shift();let c=n&&o?n(o):o;Array.isArray(c)?r.push(...c):c&&u.push(c),o&&"children"in o&&o.children&&r.push(...o.children)}return u}const Ub=["blockquote","strong","em","del","hr","a","b","br","button","div","form","h1","h2","h3","h4","head","iframe","img","input","label","li","link","ol","p","path","picture","script","section","source","span","sub","sup","svg","table","tbody","td","tfoot","th","thead","tr","ul","video","code","pre","figure","canvas","details","dl","dt","dd","fieldset","footer","header","legend","main","mark","nav","progress","summary","time"];const qi=xa(/[A-Za-z]/),Gi=xa(/[\dA-Za-z]/),Fb=xa(/[#-'*+\--9=?A-Z^-~]/);function yf(t){return t!==null&&(t<32||t===127)}const vf=xa(/\d/),jb=xa(/[\dA-Fa-f]/),qb=xa(/[!-/:-@[-`{-~]/);function gt(t){return t!==null&&t<-2}function xe(t){return t!==null&&(t<0||t===32)}function Ot(t){return t===-2||t===-1||t===32}const If=xa(/\p{P}|\p{S}/u),ji=xa(/\s/);function xa(t){return n;function n(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}var Yc={exports:{}},zm;function Hb(){return zm||(zm=1,function(t){(function(){var n;n=t.exports=o,n.format=o,n.vsprintf=u,typeof console<"u"&&typeof console.log=="function"&&(n.printf=r);function r(){console.log(o.apply(null,arguments))}function u(c,f){return o.apply(null,[c].concat(f))}function o(c){for(var f=1,x=[].slice.call(arguments),p=0,g=c.length,y="",b,k=!1,C,L,B=!1,F,I=function(){return x[f++]},G=function(){for(var z="";/\d/.test(c[p]);)z+=c[p++],b=c[p];return z.length>0?parseInt(z):null};p<g;++p)if(b=c[p],k)switch(k=!1,b=="."?(B=!1,b=c[++p]):b=="0"&&c[p+1]=="."?(B=!0,p+=2,b=c[p]):B=!0,F=G(),b){case"b":y+=parseInt(I(),10).toString(2);break;case"c":C=I(),typeof C=="string"||C instanceof String?y+=C:y+=String.fromCharCode(parseInt(C,10));break;case"d":y+=parseInt(I(),10);break;case"f":L=String(parseFloat(I()).toFixed(F||6)),y+=B?L:L.replace(/^0/,"");break;case"j":y+=JSON.stringify(I());break;case"o":y+="0"+parseInt(I(),10).toString(8);break;case"s":y+=I();break;case"x":y+="0x"+parseInt(I(),10).toString(16);break;case"X":y+="0x"+parseInt(I(),10).toString(16).toUpperCase();break;default:y+=b;break}else b==="%"?k=!0:y+=b;return y}})()}(Yc)),Yc.exports}var Gb=Hb();const Jb=Js(Gb),fl=Object.assign(Ua(Error),{eval:Ua(EvalError),range:Ua(RangeError),reference:Ua(ReferenceError),syntax:Ua(SyntaxError),type:Ua(TypeError),uri:Ua(URIError)});function Ua(t){return n.displayName=t.displayName||t.name,n;function n(r,...u){const o=r&&Jb(r,...u);return new t(o)}}const hl={}.hasOwnProperty,Pm={yaml:"-",toml:"+"};function Vf(t){const n=[];let r=-1;const u=Array.isArray(t)?t:t?[t]:["yaml"];for(;++r<u.length;)n[r]=Qb(u[r]);return n}function Qb(t){let n=t;if(typeof n=="string"){if(!hl.call(Pm,n))throw fl("Missing matter definition for `%s`",n);n={type:n,marker:Pm[n]}}else if(typeof n!="object")throw fl("Expected matter to be an object, not `%j`",n);if(!hl.call(n,"type"))throw fl("Missing `type` in matter `%j`",n);if(!hl.call(n,"fence")&&!hl.call(n,"marker"))throw fl("Missing `marker` or `fence` in matter `%j`",n);return n}function Xb(t){const n=Vf(t),r={};let u=-1;for(;++u<n.length;){const o=n[u],c=Sf(o,"open").charCodeAt(0),f=Yb(o),x=r[c];Array.isArray(x)?x.push(f):r[c]=[f]}return{flow:r}}function Yb(t){const n=t.anywhere,r=t.type,u=r+"Fence",o=u+"Sequence",c=r+"Value",f={tokenize:y,partial:!0};let x,p=0;return{tokenize:g,concrete:!0};function g(b,k,C){const L=this;return B;function B(R){const X=L.now();return X.column===1&&(X.line===1||n)&&(x=Sf(t,"open"),p=0,R===x.charCodeAt(p))?(b.enter(r),b.enter(u),b.enter(o),F(R)):C(R)}function F(R){return p===x.length?(b.exit(o),Ot(R)?(b.enter("whitespace"),I(R)):G(R)):R===x.charCodeAt(p++)?(b.consume(R),F):C(R)}function I(R){return Ot(R)?(b.consume(R),I):(b.exit("whitespace"),G(R))}function G(R){return gt(R)?(b.exit(u),b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),x=Sf(t,"close"),p=0,b.attempt(f,v,z)):C(R)}function z(R){return R===null||gt(R)?V(R):(b.enter(c),W(R))}function W(R){return R===null||gt(R)?(b.exit(c),V(R)):(b.consume(R),W)}function V(R){return R===null?C(R):(b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),b.attempt(f,v,z))}function v(R){return b.exit(r),k(R)}}function y(b,k,C){let L=0;return B;function B(z){return z===x.charCodeAt(L)?(b.enter(u),b.enter(o),F(z)):C(z)}function F(z){return L===x.length?(b.exit(o),Ot(z)?(b.enter("whitespace"),I(z)):G(z)):z===x.charCodeAt(L++)?(b.consume(z),F):C(z)}function I(z){return Ot(z)?(b.consume(z),I):(b.exit("whitespace"),G(z))}function G(z){return z===null||gt(z)?(b.exit(u),k(z)):C(z)}}}function Sf(t,n){return t.marker?Um(t.marker,n).repeat(3):Um(t.fence,n)}function Um(t,n){return typeof t=="string"?t:t[n]}function U0(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Zb(t){const n=Vf(t),r={},u={};let o=-1;for(;++o<n.length;){const c=n[o];r[c.type]=Kb(c),u[c.type]=Wb,u[c.type+"Value"]=$b}return{enter:r,exit:u}}function Kb(t){return n;function n(r){this.enter({type:t.type,value:""},r),this.buffer()}}function Wb(t){const n=this.resume(),r=this.stack[this.stack.length-1];this.exit(t),r.value=n.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function $b(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}function ty(t){const n=[],r={},u=Vf(t);let o=-1;for(;++o<u.length;){const c=u[o];r[c.type]=ey(c);const f=kf(c,"open");n.push({atBreak:!0,character:f.charAt(0),after:U0(f.charAt(1))})}return{unsafe:n,handlers:r}}function ey(t){const n=kf(t,"open"),r=kf(t,"close");return u;function u(o){return n+(o.value?`
|
|
27
|
+
`+o.value:"")+`
|
|
28
|
+
`+r}}function kf(t,n){return t.marker?Fm(t.marker,n).repeat(3):Fm(t.fence,n)}function Fm(t,n){return typeof t=="string"?t:t[n]}const iy="yaml";function ny(t){const n=this,r=t||iy,u=n.data(),o=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);o.push(Xb(r)),c.push(Zb(r)),f.push(ty(r))}const ay=/\s+/g,ry=/[\t\n\v\f\r ]+/g;function sy(t,n){n?typeof n=="string"&&(n={style:n}):n={};const r=n.preserveLineEndings?uy:ly;return String(t).replace(n.style==="html"?ry:ay,n.trim?oy(r):r)}function uy(t){const n=/\r?\n|\r/.exec(t);return n?n[0]:" "}function ly(){return" "}function oy(t){return n;function n(r,u,o){return u===0||u+r.length===o.length?"":t(r)}}const _l=function(t){if(t==null)return py;if(typeof t=="function")return Tl(t);if(typeof t=="object")return Array.isArray(t)?cy(t):fy(t);if(typeof t=="string")return hy(t);throw new Error("Expected function, string, or object as test")};function cy(t){const n=[];let r=-1;for(;++r<t.length;)n[r]=_l(t[r]);return Tl(u);function u(...o){let c=-1;for(;++c<n.length;)if(n[c].apply(this,o))return!0;return!1}}function fy(t){const n=t;return Tl(r);function r(u){const o=u;let c;for(c in t)if(o[c]!==n[c])return!1;return!0}}function hy(t){return Tl(n);function n(r){return r&&r.type===t}}function Tl(t){return n;function n(r,u,o){return!!(dy(r)&&t.call(this,r,typeof u=="number"?u:void 0,o||void 0))}}function py(){return!0}function dy(t){return t!==null&&typeof t=="object"&&"type"in t}const F0=[],my=!0,Ef=!1,xy="skip";function j0(t,n,r,u){let o;typeof n=="function"&&typeof r!="function"?(u=r,r=n):o=n;const c=_l(o),f=u?-1:1;x(t,void 0,[])();function x(p,g,y){const b=p&&typeof p=="object"?p:{};if(typeof b.type=="string"){const C=typeof b.tagName=="string"?b.tagName:typeof b.name=="string"?b.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(p.type+(C?"<"+C+">":""))+")"})}return k;function k(){let C=F0,L,B,F;if((!n||c(p,g,y[y.length-1]||void 0))&&(C=gy(r(p,y)),C[0]===Ef))return C;if("children"in p&&p.children){const I=p;if(I.children&&C[0]!==xy)for(B=(u?I.children.length:-1)+f,F=y.concat(I);B>-1&&B<I.children.length;){const G=I.children[B];if(L=x(G,B,F)(),L[0]===Ef)return L;B=typeof L[1]=="number"?L[1]:B+f}}return C}}}function gy(t){return Array.isArray(t)?t:typeof t=="number"?[my,t]:t==null?F0:[t]}function q0(t,n,r,u){let o,c,f;typeof n=="function"?(c=void 0,f=n,o=r):(c=n,f=r,o=u),j0(t,c,x,o);function x(p,g){const y=g[g.length-1],b=y?y.children.indexOf(p):void 0;return f(p,b,y)}}const by={};function Bf(t,n){const r=by,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return H0(t,u,o)}function H0(t,n,r){if(yy(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(n&&"alt"in t&&t.alt)return t.alt;if("children"in t)return jm(t.children,n,r)}return Array.isArray(t)?jm(t,n,r):""}function jm(t,n,r){const u=[];let o=-1;for(;++o<t.length;)u[o]=H0(t[o],n,r);return u.join("")}function yy(t){return!!(t&&typeof t=="object")}const qm=document.createElement("i");function Fs(t){const n="&"+t+";";qm.innerHTML=n;const r=qm.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===n?!1:r}function Nn(t,n,r,u){const o=t.length;let c=0,f;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,r=r>0?r:0,u.length<1e4)f=Array.from(u),f.unshift(n,r),t.splice(...f);else for(r&&t.splice(n,r);c<u.length;)f=u.slice(c,c+1e4),f.unshift(n,0),t.splice(...f),c+=1e4,n+=1e4}function Ni(t,n){return t.length>0?(Nn(t,t.length,0,n),t):n}function ml(t,n,r,u){const o=t.length;let c=0,f;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,r=r>0?r:0,u.length<1e4)f=Array.from(u),f.unshift(n,r),t.splice(...f);else for(r&&t.splice(n,r);c<u.length;)f=u.slice(c,c+1e4),f.unshift(n,0),t.splice(...f),c+=1e4,n+=1e4}const Hm={}.hasOwnProperty;function zf(t){const n={};let r=-1;for(;++r<t.length;)vy(n,t[r]);return n}function vy(t,n){let r;for(r in n){const o=(Hm.call(t,r)?t[r]:void 0)||(t[r]={}),c=n[r];let f;if(c)for(f in c){Hm.call(o,f)||(o[f]=[]);const x=c[f];Sy(o[f],Array.isArray(x)?x:x?[x]:[])}}}function Sy(t,n){let r=-1;const u=[];for(;++r<n.length;)(n[r].add==="after"?t:u).push(n[r]);ml(t,0,0,u)}function G0(t,n){const r=Number.parseInt(t,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function da(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function ae(t,n,r,u){const o=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return Ot(p)?(t.enter(r),x(p)):n(p)}function x(p){return Ot(p)&&c++<o?(t.consume(p),x):(t.exit(r),n(p))}}const ky={tokenize:Ey};function Ey(t){const n=t.attempt(this.parser.constructs.contentInitial,u,o);let r;return n;function u(x){if(x===null){t.consume(x);return}return t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),ae(t,n,"linePrefix")}function o(x){return t.enter("paragraph"),c(x)}function c(x){const p=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,f(x)}function f(x){if(x===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(x);return}return gt(x)?(t.consume(x),t.exit("chunkText"),c):(t.consume(x),f)}}const wy={tokenize:Cy},Gm={tokenize:Ay};function Cy(t){const n=this,r=[];let u=0,o,c,f;return x;function x(z){if(u<r.length){const W=r[u];return n.containerState=W[1],t.attempt(W[0].continuation,p,g)(z)}return g(z)}function p(z){if(u++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&G();const W=n.events.length;let V=W,v;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){v=n.events[V][1].end;break}I(u);let R=W;for(;R<n.events.length;)n.events[R][1].end={...v},R++;return Nn(n.events,V+1,0,n.events.slice(W)),n.events.length=R,g(z)}return x(z)}function g(z){if(u===r.length){if(!o)return k(z);if(o.currentConstruct&&o.currentConstruct.concrete)return L(z);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},t.check(Gm,y,b)(z)}function y(z){return o&&G(),I(u),k(z)}function b(z){return n.parser.lazy[n.now().line]=u!==r.length,f=n.now().offset,L(z)}function k(z){return n.containerState={},t.attempt(Gm,C,L)(z)}function C(z){return u++,r.push([n.currentConstruct,n.containerState]),k(z)}function L(z){if(z===null){o&&G(),I(0),t.consume(z);return}return o=o||n.parser.flow(n.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),B(z)}function B(z){if(z===null){F(t.exit("chunkFlow"),!0),I(0),t.consume(z);return}return gt(z)?(t.consume(z),F(t.exit("chunkFlow")),u=0,n.interrupt=void 0,x):(t.consume(z),B)}function F(z,W){const V=n.sliceStream(z);if(W&&V.push(null),z.previous=c,c&&(c.next=z),c=z,o.defineSkip(z.start),o.write(V),n.parser.lazy[z.start.line]){let v=o.events.length;for(;v--;)if(o.events[v][1].start.offset<f&&(!o.events[v][1].end||o.events[v][1].end.offset>f))return;const R=n.events.length;let X=R,rt,q;for(;X--;)if(n.events[X][0]==="exit"&&n.events[X][1].type==="chunkFlow"){if(rt){q=n.events[X][1].end;break}rt=!0}for(I(u),v=R;v<n.events.length;)n.events[v][1].end={...q},v++;Nn(n.events,X+1,0,n.events.slice(R)),n.events.length=v}}function I(z){let W=r.length;for(;W-- >z;){const V=r[W];n.containerState=V[1],V[0].exit.call(n,t)}r.length=z}function G(){o.write([null]),c=void 0,o=void 0,n.containerState._closeFlow=void 0}}function Ay(t,n,r){return ae(t,t.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bl(t){if(t===null||xe(t)||ji(t))return 1;if(If(t))return 2}function Pf(t,n,r){const u=[];let o=-1;for(;++o<t.length;){const c=t[o].resolveAll;c&&!u.includes(c)&&(n=c(n,r),u.push(c))}return n}const wf={name:"attention",resolveAll:_y,tokenize:Ty};function _y(t,n){let r=-1,u,o,c,f,x,p,g,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(u=r;u--;)if(t[u][0]==="exit"&&t[u][1].type==="attentionSequence"&&t[u][1]._open&&n.sliceSerialize(t[u][1]).charCodeAt(0)===n.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[u][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[u][1].end.offset-t[u][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;p=t[u][1].end.offset-t[u][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const b={...t[u][1].end},k={...t[r][1].start};Jm(b,-p),Jm(k,p),f={type:p>1?"strongSequence":"emphasisSequence",start:b,end:{...t[u][1].end}},x={type:p>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:k},c={type:p>1?"strongText":"emphasisText",start:{...t[u][1].end},end:{...t[r][1].start}},o={type:p>1?"strong":"emphasis",start:{...f.start},end:{...x.end}},t[u][1].end={...f.start},t[r][1].start={...x.end},g=[],t[u][1].end.offset-t[u][1].start.offset&&(g=Ni(g,[["enter",t[u][1],n],["exit",t[u][1],n]])),g=Ni(g,[["enter",o,n],["enter",f,n],["exit",f,n],["enter",c,n]]),g=Ni(g,Pf(n.parser.constructs.insideSpan.null,t.slice(u+1,r),n)),g=Ni(g,[["exit",c,n],["enter",x,n],["exit",x,n],["exit",o,n]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,g=Ni(g,[["enter",t[r][1],n],["exit",t[r][1],n]])):y=0,Nn(t,u-1,r-u+3,g),r=u+g.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function Ty(t,n){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,o=bl(u);let c;return f;function f(p){return c=p,t.enter("attentionSequence"),x(p)}function x(p){if(p===c)return t.consume(p),x;const g=t.exit("attentionSequence"),y=bl(p),b=!y||y===2&&o||r.includes(p),k=!o||o===2&&y||r.includes(u);return g._open=!!(c===42?b:b&&(o||!k)),g._close=!!(c===42?k:k&&(y||!b)),n(p)}}function Jm(t,n){t.column+=n,t.offset+=n,t._bufferIndex+=n}const Ny={name:"autolink",tokenize:Ly};function Ly(t,n,r){let u=0;return o;function o(C){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),c}function c(C){return qi(C)?(t.consume(C),f):C===64?r(C):g(C)}function f(C){return C===43||C===45||C===46||Gi(C)?(u=1,x(C)):g(C)}function x(C){return C===58?(t.consume(C),u=0,p):(C===43||C===45||C===46||Gi(C))&&u++<32?(t.consume(C),x):(u=0,g(C))}function p(C){return C===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),n):C===null||C===32||C===60||yf(C)?r(C):(t.consume(C),p)}function g(C){return C===64?(t.consume(C),y):Fb(C)?(t.consume(C),g):r(C)}function y(C){return Gi(C)?b(C):r(C)}function b(C){return C===46?(t.consume(C),u=0,y):C===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(C),t.exit("autolinkMarker"),t.exit("autolink"),n):k(C)}function k(C){if((C===45||Gi(C))&&u++<63){const L=C===45?k:b;return t.consume(C),L}return r(C)}}const Nl={partial:!0,tokenize:Dy};function Dy(t,n,r){return u;function u(c){return Ot(c)?ae(t,o,"linePrefix")(c):o(c)}function o(c){return c===null||gt(c)?n(c):r(c)}}const J0={continuation:{tokenize:Ry},exit:My,name:"blockQuote",tokenize:Oy};function Oy(t,n,r){const u=this;return o;function o(f){if(f===62){const x=u.containerState;return x.open||(t.enter("blockQuote",{_container:!0}),x.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(f),t.exit("blockQuoteMarker"),c}return r(f)}function c(f){return Ot(f)?(t.enter("blockQuotePrefixWhitespace"),t.consume(f),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),n):(t.exit("blockQuotePrefix"),n(f))}}function Ry(t,n,r){const u=this;return o;function o(f){return Ot(f)?ae(t,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return t.attempt(J0,n,r)(f)}}function My(t){t.exit("blockQuote")}const Q0={name:"characterEscape",tokenize:Iy};function Iy(t,n,r){return u;function u(c){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(c),t.exit("escapeMarker"),o}function o(c){return qb(c)?(t.enter("characterEscapeValue"),t.consume(c),t.exit("characterEscapeValue"),t.exit("characterEscape"),n):r(c)}}const X0={name:"characterReference",tokenize:Vy};function Vy(t,n,r){const u=this;let o=0,c,f;return x;function x(b){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),p}function p(b){return b===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(b),t.exit("characterReferenceMarkerNumeric"),g):(t.enter("characterReferenceValue"),c=31,f=Gi,y(b))}function g(b){return b===88||b===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(b),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),c=6,f=jb,y):(t.enter("characterReferenceValue"),c=7,f=vf,y(b))}function y(b){if(b===59&&o){const k=t.exit("characterReferenceValue");return f===Gi&&!Fs(u.sliceSerialize(k))?r(b):(t.enter("characterReferenceMarker"),t.consume(b),t.exit("characterReferenceMarker"),t.exit("characterReference"),n)}return f(b)&&o++<c?(t.consume(b),y):r(b)}}const Qm={partial:!0,tokenize:zy},Xm={concrete:!0,name:"codeFenced",tokenize:By};function By(t,n,r){const u=this,o={partial:!0,tokenize:V};let c=0,f=0,x;return p;function p(v){return g(v)}function g(v){const R=u.events[u.events.length-1];return c=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,x=v,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(v)}function y(v){return v===x?(f++,t.consume(v),y):f<3?r(v):(t.exit("codeFencedFenceSequence"),Ot(v)?ae(t,b,"whitespace")(v):b(v))}function b(v){return v===null||gt(v)?(t.exit("codeFencedFence"),u.interrupt?n(v):t.check(Qm,B,W)(v)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),k(v))}function k(v){return v===null||gt(v)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),b(v)):Ot(v)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ae(t,C,"whitespace")(v)):v===96&&v===x?r(v):(t.consume(v),k)}function C(v){return v===null||gt(v)?b(v):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),L(v))}function L(v){return v===null||gt(v)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),b(v)):v===96&&v===x?r(v):(t.consume(v),L)}function B(v){return t.attempt(o,W,F)(v)}function F(v){return t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),I}function I(v){return c>0&&Ot(v)?ae(t,G,"linePrefix",c+1)(v):G(v)}function G(v){return v===null||gt(v)?t.check(Qm,B,W)(v):(t.enter("codeFlowValue"),z(v))}function z(v){return v===null||gt(v)?(t.exit("codeFlowValue"),G(v)):(t.consume(v),z)}function W(v){return t.exit("codeFenced"),n(v)}function V(v,R,X){let rt=0;return q;function q(vt){return v.enter("lineEnding"),v.consume(vt),v.exit("lineEnding"),ut}function ut(vt){return v.enter("codeFencedFence"),Ot(vt)?ae(v,st,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(vt):st(vt)}function st(vt){return vt===x?(v.enter("codeFencedFenceSequence"),pt(vt)):X(vt)}function pt(vt){return vt===x?(rt++,v.consume(vt),pt):rt>=f?(v.exit("codeFencedFenceSequence"),Ot(vt)?ae(v,Nt,"whitespace")(vt):Nt(vt)):X(vt)}function Nt(vt){return vt===null||gt(vt)?(v.exit("codeFencedFence"),R(vt)):X(vt)}}}function zy(t,n,r){const u=this;return o;function o(f){return f===null?r(f):(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),c)}function c(f){return u.parser.lazy[u.now().line]?r(f):n(f)}}const Zc={name:"codeIndented",tokenize:Uy},Py={partial:!0,tokenize:Fy};function Uy(t,n,r){const u=this;return o;function o(g){return t.enter("codeIndented"),ae(t,c,"linePrefix",5)(g)}function c(g){const y=u.events[u.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?f(g):r(g)}function f(g){return g===null?p(g):gt(g)?t.attempt(Py,f,p)(g):(t.enter("codeFlowValue"),x(g))}function x(g){return g===null||gt(g)?(t.exit("codeFlowValue"),f(g)):(t.consume(g),x)}function p(g){return t.exit("codeIndented"),n(g)}}function Fy(t,n,r){const u=this;return o;function o(f){return u.parser.lazy[u.now().line]?r(f):gt(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),o):ae(t,c,"linePrefix",5)(f)}function c(f){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?n(f):gt(f)?o(f):r(f)}}const jy={name:"codeText",previous:Hy,resolve:qy,tokenize:Gy};function qy(t){let n=t.length-4,r=3,u,o;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[n][1].type==="lineEnding"||t[n][1].type==="space")){for(u=r;++u<n;)if(t[u][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(u=r-1,n++;++u<=n;)o===void 0?u!==n&&t[u][1].type!=="lineEnding"&&(o=u):(u===n||t[u][1].type==="lineEnding")&&(t[o][1].type="codeTextData",u!==o+2&&(t[o][1].end=t[u-1][1].end,t.splice(o+2,u-o-2),n-=u-o-2,u=o+2),o=void 0);return t}function Hy(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Gy(t,n,r){let u=0,o,c;return f;function f(b){return t.enter("codeText"),t.enter("codeTextSequence"),x(b)}function x(b){return b===96?(t.consume(b),u++,x):(t.exit("codeTextSequence"),p(b))}function p(b){return b===null?r(b):b===32?(t.enter("space"),t.consume(b),t.exit("space"),p):b===96?(c=t.enter("codeTextSequence"),o=0,y(b)):gt(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),p):(t.enter("codeTextData"),g(b))}function g(b){return b===null||b===32||b===96||gt(b)?(t.exit("codeTextData"),p(b)):(t.consume(b),g)}function y(b){return b===96?(t.consume(b),o++,y):o===u?(t.exit("codeTextSequence"),t.exit("codeText"),n(b)):(c.type="codeTextData",g(b))}}class Jy{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(n,u):n>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(n,r,u){const o=r||0;this.setCursor(Math.trunc(n));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return u&&Vs(this.left,u),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Vs(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Vs(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);Vs(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Vs(this.left,r.reverse())}}}function Vs(t,n){let r=0;if(n.length<1e4)t.push(...n);else for(;r<n.length;)t.push(...n.slice(r,r+1e4)),r+=1e4}function Y0(t){const n={};let r=-1,u,o,c,f,x,p,g;const y=new Jy(t);for(;++r<y.length;){for(;r in n;)r=n[r];if(u=y.get(r),r&&u[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,c=0,c<p.length&&p[c][1].type==="lineEndingBlank"&&(c+=2),c<p.length&&p[c][1].type==="content"))for(;++c<p.length&&p[c][1].type!=="content";)p[c][1].type==="chunkText"&&(p[c][1]._isInFirstContentOfListItem=!0,c++);if(u[0]==="enter")u[1].contentType&&(Object.assign(n,Qy(y,r)),r=n[r],g=!0);else if(u[1]._container){for(c=r,o=void 0;c--;)if(f=y.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),f[1].type="lineEnding",o=c);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;o&&(u[1].end={...y.get(o)[1].start},x=y.slice(o,r),x.unshift(u),y.splice(o,r-o+1,x))}}return Nn(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!g}function Qy(t,n){const r=t.get(n)[1],u=t.get(n)[2];let o=n-1;const c=[];let f=r._tokenizer;f||(f=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const x=f.events,p=[],g={};let y,b,k=-1,C=r,L=0,B=0;const F=[B];for(;C;){for(;t.get(++o)[1]!==C;);c.push(o),C._tokenizer||(y=u.sliceStream(C),C.next||y.push(null),b&&f.defineSkip(C.start),C._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(y),C._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),b=C,C=C.next}for(C=r;++k<x.length;)x[k][0]==="exit"&&x[k-1][0]==="enter"&&x[k][1].type===x[k-1][1].type&&x[k][1].start.line!==x[k][1].end.line&&(B=k+1,F.push(B),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(f.events=[],C?(C._tokenizer=void 0,C.previous=void 0):F.pop(),k=F.length;k--;){const I=x.slice(F[k],F[k+1]),G=c.pop();p.push([G,G+I.length-1]),t.splice(G,2,I)}for(p.reverse(),k=-1;++k<p.length;)g[L+p[k][0]]=L+p[k][1],L+=p[k][1]-p[k][0]-1;return g}const Xy={resolve:Zy,tokenize:Ky},Yy={partial:!0,tokenize:Wy};function Zy(t){return Y0(t),t}function Ky(t,n){let r;return u;function u(x){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),o(x)}function o(x){return x===null?c(x):gt(x)?t.check(Yy,f,c)(x):(t.consume(x),o)}function c(x){return t.exit("chunkContent"),t.exit("content"),n(x)}function f(x){return t.consume(x),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function Wy(t,n,r){const u=this;return o;function o(f){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),ae(t,c,"linePrefix")}function c(f){if(f===null||gt(f))return r(f);const x=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?n(f):t.interrupt(u.parser.constructs.flow,r,n)(f)}}function Z0(t,n,r,u,o,c,f,x,p){const g=p||Number.POSITIVE_INFINITY;let y=0;return b;function b(I){return I===60?(t.enter(u),t.enter(o),t.enter(c),t.consume(I),t.exit(c),k):I===null||I===32||I===41||yf(I)?r(I):(t.enter(u),t.enter(f),t.enter(x),t.enter("chunkString",{contentType:"string"}),B(I))}function k(I){return I===62?(t.enter(c),t.consume(I),t.exit(c),t.exit(o),t.exit(u),n):(t.enter(x),t.enter("chunkString",{contentType:"string"}),C(I))}function C(I){return I===62?(t.exit("chunkString"),t.exit(x),k(I)):I===null||I===60||gt(I)?r(I):(t.consume(I),I===92?L:C)}function L(I){return I===60||I===62||I===92?(t.consume(I),C):C(I)}function B(I){return!y&&(I===null||I===41||xe(I))?(t.exit("chunkString"),t.exit(x),t.exit(f),t.exit(u),n(I)):y<g&&I===40?(t.consume(I),y++,B):I===41?(t.consume(I),y--,B):I===null||I===32||I===40||yf(I)?r(I):(t.consume(I),I===92?F:B)}function F(I){return I===40||I===41||I===92?(t.consume(I),B):B(I)}}function K0(t,n,r,u,o,c){const f=this;let x=0,p;return g;function g(C){return t.enter(u),t.enter(o),t.consume(C),t.exit(o),t.enter(c),y}function y(C){return x>999||C===null||C===91||C===93&&!p||C===94&&!x&&"_hiddenFootnoteSupport"in f.parser.constructs?r(C):C===93?(t.exit(c),t.enter(o),t.consume(C),t.exit(o),t.exit(u),n):gt(C)?(t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),b(C))}function b(C){return C===null||C===91||C===93||gt(C)||x++>999?(t.exit("chunkString"),y(C)):(t.consume(C),p||(p=!Ot(C)),C===92?k:b)}function k(C){return C===91||C===92||C===93?(t.consume(C),x++,b):b(C)}}function W0(t,n,r,u,o,c){let f;return x;function x(k){return k===34||k===39||k===40?(t.enter(u),t.enter(o),t.consume(k),t.exit(o),f=k===40?41:k,p):r(k)}function p(k){return k===f?(t.enter(o),t.consume(k),t.exit(o),t.exit(u),n):(t.enter(c),g(k))}function g(k){return k===f?(t.exit(c),p(f)):k===null?r(k):gt(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),ae(t,g,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===f||k===null||gt(k)?(t.exit("chunkString"),g(k)):(t.consume(k),k===92?b:y)}function b(k){return k===f||k===92?(t.consume(k),y):y(k)}}function Ps(t,n){let r;return u;function u(o){return gt(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r=!0,u):Ot(o)?ae(t,u,r?"linePrefix":"lineSuffix")(o):n(o)}}const $y={name:"definition",tokenize:ev},tv={partial:!0,tokenize:iv};function ev(t,n,r){const u=this;let o;return c;function c(C){return t.enter("definition"),f(C)}function f(C){return K0.call(u,t,x,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function x(C){return o=da(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),C===58?(t.enter("definitionMarker"),t.consume(C),t.exit("definitionMarker"),p):r(C)}function p(C){return xe(C)?Ps(t,g)(C):g(C)}function g(C){return Z0(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function y(C){return t.attempt(tv,b,b)(C)}function b(C){return Ot(C)?ae(t,k,"whitespace")(C):k(C)}function k(C){return C===null||gt(C)?(t.exit("definition"),u.parser.defined.push(o),n(C)):r(C)}}function iv(t,n,r){return u;function u(x){return xe(x)?Ps(t,o)(x):r(x)}function o(x){return W0(t,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(x)}function c(x){return Ot(x)?ae(t,f,"whitespace")(x):f(x)}function f(x){return x===null||gt(x)?n(x):r(x)}}const nv={name:"hardBreakEscape",tokenize:av};function av(t,n,r){return u;function u(c){return t.enter("hardBreakEscape"),t.consume(c),o}function o(c){return gt(c)?(t.exit("hardBreakEscape"),n(c)):r(c)}}const rv={name:"headingAtx",resolve:sv,tokenize:uv};function sv(t,n){let r=t.length-2,u=3,o,c;return t[u][1].type==="whitespace"&&(u+=2),r-2>u&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&t[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(o={type:"atxHeadingText",start:t[u][1].start,end:t[r][1].end},c={type:"chunkText",start:t[u][1].start,end:t[r][1].end,contentType:"text"},Nn(t,u,r-u+1,[["enter",o,n],["enter",c,n],["exit",c,n],["exit",o,n]])),t}function uv(t,n,r){let u=0;return o;function o(y){return t.enter("atxHeading"),c(y)}function c(y){return t.enter("atxHeadingSequence"),f(y)}function f(y){return y===35&&u++<6?(t.consume(y),f):y===null||xe(y)?(t.exit("atxHeadingSequence"),x(y)):r(y)}function x(y){return y===35?(t.enter("atxHeadingSequence"),p(y)):y===null||gt(y)?(t.exit("atxHeading"),n(y)):Ot(y)?ae(t,x,"whitespace")(y):(t.enter("atxHeadingText"),g(y))}function p(y){return y===35?(t.consume(y),p):(t.exit("atxHeadingSequence"),x(y))}function g(y){return y===null||y===35||xe(y)?(t.exit("atxHeadingText"),x(y)):(t.consume(y),g)}}const lv=["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"],Ym=["pre","script","style","textarea"],ov={concrete:!0,name:"htmlFlow",resolveTo:hv,tokenize:pv},cv={partial:!0,tokenize:mv},fv={partial:!0,tokenize:dv};function hv(t){let n=t.length;for(;n--&&!(t[n][0]==="enter"&&t[n][1].type==="htmlFlow"););return n>1&&t[n-2][1].type==="linePrefix"&&(t[n][1].start=t[n-2][1].start,t[n+1][1].start=t[n-2][1].start,t.splice(n-2,2)),t}function pv(t,n,r){const u=this;let o,c,f,x,p;return g;function g(O){return y(O)}function y(O){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(O),b}function b(O){return O===33?(t.consume(O),k):O===47?(t.consume(O),c=!0,B):O===63?(t.consume(O),o=3,u.interrupt?n:D):qi(O)?(t.consume(O),f=String.fromCharCode(O),F):r(O)}function k(O){return O===45?(t.consume(O),o=2,C):O===91?(t.consume(O),o=5,x=0,L):qi(O)?(t.consume(O),o=4,u.interrupt?n:D):r(O)}function C(O){return O===45?(t.consume(O),u.interrupt?n:D):r(O)}function L(O){const Bt="CDATA[";return O===Bt.charCodeAt(x++)?(t.consume(O),x===Bt.length?u.interrupt?n:st:L):r(O)}function B(O){return qi(O)?(t.consume(O),f=String.fromCharCode(O),F):r(O)}function F(O){if(O===null||O===47||O===62||xe(O)){const Bt=O===47,ie=f.toLowerCase();return!Bt&&!c&&Ym.includes(ie)?(o=1,u.interrupt?n(O):st(O)):lv.includes(f.toLowerCase())?(o=6,Bt?(t.consume(O),I):u.interrupt?n(O):st(O)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(O):c?G(O):z(O))}return O===45||Gi(O)?(t.consume(O),f+=String.fromCharCode(O),F):r(O)}function I(O){return O===62?(t.consume(O),u.interrupt?n:st):r(O)}function G(O){return Ot(O)?(t.consume(O),G):q(O)}function z(O){return O===47?(t.consume(O),q):O===58||O===95||qi(O)?(t.consume(O),W):Ot(O)?(t.consume(O),z):q(O)}function W(O){return O===45||O===46||O===58||O===95||Gi(O)?(t.consume(O),W):V(O)}function V(O){return O===61?(t.consume(O),v):Ot(O)?(t.consume(O),V):z(O)}function v(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(t.consume(O),p=O,R):Ot(O)?(t.consume(O),v):X(O)}function R(O){return O===p?(t.consume(O),p=null,rt):O===null||gt(O)?r(O):(t.consume(O),R)}function X(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||xe(O)?V(O):(t.consume(O),X)}function rt(O){return O===47||O===62||Ot(O)?z(O):r(O)}function q(O){return O===62?(t.consume(O),ut):r(O)}function ut(O){return O===null||gt(O)?st(O):Ot(O)?(t.consume(O),ut):r(O)}function st(O){return O===45&&o===2?(t.consume(O),K):O===60&&o===1?(t.consume(O),nt):O===62&&o===4?(t.consume(O),Gt):O===63&&o===3?(t.consume(O),D):O===93&&o===5?(t.consume(O),At):gt(O)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(cv,Lt,pt)(O)):O===null||gt(O)?(t.exit("htmlFlowData"),pt(O)):(t.consume(O),st)}function pt(O){return t.check(fv,Nt,Lt)(O)}function Nt(O){return t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),vt}function vt(O){return O===null||gt(O)?pt(O):(t.enter("htmlFlowData"),st(O))}function K(O){return O===45?(t.consume(O),D):st(O)}function nt(O){return O===47?(t.consume(O),f="",dt):st(O)}function dt(O){if(O===62){const Bt=f.toLowerCase();return Ym.includes(Bt)?(t.consume(O),Gt):st(O)}return qi(O)&&f.length<8?(t.consume(O),f+=String.fromCharCode(O),dt):st(O)}function At(O){return O===93?(t.consume(O),D):st(O)}function D(O){return O===62?(t.consume(O),Gt):O===45&&o===2?(t.consume(O),D):st(O)}function Gt(O){return O===null||gt(O)?(t.exit("htmlFlowData"),Lt(O)):(t.consume(O),Gt)}function Lt(O){return t.exit("htmlFlow"),n(O)}}function dv(t,n,r){const u=this;return o;function o(f){return gt(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),c):r(f)}function c(f){return u.parser.lazy[u.now().line]?r(f):n(f)}}function mv(t,n,r){return u;function u(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(Nl,n,r)}}const xv={name:"htmlText",tokenize:gv};function gv(t,n,r){const u=this;let o,c,f;return x;function x(D){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(D),p}function p(D){return D===33?(t.consume(D),g):D===47?(t.consume(D),V):D===63?(t.consume(D),z):qi(D)?(t.consume(D),X):r(D)}function g(D){return D===45?(t.consume(D),y):D===91?(t.consume(D),c=0,L):qi(D)?(t.consume(D),G):r(D)}function y(D){return D===45?(t.consume(D),C):r(D)}function b(D){return D===null?r(D):D===45?(t.consume(D),k):gt(D)?(f=b,nt(D)):(t.consume(D),b)}function k(D){return D===45?(t.consume(D),C):b(D)}function C(D){return D===62?K(D):D===45?k(D):b(D)}function L(D){const Gt="CDATA[";return D===Gt.charCodeAt(c++)?(t.consume(D),c===Gt.length?B:L):r(D)}function B(D){return D===null?r(D):D===93?(t.consume(D),F):gt(D)?(f=B,nt(D)):(t.consume(D),B)}function F(D){return D===93?(t.consume(D),I):B(D)}function I(D){return D===62?K(D):D===93?(t.consume(D),I):B(D)}function G(D){return D===null||D===62?K(D):gt(D)?(f=G,nt(D)):(t.consume(D),G)}function z(D){return D===null?r(D):D===63?(t.consume(D),W):gt(D)?(f=z,nt(D)):(t.consume(D),z)}function W(D){return D===62?K(D):z(D)}function V(D){return qi(D)?(t.consume(D),v):r(D)}function v(D){return D===45||Gi(D)?(t.consume(D),v):R(D)}function R(D){return gt(D)?(f=R,nt(D)):Ot(D)?(t.consume(D),R):K(D)}function X(D){return D===45||Gi(D)?(t.consume(D),X):D===47||D===62||xe(D)?rt(D):r(D)}function rt(D){return D===47?(t.consume(D),K):D===58||D===95||qi(D)?(t.consume(D),q):gt(D)?(f=rt,nt(D)):Ot(D)?(t.consume(D),rt):K(D)}function q(D){return D===45||D===46||D===58||D===95||Gi(D)?(t.consume(D),q):ut(D)}function ut(D){return D===61?(t.consume(D),st):gt(D)?(f=ut,nt(D)):Ot(D)?(t.consume(D),ut):rt(D)}function st(D){return D===null||D===60||D===61||D===62||D===96?r(D):D===34||D===39?(t.consume(D),o=D,pt):gt(D)?(f=st,nt(D)):Ot(D)?(t.consume(D),st):(t.consume(D),Nt)}function pt(D){return D===o?(t.consume(D),o=void 0,vt):D===null?r(D):gt(D)?(f=pt,nt(D)):(t.consume(D),pt)}function Nt(D){return D===null||D===34||D===39||D===60||D===61||D===96?r(D):D===47||D===62||xe(D)?rt(D):(t.consume(D),Nt)}function vt(D){return D===47||D===62||xe(D)?rt(D):r(D)}function K(D){return D===62?(t.consume(D),t.exit("htmlTextData"),t.exit("htmlText"),n):r(D)}function nt(D){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),dt}function dt(D){return Ot(D)?ae(t,At,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):At(D)}function At(D){return t.enter("htmlTextData"),f(D)}}const Uf={name:"labelEnd",resolveAll:Sv,resolveTo:kv,tokenize:Ev},bv={tokenize:wv},yv={tokenize:Cv},vv={tokenize:Av};function Sv(t){let n=-1;const r=[];for(;++n<t.length;){const u=t[n][1];if(r.push(t[n]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const o=u.type==="labelImage"?4:2;u.type="data",n+=o}}return t.length!==r.length&&Nn(t,0,t.length,r),t}function kv(t,n){let r=t.length,u=0,o,c,f,x;for(;r--;)if(o=t[r][1],c){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(f){if(t[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(c=r,o.type!=="labelLink")){u=2;break}}else o.type==="labelEnd"&&(f=r);const p={type:t[c][1].type==="labelLink"?"link":"image",start:{...t[c][1].start},end:{...t[t.length-1][1].end}},g={type:"label",start:{...t[c][1].start},end:{...t[f][1].end}},y={type:"labelText",start:{...t[c+u+2][1].end},end:{...t[f-2][1].start}};return x=[["enter",p,n],["enter",g,n]],x=Ni(x,t.slice(c+1,c+u+3)),x=Ni(x,[["enter",y,n]]),x=Ni(x,Pf(n.parser.constructs.insideSpan.null,t.slice(c+u+4,f-3),n)),x=Ni(x,[["exit",y,n],t[f-2],t[f-1],["exit",g,n]]),x=Ni(x,t.slice(f+1)),x=Ni(x,[["exit",p,n]]),Nn(t,c,t.length,x),t}function Ev(t,n,r){const u=this;let o=u.events.length,c,f;for(;o--;)if((u.events[o][1].type==="labelImage"||u.events[o][1].type==="labelLink")&&!u.events[o][1]._balanced){c=u.events[o][1];break}return x;function x(k){return c?c._inactive?b(k):(f=u.parser.defined.includes(da(u.sliceSerialize({start:c.end,end:u.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(k),t.exit("labelMarker"),t.exit("labelEnd"),p):r(k)}function p(k){return k===40?t.attempt(bv,y,f?y:b)(k):k===91?t.attempt(yv,y,f?g:b)(k):f?y(k):b(k)}function g(k){return t.attempt(vv,y,b)(k)}function y(k){return n(k)}function b(k){return c._balanced=!0,r(k)}}function wv(t,n,r){return u;function u(b){return t.enter("resource"),t.enter("resourceMarker"),t.consume(b),t.exit("resourceMarker"),o}function o(b){return xe(b)?Ps(t,c)(b):c(b)}function c(b){return b===41?y(b):Z0(t,f,x,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function f(b){return xe(b)?Ps(t,p)(b):y(b)}function x(b){return r(b)}function p(b){return b===34||b===39||b===40?W0(t,g,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):y(b)}function g(b){return xe(b)?Ps(t,y)(b):y(b)}function y(b){return b===41?(t.enter("resourceMarker"),t.consume(b),t.exit("resourceMarker"),t.exit("resource"),n):r(b)}}function Cv(t,n,r){const u=this;return o;function o(x){return K0.call(u,t,c,f,"reference","referenceMarker","referenceString")(x)}function c(x){return u.parser.defined.includes(da(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?n(x):r(x)}function f(x){return r(x)}}function Av(t,n,r){return u;function u(c){return t.enter("reference"),t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),o}function o(c){return c===93?(t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),t.exit("reference"),n):r(c)}}const _v={name:"labelStartImage",resolveAll:Uf.resolveAll,tokenize:Tv};function Tv(t,n,r){const u=this;return o;function o(x){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(x),t.exit("labelImageMarker"),c}function c(x){return x===91?(t.enter("labelMarker"),t.consume(x),t.exit("labelMarker"),t.exit("labelImage"),f):r(x)}function f(x){return x===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(x):n(x)}}const Nv={name:"labelStartLink",resolveAll:Uf.resolveAll,tokenize:Lv};function Lv(t,n,r){const u=this;return o;function o(f){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelLink"),c}function c(f){return f===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(f):n(f)}}const Kc={name:"lineEnding",tokenize:Dv};function Dv(t,n){return r;function r(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),ae(t,n,"linePrefix")}}const xl={name:"thematicBreak",tokenize:Ov};function Ov(t,n,r){let u=0,o;return c;function c(g){return t.enter("thematicBreak"),f(g)}function f(g){return o=g,x(g)}function x(g){return g===o?(t.enter("thematicBreakSequence"),p(g)):u>=3&&(g===null||gt(g))?(t.exit("thematicBreak"),n(g)):r(g)}function p(g){return g===o?(t.consume(g),u++,p):(t.exit("thematicBreakSequence"),Ot(g)?ae(t,x,"whitespace")(g):x(g))}}const ni={continuation:{tokenize:Vv},exit:zv,name:"list",tokenize:Iv},Rv={partial:!0,tokenize:Pv},Mv={partial:!0,tokenize:Bv};function Iv(t,n,r){const u=this,o=u.events[u.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,f=0;return x;function x(C){const L=u.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(L==="listUnordered"?!u.containerState.marker||C===u.containerState.marker:vf(C)){if(u.containerState.type||(u.containerState.type=L,t.enter(L,{_container:!0})),L==="listUnordered")return t.enter("listItemPrefix"),C===42||C===45?t.check(xl,r,g)(C):g(C);if(!u.interrupt||C===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(C)}return r(C)}function p(C){return vf(C)&&++f<10?(t.consume(C),p):(!u.interrupt||f<2)&&(u.containerState.marker?C===u.containerState.marker:C===41||C===46)?(t.exit("listItemValue"),g(C)):r(C)}function g(C){return t.enter("listItemMarker"),t.consume(C),t.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||C,t.check(Nl,u.interrupt?r:y,t.attempt(Rv,k,b))}function y(C){return u.containerState.initialBlankLine=!0,c++,k(C)}function b(C){return Ot(C)?(t.enter("listItemPrefixWhitespace"),t.consume(C),t.exit("listItemPrefixWhitespace"),k):r(C)}function k(C){return u.containerState.size=c+u.sliceSerialize(t.exit("listItemPrefix"),!0).length,n(C)}}function Vv(t,n,r){const u=this;return u.containerState._closeFlow=void 0,t.check(Nl,o,c);function o(x){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,ae(t,n,"listItemIndent",u.containerState.size+1)(x)}function c(x){return u.containerState.furtherBlankLines||!Ot(x)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,f(x)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,t.attempt(Mv,n,f)(x))}function f(x){return u.containerState._closeFlow=!0,u.interrupt=void 0,ae(t,t.attempt(ni,n,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x)}}function Bv(t,n,r){const u=this;return ae(t,o,"listItemIndent",u.containerState.size+1);function o(c){const f=u.events[u.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===u.containerState.size?n(c):r(c)}}function zv(t){t.exit(this.containerState.type)}function Pv(t,n,r){const u=this;return ae(t,o,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(c){const f=u.events[u.events.length-1];return!Ot(c)&&f&&f[1].type==="listItemPrefixWhitespace"?n(c):r(c)}}const Zm={name:"setextUnderline",resolveTo:Uv,tokenize:Fv};function Uv(t,n){let r=t.length,u,o,c;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){u=r;break}t[r][1].type==="paragraph"&&(o=r)}else t[r][1].type==="content"&&t.splice(r,1),!c&&t[r][1].type==="definition"&&(c=r);const f={type:"setextHeading",start:{...t[u][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",c?(t.splice(o,0,["enter",f,n]),t.splice(c+1,0,["exit",t[u][1],n]),t[u][1].end={...t[c][1].end}):t[u][1]=f,t.push(["exit",f,n]),t}function Fv(t,n,r){const u=this;let o;return c;function c(g){let y=u.events.length,b;for(;y--;)if(u.events[y][1].type!=="lineEnding"&&u.events[y][1].type!=="linePrefix"&&u.events[y][1].type!=="content"){b=u.events[y][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||b)?(t.enter("setextHeadingLine"),o=g,f(g)):r(g)}function f(g){return t.enter("setextHeadingLineSequence"),x(g)}function x(g){return g===o?(t.consume(g),x):(t.exit("setextHeadingLineSequence"),Ot(g)?ae(t,p,"lineSuffix")(g):p(g))}function p(g){return g===null||gt(g)?(t.exit("setextHeadingLine"),n(g)):r(g)}}const jv={tokenize:qv};function qv(t){const n=this,r=t.attempt(Nl,u,t.attempt(this.parser.constructs.flowInitial,o,ae(t,t.attempt(this.parser.constructs.flow,o,t.attempt(Xy,o)),"linePrefix")));return r;function u(c){if(c===null){t.consume(c);return}return t.enter("lineEndingBlank"),t.consume(c),t.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function o(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),n.currentConstruct=void 0,r}}const Hv={resolveAll:tx()},Gv=$0("string"),Jv=$0("text");function $0(t){return{resolveAll:tx(t==="text"?Qv:void 0),tokenize:n};function n(r){const u=this,o=this.parser.constructs[t],c=r.attempt(o,f,x);return f;function f(y){return g(y)?c(y):x(y)}function x(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),p}function p(y){return g(y)?(r.exit("data"),c(y)):(r.consume(y),p)}function g(y){if(y===null)return!0;const b=o[y];let k=-1;if(b)for(;++k<b.length;){const C=b[k];if(!C.previous||C.previous.call(u,u.previous))return!0}return!1}}}function tx(t){return n;function n(r,u){let o=-1,c;for(;++o<=r.length;)c===void 0?r[o]&&r[o][1].type==="data"&&(c=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==c+2&&(r[c][1].end=r[o-1][1].end,r.splice(c+2,o-c-2),o=c+2),c=void 0);return t?t(r,u):r}}function Qv(t,n){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const u=t[r-1][1],o=n.sliceStream(u);let c=o.length,f=-1,x=0,p;for(;c--;){const g=o[c];if(typeof g=="string"){for(f=g.length;g.charCodeAt(f-1)===32;)x++,f--;if(f)break;f=-1}else if(g===-2)p=!0,x++;else if(g!==-1){c++;break}}if(n._contentTypeTextTrailing&&r===t.length&&(x=0),x){const g={type:r===t.length||p||x<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?f:u.start._bufferIndex+f,_index:u.start._index+c,line:u.end.line,column:u.end.column-x,offset:u.end.offset-x},end:{...u.end}};u.end={...g.start},u.start.offset===u.end.offset?Object.assign(u,g):(t.splice(r,0,["enter",g,n],["exit",g,n]),r+=2)}r++}return t}const Xv={42:ni,43:ni,45:ni,48:ni,49:ni,50:ni,51:ni,52:ni,53:ni,54:ni,55:ni,56:ni,57:ni,62:J0},Yv={91:$y},Zv={[-2]:Zc,[-1]:Zc,32:Zc},Kv={35:rv,42:xl,45:[Zm,xl],60:ov,61:Zm,95:xl,96:Xm,126:Xm},Wv={38:X0,92:Q0},$v={[-5]:Kc,[-4]:Kc,[-3]:Kc,33:_v,38:X0,42:wf,60:[Ny,xv],91:Nv,92:[nv,Q0],93:Uf,95:wf,96:jy},t2={null:[wf,Hv]},e2={null:[42,95]},i2={null:[]},n2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:e2,contentInitial:Yv,disable:i2,document:Xv,flow:Kv,flowInitial:Zv,insideSpan:t2,string:Wv,text:$v},Symbol.toStringTag,{value:"Module"}));function a2(t,n,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},c=[];let f=[],x=[];const p={attempt:R(V),check:R(v),consume:G,enter:z,exit:W,interrupt:R(v,{interrupt:!0})},g={code:null,containerState:{},defineSkip:B,events:[],now:L,parser:t,previous:null,sliceSerialize:k,sliceStream:C,write:b};let y=n.tokenize.call(g,p);return n.resolveAll&&c.push(n),g;function b(ut){return f=Ni(f,ut),F(),f[f.length-1]!==null?[]:(X(n,0),g.events=Pf(c,g.events,g),g.events)}function k(ut,st){return s2(C(ut),st)}function C(ut){return r2(f,ut)}function L(){const{_bufferIndex:ut,_index:st,line:pt,column:Nt,offset:vt}=u;return{_bufferIndex:ut,_index:st,line:pt,column:Nt,offset:vt}}function B(ut){o[ut.line]=ut.column,q()}function F(){let ut;for(;u._index<f.length;){const st=f[u._index];if(typeof st=="string")for(ut=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ut&&u._bufferIndex<st.length;)I(st.charCodeAt(u._bufferIndex));else I(st)}}function I(ut){y=y(ut)}function G(ut){gt(ut)?(u.line++,u.column=1,u.offset+=ut===-3?2:1,q()):ut!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===f[u._index].length&&(u._bufferIndex=-1,u._index++)),g.previous=ut}function z(ut,st){const pt=st||{};return pt.type=ut,pt.start=L(),g.events.push(["enter",pt,g]),x.push(pt),pt}function W(ut){const st=x.pop();return st.end=L(),g.events.push(["exit",st,g]),st}function V(ut,st){X(ut,st.from)}function v(ut,st){st.restore()}function R(ut,st){return pt;function pt(Nt,vt,K){let nt,dt,At,D;return Array.isArray(Nt)?Lt(Nt):"tokenize"in Nt?Lt([Nt]):Gt(Nt);function Gt(qt){return Xe;function Xe(Ve){const he=Ve!==null&&qt[Ve],Ce=Ve!==null&&qt.null,pe=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return Lt(pe)(Ve)}}function Lt(qt){return nt=qt,dt=0,qt.length===0?K:O(qt[dt])}function O(qt){return Xe;function Xe(Ve){return D=rt(),At=qt,qt.partial||(g.currentConstruct=qt),qt.name&&g.parser.constructs.disable.null.includes(qt.name)?ie():qt.tokenize.call(st?Object.assign(Object.create(g),st):g,p,Bt,ie)(Ve)}}function Bt(qt){return ut(At,D),vt}function ie(qt){return D.restore(),++dt<nt.length?O(nt[dt]):K}}}function X(ut,st){ut.resolveAll&&!c.includes(ut)&&c.push(ut),ut.resolve&&Nn(g.events,st,g.events.length-st,ut.resolve(g.events.slice(st),g)),ut.resolveTo&&(g.events=ut.resolveTo(g.events,g))}function rt(){const ut=L(),st=g.previous,pt=g.currentConstruct,Nt=g.events.length,vt=Array.from(x);return{from:Nt,restore:K};function K(){u=ut,g.previous=st,g.currentConstruct=pt,g.events.length=Nt,x=vt,q()}}function q(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function r2(t,n){const r=n.start._index,u=n.start._bufferIndex,o=n.end._index,c=n.end._bufferIndex;let f;if(r===o)f=[t[r].slice(u,c)];else{if(f=t.slice(r,o),u>-1){const x=f[0];typeof x=="string"?f[0]=x.slice(u):f.shift()}c>0&&f.push(t[o].slice(0,c))}return f}function s2(t,n){let r=-1;const u=[];let o;for(;++r<t.length;){const c=t[r];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
|
|
29
|
+
`;break}case-3:{f=`\r
|
|
30
|
+
`;break}case-2:{f=n?" ":" ";break}case-1:{if(!n&&o)continue;f=" ";break}default:f=String.fromCharCode(c)}o=c===-2,u.push(f)}return u.join("")}function u2(t){const u={constructs:zf([n2,...(t||{}).extensions||[]]),content:o(ky),defined:[],document:o(wy),flow:o(jv),lazy:{},string:o(Gv),text:o(Jv)};return u;function o(c){return f;function f(x){return a2(u,c,x)}}}function l2(t){for(;!Y0(t););return t}const Km=/[\0\t\n\r]/g;function o2(){let t=1,n="",r=!0,u;return o;function o(c,f,x){const p=[];let g,y,b,k,C;for(c=n+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),b=0,n="",r&&(c.charCodeAt(0)===65279&&b++,r=void 0);b<c.length;){if(Km.lastIndex=b,g=Km.exec(c),k=g&&g.index!==void 0?g.index:c.length,C=c.charCodeAt(k),!g){n=c.slice(b);break}if(C===10&&b===k&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),b<k&&(p.push(c.slice(b,k)),t+=k-b),C){case 0:{p.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,p.push(-2);t++<y;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:u=!0,t=1}b=k+1}return x&&(u&&p.push(-5),n&&p.push(n),p.push(null)),p}}const c2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ex(t){return t.replace(c2,f2)}function f2(t,n,r){if(n)return n;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),c=o===120||o===88;return G0(r.slice(c?2:1),c?16:10)}return Fs(r)||t}function Tn(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Wm(t.position):"start"in t||"end"in t?Wm(t):"line"in t||"column"in t?Cf(t):""}function Cf(t){return $m(t&&t.line)+":"+$m(t&&t.column)}function Wm(t){return Cf(t&&t.start)+"-"+Cf(t&&t.end)}function $m(t){return t&&typeof t=="number"?t:1}const ix={}.hasOwnProperty;function h2(t,n,r){return typeof n!="string"&&(r=n,n=void 0),p2(r)(l2(u2(r).document().write(o2()(t,n,!0))))}function p2(t){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(xi),autolinkProtocol:rt,autolinkEmail:rt,atxHeading:c(Mi),blockQuote:c(Ce),characterEscape:rt,characterReference:rt,codeFenced:c(pe),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(pe,f),codeText:c(Ji,f),codeTextData:rt,data:rt,codeFlowValue:rt,definition:c(di),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(Qi),hardBreakEscape:c(Xi),hardBreakTrailing:c(Xi),htmlFlow:c(ce,f),htmlFlowData:rt,htmlText:c(ce,f),htmlTextData:rt,image:c(mi),label:f,link:c(xi),listItem:c(Ye),listItemValue:k,listOrdered:c(ai,b),listUnordered:c(ai),paragraph:c(un),reference:O,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(Mi),strong:c(Ae),thematicBreak:c(ln)},exit:{atxHeading:p(),atxHeadingSequence:V,autolink:p(),autolinkEmail:he,autolinkProtocol:Ve,blockQuote:p(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:ie,characterReferenceMarkerNumeric:ie,characterReferenceValue:qt,characterReference:Xe,codeFenced:p(F),codeFencedFence:B,codeFencedFenceInfo:C,codeFencedFenceMeta:L,codeFlowValue:q,codeIndented:p(I),codeText:p(vt),codeTextData:q,data:q,definition:p(),definitionDestinationString:W,definitionLabelString:G,definitionTitleString:z,emphasis:p(),hardBreakEscape:p(st),hardBreakTrailing:p(st),htmlFlow:p(pt),htmlFlowData:q,htmlText:p(Nt),htmlTextData:q,image:p(nt),label:At,labelText:dt,lineEnding:ut,link:p(K),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Bt,resourceDestinationString:D,resourceTitleString:Gt,resource:Lt,setextHeading:p(X),setextHeadingLineSequence:R,setextHeadingText:v,strong:p(),thematicBreak:p()}};nx(n,(t||{}).mdastExtensions||[]);const r={};return u;function u(tt){let $={type:"root",children:[]};const T={stack:[$],tokenStack:[],config:n,enter:x,exit:g,buffer:f,resume:y,data:r},ft=[];let Ft=-1;for(;++Ft<tt.length;)if(tt[Ft][1].type==="listOrdered"||tt[Ft][1].type==="listUnordered")if(tt[Ft][0]==="enter")ft.push(Ft);else{const ge=ft.pop();Ft=o(tt,ge,Ft)}for(Ft=-1;++Ft<tt.length;){const ge=n[tt[Ft][0]];ix.call(ge,tt[Ft][1].type)&&ge[tt[Ft][1].type].call(Object.assign({sliceSerialize:tt[Ft][2].sliceSerialize},T),tt[Ft][1])}if(T.tokenStack.length>0){const ge=T.tokenStack[T.tokenStack.length-1];(ge[1]||t0).call(T,void 0,ge[0])}for($.position={start:fa(tt.length>0?tt[0][1].start:{line:1,column:1,offset:0}),end:fa(tt.length>0?tt[tt.length-2][1].end:{line:1,column:1,offset:0})},Ft=-1;++Ft<n.transforms.length;)$=n.transforms[Ft]($)||$;return $}function o(tt,$,T){let ft=$-1,Ft=-1,ge=!1,ht,Le,gi,He;for(;++ft<=T;){const se=tt[ft];switch(se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{se[0]==="enter"?Ft++:Ft--,He=void 0;break}case"lineEndingBlank":{se[0]==="enter"&&(ht&&!He&&!Ft&&!gi&&(gi=ft),He=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:He=void 0}if(!Ft&&se[0]==="enter"&&se[1].type==="listItemPrefix"||Ft===-1&&se[0]==="exit"&&(se[1].type==="listUnordered"||se[1].type==="listOrdered")){if(ht){let Fe=ft;for(Le=void 0;Fe--;){const Ze=tt[Fe];if(Ze[1].type==="lineEnding"||Ze[1].type==="lineEndingBlank"){if(Ze[0]==="exit")continue;Le&&(tt[Le][1].type="lineEndingBlank",ge=!0),Ze[1].type="lineEnding",Le=Fe}else if(!(Ze[1].type==="linePrefix"||Ze[1].type==="blockQuotePrefix"||Ze[1].type==="blockQuotePrefixWhitespace"||Ze[1].type==="blockQuoteMarker"||Ze[1].type==="listItemIndent"))break}gi&&(!Le||gi<Le)&&(ht._spread=!0),ht.end=Object.assign({},Le?tt[Le][1].start:se[1].end),tt.splice(Le||ft,0,["exit",ht,se[2]]),ft++,T++}if(se[1].type==="listItemPrefix"){const Fe={type:"listItem",_spread:!1,start:Object.assign({},se[1].start),end:void 0};ht=Fe,tt.splice(ft,0,["enter",Fe,se[2]]),ft++,T++,gi=void 0,He=!0}}}return tt[$][1]._spread=ge,T}function c(tt,$){return T;function T(ft){x.call(this,tt(ft),ft),$&&$.call(this,ft)}}function f(){this.stack.push({type:"fragment",children:[]})}function x(tt,$,T){this.stack[this.stack.length-1].children.push(tt),this.stack.push(tt),this.tokenStack.push([$,T||void 0]),tt.position={start:fa($.start),end:void 0}}function p(tt){return $;function $(T){tt&&tt.call(this,T),g.call(this,T)}}function g(tt,$){const T=this.stack.pop(),ft=this.tokenStack.pop();if(ft)ft[0].type!==tt.type&&($?$.call(this,tt,ft[0]):(ft[1]||t0).call(this,tt,ft[0]));else throw new Error("Cannot close `"+tt.type+"` ("+Tn({start:tt.start,end:tt.end})+"): it’s not open");T.position.end=fa(tt.end)}function y(){return Bf(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function k(tt){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(tt),10),this.data.expectingFirstListItemValue=void 0}}function C(){const tt=this.resume(),$=this.stack[this.stack.length-1];$.lang=tt}function L(){const tt=this.resume(),$=this.stack[this.stack.length-1];$.meta=tt}function B(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function F(){const tt=this.resume(),$=this.stack[this.stack.length-1];$.value=tt.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function I(){const tt=this.resume(),$=this.stack[this.stack.length-1];$.value=tt.replace(/(\r?\n|\r)$/g,"")}function G(tt){const $=this.resume(),T=this.stack[this.stack.length-1];T.label=$,T.identifier=da(this.sliceSerialize(tt)).toLowerCase()}function z(){const tt=this.resume(),$=this.stack[this.stack.length-1];$.title=tt}function W(){const tt=this.resume(),$=this.stack[this.stack.length-1];$.url=tt}function V(tt){const $=this.stack[this.stack.length-1];if(!$.depth){const T=this.sliceSerialize(tt).length;$.depth=T}}function v(){this.data.setextHeadingSlurpLineEnding=!0}function R(tt){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(tt).codePointAt(0)===61?1:2}function X(){this.data.setextHeadingSlurpLineEnding=void 0}function rt(tt){const T=this.stack[this.stack.length-1].children;let ft=T[T.length-1];(!ft||ft.type!=="text")&&(ft=Zt(),ft.position={start:fa(tt.start),end:void 0},T.push(ft)),this.stack.push(ft)}function q(tt){const $=this.stack.pop();$.value+=this.sliceSerialize(tt),$.position.end=fa(tt.end)}function ut(tt){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const T=$.children[$.children.length-1];T.position.end=fa(tt.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes($.type)&&(rt.call(this,tt),q.call(this,tt))}function st(){this.data.atHardBreak=!0}function pt(){const tt=this.resume(),$=this.stack[this.stack.length-1];$.value=tt}function Nt(){const tt=this.resume(),$=this.stack[this.stack.length-1];$.value=tt}function vt(){const tt=this.resume(),$=this.stack[this.stack.length-1];$.value=tt}function K(){const tt=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";tt.type+="Reference",tt.referenceType=$,delete tt.url,delete tt.title}else delete tt.identifier,delete tt.label;this.data.referenceType=void 0}function nt(){const tt=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";tt.type+="Reference",tt.referenceType=$,delete tt.url,delete tt.title}else delete tt.identifier,delete tt.label;this.data.referenceType=void 0}function dt(tt){const $=this.sliceSerialize(tt),T=this.stack[this.stack.length-2];T.label=ex($),T.identifier=da($).toLowerCase()}function At(){const tt=this.stack[this.stack.length-1],$=this.resume(),T=this.stack[this.stack.length-1];if(this.data.inReference=!0,T.type==="link"){const ft=tt.children;T.children=ft}else T.alt=$}function D(){const tt=this.resume(),$=this.stack[this.stack.length-1];$.url=tt}function Gt(){const tt=this.resume(),$=this.stack[this.stack.length-1];$.title=tt}function Lt(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function Bt(tt){const $=this.resume(),T=this.stack[this.stack.length-1];T.label=$,T.identifier=da(this.sliceSerialize(tt)).toLowerCase(),this.data.referenceType="full"}function ie(tt){this.data.characterReferenceType=tt.type}function qt(tt){const $=this.sliceSerialize(tt),T=this.data.characterReferenceType;let ft;T?(ft=G0($,T==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ft=Fs($);const Ft=this.stack[this.stack.length-1];Ft.value+=ft}function Xe(tt){const $=this.stack.pop();$.position.end=fa(tt.end)}function Ve(tt){q.call(this,tt);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(tt)}function he(tt){q.call(this,tt);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(tt)}function Ce(){return{type:"blockquote",children:[]}}function pe(){return{type:"code",lang:null,meta:null,value:""}}function Ji(){return{type:"inlineCode",value:""}}function di(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qi(){return{type:"emphasis",children:[]}}function Mi(){return{type:"heading",depth:0,children:[]}}function Xi(){return{type:"break"}}function ce(){return{type:"html",value:""}}function mi(){return{type:"image",title:null,url:"",alt:null}}function xi(){return{type:"link",title:null,url:"",children:[]}}function ai(tt){return{type:"list",ordered:tt.type==="listOrdered",start:null,spread:tt._spread,children:[]}}function Ye(tt){return{type:"listItem",spread:tt._spread,checked:null,children:[]}}function un(){return{type:"paragraph",children:[]}}function Ae(){return{type:"strong",children:[]}}function Zt(){return{type:"text",value:""}}function ln(){return{type:"thematicBreak"}}}function fa(t){return{line:t.line,column:t.column,offset:t.offset}}function nx(t,n){let r=-1;for(;++r<n.length;){const u=n[r];Array.isArray(u)?nx(t,u):d2(t,u)}}function d2(t,n){let r;for(r in n)if(ix.call(n,r))switch(r){case"canContainEols":{const u=n[r];u&&t[r].push(...u);break}case"transforms":{const u=n[r];u&&t[r].push(...u);break}case"enter":case"exit":{const u=n[r];u&&Object.assign(t[r],u);break}}}function t0(t,n){throw t?new Error("Cannot close `"+t.type+"` ("+Tn({start:t.start,end:t.end})+"): a different token (`"+n.type+"`, "+Tn({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Tn({start:n.start,end:n.end})+") is still open")}function m2(t){const n=this;n.parser=r;function r(u){return h2(u,{...n.data("settings"),...t,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}const e0={}.hasOwnProperty;function x2(t,n){const r=n||{};function u(o,...c){let f=u.invalid;const x=u.handlers;if(o&&e0.call(o,t)){const p=String(o[t]);f=e0.call(x,p)?x[p]:u.unknown}if(f)return f.call(this,o,...c)}return u.handlers=r.handlers||{},u.invalid=r.invalid,u.unknown=r.unknown,u}const g2={}.hasOwnProperty;function ax(t,n){let r=-1,u;if(n.extensions)for(;++r<n.extensions.length;)ax(t,n.extensions[r]);for(u in n)if(g2.call(n,u))switch(u){case"extensions":break;case"unsafe":{i0(t[u],n[u]);break}case"join":{i0(t[u],n[u]);break}case"handlers":{b2(t[u],n[u]);break}default:t.options[u]=n[u]}return t}function i0(t,n){n&&t.push(...n)}function b2(t,n){n&&Object.assign(t,n)}function y2(t,n,r,u){const o=r.enter("blockquote"),c=r.createTracker(u);c.move("> "),c.shift(2);const f=r.indentLines(r.containerFlow(t,c.current()),v2);return o(),f}function v2(t,n,r){return">"+(r?"":" ")+t}function rx(t,n){return n0(t,n.inConstruct,!0)&&!n0(t,n.notInConstruct,!1)}function n0(t,n,r){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return r;let u=-1;for(;++u<n.length;)if(t.includes(n[u]))return!0;return!1}function a0(t,n,r,u){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
|
|
31
|
+
`&&rx(r.stack,r.unsafe[o]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
32
|
+
`}function S2(t,n){const r=String(t);let u=r.indexOf(n),o=u,c=0,f=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===o?++c>f&&(f=c):c=1,o=u+n.length,u=r.indexOf(n,o);return f}function Af(t,n){return!!(n.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function k2(t){const n=t.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function E2(t,n,r,u){const o=k2(r),c=t.value||"",f=o==="`"?"GraveAccent":"Tilde";if(Af(t,r)){const b=r.enter("codeIndented"),k=r.indentLines(c,w2);return b(),k}const x=r.createTracker(u),p=o.repeat(Math.max(S2(c,o)+1,3)),g=r.enter("codeFenced");let y=x.move(p);if(t.lang){const b=r.enter(`codeFencedLang${f}`);y+=x.move(r.safe(t.lang,{before:y,after:" ",encode:["`"],...x.current()})),b()}if(t.lang&&t.meta){const b=r.enter(`codeFencedMeta${f}`);y+=x.move(" "),y+=x.move(r.safe(t.meta,{before:y,after:`
|
|
33
|
+
`,encode:["`"],...x.current()})),b()}return y+=x.move(`
|
|
34
|
+
`),c&&(y+=x.move(c+`
|
|
35
|
+
`)),y+=x.move(p),g(),y}function w2(t,n,r){return(r?"":" ")+t}function Ff(t){const n=t.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function C2(t,n,r,u){const o=Ff(r),c=o==='"'?"Quote":"Apostrophe",f=r.enter("definition");let x=r.enter("label");const p=r.createTracker(u);let g=p.move("[");return g+=p.move(r.safe(r.associationId(t),{before:g,after:"]",...p.current()})),g+=p.move("]: "),x(),!t.url||/[\0- \u007F]/.test(t.url)?(x=r.enter("destinationLiteral"),g+=p.move("<"),g+=p.move(r.safe(t.url,{before:g,after:">",...p.current()})),g+=p.move(">")):(x=r.enter("destinationRaw"),g+=p.move(r.safe(t.url,{before:g,after:t.title?" ":`
|
|
36
|
+
`,...p.current()}))),x(),t.title&&(x=r.enter(`title${c}`),g+=p.move(" "+o),g+=p.move(r.safe(t.title,{before:g,after:o,...p.current()})),g+=p.move(o),x()),f(),g}function A2(t){const n=t.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function ma(t){return"&#x"+t.toString(16).toUpperCase()+";"}function yl(t,n,r){const u=bl(t),o=bl(n);return u===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}sx.peek=_2;function sx(t,n,r,u){const o=A2(r),c=r.enter("emphasis"),f=r.createTracker(u),x=f.move(o);let p=f.move(r.containerPhrasing(t,{after:o,before:x,...f.current()}));const g=p.charCodeAt(0),y=yl(u.before.charCodeAt(u.before.length-1),g,o);y.inside&&(p=ma(g)+p.slice(1));const b=p.charCodeAt(p.length-1),k=yl(u.after.charCodeAt(0),b,o);k.inside&&(p=p.slice(0,-1)+ma(b));const C=f.move(o);return c(),r.attentionEncodeSurroundingInfo={after:k.outside,before:y.outside},x+p+C}function _2(t,n,r){return r.options.emphasis||"*"}function ux(t,n){let r=!1;return q0(t,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return r=!0,Ef}),!!((!t.depth||t.depth<3)&&Bf(t)&&(n.options.setext||r))}function T2(t,n,r,u){const o=Math.max(Math.min(6,t.depth||1),1),c=r.createTracker(u);if(ux(t,r)){const y=r.enter("headingSetext"),b=r.enter("phrasing"),k=r.containerPhrasing(t,{...c.current(),before:`
|
|
37
|
+
`,after:`
|
|
38
|
+
`});return b(),y(),k+`
|
|
39
|
+
`+(o===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
|
|
40
|
+
`))+1))}const f="#".repeat(o),x=r.enter("headingAtx"),p=r.enter("phrasing");c.move(f+" ");let g=r.containerPhrasing(t,{before:"# ",after:`
|
|
41
|
+
`,...c.current()});return/^[\t ]/.test(g)&&(g=ma(g.charCodeAt(0))+g.slice(1)),g=g?f+" "+g:f,r.options.closeAtx&&(g+=" "+f),p(),x(),g}lx.peek=N2;function lx(t){return t.value||""}function N2(){return"<"}ox.peek=L2;function ox(t,n,r,u){const o=Ff(r),c=o==='"'?"Quote":"Apostrophe",f=r.enter("image");let x=r.enter("label");const p=r.createTracker(u);let g=p.move("![");return g+=p.move(r.safe(t.alt,{before:g,after:"]",...p.current()})),g+=p.move("]("),x(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(x=r.enter("destinationLiteral"),g+=p.move("<"),g+=p.move(r.safe(t.url,{before:g,after:">",...p.current()})),g+=p.move(">")):(x=r.enter("destinationRaw"),g+=p.move(r.safe(t.url,{before:g,after:t.title?" ":")",...p.current()}))),x(),t.title&&(x=r.enter(`title${c}`),g+=p.move(" "+o),g+=p.move(r.safe(t.title,{before:g,after:o,...p.current()})),g+=p.move(o),x()),g+=p.move(")"),f(),g}function L2(){return"!"}cx.peek=D2;function cx(t,n,r,u){const o=t.referenceType,c=r.enter("imageReference");let f=r.enter("label");const x=r.createTracker(u);let p=x.move("![");const g=r.safe(t.alt,{before:p,after:"]",...x.current()});p+=x.move(g+"]["),f();const y=r.stack;r.stack=[],f=r.enter("reference");const b=r.safe(r.associationId(t),{before:p,after:"]",...x.current()});return f(),r.stack=y,c(),o==="full"||!g||g!==b?p+=x.move(b+"]"):o==="shortcut"?p=p.slice(0,-1):p+=x.move("]"),p}function D2(){return"!"}fx.peek=O2;function fx(t,n,r){let u=t.value||"",o="`",c=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(u);)o+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++c<r.unsafe.length;){const f=r.unsafe[c],x=r.compilePattern(f);let p;if(f.atBreak)for(;p=x.exec(u);){let g=p.index;u.charCodeAt(g)===10&&u.charCodeAt(g-1)===13&&g--,u=u.slice(0,g)+" "+u.slice(p.index+1)}}return o+u+o}function O2(){return"`"}function hx(t,n){const r=Bf(t);return!!(!n.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}px.peek=R2;function px(t,n,r,u){const o=Ff(r),c=o==='"'?"Quote":"Apostrophe",f=r.createTracker(u);let x,p;if(hx(t,r)){const y=r.stack;r.stack=[],x=r.enter("autolink");let b=f.move("<");return b+=f.move(r.containerPhrasing(t,{before:b,after:">",...f.current()})),b+=f.move(">"),x(),r.stack=y,b}x=r.enter("link"),p=r.enter("label");let g=f.move("[");return g+=f.move(r.containerPhrasing(t,{before:g,after:"](",...f.current()})),g+=f.move("]("),p(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(p=r.enter("destinationLiteral"),g+=f.move("<"),g+=f.move(r.safe(t.url,{before:g,after:">",...f.current()})),g+=f.move(">")):(p=r.enter("destinationRaw"),g+=f.move(r.safe(t.url,{before:g,after:t.title?" ":")",...f.current()}))),p(),t.title&&(p=r.enter(`title${c}`),g+=f.move(" "+o),g+=f.move(r.safe(t.title,{before:g,after:o,...f.current()})),g+=f.move(o),p()),g+=f.move(")"),x(),g}function R2(t,n,r){return hx(t,r)?"<":"["}dx.peek=M2;function dx(t,n,r,u){const o=t.referenceType,c=r.enter("linkReference");let f=r.enter("label");const x=r.createTracker(u);let p=x.move("[");const g=r.containerPhrasing(t,{before:p,after:"]",...x.current()});p+=x.move(g+"]["),f();const y=r.stack;r.stack=[],f=r.enter("reference");const b=r.safe(r.associationId(t),{before:p,after:"]",...x.current()});return f(),r.stack=y,c(),o==="full"||!g||g!==b?p+=x.move(b+"]"):o==="shortcut"?p=p.slice(0,-1):p+=x.move("]"),p}function M2(){return"["}function jf(t){const n=t.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function I2(t){const n=jf(t),r=t.options.bulletOther;if(!r)return n==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+r+"`) to be different");return r}function V2(t){const n=t.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function mx(t){const n=t.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function B2(t,n,r,u){const o=r.enter("list"),c=r.bulletCurrent;let f=t.ordered?V2(r):jf(r);const x=t.ordered?f==="."?")":".":I2(r);let p=n&&r.bulletLastUsed?f===r.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((f==="*"||f==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(p=!0),mx(r)===f&&y){let b=-1;for(;++b<t.children.length;){const k=t.children[b];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(f=x),r.bulletCurrent=f;const g=r.containerFlow(t,u);return r.bulletLastUsed=f,r.bulletCurrent=c,o(),g}function z2(t){const n=t.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function P2(t,n,r,u){const o=z2(r);let c=r.bulletCurrent||jf(r);n&&n.type==="list"&&n.ordered&&(c=(typeof n.start=="number"&&n.start>-1?n.start:1)+(r.options.incrementListMarker===!1?0:n.children.indexOf(t))+c);let f=c.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||t.spread))&&(f=Math.ceil(f/4)*4);const x=r.createTracker(u);x.move(c+" ".repeat(f-c.length)),x.shift(f);const p=r.enter("listItem"),g=r.indentLines(r.containerFlow(t,x.current()),y);return p(),g;function y(b,k,C){return k?(C?"":" ".repeat(f))+b:(C?c:c+" ".repeat(f-c.length))+b}}function U2(t,n,r,u){const o=r.enter("paragraph"),c=r.enter("phrasing"),f=r.containerPhrasing(t,u);return c(),o(),f}const F2=_l(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function j2(t,n,r,u){return(t.children.some(function(f){return F2(f)})?r.containerPhrasing:r.containerFlow).call(r,t,u)}function q2(t){const n=t.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}xx.peek=H2;function xx(t,n,r,u){const o=q2(r),c=r.enter("strong"),f=r.createTracker(u),x=f.move(o+o);let p=f.move(r.containerPhrasing(t,{after:o,before:x,...f.current()}));const g=p.charCodeAt(0),y=yl(u.before.charCodeAt(u.before.length-1),g,o);y.inside&&(p=ma(g)+p.slice(1));const b=p.charCodeAt(p.length-1),k=yl(u.after.charCodeAt(0),b,o);k.inside&&(p=p.slice(0,-1)+ma(b));const C=f.move(o+o);return c(),r.attentionEncodeSurroundingInfo={after:k.outside,before:y.outside},x+p+C}function H2(t,n,r){return r.options.strong||"*"}function G2(t,n,r,u){return r.safe(t.value,u)}function J2(t){const n=t.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Q2(t,n,r){const u=(mx(r)+(r.options.ruleSpaces?" ":"")).repeat(J2(r));return r.options.ruleSpaces?u.slice(0,-1):u}const qf={blockquote:y2,break:a0,code:E2,definition:C2,emphasis:sx,hardBreak:a0,heading:T2,html:lx,image:ox,imageReference:cx,inlineCode:fx,link:px,linkReference:dx,list:B2,listItem:P2,paragraph:U2,root:j2,strong:xx,text:G2,thematicBreak:Q2},X2=[Y2];function Y2(t,n,r,u){if(n.type==="code"&&Af(n,u)&&(t.type==="list"||t.type===n.type&&Af(t,u)))return!1;if("spread"in r&&typeof r.spread=="boolean")return t.type==="paragraph"&&(t.type===n.type||n.type==="definition"||n.type==="heading"&&ux(n,u))?void 0:r.spread?1:0}const Fa=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Z2=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
42
|
+
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Fa},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
43
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Fa},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
44
|
+
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Fa},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
45
|
+
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
46
|
+
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
47
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Fa},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Fa},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Fa},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Fa},{atBreak:!0,character:"~"}];function K2(t){return t.label||!t.identifier?t.label||"":ex(t.identifier)}function W2(t){if(!t._compiled){const n=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((n?"("+n+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function $2(t,n,r){const u=n.indexStack,o=t.children||[],c=[];let f=-1,x=r.before,p;u.push(-1);let g=n.createTracker(r);for(;++f<o.length;){const y=o[f];let b;if(u[u.length-1]=f,f+1<o.length){let L=n.handle.handlers[o[f+1].type];L&&L.peek&&(L=L.peek),b=L?L(o[f+1],t,n,{before:"",after:"",...g.current()}).charAt(0):""}else b=r.after;c.length>0&&(x==="\r"||x===`
|
|
48
|
+
`)&&y.type==="html"&&(c[c.length-1]=c[c.length-1].replace(/(\r?\n|\r)$/," "),x=" ",g=n.createTracker(r),g.move(c.join("")));let k=n.handle(y,t,n,{...g.current(),after:b,before:x});p&&p===k.slice(0,1)&&(k=ma(p.charCodeAt(0))+k.slice(1));const C=n.attentionEncodeSurroundingInfo;n.attentionEncodeSurroundingInfo=void 0,p=void 0,C&&(c.length>0&&C.before&&x===c[c.length-1].slice(-1)&&(c[c.length-1]=c[c.length-1].slice(0,-1)+ma(x.charCodeAt(0))),C.after&&(p=b)),g.move(k),c.push(k),x=k.slice(-1)}return u.pop(),c.join("")}function tS(t,n,r){const u=n.indexStack,o=t.children||[],c=n.createTracker(r),f=[];let x=-1;for(u.push(-1);++x<o.length;){const p=o[x];u[u.length-1]=x,f.push(c.move(n.handle(p,t,n,{before:`
|
|
49
|
+
`,after:`
|
|
50
|
+
`,...c.current()}))),p.type!=="list"&&(n.bulletLastUsed=void 0),x<o.length-1&&f.push(c.move(eS(p,o[x+1],t,n)))}return u.pop(),f.join("")}function eS(t,n,r,u){let o=u.join.length;for(;o--;){const c=u.join[o](t,n,r,u);if(c===!0||c===1)break;if(typeof c=="number")return`
|
|
51
|
+
`.repeat(1+c);if(c===!1)return`
|
|
52
|
+
|
|
53
|
+
<!---->
|
|
54
|
+
|
|
55
|
+
`}return`
|
|
56
|
+
|
|
57
|
+
`}const iS=/\r?\n|\r/g;function nS(t,n){const r=[];let u=0,o=0,c;for(;c=iS.exec(t);)f(t.slice(u,c.index)),r.push(c[0]),u=c.index+c[0].length,o++;return f(t.slice(u)),r.join("");function f(x){r.push(n(x,o,!x))}}function aS(t,n,r){const u=(r.before||"")+(n||"")+(r.after||""),o=[],c=[],f={};let x=-1;for(;++x<t.unsafe.length;){const y=t.unsafe[x];if(!rx(t.stack,y))continue;const b=t.compilePattern(y);let k;for(;k=b.exec(u);){const C="before"in y||!!y.atBreak,L="after"in y,B=k.index+(C?k[1].length:0);o.includes(B)?(f[B].before&&!C&&(f[B].before=!1),f[B].after&&!L&&(f[B].after=!1)):(o.push(B),f[B]={before:C,after:L})}}o.sort(rS);let p=r.before?r.before.length:0;const g=u.length-(r.after?r.after.length:0);for(x=-1;++x<o.length;){const y=o[x];y<p||y>=g||y+1<g&&o[x+1]===y+1&&f[y].after&&!f[y+1].before&&!f[y+1].after||o[x-1]===y-1&&f[y].before&&!f[y-1].before&&!f[y-1].after||(p!==y&&c.push(r0(u.slice(p,y),"\\")),p=y,/[!-/:-@[-`{-~]/.test(u.charAt(y))&&(!r.encode||!r.encode.includes(u.charAt(y)))?c.push("\\"):(c.push(ma(u.charCodeAt(y))),p++))}return c.push(r0(u.slice(p,g),r.after)),c.join("")}function rS(t,n){return t-n}function r0(t,n){const r=/\\(?=[!-/:-@[-`{-~])/g,u=[],o=[],c=t+n;let f=-1,x=0,p;for(;p=r.exec(c);)u.push(p.index);for(;++f<u.length;)x!==u[f]&&o.push(t.slice(x,u[f])),o.push("\\"),x=u[f];return o.push(t.slice(x)),o.join("")}function sS(t){const n=t||{},r=n.now||{};let u=n.lineShift||0,o=r.line||1,c=r.column||1;return{move:p,current:f,shift:x};function f(){return{now:{line:o,column:c},lineShift:u}}function x(g){u+=g}function p(g){const y=g||"",b=y.split(/\r?\n|\r/g),k=b[b.length-1];return o+=b.length-1,c=b.length===1?c+k.length:1+k.length+u,y}}function uS(t,n){const r=n||{},u={associationId:K2,containerPhrasing:fS,containerFlow:hS,createTracker:sS,compilePattern:W2,enter:c,handlers:{...qf},handle:void 0,indentLines:nS,indexStack:[],join:[...X2],options:{},safe:pS,stack:[],unsafe:[...Z2]};ax(u,r),u.options.tightDefinitions&&u.join.push(cS),u.handle=x2("type",{invalid:lS,unknown:oS,handlers:u.handlers});let o=u.handle(t,void 0,u,{before:`
|
|
58
|
+
`,after:`
|
|
59
|
+
`,now:{line:1,column:1},lineShift:0});return o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
|
|
60
|
+
`),o;function c(f){return u.stack.push(f),x;function x(){u.stack.pop()}}}function lS(t){throw new Error("Cannot handle value `"+t+"`, expected node")}function oS(t){const n=t;throw new Error("Cannot handle unknown node `"+n.type+"`")}function cS(t,n){if(t.type==="definition"&&t.type===n.type)return 0}function fS(t,n){return $2(t,this,n)}function hS(t,n){return tS(t,this,n)}function pS(t,n){return aS(this,t,n)}function dS(t){const n=this;n.compiler=r;function r(u){return uS(u,{...n.data("settings"),...t,extensions:n.data("toMarkdownExtensions")||[]})}}function s0(t){if(t)throw t}var Wc,u0;function mS(){if(u0)return Wc;u0=1;var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=function(g){return typeof Array.isArray=="function"?Array.isArray(g):n.call(g)==="[object Array]"},c=function(g){if(!g||n.call(g)!=="[object Object]")return!1;var y=t.call(g,"constructor"),b=g.constructor&&g.constructor.prototype&&t.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!y&&!b)return!1;var k;for(k in g);return typeof k>"u"||t.call(g,k)},f=function(g,y){r&&y.name==="__proto__"?r(g,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):g[y.name]=y.newValue},x=function(g,y){if(y==="__proto__")if(t.call(g,y)){if(u)return u(g,y).value}else return;return g[y]};return Wc=function p(){var g,y,b,k,C,L,B=arguments[0],F=1,I=arguments.length,G=!1;for(typeof B=="boolean"&&(G=B,B=arguments[1]||{},F=2),(B==null||typeof B!="object"&&typeof B!="function")&&(B={});F<I;++F)if(g=arguments[F],g!=null)for(y in g)b=x(B,y),k=x(g,y),B!==k&&(G&&k&&(c(k)||(C=o(k)))?(C?(C=!1,L=b&&o(b)?b:[]):L=b&&c(b)?b:{},f(B,{name:y,newValue:p(G,L,k)})):typeof k<"u"&&f(B,{name:y,newValue:k}));return B},Wc}var xS=mS();const $c=Js(xS);function _f(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function gS(){const t=[],n={run:r,use:u};return n;function r(...o){let c=-1;const f=o.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);x(null,...o);function x(p,...g){const y=t[++c];let b=-1;if(p){f(p);return}for(;++b<o.length;)(g[b]===null||g[b]===void 0)&&(g[b]=o[b]);o=g,y?bS(y,x)(...g):f(null,...g)}}function u(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),n}}function bS(t,n){let r;return u;function u(...f){const x=t.length>f.length;let p;x&&f.push(o);try{p=t.apply(this,f)}catch(g){const y=g;if(x&&r)throw y;return o(y)}x||(p&&p.then&&typeof p.then=="function"?p.then(c,o):p instanceof Error?o(p):c(p))}function o(f,...x){r||(r=!0,n(f,...x))}function c(f){o(null,f)}}class Qt extends Error{constructor(n,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let o="",c={},f=!1;if(r&&("line"in r&&"column"in r?c={place:r}:"start"in r&&"end"in r?c={place:r}:"type"in r?c={ancestors:[r],place:r.position}:c={...r}),typeof n=="string"?o=n:!c.cause&&n&&(f=!0,o=n.message,c.cause=n),!c.ruleId&&!c.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?c.ruleId=u:(c.source=u.slice(0,p),c.ruleId=u.slice(p+1))}if(!c.place&&c.ancestors&&c.ancestors){const p=c.ancestors[c.ancestors.length-1];p&&(c.place=p.position)}const x=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=x?x.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=x?x.line:void 0,this.name=Tn(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=f&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual,this.expected,this.note,this.url}}Qt.prototype.file="";Qt.prototype.name="";Qt.prototype.reason="";Qt.prototype.message="";Qt.prototype.stack="";Qt.prototype.column=void 0;Qt.prototype.line=void 0;Qt.prototype.ancestors=void 0;Qt.prototype.cause=void 0;Qt.prototype.fatal=void 0;Qt.prototype.place=void 0;Qt.prototype.ruleId=void 0;Qt.prototype.source=void 0;const nn={basename:yS,dirname:vS,extname:SS,join:kS,sep:"/"};function yS(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Qs(t);let r=0,u=-1,o=t.length,c;if(n===void 0||n.length===0||n.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(c){r=o+1;break}}else u<0&&(c=!0,u=o+1);return u<0?"":t.slice(r,u)}if(n===t)return"";let f=-1,x=n.length-1;for(;o--;)if(t.codePointAt(o)===47){if(c){r=o+1;break}}else f<0&&(c=!0,f=o+1),x>-1&&(t.codePointAt(o)===n.codePointAt(x--)?x<0&&(u=o):(x=-1,u=f));return r===u?u=f:u<0&&(u=t.length),t.slice(r,u)}function vS(t){if(Qs(t),t.length===0)return".";let n=-1,r=t.length,u;for(;--r;)if(t.codePointAt(r)===47){if(u){n=r;break}}else u||(u=!0);return n<0?t.codePointAt(0)===47?"/":".":n===1&&t.codePointAt(0)===47?"//":t.slice(0,n)}function SS(t){Qs(t);let n=t.length,r=-1,u=0,o=-1,c=0,f;for(;n--;){const x=t.codePointAt(n);if(x===47){if(f){u=n+1;break}continue}r<0&&(f=!0,r=n+1),x===46?o<0?o=n:c!==1&&(c=1):o>-1&&(c=-1)}return o<0||r<0||c===0||c===1&&o===r-1&&o===u+1?"":t.slice(o,r)}function kS(...t){let n=-1,r;for(;++n<t.length;)Qs(t[n]),t[n]&&(r=r===void 0?t[n]:r+"/"+t[n]);return r===void 0?".":ES(r)}function ES(t){Qs(t);const n=t.codePointAt(0)===47;let r=wS(t,!n);return r.length===0&&!n&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),n?"/"+r:r}function wS(t,n){let r="",u=0,o=-1,c=0,f=-1,x,p;for(;++f<=t.length;){if(f<t.length)x=t.codePointAt(f);else{if(x===47)break;x=47}if(x===47){if(!(o===f-1||c===1))if(o!==f-1&&c===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",u=0):(r=r.slice(0,p),u=r.length-1-r.lastIndexOf("/")),o=f,c=0;continue}}else if(r.length>0){r="",u=0,o=f,c=0;continue}}n&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+t.slice(o+1,f):r=t.slice(o+1,f),u=f-o-1;o=f,c=0}else x===46&&c>-1?c++:c=-1}return r}function Qs(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const CS={cwd:AS};function AS(){return"/"}function Tf(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function _S(t){if(typeof t=="string")t=new URL(t);else if(!Tf(t)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(t.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return TS(t)}function TS(t){if(t.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const n=t.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const u=n.codePointAt(r+2);if(u===70||u===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}const tf=["history","path","basename","stem","extname","dirname"];class NS{constructor(n){let r;n?Tf(n)?r={path:n}:typeof n=="string"||LS(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":CS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<tf.length;){const c=tf[u];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let o;for(o in r)tf.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?nn.basename(this.path):void 0}set basename(n){nf(n,"basename"),ef(n,"basename"),this.path=nn.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?nn.dirname(this.path):void 0}set dirname(n){l0(this.basename,"dirname"),this.path=nn.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?nn.extname(this.path):void 0}set extname(n){if(ef(n,"extname"),l0(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=nn.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Tf(n)&&(n=_S(n)),nf(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?nn.basename(this.path,this.extname):void 0}set stem(n){nf(n,"stem"),ef(n,"stem"),this.path=nn.join(this.dirname||"",n+(this.extname||""))}fail(n,r,u){const o=this.message(n,r,u);throw o.fatal=!0,o}info(n,r,u){const o=this.message(n,r,u);return o.fatal=void 0,o}message(n,r,u){const o=new Qt(n,r,u);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function ef(t,n){if(t&&t.includes(nn.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+nn.sep+"`")}function nf(t,n){if(!t)throw new Error("`"+n+"` cannot be empty")}function l0(t,n){if(!t)throw new Error("Setting `"+n+"` requires `path` to be set too")}function LS(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const DS=function(t){const u=this.constructor.prototype,o=u[t],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,u),c},OS={}.hasOwnProperty;class Hf extends DS{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=gS()}copy(){const n=new Hf;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];n.use(...u)}return n.data($c(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(sf("data",this.frozen),this.namespace[n]=r,this):OS.call(this.namespace,n)&&this.namespace[n]||void 0:n?(sf("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const o=r.call(n,...u);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=pl(n),u=this.parser||this.Parser;return af("parse",u),u(String(r),r)}process(n,r){const u=this;return this.freeze(),af("process",this.parser||this.Parser),rf("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(c,f){const x=pl(n),p=u.parse(x);u.run(p,x,function(y,b,k){if(y||!b||!k)return g(y);const C=b,L=u.stringify(C,k);IS(L)?k.value=L:k.result=L,g(y,k)});function g(y,b){y||!b?f(y):c?c(b):r(void 0,b)}}}processSync(n){let r=!1,u;return this.freeze(),af("processSync",this.parser||this.Parser),rf("processSync",this.compiler||this.Compiler),this.process(n,o),c0("processSync","process",r),u;function o(c,f){r=!0,s0(c),u=f}}run(n,r,u){o0(n),this.freeze();const o=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?c(void 0,u):new Promise(c);function c(f,x){const p=pl(r);o.run(n,p,g);function g(y,b,k){const C=b||n;y?x(y):f?f(C):u(void 0,C,k)}}}runSync(n,r){let u=!1,o;return this.run(n,r,c),c0("runSync","run",u),o;function c(f,x){s0(f),o=x,u=!0}}stringify(n,r){this.freeze();const u=pl(r),o=this.compiler||this.Compiler;return rf("stringify",o),o0(n),o(n,u)}use(n,...r){const u=this.attachers,o=this.namespace;if(sf("use",this.frozen),n!=null)if(typeof n=="function")p(n,r);else if(typeof n=="object")Array.isArray(n)?x(n):f(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function c(g){if(typeof g=="function")p(g,[]);else if(typeof g=="object")if(Array.isArray(g)){const[y,...b]=g;p(y,b)}else f(g);else throw new TypeError("Expected usable value, not `"+g+"`")}function f(g){if(!("plugins"in g)&&!("settings"in g))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");x(g.plugins),g.settings&&(o.settings=$c(!0,o.settings,g.settings))}function x(g){let y=-1;if(g!=null)if(Array.isArray(g))for(;++y<g.length;){const b=g[y];c(b)}else throw new TypeError("Expected a list of plugins, not `"+g+"`")}function p(g,y){let b=-1,k=-1;for(;++b<u.length;)if(u[b][0]===g){k=b;break}if(k===-1)u.push([g,...y]);else if(y.length>0){let[C,...L]=y;const B=u[k][1];_f(B)&&_f(C)&&(C=$c(!0,B,C)),u[k]=[g,C,...L]}}}}const RS=new Hf().freeze();function af(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function rf(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function sf(t,n){if(n)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function o0(t){if(!_f(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function c0(t,n,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+n+"` instead")}function pl(t){return MS(t)?t:new NS(t)}function MS(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function IS(t){return typeof t=="string"||VS(t)}function VS(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const BS=RS().use(m2).use(dS).freeze();function vl(t,n){const r=String(t);if(typeof n!="string")throw new TypeError("Expected character");let u=0,o=r.indexOf(n);for(;o!==-1;)u++,o=r.indexOf(n,o+n.length);return u}function zS(t,n,r){const o=_l((r||{}).ignore||[]),c=PS(n);let f=-1;for(;++f<c.length;)j0(t,"text",x);function x(g,y){let b=-1,k;for(;++b<y.length;){const C=y[b],L=k?k.children:void 0;if(o(C,L?L.indexOf(C):void 0,k))return;k=C}if(k)return p(g,y)}function p(g,y){const b=y[y.length-1],k=c[f][0],C=c[f][1];let L=0;const F=b.children.indexOf(g);let I=!1,G=[];k.lastIndex=0;let z=k.exec(g.value);for(;z;){const W=z.index,V={index:z.index,input:z.input,stack:[...y,g]};let v=C(...z,V);if(typeof v=="string"&&(v=v.length>0?{type:"text",value:v}:void 0),v===!1?k.lastIndex=W+1:(L!==W&&G.push({type:"text",value:g.value.slice(L,W)}),Array.isArray(v)?G.push(...v):v&&G.push(v),L=W+z[0].length,I=!0),!k.global)break;z=k.exec(g.value)}return I?(L<g.value.length&&G.push({type:"text",value:g.value.slice(L)}),b.children.splice(F,1,...G)):G=[g],F+G.length}}function PS(t){const n=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let u=-1;for(;++u<r.length;){const o=r[u];n.push([US(o[0]),FS(o[1])])}return n}function US(t){return typeof t=="string"?new RegExp(U0(t),"g"):t}function FS(t){return typeof t=="function"?t:function(){return t}}const uf="phrasing",lf=["autolink","link","image","label"];function jS(){return{transforms:[YS],enter:{literalAutolink:HS,literalAutolinkEmail:of,literalAutolinkHttp:of,literalAutolinkWww:of},exit:{literalAutolink:XS,literalAutolinkEmail:QS,literalAutolinkHttp:GS,literalAutolinkWww:JS}}}function qS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:uf,notInConstruct:lf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:uf,notInConstruct:lf},{character:":",before:"[ps]",after:"\\/",inConstruct:uf,notInConstruct:lf}]}}function HS(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function of(t){this.config.enter.autolinkProtocol.call(this,t)}function GS(t){this.config.exit.autolinkProtocol.call(this,t)}function JS(t){this.config.exit.data.call(this,t);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(t)}function QS(t){this.config.exit.autolinkEmail.call(this,t)}function XS(t){this.exit(t)}function YS(t){zS(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ZS],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,KS]],{ignore:["link","linkReference"]})}function ZS(t,n,r,u,o){let c="";if(!gx(o)||(/^w/i.test(n)&&(r=n+r,n="",c="http://"),!WS(r)))return!1;const f=$S(r+u);if(!f[0])return!1;const x={type:"link",title:null,url:c+n+f[0],children:[{type:"text",value:n+f[0]}]};return f[1]?[x,{type:"text",value:f[1]}]:x}function KS(t,n,r,u){return!gx(u,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function WS(t){const n=t.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function $S(t){const n=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!n)return[t,void 0];t=t.slice(0,n.index);let r=n[0],u=r.indexOf(")");const o=vl(t,"(");let c=vl(t,")");for(;u!==-1&&o>c;)t+=r.slice(0,u+1),r=r.slice(u+1),u=r.indexOf(")"),c++;return[t,r]}function gx(t,n){const r=t.input.charCodeAt(t.index-1);return(t.index===0||ji(r)||If(r))&&(!n||r!==47)}bx.peek=lk;function tk(){this.buffer()}function ek(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function ik(){this.buffer()}function nk(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function ak(t){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=da(this.sliceSerialize(t)).toLowerCase(),r.label=n}function rk(t){this.exit(t)}function sk(t){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=da(this.sliceSerialize(t)).toLowerCase(),r.label=n}function uk(t){this.exit(t)}function lk(){return"["}function bx(t,n,r,u){const o=r.createTracker(u);let c=o.move("[^");const f=r.enter("footnoteReference"),x=r.enter("reference");return c+=o.move(r.safe(r.associationId(t),{after:"]",before:c})),x(),f(),c+=o.move("]"),c}function ok(){return{enter:{gfmFootnoteCallString:tk,gfmFootnoteCall:ek,gfmFootnoteDefinitionLabelString:ik,gfmFootnoteDefinition:nk},exit:{gfmFootnoteCallString:ak,gfmFootnoteCall:rk,gfmFootnoteDefinitionLabelString:sk,gfmFootnoteDefinition:uk}}}function ck(t){return{handlers:{footnoteDefinition:n,footnoteReference:bx},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,u,o,c){const f=o.createTracker(c);let x=f.move("[^");const p=o.enter("footnoteDefinition"),g=o.enter("label");return x+=f.move(o.safe(o.associationId(r),{before:x,after:"]"})),g(),x+=f.move("]:"),r.children&&r.children.length>0&&(f.shift(4),x+=f.move(" "+o.indentLines(o.containerFlow(r,f.current()),fk))),p(),x}}function fk(t,n,r){return n===0?t:hk(t,n,r)}function hk(t,n,r){return(r?"":" ")+t}const pk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];yx.peek=bk;function dk(){return{canContainEols:["delete"],enter:{strikethrough:xk},exit:{strikethrough:gk}}}function mk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:pk}],handlers:{delete:yx}}}function xk(t){this.enter({type:"delete",children:[]},t)}function gk(t){this.exit(t)}function yx(t,n,r,u){const o=r.createTracker(u),c=r.enter("strikethrough");let f=o.move("~~");return f+=r.containerPhrasing(t,{...o.current(),before:f,after:"~"}),f+=o.move("~~"),c(),f}function bk(){return"~"}function yk(t){return t.length}function vk(t,n){const r=n||{},u=(r.align||[]).concat(),o=r.stringLength||yk,c=[],f=[],x=[],p=[];let g=0,y=-1;for(;++y<t.length;){const B=[],F=[];let I=-1;for(t[y].length>g&&(g=t[y].length);++I<t[y].length;){const G=Sk(t[y][I]);if(r.alignDelimiters!==!1){const z=o(G);F[I]=z,(p[I]===void 0||z>p[I])&&(p[I]=z)}B.push(G)}f[y]=B,x[y]=F}let b=-1;if(typeof u=="object"&&"length"in u)for(;++b<g;)c[b]=f0(u[b]);else{const B=f0(u);for(;++b<g;)c[b]=B}b=-1;const k=[],C=[];for(;++b<g;){const B=c[b];let F="",I="";B===99?(F=":",I=":"):B===108?F=":":B===114&&(I=":");let G=r.alignDelimiters===!1?1:Math.max(1,p[b]-F.length-I.length);const z=F+"-".repeat(G)+I;r.alignDelimiters!==!1&&(G=F.length+G+I.length,G>p[b]&&(p[b]=G),C[b]=G),k[b]=z}f.splice(1,0,k),x.splice(1,0,C),y=-1;const L=[];for(;++y<f.length;){const B=f[y],F=x[y];b=-1;const I=[];for(;++b<g;){const G=B[b]||"";let z="",W="";if(r.alignDelimiters!==!1){const V=p[b]-(F[b]||0),v=c[b];v===114?z=" ".repeat(V):v===99?V%2?(z=" ".repeat(V/2+.5),W=" ".repeat(V/2-.5)):(z=" ".repeat(V/2),W=z):W=" ".repeat(V)}r.delimiterStart!==!1&&!b&&I.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&G==="")&&(r.delimiterStart!==!1||b)&&I.push(" "),r.alignDelimiters!==!1&&I.push(z),I.push(G),r.alignDelimiters!==!1&&I.push(W),r.padding!==!1&&I.push(" "),(r.delimiterEnd!==!1||b!==g-1)&&I.push("|")}L.push(r.delimiterEnd===!1?I.join("").replace(/ +$/,""):I.join(""))}return L.join(`
|
|
61
|
+
`)}function Sk(t){return t==null?"":String(t)}function f0(t){const n=typeof t=="string"?t.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function kk(){return{enter:{table:Ek,tableData:h0,tableHeader:h0,tableRow:Ck},exit:{codeText:Ak,table:wk,tableData:cf,tableHeader:cf,tableRow:cf}}}function Ek(t){const n=t._align;this.enter({type:"table",align:n.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function wk(t){this.exit(t),this.data.inTable=void 0}function Ck(t){this.enter({type:"tableRow",children:[]},t)}function cf(t){this.exit(t)}function h0(t){this.enter({type:"tableCell",children:[]},t)}function Ak(t){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,_k));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(t)}function _k(t,n){return n==="|"?n:t}function Tk(t){const n=t||{},r=n.tableCellPadding,u=n.tablePipeAlign,o=n.stringLength,c=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
62
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:f,tableCell:p,tableRow:x}};function f(C,L,B,F){return g(y(C,B,F),C.align)}function x(C,L,B,F){const I=b(C,B,F),G=g([I]);return G.slice(0,G.indexOf(`
|
|
63
|
+
`))}function p(C,L,B,F){const I=B.enter("tableCell"),G=B.enter("phrasing"),z=B.containerPhrasing(C,{...F,before:c,after:c});return G(),I(),z}function g(C,L){return vk(C,{align:L,alignDelimiters:u,padding:r,stringLength:o})}function y(C,L,B){const F=C.children;let I=-1;const G=[],z=L.enter("table");for(;++I<F.length;)G[I]=b(F[I],L,B);return z(),G}function b(C,L,B){const F=C.children;let I=-1;const G=[],z=L.enter("tableRow");for(;++I<F.length;)G[I]=p(F[I],C,L,B);return z(),G}function k(C,L,B){let F=qf.inlineCode(C,L,B);return B.stack.includes("tableCell")&&(F=F.replace(/\|/g,"\\$&")),F}}function Nk(){return{exit:{taskListCheckValueChecked:p0,taskListCheckValueUnchecked:p0,paragraph:Dk}}}function Lk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ok}}}function p0(t){const n=this.stack[this.stack.length-2];n.type,n.checked=t.type==="taskListCheckValueChecked"}function Dk(t){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const u=r.children[0];if(u&&u.type==="text"){const o=n.children;let c=-1,f;for(;++c<o.length;){const x=o[c];if(x.type==="paragraph"){f=x;break}}f===r&&(u.value=u.value.slice(1),u.value.length===0?r.children.shift():r.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,r.position.start=Object.assign({},u.position.start)))}}this.exit(t)}function Ok(t,n,r,u){const o=t.children[0],c=typeof t.checked=="boolean"&&o&&o.type==="paragraph",f="["+(t.checked?"x":" ")+"] ",x=r.createTracker(u);c&&x.move(f);let p=qf.listItem(t,n,r,{...u,...x.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,g)),p;function g(y){return y+f}}function Rk(){return[jS(),ok(),dk(),kk(),Nk()]}function Mk(t){return{extensions:[qS(),ck(),mk(),Tk(t),Lk()]}}const Ik=Xs(/\p{P}/u),js=Xs(/[A-Za-z]/),Gf=Xs(/[\dA-Za-z]/);function Vk(t){return t!==null&&(t<32||t===127)}const Bk=Xs(/[!-/:-@[-`{-~]/);function Lr(t){return t!==null&&t<-2}function pi(t){return t!==null&&(t<0||t===32)}function An(t){return t===-2||t===-1||t===32}function vx(t){return Bk(t)||Ik(t)}const qs=Xs(/\s/);function Xs(t){return n;function n(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}const zk={tokenize:Hk,partial:!0},Sx={tokenize:Gk,partial:!0},kx={tokenize:Jk,partial:!0},Ex={tokenize:Qk,partial:!0},Pk={tokenize:Xk,partial:!0},wx={name:"wwwAutolink",tokenize:jk,previous:Ax},Cx={name:"protocolAutolink",tokenize:qk,previous:_x},Rn={name:"emailAutolink",tokenize:Fk,previous:Tx},an={};function Uk(){return{text:an}}let ja=48;for(;ja<123;)an[ja]=Rn,ja++,ja===58?ja=65:ja===91&&(ja=97);an[43]=Rn;an[45]=Rn;an[46]=Rn;an[95]=Rn;an[72]=[Rn,Cx];an[104]=[Rn,Cx];an[87]=[Rn,wx];an[119]=[Rn,wx];function Fk(t,n,r){const u=this;let o,c;return f;function f(b){return!Nf(b)||!Tx.call(u,u.previous)||Jf(u.events)?r(b):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),x(b))}function x(b){return Nf(b)?(t.consume(b),x):b===64?(t.consume(b),p):r(b)}function p(b){return b===46?t.check(Pk,y,g)(b):b===45||b===95||Gf(b)?(c=!0,t.consume(b),p):y(b)}function g(b){return t.consume(b),o=!0,p}function y(b){return c&&o&&js(u.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),n(b)):r(b)}}function jk(t,n,r){const u=this;return o;function o(f){return f!==87&&f!==119||!Ax.call(u,u.previous)||Jf(u.events)?r(f):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(zk,t.attempt(Sx,t.attempt(kx,c),r),r)(f))}function c(f){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),n(f)}}function qk(t,n,r){const u=this;let o="",c=!1;return f;function f(b){return(b===72||b===104)&&_x.call(u,u.previous)&&!Jf(u.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(b),t.consume(b),x):r(b)}function x(b){if(js(b)&&o.length<5)return o+=String.fromCodePoint(b),t.consume(b),x;if(b===58){const k=o.toLowerCase();if(k==="http"||k==="https")return t.consume(b),p}return r(b)}function p(b){return b===47?(t.consume(b),c?g:(c=!0,p)):r(b)}function g(b){return b===null||Vk(b)||pi(b)||qs(b)||vx(b)?r(b):t.attempt(Sx,t.attempt(kx,y),r)(b)}function y(b){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),n(b)}}function Hk(t,n,r){let u=0;return o;function o(f){return(f===87||f===119)&&u<3?(u++,t.consume(f),o):f===46&&u===3?(t.consume(f),c):r(f)}function c(f){return f===null?r(f):n(f)}}function Gk(t,n,r){let u,o,c;return f;function f(g){return g===46||g===95?t.check(Ex,p,x)(g):g===null||pi(g)||qs(g)||g!==45&&vx(g)?p(g):(c=!0,t.consume(g),f)}function x(g){return g===95?u=!0:(o=u,u=void 0),t.consume(g),f}function p(g){return o||u||!c?r(g):n(g)}}function Jk(t,n){let r=0,u=0;return o;function o(f){return f===40?(r++,t.consume(f),o):f===41&&u<r?c(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?t.check(Ex,n,c)(f):f===null||pi(f)||qs(f)?n(f):(t.consume(f),o)}function c(f){return f===41&&u++,t.consume(f),o}}function Qk(t,n,r){return u;function u(x){return x===33||x===34||x===39||x===41||x===42||x===44||x===46||x===58||x===59||x===63||x===95||x===126?(t.consume(x),u):x===38?(t.consume(x),c):x===93?(t.consume(x),o):x===60||x===null||pi(x)||qs(x)?n(x):r(x)}function o(x){return x===null||x===40||x===91||pi(x)||qs(x)?n(x):u(x)}function c(x){return js(x)?f(x):r(x)}function f(x){return x===59?(t.consume(x),u):js(x)?(t.consume(x),f):r(x)}}function Xk(t,n,r){return u;function u(c){return t.consume(c),o}function o(c){return Gf(c)?r(c):n(c)}}function Ax(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||pi(t)}function _x(t){return!js(t)}function Tx(t){return!(t===47||Nf(t))}function Nf(t){return t===43||t===45||t===46||t===95||Gf(t)}function Jf(t){let n=t.length,r=!1;for(;n--;){const u=t[n][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){r=!0;break}if(u._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function d0(t){if(t===null||xe(t)||ji(t))return 1;if(If(t))return 2}function Yk(t,n,r){const u=[];let o=-1;for(;++o<t.length;){const c=t[o].resolveAll;c&&!u.includes(c)&&(n=c(n,r),u.push(c))}return n}function Hi(t,n,r,u){const o=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return An(p)?(t.enter(r),x(p)):n(p)}function x(p){return An(p)&&c++<o?(t.consume(p),x):(t.exit(r),n(p))}}const Nx={tokenize:Zk,partial:!0};function Zk(t,n,r){return u;function u(c){return An(c)?Hi(t,o,"linePrefix")(c):o(c)}function o(c){return c===null||Lr(c)?n(c):r(c)}}function Qf(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Kk={tokenize:rE,partial:!0};function Wk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:iE,continuation:{tokenize:nE},exit:aE}},text:{91:{name:"gfmFootnoteCall",tokenize:eE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$k,resolveTo:tE}}}}function $k(t,n,r){const u=this;let o=u.events.length;const c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f;for(;o--;){const p=u.events[o][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 x;function x(p){if(!f||!f._balanced)return r(p);const g=Qf(u.sliceSerialize({start:f.end,end:u.now()}));return g.codePointAt(0)!==94||!c.includes(g.slice(1))?r(p):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),n(p))}}function tE(t,n){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},x=[t[r+1],t[r+2],["enter",u,n],t[r+3],t[r+4],["enter",o,n],["exit",o,n],["enter",c,n],["enter",f,n],["exit",f,n],["exit",c,n],t[t.length-2],t[t.length-1],["exit",u,n]];return t.splice(r,t.length-r+1,...x),t}function eE(t,n,r){const u=this,o=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c=0,f;return x;function x(b){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(b),t.exit("gfmFootnoteCallLabelMarker"),p}function p(b){return b!==94?r(b):(t.enter("gfmFootnoteCallMarker"),t.consume(b),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",g)}function g(b){if(c>999||b===93&&!f||b===null||b===91||pi(b))return r(b);if(b===93){t.exit("chunkString");const k=t.exit("gfmFootnoteCallString");return o.includes(Qf(u.sliceSerialize(k)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(b),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),n):r(b)}return pi(b)||(f=!0),c++,t.consume(b),b===92?y:g}function y(b){return b===91||b===92||b===93?(t.consume(b),c++,g):g(b)}}function iE(t,n,r){const u=this,o=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c,f=0,x;return p;function p(L){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(L),t.exit("gfmFootnoteDefinitionLabelMarker"),g}function g(L){return L===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(L),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(L)}function y(L){if(f>999||L===93&&!x||L===null||L===91||pi(L))return r(L);if(L===93){t.exit("chunkString");const B=t.exit("gfmFootnoteDefinitionLabelString");return c=Qf(u.sliceSerialize(B)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(L),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),k}return pi(L)||(x=!0),f++,t.consume(L),L===92?b:y}function b(L){return L===91||L===92||L===93?(t.consume(L),f++,y):y(L)}function k(L){return L===58?(t.enter("definitionMarker"),t.consume(L),t.exit("definitionMarker"),o.includes(c)||o.push(c),Hi(t,C,"gfmFootnoteDefinitionWhitespace")):r(L)}function C(L){return n(L)}}function nE(t,n,r){return t.check(Nx,n,t.attempt(Kk,n,r))}function aE(t){t.exit("gfmFootnoteDefinition")}function rE(t,n,r){const u=this;return Hi(t,o,"gfmFootnoteDefinitionIndent",5);function o(c){const f=u.events[u.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?n(c):r(c)}}function sE(t){let r=(t||{}).singleTilde;const u={name:"strikethrough",tokenize:c,resolveAll:o};return r==null&&(r=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function o(f,x){let p=-1;for(;++p<f.length;)if(f[p][0]==="enter"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._close){let g=p;for(;g--;)if(f[g][0]==="exit"&&f[g][1].type==="strikethroughSequenceTemporary"&&f[g][1]._open&&f[p][1].end.offset-f[p][1].start.offset===f[g][1].end.offset-f[g][1].start.offset){f[p][1].type="strikethroughSequence",f[g][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},f[g][1].start),end:Object.assign({},f[p][1].end)},b={type:"strikethroughText",start:Object.assign({},f[g][1].end),end:Object.assign({},f[p][1].start)},k=[["enter",y,x],["enter",f[g][1],x],["exit",f[g][1],x],["enter",b,x]],C=x.parser.constructs.insideSpan.null;C&&ml(k,k.length,0,Yk(C,f.slice(g+1,p),x)),ml(k,k.length,0,[["exit",b,x],["enter",f[p][1],x],["exit",f[p][1],x],["exit",y,x]]),ml(f,g-1,p-g+3,k),p=g+k.length-2;break}}for(p=-1;++p<f.length;)f[p][1].type==="strikethroughSequenceTemporary"&&(f[p][1].type="data");return f}function c(f,x,p){const g=this.previous,y=this.events;let b=0;return k;function k(L){return g===126&&y[y.length-1][1].type!=="characterEscape"?p(L):(f.enter("strikethroughSequenceTemporary"),C(L))}function C(L){const B=d0(g);if(L===126)return b>1?p(L):(f.consume(L),b++,C);if(b<2&&!r)return p(L);const F=f.exit("strikethroughSequenceTemporary"),I=d0(L);return F._open=!I||I===2&&!!B,F._close=!B||B===2&&!!I,x(L)}}}class uE{constructor(){this.map=[]}add(n,r,u){lE(this,n,r,u)}consume(n){if(this.map.sort(function(c,f){return c[0]-f[0]}),this.map.length===0)return;let r=this.map.length;const u=[];for(;r>0;)r-=1,u.push(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];u.push(n.slice()),n.length=0;let o=u.pop();for(;o;){for(const c of o)n.push(c);o=u.pop()}this.map.length=0}}function lE(t,n,r,u){let o=0;if(!(r===0&&u.length===0)){for(;o<t.map.length;){if(t.map[o][0]===n){t.map[o][1]+=r,t.map[o][2].push(...u);return}o+=1}t.map.push([n,r,u])}}function oE(t,n){let r=!1;const u=[];for(;n<t.length;){const o=t[n];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&u.push(t[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[n-1][1].type==="tableDelimiterMarker"){const c=u.length-1;u[c]=u[c]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);n+=1}return u}function cE(){return{flow:{null:{name:"table",tokenize:fE,resolveAll:hE}}}}function fE(t,n,r){const u=this;let o=0,c=0,f;return x;function x(q){let ut=u.events.length-1;for(;ut>-1;){const Nt=u.events[ut][1].type;if(Nt==="lineEnding"||Nt==="linePrefix")ut--;else break}const st=ut>-1?u.events[ut][1].type:null,pt=st==="tableHead"||st==="tableRow"?v:p;return pt===v&&u.parser.lazy[u.now().line]?r(q):pt(q)}function p(q){return t.enter("tableHead"),t.enter("tableRow"),g(q)}function g(q){return q===124||(f=!0,c+=1),y(q)}function y(q){return q===null?r(q):Lr(q)?c>1?(c=0,u.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(q),t.exit("lineEnding"),C):r(q):An(q)?Hi(t,y,"whitespace")(q):(c+=1,f&&(f=!1,o+=1),q===124?(t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),f=!0,y):(t.enter("data"),b(q)))}function b(q){return q===null||q===124||pi(q)?(t.exit("data"),y(q)):(t.consume(q),q===92?k:b)}function k(q){return q===92||q===124?(t.consume(q),b):b(q)}function C(q){return u.interrupt=!1,u.parser.lazy[u.now().line]?r(q):(t.enter("tableDelimiterRow"),f=!1,An(q)?Hi(t,L,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):L(q))}function L(q){return q===45||q===58?F(q):q===124?(f=!0,t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),B):V(q)}function B(q){return An(q)?Hi(t,F,"whitespace")(q):F(q)}function F(q){return q===58?(c+=1,f=!0,t.enter("tableDelimiterMarker"),t.consume(q),t.exit("tableDelimiterMarker"),I):q===45?(c+=1,I(q)):q===null||Lr(q)?W(q):V(q)}function I(q){return q===45?(t.enter("tableDelimiterFiller"),G(q)):V(q)}function G(q){return q===45?(t.consume(q),G):q===58?(f=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(q),t.exit("tableDelimiterMarker"),z):(t.exit("tableDelimiterFiller"),z(q))}function z(q){return An(q)?Hi(t,W,"whitespace")(q):W(q)}function W(q){return q===124?L(q):q===null||Lr(q)?!f||o!==c?V(q):(t.exit("tableDelimiterRow"),t.exit("tableHead"),n(q)):V(q)}function V(q){return r(q)}function v(q){return t.enter("tableRow"),R(q)}function R(q){return q===124?(t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),R):q===null||Lr(q)?(t.exit("tableRow"),n(q)):An(q)?Hi(t,R,"whitespace")(q):(t.enter("data"),X(q))}function X(q){return q===null||q===124||pi(q)?(t.exit("data"),R(q)):(t.consume(q),q===92?rt:X)}function rt(q){return q===92||q===124?(t.consume(q),X):X(q)}}function hE(t,n){let r=-1,u=!0,o=0,c=[0,0,0,0],f=[0,0,0,0],x=!1,p=0,g,y,b;const k=new uE;for(;++r<t.length;){const C=t[r],L=C[1];C[0]==="enter"?L.type==="tableHead"?(x=!1,p!==0&&(m0(k,n,p,g,y),y=void 0,p=0),g={type:"table",start:Object.assign({},L.start),end:Object.assign({},L.end)},k.add(r,0,[["enter",g,n]])):L.type==="tableRow"||L.type==="tableDelimiterRow"?(u=!0,b=void 0,c=[0,0,0,0],f=[0,r+1,0,0],x&&(x=!1,y={type:"tableBody",start:Object.assign({},L.start),end:Object.assign({},L.end)},k.add(r,0,[["enter",y,n]])),o=L.type==="tableDelimiterRow"?2:y?3:1):o&&(L.type==="data"||L.type==="tableDelimiterMarker"||L.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],b=dl(k,n,c,o,void 0,b),c=[0,0,0,0]),f[2]=r)):L.type==="tableCellDivider"&&(u?u=!1:(c[1]!==0&&(f[0]=f[1],b=dl(k,n,c,o,void 0,b)),c=f,f=[c[1],r,0,0])):L.type==="tableHead"?(x=!0,p=r):L.type==="tableRow"||L.type==="tableDelimiterRow"?(p=r,c[1]!==0?(f[0]=f[1],b=dl(k,n,c,o,r,b)):f[1]!==0&&(b=dl(k,n,f,o,r,b)),o=0):o&&(L.type==="data"||L.type==="tableDelimiterMarker"||L.type==="tableDelimiterFiller")&&(f[3]=r)}for(p!==0&&m0(k,n,p,g,y),k.consume(n.events),r=-1;++r<n.events.length;){const C=n.events[r];C[0]==="enter"&&C[1].type==="table"&&(C[1]._align=oE(n.events,r))}return t}function dl(t,n,r,u,o,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",x="tableContent";r[0]!==0&&(c.end=Object.assign({},Tr(n.events,r[0])),t.add(r[0],0,[["exit",c,n]]));const p=Tr(n.events,r[1]);if(c={type:f,start:Object.assign({},p),end:Object.assign({},p)},t.add(r[1],0,[["enter",c,n]]),r[2]!==0){const g=Tr(n.events,r[2]),y=Tr(n.events,r[3]),b={type:x,start:Object.assign({},g),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",b,n]]),u!==2){const k=n.events[r[2]],C=n.events[r[3]];if(k[1].end=Object.assign({},C[1].end),k[1].type="chunkText",k[1].contentType="text",r[3]>r[2]+1){const L=r[2]+1,B=r[3]-r[2]-1;t.add(L,B,[])}}t.add(r[3]+1,0,[["exit",b,n]])}return o!==void 0&&(c.end=Object.assign({},Tr(n.events,o)),t.add(o,0,[["exit",c,n]]),c=void 0),c}function m0(t,n,r,u,o){const c=[],f=Tr(n.events,r);o&&(o.end=Object.assign({},f),c.push(["exit",o,n])),u.end=Object.assign({},f),c.push(["exit",u,n]),t.add(r+1,0,c)}function Tr(t,n){const r=t[n],u=r[0]==="enter"?"start":"end";return r[1][u]}const pE={name:"tasklistCheck",tokenize:mE};function dE(){return{text:{91:pE}}}function mE(t,n,r){const u=this;return o;function o(p){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?r(p):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),c)}function c(p){return pi(p)?(t.enter("taskListCheckValueUnchecked"),t.consume(p),t.exit("taskListCheckValueUnchecked"),f):p===88||p===120?(t.enter("taskListCheckValueChecked"),t.consume(p),t.exit("taskListCheckValueChecked"),f):r(p)}function f(p){return p===93?(t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),x):r(p)}function x(p){return Lr(p)?n(p):An(p)?t.check({tokenize:xE},n,r)(p):r(p)}}function xE(t,n,r){return Hi(t,u,"whitespace");function u(o){return o===null?r(o):n(o)}}function gE(t){return zf([Uk(),Wk(),sE(t),cE(),dE()])}const bE={};function yE(t){const n=this,r=t||bE,u=n.data(),o=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);o.push(gE(r)),c.push(Rk()),f.push(Mk(r))}function vE(){return{enter:{mdxFlowExpression:kE,mdxTextExpression:EE},exit:{mdxFlowExpression:x0,mdxFlowExpressionChunk:g0,mdxTextExpression:x0,mdxTextExpressionChunk:g0}}}function SE(){return{handlers:{mdxFlowExpression:b0,mdxTextExpression:b0},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]}}function kE(t){this.enter({type:"mdxFlowExpression",value:""},t),this.buffer()}function EE(t){this.enter({type:"mdxTextExpression",value:""},t),this.buffer()}function x0(t){const n=this.resume(),r=t.estree,u=this.stack[this.stack.length-1];u.type==="mdxFlowExpression"||u.type,this.exit(t),u.value=n,r&&(u.data={estree:r})}function g0(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}function b0(t,n,r){const u=t.value||"";return"{"+r.indentLines(u,function(c,f,x){return(f===0||x?"":" ")+c})+"}"}const wE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],y0={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Lx(t){const n=typeof t=="string"?t.charCodeAt(0):t;return n>=48&&n<=57}function CE(t){const n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}function AE(t){const n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=122||n>=65&&n<=90}function v0(t){return AE(t)||Lx(t)}const _E=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function TE(t,n){const r=n||{},u=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,o=[];let c=0,f=-1,x="",p,g;r.position&&("start"in r.position||"indent"in r.position?(g=r.position.indent,p=r.position.start):p=r.position);let y=(p?p.line:0)||1,b=(p?p.column:0)||1,k=L(),C;for(c--;++c<=t.length;)if(C===10&&(b=(g?g[f]:0)||1),C=t.charCodeAt(c),C===38){const I=t.charCodeAt(c+1);if(I===9||I===10||I===12||I===32||I===38||I===60||Number.isNaN(I)||u&&I===u){x+=String.fromCharCode(C),b++;continue}const G=c+1;let z=G,W=G,V;if(I===35){W=++z;const pt=t.charCodeAt(W);pt===88||pt===120?(V="hexadecimal",W=++z):V="decimal"}else V="named";let v="",R="",X="";const rt=V==="named"?v0:V==="decimal"?Lx:CE;for(W--;++W<=t.length;){const pt=t.charCodeAt(W);if(!rt(pt))break;X+=String.fromCharCode(pt),V==="named"&&wE.includes(X)&&(v=X,R=Fs(X))}let q=t.charCodeAt(W)===59;if(q){W++;const pt=V==="named"?Fs(X):!1;pt&&(v=X,R=pt)}let ut=1+W-G,st="";if(!(!q&&r.nonTerminated===!1))if(!X)V!=="named"&&B(4,ut);else if(V==="named"){if(q&&!R)B(5,1);else if(v!==X&&(W=z+v.length,ut=1+W-z,q=!1),!q){const pt=v?1:3;if(r.attribute){const Nt=t.charCodeAt(W);Nt===61?(B(pt,ut),R=""):v0(Nt)?R="":B(pt,ut)}else B(pt,ut)}st=R}else{q||B(2,ut);let pt=Number.parseInt(X,V==="hexadecimal"?16:10);if(NE(pt))B(7,ut),st="�";else if(pt in y0)B(6,ut),st=y0[pt];else{let Nt="";LE(pt)&&B(6,ut),pt>65535&&(pt-=65536,Nt+=String.fromCharCode(pt>>>10|55296),pt=56320|pt&1023),st=Nt+String.fromCharCode(pt)}}if(st){F(),k=L(),c=W-1,b+=W-G+1,o.push(st);const pt=L();pt.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,st,{start:k,end:pt},t.slice(G-1,W)),k=pt}else X=t.slice(G-1,W),x+=X,b+=X.length,c=W-1}else C===10&&(y++,f++,b=0),Number.isNaN(C)?F():(x+=String.fromCharCode(C),b++);return o.join("");function L(){return{line:y,column:b,offset:c+((p?p.offset:0)||0)}}function B(I,G){let z;r.warning&&(z=L(),z.column+=G,z.offset+=G,r.warning.call(r.warningContext||void 0,_E[I],z,I))}function F(){x&&(o.push(x),r.text&&r.text.call(r.textContext||void 0,x,{start:k,end:L()}),x="")}}function NE(t){return t>=55296&&t<=57343||t>1114111}function LE(t){return t>=1&&t<=8||t===11||t>=13&&t<=31||t>=127&&t<=159||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534}const DE=/["&'<>`]/g,OE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,RE=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ME=/[|\\{}()[\]^$+*?.]/g,S0=new WeakMap;function IE(t,n){if(t=t.replace(n.subset?VE(n.subset):DE,u),n.subset||n.escapeOnly)return t;return t.replace(OE,r).replace(RE,u);function r(o,c,f){return n.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,f.charCodeAt(c+2),n)}function u(o,c,f){return n.format(o.charCodeAt(0),f.charCodeAt(c+1),n)}}function VE(t){let n=S0.get(t);return n||(n=BE(t),S0.set(t,n)),n}function BE(t){const n=[];let r=-1;for(;++r<t.length;)n.push(t[r].replace(ME,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}function zE(t){return"&#x"+t.toString(16).toUpperCase()+";"}function PE(t,n){return IE(t,Object.assign({format:zE},n))}const Dx=" ";function UE(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:u,mdxJsxFlowTagClosingMarker:o,mdxJsxFlowTagAttribute:b,mdxJsxFlowTagExpressionAttribute:k,mdxJsxFlowTagAttributeValueLiteral:t,mdxJsxFlowTagAttributeValueExpression:t,mdxJsxFlowTagSelfClosingMarker:f,mdxJsxTextTag:u,mdxJsxTextTagClosingMarker:o,mdxJsxTextTagAttribute:b,mdxJsxTextTagExpressionAttribute:k,mdxJsxTextTagAttributeValueLiteral:t,mdxJsxTextTagAttributeValueExpression:t,mdxJsxTextTagSelfClosingMarker:f},exit:{mdxJsxFlowTagClosingMarker:x,mdxJsxFlowTagNamePrimary:p,mdxJsxFlowTagNameMember:g,mdxJsxFlowTagNameLocal:y,mdxJsxFlowTagExpressionAttribute:C,mdxJsxFlowTagExpressionAttributeValue:r,mdxJsxFlowTagAttributeNamePrimary:L,mdxJsxFlowTagAttributeNameLocal:B,mdxJsxFlowTagAttributeValueLiteral:F,mdxJsxFlowTagAttributeValueLiteralValue:r,mdxJsxFlowTagAttributeValueExpression:I,mdxJsxFlowTagAttributeValueExpressionValue:r,mdxJsxFlowTagSelfClosingMarker:G,mdxJsxFlowTag:z,mdxJsxTextTagClosingMarker:x,mdxJsxTextTagNamePrimary:p,mdxJsxTextTagNameMember:g,mdxJsxTextTagNameLocal:y,mdxJsxTextTagExpressionAttribute:C,mdxJsxTextTagExpressionAttributeValue:r,mdxJsxTextTagAttributeNamePrimary:L,mdxJsxTextTagAttributeNameLocal:B,mdxJsxTextTagAttributeValueLiteral:F,mdxJsxTextTagAttributeValueLiteralValue:r,mdxJsxTextTagAttributeValueExpression:I,mdxJsxTextTagAttributeValueExpressionValue:r,mdxJsxTextTagSelfClosingMarker:G,mdxJsxTextTag:z}};function t(){this.buffer()}function n(R){return{line:R.line,column:R.column,offset:R.offset}}function r(R){this.config.enter.data.call(this,R),this.config.exit.data.call(this,R)}function u(R){const X={name:void 0,attributes:[],close:!1,selfClosing:!1,start:R.start,end:R.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=X,this.buffer()}function o(R){if(this.data.mdxJsxTagStack.length===0)throw new Qt("Unexpected closing slash `/` in tag, expected an open tag first",{start:R.start,end:R.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function c(R){if(this.data.mdxJsxTag.close)throw new Qt("Unexpected attribute in closing tag, expected the end of the tag",{start:R.start,end:R.end},"mdast-util-mdx-jsx:unexpected-attribute")}function f(R){if(this.data.mdxJsxTag.close)throw new Qt("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:R.start,end:R.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function x(){const R=this.data.mdxJsxTag;R.close=!0}function p(R){const X=this.data.mdxJsxTag;X.name=this.sliceSerialize(R)}function g(R){const X=this.data.mdxJsxTag;X.name+="."+this.sliceSerialize(R)}function y(R){const X=this.data.mdxJsxTag;X.name+=":"+this.sliceSerialize(R)}function b(R){const X=this.data.mdxJsxTag;c.call(this,R),X.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:n(R.start),end:void 0}})}function k(R){const X=this.data.mdxJsxTag;c.call(this,R),X.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:n(R.start),end:void 0}}),this.buffer()}function C(R){const X=this.data.mdxJsxTag,rt=X.attributes[X.attributes.length-1];rt.type;const q=R.estree;rt.value=this.resume(),rt.position,rt.position.end=n(R.end),q&&(rt.data={estree:q})}function L(R){const X=this.data.mdxJsxTag,rt=X.attributes[X.attributes.length-1];rt.type,rt.name=this.sliceSerialize(R),rt.position,rt.position.end=n(R.end)}function B(R){const X=this.data.mdxJsxTag,rt=X.attributes[X.attributes.length-1];rt.type,rt.name+=":"+this.sliceSerialize(R),rt.position,rt.position.end=n(R.end)}function F(R){const X=this.data.mdxJsxTag,rt=X.attributes[X.attributes.length-1];rt.value=TE(this.resume(),{nonTerminated:!1}),rt.position,rt.position.end=n(R.end)}function I(R){const X=this.data.mdxJsxTag,rt=X.attributes[X.attributes.length-1];rt.type;const q={type:"mdxJsxAttributeValueExpression",value:this.resume()},ut=R.estree;ut&&(q.data={estree:ut}),rt.value=q,rt.position,rt.position.end=n(R.end)}function G(){const R=this.data.mdxJsxTag;R.selfClosing=!0}function z(R){const X=this.data.mdxJsxTag,rt=this.data.mdxJsxTagStack,q=rt[rt.length-1];if(X.close&&q.name!==X.name)throw new Qt("Unexpected closing tag `"+v(X)+"`, expected corresponding closing tag for `"+v(q)+"` ("+Tn(q)+")",{start:R.start,end:R.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),X.close?rt.pop():this.enter({type:R.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:X.name||null,attributes:X.attributes,children:[]},R,W),X.selfClosing||X.close?this.exit(R,V):rt.push(X)}function W(R,X){const rt=this.data.mdxJsxTagStack,q=rt[rt.length-1],ut=R?" before the end of `"+R.type+"`":"",st=R?{start:R.start,end:R.end}:void 0;throw new Qt("Expected a closing tag for `"+v(q)+"` ("+Tn({start:X.start,end:X.end})+")"+ut,st,"mdast-util-mdx-jsx:end-tag-mismatch")}function V(R,X){const rt=this.data.mdxJsxTag;throw new Qt("Expected the closing tag `"+v(rt)+"` either after the end of `"+X.type+"` ("+Tn(X.end)+") or another opening tag after the start of `"+X.type+"` ("+Tn(X.start)+")",{start:R.start,end:R.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function v(R){return"<"+(R.close?"/":"")+(R.name||"")+">"}}function FE(t){const n=t||{},r=n.quote||'"',u=n.quoteSmart||!1,o=n.tightSelfClosing||!1,c=n.printWidth||Number.POSITIVE_INFINITY,f=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize attribute values with `"+r+"` for `options.quote`, expected `\"`, or `'`");return x.peek=qE,{handlers:{mdxJsxFlowElement:x,mdxJsxTextElement:x},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function x(p,g,y,b){const k=p.type==="mdxJsxFlowElement",C=p.name?!p.children||p.children.length===0:!1,L=Ox(y),B=Rx(L),F=y.createTracker(b),I=y.createTracker(b),G=[],z=(k?B:"")+"<"+(p.name||""),W=y.enter(p.type);if(F.move(z),I.move(z),p.attributes&&p.attributes.length>0){if(!p.name)throw new Error("Cannot serialize fragment w/ attributes");let rt=-1;for(;++rt<p.attributes.length;){const q=p.attributes[rt];let ut;if(q.type==="mdxJsxExpressionAttribute")ut="{"+(q.value||"")+"}";else{if(!q.name)throw new Error("Cannot serialize attribute w/o name");const st=q.value,pt=q.name;let Nt="";if(st!=null)if(typeof st=="object")Nt="{"+(st.value||"")+"}";else{const vt=u&&vl(st,r)>vl(st,f)?f:r;Nt=vt+PE(st,{subset:[vt]})+vt}ut=pt+(Nt?"=":"")+Nt}G.push(ut)}}let V=!1;const v=G.join(" ");k&&(/\r?\n|\r/.test(v)||F.current().now.column+v.length+(C?o?2:3:1)>c)&&(V=!0);let R=F,X=z;if(V){R=I;let rt=-1;for(;++rt<G.length;)G[rt]=B+Dx+G[rt];X+=R.move(`
|
|
64
|
+
`+G.join(`
|
|
65
|
+
`)+`
|
|
66
|
+
`+B)}else v&&(X+=R.move(" "+v));return C&&(X+=R.move((o||V?"":" ")+"/")),X+=R.move(">"),p.children&&p.children.length>0&&(p.type==="mdxJsxTextElement"?X+=R.move(y.containerPhrasing(p,{...R.current(),before:">",after:"<"})):(R.shift(2),X+=R.move(`
|
|
67
|
+
`),X+=R.move(jE(p,y,R.current())),X+=R.move(`
|
|
68
|
+
`))),C||(X+=R.move((k?B:"")+"</"+(p.name||"")+">")),W(),X}}function jE(t,n,r){const u=n.indexStack,o=t.children,c=n.createTracker(r),f=Rx(Ox(n)),x=[];let p=-1;for(u.push(-1);++p<o.length;){const g=o[p];u[u.length-1]=p;const y={before:`
|
|
69
|
+
`,after:`
|
|
70
|
+
`,...c.current()},b=n.handle(g,t,n,y),k=g.type==="mdxJsxFlowElement"?b:n.indentLines(b,function(C,L,B){return(B?"":f)+C});x.push(c.move(k)),g.type!=="list"&&(n.bulletLastUsed=void 0),p<o.length-1&&x.push(c.move(`
|
|
71
|
+
|
|
72
|
+
`))}return u.pop(),x.join("")}function Ox(t){let n=0,r=t.stack.length;for(;--r>-1;){const u=t.stack[r];if(u==="blockquote"||u==="listItem")break;u==="mdxJsxFlowElement"&&n++}return n}function Rx(t){return Dx.repeat(t)}function qE(){return"<"}function HE(){return{enter:{mdxjsEsm:JE},exit:{mdxjsEsm:QE,mdxjsEsmData:XE}}}function GE(){return{handlers:{mdxjsEsm:YE}}}function JE(t){this.enter({type:"mdxjsEsm",value:""},t),this.buffer()}function QE(t){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,this.exit(t);const u=t.estree;r.value=n,u&&(r.data={estree:u})}function XE(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}function YE(t){return t.value||""}function ZE(){return[vE(),UE(),HE()]}function KE(t){return{extensions:[SE(),FE(t),GE()]}}var WE=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],Mx=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],$E="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Ix="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ff={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},hf="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",tw={5:hf,"5module":hf+" export import",6:hf+" const class extends export import super"},ew=/^in(stanceof)?$/,iw=new RegExp("["+Ix+"]"),nw=new RegExp("["+Ix+$E+"]");function Lf(t,n){for(var r=65536,u=0;u<n.length;u+=2){if(r+=n[u],r>t)return!1;if(r+=n[u+1],r>=t)return!0}return!1}function Ln(t,n){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&iw.test(String.fromCharCode(t)):n===!1?!1:Lf(t,Mx)}function Or(t,n){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&nw.test(String.fromCharCode(t)):n===!1?!1:Lf(t,Mx)||Lf(t,WE)}var jt=function(n,r){r===void 0&&(r={}),this.label=n,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function _i(t,n){return new jt(t,{beforeExpr:!0,binop:n})}var Ti={beforeExpr:!0},ii={startsExpr:!0},Xf={};function Pt(t,n){return n===void 0&&(n={}),n.keyword=t,Xf[t]=new jt(t,n)}var _={num:new jt("num",ii),regexp:new jt("regexp",ii),string:new jt("string",ii),name:new jt("name",ii),privateId:new jt("privateId",ii),eof:new jt("eof"),bracketL:new jt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new jt("]"),braceL:new jt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new jt("}"),parenL:new jt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new jt(")"),comma:new jt(",",Ti),semi:new jt(";",Ti),colon:new jt(":",Ti),dot:new jt("."),question:new jt("?",Ti),questionDot:new jt("?."),arrow:new jt("=>",Ti),template:new jt("template"),invalidTemplate:new jt("invalidTemplate"),ellipsis:new jt("...",Ti),backQuote:new jt("`",ii),dollarBraceL:new jt("${",{beforeExpr:!0,startsExpr:!0}),eq:new jt("=",{beforeExpr:!0,isAssign:!0}),assign:new jt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new jt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new jt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:_i("||",1),logicalAND:_i("&&",2),bitwiseOR:_i("|",3),bitwiseXOR:_i("^",4),bitwiseAND:_i("&",5),equality:_i("==/!=/===/!==",6),relational:_i("</>/<=/>=",7),bitShift:_i("<</>>/>>>",8),plusMin:new jt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:_i("%",10),star:_i("*",10),slash:_i("/",10),starstar:new jt("**",{beforeExpr:!0}),coalesce:_i("??",1),_break:Pt("break"),_case:Pt("case",Ti),_catch:Pt("catch"),_continue:Pt("continue"),_debugger:Pt("debugger"),_default:Pt("default",Ti),_do:Pt("do",{isLoop:!0,beforeExpr:!0}),_else:Pt("else",Ti),_finally:Pt("finally"),_for:Pt("for",{isLoop:!0}),_function:Pt("function",ii),_if:Pt("if"),_return:Pt("return",Ti),_switch:Pt("switch"),_throw:Pt("throw",Ti),_try:Pt("try"),_var:Pt("var"),_const:Pt("const"),_while:Pt("while",{isLoop:!0}),_with:Pt("with"),_new:Pt("new",{beforeExpr:!0,startsExpr:!0}),_this:Pt("this",ii),_super:Pt("super",ii),_class:Pt("class",ii),_extends:Pt("extends",Ti),_export:Pt("export"),_import:Pt("import",ii),_null:Pt("null",ii),_true:Pt("true",ii),_false:Pt("false",ii),_in:Pt("in",{beforeExpr:!0,binop:7}),_instanceof:Pt("instanceof",{beforeExpr:!0,binop:7}),_typeof:Pt("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Pt("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Pt("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Oi=/\r\n?|\n|\u2028|\u2029/,aw=new RegExp(Oi.source,"g");function Rr(t){return t===10||t===13||t===8232||t===8233}function Vx(t,n,r){r===void 0&&(r=t.length);for(var u=n;u<r;u++){var o=t.charCodeAt(u);if(Rr(o))return u<r-1&&o===13&&t.charCodeAt(u+1)===10?u+2:u+1}return-1}var Bx=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Li=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,zx=Object.prototype,rw=zx.hasOwnProperty,sw=zx.toString,Mr=Object.hasOwn||function(t,n){return rw.call(t,n)},k0=Array.isArray||function(t){return sw.call(t)==="[object Array]"},E0=Object.create(null);function pa(t){return E0[t]||(E0[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function Dn(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}var uw=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Hs=function(n,r){this.line=n,this.column=r};Hs.prototype.offset=function(n){return new Hs(this.line,this.column+n)};var Ll=function(n,r,u){this.start=r,this.end=u,n.sourceFile!==null&&(this.source=n.sourceFile)};function Px(t,n){for(var r=1,u=0;;){var o=Vx(t,u,n);if(o<0)return new Hs(r,n-u);++r,u=o}}var Df={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},w0=!1;function lw(t){var n={};for(var r in Df)n[r]=t&&Mr(t,r)?t[r]:Df[r];if(n.ecmaVersion==="latest"?n.ecmaVersion=1e8:n.ecmaVersion==null?(!w0&&typeof console=="object"&&console.warn&&(w0=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
73
|
+
Defaulting to 2020, but this will stop working in the future.`)),n.ecmaVersion=11):n.ecmaVersion>=2015&&(n.ecmaVersion-=2009),n.allowReserved==null&&(n.allowReserved=n.ecmaVersion<5),(!t||t.allowHashBang==null)&&(n.allowHashBang=n.ecmaVersion>=14),k0(n.onToken)){var u=n.onToken;n.onToken=function(o){return u.push(o)}}return k0(n.onComment)&&(n.onComment=ow(n,n.onComment)),n}function ow(t,n){return function(r,u,o,c,f,x){var p={type:r?"Block":"Line",value:u,start:o,end:c};t.locations&&(p.loc=new Ll(this,f,x)),t.ranges&&(p.range=[o,c]),n.push(p)}}var Gs=1,Ir=2,Yf=4,Ux=8,Zf=16,Fx=32,Dl=64,jx=128,qa=256,Ys=512,Ol=Gs|Ir|qa;function Kf(t,n){return Ir|(t?Yf:0)|(n?Ux:0)}var Sl=0,Wf=1,Mn=2,qx=3,Hx=4,Gx=5,Ne=function(n,r,u){this.options=n=lw(n),this.sourceFile=n.sourceFile,this.keywords=pa(tw[n.ecmaVersion>=6?6:n.sourceType==="module"?"5module":5]);var o="";n.allowReserved!==!0&&(o=ff[n.ecmaVersion>=6?6:n.ecmaVersion===5?5:3],n.sourceType==="module"&&(o+=" await")),this.reservedWords=pa(o);var c=(o?o+" ":"")+ff.strict;this.reservedWordsStrict=pa(c),this.reservedWordsStrictBind=pa(c+" "+ff.strictBind),this.input=String(r),this.containsEsc=!1,u?(this.pos=u,this.lineStart=this.input.lastIndexOf(`
|
|
74
|
+
`,u-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Oi).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=_.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=n.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&n.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Gs),this.regexpState=null,this.privateNameStack=[]},rn={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ne.prototype.parse=function(){var n=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(n)};rn.inFunction.get=function(){return(this.currentVarScope().flags&Ir)>0};rn.inGenerator.get=function(){return(this.currentVarScope().flags&Ux)>0};rn.inAsync.get=function(){return(this.currentVarScope().flags&Yf)>0};rn.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var n=this.scopeStack[t],r=n.flags;if(r&(qa|Ys))return!1;if(r&Ir)return(r&Yf)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};rn.allowSuper.get=function(){var t=this.currentThisScope(),n=t.flags;return(n&Dl)>0||this.options.allowSuperOutsideMethod};rn.allowDirectSuper.get=function(){return(this.currentThisScope().flags&jx)>0};rn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};rn.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var n=this.scopeStack[t],r=n.flags;if(r&(qa|Ys)||r&Ir&&!(r&Zf))return!0}return!1};rn.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&qa)>0};Ne.extend=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];for(var u=this,o=0;o<n.length;o++)u=n[o](u);return u};Ne.parse=function(n,r){return new this(r,n).parse()};Ne.parseExpressionAt=function(n,r,u){var o=new this(u,n,r);return o.nextToken(),o.parseExpression()};Ne.tokenizer=function(n,r){return new this(r,n)};Object.defineProperties(Ne.prototype,rn);var Qe=Ne.prototype,cw=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Qe.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){Li.lastIndex=t,t+=Li.exec(this.input)[0].length;var n=cw.exec(this.input.slice(t));if(!n)return!1;if((n[1]||n[2])==="use strict"){Li.lastIndex=t+n[0].length;var r=Li.exec(this.input),u=r.index+r[0].length,o=this.input.charAt(u);return o===";"||o==="}"||Oi.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(o)||o==="!"&&this.input.charAt(u+1)==="=")}t+=n[0].length,Li.lastIndex=t,t+=Li.exec(this.input)[0].length,this.input[t]===";"&&t++}};Qe.eat=function(t){return this.type===t?(this.next(),!0):!1};Qe.isContextual=function(t){return this.type===_.name&&this.value===t&&!this.containsEsc};Qe.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};Qe.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};Qe.canInsertSemicolon=function(){return this.type===_.eof||this.type===_.braceR||Oi.test(this.input.slice(this.lastTokEnd,this.start))};Qe.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Qe.semicolon=function(){!this.eat(_.semi)&&!this.insertSemicolon()&&this.unexpected()};Qe.afterTrailingComma=function(t,n){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),n||this.next(),!0};Qe.expect=function(t){this.eat(t)||this.unexpected()};Qe.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var Rl=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Qe.checkPatternErrors=function(t,n){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var r=n?t.parenthesizedAssign:t.parenthesizedBind;r>-1&&this.raiseRecoverable(r,n?"Assigning to rvalue":"Parenthesized pattern")}};Qe.checkExpressionErrors=function(t,n){if(!t)return!1;var r=t.shorthandAssign,u=t.doubleProto;if(!n)return r>=0||u>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),u>=0&&this.raiseRecoverable(u,"Redefinition of __proto__ property")};Qe.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Qe.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var bt=Ne.prototype;bt.parseTopLevel=function(t){var n=Object.create(null);for(t.body||(t.body=[]);this.type!==_.eof;){var r=this.parseStatement(null,!0,n);t.body.push(r)}if(this.inModule)for(var u=0,o=Object.keys(this.undefinedExports);u<o.length;u+=1){var c=o[u];this.raiseRecoverable(this.undefinedExports[c].start,"Export '"+c+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var $f={kind:"loop"},fw={kind:"switch"};bt.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Li.lastIndex=this.pos;var n=Li.exec(this.input),r=this.pos+n[0].length,u=this.input.charCodeAt(r);if(u===91||u===92)return!0;if(t)return!1;if(u===123||u>55295&&u<56320)return!0;if(Ln(u,!0)){for(var o=r+1;Or(u=this.input.charCodeAt(o),!0);)++o;if(u===92||u>55295&&u<56320)return!0;var c=this.input.slice(r,o);if(!ew.test(c))return!0}return!1};bt.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Li.lastIndex=this.pos;var t=Li.exec(this.input),n=this.pos+t[0].length,r;return!Oi.test(this.input.slice(this.pos,n))&&this.input.slice(n,n+8)==="function"&&(n+8===this.input.length||!(Or(r=this.input.charCodeAt(n+8))||r>55295&&r<56320))};bt.parseStatement=function(t,n,r){var u=this.type,o=this.startNode(),c;switch(this.isLet(t)&&(u=_._var,c="let"),u){case _._break:case _._continue:return this.parseBreakContinueStatement(o,u.keyword);case _._debugger:return this.parseDebuggerStatement(o);case _._do:return this.parseDoStatement(o);case _._for:return this.parseForStatement(o);case _._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!t);case _._class:return t&&this.unexpected(),this.parseClass(o,!0);case _._if:return this.parseIfStatement(o);case _._return:return this.parseReturnStatement(o);case _._switch:return this.parseSwitchStatement(o);case _._throw:return this.parseThrowStatement(o);case _._try:return this.parseTryStatement(o);case _._const:case _._var:return c=c||this.value,t&&c!=="var"&&this.unexpected(),this.parseVarStatement(o,c);case _._while:return this.parseWhileStatement(o);case _._with:return this.parseWithStatement(o);case _.braceL:return this.parseBlock(!0,o);case _.semi:return this.parseEmptyStatement(o);case _._export:case _._import:if(this.options.ecmaVersion>10&&u===_._import){Li.lastIndex=this.pos;var f=Li.exec(this.input),x=this.pos+f[0].length,p=this.input.charCodeAt(x);if(p===40||p===46)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(n||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),u===_._import?this.parseImport(o):this.parseExport(o,r);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!t);var g=this.value,y=this.parseExpression();return u===_.name&&y.type==="Identifier"&&this.eat(_.colon)?this.parseLabeledStatement(o,g,y,t):this.parseExpressionStatement(o,y)}};bt.parseBreakContinueStatement=function(t,n){var r=n==="break";this.next(),this.eat(_.semi)||this.insertSemicolon()?t.label=null:this.type!==_.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var u=0;u<this.labels.length;++u){var o=this.labels[u];if((t.label==null||o.name===t.label.name)&&(o.kind!=null&&(r||o.kind==="loop")||t.label&&r))break}return u===this.labels.length&&this.raise(t.start,"Unsyntactic "+n),this.finishNode(t,r?"BreakStatement":"ContinueStatement")};bt.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};bt.parseDoStatement=function(t){return this.next(),this.labels.push($f),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(_._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(_.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};bt.parseForStatement=function(t){this.next();var n=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push($f),this.enterScope(0),this.expect(_.parenL),this.type===_.semi)return n>-1&&this.unexpected(n),this.parseFor(t,null);var r=this.isLet();if(this.type===_._var||this.type===_._const||r){var u=this.startNode(),o=r?"let":this.value;return this.next(),this.parseVar(u,!0,o),this.finishNode(u,"VariableDeclaration"),(this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&u.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===_._in?n>-1&&this.unexpected(n):t.await=n>-1),this.parseForIn(t,u)):(n>-1&&this.unexpected(n),this.parseFor(t,u))}var c=this.isContextual("let"),f=!1,x=this.containsEsc,p=new Rl,g=this.start,y=n>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===_._in||(f=this.options.ecmaVersion>=6&&this.isContextual("of"))?(n>-1?(this.type===_._in&&this.unexpected(n),t.await=!0):f&&this.options.ecmaVersion>=8&&(y.start===g&&!x&&y.type==="Identifier"&&y.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(t.await=!1)),c&&f&&this.raise(y.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(y,!1,p),this.checkLValPattern(y),this.parseForIn(t,y)):(this.checkExpressionErrors(p,!0),n>-1&&this.unexpected(n),this.parseFor(t,y))};bt.parseFunctionStatement=function(t,n,r){return this.next(),this.parseFunction(t,Us|(r?0:Of),!1,n)};bt.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(_._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};bt.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(_.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};bt.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(_.braceL),this.labels.push(fw),this.enterScope(0);for(var n,r=!1;this.type!==_.braceR;)if(this.type===_._case||this.type===_._default){var u=this.type===_._case;n&&this.finishNode(n,"SwitchCase"),t.cases.push(n=this.startNode()),n.consequent=[],this.next(),u?n.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,n.test=null),this.expect(_.colon)}else n||this.unexpected(),n.consequent.push(this.parseStatement(null));return this.exitScope(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};bt.parseThrowStatement=function(t){return this.next(),Oi.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var hw=[];bt.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),n=t.type==="Identifier";return this.enterScope(n?Fx:0),this.checkLValPattern(t,n?Hx:Mn),this.expect(_.parenR),t};bt.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===_._catch){var n=this.startNode();this.next(),this.eat(_.parenL)?n.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),n.param=null,this.enterScope(0)),n.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(n,"CatchClause")}return t.finalizer=this.eat(_._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};bt.parseVarStatement=function(t,n,r){return this.next(),this.parseVar(t,!1,n,r),this.semicolon(),this.finishNode(t,"VariableDeclaration")};bt.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push($f),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};bt.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};bt.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};bt.parseLabeledStatement=function(t,n,r,u){for(var o=0,c=this.labels;o<c.length;o+=1){var f=c[o];f.name===n&&this.raise(r.start,"Label '"+n+"' is already declared")}for(var x=this.type.isLoop?"loop":this.type===_._switch?"switch":null,p=this.labels.length-1;p>=0;p--){var g=this.labels[p];if(g.statementStart===t.start)g.statementStart=this.start,g.kind=x;else break}return this.labels.push({name:n,kind:x,statementStart:this.start}),t.body=this.parseStatement(u?u.indexOf("label")===-1?u+"label":u:"label"),this.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")};bt.parseExpressionStatement=function(t,n){return t.expression=n,this.semicolon(),this.finishNode(t,"ExpressionStatement")};bt.parseBlock=function(t,n,r){for(t===void 0&&(t=!0),n===void 0&&(n=this.startNode()),n.body=[],this.expect(_.braceL),t&&this.enterScope(0);this.type!==_.braceR;){var u=this.parseStatement(null);n.body.push(u)}return r&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(n,"BlockStatement")};bt.parseFor=function(t,n){return t.init=n,this.expect(_.semi),t.test=this.type===_.semi?null:this.parseExpression(),this.expect(_.semi),t.update=this.type===_.parenR?null:this.parseExpression(),this.expect(_.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};bt.parseForIn=function(t,n){var r=this.type===_._in;return this.next(),n.type==="VariableDeclaration"&&n.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||n.kind!=="var"||n.declarations[0].id.type!=="Identifier")&&this.raise(n.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=n,t.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(_.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")};bt.parseVar=function(t,n,r,u){for(t.declarations=[],t.kind=r;;){var o=this.startNode();if(this.parseVarId(o,r),this.eat(_.eq)?o.init=this.parseMaybeAssign(n):!u&&r==="const"&&!(this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!u&&o.id.type!=="Identifier"&&!(n&&(this.type===_._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):o.init=null,t.declarations.push(this.finishNode(o,"VariableDeclarator")),!this.eat(_.comma))break}return t};bt.parseVarId=function(t,n){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,n==="var"?Wf:Mn,!1)};var Us=1,Of=2,Jx=4;bt.parseFunction=function(t,n,r,u,o){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!u)&&(this.type===_.star&&n&Of&&this.unexpected(),t.generator=this.eat(_.star)),this.options.ecmaVersion>=8&&(t.async=!!u),n&Us&&(t.id=n&Jx&&this.type!==_.name?null:this.parseIdent(),t.id&&!(n&Of)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?Wf:Mn:qx));var c=this.yieldPos,f=this.awaitPos,x=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Kf(t.async,t.generator)),n&Us||(t.id=this.type===_.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,r,!1,o),this.yieldPos=c,this.awaitPos=f,this.awaitIdentPos=x,this.finishNode(t,n&Us?"FunctionDeclaration":"FunctionExpression")};bt.parseFunctionParams=function(t){this.expect(_.parenL),t.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};bt.parseClass=function(t,n){this.next();var r=this.strict;this.strict=!0,this.parseClassId(t,n),this.parseClassSuper(t);var u=this.enterClassBody(),o=this.startNode(),c=!1;for(o.body=[],this.expect(_.braceL);this.type!==_.braceR;){var f=this.parseClassElement(t.superClass!==null);f&&(o.body.push(f),f.type==="MethodDefinition"&&f.kind==="constructor"?(c&&this.raiseRecoverable(f.start,"Duplicate constructor in the same class"),c=!0):f.key&&f.key.type==="PrivateIdentifier"&&pw(u,f)&&this.raiseRecoverable(f.key.start,"Identifier '#"+f.key.name+"' has already been declared"))}return this.strict=r,this.next(),t.body=this.finishNode(o,"ClassBody"),this.exitClassBody(),this.finishNode(t,n?"ClassDeclaration":"ClassExpression")};bt.parseClassElement=function(t){if(this.eat(_.semi))return null;var n=this.options.ecmaVersion,r=this.startNode(),u="",o=!1,c=!1,f="method",x=!1;if(this.eatContextual("static")){if(n>=13&&this.eat(_.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===_.star?x=!0:u="static"}if(r.static=x,!u&&n>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===_.star)&&!this.canInsertSemicolon()?c=!0:u="async"),!u&&(n>=9||!c)&&this.eat(_.star)&&(o=!0),!u&&!c&&!o){var p=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?f=p:u=p)}if(u?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=u,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),n<13||this.type===_.parenL||f!=="method"||o||c){var g=!r.static&&kl(r,"constructor"),y=g&&t;g&&f!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=g?"constructor":f,this.parseClassMethod(r,o,c,y)}else this.parseClassField(r);return r};bt.isClassElementNameStart=function(){return this.type===_.name||this.type===_.privateId||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword};bt.parseClassElementName=function(t){this.type===_.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)};bt.parseClassMethod=function(t,n,r,u){var o=t.key;t.kind==="constructor"?(n&&this.raise(o.start,"Constructor can't be a generator"),r&&this.raise(o.start,"Constructor can't be an async method")):t.static&&kl(t,"prototype")&&this.raise(o.start,"Classes may not have a static property named prototype");var c=t.value=this.parseMethod(n,r,u);return t.kind==="get"&&c.params.length!==0&&this.raiseRecoverable(c.start,"getter should have no params"),t.kind==="set"&&c.params.length!==1&&this.raiseRecoverable(c.start,"setter should have exactly one param"),t.kind==="set"&&c.params[0].type==="RestElement"&&this.raiseRecoverable(c.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")};bt.parseClassField=function(t){return kl(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&kl(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(_.eq)?(this.enterScope(Ys|Dl),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")};bt.parseClassStaticBlock=function(t){t.body=[];var n=this.labels;for(this.labels=[],this.enterScope(qa|Dl);this.type!==_.braceR;){var r=this.parseStatement(null);t.body.push(r)}return this.next(),this.exitScope(),this.labels=n,this.finishNode(t,"StaticBlock")};bt.parseClassId=function(t,n){this.type===_.name?(t.id=this.parseIdent(),n&&this.checkLValSimple(t.id,Mn,!1)):(n===!0&&this.unexpected(),t.id=null)};bt.parseClassSuper=function(t){t.superClass=this.eat(_._extends)?this.parseExprSubscripts(null,!1):null};bt.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared};bt.exitClassBody=function(){var t=this.privateNameStack.pop(),n=t.declared,r=t.used;if(this.options.checkPrivateFields)for(var u=this.privateNameStack.length,o=u===0?null:this.privateNameStack[u-1],c=0;c<r.length;++c){var f=r[c];Mr(n,f.name)||(o?o.used.push(f):this.raiseRecoverable(f.start,"Private field '#"+f.name+"' must be declared in an enclosing class"))}};function pw(t,n){var r=n.key.name,u=t[r],o="true";return n.type==="MethodDefinition"&&(n.kind==="get"||n.kind==="set")&&(o=(n.static?"s":"i")+n.kind),u==="iget"&&o==="iset"||u==="iset"&&o==="iget"||u==="sget"&&o==="sset"||u==="sset"&&o==="sget"?(t[r]="true",!1):u?!0:(t[r]=o,!1)}function kl(t,n){var r=t.computed,u=t.key;return!r&&(u.type==="Identifier"&&u.name===n||u.type==="Literal"&&u.value===n)}bt.parseExportAllDeclaration=function(t,n){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(n,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==_.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")};bt.parseExport=function(t,n){if(this.next(),this.eat(_.star))return this.parseExportAllDeclaration(t,n);if(this.eat(_._default))return this.checkExport(n,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(n,t.declaration.declarations):this.checkExport(n,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(n),this.eatContextual("from"))this.type!==_.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var r=0,u=t.specifiers;r<u.length;r+=1){var o=u[r];this.checkUnreserved(o.local),this.checkLocalExport(o.local),o.local.type==="Literal"&&this.raise(o.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};bt.parseExportDeclaration=function(t){return this.parseStatement(null)};bt.parseExportDefaultDeclaration=function(){var t;if(this.type===_._function||(t=this.isAsyncFunction())){var n=this.startNode();return this.next(),t&&this.next(),this.parseFunction(n,Us|Jx,!1,t)}else if(this.type===_._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var u=this.parseMaybeAssign();return this.semicolon(),u}};bt.checkExport=function(t,n,r){t&&(typeof n!="string"&&(n=n.type==="Identifier"?n.name:n.value),Mr(t,n)&&this.raiseRecoverable(r,"Duplicate export '"+n+"'"),t[n]=!0)};bt.checkPatternExport=function(t,n){var r=n.type;if(r==="Identifier")this.checkExport(t,n,n.start);else if(r==="ObjectPattern")for(var u=0,o=n.properties;u<o.length;u+=1){var c=o[u];this.checkPatternExport(t,c)}else if(r==="ArrayPattern")for(var f=0,x=n.elements;f<x.length;f+=1){var p=x[f];p&&this.checkPatternExport(t,p)}else r==="Property"?this.checkPatternExport(t,n.value):r==="AssignmentPattern"?this.checkPatternExport(t,n.left):r==="RestElement"&&this.checkPatternExport(t,n.argument)};bt.checkVariableExport=function(t,n){if(t)for(var r=0,u=n;r<u.length;r+=1){var o=u[r];this.checkPatternExport(t,o.id)}};bt.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};bt.parseExportSpecifier=function(t){var n=this.startNode();return n.local=this.parseModuleExportName(),n.exported=this.eatContextual("as")?this.parseModuleExportName():n.local,this.checkExport(t,n.exported,n.exported.start),this.finishNode(n,"ExportSpecifier")};bt.parseExportSpecifiers=function(t){var n=[],r=!0;for(this.expect(_.braceL);!this.eat(_.braceR);){if(r)r=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;n.push(this.parseExportSpecifier(t))}return n};bt.parseImport=function(t){return this.next(),this.type===_.string?(t.specifiers=hw,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===_.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};bt.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,Mn),this.finishNode(t,"ImportSpecifier")};bt.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,Mn),this.finishNode(t,"ImportDefaultSpecifier")};bt.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,Mn),this.finishNode(t,"ImportNamespaceSpecifier")};bt.parseImportSpecifiers=function(){var t=[],n=!0;if(this.type===_.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(_.comma)))return t;if(this.type===_.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(_.braceL);!this.eat(_.braceR);){if(n)n=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;t.push(this.parseImportSpecifier())}return t};bt.parseWithClause=function(){var t=[];if(!this.eat(_._with))return t;this.expect(_.braceL);for(var n={},r=!0;!this.eat(_.braceR);){if(r)r=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;var u=this.parseImportAttribute(),o=u.key.type==="Identifier"?u.key.name:u.key.value;Mr(n,o)&&this.raiseRecoverable(u.key.start,"Duplicate attribute key '"+o+"'"),n[o]=!0,t.push(u)}return t};bt.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===_.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(_.colon),this.type!==_.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")};bt.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===_.string){var t=this.parseLiteral(this.value);return uw.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)};bt.adaptDirectivePrologue=function(t){for(var n=0;n<t.length&&this.isDirectiveCandidate(t[n]);++n)t[n].directive=t[n].expression.raw.slice(1,-1)};bt.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var Ri=Ne.prototype;Ri.toAssignable=function(t,n,r){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var u=0,o=t.properties;u<o.length;u+=1){var c=o[u];this.toAssignable(c,n),c.type==="RestElement"&&(c.argument.type==="ArrayPattern"||c.argument.type==="ObjectPattern")&&this.raise(c.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,n);break;case"ArrayExpression":t.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(t.elements,n);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,n),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,n);break;case"ParenthesizedExpression":this.toAssignable(t.expression,n,r);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!n)break;default:this.raise(t.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return t};Ri.toAssignableList=function(t,n){for(var r=t.length,u=0;u<r;u++){var o=t[u];o&&this.toAssignable(o,n)}if(r){var c=t[r-1];this.options.ecmaVersion===6&&n&&c&&c.type==="RestElement"&&c.argument.type!=="Identifier"&&this.unexpected(c.argument.start)}return t};Ri.parseSpread=function(t){var n=this.startNode();return this.next(),n.argument=this.parseMaybeAssign(!1,t),this.finishNode(n,"SpreadElement")};Ri.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==_.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};Ri.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case _.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(_.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case _.braceL:return this.parseObj(!0)}return this.parseIdent()};Ri.parseBindingList=function(t,n,r,u){for(var o=[],c=!0;!this.eat(t);)if(c?c=!1:this.expect(_.comma),n&&this.type===_.comma)o.push(null);else{if(r&&this.afterTrailingComma(t))break;if(this.type===_.ellipsis){var f=this.parseRestBinding();this.parseBindingListItem(f),o.push(f),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else o.push(this.parseAssignableListItem(u))}return o};Ri.parseAssignableListItem=function(t){var n=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(n),n};Ri.parseBindingListItem=function(t){return t};Ri.parseMaybeDefault=function(t,n,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(_.eq))return r;var u=this.startNodeAt(t,n);return u.left=r,u.right=this.parseMaybeAssign(),this.finishNode(u,"AssignmentPattern")};Ri.checkLValSimple=function(t,n,r){n===void 0&&(n=Sl);var u=n!==Sl;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(u?"Binding ":"Assigning to ")+t.name+" in strict mode"),u&&(n===Mn&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),r&&(Mr(r,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),r[t.name]=!0),n!==Gx&&this.declareName(t.name,n,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":u&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return u&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,n,r);default:this.raise(t.start,(u?"Binding":"Assigning to")+" rvalue")}};Ri.checkLValPattern=function(t,n,r){switch(n===void 0&&(n=Sl),t.type){case"ObjectPattern":for(var u=0,o=t.properties;u<o.length;u+=1){var c=o[u];this.checkLValInnerPattern(c,n,r)}break;case"ArrayPattern":for(var f=0,x=t.elements;f<x.length;f+=1){var p=x[f];p&&this.checkLValInnerPattern(p,n,r)}break;default:this.checkLValSimple(t,n,r)}};Ri.checkLValInnerPattern=function(t,n,r){switch(n===void 0&&(n=Sl),t.type){case"Property":this.checkLValInnerPattern(t.value,n,r);break;case"AssignmentPattern":this.checkLValPattern(t.left,n,r);break;case"RestElement":this.checkLValPattern(t.argument,n,r);break;default:this.checkLValPattern(t,n,r)}};var Fi=function(n,r,u,o,c){this.token=n,this.isExpr=!!r,this.preserveSpace=!!u,this.override=o,this.generator=!!c},oe={b_stat:new Fi("{",!1),b_expr:new Fi("{",!0),b_tmpl:new Fi("${",!1),p_stat:new Fi("(",!1),p_expr:new Fi("(",!0),q_tmpl:new Fi("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new Fi("function",!1),f_expr:new Fi("function",!0),f_expr_gen:new Fi("function",!0,!1,null,!0),f_gen:new Fi("function",!1,!1,null,!0)},Vr=Ne.prototype;Vr.initialContext=function(){return[oe.b_stat]};Vr.curContext=function(){return this.context[this.context.length-1]};Vr.braceIsBlock=function(t){var n=this.curContext();return n===oe.f_expr||n===oe.f_stat?!0:t===_.colon&&(n===oe.b_stat||n===oe.b_expr)?!n.isExpr:t===_._return||t===_.name&&this.exprAllowed?Oi.test(this.input.slice(this.lastTokEnd,this.start)):t===_._else||t===_.semi||t===_.eof||t===_.parenR||t===_.arrow?!0:t===_.braceL?n===oe.b_stat:t===_._var||t===_._const||t===_.name?!1:!this.exprAllowed};Vr.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var n=this.context[t];if(n.token==="function")return n.generator}return!1};Vr.updateContext=function(t){var n,r=this.type;r.keyword&&t===_.dot?this.exprAllowed=!1:(n=r.updateContext)?n.call(this,t):this.exprAllowed=r.beforeExpr};Vr.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)};_.parenR.updateContext=_.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===oe.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr};_.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?oe.b_stat:oe.b_expr),this.exprAllowed=!0};_.dollarBraceL.updateContext=function(){this.context.push(oe.b_tmpl),this.exprAllowed=!0};_.parenL.updateContext=function(t){var n=t===_._if||t===_._for||t===_._with||t===_._while;this.context.push(n?oe.p_stat:oe.p_expr),this.exprAllowed=!0};_.incDec.updateContext=function(){};_._function.updateContext=_._class.updateContext=function(t){t.beforeExpr&&t!==_._else&&!(t===_.semi&&this.curContext()!==oe.p_stat)&&!(t===_._return&&Oi.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===_.colon||t===_.braceL)&&this.curContext()===oe.b_stat)?this.context.push(oe.f_expr):this.context.push(oe.f_stat),this.exprAllowed=!1};_.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};_.backQuote.updateContext=function(){this.curContext()===oe.q_tmpl?this.context.pop():this.context.push(oe.q_tmpl),this.exprAllowed=!1};_.star.updateContext=function(t){if(t===_._function){var n=this.context.length-1;this.context[n]===oe.f_expr?this.context[n]=oe.f_expr_gen:this.context[n]=oe.f_gen}this.exprAllowed=!0};_.name.updateContext=function(t){var n=!1;this.options.ecmaVersion>=6&&t!==_.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(n=!0),this.exprAllowed=n};var _t=Ne.prototype;_t.checkPropClash=function(t,n,r){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var u=t.key,o;switch(u.type){case"Identifier":o=u.name;break;case"Literal":o=String(u.value);break;default:return}var c=t.kind;if(this.options.ecmaVersion>=6){o==="__proto__"&&c==="init"&&(n.proto&&(r?r.doubleProto<0&&(r.doubleProto=u.start):this.raiseRecoverable(u.start,"Redefinition of __proto__ property")),n.proto=!0);return}o="$"+o;var f=n[o];if(f){var x;c==="init"?x=this.strict&&f.init||f.get||f.set:x=f.init||f[c],x&&this.raiseRecoverable(u.start,"Redefinition of property")}else f=n[o]={init:!1,get:!1,set:!1};f[c]=!0}};_t.parseExpression=function(t,n){var r=this.start,u=this.startLoc,o=this.parseMaybeAssign(t,n);if(this.type===_.comma){var c=this.startNodeAt(r,u);for(c.expressions=[o];this.eat(_.comma);)c.expressions.push(this.parseMaybeAssign(t,n));return this.finishNode(c,"SequenceExpression")}return o};_t.parseMaybeAssign=function(t,n,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var u=!1,o=-1,c=-1,f=-1;n?(o=n.parenthesizedAssign,c=n.trailingComma,f=n.doubleProto,n.parenthesizedAssign=n.trailingComma=-1):(n=new Rl,u=!0);var x=this.start,p=this.startLoc;(this.type===_.parenL||this.type===_.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var g=this.parseMaybeConditional(t,n);if(r&&(g=r.call(this,g,x,p)),this.type.isAssign){var y=this.startNodeAt(x,p);return y.operator=this.value,this.type===_.eq&&(g=this.toAssignable(g,!1,n)),u||(n.parenthesizedAssign=n.trailingComma=n.doubleProto=-1),n.shorthandAssign>=g.start&&(n.shorthandAssign=-1),this.type===_.eq?this.checkLValPattern(g):this.checkLValSimple(g),y.left=g,this.next(),y.right=this.parseMaybeAssign(t),f>-1&&(n.doubleProto=f),this.finishNode(y,"AssignmentExpression")}else u&&this.checkExpressionErrors(n,!0);return o>-1&&(n.parenthesizedAssign=o),c>-1&&(n.trailingComma=c),g};_t.parseMaybeConditional=function(t,n){var r=this.start,u=this.startLoc,o=this.parseExprOps(t,n);if(this.checkExpressionErrors(n))return o;if(this.eat(_.question)){var c=this.startNodeAt(r,u);return c.test=o,c.consequent=this.parseMaybeAssign(),this.expect(_.colon),c.alternate=this.parseMaybeAssign(t),this.finishNode(c,"ConditionalExpression")}return o};_t.parseExprOps=function(t,n){var r=this.start,u=this.startLoc,o=this.parseMaybeUnary(n,!1,!1,t);return this.checkExpressionErrors(n)||o.start===r&&o.type==="ArrowFunctionExpression"?o:this.parseExprOp(o,r,u,-1,t)};_t.parseExprOp=function(t,n,r,u,o){var c=this.type.binop;if(c!=null&&(!o||this.type!==_._in)&&c>u){var f=this.type===_.logicalOR||this.type===_.logicalAND,x=this.type===_.coalesce;x&&(c=_.logicalAND.binop);var p=this.value;this.next();var g=this.start,y=this.startLoc,b=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,o),g,y,c,o),k=this.buildBinary(n,r,t,b,p,f||x);return(f&&this.type===_.coalesce||x&&(this.type===_.logicalOR||this.type===_.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(k,n,r,u,o)}return t};_t.buildBinary=function(t,n,r,u,o,c){u.type==="PrivateIdentifier"&&this.raise(u.start,"Private identifier can only be left side of binary expression");var f=this.startNodeAt(t,n);return f.left=r,f.operator=o,f.right=u,this.finishNode(f,c?"LogicalExpression":"BinaryExpression")};_t.parseMaybeUnary=function(t,n,r,u){var o=this.start,c=this.startLoc,f;if(this.isContextual("await")&&this.canAwait)f=this.parseAwait(u),n=!0;else if(this.type.prefix){var x=this.startNode(),p=this.type===_.incDec;x.operator=this.value,x.prefix=!0,this.next(),x.argument=this.parseMaybeUnary(null,!0,p,u),this.checkExpressionErrors(t,!0),p?this.checkLValSimple(x.argument):this.strict&&x.operator==="delete"&&Qx(x.argument)?this.raiseRecoverable(x.start,"Deleting local variable in strict mode"):x.operator==="delete"&&Rf(x.argument)?this.raiseRecoverable(x.start,"Private fields can not be deleted"):n=!0,f=this.finishNode(x,p?"UpdateExpression":"UnaryExpression")}else if(!n&&this.type===_.privateId)(u||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),f=this.parsePrivateIdent(),this.type!==_._in&&this.unexpected();else{if(f=this.parseExprSubscripts(t,u),this.checkExpressionErrors(t))return f;for(;this.type.postfix&&!this.canInsertSemicolon();){var g=this.startNodeAt(o,c);g.operator=this.value,g.prefix=!1,g.argument=f,this.checkLValSimple(f),this.next(),f=this.finishNode(g,"UpdateExpression")}}if(!r&&this.eat(_.starstar))if(n)this.unexpected(this.lastTokStart);else return this.buildBinary(o,c,f,this.parseMaybeUnary(null,!1,!1,u),"**",!1);else return f};function Qx(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&Qx(t.expression)}function Rf(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&Rf(t.expression)||t.type==="ParenthesizedExpression"&&Rf(t.expression)}_t.parseExprSubscripts=function(t,n){var r=this.start,u=this.startLoc,o=this.parseExprAtom(t,n);if(o.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return o;var c=this.parseSubscripts(o,r,u,!1,n);return t&&c.type==="MemberExpression"&&(t.parenthesizedAssign>=c.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=c.start&&(t.parenthesizedBind=-1),t.trailingComma>=c.start&&(t.trailingComma=-1)),c};_t.parseSubscripts=function(t,n,r,u,o){for(var c=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,f=!1;;){var x=this.parseSubscript(t,n,r,u,c,f,o);if(x.optional&&(f=!0),x===t||x.type==="ArrowFunctionExpression"){if(f){var p=this.startNodeAt(n,r);p.expression=x,x=this.finishNode(p,"ChainExpression")}return x}t=x}};_t.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(_.arrow)};_t.parseSubscriptAsyncArrow=function(t,n,r,u){return this.parseArrowExpression(this.startNodeAt(t,n),r,!0,u)};_t.parseSubscript=function(t,n,r,u,o,c,f){var x=this.options.ecmaVersion>=11,p=x&&this.eat(_.questionDot);u&&p&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var g=this.eat(_.bracketL);if(g||p&&this.type!==_.parenL&&this.type!==_.backQuote||this.eat(_.dot)){var y=this.startNodeAt(n,r);y.object=t,g?(y.property=this.parseExpression(),this.expect(_.bracketR)):this.type===_.privateId&&t.type!=="Super"?y.property=this.parsePrivateIdent():y.property=this.parseIdent(this.options.allowReserved!=="never"),y.computed=!!g,x&&(y.optional=p),t=this.finishNode(y,"MemberExpression")}else if(!u&&this.eat(_.parenL)){var b=new Rl,k=this.yieldPos,C=this.awaitPos,L=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var B=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1,b);if(o&&!p&&this.shouldParseAsyncArrow())return this.checkPatternErrors(b,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=k,this.awaitPos=C,this.awaitIdentPos=L,this.parseSubscriptAsyncArrow(n,r,B,f);this.checkExpressionErrors(b,!0),this.yieldPos=k||this.yieldPos,this.awaitPos=C||this.awaitPos,this.awaitIdentPos=L||this.awaitIdentPos;var F=this.startNodeAt(n,r);F.callee=t,F.arguments=B,x&&(F.optional=p),t=this.finishNode(F,"CallExpression")}else if(this.type===_.backQuote){(p||c)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var I=this.startNodeAt(n,r);I.tag=t,I.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(I,"TaggedTemplateExpression")}return t};_t.parseExprAtom=function(t,n,r){this.type===_.slash&&this.readRegexp();var u,o=this.potentialArrowAt===this.start;switch(this.type){case _._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),u=this.startNode(),this.next(),this.type===_.parenL&&!this.allowDirectSuper&&this.raise(u.start,"super() call outside constructor of a subclass"),this.type!==_.dot&&this.type!==_.bracketL&&this.type!==_.parenL&&this.unexpected(),this.finishNode(u,"Super");case _._this:return u=this.startNode(),this.next(),this.finishNode(u,"ThisExpression");case _.name:var c=this.start,f=this.startLoc,x=this.containsEsc,p=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!x&&p.name==="async"&&!this.canInsertSemicolon()&&this.eat(_._function))return this.overrideContext(oe.f_expr),this.parseFunction(this.startNodeAt(c,f),0,!1,!0,n);if(o&&!this.canInsertSemicolon()){if(this.eat(_.arrow))return this.parseArrowExpression(this.startNodeAt(c,f),[p],!1,n);if(this.options.ecmaVersion>=8&&p.name==="async"&&this.type===_.name&&!x&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return p=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(_.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(c,f),[p],!0,n)}return p;case _.regexp:var g=this.value;return u=this.parseLiteral(g.value),u.regex={pattern:g.pattern,flags:g.flags},u;case _.num:case _.string:return this.parseLiteral(this.value);case _._null:case _._true:case _._false:return u=this.startNode(),u.value=this.type===_._null?null:this.type===_._true,u.raw=this.type.keyword,this.next(),this.finishNode(u,"Literal");case _.parenL:var y=this.start,b=this.parseParenAndDistinguishExpression(o,n);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(b)&&(t.parenthesizedAssign=y),t.parenthesizedBind<0&&(t.parenthesizedBind=y)),b;case _.bracketL:return u=this.startNode(),this.next(),u.elements=this.parseExprList(_.bracketR,!0,!0,t),this.finishNode(u,"ArrayExpression");case _.braceL:return this.overrideContext(oe.b_expr),this.parseObj(!1,t);case _._function:return u=this.startNode(),this.next(),this.parseFunction(u,0);case _._class:return this.parseClass(this.startNode(),!1);case _._new:return this.parseNew();case _.backQuote:return this.parseTemplate();case _._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};_t.parseExprAtomDefault=function(){this.unexpected()};_t.parseExprImport=function(t){var n=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===_.parenL&&!t)return this.parseDynamicImport(n);if(this.type===_.dot){var r=this.startNodeAt(n.start,n.loc&&n.loc.start);return r.name="import",n.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(n)}else this.unexpected()};_t.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(_.parenR)?t.options=null:(this.expect(_.comma),this.afterTrailingComma(_.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(_.parenR)||(this.expect(_.comma),this.afterTrailingComma(_.parenR)||this.unexpected())));else if(!this.eat(_.parenR)){var n=this.start;this.eat(_.comma)&&this.eat(_.parenR)?this.raiseRecoverable(n,"Trailing comma is not allowed in import()"):this.unexpected(n)}return this.finishNode(t,"ImportExpression")};_t.parseImportMeta=function(t){this.next();var n=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),n&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};_t.parseLiteral=function(t){var n=this.startNode();return n.value=t,n.raw=this.input.slice(this.start,this.end),n.raw.charCodeAt(n.raw.length-1)===110&&(n.bigint=n.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(n,"Literal")};_t.parseParenExpression=function(){this.expect(_.parenL);var t=this.parseExpression();return this.expect(_.parenR),t};_t.shouldParseArrow=function(t){return!this.canInsertSemicolon()};_t.parseParenAndDistinguishExpression=function(t,n){var r=this.start,u=this.startLoc,o,c=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var f=this.start,x=this.startLoc,p=[],g=!0,y=!1,b=new Rl,k=this.yieldPos,C=this.awaitPos,L;for(this.yieldPos=0,this.awaitPos=0;this.type!==_.parenR;)if(g?g=!1:this.expect(_.comma),c&&this.afterTrailingComma(_.parenR,!0)){y=!0;break}else if(this.type===_.ellipsis){L=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else p.push(this.parseMaybeAssign(!1,b,this.parseParenItem));var B=this.lastTokEnd,F=this.lastTokEndLoc;if(this.expect(_.parenR),t&&this.shouldParseArrow(p)&&this.eat(_.arrow))return this.checkPatternErrors(b,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=k,this.awaitPos=C,this.parseParenArrowList(r,u,p,n);(!p.length||y)&&this.unexpected(this.lastTokStart),L&&this.unexpected(L),this.checkExpressionErrors(b,!0),this.yieldPos=k||this.yieldPos,this.awaitPos=C||this.awaitPos,p.length>1?(o=this.startNodeAt(f,x),o.expressions=p,this.finishNodeAt(o,"SequenceExpression",B,F)):o=p[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var I=this.startNodeAt(r,u);return I.expression=o,this.finishNode(I,"ParenthesizedExpression")}else return o};_t.parseParenItem=function(t){return t};_t.parseParenArrowList=function(t,n,r,u){return this.parseArrowExpression(this.startNodeAt(t,n),r,!1,u)};var dw=[];_t.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===_.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);n.name="new",t.meta=this.finishNode(n,"Identifier"),this.next();var r=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var u=this.start,o=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),u,o,!0,!1),this.eat(_.parenL)?t.arguments=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1):t.arguments=dw,this.finishNode(t,"NewExpression")};_t.parseTemplateElement=function(t){var n=t.isTagged,r=this.startNode();return this.type===_.invalidTemplate?(n||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,`
|
|
75
|
+
`),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
76
|
+
`),cooked:this.value},this.next(),r.tail=this.type===_.backQuote,this.finishNode(r,"TemplateElement")};_t.parseTemplate=function(t){t===void 0&&(t={});var n=t.isTagged;n===void 0&&(n=!1);var r=this.startNode();this.next(),r.expressions=[];var u=this.parseTemplateElement({isTagged:n});for(r.quasis=[u];!u.tail;)this.type===_.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(_.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(_.braceR),r.quasis.push(u=this.parseTemplateElement({isTagged:n}));return this.next(),this.finishNode(r,"TemplateLiteral")};_t.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===_.name||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===_.star)&&!Oi.test(this.input.slice(this.lastTokEnd,this.start))};_t.parseObj=function(t,n){var r=this.startNode(),u=!0,o={};for(r.properties=[],this.next();!this.eat(_.braceR);){if(u)u=!1;else if(this.expect(_.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(_.braceR))break;var c=this.parseProperty(t,n);t||this.checkPropClash(c,o,n),r.properties.push(c)}return this.finishNode(r,t?"ObjectPattern":"ObjectExpression")};_t.parseProperty=function(t,n){var r=this.startNode(),u,o,c,f;if(this.options.ecmaVersion>=9&&this.eat(_.ellipsis))return t?(r.argument=this.parseIdent(!1),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,n),this.type===_.comma&&n&&n.trailingComma<0&&(n.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(t||n)&&(c=this.start,f=this.startLoc),t||(u=this.eat(_.star)));var x=this.containsEsc;return this.parsePropertyName(r),!t&&!x&&this.options.ecmaVersion>=8&&!u&&this.isAsyncProp(r)?(o=!0,u=this.options.ecmaVersion>=9&&this.eat(_.star),this.parsePropertyName(r)):o=!1,this.parsePropertyValue(r,t,u,o,c,f,n,x),this.finishNode(r,"Property")};_t.parseGetterSetter=function(t){var n=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=n;var r=t.kind==="get"?0:1;if(t.value.params.length!==r){var u=t.value.start;t.kind==="get"?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")};_t.parsePropertyValue=function(t,n,r,u,o,c,f,x){(r||u)&&this.type===_.colon&&this.unexpected(),this.eat(_.colon)?(t.value=n?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,f),t.kind="init"):this.options.ecmaVersion>=6&&this.type===_.parenL?(n&&this.unexpected(),t.method=!0,t.value=this.parseMethod(r,u),t.kind="init"):!n&&!x&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==_.comma&&this.type!==_.braceR&&this.type!==_.eq?((r||u)&&this.unexpected(),this.parseGetterSetter(t)):this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((r||u)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=o),n?t.value=this.parseMaybeDefault(o,c,this.copyNode(t.key)):this.type===_.eq&&f?(f.shorthandAssign<0&&(f.shorthandAssign=this.start),t.value=this.parseMaybeDefault(o,c,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected()};_t.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(_.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(_.bracketR),t.key;t.computed=!1}return t.key=this.type===_.num||this.type===_.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};_t.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};_t.parseMethod=function(t,n,r){var u=this.startNode(),o=this.yieldPos,c=this.awaitPos,f=this.awaitIdentPos;return this.initFunction(u),this.options.ecmaVersion>=6&&(u.generator=t),this.options.ecmaVersion>=8&&(u.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Kf(n,u.generator)|Dl|(r?jx:0)),this.expect(_.parenL),u.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(u,!1,!0,!1),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=f,this.finishNode(u,"FunctionExpression")};_t.parseArrowExpression=function(t,n,r,u){var o=this.yieldPos,c=this.awaitPos,f=this.awaitIdentPos;return this.enterScope(Kf(r,!1)|Zf),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(n,!0),this.parseFunctionBody(t,!0,!1,u),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=f,this.finishNode(t,"ArrowFunctionExpression")};_t.parseFunctionBody=function(t,n,r,u){var o=n&&this.type!==_.braceL,c=this.strict,f=!1;if(o)t.body=this.parseMaybeAssign(u),t.expression=!0,this.checkParams(t,!1);else{var x=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!c||x)&&(f=this.strictDirective(this.end),f&&x&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var p=this.labels;this.labels=[],f&&(this.strict=!0),this.checkParams(t,!c&&!f&&!n&&!r&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,Gx),t.body=this.parseBlock(!1,void 0,f&&!c),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=p}this.exitScope()};_t.isSimpleParamList=function(t){for(var n=0,r=t;n<r.length;n+=1){var u=r[n];if(u.type!=="Identifier")return!1}return!0};_t.checkParams=function(t,n){for(var r=Object.create(null),u=0,o=t.params;u<o.length;u+=1){var c=o[u];this.checkLValInnerPattern(c,Wf,n?null:r)}};_t.parseExprList=function(t,n,r,u){for(var o=[],c=!0;!this.eat(t);){if(c)c=!1;else if(this.expect(_.comma),n&&this.afterTrailingComma(t))break;var f=void 0;r&&this.type===_.comma?f=null:this.type===_.ellipsis?(f=this.parseSpread(u),u&&this.type===_.comma&&u.trailingComma<0&&(u.trailingComma=this.start)):f=this.parseMaybeAssign(!1,u),o.push(f)}return o};_t.checkUnreserved=function(t){var n=t.start,r=t.end,u=t.name;if(this.inGenerator&&u==="yield"&&this.raiseRecoverable(n,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&u==="await"&&this.raiseRecoverable(n,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Ol)&&u==="arguments"&&this.raiseRecoverable(n,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(u==="arguments"||u==="await")&&this.raise(n,"Cannot use "+u+" in class static initialization block"),this.keywords.test(u)&&this.raise(n,"Unexpected keyword '"+u+"'"),!(this.options.ecmaVersion<6&&this.input.slice(n,r).indexOf("\\")!==-1)){var o=this.strict?this.reservedWordsStrict:this.reservedWords;o.test(u)&&(!this.inAsync&&u==="await"&&this.raiseRecoverable(n,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(n,"The keyword '"+u+"' is reserved"))}};_t.parseIdent=function(t){var n=this.parseIdentNode();return this.next(!!t),this.finishNode(n,"Identifier"),t||(this.checkUnreserved(n),n.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n.start)),n};_t.parseIdentNode=function(){var t=this.startNode();return this.type===_.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=_.name):this.unexpected(),t};_t.parsePrivateIdent=function(){var t=this.startNode();return this.type===_.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t};_t.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var n=this.startNode();return this.next(),this.type===_.semi||this.canInsertSemicolon()||this.type!==_.star&&!this.type.startsExpr?(n.delegate=!1,n.argument=null):(n.delegate=this.eat(_.star),n.argument=this.parseMaybeAssign(t)),this.finishNode(n,"YieldExpression")};_t.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var n=this.startNode();return this.next(),n.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(n,"AwaitExpression")};var El=Ne.prototype;El.raise=function(t,n){var r=Px(this.input,t);n+=" ("+r.line+":"+r.column+")",this.sourceFile&&(n+=" in "+this.sourceFile);var u=new SyntaxError(n);throw u.pos=t,u.loc=r,u.raisedAt=this.pos,u};El.raiseRecoverable=El.raise;El.curPosition=function(){if(this.options.locations)return new Hs(this.curLine,this.pos-this.lineStart)};var ga=Ne.prototype,mw=function(n){this.flags=n,this.var=[],this.lexical=[],this.functions=[]};ga.enterScope=function(t){this.scopeStack.push(new mw(t))};ga.exitScope=function(){this.scopeStack.pop()};ga.treatFunctionsAsVarInScope=function(t){return t.flags&Ir||!this.inModule&&t.flags&Gs};ga.declareName=function(t,n,r){var u=!1;if(n===Mn){var o=this.currentScope();u=o.lexical.indexOf(t)>-1||o.functions.indexOf(t)>-1||o.var.indexOf(t)>-1,o.lexical.push(t),this.inModule&&o.flags&Gs&&delete this.undefinedExports[t]}else if(n===Hx){var c=this.currentScope();c.lexical.push(t)}else if(n===qx){var f=this.currentScope();this.treatFunctionsAsVar?u=f.lexical.indexOf(t)>-1:u=f.lexical.indexOf(t)>-1||f.var.indexOf(t)>-1,f.functions.push(t)}else for(var x=this.scopeStack.length-1;x>=0;--x){var p=this.scopeStack[x];if(p.lexical.indexOf(t)>-1&&!(p.flags&Fx&&p.lexical[0]===t)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(t)>-1){u=!0;break}if(p.var.push(t),this.inModule&&p.flags&Gs&&delete this.undefinedExports[t],p.flags&Ol)break}u&&this.raiseRecoverable(r,"Identifier '"+t+"' has already been declared")};ga.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)};ga.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ga.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var n=this.scopeStack[t];if(n.flags&(Ol|Ys|qa))return n}};ga.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var n=this.scopeStack[t];if(n.flags&(Ol|Ys|qa)&&!(n.flags&Zf))return n}};var Ml=function(n,r,u){this.type="",this.start=r,this.end=0,n.options.locations&&(this.loc=new Ll(n,u)),n.options.directSourceFile&&(this.sourceFile=n.options.directSourceFile),n.options.ranges&&(this.range=[r,0])},Zs=Ne.prototype;Zs.startNode=function(){return new Ml(this,this.start,this.startLoc)};Zs.startNodeAt=function(t,n){return new Ml(this,t,n)};function Xx(t,n,r,u){return t.type=n,t.end=r,this.options.locations&&(t.loc.end=u),this.options.ranges&&(t.range[1]=r),t}Zs.finishNode=function(t,n){return Xx.call(this,t,n,this.lastTokEnd,this.lastTokEndLoc)};Zs.finishNodeAt=function(t,n,r,u){return Xx.call(this,t,n,r,u)};Zs.copyNode=function(t){var n=new Ml(this,t.start,this.startLoc);for(var r in t)n[r]=t[r];return n};var xw="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",Yx="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Zx=Yx+" Extended_Pictographic",Kx=Zx,Wx=Kx+" EBase EComp EMod EPres ExtPict",$x=Wx,gw=$x,bw={9:Yx,10:Zx,11:Kx,12:Wx,13:$x,14:gw},yw="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",vw={9:"",10:"",11:"",12:"",13:"",14:yw},C0="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",tg="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",eg=tg+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ig=eg+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ng=ig+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ag=ng+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Sw=ag+" "+xw,kw={9:tg,10:eg,11:ig,12:ng,13:ag,14:Sw},rg={};function Ew(t){var n=rg[t]={binary:pa(bw[t]+" "+C0),binaryOfStrings:pa(vw[t]),nonBinary:{General_Category:pa(C0),Script:pa(kw[t])}};n.nonBinary.Script_Extensions=n.nonBinary.Script,n.nonBinary.gc=n.nonBinary.General_Category,n.nonBinary.sc=n.nonBinary.Script,n.nonBinary.scx=n.nonBinary.Script_Extensions}for(var pf=0,A0=[9,10,11,12,13,14];pf<A0.length;pf+=1){var ww=A0[pf];Ew(ww)}var xt=Ne.prototype,wl=function(n,r){this.parent=n,this.base=r||this};wl.prototype.separatedFrom=function(n){for(var r=this;r;r=r.parent)for(var u=n;u;u=u.parent)if(r.base===u.base&&r!==u)return!0;return!1};wl.prototype.sibling=function(){return new wl(this.parent,this.base)};var sn=function(n){this.parser=n,this.validFlags="gim"+(n.options.ecmaVersion>=6?"uy":"")+(n.options.ecmaVersion>=9?"s":"")+(n.options.ecmaVersion>=13?"d":"")+(n.options.ecmaVersion>=15?"v":""),this.unicodeProperties=rg[n.options.ecmaVersion>=14?14:n.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};sn.prototype.reset=function(n,r,u){var o=u.indexOf("v")!==-1,c=u.indexOf("u")!==-1;this.start=n|0,this.source=r+"",this.flags=u,o&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=c&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=c&&this.parser.options.ecmaVersion>=9)};sn.prototype.raise=function(n){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+n)};sn.prototype.at=function(n,r){r===void 0&&(r=!1);var u=this.source,o=u.length;if(n>=o)return-1;var c=u.charCodeAt(n);if(!(r||this.switchU)||c<=55295||c>=57344||n+1>=o)return c;var f=u.charCodeAt(n+1);return f>=56320&&f<=57343?(c<<10)+f-56613888:c};sn.prototype.nextIndex=function(n,r){r===void 0&&(r=!1);var u=this.source,o=u.length;if(n>=o)return o;var c=u.charCodeAt(n),f;return!(r||this.switchU)||c<=55295||c>=57344||n+1>=o||(f=u.charCodeAt(n+1))<56320||f>57343?n+1:n+2};sn.prototype.current=function(n){return n===void 0&&(n=!1),this.at(this.pos,n)};sn.prototype.lookahead=function(n){return n===void 0&&(n=!1),this.at(this.nextIndex(this.pos,n),n)};sn.prototype.advance=function(n){n===void 0&&(n=!1),this.pos=this.nextIndex(this.pos,n)};sn.prototype.eat=function(n,r){return r===void 0&&(r=!1),this.current(r)===n?(this.advance(r),!0):!1};sn.prototype.eatChars=function(n,r){r===void 0&&(r=!1);for(var u=this.pos,o=0,c=n;o<c.length;o+=1){var f=c[o],x=this.at(u,r);if(x===-1||x!==f)return!1;u=this.nextIndex(u,r)}return this.pos=u,!0};xt.validateRegExpFlags=function(t){for(var n=t.validFlags,r=t.flags,u=!1,o=!1,c=0;c<r.length;c++){var f=r.charAt(c);n.indexOf(f)===-1&&this.raise(t.start,"Invalid regular expression flag"),r.indexOf(f,c+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),f==="u"&&(u=!0),f==="v"&&(o=!0)}this.options.ecmaVersion>=15&&u&&o&&this.raise(t.start,"Invalid regular expression flag")};function Cw(t){for(var n in t)return!0;return!1}xt.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&Cw(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))};xt.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var n=0,r=t.backReferenceNames;n<r.length;n+=1){var u=r[n];t.groupNames[u]||t.raise("Invalid named capture referenced")}};xt.regexp_disjunction=function(t){var n=this.options.ecmaVersion>=16;for(n&&(t.branchID=new wl(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)n&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);n&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")};xt.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););};xt.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1};xt.regexp_eatAssertion=function(t){var n=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=n}if(t.eat(40)&&t.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!r,!0}return t.pos=n,!1};xt.regexp_eatQuantifier=function(t,n){return n===void 0&&(n=!1),this.regexp_eatQuantifierPrefix(t,n)?(t.eat(63),!0):!1};xt.regexp_eatQuantifierPrefix=function(t,n){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,n)};xt.regexp_eatBracedQuantifier=function(t,n){var r=t.pos;if(t.eat(123)){var u=0,o=-1;if(this.regexp_eatDecimalDigits(t)&&(u=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(o=t.lastIntValue),t.eat(125)))return o!==-1&&o<u&&!n&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!n&&t.raise("Incomplete quantifier"),t.pos=r}return!1};xt.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)};xt.regexp_eatReverseSolidusAtomEscape=function(t){var n=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=n}return!1};xt.regexp_eatUncapturingGroup=function(t){var n=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var r=this.regexp_eatModifiers(t),u=t.eat(45);if(r||u){for(var o=0;o<r.length;o++){var c=r.charAt(o);r.indexOf(c,o+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(u){var f=this.regexp_eatModifiers(t);!r&&!f&&t.current()===58&&t.raise("Invalid regular expression modifiers");for(var x=0;x<f.length;x++){var p=f.charAt(x);(f.indexOf(p,x+1)>-1||r.indexOf(p)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=n}return!1};xt.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1};xt.regexp_eatModifiers=function(t){for(var n="",r=0;(r=t.current())!==-1&&Aw(r);)n+=Dn(r),t.advance();return n};function Aw(t){return t===105||t===109||t===115}xt.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};xt.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1};xt.regexp_eatSyntaxCharacter=function(t){var n=t.current();return sg(n)?(t.lastIntValue=n,t.advance(),!0):!1};function sg(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}xt.regexp_eatPatternCharacters=function(t){for(var n=t.pos,r=0;(r=t.current())!==-1&&!sg(r);)t.advance();return t.pos!==n};xt.regexp_eatExtendedPatternCharacter=function(t){var n=t.current();return n!==-1&&n!==36&&!(n>=40&&n<=43)&&n!==46&&n!==63&&n!==91&&n!==94&&n!==124?(t.advance(),!0):!1};xt.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var n=this.options.ecmaVersion>=16,r=t.groupNames[t.lastStringValue];if(r)if(n)for(var u=0,o=r;u<o.length;u+=1){var c=o[u];c.separatedFrom(t.branchID)||t.raise("Duplicate capture group name")}else t.raise("Duplicate capture group name");n?(r||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}};xt.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1};xt.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Dn(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Dn(t.lastIntValue);return!0}return!1};xt.regexp_eatRegExpIdentifierStart=function(t){var n=t.pos,r=this.options.ecmaVersion>=11,u=t.current(r);return t.advance(r),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,r)&&(u=t.lastIntValue),_w(u)?(t.lastIntValue=u,!0):(t.pos=n,!1)};function _w(t){return Ln(t,!0)||t===36||t===95}xt.regexp_eatRegExpIdentifierPart=function(t){var n=t.pos,r=this.options.ecmaVersion>=11,u=t.current(r);return t.advance(r),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,r)&&(u=t.lastIntValue),Tw(u)?(t.lastIntValue=u,!0):(t.pos=n,!1)};function Tw(t){return Or(t,!0)||t===36||t===95||t===8204||t===8205}xt.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)};xt.regexp_eatBackReference=function(t){var n=t.pos;if(this.regexp_eatDecimalEscape(t)){var r=t.lastIntValue;if(t.switchU)return r>t.maxBackReference&&(t.maxBackReference=r),!0;if(r<=t.numCapturingParens)return!0;t.pos=n}return!1};xt.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1};xt.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};xt.regexp_eatCControlLetter=function(t){var n=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=n}return!1};xt.regexp_eatZero=function(t){return t.current()===48&&!Il(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1};xt.regexp_eatControlEscape=function(t){var n=t.current();return n===116?(t.lastIntValue=9,t.advance(),!0):n===110?(t.lastIntValue=10,t.advance(),!0):n===118?(t.lastIntValue=11,t.advance(),!0):n===102?(t.lastIntValue=12,t.advance(),!0):n===114?(t.lastIntValue=13,t.advance(),!0):!1};xt.regexp_eatControlLetter=function(t){var n=t.current();return ug(n)?(t.lastIntValue=n%32,t.advance(),!0):!1};function ug(t){return t>=65&&t<=90||t>=97&&t<=122}xt.regexp_eatRegExpUnicodeEscapeSequence=function(t,n){n===void 0&&(n=!1);var r=t.pos,u=n||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(u&&o>=55296&&o<=56319){var c=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var f=t.lastIntValue;if(f>=56320&&f<=57343)return t.lastIntValue=(o-55296)*1024+(f-56320)+65536,!0}t.pos=c,t.lastIntValue=o}return!0}if(u&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&Nw(t.lastIntValue))return!0;u&&t.raise("Invalid unicode escape"),t.pos=r}return!1};function Nw(t){return t>=0&&t<=1114111}xt.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var n=t.current();return n!==99&&(!t.switchN||n!==107)?(t.lastIntValue=n,t.advance(),!0):!1};xt.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var n=t.current();if(n>=49&&n<=57){do t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();while((n=t.current())>=48&&n<=57);return!0}return!1};var lg=0,On=1,Di=2;xt.regexp_eatCharacterClassEscape=function(t){var n=t.current();if(Lw(n))return t.lastIntValue=-1,t.advance(),On;var r=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((r=n===80)||n===112)){t.lastIntValue=-1,t.advance();var u;if(t.eat(123)&&(u=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return r&&u===Di&&t.raise("Invalid property name"),u;t.raise("Invalid property name")}return lg};function Lw(t){return t===100||t===68||t===115||t===83||t===119||t===87}xt.regexp_eatUnicodePropertyValueExpression=function(t){var n=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var r=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var u=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,r,u),On}}if(t.pos=n,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var o=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,o)}return lg};xt.regexp_validateUnicodePropertyNameAndValue=function(t,n,r){Mr(t.unicodeProperties.nonBinary,n)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[n].test(r)||t.raise("Invalid property value")};xt.regexp_validateUnicodePropertyNameOrValue=function(t,n){if(t.unicodeProperties.binary.test(n))return On;if(t.switchV&&t.unicodeProperties.binaryOfStrings.test(n))return Di;t.raise("Invalid property name")};xt.regexp_eatUnicodePropertyName=function(t){var n=0;for(t.lastStringValue="";og(n=t.current());)t.lastStringValue+=Dn(n),t.advance();return t.lastStringValue!==""};function og(t){return ug(t)||t===95}xt.regexp_eatUnicodePropertyValue=function(t){var n=0;for(t.lastStringValue="";Dw(n=t.current());)t.lastStringValue+=Dn(n),t.advance();return t.lastStringValue!==""};function Dw(t){return og(t)||Il(t)}xt.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};xt.regexp_eatCharacterClass=function(t){if(t.eat(91)){var n=t.eat(94),r=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),n&&r===Di&&t.raise("Negated character class may contain strings"),!0}return!1};xt.regexp_classContents=function(t){return t.current()===93?On:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),On)};xt.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var n=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var r=t.lastIntValue;t.switchU&&(n===-1||r===-1)&&t.raise("Invalid character class"),n!==-1&&r!==-1&&n>r&&t.raise("Range out of order in character class")}}};xt.regexp_eatClassAtom=function(t){var n=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var r=t.current();(r===99||hg(r))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=n}var u=t.current();return u!==93?(t.lastIntValue=u,t.advance(),!0):!1};xt.regexp_eatClassEscape=function(t){var n=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=n}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};xt.regexp_classSetExpression=function(t){var n=On,r;if(!this.regexp_eatClassSetRange(t))if(r=this.regexp_eatClassSetOperand(t)){r===Di&&(n=Di);for(var u=t.pos;t.eatChars([38,38]);){if(t.current()!==38&&(r=this.regexp_eatClassSetOperand(t))){r!==Di&&(n=On);continue}t.raise("Invalid character in character class")}if(u!==t.pos)return n;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(u!==t.pos)return n}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(r=this.regexp_eatClassSetOperand(t),!r)return n;r===Di&&(n=Di)}};xt.regexp_eatClassSetRange=function(t){var n=t.pos;if(this.regexp_eatClassSetCharacter(t)){var r=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var u=t.lastIntValue;return r!==-1&&u!==-1&&r>u&&t.raise("Range out of order in character class"),!0}t.pos=n}return!1};xt.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?On:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)};xt.regexp_eatNestedClass=function(t){var n=t.pos;if(t.eat(91)){var r=t.eat(94),u=this.regexp_classContents(t);if(t.eat(93))return r&&u===Di&&t.raise("Negated character class may contain strings"),u;t.pos=n}if(t.eat(92)){var o=this.regexp_eatCharacterClassEscape(t);if(o)return o;t.pos=n}return null};xt.regexp_eatClassStringDisjunction=function(t){var n=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var r=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return r}else t.raise("Invalid escape");t.pos=n}return null};xt.regexp_classStringDisjunctionContents=function(t){for(var n=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===Di&&(n=Di);return n};xt.regexp_classString=function(t){for(var n=0;this.regexp_eatClassSetCharacter(t);)n++;return n===1?On:Di};xt.regexp_eatClassSetCharacter=function(t){var n=t.pos;if(t.eat(92))return this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t)?!0:t.eat(98)?(t.lastIntValue=8,!0):(t.pos=n,!1);var r=t.current();return r<0||r===t.lookahead()&&Ow(r)||Rw(r)?!1:(t.advance(),t.lastIntValue=r,!0)};function Ow(t){return t===33||t>=35&&t<=38||t>=42&&t<=44||t===46||t>=58&&t<=64||t===94||t===96||t===126}function Rw(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}xt.regexp_eatClassSetReservedPunctuator=function(t){var n=t.current();return Mw(n)?(t.lastIntValue=n,t.advance(),!0):!1};function Mw(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}xt.regexp_eatClassControlLetter=function(t){var n=t.current();return Il(n)||n===95?(t.lastIntValue=n%32,t.advance(),!0):!1};xt.regexp_eatHexEscapeSequence=function(t){var n=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=n}return!1};xt.regexp_eatDecimalDigits=function(t){var n=t.pos,r=0;for(t.lastIntValue=0;Il(r=t.current());)t.lastIntValue=10*t.lastIntValue+(r-48),t.advance();return t.pos!==n};function Il(t){return t>=48&&t<=57}xt.regexp_eatHexDigits=function(t){var n=t.pos,r=0;for(t.lastIntValue=0;cg(r=t.current());)t.lastIntValue=16*t.lastIntValue+fg(r),t.advance();return t.pos!==n};function cg(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function fg(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}xt.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var r=t.lastIntValue;n<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=n*64+r*8+t.lastIntValue:t.lastIntValue=n*8+r}else t.lastIntValue=n;return!0}return!1};xt.regexp_eatOctalDigit=function(t){var n=t.current();return hg(n)?(t.lastIntValue=n-48,t.advance(),!0):(t.lastIntValue=0,!1)};function hg(t){return t>=48&&t<=55}xt.regexp_eatFixedHexDigits=function(t,n){var r=t.pos;t.lastIntValue=0;for(var u=0;u<n;++u){var o=t.current();if(!cg(o))return t.pos=r,!1;t.lastIntValue=16*t.lastIntValue+fg(o),t.advance()}return!0};var th=function(n){this.type=n.type,this.value=n.value,this.start=n.start,this.end=n.end,n.options.locations&&(this.loc=new Ll(n,n.startLoc,n.endLoc)),n.options.ranges&&(this.range=[n.start,n.end])},zt=Ne.prototype;zt.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new th(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};zt.getToken=function(){return this.next(),new th(this)};typeof Symbol<"u"&&(zt[Symbol.iterator]=function(){var t=this;return{next:function(){var n=t.getToken();return{done:n.type===_.eof,value:n}}}});zt.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(_.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())};zt.readToken=function(t){return Ln(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)};zt.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(this.pos+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888};zt.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var u=void 0,o=n;(u=Vx(this.input,o,this.pos))>-1;)++this.curLine,o=this.lineStart=u;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,t,this.curPosition())};zt.skipLineComment=function(t){for(var n=this.pos,r=this.options.onComment&&this.curPosition(),u=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!Rr(u);)u=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(n+t,this.pos),n,this.pos,r,this.curPosition())};zt.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(t>8&&t<14||t>=5760&&Bx.test(String.fromCharCode(t)))++this.pos;else break t}}};zt.finishToken=function(t,n){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=t,this.value=n,this.updateContext(r)};zt.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var n=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&n===46?(this.pos+=3,this.finishToken(_.ellipsis)):(++this.pos,this.finishToken(_.dot))};zt.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(_.assign,2):this.finishOp(_.slash,1)};zt.readToken_mult_modulo_exp=function(t){var n=this.input.charCodeAt(this.pos+1),r=1,u=t===42?_.star:_.modulo;return this.options.ecmaVersion>=7&&t===42&&n===42&&(++r,u=_.starstar,n=this.input.charCodeAt(this.pos+2)),n===61?this.finishOp(_.assign,r+1):this.finishOp(u,r)};zt.readToken_pipe_amp=function(t){var n=this.input.charCodeAt(this.pos+1);if(n===t){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(_.assign,3)}return this.finishOp(t===124?_.logicalOR:_.logicalAND,2)}return n===61?this.finishOp(_.assign,2):this.finishOp(t===124?_.bitwiseOR:_.bitwiseAND,1)};zt.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(_.assign,2):this.finishOp(_.bitwiseXOR,1)};zt.readToken_plus_min=function(t){var n=this.input.charCodeAt(this.pos+1);return n===t?n===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Oi.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(_.incDec,2):n===61?this.finishOp(_.assign,2):this.finishOp(_.plusMin,1)};zt.readToken_lt_gt=function(t){var n=this.input.charCodeAt(this.pos+1),r=1;return n===t?(r=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(_.assign,r+1):this.finishOp(_.bitShift,r)):n===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(n===61&&(r=2),this.finishOp(_.relational,r))};zt.readToken_eq_excl=function(t){var n=this.input.charCodeAt(this.pos+1);return n===61?this.finishOp(_.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&n===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(_.arrow)):this.finishOp(t===61?_.eq:_.prefix,1)};zt.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var n=this.input.charCodeAt(this.pos+1);if(n===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(_.questionDot,2)}if(n===63){if(t>=12){var u=this.input.charCodeAt(this.pos+2);if(u===61)return this.finishOp(_.assign,3)}return this.finishOp(_.coalesce,2)}}return this.finishOp(_.question,1)};zt.readToken_numberSign=function(){var t=this.options.ecmaVersion,n=35;if(t>=13&&(++this.pos,n=this.fullCharCodeAtPos(),Ln(n,!0)||n===92))return this.finishToken(_.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Dn(n)+"'")};zt.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(_.parenL);case 41:return++this.pos,this.finishToken(_.parenR);case 59:return++this.pos,this.finishToken(_.semi);case 44:return++this.pos,this.finishToken(_.comma);case 91:return++this.pos,this.finishToken(_.bracketL);case 93:return++this.pos,this.finishToken(_.bracketR);case 123:return++this.pos,this.finishToken(_.braceL);case 125:return++this.pos,this.finishToken(_.braceR);case 58:return++this.pos,this.finishToken(_.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(_.backQuote);case 48:var n=this.input.charCodeAt(this.pos+1);if(n===120||n===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(n===111||n===79)return this.readRadixNumber(8);if(n===98||n===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(_.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Dn(t)+"'")};zt.finishOp=function(t,n){var r=this.input.slice(this.pos,this.pos+n);return this.pos+=n,this.finishToken(t,r)};zt.readRegexp=function(){for(var t,n,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var u=this.input.charAt(this.pos);if(Oi.test(u)&&this.raise(r,"Unterminated regular expression"),t)t=!1;else{if(u==="[")n=!0;else if(u==="]"&&n)n=!1;else if(u==="/"&&!n)break;t=u==="\\"}++this.pos}var o=this.input.slice(r,this.pos);++this.pos;var c=this.pos,f=this.readWord1();this.containsEsc&&this.unexpected(c);var x=this.regexpState||(this.regexpState=new sn(this));x.reset(r,o,f),this.validateRegExpFlags(x),this.validateRegExpPattern(x);var p=null;try{p=new RegExp(o,f)}catch{}return this.finishToken(_.regexp,{pattern:o,flags:f,value:p})};zt.readInt=function(t,n,r){for(var u=this.options.ecmaVersion>=12&&n===void 0,o=r&&this.input.charCodeAt(this.pos)===48,c=this.pos,f=0,x=0,p=0,g=n??1/0;p<g;++p,++this.pos){var y=this.input.charCodeAt(this.pos),b=void 0;if(u&&y===95){o&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),x===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),p===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),x=y;continue}if(y>=97?b=y-97+10:y>=65?b=y-65+10:y>=48&&y<=57?b=y-48:b=1/0,b>=t)break;x=y,f=f*t+b}return u&&x===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===c||n!=null&&this.pos-c!==n?null:f};function Iw(t,n){return n?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function pg(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}zt.readRadixNumber=function(t){var n=this.pos;this.pos+=2;var r=this.readInt(t);return r==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=pg(this.input.slice(n,this.pos)),++this.pos):Ln(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,r)};zt.readNumber=function(t){var n=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(n,"Invalid number");var r=this.pos-n>=2&&this.input.charCodeAt(n)===48;r&&this.strict&&this.raise(n,"Invalid number");var u=this.input.charCodeAt(this.pos);if(!r&&!t&&this.options.ecmaVersion>=11&&u===110){var o=pg(this.input.slice(n,this.pos));return++this.pos,Ln(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,o)}r&&/[89]/.test(this.input.slice(n,this.pos))&&(r=!1),u===46&&!r&&(++this.pos,this.readInt(10),u=this.input.charCodeAt(this.pos)),(u===69||u===101)&&!r&&(u=this.input.charCodeAt(++this.pos),(u===43||u===45)&&++this.pos,this.readInt(10)===null&&this.raise(n,"Invalid number")),Ln(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var c=Iw(this.input.slice(n,this.pos),r);return this.finishToken(_.num,c)};zt.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),n;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;n=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,n>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else n=this.readHexChar(4);return n};zt.readString=function(t){for(var n="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var u=this.input.charCodeAt(this.pos);if(u===t)break;u===92?(n+=this.input.slice(r,this.pos),n+=this.readEscapedChar(!1),r=this.pos):u===8232||u===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Rr(u)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return n+=this.input.slice(r,this.pos++),this.finishToken(_.string,n)};var dg={};zt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===dg)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};zt.invalidStringToken=function(t,n){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw dg;this.raise(t,n)};zt.readTmplToken=function(){for(var t="",n=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===_.template||this.type===_.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(_.dollarBraceL)):(++this.pos,this.finishToken(_.backQuote)):(t+=this.input.slice(n,this.pos),this.finishToken(_.template,t));if(r===92)t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!0),n=this.pos;else if(Rr(r)){switch(t+=this.input.slice(n,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
77
|
+
`;break;default:t+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),n=this.pos}else++this.pos}};zt.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(_.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
78
|
+
`&&++this.pos;case`
|
|
79
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};zt.readEscapedChar=function(t){var n=this.input.charCodeAt(++this.pos);switch(++this.pos,n){case 110:return`
|
|
80
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Dn(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(n>=48&&n<=55){var u=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(u,8);return o>255&&(u=u.slice(0,-1),o=parseInt(u,8)),this.pos+=u.length-1,n=this.input.charCodeAt(this.pos),(u!=="0"||n===56||n===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-u.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(o)}return Rr(n)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(n)}};zt.readHexChar=function(t){var n=this.pos,r=this.readInt(16,t);return r===null&&this.invalidStringToken(n,"Bad character escape sequence"),r};zt.readWord1=function(){this.containsEsc=!1;for(var t="",n=!0,r=this.pos,u=this.options.ecmaVersion>=6;this.pos<this.input.length;){var o=this.fullCharCodeAtPos();if(Or(o,u))this.pos+=o<=65535?1:2;else if(o===92){this.containsEsc=!0,t+=this.input.slice(r,this.pos);var c=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var f=this.readCodePoint();(n?Ln:Or)(f,u)||this.invalidStringToken(c,"Invalid Unicode escape"),t+=Dn(f),r=this.pos}else break;n=!1}return t+this.input.slice(r,this.pos)};zt.readWord=function(){var t=this.readWord1(),n=_.name;return this.keywords.test(t)&&(n=Xf[t]),this.finishToken(n,t)};var Vw="8.14.1";Ne.acorn={Parser:Ne,version:Vw,defaultOptions:Df,Position:Hs,SourceLocation:Ll,getLineInfo:Px,Node:Ml,TokenType:jt,tokTypes:_,keywordTypes:Xf,TokContext:Fi,tokContexts:oe,isIdentifierChar:Or,isIdentifierStart:Ln,Token:th,isNewLine:Rr,lineBreak:Oi,lineBreakG:aw,nonASCIIwhitespace:Bx};var df={exports:{}},mf,_0;function Bw(){return _0||(_0=1,mf={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),mf}var zs={exports:{}},zw=zs.exports,T0;function N0(){return T0||(T0=1,function(t,n){(function(r,u){u(n)})(zw,function(r){var u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],c="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",f="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",x={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},p="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",g={5:p,"5module":p+" export import",6:p+" const class extends export import super"},y=/^in(stanceof)?$/,b=new RegExp("["+f+"]"),k=new RegExp("["+f+c+"]");function C(s,d){for(var S=65536,w=0;w<d.length;w+=2){if(S+=d[w],S>s)return!1;if(S+=d[w+1],S>=s)return!0}return!1}function L(s,d){return s<65?s===36:s<91?!0:s<97?s===95:s<123?!0:s<=65535?s>=170&&b.test(String.fromCharCode(s)):d===!1?!1:C(s,o)}function B(s,d){return s<48?s===36:s<58?!0:s<65?!1:s<91?!0:s<97?s===95:s<123?!0:s<=65535?s>=170&&k.test(String.fromCharCode(s)):d===!1?!1:C(s,o)||C(s,u)}var F=function(d,S){S===void 0&&(S={}),this.label=d,this.keyword=S.keyword,this.beforeExpr=!!S.beforeExpr,this.startsExpr=!!S.startsExpr,this.isLoop=!!S.isLoop,this.isAssign=!!S.isAssign,this.prefix=!!S.prefix,this.postfix=!!S.postfix,this.binop=S.binop||null,this.updateContext=null};function I(s,d){return new F(s,{beforeExpr:!0,binop:d})}var G={beforeExpr:!0},z={startsExpr:!0},W={};function V(s,d){return d===void 0&&(d={}),d.keyword=s,W[s]=new F(s,d)}var v={num:new F("num",z),regexp:new F("regexp",z),string:new F("string",z),name:new F("name",z),privateId:new F("privateId",z),eof:new F("eof"),bracketL:new F("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new F("]"),braceL:new F("{",{beforeExpr:!0,startsExpr:!0}),braceR:new F("}"),parenL:new F("(",{beforeExpr:!0,startsExpr:!0}),parenR:new F(")"),comma:new F(",",G),semi:new F(";",G),colon:new F(":",G),dot:new F("."),question:new F("?",G),questionDot:new F("?."),arrow:new F("=>",G),template:new F("template"),invalidTemplate:new F("invalidTemplate"),ellipsis:new F("...",G),backQuote:new F("`",z),dollarBraceL:new F("${",{beforeExpr:!0,startsExpr:!0}),eq:new F("=",{beforeExpr:!0,isAssign:!0}),assign:new F("_=",{beforeExpr:!0,isAssign:!0}),incDec:new F("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new F("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:I("||",1),logicalAND:I("&&",2),bitwiseOR:I("|",3),bitwiseXOR:I("^",4),bitwiseAND:I("&",5),equality:I("==/!=/===/!==",6),relational:I("</>/<=/>=",7),bitShift:I("<</>>/>>>",8),plusMin:new F("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:I("%",10),star:I("*",10),slash:I("/",10),starstar:new F("**",{beforeExpr:!0}),coalesce:I("??",1),_break:V("break"),_case:V("case",G),_catch:V("catch"),_continue:V("continue"),_debugger:V("debugger"),_default:V("default",G),_do:V("do",{isLoop:!0,beforeExpr:!0}),_else:V("else",G),_finally:V("finally"),_for:V("for",{isLoop:!0}),_function:V("function",z),_if:V("if"),_return:V("return",G),_switch:V("switch"),_throw:V("throw",G),_try:V("try"),_var:V("var"),_const:V("const"),_while:V("while",{isLoop:!0}),_with:V("with"),_new:V("new",{beforeExpr:!0,startsExpr:!0}),_this:V("this",z),_super:V("super",z),_class:V("class",z),_extends:V("extends",G),_export:V("export"),_import:V("import",z),_null:V("null",z),_true:V("true",z),_false:V("false",z),_in:V("in",{beforeExpr:!0,binop:7}),_instanceof:V("instanceof",{beforeExpr:!0,binop:7}),_typeof:V("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:V("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:V("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R=/\r\n?|\n|\u2028|\u2029/,X=new RegExp(R.source,"g");function rt(s){return s===10||s===13||s===8232||s===8233}function q(s,d,S){S===void 0&&(S=s.length);for(var w=d;w<S;w++){var N=s.charCodeAt(w);if(rt(N))return w<S-1&&N===13&&s.charCodeAt(w+1)===10?w+2:w+1}return-1}var ut=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,st=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,pt=Object.prototype,Nt=pt.hasOwnProperty,vt=pt.toString,K=Object.hasOwn||function(s,d){return Nt.call(s,d)},nt=Array.isArray||function(s){return vt.call(s)==="[object Array]"},dt=Object.create(null);function At(s){return dt[s]||(dt[s]=new RegExp("^(?:"+s.replace(/ /g,"|")+")$"))}function D(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode((s>>10)+55296,(s&1023)+56320))}var Gt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Lt=function(d,S){this.line=d,this.column=S};Lt.prototype.offset=function(d){return new Lt(this.line,this.column+d)};var O=function(d,S,w){this.start=S,this.end=w,d.sourceFile!==null&&(this.source=d.sourceFile)};function Bt(s,d){for(var S=1,w=0;;){var N=q(s,w,d);if(N<0)return new Lt(S,d-w);++S,w=N}}var ie={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},qt=!1;function Xe(s){var d={};for(var S in ie)d[S]=s&&K(s,S)?s[S]:ie[S];if(d.ecmaVersion==="latest"?d.ecmaVersion=1e8:d.ecmaVersion==null?(!qt&&typeof console=="object"&&console.warn&&(qt=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
81
|
+
Defaulting to 2020, but this will stop working in the future.`)),d.ecmaVersion=11):d.ecmaVersion>=2015&&(d.ecmaVersion-=2009),d.allowReserved==null&&(d.allowReserved=d.ecmaVersion<5),(!s||s.allowHashBang==null)&&(d.allowHashBang=d.ecmaVersion>=14),nt(d.onToken)){var w=d.onToken;d.onToken=function(N){return w.push(N)}}return nt(d.onComment)&&(d.onComment=Ve(d,d.onComment)),d}function Ve(s,d){return function(S,w,N,j,Q,lt){var ot={type:S?"Block":"Line",value:w,start:N,end:j};s.locations&&(ot.loc=new O(this,Q,lt)),s.ranges&&(ot.range=[N,j]),d.push(ot)}}var he=1,Ce=2,pe=4,Ji=8,di=16,Qi=32,Mi=64,Xi=128,ce=256,mi=512,xi=he|Ce|ce;function ai(s,d){return Ce|(s?pe:0)|(d?Ji:0)}var Ye=0,un=1,Ae=2,Zt=3,ln=4,tt=5,$=function(d,S,w){this.options=d=Xe(d),this.sourceFile=d.sourceFile,this.keywords=At(g[d.ecmaVersion>=6?6:d.sourceType==="module"?"5module":5]);var N="";d.allowReserved!==!0&&(N=x[d.ecmaVersion>=6?6:d.ecmaVersion===5?5:3],d.sourceType==="module"&&(N+=" await")),this.reservedWords=At(N);var j=(N?N+" ":"")+x.strict;this.reservedWordsStrict=At(j),this.reservedWordsStrictBind=At(j+" "+x.strictBind),this.input=String(S),this.containsEsc=!1,w?(this.pos=w,this.lineStart=this.input.lastIndexOf(`
|
|
82
|
+
`,w-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=v.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=d.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&d.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(he),this.regexpState=null,this.privateNameStack=[]},T={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};$.prototype.parse=function(){var d=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(d)},T.inFunction.get=function(){return(this.currentVarScope().flags&Ce)>0},T.inGenerator.get=function(){return(this.currentVarScope().flags&Ji)>0},T.inAsync.get=function(){return(this.currentVarScope().flags&pe)>0},T.canAwait.get=function(){for(var s=this.scopeStack.length-1;s>=0;s--){var d=this.scopeStack[s],S=d.flags;if(S&(ce|mi))return!1;if(S&Ce)return(S&pe)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},T.allowSuper.get=function(){var s=this.currentThisScope(),d=s.flags;return(d&Mi)>0||this.options.allowSuperOutsideMethod},T.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Xi)>0},T.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},T.allowNewDotTarget.get=function(){for(var s=this.scopeStack.length-1;s>=0;s--){var d=this.scopeStack[s],S=d.flags;if(S&(ce|mi)||S&Ce&&!(S&di))return!0}return!1},T.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ce)>0},$.extend=function(){for(var d=[],S=arguments.length;S--;)d[S]=arguments[S];for(var w=this,N=0;N<d.length;N++)w=d[N](w);return w},$.parse=function(d,S){return new this(S,d).parse()},$.parseExpressionAt=function(d,S,w){var N=new this(w,d,S);return N.nextToken(),N.parseExpression()},$.tokenizer=function(d,S){return new this(S,d)},Object.defineProperties($.prototype,T);var ft=$.prototype,Ft=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ft.strictDirective=function(s){if(this.options.ecmaVersion<5)return!1;for(;;){st.lastIndex=s,s+=st.exec(this.input)[0].length;var d=Ft.exec(this.input.slice(s));if(!d)return!1;if((d[1]||d[2])==="use strict"){st.lastIndex=s+d[0].length;var S=st.exec(this.input),w=S.index+S[0].length,N=this.input.charAt(w);return N===";"||N==="}"||R.test(S[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(N)||N==="!"&&this.input.charAt(w+1)==="=")}s+=d[0].length,st.lastIndex=s,s+=st.exec(this.input)[0].length,this.input[s]===";"&&s++}},ft.eat=function(s){return this.type===s?(this.next(),!0):!1},ft.isContextual=function(s){return this.type===v.name&&this.value===s&&!this.containsEsc},ft.eatContextual=function(s){return this.isContextual(s)?(this.next(),!0):!1},ft.expectContextual=function(s){this.eatContextual(s)||this.unexpected()},ft.canInsertSemicolon=function(){return this.type===v.eof||this.type===v.braceR||R.test(this.input.slice(this.lastTokEnd,this.start))},ft.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ft.semicolon=function(){!this.eat(v.semi)&&!this.insertSemicolon()&&this.unexpected()},ft.afterTrailingComma=function(s,d){if(this.type===s)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),d||this.next(),!0},ft.expect=function(s){this.eat(s)||this.unexpected()},ft.unexpected=function(s){this.raise(s??this.start,"Unexpected token")};var ge=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ft.checkPatternErrors=function(s,d){if(s){s.trailingComma>-1&&this.raiseRecoverable(s.trailingComma,"Comma is not permitted after the rest element");var S=d?s.parenthesizedAssign:s.parenthesizedBind;S>-1&&this.raiseRecoverable(S,d?"Assigning to rvalue":"Parenthesized pattern")}},ft.checkExpressionErrors=function(s,d){if(!s)return!1;var S=s.shorthandAssign,w=s.doubleProto;if(!d)return S>=0||w>=0;S>=0&&this.raise(S,"Shorthand property assignments are valid only in destructuring patterns"),w>=0&&this.raiseRecoverable(w,"Redefinition of __proto__ property")},ft.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},ft.isSimpleAssignTarget=function(s){return s.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(s.expression):s.type==="Identifier"||s.type==="MemberExpression"};var ht=$.prototype;ht.parseTopLevel=function(s){var d=Object.create(null);for(s.body||(s.body=[]);this.type!==v.eof;){var S=this.parseStatement(null,!0,d);s.body.push(S)}if(this.inModule)for(var w=0,N=Object.keys(this.undefinedExports);w<N.length;w+=1){var j=N[w];this.raiseRecoverable(this.undefinedExports[j].start,"Export '"+j+"' is not defined")}return this.adaptDirectivePrologue(s.body),this.next(),s.sourceType=this.options.sourceType,this.finishNode(s,"Program")};var Le={kind:"loop"},gi={kind:"switch"};ht.isLet=function(s){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;st.lastIndex=this.pos;var d=st.exec(this.input),S=this.pos+d[0].length,w=this.input.charCodeAt(S);if(w===91||w===92)return!0;if(s)return!1;if(w===123||w>55295&&w<56320)return!0;if(L(w,!0)){for(var N=S+1;B(w=this.input.charCodeAt(N),!0);)++N;if(w===92||w>55295&&w<56320)return!0;var j=this.input.slice(S,N);if(!y.test(j))return!0}return!1},ht.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;st.lastIndex=this.pos;var s=st.exec(this.input),d=this.pos+s[0].length,S;return!R.test(this.input.slice(this.pos,d))&&this.input.slice(d,d+8)==="function"&&(d+8===this.input.length||!(B(S=this.input.charCodeAt(d+8))||S>55295&&S<56320))},ht.parseStatement=function(s,d,S){var w=this.type,N=this.startNode(),j;switch(this.isLet(s)&&(w=v._var,j="let"),w){case v._break:case v._continue:return this.parseBreakContinueStatement(N,w.keyword);case v._debugger:return this.parseDebuggerStatement(N);case v._do:return this.parseDoStatement(N);case v._for:return this.parseForStatement(N);case v._function:return s&&(this.strict||s!=="if"&&s!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(N,!1,!s);case v._class:return s&&this.unexpected(),this.parseClass(N,!0);case v._if:return this.parseIfStatement(N);case v._return:return this.parseReturnStatement(N);case v._switch:return this.parseSwitchStatement(N);case v._throw:return this.parseThrowStatement(N);case v._try:return this.parseTryStatement(N);case v._const:case v._var:return j=j||this.value,s&&j!=="var"&&this.unexpected(),this.parseVarStatement(N,j);case v._while:return this.parseWhileStatement(N);case v._with:return this.parseWithStatement(N);case v.braceL:return this.parseBlock(!0,N);case v.semi:return this.parseEmptyStatement(N);case v._export:case v._import:if(this.options.ecmaVersion>10&&w===v._import){st.lastIndex=this.pos;var Q=st.exec(this.input),lt=this.pos+Q[0].length,ot=this.input.charCodeAt(lt);if(ot===40||ot===46)return this.parseExpressionStatement(N,this.parseExpression())}return this.options.allowImportExportEverywhere||(d||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),w===v._import?this.parseImport(N):this.parseExport(N,S);default:if(this.isAsyncFunction())return s&&this.unexpected(),this.next(),this.parseFunctionStatement(N,!0,!s);var Tt=this.value,St=this.parseExpression();return w===v.name&&St.type==="Identifier"&&this.eat(v.colon)?this.parseLabeledStatement(N,Tt,St,s):this.parseExpressionStatement(N,St)}},ht.parseBreakContinueStatement=function(s,d){var S=d==="break";this.next(),this.eat(v.semi)||this.insertSemicolon()?s.label=null:this.type!==v.name?this.unexpected():(s.label=this.parseIdent(),this.semicolon());for(var w=0;w<this.labels.length;++w){var N=this.labels[w];if((s.label==null||N.name===s.label.name)&&(N.kind!=null&&(S||N.kind==="loop")||s.label&&S))break}return w===this.labels.length&&this.raise(s.start,"Unsyntactic "+d),this.finishNode(s,S?"BreakStatement":"ContinueStatement")},ht.parseDebuggerStatement=function(s){return this.next(),this.semicolon(),this.finishNode(s,"DebuggerStatement")},ht.parseDoStatement=function(s){return this.next(),this.labels.push(Le),s.body=this.parseStatement("do"),this.labels.pop(),this.expect(v._while),s.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(v.semi):this.semicolon(),this.finishNode(s,"DoWhileStatement")},ht.parseForStatement=function(s){this.next();var d=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Le),this.enterScope(0),this.expect(v.parenL),this.type===v.semi)return d>-1&&this.unexpected(d),this.parseFor(s,null);var S=this.isLet();if(this.type===v._var||this.type===v._const||S){var w=this.startNode(),N=S?"let":this.value;return this.next(),this.parseVar(w,!0,N),this.finishNode(w,"VariableDeclaration"),(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&w.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===v._in?d>-1&&this.unexpected(d):s.await=d>-1),this.parseForIn(s,w)):(d>-1&&this.unexpected(d),this.parseFor(s,w))}var j=this.isContextual("let"),Q=!1,lt=this.containsEsc,ot=new ge,Tt=this.start,St=d>-1?this.parseExprSubscripts(ot,"await"):this.parseExpression(!0,ot);return this.type===v._in||(Q=this.options.ecmaVersion>=6&&this.isContextual("of"))?(d>-1?(this.type===v._in&&this.unexpected(d),s.await=!0):Q&&this.options.ecmaVersion>=8&&(St.start===Tt&&!lt&&St.type==="Identifier"&&St.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(s.await=!1)),j&&Q&&this.raise(St.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(St,!1,ot),this.checkLValPattern(St),this.parseForIn(s,St)):(this.checkExpressionErrors(ot,!0),d>-1&&this.unexpected(d),this.parseFor(s,St))},ht.parseFunctionStatement=function(s,d,S){return this.next(),this.parseFunction(s,se|(S?0:Fe),!1,d)},ht.parseIfStatement=function(s){return this.next(),s.test=this.parseParenExpression(),s.consequent=this.parseStatement("if"),s.alternate=this.eat(v._else)?this.parseStatement("if"):null,this.finishNode(s,"IfStatement")},ht.parseReturnStatement=function(s){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(v.semi)||this.insertSemicolon()?s.argument=null:(s.argument=this.parseExpression(),this.semicolon()),this.finishNode(s,"ReturnStatement")},ht.parseSwitchStatement=function(s){this.next(),s.discriminant=this.parseParenExpression(),s.cases=[],this.expect(v.braceL),this.labels.push(gi),this.enterScope(0);for(var d,S=!1;this.type!==v.braceR;)if(this.type===v._case||this.type===v._default){var w=this.type===v._case;d&&this.finishNode(d,"SwitchCase"),s.cases.push(d=this.startNode()),d.consequent=[],this.next(),w?d.test=this.parseExpression():(S&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),S=!0,d.test=null),this.expect(v.colon)}else d||this.unexpected(),d.consequent.push(this.parseStatement(null));return this.exitScope(),d&&this.finishNode(d,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(s,"SwitchStatement")},ht.parseThrowStatement=function(s){return this.next(),R.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),s.argument=this.parseExpression(),this.semicolon(),this.finishNode(s,"ThrowStatement")};var He=[];ht.parseCatchClauseParam=function(){var s=this.parseBindingAtom(),d=s.type==="Identifier";return this.enterScope(d?Qi:0),this.checkLValPattern(s,d?ln:Ae),this.expect(v.parenR),s},ht.parseTryStatement=function(s){if(this.next(),s.block=this.parseBlock(),s.handler=null,this.type===v._catch){var d=this.startNode();this.next(),this.eat(v.parenL)?d.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),d.param=null,this.enterScope(0)),d.body=this.parseBlock(!1),this.exitScope(),s.handler=this.finishNode(d,"CatchClause")}return s.finalizer=this.eat(v._finally)?this.parseBlock():null,!s.handler&&!s.finalizer&&this.raise(s.start,"Missing catch or finally clause"),this.finishNode(s,"TryStatement")},ht.parseVarStatement=function(s,d,S){return this.next(),this.parseVar(s,!1,d,S),this.semicolon(),this.finishNode(s,"VariableDeclaration")},ht.parseWhileStatement=function(s){return this.next(),s.test=this.parseParenExpression(),this.labels.push(Le),s.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(s,"WhileStatement")},ht.parseWithStatement=function(s){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),s.object=this.parseParenExpression(),s.body=this.parseStatement("with"),this.finishNode(s,"WithStatement")},ht.parseEmptyStatement=function(s){return this.next(),this.finishNode(s,"EmptyStatement")},ht.parseLabeledStatement=function(s,d,S,w){for(var N=0,j=this.labels;N<j.length;N+=1){var Q=j[N];Q.name===d&&this.raise(S.start,"Label '"+d+"' is already declared")}for(var lt=this.type.isLoop?"loop":this.type===v._switch?"switch":null,ot=this.labels.length-1;ot>=0;ot--){var Tt=this.labels[ot];if(Tt.statementStart===s.start)Tt.statementStart=this.start,Tt.kind=lt;else break}return this.labels.push({name:d,kind:lt,statementStart:this.start}),s.body=this.parseStatement(w?w.indexOf("label")===-1?w+"label":w:"label"),this.labels.pop(),s.label=S,this.finishNode(s,"LabeledStatement")},ht.parseExpressionStatement=function(s,d){return s.expression=d,this.semicolon(),this.finishNode(s,"ExpressionStatement")},ht.parseBlock=function(s,d,S){for(s===void 0&&(s=!0),d===void 0&&(d=this.startNode()),d.body=[],this.expect(v.braceL),s&&this.enterScope(0);this.type!==v.braceR;){var w=this.parseStatement(null);d.body.push(w)}return S&&(this.strict=!1),this.next(),s&&this.exitScope(),this.finishNode(d,"BlockStatement")},ht.parseFor=function(s,d){return s.init=d,this.expect(v.semi),s.test=this.type===v.semi?null:this.parseExpression(),this.expect(v.semi),s.update=this.type===v.parenR?null:this.parseExpression(),this.expect(v.parenR),s.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(s,"ForStatement")},ht.parseForIn=function(s,d){var S=this.type===v._in;return this.next(),d.type==="VariableDeclaration"&&d.declarations[0].init!=null&&(!S||this.options.ecmaVersion<8||this.strict||d.kind!=="var"||d.declarations[0].id.type!=="Identifier")&&this.raise(d.start,(S?"for-in":"for-of")+" loop variable declaration may not have an initializer"),s.left=d,s.right=S?this.parseExpression():this.parseMaybeAssign(),this.expect(v.parenR),s.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(s,S?"ForInStatement":"ForOfStatement")},ht.parseVar=function(s,d,S,w){for(s.declarations=[],s.kind=S;;){var N=this.startNode();if(this.parseVarId(N,S),this.eat(v.eq)?N.init=this.parseMaybeAssign(d):!w&&S==="const"&&!(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!w&&N.id.type!=="Identifier"&&!(d&&(this.type===v._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):N.init=null,s.declarations.push(this.finishNode(N,"VariableDeclarator")),!this.eat(v.comma))break}return s},ht.parseVarId=function(s,d){s.id=this.parseBindingAtom(),this.checkLValPattern(s.id,d==="var"?un:Ae,!1)};var se=1,Fe=2,Ze=4;ht.parseFunction=function(s,d,S,w,N){this.initFunction(s),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!w)&&(this.type===v.star&&d&Fe&&this.unexpected(),s.generator=this.eat(v.star)),this.options.ecmaVersion>=8&&(s.async=!!w),d&se&&(s.id=d&Ze&&this.type!==v.name?null:this.parseIdent(),s.id&&!(d&Fe)&&this.checkLValSimple(s.id,this.strict||s.generator||s.async?this.treatFunctionsAsVar?un:Ae:Zt));var j=this.yieldPos,Q=this.awaitPos,lt=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ai(s.async,s.generator)),d&se||(s.id=this.type===v.name?this.parseIdent():null),this.parseFunctionParams(s),this.parseFunctionBody(s,S,!1,N),this.yieldPos=j,this.awaitPos=Q,this.awaitIdentPos=lt,this.finishNode(s,d&se?"FunctionDeclaration":"FunctionExpression")},ht.parseFunctionParams=function(s){this.expect(v.parenL),s.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ht.parseClass=function(s,d){this.next();var S=this.strict;this.strict=!0,this.parseClassId(s,d),this.parseClassSuper(s);var w=this.enterClassBody(),N=this.startNode(),j=!1;for(N.body=[],this.expect(v.braceL);this.type!==v.braceR;){var Q=this.parseClassElement(s.superClass!==null);Q&&(N.body.push(Q),Q.type==="MethodDefinition"&&Q.kind==="constructor"?(j&&this.raiseRecoverable(Q.start,"Duplicate constructor in the same class"),j=!0):Q.key&&Q.key.type==="PrivateIdentifier"&&Ks(w,Q)&&this.raiseRecoverable(Q.key.start,"Identifier '#"+Q.key.name+"' has already been declared"))}return this.strict=S,this.next(),s.body=this.finishNode(N,"ClassBody"),this.exitClassBody(),this.finishNode(s,d?"ClassDeclaration":"ClassExpression")},ht.parseClassElement=function(s){if(this.eat(v.semi))return null;var d=this.options.ecmaVersion,S=this.startNode(),w="",N=!1,j=!1,Q="method",lt=!1;if(this.eatContextual("static")){if(d>=13&&this.eat(v.braceL))return this.parseClassStaticBlock(S),S;this.isClassElementNameStart()||this.type===v.star?lt=!0:w="static"}if(S.static=lt,!w&&d>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===v.star)&&!this.canInsertSemicolon()?j=!0:w="async"),!w&&(d>=9||!j)&&this.eat(v.star)&&(N=!0),!w&&!j&&!N){var ot=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Q=ot:w=ot)}if(w?(S.computed=!1,S.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),S.key.name=w,this.finishNode(S.key,"Identifier")):this.parseClassElementName(S),d<13||this.type===v.parenL||Q!=="method"||N||j){var Tt=!S.static&&ba(S,"constructor"),St=Tt&&s;Tt&&Q!=="method"&&this.raise(S.key.start,"Constructor can't have get/set modifier"),S.kind=Tt?"constructor":Q,this.parseClassMethod(S,N,j,St)}else this.parseClassField(S);return S},ht.isClassElementNameStart=function(){return this.type===v.name||this.type===v.privateId||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword},ht.parseClassElementName=function(s){this.type===v.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),s.computed=!1,s.key=this.parsePrivateIdent()):this.parsePropertyName(s)},ht.parseClassMethod=function(s,d,S,w){var N=s.key;s.kind==="constructor"?(d&&this.raise(N.start,"Constructor can't be a generator"),S&&this.raise(N.start,"Constructor can't be an async method")):s.static&&ba(s,"prototype")&&this.raise(N.start,"Classes may not have a static property named prototype");var j=s.value=this.parseMethod(d,S,w);return s.kind==="get"&&j.params.length!==0&&this.raiseRecoverable(j.start,"getter should have no params"),s.kind==="set"&&j.params.length!==1&&this.raiseRecoverable(j.start,"setter should have exactly one param"),s.kind==="set"&&j.params[0].type==="RestElement"&&this.raiseRecoverable(j.params[0].start,"Setter cannot use rest params"),this.finishNode(s,"MethodDefinition")},ht.parseClassField=function(s){return ba(s,"constructor")?this.raise(s.key.start,"Classes can't have a field named 'constructor'"):s.static&&ba(s,"prototype")&&this.raise(s.key.start,"Classes can't have a static field named 'prototype'"),this.eat(v.eq)?(this.enterScope(mi|Mi),s.value=this.parseMaybeAssign(),this.exitScope()):s.value=null,this.semicolon(),this.finishNode(s,"PropertyDefinition")},ht.parseClassStaticBlock=function(s){s.body=[];var d=this.labels;for(this.labels=[],this.enterScope(ce|Mi);this.type!==v.braceR;){var S=this.parseStatement(null);s.body.push(S)}return this.next(),this.exitScope(),this.labels=d,this.finishNode(s,"StaticBlock")},ht.parseClassId=function(s,d){this.type===v.name?(s.id=this.parseIdent(),d&&this.checkLValSimple(s.id,Ae,!1)):(d===!0&&this.unexpected(),s.id=null)},ht.parseClassSuper=function(s){s.superClass=this.eat(v._extends)?this.parseExprSubscripts(null,!1):null},ht.enterClassBody=function(){var s={declared:Object.create(null),used:[]};return this.privateNameStack.push(s),s.declared},ht.exitClassBody=function(){var s=this.privateNameStack.pop(),d=s.declared,S=s.used;if(this.options.checkPrivateFields)for(var w=this.privateNameStack.length,N=w===0?null:this.privateNameStack[w-1],j=0;j<S.length;++j){var Q=S[j];K(d,Q.name)||(N?N.used.push(Q):this.raiseRecoverable(Q.start,"Private field '#"+Q.name+"' must be declared in an enclosing class"))}};function Ks(s,d){var S=d.key.name,w=s[S],N="true";return d.type==="MethodDefinition"&&(d.kind==="get"||d.kind==="set")&&(N=(d.static?"s":"i")+d.kind),w==="iget"&&N==="iset"||w==="iset"&&N==="iget"||w==="sget"&&N==="sset"||w==="sset"&&N==="sget"?(s[S]="true",!1):w?!0:(s[S]=N,!1)}function ba(s,d){var S=s.computed,w=s.key;return!S&&(w.type==="Identifier"&&w.name===d||w.type==="Literal"&&w.value===d)}ht.parseExportAllDeclaration=function(s,d){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(s.exported=this.parseModuleExportName(),this.checkExport(d,s.exported,this.lastTokStart)):s.exported=null),this.expectContextual("from"),this.type!==v.string&&this.unexpected(),s.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(s,"ExportAllDeclaration")},ht.parseExport=function(s,d){if(this.next(),this.eat(v.star))return this.parseExportAllDeclaration(s,d);if(this.eat(v._default))return this.checkExport(d,"default",this.lastTokStart),s.declaration=this.parseExportDefaultDeclaration(),this.finishNode(s,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())s.declaration=this.parseExportDeclaration(s),s.declaration.type==="VariableDeclaration"?this.checkVariableExport(d,s.declaration.declarations):this.checkExport(d,s.declaration.id,s.declaration.id.start),s.specifiers=[],s.source=null,this.options.ecmaVersion>=16&&(s.attributes=[]);else{if(s.declaration=null,s.specifiers=this.parseExportSpecifiers(d),this.eatContextual("from"))this.type!==v.string&&this.unexpected(),s.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause());else{for(var S=0,w=s.specifiers;S<w.length;S+=1){var N=w[S];this.checkUnreserved(N.local),this.checkLocalExport(N.local),N.local.type==="Literal"&&this.raise(N.local.start,"A string literal cannot be used as an exported binding without `from`.")}s.source=null,this.options.ecmaVersion>=16&&(s.attributes=[])}this.semicolon()}return this.finishNode(s,"ExportNamedDeclaration")},ht.parseExportDeclaration=function(s){return this.parseStatement(null)},ht.parseExportDefaultDeclaration=function(){var s;if(this.type===v._function||(s=this.isAsyncFunction())){var d=this.startNode();return this.next(),s&&this.next(),this.parseFunction(d,se|Ze,!1,s)}else if(this.type===v._class){var S=this.startNode();return this.parseClass(S,"nullableID")}else{var w=this.parseMaybeAssign();return this.semicolon(),w}},ht.checkExport=function(s,d,S){s&&(typeof d!="string"&&(d=d.type==="Identifier"?d.name:d.value),K(s,d)&&this.raiseRecoverable(S,"Duplicate export '"+d+"'"),s[d]=!0)},ht.checkPatternExport=function(s,d){var S=d.type;if(S==="Identifier")this.checkExport(s,d,d.start);else if(S==="ObjectPattern")for(var w=0,N=d.properties;w<N.length;w+=1){var j=N[w];this.checkPatternExport(s,j)}else if(S==="ArrayPattern")for(var Q=0,lt=d.elements;Q<lt.length;Q+=1){var ot=lt[Q];ot&&this.checkPatternExport(s,ot)}else S==="Property"?this.checkPatternExport(s,d.value):S==="AssignmentPattern"?this.checkPatternExport(s,d.left):S==="RestElement"&&this.checkPatternExport(s,d.argument)},ht.checkVariableExport=function(s,d){if(s)for(var S=0,w=d;S<w.length;S+=1){var N=w[S];this.checkPatternExport(s,N.id)}},ht.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ht.parseExportSpecifier=function(s){var d=this.startNode();return d.local=this.parseModuleExportName(),d.exported=this.eatContextual("as")?this.parseModuleExportName():d.local,this.checkExport(s,d.exported,d.exported.start),this.finishNode(d,"ExportSpecifier")},ht.parseExportSpecifiers=function(s){var d=[],S=!0;for(this.expect(v.braceL);!this.eat(v.braceR);){if(S)S=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;d.push(this.parseExportSpecifier(s))}return d},ht.parseImport=function(s){return this.next(),this.type===v.string?(s.specifiers=He,s.source=this.parseExprAtom()):(s.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),s.source=this.type===v.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(s,"ImportDeclaration")},ht.parseImportSpecifier=function(){var s=this.startNode();return s.imported=this.parseModuleExportName(),this.eatContextual("as")?s.local=this.parseIdent():(this.checkUnreserved(s.imported),s.local=s.imported),this.checkLValSimple(s.local,Ae),this.finishNode(s,"ImportSpecifier")},ht.parseImportDefaultSpecifier=function(){var s=this.startNode();return s.local=this.parseIdent(),this.checkLValSimple(s.local,Ae),this.finishNode(s,"ImportDefaultSpecifier")},ht.parseImportNamespaceSpecifier=function(){var s=this.startNode();return this.next(),this.expectContextual("as"),s.local=this.parseIdent(),this.checkLValSimple(s.local,Ae),this.finishNode(s,"ImportNamespaceSpecifier")},ht.parseImportSpecifiers=function(){var s=[],d=!0;if(this.type===v.name&&(s.push(this.parseImportDefaultSpecifier()),!this.eat(v.comma)))return s;if(this.type===v.star)return s.push(this.parseImportNamespaceSpecifier()),s;for(this.expect(v.braceL);!this.eat(v.braceR);){if(d)d=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;s.push(this.parseImportSpecifier())}return s},ht.parseWithClause=function(){var s=[];if(!this.eat(v._with))return s;this.expect(v.braceL);for(var d={},S=!0;!this.eat(v.braceR);){if(S)S=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;var w=this.parseImportAttribute(),N=w.key.type==="Identifier"?w.key.name:w.key.value;K(d,N)&&this.raiseRecoverable(w.key.start,"Duplicate attribute key '"+N+"'"),d[N]=!0,s.push(w)}return s},ht.parseImportAttribute=function(){var s=this.startNode();return s.key=this.type===v.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(v.colon),this.type!==v.string&&this.unexpected(),s.value=this.parseExprAtom(),this.finishNode(s,"ImportAttribute")},ht.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===v.string){var s=this.parseLiteral(this.value);return Gt.test(s.value)&&this.raise(s.start,"An export name cannot include a lone surrogate."),s}return this.parseIdent(!0)},ht.adaptDirectivePrologue=function(s){for(var d=0;d<s.length&&this.isDirectiveCandidate(s[d]);++d)s[d].directive=s[d].expression.raw.slice(1,-1)},ht.isDirectiveCandidate=function(s){return this.options.ecmaVersion>=5&&s.type==="ExpressionStatement"&&s.expression.type==="Literal"&&typeof s.expression.value=="string"&&(this.input[s.start]==='"'||this.input[s.start]==="'")};var je=$.prototype;je.toAssignable=function(s,d,S){if(this.options.ecmaVersion>=6&&s)switch(s.type){case"Identifier":this.inAsync&&s.name==="await"&&this.raise(s.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":s.type="ObjectPattern",S&&this.checkPatternErrors(S,!0);for(var w=0,N=s.properties;w<N.length;w+=1){var j=N[w];this.toAssignable(j,d),j.type==="RestElement"&&(j.argument.type==="ArrayPattern"||j.argument.type==="ObjectPattern")&&this.raise(j.argument.start,"Unexpected token")}break;case"Property":s.kind!=="init"&&this.raise(s.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(s.value,d);break;case"ArrayExpression":s.type="ArrayPattern",S&&this.checkPatternErrors(S,!0),this.toAssignableList(s.elements,d);break;case"SpreadElement":s.type="RestElement",this.toAssignable(s.argument,d),s.argument.type==="AssignmentPattern"&&this.raise(s.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":s.operator!=="="&&this.raise(s.left.end,"Only '=' operator can be used for specifying default value."),s.type="AssignmentPattern",delete s.operator,this.toAssignable(s.left,d);break;case"ParenthesizedExpression":this.toAssignable(s.expression,d,S);break;case"ChainExpression":this.raiseRecoverable(s.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!d)break;default:this.raise(s.start,"Assigning to rvalue")}else S&&this.checkPatternErrors(S,!0);return s},je.toAssignableList=function(s,d){for(var S=s.length,w=0;w<S;w++){var N=s[w];N&&this.toAssignable(N,d)}if(S){var j=s[S-1];this.options.ecmaVersion===6&&d&&j&&j.type==="RestElement"&&j.argument.type!=="Identifier"&&this.unexpected(j.argument.start)}return s},je.parseSpread=function(s){var d=this.startNode();return this.next(),d.argument=this.parseMaybeAssign(!1,s),this.finishNode(d,"SpreadElement")},je.parseRestBinding=function(){var s=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==v.name&&this.unexpected(),s.argument=this.parseBindingAtom(),this.finishNode(s,"RestElement")},je.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case v.bracketL:var s=this.startNode();return this.next(),s.elements=this.parseBindingList(v.bracketR,!0,!0),this.finishNode(s,"ArrayPattern");case v.braceL:return this.parseObj(!0)}return this.parseIdent()},je.parseBindingList=function(s,d,S,w){for(var N=[],j=!0;!this.eat(s);)if(j?j=!1:this.expect(v.comma),d&&this.type===v.comma)N.push(null);else{if(S&&this.afterTrailingComma(s))break;if(this.type===v.ellipsis){var Q=this.parseRestBinding();this.parseBindingListItem(Q),N.push(Q),this.type===v.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(s);break}else N.push(this.parseAssignableListItem(w))}return N},je.parseAssignableListItem=function(s){var d=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(d),d},je.parseBindingListItem=function(s){return s},je.parseMaybeDefault=function(s,d,S){if(S=S||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(v.eq))return S;var w=this.startNodeAt(s,d);return w.left=S,w.right=this.parseMaybeAssign(),this.finishNode(w,"AssignmentPattern")},je.checkLValSimple=function(s,d,S){d===void 0&&(d=Ye);var w=d!==Ye;switch(s.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(s.name)&&this.raiseRecoverable(s.start,(w?"Binding ":"Assigning to ")+s.name+" in strict mode"),w&&(d===Ae&&s.name==="let"&&this.raiseRecoverable(s.start,"let is disallowed as a lexically bound name"),S&&(K(S,s.name)&&this.raiseRecoverable(s.start,"Argument name clash"),S[s.name]=!0),d!==tt&&this.declareName(s.name,d,s.start));break;case"ChainExpression":this.raiseRecoverable(s.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":w&&this.raiseRecoverable(s.start,"Binding member expression");break;case"ParenthesizedExpression":return w&&this.raiseRecoverable(s.start,"Binding parenthesized expression"),this.checkLValSimple(s.expression,d,S);default:this.raise(s.start,(w?"Binding":"Assigning to")+" rvalue")}},je.checkLValPattern=function(s,d,S){switch(d===void 0&&(d=Ye),s.type){case"ObjectPattern":for(var w=0,N=s.properties;w<N.length;w+=1){var j=N[w];this.checkLValInnerPattern(j,d,S)}break;case"ArrayPattern":for(var Q=0,lt=s.elements;Q<lt.length;Q+=1){var ot=lt[Q];ot&&this.checkLValInnerPattern(ot,d,S)}break;default:this.checkLValSimple(s,d,S)}},je.checkLValInnerPattern=function(s,d,S){switch(d===void 0&&(d=Ye),s.type){case"Property":this.checkLValInnerPattern(s.value,d,S);break;case"AssignmentPattern":this.checkLValPattern(s.left,d,S);break;case"RestElement":this.checkLValPattern(s.argument,d,S);break;default:this.checkLValPattern(s,d,S)}};var De=function(d,S,w,N,j){this.token=d,this.isExpr=!!S,this.preserveSpace=!!w,this.override=N,this.generator=!!j},te={b_stat:new De("{",!1),b_expr:new De("{",!0),b_tmpl:new De("${",!1),p_stat:new De("(",!1),p_expr:new De("(",!0),q_tmpl:new De("`",!0,!0,function(s){return s.tryReadTemplateToken()}),f_stat:new De("function",!1),f_expr:new De("function",!0),f_expr_gen:new De("function",!0,!1,null,!0),f_gen:new De("function",!1,!1,null,!0)},on=$.prototype;on.initialContext=function(){return[te.b_stat]},on.curContext=function(){return this.context[this.context.length-1]},on.braceIsBlock=function(s){var d=this.curContext();return d===te.f_expr||d===te.f_stat?!0:s===v.colon&&(d===te.b_stat||d===te.b_expr)?!d.isExpr:s===v._return||s===v.name&&this.exprAllowed?R.test(this.input.slice(this.lastTokEnd,this.start)):s===v._else||s===v.semi||s===v.eof||s===v.parenR||s===v.arrow?!0:s===v.braceL?d===te.b_stat:s===v._var||s===v._const||s===v.name?!1:!this.exprAllowed},on.inGeneratorContext=function(){for(var s=this.context.length-1;s>=1;s--){var d=this.context[s];if(d.token==="function")return d.generator}return!1},on.updateContext=function(s){var d,S=this.type;S.keyword&&s===v.dot?this.exprAllowed=!1:(d=S.updateContext)?d.call(this,s):this.exprAllowed=S.beforeExpr},on.overrideContext=function(s){this.curContext()!==s&&(this.context[this.context.length-1]=s)},v.parenR.updateContext=v.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var s=this.context.pop();s===te.b_stat&&this.curContext().token==="function"&&(s=this.context.pop()),this.exprAllowed=!s.isExpr},v.braceL.updateContext=function(s){this.context.push(this.braceIsBlock(s)?te.b_stat:te.b_expr),this.exprAllowed=!0},v.dollarBraceL.updateContext=function(){this.context.push(te.b_tmpl),this.exprAllowed=!0},v.parenL.updateContext=function(s){var d=s===v._if||s===v._for||s===v._with||s===v._while;this.context.push(d?te.p_stat:te.p_expr),this.exprAllowed=!0},v.incDec.updateContext=function(){},v._function.updateContext=v._class.updateContext=function(s){s.beforeExpr&&s!==v._else&&!(s===v.semi&&this.curContext()!==te.p_stat)&&!(s===v._return&&R.test(this.input.slice(this.lastTokEnd,this.start)))&&!((s===v.colon||s===v.braceL)&&this.curContext()===te.b_stat)?this.context.push(te.f_expr):this.context.push(te.f_stat),this.exprAllowed=!1},v.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},v.backQuote.updateContext=function(){this.curContext()===te.q_tmpl?this.context.pop():this.context.push(te.q_tmpl),this.exprAllowed=!1},v.star.updateContext=function(s){if(s===v._function){var d=this.context.length-1;this.context[d]===te.f_expr?this.context[d]=te.f_expr_gen:this.context[d]=te.f_gen}this.exprAllowed=!0},v.name.updateContext=function(s){var d=!1;this.options.ecmaVersion>=6&&s!==v.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(d=!0),this.exprAllowed=d};var wt=$.prototype;wt.checkPropClash=function(s,d,S){if(!(this.options.ecmaVersion>=9&&s.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(s.computed||s.method||s.shorthand))){var w=s.key,N;switch(w.type){case"Identifier":N=w.name;break;case"Literal":N=String(w.value);break;default:return}var j=s.kind;if(this.options.ecmaVersion>=6){N==="__proto__"&&j==="init"&&(d.proto&&(S?S.doubleProto<0&&(S.doubleProto=w.start):this.raiseRecoverable(w.start,"Redefinition of __proto__ property")),d.proto=!0);return}N="$"+N;var Q=d[N];if(Q){var lt;j==="init"?lt=this.strict&&Q.init||Q.get||Q.set:lt=Q.init||Q[j],lt&&this.raiseRecoverable(w.start,"Redefinition of property")}else Q=d[N]={init:!1,get:!1,set:!1};Q[j]=!0}},wt.parseExpression=function(s,d){var S=this.start,w=this.startLoc,N=this.parseMaybeAssign(s,d);if(this.type===v.comma){var j=this.startNodeAt(S,w);for(j.expressions=[N];this.eat(v.comma);)j.expressions.push(this.parseMaybeAssign(s,d));return this.finishNode(j,"SequenceExpression")}return N},wt.parseMaybeAssign=function(s,d,S){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(s);this.exprAllowed=!1}var w=!1,N=-1,j=-1,Q=-1;d?(N=d.parenthesizedAssign,j=d.trailingComma,Q=d.doubleProto,d.parenthesizedAssign=d.trailingComma=-1):(d=new ge,w=!0);var lt=this.start,ot=this.startLoc;(this.type===v.parenL||this.type===v.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=s==="await");var Tt=this.parseMaybeConditional(s,d);if(S&&(Tt=S.call(this,Tt,lt,ot)),this.type.isAssign){var St=this.startNodeAt(lt,ot);return St.operator=this.value,this.type===v.eq&&(Tt=this.toAssignable(Tt,!1,d)),w||(d.parenthesizedAssign=d.trailingComma=d.doubleProto=-1),d.shorthandAssign>=Tt.start&&(d.shorthandAssign=-1),this.type===v.eq?this.checkLValPattern(Tt):this.checkLValSimple(Tt),St.left=Tt,this.next(),St.right=this.parseMaybeAssign(s),Q>-1&&(d.doubleProto=Q),this.finishNode(St,"AssignmentExpression")}else w&&this.checkExpressionErrors(d,!0);return N>-1&&(d.parenthesizedAssign=N),j>-1&&(d.trailingComma=j),Tt},wt.parseMaybeConditional=function(s,d){var S=this.start,w=this.startLoc,N=this.parseExprOps(s,d);if(this.checkExpressionErrors(d))return N;if(this.eat(v.question)){var j=this.startNodeAt(S,w);return j.test=N,j.consequent=this.parseMaybeAssign(),this.expect(v.colon),j.alternate=this.parseMaybeAssign(s),this.finishNode(j,"ConditionalExpression")}return N},wt.parseExprOps=function(s,d){var S=this.start,w=this.startLoc,N=this.parseMaybeUnary(d,!1,!1,s);return this.checkExpressionErrors(d)||N.start===S&&N.type==="ArrowFunctionExpression"?N:this.parseExprOp(N,S,w,-1,s)},wt.parseExprOp=function(s,d,S,w,N){var j=this.type.binop;if(j!=null&&(!N||this.type!==v._in)&&j>w){var Q=this.type===v.logicalOR||this.type===v.logicalAND,lt=this.type===v.coalesce;lt&&(j=v.logicalAND.binop);var ot=this.value;this.next();var Tt=this.start,St=this.startLoc,ue=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,N),Tt,St,j,N),Zi=this.buildBinary(d,S,s,ue,ot,Q||lt);return(Q&&this.type===v.coalesce||lt&&(this.type===v.logicalOR||this.type===v.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Zi,d,S,w,N)}return s},wt.buildBinary=function(s,d,S,w,N,j){w.type==="PrivateIdentifier"&&this.raise(w.start,"Private identifier can only be left side of binary expression");var Q=this.startNodeAt(s,d);return Q.left=S,Q.operator=N,Q.right=w,this.finishNode(Q,j?"LogicalExpression":"BinaryExpression")},wt.parseMaybeUnary=function(s,d,S,w){var N=this.start,j=this.startLoc,Q;if(this.isContextual("await")&&this.canAwait)Q=this.parseAwait(w),d=!0;else if(this.type.prefix){var lt=this.startNode(),ot=this.type===v.incDec;lt.operator=this.value,lt.prefix=!0,this.next(),lt.argument=this.parseMaybeUnary(null,!0,ot,w),this.checkExpressionErrors(s,!0),ot?this.checkLValSimple(lt.argument):this.strict&<.operator==="delete"&&Ha(lt.argument)?this.raiseRecoverable(lt.start,"Deleting local variable in strict mode"):lt.operator==="delete"&&ya(lt.argument)?this.raiseRecoverable(lt.start,"Private fields can not be deleted"):d=!0,Q=this.finishNode(lt,ot?"UpdateExpression":"UnaryExpression")}else if(!d&&this.type===v.privateId)(w||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),Q=this.parsePrivateIdent(),this.type!==v._in&&this.unexpected();else{if(Q=this.parseExprSubscripts(s,w),this.checkExpressionErrors(s))return Q;for(;this.type.postfix&&!this.canInsertSemicolon();){var Tt=this.startNodeAt(N,j);Tt.operator=this.value,Tt.prefix=!1,Tt.argument=Q,this.checkLValSimple(Q),this.next(),Q=this.finishNode(Tt,"UpdateExpression")}}if(!S&&this.eat(v.starstar))if(d)this.unexpected(this.lastTokStart);else return this.buildBinary(N,j,Q,this.parseMaybeUnary(null,!1,!1,w),"**",!1);else return Q};function Ha(s){return s.type==="Identifier"||s.type==="ParenthesizedExpression"&&Ha(s.expression)}function ya(s){return s.type==="MemberExpression"&&s.property.type==="PrivateIdentifier"||s.type==="ChainExpression"&&ya(s.expression)||s.type==="ParenthesizedExpression"&&ya(s.expression)}wt.parseExprSubscripts=function(s,d){var S=this.start,w=this.startLoc,N=this.parseExprAtom(s,d);if(N.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return N;var j=this.parseSubscripts(N,S,w,!1,d);return s&&j.type==="MemberExpression"&&(s.parenthesizedAssign>=j.start&&(s.parenthesizedAssign=-1),s.parenthesizedBind>=j.start&&(s.parenthesizedBind=-1),s.trailingComma>=j.start&&(s.trailingComma=-1)),j},wt.parseSubscripts=function(s,d,S,w,N){for(var j=this.options.ecmaVersion>=8&&s.type==="Identifier"&&s.name==="async"&&this.lastTokEnd===s.end&&!this.canInsertSemicolon()&&s.end-s.start===5&&this.potentialArrowAt===s.start,Q=!1;;){var lt=this.parseSubscript(s,d,S,w,j,Q,N);if(lt.optional&&(Q=!0),lt===s||lt.type==="ArrowFunctionExpression"){if(Q){var ot=this.startNodeAt(d,S);ot.expression=lt,lt=this.finishNode(ot,"ChainExpression")}return lt}s=lt}},wt.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(v.arrow)},wt.parseSubscriptAsyncArrow=function(s,d,S,w){return this.parseArrowExpression(this.startNodeAt(s,d),S,!0,w)},wt.parseSubscript=function(s,d,S,w,N,j,Q){var lt=this.options.ecmaVersion>=11,ot=lt&&this.eat(v.questionDot);w&&ot&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Tt=this.eat(v.bracketL);if(Tt||ot&&this.type!==v.parenL&&this.type!==v.backQuote||this.eat(v.dot)){var St=this.startNodeAt(d,S);St.object=s,Tt?(St.property=this.parseExpression(),this.expect(v.bracketR)):this.type===v.privateId&&s.type!=="Super"?St.property=this.parsePrivateIdent():St.property=this.parseIdent(this.options.allowReserved!=="never"),St.computed=!!Tt,lt&&(St.optional=ot),s=this.finishNode(St,"MemberExpression")}else if(!w&&this.eat(v.parenL)){var ue=new ge,Zi=this.yieldPos,ke=this.awaitPos,We=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var hn=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1,ue);if(N&&!ot&&this.shouldParseAsyncArrow())return this.checkPatternErrors(ue,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Zi,this.awaitPos=ke,this.awaitIdentPos=We,this.parseSubscriptAsyncArrow(d,S,hn,Q);this.checkExpressionErrors(ue,!0),this.yieldPos=Zi||this.yieldPos,this.awaitPos=ke||this.awaitPos,this.awaitIdentPos=We||this.awaitIdentPos;var yi=this.startNodeAt(d,S);yi.callee=s,yi.arguments=hn,lt&&(yi.optional=ot),s=this.finishNode(yi,"CallExpression")}else if(this.type===v.backQuote){(ot||j)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var qn=this.startNodeAt(d,S);qn.tag=s,qn.quasi=this.parseTemplate({isTagged:!0}),s=this.finishNode(qn,"TaggedTemplateExpression")}return s},wt.parseExprAtom=function(s,d,S){this.type===v.slash&&this.readRegexp();var w,N=this.potentialArrowAt===this.start;switch(this.type){case v._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),w=this.startNode(),this.next(),this.type===v.parenL&&!this.allowDirectSuper&&this.raise(w.start,"super() call outside constructor of a subclass"),this.type!==v.dot&&this.type!==v.bracketL&&this.type!==v.parenL&&this.unexpected(),this.finishNode(w,"Super");case v._this:return w=this.startNode(),this.next(),this.finishNode(w,"ThisExpression");case v.name:var j=this.start,Q=this.startLoc,lt=this.containsEsc,ot=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!lt&&ot.name==="async"&&!this.canInsertSemicolon()&&this.eat(v._function))return this.overrideContext(te.f_expr),this.parseFunction(this.startNodeAt(j,Q),0,!1,!0,d);if(N&&!this.canInsertSemicolon()){if(this.eat(v.arrow))return this.parseArrowExpression(this.startNodeAt(j,Q),[ot],!1,d);if(this.options.ecmaVersion>=8&&ot.name==="async"&&this.type===v.name&&!lt&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return ot=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(v.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(j,Q),[ot],!0,d)}return ot;case v.regexp:var Tt=this.value;return w=this.parseLiteral(Tt.value),w.regex={pattern:Tt.pattern,flags:Tt.flags},w;case v.num:case v.string:return this.parseLiteral(this.value);case v._null:case v._true:case v._false:return w=this.startNode(),w.value=this.type===v._null?null:this.type===v._true,w.raw=this.type.keyword,this.next(),this.finishNode(w,"Literal");case v.parenL:var St=this.start,ue=this.parseParenAndDistinguishExpression(N,d);return s&&(s.parenthesizedAssign<0&&!this.isSimpleAssignTarget(ue)&&(s.parenthesizedAssign=St),s.parenthesizedBind<0&&(s.parenthesizedBind=St)),ue;case v.bracketL:return w=this.startNode(),this.next(),w.elements=this.parseExprList(v.bracketR,!0,!0,s),this.finishNode(w,"ArrayExpression");case v.braceL:return this.overrideContext(te.b_expr),this.parseObj(!1,s);case v._function:return w=this.startNode(),this.next(),this.parseFunction(w,0);case v._class:return this.parseClass(this.startNode(),!1);case v._new:return this.parseNew();case v.backQuote:return this.parseTemplate();case v._import:return this.options.ecmaVersion>=11?this.parseExprImport(S):this.unexpected();default:return this.parseExprAtomDefault()}},wt.parseExprAtomDefault=function(){this.unexpected()},wt.parseExprImport=function(s){var d=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===v.parenL&&!s)return this.parseDynamicImport(d);if(this.type===v.dot){var S=this.startNodeAt(d.start,d.loc&&d.loc.start);return S.name="import",d.meta=this.finishNode(S,"Identifier"),this.parseImportMeta(d)}else this.unexpected()},wt.parseDynamicImport=function(s){if(this.next(),s.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(v.parenR)?s.options=null:(this.expect(v.comma),this.afterTrailingComma(v.parenR)?s.options=null:(s.options=this.parseMaybeAssign(),this.eat(v.parenR)||(this.expect(v.comma),this.afterTrailingComma(v.parenR)||this.unexpected())));else if(!this.eat(v.parenR)){var d=this.start;this.eat(v.comma)&&this.eat(v.parenR)?this.raiseRecoverable(d,"Trailing comma is not allowed in import()"):this.unexpected(d)}return this.finishNode(s,"ImportExpression")},wt.parseImportMeta=function(s){this.next();var d=this.containsEsc;return s.property=this.parseIdent(!0),s.property.name!=="meta"&&this.raiseRecoverable(s.property.start,"The only valid meta property for import is 'import.meta'"),d&&this.raiseRecoverable(s.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(s.start,"Cannot use 'import.meta' outside a module"),this.finishNode(s,"MetaProperty")},wt.parseLiteral=function(s){var d=this.startNode();return d.value=s,d.raw=this.input.slice(this.start,this.end),d.raw.charCodeAt(d.raw.length-1)===110&&(d.bigint=d.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(d,"Literal")},wt.parseParenExpression=function(){this.expect(v.parenL);var s=this.parseExpression();return this.expect(v.parenR),s},wt.shouldParseArrow=function(s){return!this.canInsertSemicolon()},wt.parseParenAndDistinguishExpression=function(s,d){var S=this.start,w=this.startLoc,N,j=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Q=this.start,lt=this.startLoc,ot=[],Tt=!0,St=!1,ue=new ge,Zi=this.yieldPos,ke=this.awaitPos,We;for(this.yieldPos=0,this.awaitPos=0;this.type!==v.parenR;)if(Tt?Tt=!1:this.expect(v.comma),j&&this.afterTrailingComma(v.parenR,!0)){St=!0;break}else if(this.type===v.ellipsis){We=this.start,ot.push(this.parseParenItem(this.parseRestBinding())),this.type===v.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else ot.push(this.parseMaybeAssign(!1,ue,this.parseParenItem));var hn=this.lastTokEnd,yi=this.lastTokEndLoc;if(this.expect(v.parenR),s&&this.shouldParseArrow(ot)&&this.eat(v.arrow))return this.checkPatternErrors(ue,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Zi,this.awaitPos=ke,this.parseParenArrowList(S,w,ot,d);(!ot.length||St)&&this.unexpected(this.lastTokStart),We&&this.unexpected(We),this.checkExpressionErrors(ue,!0),this.yieldPos=Zi||this.yieldPos,this.awaitPos=ke||this.awaitPos,ot.length>1?(N=this.startNodeAt(Q,lt),N.expressions=ot,this.finishNodeAt(N,"SequenceExpression",hn,yi)):N=ot[0]}else N=this.parseParenExpression();if(this.options.preserveParens){var qn=this.startNodeAt(S,w);return qn.expression=N,this.finishNode(qn,"ParenthesizedExpression")}else return N},wt.parseParenItem=function(s){return s},wt.parseParenArrowList=function(s,d,S,w){return this.parseArrowExpression(this.startNodeAt(s,d),S,!1,w)};var Ws=[];wt.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var s=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===v.dot){var d=this.startNodeAt(s.start,s.loc&&s.loc.start);d.name="new",s.meta=this.finishNode(d,"Identifier"),this.next();var S=this.containsEsc;return s.property=this.parseIdent(!0),s.property.name!=="target"&&this.raiseRecoverable(s.property.start,"The only valid meta property for new is 'new.target'"),S&&this.raiseRecoverable(s.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(s.start,"'new.target' can only be used in functions and class static block"),this.finishNode(s,"MetaProperty")}var w=this.start,N=this.startLoc;return s.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),w,N,!0,!1),this.eat(v.parenL)?s.arguments=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1):s.arguments=Ws,this.finishNode(s,"NewExpression")},wt.parseTemplateElement=function(s){var d=s.isTagged,S=this.startNode();return this.type===v.invalidTemplate?(d||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),S.value={raw:this.value.replace(/\r\n?/g,`
|
|
83
|
+
`),cooked:null}):S.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
84
|
+
`),cooked:this.value},this.next(),S.tail=this.type===v.backQuote,this.finishNode(S,"TemplateElement")},wt.parseTemplate=function(s){s===void 0&&(s={});var d=s.isTagged;d===void 0&&(d=!1);var S=this.startNode();this.next(),S.expressions=[];var w=this.parseTemplateElement({isTagged:d});for(S.quasis=[w];!w.tail;)this.type===v.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(v.dollarBraceL),S.expressions.push(this.parseExpression()),this.expect(v.braceR),S.quasis.push(w=this.parseTemplateElement({isTagged:d}));return this.next(),this.finishNode(S,"TemplateLiteral")},wt.isAsyncProp=function(s){return!s.computed&&s.key.type==="Identifier"&&s.key.name==="async"&&(this.type===v.name||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===v.star)&&!R.test(this.input.slice(this.lastTokEnd,this.start))},wt.parseObj=function(s,d){var S=this.startNode(),w=!0,N={};for(S.properties=[],this.next();!this.eat(v.braceR);){if(w)w=!1;else if(this.expect(v.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(v.braceR))break;var j=this.parseProperty(s,d);s||this.checkPropClash(j,N,d),S.properties.push(j)}return this.finishNode(S,s?"ObjectPattern":"ObjectExpression")},wt.parseProperty=function(s,d){var S=this.startNode(),w,N,j,Q;if(this.options.ecmaVersion>=9&&this.eat(v.ellipsis))return s?(S.argument=this.parseIdent(!1),this.type===v.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(S,"RestElement")):(S.argument=this.parseMaybeAssign(!1,d),this.type===v.comma&&d&&d.trailingComma<0&&(d.trailingComma=this.start),this.finishNode(S,"SpreadElement"));this.options.ecmaVersion>=6&&(S.method=!1,S.shorthand=!1,(s||d)&&(j=this.start,Q=this.startLoc),s||(w=this.eat(v.star)));var lt=this.containsEsc;return this.parsePropertyName(S),!s&&!lt&&this.options.ecmaVersion>=8&&!w&&this.isAsyncProp(S)?(N=!0,w=this.options.ecmaVersion>=9&&this.eat(v.star),this.parsePropertyName(S)):N=!1,this.parsePropertyValue(S,s,w,N,j,Q,d,lt),this.finishNode(S,"Property")},wt.parseGetterSetter=function(s){var d=s.key.name;this.parsePropertyName(s),s.value=this.parseMethod(!1),s.kind=d;var S=s.kind==="get"?0:1;if(s.value.params.length!==S){var w=s.value.start;s.kind==="get"?this.raiseRecoverable(w,"getter should have no params"):this.raiseRecoverable(w,"setter should have exactly one param")}else s.kind==="set"&&s.value.params[0].type==="RestElement"&&this.raiseRecoverable(s.value.params[0].start,"Setter cannot use rest params")},wt.parsePropertyValue=function(s,d,S,w,N,j,Q,lt){(S||w)&&this.type===v.colon&&this.unexpected(),this.eat(v.colon)?(s.value=d?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Q),s.kind="init"):this.options.ecmaVersion>=6&&this.type===v.parenL?(d&&this.unexpected(),s.method=!0,s.value=this.parseMethod(S,w),s.kind="init"):!d&&!lt&&this.options.ecmaVersion>=5&&!s.computed&&s.key.type==="Identifier"&&(s.key.name==="get"||s.key.name==="set")&&this.type!==v.comma&&this.type!==v.braceR&&this.type!==v.eq?((S||w)&&this.unexpected(),this.parseGetterSetter(s)):this.options.ecmaVersion>=6&&!s.computed&&s.key.type==="Identifier"?((S||w)&&this.unexpected(),this.checkUnreserved(s.key),s.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=N),d?s.value=this.parseMaybeDefault(N,j,this.copyNode(s.key)):this.type===v.eq&&Q?(Q.shorthandAssign<0&&(Q.shorthandAssign=this.start),s.value=this.parseMaybeDefault(N,j,this.copyNode(s.key))):s.value=this.copyNode(s.key),s.kind="init",s.shorthand=!0):this.unexpected()},wt.parsePropertyName=function(s){if(this.options.ecmaVersion>=6){if(this.eat(v.bracketL))return s.computed=!0,s.key=this.parseMaybeAssign(),this.expect(v.bracketR),s.key;s.computed=!1}return s.key=this.type===v.num||this.type===v.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},wt.initFunction=function(s){s.id=null,this.options.ecmaVersion>=6&&(s.generator=s.expression=!1),this.options.ecmaVersion>=8&&(s.async=!1)},wt.parseMethod=function(s,d,S){var w=this.startNode(),N=this.yieldPos,j=this.awaitPos,Q=this.awaitIdentPos;return this.initFunction(w),this.options.ecmaVersion>=6&&(w.generator=s),this.options.ecmaVersion>=8&&(w.async=!!d),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ai(d,w.generator)|Mi|(S?Xi:0)),this.expect(v.parenL),w.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(w,!1,!0,!1),this.yieldPos=N,this.awaitPos=j,this.awaitIdentPos=Q,this.finishNode(w,"FunctionExpression")},wt.parseArrowExpression=function(s,d,S,w){var N=this.yieldPos,j=this.awaitPos,Q=this.awaitIdentPos;return this.enterScope(ai(S,!1)|di),this.initFunction(s),this.options.ecmaVersion>=8&&(s.async=!!S),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,s.params=this.toAssignableList(d,!0),this.parseFunctionBody(s,!0,!1,w),this.yieldPos=N,this.awaitPos=j,this.awaitIdentPos=Q,this.finishNode(s,"ArrowFunctionExpression")},wt.parseFunctionBody=function(s,d,S,w){var N=d&&this.type!==v.braceL,j=this.strict,Q=!1;if(N)s.body=this.parseMaybeAssign(w),s.expression=!0,this.checkParams(s,!1);else{var lt=this.options.ecmaVersion>=7&&!this.isSimpleParamList(s.params);(!j||lt)&&(Q=this.strictDirective(this.end),Q&<&&this.raiseRecoverable(s.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var ot=this.labels;this.labels=[],Q&&(this.strict=!0),this.checkParams(s,!j&&!Q&&!d&&!S&&this.isSimpleParamList(s.params)),this.strict&&s.id&&this.checkLValSimple(s.id,tt),s.body=this.parseBlock(!1,void 0,Q&&!j),s.expression=!1,this.adaptDirectivePrologue(s.body.body),this.labels=ot}this.exitScope()},wt.isSimpleParamList=function(s){for(var d=0,S=s;d<S.length;d+=1){var w=S[d];if(w.type!=="Identifier")return!1}return!0},wt.checkParams=function(s,d){for(var S=Object.create(null),w=0,N=s.params;w<N.length;w+=1){var j=N[w];this.checkLValInnerPattern(j,un,d?null:S)}},wt.parseExprList=function(s,d,S,w){for(var N=[],j=!0;!this.eat(s);){if(j)j=!1;else if(this.expect(v.comma),d&&this.afterTrailingComma(s))break;var Q=void 0;S&&this.type===v.comma?Q=null:this.type===v.ellipsis?(Q=this.parseSpread(w),w&&this.type===v.comma&&w.trailingComma<0&&(w.trailingComma=this.start)):Q=this.parseMaybeAssign(!1,w),N.push(Q)}return N},wt.checkUnreserved=function(s){var d=s.start,S=s.end,w=s.name;if(this.inGenerator&&w==="yield"&&this.raiseRecoverable(d,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&w==="await"&&this.raiseRecoverable(d,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&xi)&&w==="arguments"&&this.raiseRecoverable(d,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(w==="arguments"||w==="await")&&this.raise(d,"Cannot use "+w+" in class static initialization block"),this.keywords.test(w)&&this.raise(d,"Unexpected keyword '"+w+"'"),!(this.options.ecmaVersion<6&&this.input.slice(d,S).indexOf("\\")!==-1)){var N=this.strict?this.reservedWordsStrict:this.reservedWords;N.test(w)&&(!this.inAsync&&w==="await"&&this.raiseRecoverable(d,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(d,"The keyword '"+w+"' is reserved"))}},wt.parseIdent=function(s){var d=this.parseIdentNode();return this.next(!!s),this.finishNode(d,"Identifier"),s||(this.checkUnreserved(d),d.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=d.start)),d},wt.parseIdentNode=function(){var s=this.startNode();return this.type===v.name?s.name=this.value:this.type.keyword?(s.name=this.type.keyword,(s.name==="class"||s.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=v.name):this.unexpected(),s},wt.parsePrivateIdent=function(){var s=this.startNode();return this.type===v.privateId?s.name=this.value:this.unexpected(),this.next(),this.finishNode(s,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(s)),s},wt.parseYield=function(s){this.yieldPos||(this.yieldPos=this.start);var d=this.startNode();return this.next(),this.type===v.semi||this.canInsertSemicolon()||this.type!==v.star&&!this.type.startsExpr?(d.delegate=!1,d.argument=null):(d.delegate=this.eat(v.star),d.argument=this.parseMaybeAssign(s)),this.finishNode(d,"YieldExpression")},wt.parseAwait=function(s){this.awaitPos||(this.awaitPos=this.start);var d=this.startNode();return this.next(),d.argument=this.parseMaybeUnary(null,!0,!1,s),this.finishNode(d,"AwaitExpression")};var Ga=$.prototype;Ga.raise=function(s,d){var S=Bt(this.input,s);d+=" ("+S.line+":"+S.column+")",this.sourceFile&&(d+=" in "+this.sourceFile);var w=new SyntaxError(d);throw w.pos=s,w.loc=S,w.raisedAt=this.pos,w},Ga.raiseRecoverable=Ga.raise,Ga.curPosition=function(){if(this.options.locations)return new Lt(this.curLine,this.pos-this.lineStart)};var Be=$.prototype,Oe=function(d){this.flags=d,this.var=[],this.lexical=[],this.functions=[]};Be.enterScope=function(s){this.scopeStack.push(new Oe(s))},Be.exitScope=function(){this.scopeStack.pop()},Be.treatFunctionsAsVarInScope=function(s){return s.flags&Ce||!this.inModule&&s.flags&he},Be.declareName=function(s,d,S){var w=!1;if(d===Ae){var N=this.currentScope();w=N.lexical.indexOf(s)>-1||N.functions.indexOf(s)>-1||N.var.indexOf(s)>-1,N.lexical.push(s),this.inModule&&N.flags&he&&delete this.undefinedExports[s]}else if(d===ln){var j=this.currentScope();j.lexical.push(s)}else if(d===Zt){var Q=this.currentScope();this.treatFunctionsAsVar?w=Q.lexical.indexOf(s)>-1:w=Q.lexical.indexOf(s)>-1||Q.var.indexOf(s)>-1,Q.functions.push(s)}else for(var lt=this.scopeStack.length-1;lt>=0;--lt){var ot=this.scopeStack[lt];if(ot.lexical.indexOf(s)>-1&&!(ot.flags&Qi&&ot.lexical[0]===s)||!this.treatFunctionsAsVarInScope(ot)&&ot.functions.indexOf(s)>-1){w=!0;break}if(ot.var.push(s),this.inModule&&ot.flags&he&&delete this.undefinedExports[s],ot.flags&xi)break}w&&this.raiseRecoverable(S,"Identifier '"+s+"' has already been declared")},Be.checkLocalExport=function(s){this.scopeStack[0].lexical.indexOf(s.name)===-1&&this.scopeStack[0].var.indexOf(s.name)===-1&&(this.undefinedExports[s.name]=s)},Be.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Be.currentVarScope=function(){for(var s=this.scopeStack.length-1;;s--){var d=this.scopeStack[s];if(d.flags&(xi|mi|ce))return d}},Be.currentThisScope=function(){for(var s=this.scopeStack.length-1;;s--){var d=this.scopeStack[s];if(d.flags&(xi|mi|ce)&&!(d.flags&di))return d}};var ve=function(d,S,w){this.type="",this.start=S,this.end=0,d.options.locations&&(this.loc=new O(d,w)),d.options.directSourceFile&&(this.sourceFile=d.options.directSourceFile),d.options.ranges&&(this.range=[S,0])},bi=$.prototype;bi.startNode=function(){return new ve(this,this.start,this.startLoc)},bi.startNodeAt=function(s,d){return new ve(this,s,d)};function Ja(s,d,S,w){return s.type=d,s.end=S,this.options.locations&&(s.loc.end=w),this.options.ranges&&(s.range[1]=S),s}bi.finishNode=function(s,d){return Ja.call(this,s,d,this.lastTokEnd,this.lastTokEndLoc)},bi.finishNodeAt=function(s,d,S,w){return Ja.call(this,s,d,S,w)},bi.copyNode=function(s){var d=new ve(this,s.start,this.startLoc);for(var S in s)d[S]=s[S];return d};var Vl="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",$s="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Br=$s+" Extended_Pictographic",In=Br,Qa=In+" EBase EComp EMod EPres ExtPict",cn=Qa,Vn=cn,va={9:$s,10:Br,11:In,12:Qa,13:cn,14:Vn},Bn="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Se={9:"",10:"",11:"",12:"",13:"",14:Bn},zr="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Pr="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Yi=Pr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",fn=Yi+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tu=fn+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ur=tu+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",eu=Ur+" "+Vl,Bl={9:Pr,10:Yi,11:fn,12:tu,13:Ur,14:eu},Sa={};function Xa(s){var d=Sa[s]={binary:At(va[s]+" "+zr),binaryOfStrings:At(Se[s]),nonBinary:{General_Category:At(zr),Script:At(Bl[s])}};d.nonBinary.Script_Extensions=d.nonBinary.Script,d.nonBinary.gc=d.nonBinary.General_Category,d.nonBinary.sc=d.nonBinary.Script,d.nonBinary.scx=d.nonBinary.Script_Extensions}for(var ri=0,Ya=[9,10,11,12,13,14];ri<Ya.length;ri+=1){var iu=Ya[ri];Xa(iu)}var ct=$.prototype,zn=function(d,S){this.parent=d,this.base=S||this};zn.prototype.separatedFrom=function(d){for(var S=this;S;S=S.parent)for(var w=d;w;w=w.parent)if(S.base===w.base&&S!==w)return!0;return!1},zn.prototype.sibling=function(){return new zn(this.parent,this.base)};var Ke=function(d){this.parser=d,this.validFlags="gim"+(d.options.ecmaVersion>=6?"uy":"")+(d.options.ecmaVersion>=9?"s":"")+(d.options.ecmaVersion>=13?"d":"")+(d.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Sa[d.options.ecmaVersion>=14?14:d.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Ke.prototype.reset=function(d,S,w){var N=w.indexOf("v")!==-1,j=w.indexOf("u")!==-1;this.start=d|0,this.source=S+"",this.flags=w,N&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=j&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=j&&this.parser.options.ecmaVersion>=9)},Ke.prototype.raise=function(d){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+d)},Ke.prototype.at=function(d,S){S===void 0&&(S=!1);var w=this.source,N=w.length;if(d>=N)return-1;var j=w.charCodeAt(d);if(!(S||this.switchU)||j<=55295||j>=57344||d+1>=N)return j;var Q=w.charCodeAt(d+1);return Q>=56320&&Q<=57343?(j<<10)+Q-56613888:j},Ke.prototype.nextIndex=function(d,S){S===void 0&&(S=!1);var w=this.source,N=w.length;if(d>=N)return N;var j=w.charCodeAt(d),Q;return!(S||this.switchU)||j<=55295||j>=57344||d+1>=N||(Q=w.charCodeAt(d+1))<56320||Q>57343?d+1:d+2},Ke.prototype.current=function(d){return d===void 0&&(d=!1),this.at(this.pos,d)},Ke.prototype.lookahead=function(d){return d===void 0&&(d=!1),this.at(this.nextIndex(this.pos,d),d)},Ke.prototype.advance=function(d){d===void 0&&(d=!1),this.pos=this.nextIndex(this.pos,d)},Ke.prototype.eat=function(d,S){return S===void 0&&(S=!1),this.current(S)===d?(this.advance(S),!0):!1},Ke.prototype.eatChars=function(d,S){S===void 0&&(S=!1);for(var w=this.pos,N=0,j=d;N<j.length;N+=1){var Q=j[N],lt=this.at(w,S);if(lt===-1||lt!==Q)return!1;w=this.nextIndex(w,S)}return this.pos=w,!0},ct.validateRegExpFlags=function(s){for(var d=s.validFlags,S=s.flags,w=!1,N=!1,j=0;j<S.length;j++){var Q=S.charAt(j);d.indexOf(Q)===-1&&this.raise(s.start,"Invalid regular expression flag"),S.indexOf(Q,j+1)>-1&&this.raise(s.start,"Duplicate regular expression flag"),Q==="u"&&(w=!0),Q==="v"&&(N=!0)}this.options.ecmaVersion>=15&&w&&N&&this.raise(s.start,"Invalid regular expression flag")};function zl(s){for(var d in s)return!0;return!1}ct.validateRegExpPattern=function(s){this.regexp_pattern(s),!s.switchN&&this.options.ecmaVersion>=9&&zl(s.groupNames)&&(s.switchN=!0,this.regexp_pattern(s))},ct.regexp_pattern=function(s){s.pos=0,s.lastIntValue=0,s.lastStringValue="",s.lastAssertionIsQuantifiable=!1,s.numCapturingParens=0,s.maxBackReference=0,s.groupNames=Object.create(null),s.backReferenceNames.length=0,s.branchID=null,this.regexp_disjunction(s),s.pos!==s.source.length&&(s.eat(41)&&s.raise("Unmatched ')'"),(s.eat(93)||s.eat(125))&&s.raise("Lone quantifier brackets")),s.maxBackReference>s.numCapturingParens&&s.raise("Invalid escape");for(var d=0,S=s.backReferenceNames;d<S.length;d+=1){var w=S[d];s.groupNames[w]||s.raise("Invalid named capture referenced")}},ct.regexp_disjunction=function(s){var d=this.options.ecmaVersion>=16;for(d&&(s.branchID=new zn(s.branchID,null)),this.regexp_alternative(s);s.eat(124);)d&&(s.branchID=s.branchID.sibling()),this.regexp_alternative(s);d&&(s.branchID=s.branchID.parent),this.regexp_eatQuantifier(s,!0)&&s.raise("Nothing to repeat"),s.eat(123)&&s.raise("Lone quantifier brackets")},ct.regexp_alternative=function(s){for(;s.pos<s.source.length&&this.regexp_eatTerm(s););},ct.regexp_eatTerm=function(s){return this.regexp_eatAssertion(s)?(s.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(s)&&s.switchU&&s.raise("Invalid quantifier"),!0):(s.switchU?this.regexp_eatAtom(s):this.regexp_eatExtendedAtom(s))?(this.regexp_eatQuantifier(s),!0):!1},ct.regexp_eatAssertion=function(s){var d=s.pos;if(s.lastAssertionIsQuantifiable=!1,s.eat(94)||s.eat(36))return!0;if(s.eat(92)){if(s.eat(66)||s.eat(98))return!0;s.pos=d}if(s.eat(40)&&s.eat(63)){var S=!1;if(this.options.ecmaVersion>=9&&(S=s.eat(60)),s.eat(61)||s.eat(33))return this.regexp_disjunction(s),s.eat(41)||s.raise("Unterminated group"),s.lastAssertionIsQuantifiable=!S,!0}return s.pos=d,!1},ct.regexp_eatQuantifier=function(s,d){return d===void 0&&(d=!1),this.regexp_eatQuantifierPrefix(s,d)?(s.eat(63),!0):!1},ct.regexp_eatQuantifierPrefix=function(s,d){return s.eat(42)||s.eat(43)||s.eat(63)||this.regexp_eatBracedQuantifier(s,d)},ct.regexp_eatBracedQuantifier=function(s,d){var S=s.pos;if(s.eat(123)){var w=0,N=-1;if(this.regexp_eatDecimalDigits(s)&&(w=s.lastIntValue,s.eat(44)&&this.regexp_eatDecimalDigits(s)&&(N=s.lastIntValue),s.eat(125)))return N!==-1&&N<w&&!d&&s.raise("numbers out of order in {} quantifier"),!0;s.switchU&&!d&&s.raise("Incomplete quantifier"),s.pos=S}return!1},ct.regexp_eatAtom=function(s){return this.regexp_eatPatternCharacters(s)||s.eat(46)||this.regexp_eatReverseSolidusAtomEscape(s)||this.regexp_eatCharacterClass(s)||this.regexp_eatUncapturingGroup(s)||this.regexp_eatCapturingGroup(s)},ct.regexp_eatReverseSolidusAtomEscape=function(s){var d=s.pos;if(s.eat(92)){if(this.regexp_eatAtomEscape(s))return!0;s.pos=d}return!1},ct.regexp_eatUncapturingGroup=function(s){var d=s.pos;if(s.eat(40)){if(s.eat(63)){if(this.options.ecmaVersion>=16){var S=this.regexp_eatModifiers(s),w=s.eat(45);if(S||w){for(var N=0;N<S.length;N++){var j=S.charAt(N);S.indexOf(j,N+1)>-1&&s.raise("Duplicate regular expression modifiers")}if(w){var Q=this.regexp_eatModifiers(s);!S&&!Q&&s.current()===58&&s.raise("Invalid regular expression modifiers");for(var lt=0;lt<Q.length;lt++){var ot=Q.charAt(lt);(Q.indexOf(ot,lt+1)>-1||S.indexOf(ot)>-1)&&s.raise("Duplicate regular expression modifiers")}}}}if(s.eat(58)){if(this.regexp_disjunction(s),s.eat(41))return!0;s.raise("Unterminated group")}}s.pos=d}return!1},ct.regexp_eatCapturingGroup=function(s){if(s.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(s):s.current()===63&&s.raise("Invalid group"),this.regexp_disjunction(s),s.eat(41))return s.numCapturingParens+=1,!0;s.raise("Unterminated group")}return!1},ct.regexp_eatModifiers=function(s){for(var d="",S=0;(S=s.current())!==-1&&nu(S);)d+=D(S),s.advance();return d};function nu(s){return s===105||s===109||s===115}ct.regexp_eatExtendedAtom=function(s){return s.eat(46)||this.regexp_eatReverseSolidusAtomEscape(s)||this.regexp_eatCharacterClass(s)||this.regexp_eatUncapturingGroup(s)||this.regexp_eatCapturingGroup(s)||this.regexp_eatInvalidBracedQuantifier(s)||this.regexp_eatExtendedPatternCharacter(s)},ct.regexp_eatInvalidBracedQuantifier=function(s){return this.regexp_eatBracedQuantifier(s,!0)&&s.raise("Nothing to repeat"),!1},ct.regexp_eatSyntaxCharacter=function(s){var d=s.current();return Ge(d)?(s.lastIntValue=d,s.advance(),!0):!1};function Ge(s){return s===36||s>=40&&s<=43||s===46||s===63||s>=91&&s<=94||s>=123&&s<=125}ct.regexp_eatPatternCharacters=function(s){for(var d=s.pos,S=0;(S=s.current())!==-1&&!Ge(S);)s.advance();return s.pos!==d},ct.regexp_eatExtendedPatternCharacter=function(s){var d=s.current();return d!==-1&&d!==36&&!(d>=40&&d<=43)&&d!==46&&d!==63&&d!==91&&d!==94&&d!==124?(s.advance(),!0):!1},ct.regexp_groupSpecifier=function(s){if(s.eat(63)){this.regexp_eatGroupName(s)||s.raise("Invalid group");var d=this.options.ecmaVersion>=16,S=s.groupNames[s.lastStringValue];if(S)if(d)for(var w=0,N=S;w<N.length;w+=1){var j=N[w];j.separatedFrom(s.branchID)||s.raise("Duplicate capture group name")}else s.raise("Duplicate capture group name");d?(S||(s.groupNames[s.lastStringValue]=[])).push(s.branchID):s.groupNames[s.lastStringValue]=!0}},ct.regexp_eatGroupName=function(s){if(s.lastStringValue="",s.eat(60)){if(this.regexp_eatRegExpIdentifierName(s)&&s.eat(62))return!0;s.raise("Invalid capture group name")}return!1},ct.regexp_eatRegExpIdentifierName=function(s){if(s.lastStringValue="",this.regexp_eatRegExpIdentifierStart(s)){for(s.lastStringValue+=D(s.lastIntValue);this.regexp_eatRegExpIdentifierPart(s);)s.lastStringValue+=D(s.lastIntValue);return!0}return!1},ct.regexp_eatRegExpIdentifierStart=function(s){var d=s.pos,S=this.options.ecmaVersion>=11,w=s.current(S);return s.advance(S),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(s,S)&&(w=s.lastIntValue),au(w)?(s.lastIntValue=w,!0):(s.pos=d,!1)};function au(s){return L(s,!0)||s===36||s===95}ct.regexp_eatRegExpIdentifierPart=function(s){var d=s.pos,S=this.options.ecmaVersion>=11,w=s.current(S);return s.advance(S),w===92&&this.regexp_eatRegExpUnicodeEscapeSequence(s,S)&&(w=s.lastIntValue),Pl(w)?(s.lastIntValue=w,!0):(s.pos=d,!1)};function Pl(s){return B(s,!0)||s===36||s===95||s===8204||s===8205}ct.regexp_eatAtomEscape=function(s){return this.regexp_eatBackReference(s)||this.regexp_eatCharacterClassEscape(s)||this.regexp_eatCharacterEscape(s)||s.switchN&&this.regexp_eatKGroupName(s)?!0:(s.switchU&&(s.current()===99&&s.raise("Invalid unicode escape"),s.raise("Invalid escape")),!1)},ct.regexp_eatBackReference=function(s){var d=s.pos;if(this.regexp_eatDecimalEscape(s)){var S=s.lastIntValue;if(s.switchU)return S>s.maxBackReference&&(s.maxBackReference=S),!0;if(S<=s.numCapturingParens)return!0;s.pos=d}return!1},ct.regexp_eatKGroupName=function(s){if(s.eat(107)){if(this.regexp_eatGroupName(s))return s.backReferenceNames.push(s.lastStringValue),!0;s.raise("Invalid named reference")}return!1},ct.regexp_eatCharacterEscape=function(s){return this.regexp_eatControlEscape(s)||this.regexp_eatCControlLetter(s)||this.regexp_eatZero(s)||this.regexp_eatHexEscapeSequence(s)||this.regexp_eatRegExpUnicodeEscapeSequence(s,!1)||!s.switchU&&this.regexp_eatLegacyOctalEscapeSequence(s)||this.regexp_eatIdentityEscape(s)},ct.regexp_eatCControlLetter=function(s){var d=s.pos;if(s.eat(99)){if(this.regexp_eatControlLetter(s))return!0;s.pos=d}return!1},ct.regexp_eatZero=function(s){return s.current()===48&&!Vi(s.lookahead())?(s.lastIntValue=0,s.advance(),!0):!1},ct.regexp_eatControlEscape=function(s){var d=s.current();return d===116?(s.lastIntValue=9,s.advance(),!0):d===110?(s.lastIntValue=10,s.advance(),!0):d===118?(s.lastIntValue=11,s.advance(),!0):d===102?(s.lastIntValue=12,s.advance(),!0):d===114?(s.lastIntValue=13,s.advance(),!0):!1},ct.regexp_eatControlLetter=function(s){var d=s.current();return ka(d)?(s.lastIntValue=d%32,s.advance(),!0):!1};function ka(s){return s>=65&&s<=90||s>=97&&s<=122}ct.regexp_eatRegExpUnicodeEscapeSequence=function(s,d){d===void 0&&(d=!1);var S=s.pos,w=d||s.switchU;if(s.eat(117)){if(this.regexp_eatFixedHexDigits(s,4)){var N=s.lastIntValue;if(w&&N>=55296&&N<=56319){var j=s.pos;if(s.eat(92)&&s.eat(117)&&this.regexp_eatFixedHexDigits(s,4)){var Q=s.lastIntValue;if(Q>=56320&&Q<=57343)return s.lastIntValue=(N-55296)*1024+(Q-56320)+65536,!0}s.pos=j,s.lastIntValue=N}return!0}if(w&&s.eat(123)&&this.regexp_eatHexDigits(s)&&s.eat(125)&&ru(s.lastIntValue))return!0;w&&s.raise("Invalid unicode escape"),s.pos=S}return!1};function ru(s){return s>=0&&s<=1114111}ct.regexp_eatIdentityEscape=function(s){if(s.switchU)return this.regexp_eatSyntaxCharacter(s)?!0:s.eat(47)?(s.lastIntValue=47,!0):!1;var d=s.current();return d!==99&&(!s.switchN||d!==107)?(s.lastIntValue=d,s.advance(),!0):!1},ct.regexp_eatDecimalEscape=function(s){s.lastIntValue=0;var d=s.current();if(d>=49&&d<=57){do s.lastIntValue=10*s.lastIntValue+(d-48),s.advance();while((d=s.current())>=48&&d<=57);return!0}return!1};var Ea=0,Ii=1,re=2;ct.regexp_eatCharacterClassEscape=function(s){var d=s.current();if(Fr(d))return s.lastIntValue=-1,s.advance(),Ii;var S=!1;if(s.switchU&&this.options.ecmaVersion>=9&&((S=d===80)||d===112)){s.lastIntValue=-1,s.advance();var w;if(s.eat(123)&&(w=this.regexp_eatUnicodePropertyValueExpression(s))&&s.eat(125))return S&&w===re&&s.raise("Invalid property name"),w;s.raise("Invalid property name")}return Ea};function Fr(s){return s===100||s===68||s===115||s===83||s===119||s===87}ct.regexp_eatUnicodePropertyValueExpression=function(s){var d=s.pos;if(this.regexp_eatUnicodePropertyName(s)&&s.eat(61)){var S=s.lastStringValue;if(this.regexp_eatUnicodePropertyValue(s)){var w=s.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(s,S,w),Ii}}if(s.pos=d,this.regexp_eatLoneUnicodePropertyNameOrValue(s)){var N=s.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(s,N)}return Ea},ct.regexp_validateUnicodePropertyNameAndValue=function(s,d,S){K(s.unicodeProperties.nonBinary,d)||s.raise("Invalid property name"),s.unicodeProperties.nonBinary[d].test(S)||s.raise("Invalid property value")},ct.regexp_validateUnicodePropertyNameOrValue=function(s,d){if(s.unicodeProperties.binary.test(d))return Ii;if(s.switchV&&s.unicodeProperties.binaryOfStrings.test(d))return re;s.raise("Invalid property name")},ct.regexp_eatUnicodePropertyName=function(s){var d=0;for(s.lastStringValue="";jr(d=s.current());)s.lastStringValue+=D(d),s.advance();return s.lastStringValue!==""};function jr(s){return ka(s)||s===95}ct.regexp_eatUnicodePropertyValue=function(s){var d=0;for(s.lastStringValue="";qr(d=s.current());)s.lastStringValue+=D(d),s.advance();return s.lastStringValue!==""};function qr(s){return jr(s)||Vi(s)}ct.regexp_eatLoneUnicodePropertyNameOrValue=function(s){return this.regexp_eatUnicodePropertyValue(s)},ct.regexp_eatCharacterClass=function(s){if(s.eat(91)){var d=s.eat(94),S=this.regexp_classContents(s);return s.eat(93)||s.raise("Unterminated character class"),d&&S===re&&s.raise("Negated character class may contain strings"),!0}return!1},ct.regexp_classContents=function(s){return s.current()===93?Ii:s.switchV?this.regexp_classSetExpression(s):(this.regexp_nonEmptyClassRanges(s),Ii)},ct.regexp_nonEmptyClassRanges=function(s){for(;this.regexp_eatClassAtom(s);){var d=s.lastIntValue;if(s.eat(45)&&this.regexp_eatClassAtom(s)){var S=s.lastIntValue;s.switchU&&(d===-1||S===-1)&&s.raise("Invalid character class"),d!==-1&&S!==-1&&d>S&&s.raise("Range out of order in character class")}}},ct.regexp_eatClassAtom=function(s){var d=s.pos;if(s.eat(92)){if(this.regexp_eatClassEscape(s))return!0;if(s.switchU){var S=s.current();(S===99||Gr(S))&&s.raise("Invalid class escape"),s.raise("Invalid escape")}s.pos=d}var w=s.current();return w!==93?(s.lastIntValue=w,s.advance(),!0):!1},ct.regexp_eatClassEscape=function(s){var d=s.pos;if(s.eat(98))return s.lastIntValue=8,!0;if(s.switchU&&s.eat(45))return s.lastIntValue=45,!0;if(!s.switchU&&s.eat(99)){if(this.regexp_eatClassControlLetter(s))return!0;s.pos=d}return this.regexp_eatCharacterClassEscape(s)||this.regexp_eatCharacterEscape(s)},ct.regexp_classSetExpression=function(s){var d=Ii,S;if(!this.regexp_eatClassSetRange(s))if(S=this.regexp_eatClassSetOperand(s)){S===re&&(d=re);for(var w=s.pos;s.eatChars([38,38]);){if(s.current()!==38&&(S=this.regexp_eatClassSetOperand(s))){S!==re&&(d=Ii);continue}s.raise("Invalid character in character class")}if(w!==s.pos)return d;for(;s.eatChars([45,45]);)this.regexp_eatClassSetOperand(s)||s.raise("Invalid character in character class");if(w!==s.pos)return d}else s.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(s)){if(S=this.regexp_eatClassSetOperand(s),!S)return d;S===re&&(d=re)}},ct.regexp_eatClassSetRange=function(s){var d=s.pos;if(this.regexp_eatClassSetCharacter(s)){var S=s.lastIntValue;if(s.eat(45)&&this.regexp_eatClassSetCharacter(s)){var w=s.lastIntValue;return S!==-1&&w!==-1&&S>w&&s.raise("Range out of order in character class"),!0}s.pos=d}return!1},ct.regexp_eatClassSetOperand=function(s){return this.regexp_eatClassSetCharacter(s)?Ii:this.regexp_eatClassStringDisjunction(s)||this.regexp_eatNestedClass(s)},ct.regexp_eatNestedClass=function(s){var d=s.pos;if(s.eat(91)){var S=s.eat(94),w=this.regexp_classContents(s);if(s.eat(93))return S&&w===re&&s.raise("Negated character class may contain strings"),w;s.pos=d}if(s.eat(92)){var N=this.regexp_eatCharacterClassEscape(s);if(N)return N;s.pos=d}return null},ct.regexp_eatClassStringDisjunction=function(s){var d=s.pos;if(s.eatChars([92,113])){if(s.eat(123)){var S=this.regexp_classStringDisjunctionContents(s);if(s.eat(125))return S}else s.raise("Invalid escape");s.pos=d}return null},ct.regexp_classStringDisjunctionContents=function(s){for(var d=this.regexp_classString(s);s.eat(124);)this.regexp_classString(s)===re&&(d=re);return d},ct.regexp_classString=function(s){for(var d=0;this.regexp_eatClassSetCharacter(s);)d++;return d===1?Ii:re},ct.regexp_eatClassSetCharacter=function(s){var d=s.pos;if(s.eat(92))return this.regexp_eatCharacterEscape(s)||this.regexp_eatClassSetReservedPunctuator(s)?!0:s.eat(98)?(s.lastIntValue=8,!0):(s.pos=d,!1);var S=s.current();return S<0||S===s.lookahead()&&Pn(S)||su(S)?!1:(s.advance(),s.lastIntValue=S,!0)};function Pn(s){return s===33||s>=35&&s<=38||s>=42&&s<=44||s===46||s>=58&&s<=64||s===94||s===96||s===126}function su(s){return s===40||s===41||s===45||s===47||s>=91&&s<=93||s>=123&&s<=125}ct.regexp_eatClassSetReservedPunctuator=function(s){var d=s.current();return uu(d)?(s.lastIntValue=d,s.advance(),!0):!1};function uu(s){return s===33||s===35||s===37||s===38||s===44||s===45||s>=58&&s<=62||s===64||s===96||s===126}ct.regexp_eatClassControlLetter=function(s){var d=s.current();return Vi(d)||d===95?(s.lastIntValue=d%32,s.advance(),!0):!1},ct.regexp_eatHexEscapeSequence=function(s){var d=s.pos;if(s.eat(120)){if(this.regexp_eatFixedHexDigits(s,2))return!0;s.switchU&&s.raise("Invalid escape"),s.pos=d}return!1},ct.regexp_eatDecimalDigits=function(s){var d=s.pos,S=0;for(s.lastIntValue=0;Vi(S=s.current());)s.lastIntValue=10*s.lastIntValue+(S-48),s.advance();return s.pos!==d};function Vi(s){return s>=48&&s<=57}ct.regexp_eatHexDigits=function(s){var d=s.pos,S=0;for(s.lastIntValue=0;lu(S=s.current());)s.lastIntValue=16*s.lastIntValue+Hr(S),s.advance();return s.pos!==d};function lu(s){return s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102}function Hr(s){return s>=65&&s<=70?10+(s-65):s>=97&&s<=102?10+(s-97):s-48}ct.regexp_eatLegacyOctalEscapeSequence=function(s){if(this.regexp_eatOctalDigit(s)){var d=s.lastIntValue;if(this.regexp_eatOctalDigit(s)){var S=s.lastIntValue;d<=3&&this.regexp_eatOctalDigit(s)?s.lastIntValue=d*64+S*8+s.lastIntValue:s.lastIntValue=d*8+S}else s.lastIntValue=d;return!0}return!1},ct.regexp_eatOctalDigit=function(s){var d=s.current();return Gr(d)?(s.lastIntValue=d-48,s.advance(),!0):(s.lastIntValue=0,!1)};function Gr(s){return s>=48&&s<=55}ct.regexp_eatFixedHexDigits=function(s,d){var S=s.pos;s.lastIntValue=0;for(var w=0;w<d;++w){var N=s.current();if(!lu(N))return s.pos=S,!1;s.lastIntValue=16*s.lastIntValue+Hr(N),s.advance()}return!0};var Un=function(d){this.type=d.type,this.value=d.value,this.start=d.start,this.end=d.end,d.options.locations&&(this.loc=new O(d,d.startLoc,d.endLoc)),d.options.ranges&&(this.range=[d.start,d.end])},Rt=$.prototype;Rt.next=function(s){!s&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Un(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Rt.getToken=function(){return this.next(),new Un(this)},typeof Symbol<"u"&&(Rt[Symbol.iterator]=function(){var s=this;return{next:function(){var d=s.getToken();return{done:d.type===v.eof,value:d}}}}),Rt.nextToken=function(){var s=this.curContext();if((!s||!s.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(v.eof);if(s.override)return s.override(this);this.readToken(this.fullCharCodeAtPos())},Rt.readToken=function(s){return L(s,this.options.ecmaVersion>=6)||s===92?this.readWord():this.getTokenFromCode(s)},Rt.fullCharCodeAtPos=function(){var s=this.input.charCodeAt(this.pos);if(s<=55295||s>=56320)return s;var d=this.input.charCodeAt(this.pos+1);return d<=56319||d>=57344?s:(s<<10)+d-56613888},Rt.skipBlockComment=function(){var s=this.options.onComment&&this.curPosition(),d=this.pos,S=this.input.indexOf("*/",this.pos+=2);if(S===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=S+2,this.options.locations)for(var w=void 0,N=d;(w=q(this.input,N,this.pos))>-1;)++this.curLine,N=this.lineStart=w;this.options.onComment&&this.options.onComment(!0,this.input.slice(d+2,S),d,this.pos,s,this.curPosition())},Rt.skipLineComment=function(s){for(var d=this.pos,S=this.options.onComment&&this.curPosition(),w=this.input.charCodeAt(this.pos+=s);this.pos<this.input.length&&!rt(w);)w=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(d+s,this.pos),d,this.pos,S,this.curPosition())},Rt.skipSpace=function(){t:for(;this.pos<this.input.length;){var s=this.input.charCodeAt(this.pos);switch(s){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(s>8&&s<14||s>=5760&&ut.test(String.fromCharCode(s)))++this.pos;else break t}}},Rt.finishToken=function(s,d){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var S=this.type;this.type=s,this.value=d,this.updateContext(S)},Rt.readToken_dot=function(){var s=this.input.charCodeAt(this.pos+1);if(s>=48&&s<=57)return this.readNumber(!0);var d=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&s===46&&d===46?(this.pos+=3,this.finishToken(v.ellipsis)):(++this.pos,this.finishToken(v.dot))},Rt.readToken_slash=function(){var s=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):s===61?this.finishOp(v.assign,2):this.finishOp(v.slash,1)},Rt.readToken_mult_modulo_exp=function(s){var d=this.input.charCodeAt(this.pos+1),S=1,w=s===42?v.star:v.modulo;return this.options.ecmaVersion>=7&&s===42&&d===42&&(++S,w=v.starstar,d=this.input.charCodeAt(this.pos+2)),d===61?this.finishOp(v.assign,S+1):this.finishOp(w,S)},Rt.readToken_pipe_amp=function(s){var d=this.input.charCodeAt(this.pos+1);if(d===s){if(this.options.ecmaVersion>=12){var S=this.input.charCodeAt(this.pos+2);if(S===61)return this.finishOp(v.assign,3)}return this.finishOp(s===124?v.logicalOR:v.logicalAND,2)}return d===61?this.finishOp(v.assign,2):this.finishOp(s===124?v.bitwiseOR:v.bitwiseAND,1)},Rt.readToken_caret=function(){var s=this.input.charCodeAt(this.pos+1);return s===61?this.finishOp(v.assign,2):this.finishOp(v.bitwiseXOR,1)},Rt.readToken_plus_min=function(s){var d=this.input.charCodeAt(this.pos+1);return d===s?d===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||R.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(v.incDec,2):d===61?this.finishOp(v.assign,2):this.finishOp(v.plusMin,1)},Rt.readToken_lt_gt=function(s){var d=this.input.charCodeAt(this.pos+1),S=1;return d===s?(S=s===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+S)===61?this.finishOp(v.assign,S+1):this.finishOp(v.bitShift,S)):d===33&&s===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(d===61&&(S=2),this.finishOp(v.relational,S))},Rt.readToken_eq_excl=function(s){var d=this.input.charCodeAt(this.pos+1);return d===61?this.finishOp(v.equality,this.input.charCodeAt(this.pos+2)===61?3:2):s===61&&d===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(v.arrow)):this.finishOp(s===61?v.eq:v.prefix,1)},Rt.readToken_question=function(){var s=this.options.ecmaVersion;if(s>=11){var d=this.input.charCodeAt(this.pos+1);if(d===46){var S=this.input.charCodeAt(this.pos+2);if(S<48||S>57)return this.finishOp(v.questionDot,2)}if(d===63){if(s>=12){var w=this.input.charCodeAt(this.pos+2);if(w===61)return this.finishOp(v.assign,3)}return this.finishOp(v.coalesce,2)}}return this.finishOp(v.question,1)},Rt.readToken_numberSign=function(){var s=this.options.ecmaVersion,d=35;if(s>=13&&(++this.pos,d=this.fullCharCodeAtPos(),L(d,!0)||d===92))return this.finishToken(v.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+D(d)+"'")},Rt.getTokenFromCode=function(s){switch(s){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(v.parenL);case 41:return++this.pos,this.finishToken(v.parenR);case 59:return++this.pos,this.finishToken(v.semi);case 44:return++this.pos,this.finishToken(v.comma);case 91:return++this.pos,this.finishToken(v.bracketL);case 93:return++this.pos,this.finishToken(v.bracketR);case 123:return++this.pos,this.finishToken(v.braceL);case 125:return++this.pos,this.finishToken(v.braceR);case 58:return++this.pos,this.finishToken(v.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(v.backQuote);case 48:var d=this.input.charCodeAt(this.pos+1);if(d===120||d===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(d===111||d===79)return this.readRadixNumber(8);if(d===98||d===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(s);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(s);case 124:case 38:return this.readToken_pipe_amp(s);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(s);case 60:case 62:return this.readToken_lt_gt(s);case 61:case 33:return this.readToken_eq_excl(s);case 63:return this.readToken_question();case 126:return this.finishOp(v.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+D(s)+"'")},Rt.finishOp=function(s,d){var S=this.input.slice(this.pos,this.pos+d);return this.pos+=d,this.finishToken(s,S)},Rt.readRegexp=function(){for(var s,d,S=this.pos;;){this.pos>=this.input.length&&this.raise(S,"Unterminated regular expression");var w=this.input.charAt(this.pos);if(R.test(w)&&this.raise(S,"Unterminated regular expression"),s)s=!1;else{if(w==="[")d=!0;else if(w==="]"&&d)d=!1;else if(w==="/"&&!d)break;s=w==="\\"}++this.pos}var N=this.input.slice(S,this.pos);++this.pos;var j=this.pos,Q=this.readWord1();this.containsEsc&&this.unexpected(j);var lt=this.regexpState||(this.regexpState=new Ke(this));lt.reset(S,N,Q),this.validateRegExpFlags(lt),this.validateRegExpPattern(lt);var ot=null;try{ot=new RegExp(N,Q)}catch{}return this.finishToken(v.regexp,{pattern:N,flags:Q,value:ot})},Rt.readInt=function(s,d,S){for(var w=this.options.ecmaVersion>=12&&d===void 0,N=S&&this.input.charCodeAt(this.pos)===48,j=this.pos,Q=0,lt=0,ot=0,Tt=d??1/0;ot<Tt;++ot,++this.pos){var St=this.input.charCodeAt(this.pos),ue=void 0;if(w&&St===95){N&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),lt===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),ot===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),lt=St;continue}if(St>=97?ue=St-97+10:St>=65?ue=St-65+10:St>=48&&St<=57?ue=St-48:ue=1/0,ue>=s)break;lt=St,Q=Q*s+ue}return w&<===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===j||d!=null&&this.pos-j!==d?null:Q};function Ul(s,d){return d?parseInt(s,8):parseFloat(s.replace(/_/g,""))}function wa(s){return typeof BigInt!="function"?null:BigInt(s.replace(/_/g,""))}Rt.readRadixNumber=function(s){var d=this.pos;this.pos+=2;var S=this.readInt(s);return S==null&&this.raise(this.start+2,"Expected number in radix "+s),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(S=wa(this.input.slice(d,this.pos)),++this.pos):L(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,S)},Rt.readNumber=function(s){var d=this.pos;!s&&this.readInt(10,void 0,!0)===null&&this.raise(d,"Invalid number");var S=this.pos-d>=2&&this.input.charCodeAt(d)===48;S&&this.strict&&this.raise(d,"Invalid number");var w=this.input.charCodeAt(this.pos);if(!S&&!s&&this.options.ecmaVersion>=11&&w===110){var N=wa(this.input.slice(d,this.pos));return++this.pos,L(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,N)}S&&/[89]/.test(this.input.slice(d,this.pos))&&(S=!1),w===46&&!S&&(++this.pos,this.readInt(10),w=this.input.charCodeAt(this.pos)),(w===69||w===101)&&!S&&(w=this.input.charCodeAt(++this.pos),(w===43||w===45)&&++this.pos,this.readInt(10)===null&&this.raise(d,"Invalid number")),L(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var j=Ul(this.input.slice(d,this.pos),S);return this.finishToken(v.num,j)},Rt.readCodePoint=function(){var s=this.input.charCodeAt(this.pos),d;if(s===123){this.options.ecmaVersion<6&&this.unexpected();var S=++this.pos;d=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,d>1114111&&this.invalidStringToken(S,"Code point out of bounds")}else d=this.readHexChar(4);return d},Rt.readString=function(s){for(var d="",S=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var w=this.input.charCodeAt(this.pos);if(w===s)break;w===92?(d+=this.input.slice(S,this.pos),d+=this.readEscapedChar(!1),S=this.pos):w===8232||w===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(rt(w)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return d+=this.input.slice(S,this.pos++),this.finishToken(v.string,d)};var Za={};Rt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(s){if(s===Za)this.readInvalidTemplateToken();else throw s}this.inTemplateElement=!1},Rt.invalidStringToken=function(s,d){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Za;this.raise(s,d)},Rt.readTmplToken=function(){for(var s="",d=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var S=this.input.charCodeAt(this.pos);if(S===96||S===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===v.template||this.type===v.invalidTemplate)?S===36?(this.pos+=2,this.finishToken(v.dollarBraceL)):(++this.pos,this.finishToken(v.backQuote)):(s+=this.input.slice(d,this.pos),this.finishToken(v.template,s));if(S===92)s+=this.input.slice(d,this.pos),s+=this.readEscapedChar(!0),d=this.pos;else if(rt(S)){switch(s+=this.input.slice(d,this.pos),++this.pos,S){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:s+=`
|
|
85
|
+
`;break;default:s+=String.fromCharCode(S);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),d=this.pos}else++this.pos}},Rt.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(v.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
86
|
+
`&&++this.pos;case`
|
|
87
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},Rt.readEscapedChar=function(s){var d=this.input.charCodeAt(++this.pos);switch(++this.pos,d){case 110:return`
|
|
88
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return D(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),s){var S=this.pos-1;this.invalidStringToken(S,"Invalid escape sequence in template string")}default:if(d>=48&&d<=55){var w=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],N=parseInt(w,8);return N>255&&(w=w.slice(0,-1),N=parseInt(w,8)),this.pos+=w.length-1,d=this.input.charCodeAt(this.pos),(w!=="0"||d===56||d===57)&&(this.strict||s)&&this.invalidStringToken(this.pos-1-w.length,s?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(N)}return rt(d)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(d)}},Rt.readHexChar=function(s){var d=this.pos,S=this.readInt(16,s);return S===null&&this.invalidStringToken(d,"Bad character escape sequence"),S},Rt.readWord1=function(){this.containsEsc=!1;for(var s="",d=!0,S=this.pos,w=this.options.ecmaVersion>=6;this.pos<this.input.length;){var N=this.fullCharCodeAtPos();if(B(N,w))this.pos+=N<=65535?1:2;else if(N===92){this.containsEsc=!0,s+=this.input.slice(S,this.pos);var j=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var Q=this.readCodePoint();(d?L:B)(Q,w)||this.invalidStringToken(j,"Invalid Unicode escape"),s+=D(Q),S=this.pos}else break;d=!1}return s+this.input.slice(S,this.pos)},Rt.readWord=function(){var s=this.readWord1(),d=v.name;return this.keywords.test(s)&&(d=W[s]),this.finishToken(d,s)};var Ka="8.14.1";$.acorn={Parser:$,version:Ka,defaultOptions:ie,Position:Lt,SourceLocation:O,getLineInfo:Bt,Node:ve,TokenType:F,tokTypes:v,keywordTypes:W,TokContext:De,tokContexts:te,isIdentifierChar:B,isIdentifierStart:L,Token:Un,isNewLine:rt,lineBreak:R,lineBreakG:X,nonASCIIwhitespace:ut};function Fn(s,d){return $.parse(s,d)}function jn(s,d,S){return $.parseExpressionAt(s,d,S)}function ou(s,d){return $.tokenizer(s,d)}r.Node=ve,r.Parser=$,r.Position=Lt,r.SourceLocation=O,r.TokContext=De,r.Token=Un,r.TokenType=F,r.defaultOptions=ie,r.getLineInfo=Bt,r.isIdentifierChar=B,r.isIdentifierStart=L,r.isNewLine=rt,r.keywordTypes=W,r.lineBreak=R,r.lineBreakG=X,r.nonASCIIwhitespace=ut,r.parse=Fn,r.parseExpressionAt=jn,r.tokContexts=te,r.tokTypes=v,r.tokenizer=ou,r.version=Ka})}(zs,zs.exports)),zs.exports}var L0;function Pw(){return L0||(L0=1,function(t){const n=Bw(),r=/^[\da-fA-F]+$/,u=/^\d+$/,o=new WeakMap;function c(p){p=p.Parser.acorn||p;let g=o.get(p);if(!g){const y=p.tokTypes,b=p.TokContext,k=p.TokenType,C=new b("<tag",!1),L=new b("</tag",!1),B=new b("<tag>...</tag>",!0,!0),F={tc_oTag:C,tc_cTag:L,tc_expr:B},I={jsxName:new k("jsxName"),jsxText:new k("jsxText",{beforeExpr:!0}),jsxTagStart:new k("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new k("jsxTagEnd")};I.jsxTagStart.updateContext=function(){this.context.push(B),this.context.push(C),this.exprAllowed=!1},I.jsxTagEnd.updateContext=function(G){let z=this.context.pop();z===C&&G===y.slash||z===L?(this.context.pop(),this.exprAllowed=this.curContext()===B):this.exprAllowed=!0},g={tokContexts:F,tokTypes:I},o.set(p,g)}return g}function f(p){if(!p)return p;if(p.type==="JSXIdentifier")return p.name;if(p.type==="JSXNamespacedName")return p.namespace.name+":"+p.name.name;if(p.type==="JSXMemberExpression")return f(p.object)+"."+f(p.property)}t.exports=function(p){return p=p||{},function(g){return x({allowNamespaces:p.allowNamespaces!==!1,allowNamespacedObjects:!!p.allowNamespacedObjects},g)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return c(N0()).tokTypes},configurable:!0,enumerable:!0});function x(p,g){const y=g.acorn||N0(),b=c(y),k=y.tokTypes,C=b.tokTypes,L=y.tokContexts,B=b.tokContexts.tc_oTag,F=b.tokContexts.tc_cTag,I=b.tokContexts.tc_expr,G=y.isNewLine,z=y.isIdentifierStart,W=y.isIdentifierChar;return class extends g{static get acornJsx(){return b}jsx_readToken(){let V="",v=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let R=this.input.charCodeAt(this.pos);switch(R){case 60:case 123:return this.pos===this.start?R===60&&this.exprAllowed?(++this.pos,this.finishToken(C.jsxTagStart)):this.getTokenFromCode(R):(V+=this.input.slice(v,this.pos),this.finishToken(C.jsxText,V));case 38:V+=this.input.slice(v,this.pos),V+=this.jsx_readEntity(),v=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(R===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:G(R)?(V+=this.input.slice(v,this.pos),V+=this.jsx_readNewLine(!0),v=this.pos):++this.pos}}}jsx_readNewLine(V){let v=this.input.charCodeAt(this.pos),R;return++this.pos,v===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,R=V?`
|
|
89
|
+
`:`\r
|
|
90
|
+
`):R=String.fromCharCode(v),this.options.locations&&(++this.curLine,this.lineStart=this.pos),R}jsx_readString(V){let v="",R=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let X=this.input.charCodeAt(this.pos);if(X===V)break;X===38?(v+=this.input.slice(R,this.pos),v+=this.jsx_readEntity(),R=this.pos):G(X)?(v+=this.input.slice(R,this.pos),v+=this.jsx_readNewLine(!1),R=this.pos):++this.pos}return v+=this.input.slice(R,this.pos++),this.finishToken(k.string,v)}jsx_readEntity(){let V="",v=0,R,X=this.input[this.pos];X!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let rt=++this.pos;for(;this.pos<this.input.length&&v++<10;){if(X=this.input[this.pos++],X===";"){V[0]==="#"?V[1]==="x"?(V=V.substr(2),r.test(V)&&(R=String.fromCharCode(parseInt(V,16)))):(V=V.substr(1),u.test(V)&&(R=String.fromCharCode(parseInt(V,10)))):R=n[V];break}V+=X}return R||(this.pos=rt,"&")}jsx_readWord(){let V,v=this.pos;do V=this.input.charCodeAt(++this.pos);while(W(V)||V===45);return this.finishToken(C.jsxName,this.input.slice(v,this.pos))}jsx_parseIdentifier(){let V=this.startNode();return this.type===C.jsxName?V.name=this.value:this.type.keyword?V.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(V,"JSXIdentifier")}jsx_parseNamespacedName(){let V=this.start,v=this.startLoc,R=this.jsx_parseIdentifier();if(!p.allowNamespaces||!this.eat(k.colon))return R;var X=this.startNodeAt(V,v);return X.namespace=R,X.name=this.jsx_parseIdentifier(),this.finishNode(X,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===C.jsxTagEnd)return"";let V=this.start,v=this.startLoc,R=this.jsx_parseNamespacedName();for(this.type===k.dot&&R.type==="JSXNamespacedName"&&!p.allowNamespacedObjects&&this.unexpected();this.eat(k.dot);){let X=this.startNodeAt(V,v);X.object=R,X.property=this.jsx_parseIdentifier(),R=this.finishNode(X,"JSXMemberExpression")}return R}jsx_parseAttributeValue(){switch(this.type){case k.braceL:let V=this.jsx_parseExpressionContainer();return V.expression.type==="JSXEmptyExpression"&&this.raise(V.start,"JSX attributes must only be assigned a non-empty expression"),V;case C.jsxTagStart:case k.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let V=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(V,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let V=this.startNode();return this.next(),V.expression=this.type===k.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(k.braceR),this.finishNode(V,"JSXExpressionContainer")}jsx_parseAttribute(){let V=this.startNode();return this.eat(k.braceL)?(this.expect(k.ellipsis),V.argument=this.parseMaybeAssign(),this.expect(k.braceR),this.finishNode(V,"JSXSpreadAttribute")):(V.name=this.jsx_parseNamespacedName(),V.value=this.eat(k.eq)?this.jsx_parseAttributeValue():null,this.finishNode(V,"JSXAttribute"))}jsx_parseOpeningElementAt(V,v){let R=this.startNodeAt(V,v);R.attributes=[];let X=this.jsx_parseElementName();for(X&&(R.name=X);this.type!==k.slash&&this.type!==C.jsxTagEnd;)R.attributes.push(this.jsx_parseAttribute());return R.selfClosing=this.eat(k.slash),this.expect(C.jsxTagEnd),this.finishNode(R,X?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(V,v){let R=this.startNodeAt(V,v),X=this.jsx_parseElementName();return X&&(R.name=X),this.expect(C.jsxTagEnd),this.finishNode(R,X?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(V,v){let R=this.startNodeAt(V,v),X=[],rt=this.jsx_parseOpeningElementAt(V,v),q=null;if(!rt.selfClosing){t:for(;;)switch(this.type){case C.jsxTagStart:if(V=this.start,v=this.startLoc,this.next(),this.eat(k.slash)){q=this.jsx_parseClosingElementAt(V,v);break t}X.push(this.jsx_parseElementAt(V,v));break;case C.jsxText:X.push(this.parseExprAtom());break;case k.braceL:X.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}f(q.name)!==f(rt.name)&&this.raise(q.start,"Expected corresponding JSX closing tag for <"+f(rt.name)+">")}let ut=rt.name?"Element":"Fragment";return R["opening"+ut]=rt,R["closing"+ut]=q,R.children=X,this.type===k.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(R,"JSX"+ut)}jsx_parseText(){let V=this.parseLiteral(this.value);return V.type="JSXText",V}jsx_parseElement(){let V=this.start,v=this.startLoc;return this.next(),this.jsx_parseElementAt(V,v)}parseExprAtom(V){return this.type===C.jsxText?this.jsx_parseText():this.type===C.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(V)}readToken(V){let v=this.curContext();if(v===I)return this.jsx_readToken();if(v===B||v===F){if(z(V))return this.jsx_readWord();if(V==62)return++this.pos,this.finishToken(C.jsxTagEnd);if((V===34||V===39)&&v==B)return this.jsx_readString(V)}return V===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(C.jsxTagStart)):super.readToken(V)}updateContext(V){if(this.type==k.braceL){var v=this.curContext();v==B?this.context.push(L.b_expr):v==I?this.context.push(L.b_tmpl):super.updateContext(V),this.exprAllowed=!0}else if(this.type===k.slash&&V===C.jsxTagStart)this.context.length-=2,this.context.push(F),this.exprAllowed=!1;else return super.updateContext(V)}}}}(df)),df.exports}var Uw=Pw();const Fw=Js(Uw);const jw={}.hasOwnProperty,qw=Symbol("continue"),xf=Symbol("exit"),Hw=Symbol("skip");function Gw(t,n){let r,u;typeof n=="function"?r=n:n&&typeof n=="object"&&(n.enter&&(r=n.enter),n.leave&&(u=n.leave)),o(t,void 0,void 0,[])();function o(c,f,x,p){return gf(c)&&(g.displayName="node ("+c.type+")"),g;function g(){const y=r?D0(r(c,f,x,p)):[];if(y[0]===xf)return y;if(y[0]!==Hw){let b;for(b in c)if(jw.call(c,b)&&c[b]&&typeof c[b]=="object"&&b!=="data"&&b!=="position"){const k=p.concat(c),C=c[b];if(Array.isArray(C)){const L=C;let B=0;for(;B>-1&&B<L.length;){const F=L[B];if(gf(F)){const I=o(F,b,B,k)();if(I[0]===xf)return I;B=typeof I[1]=="number"?I[1]:B+1}else B++}}else if(gf(C)){const L=o(C,b,void 0,k)();if(L[0]===xf)return L}}}return u?D0(u(c,f,x,p)):y}}}function D0(t){return Array.isArray(t)?t:typeof t=="number"?[qw,t]:[t]}function gf(t){return!!(t&&typeof t=="object"&&"type"in t&&typeof t.type=="string"&&t.type.length>0)}function mg(t,n){const r=n.prefix||"",u=n.suffix||"",o=Object.assign({},n.acornOptions),c=[],f=[],x=o.onComment,p=o.onToken;let g=!1,y,b;const k=Object.assign({},o,{onComment:c,preserveParens:!0});p&&(k.onToken=f);const C=Jw(t,n.tokenTypes),L=C.value,B=r+L+u,F=n.expression&&O0(L);if(F&&!n.allowEmpty)throw new Qt("Unexpected empty expression",{place:G(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{y=n.expression&&!F?n.acorn.parseExpressionAt(B,0,k):n.acorn.parse(B,k)}catch(z){const W=z,V=G(W.pos);W.message=String(W.message).replace(/ \(\d+:\d+\)$/,""),W.pos=V.offset,W.loc={line:V.line,column:V.column-1},b=W,g=W.raisedAt>=r.length+L.length||W.message==="Unterminated comment"}if(y&&n.expression&&!F)if(O0(B.slice(y.end,B.length-u.length)))y={type:"Program",start:0,end:r.length+L.length,body:[{type:"ExpressionStatement",expression:y,start:0,end:r.length+L.length}],sourceType:"module",comments:[]};else{const z=G(y.end),W=new Error("Unexpected content after expression");W.pos=z.offset,W.loc={line:z.line,column:z.column-1},b=W,y=void 0}if(y){if(y.comments=c,Gw(y,function(z,W,V,v){let R=v[v.length-1],X=W;z.type==="ParenthesizedExpression"&&R&&X&&(typeof V=="number"&&(R=R[X],X=V),R[X]=z.expression),I(z)}),Array.isArray(x))x.push(...c);else if(typeof x=="function")for(const z of c)x(z.type==="Block",z.value,z.start,z.end,z.loc.start,z.loc.end);for(const z of f)z.end<=r.length||z.start-r.length>=L.length||(I(z),Array.isArray(p)?p.push(z):p(z))}return{estree:y,error:b,swallow:g};function I(z){const W=G(z.start),V=G(z.end);z.start=W.offset,z.end=V.offset,z.loc={start:{line:W.line,column:W.column-1,offset:W.offset},end:{line:V.line,column:V.column-1,offset:V.offset}},z.range=[z.start,z.end]}function G(z){let W=z-r.length;W<0?W=0:W>L.length&&(W=L.length);let V=Qw(C.stops,W);return V||(V={line:n.start.line,column:n.start.column,offset:n.start.offset}),V}}function O0(t){return/^\s*$/.test(t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function Jw(t,n){const r={value:"",stops:[]};let u=-1;for(;++u<t.length;){const o=t[u];if(o[0]==="enter"){const c=o[1].type;if(c==="lineEnding"||n.includes(c)){const f=o[2].sliceStream(o[1]);for(;f.length>0&&f[0]===-1;)f.shift();const x=Xw(f);r.stops.push([r.value.length,o[1].start]),r.value+=x,r.stops.push([r.value.length,o[1].end])}}}return r}function Qw(t,n){let r=0;for(;r<t.length&&t[r][0]<=n;)r+=1;if(r===0)return;const[u,o]=t[r-1],c=n-u;return{line:o.line,column:o.column+c,offset:o.offset+c}}function Xw(t){let n=-1;const r=[];let u;for(;++n<t.length;){const o=t[n];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
|
|
91
|
+
`;break}case-3:{c=`\r
|
|
92
|
+
`;break}case-2:{c=" ";break}case-1:{if(u)continue;c=" ";break}default:c=String.fromCharCode(o)}u=o===-2,r.push(c)}return r.join("")}function gl(t){const n=t||{},r=n.loc||{},u=n.range||[void 0,void 0],o=R0(r.start,u[0]||n.start),c=R0(r.end,u[1]||n.end);if(o&&c)return{start:o,end:c}}function R0(t,n){if(t&&typeof t=="object"){const r="line"in t?bf(t.line):void 0,u="column"in t?bf(t.column):void 0;if(r&&u!==void 0)return{line:r,column:u+1,offset:bf(n)}}}function bf(t){return typeof t=="number"&&t>-1?t:void 0}const Dr="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",Yw="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",Zw="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",M0="#unexpected-type-in-code-expected-an-object-spread-spread",Kw="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",Ww="#could-not-parse-expression-with-acorn";function Cl(t,n,r,u,o,c,f,x,p,g,y){const b=this,k=this.events.length+3;let C=0,L,B;return F;function F(W){return t.enter(r),t.enter(u),t.consume(W),t.exit(u),L=b.now(),I}function I(W){if(W===null){if(B)throw B;const V=new Qt("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:b.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw V.url=Dr+Yw,V}if(gt(W))return t.enter("lineEnding"),t.consume(W),t.exit("lineEnding"),z;if(W===125&&C===0){const V=c?$w.call(b,c,f,o,k,L,g||!1,p||!1):{type:"ok",estree:void 0};if(V.type==="ok"){t.enter(u),t.consume(W),t.exit(u);const v=t.exit(r);return x&&V.estree&&Object.assign(v,{estree:V.estree}),n}return B=V.message,t.enter(o),t.consume(W),G}return t.enter(o),G(W)}function G(W){return W===125&&C===0||W===null||gt(W)?(t.exit(o),I(W)):(W===123&&!c?C+=1:W===125&&(C-=1),t.consume(W),G)}function z(W){const V=b.now();if(V.line!==L.line&&!y&&b.parser.lazy[V.line]){const v=new Qt("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:b.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw v.url=Dr+Zw,v}return I(W)}}function $w(t,n,r,u,o,c,f){const x=mg(this.events.slice(u),{acorn:t,tokenTypes:[r],acornOptions:n,start:o,expression:!0,allowEmpty:c,prefix:f?"({":"",suffix:f?"})":""}),p=x.estree;if(f&&p){const g=p.body[0];if(g.type!=="ExpressionStatement"||g.expression.type!=="ObjectExpression"){const y=gl(g),b=new Qt("Unexpected `"+g.type+"` in code: expected an object spread (`{...spread}`)",{place:y.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw b.url=Dr+M0,b}if(g.expression.properties[1]){const y=gl(g.expression.properties[1]),b=new Qt("Unexpected extra content in spread: only a single spread is supported",{place:y.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw b.url=Dr+Kw,b}if(g.expression.properties[0]&&g.expression.properties[0].type!=="SpreadElement"){const y=gl(g.expression.properties[0]),b=new Qt("Unexpected `"+g.expression.properties[0].type+"` in code: only spread elements are supported",{place:y.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw b.url=Dr+M0,b}}if(x.error){const g=new Qt("Could not parse expression with acorn",{cause:x.error,place:{line:x.error.loc.line,column:x.error.loc.column+1,offset:x.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return g.url=Dr+Ww,{type:"nok",message:g}}return{type:"ok",estree:p}}function t3(t){const n=t||{},r=n.addResult,u=n.acorn,o=n.spread;let c=n.allowEmpty,f;if(c==null&&(c=!0),u){if(!u.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");f=Object.assign({ecmaVersion:2024,sourceType:"module"},n.acornOptions)}else if(n.acornOptions||n.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:x,concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:p}}};function x(g,y,b){const k=this;return C;function C(I){return L(I)}function L(I){return Cl.call(k,g,B,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",u,f,r,o,c)(I)}function B(I){return Ot(I)?Hi(g,F,"whitespace")(I):F(I)}function F(I){const G=k.parser.constructs.flow[60],W=(Array.isArray(G)?G:G?[G]:[]).find(function(V){return V.name==="mdxJsxFlowTag"});return I===60&&W?g.attempt(W,F,b)(I):I===null||gt(I)?y(I):b(I)}}function p(g,y){const b=this;return k;function k(C){return Cl.call(b,g,y,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",u,f,r,o,c,!0)(C)}}}const e3=/[$_\p{ID_Start}]/u,i3=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,n3=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,a3={};function Ui(t){return t?e3.test(String.fromCodePoint(t)):!1}function Bs(t,n){const u=(n||a3).jsx?n3:i3;return t?u.test(String.fromCodePoint(t)):!1}const I0="https://github.com/micromark/micromark-extension-mdx-jsx";function xg(t,n,r,u,o,c,f,x,p,g,y,b,k,C,L,B,F,I,G,z,W,V,v,R,X,rt,q,ut,st,pt,Nt,vt){const K=this;let nt,dt;return At;function At(T){return t.enter(x),t.enter(p),t.consume(T),t.exit(p),D}function D(T){return xe(T)?r(T):(nt=Gt,Zt(T))}function Gt(T){if(T===47)return t.enter(g),t.consume(T),t.exit(g),nt=Lt,Zt;if(T===62)return Ae(T);if(T!==null&&T>=0&&Ui(T))return t.enter(b),t.enter(k),t.consume(T),O;$(T,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(T===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function Lt(T){if(T===62)return Ae(T);if(T!==null&&T>=0&&Ui(T))return t.enter(b),t.enter(k),t.consume(T),O;$(T,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(T===42||T===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function O(T){if(T!==null&&T>=0&&Bs(T,{jsx:!0}))return t.consume(T),O;if(T===46||T===47||T===58||T===62||T===123||xe(T)||ji(T))return t.exit(k),nt=Bt,Zt(T);$(T,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(T===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function Bt(T){if(T===46)return t.enter(C),t.consume(T),t.exit(C),nt=ie,Zt;if(T===58)return t.enter(B),t.consume(T),t.exit(B),nt=Ve,Zt;if(T===47||T===62||T===123||T!==null&&T>=0&&Ui(T))return t.exit(b),pe(T);$(T,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ie(T){if(T!==null&&T>=0&&Ui(T))return t.enter(L),t.consume(T),qt;$(T,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function qt(T){if(T!==null&&T>=0&&Bs(T,{jsx:!0}))return t.consume(T),qt;if(T===46||T===47||T===62||T===123||xe(T)||ji(T))return t.exit(L),nt=Xe,Zt(T);$(T,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(T===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function Xe(T){if(T===46)return t.enter(C),t.consume(T),t.exit(C),nt=ie,Zt;if(T===47||T===62||T===123||T!==null&&T>=0&&Ui(T))return t.exit(b),pe(T);$(T,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Ve(T){if(T!==null&&T>=0&&Ui(T))return t.enter(F),t.consume(T),he;$(T,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(T===43||T!==null&&T>46&&T<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function he(T){if(T!==null&&T>=0&&Bs(T,{jsx:!0}))return t.consume(T),he;if(T===47||T===62||T===123||xe(T)||ji(T))return t.exit(F),nt=Ce,Zt(T);$(T,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Ce(T){if(T===47||T===62||T===123||T!==null&&T>=0&&Ui(T))return t.exit(b),pe(T);$(T,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function pe(T){if(T===47)return t.enter(y),t.consume(T),t.exit(y),nt=un,Zt;if(T===62)return Ae(T);if(T===123)return Cl.call(K,t,Ji,I,G,z,u,o,c,!0,!1,f)(T);if(T!==null&&T>=0&&Ui(T))return t.enter(W),t.enter(V),t.enter(v),t.consume(T),di;$(T,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Ji(T){return nt=pe,Zt(T)}function di(T){if(T!==null&&T>=0&&Bs(T,{jsx:!0}))return t.consume(T),di;if(T===47||T===58||T===61||T===62||T===123||xe(T)||ji(T))return t.exit(v),nt=Qi,Zt(T);$(T,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Qi(T){if(T===58)return t.enter(R),t.consume(T),t.exit(R),nt=Mi,Zt;if(T===61)return t.exit(V),t.enter(rt),t.consume(T),t.exit(rt),nt=mi,Zt;if(T===47||T===62||T===123||xe(T)||ji(T)||T!==null&&T>=0&&Ui(T))return t.exit(V),t.exit(W),nt=pe,Zt(T);$(T,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Mi(T){if(T!==null&&T>=0&&Ui(T))return t.enter(X),t.consume(T),Xi;$(T,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Xi(T){if(T!==null&&T>=0&&Bs(T,{jsx:!0}))return t.consume(T),Xi;if(T===47||T===61||T===62||T===123||xe(T)||ji(T))return t.exit(X),t.exit(V),nt=ce,Zt(T);$(T,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function ce(T){if(T===61)return t.enter(rt),t.consume(T),t.exit(rt),nt=mi,Zt;if(T===47||T===62||T===123||T!==null&&T>=0&&Ui(T))return t.exit(W),pe(T);$(T,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function mi(T){if(T===34||T===39)return t.enter(q),t.enter(ut),t.consume(T),t.exit(ut),dt=T,ai;if(T===123)return Cl.call(K,t,xi,pt,Nt,vt,u,o,c,!1,!1,f)(T);$(T,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(T===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function xi(T){return t.exit(W),nt=pe,Zt(T)}function ai(T){return T===null&&$(T,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(dt)+"`"),T===dt?(t.enter(ut),t.consume(T),t.exit(ut),t.exit(q),t.exit(W),dt=void 0,nt=pe,Zt):gt(T)?(nt=ai,Zt(T)):(t.enter(st),Ye(T))}function Ye(T){return T===null||T===dt||gt(T)?(t.exit(st),ai(T)):(t.consume(T),Ye)}function un(T){if(T===62)return Ae(T);$(T,"after self-closing slash","`>` to end the tag"+(T===42||T===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function Ae(T){return t.enter(p),t.consume(T),t.exit(p),t.exit(x),n}function Zt(T){return gt(T)?(t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),tt):Ot(T)||ji(T)?(t.enter("esWhitespace"),ln(T)):nt(T)}function ln(T){return gt(T)?(t.exit("esWhitespace"),Zt(T)):Ot(T)||ji(T)?(t.consume(T),ln):(t.exit("esWhitespace"),nt(T))}function tt(T){if(!f&&K.parser.lazy[K.now().line]){const ft=new Qt("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",K.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw ft.url=I0+"#unexpected-lazy-line-in-container-expected-line-to-be",ft}return Zt(T)}function $(T,ft,Ft){const ge=new Qt("Unexpected "+(T===null?"end of file":"character `"+(T===96?"` ` `":String.fromCodePoint(T))+"` ("+r3(T)+")")+" "+ft+", expected "+Ft,K.now(),"micromark-extension-mdx-jsx:unexpected-"+(T===null?"eof":"character"));throw ge.url=I0+(T===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),ge}}function r3(t){return"U+"+t.toString(16).toUpperCase().padStart(4,"0")}function s3(t,n){return{name:"mdxJsxTextTag",tokenize:r};function r(u,o,c){return xg.call(this,u,o,c,t,n.acornOptions,n.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function u3(t,n){return{name:"mdxJsxFlowTag",tokenize:r,concrete:!0};function r(u,o,c){const f=this;return x;function x(b){return p(b)}function p(b){return xg.call(f,u,g,c,t,n.acornOptions,n.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(b)}function g(b){return Ot(b)?Hi(u,y,"whitespace")(b):y(b)}function y(b){const k=f.parser.constructs.flow[123],L=(Array.isArray(k)?k:k?[k]:[]).find(B=>B.name==="mdxFlowExpression");return b===60?x(b):b===123&&L?u.attempt(L,y,c)(b):b===null||gt(b)?o(b):c(b)}}}function l3(t){const n=t||{},r=n.acorn;let u;if(r){if(!r.parse||!r.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");u=Object.assign({ecmaVersion:2024,sourceType:"module"},n.acornOptions,{locations:!0})}else if(n.acornOptions||n.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:u3(r||void 0,{acornOptions:u,addResult:n.addResult||void 0})},text:{60:s3(r||void 0,{acornOptions:u,addResult:n.addResult||void 0})}}}function o3(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}const c3={tokenize:p3,partial:!0},V0="https://github.com/micromark/micromark-extension-mdxjs-esm",f3=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function h3(t){const n={tokenize:o,concrete:!0};if(!t||!t.acorn||!t.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const r=t.acorn,u=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0});return{flow:{101:n,105:n}};function o(c,f,x){const p=this,g=p.parser.definedModuleSpecifiers||(p.parser.definedModuleSpecifiers=[]),y=this.events.length+1;let b="";return p.interrupt?x:k;function k(G){return p.now().column>1?x(G):(c.enter("mdxjsEsm"),c.enter("mdxjsEsmData"),c.consume(G),b+=String.fromCharCode(G),C)}function C(G){return qi(G)?(c.consume(G),b+=String.fromCharCode(G),C):(b==="import"||b==="export")&&G===32?(c.consume(G),L):x(G)}function L(G){return G===null||gt(G)?(c.exit("mdxjsEsmData"),B(G)):(c.consume(G),L)}function B(G){return G===null?I(G):gt(G)?c.check(c3,I,F)(G):(c.enter("mdxjsEsmData"),L(G))}function F(G){return c.enter("lineEnding"),c.consume(G),c.exit("lineEnding"),B}function I(G){const z=mg(p.events.slice(y),{acorn:r,acornOptions:u,tokenTypes:["mdxjsEsmData"],prefix:g.length>0?"var "+g.join(",")+`
|
|
93
|
+
`:""});if(z.error){if(G!==null&&z.swallow)return F(G);const V=new Qt("Could not parse import/exports with acorn",{cause:z.error,place:{line:z.error.loc.line,column:z.error.loc.column+1,offset:z.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw V.url=V0+"#could-not-parse-importexports-with-acorn",V}g.length>0&&z.estree.body.shift();let W=-1;for(;++W<z.estree.body.length;){const V=z.estree.body[W];if(!f3.has(V.type)){const v=new Qt("Unexpected `"+V.type+"` in code: only import/exports are supported",{place:gl(V),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw v.url=V0+"#unexpected-type-in-code-only-importexports-are-supported",v}if(V.type==="ImportDeclaration"&&!p.interrupt){let v=-1;for(;++v<V.specifiers.length;){const R=V.specifiers[v];g.push(R.local.name)}}}return Object.assign(c.exit("mdxjsEsm"),t.addResult?{estree:z.estree}:void 0),f(G)}}}function p3(t,n,r){return u;function u(o){return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),t.attempt(Nx,n,r)}}function d3(t){const n=Object.assign({acorn:Ne.extend(Fw()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},t);return zf([h3(n),t3(n),l3(n),o3()])}const m3={};function x3(t){const n=this,r=t||m3,u=n.data(),o=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);o.push(d3(r)),c.push(ZE()),f.push(KE(r))}function g3(t){return y3.processSync(t).data.ast}function b3(){return function(t){q0(t,function(n,r,u){let o=-1,c=!0,f=!1;if(u&&typeof r=="number"&&n.type==="paragraph"){const x=n.children;for(;++o<x.length;){const p=x[o];if(p.type==="mdxJsxTextElement"||p.type==="mdxTextExpression")f=!0;else if(!(p.type==="text"&&sy(p.value,{style:"html",trim:!0})==="")){c=!1;break}}if(c&&f){o=-1;const p=[];for(;++o<x.length;){const g=x[o];g.type==="mdxJsxTextElement"&&(g.type="mdxJsxFlowElement"),g.type==="mdxTextExpression"&&(g.type="mdxFlowExpression"),g.type==="text"&&/^[\t\r\n ]+$/.test(String(g.value))||p.push(g)}return u.children.splice(r,1,...p),r}}})}}const y3=BS().use(x3).use(ny,["yaml","toml"]).use(yE).use(b3).use(()=>(t,n)=>{n.data.ast=t}),B0=`
|
|
94
|
+
import IOKnob from 'https://framer.com/m/IOKnob-DT0M.js@eZsKjfnRtnN8np5uwoAx'
|
|
95
|
+
|
|
96
|
+
# Welcome to Safe MDX Demo
|
|
97
|
+
|
|
98
|
+
This is a demo of the **safe-mdx** package with React and Tailwind CSS v4.
|
|
99
|
+
|
|
100
|
+
## Features
|
|
101
|
+
|
|
102
|
+
- 🚀 Fast and secure MDX rendering
|
|
103
|
+
- 🎨 Styled with Tailwind CSS v4
|
|
104
|
+
- ⚡ Powered by Vite
|
|
105
|
+
|
|
106
|
+
## Code Example
|
|
107
|
+
|
|
108
|
+
\`\`\`javascript
|
|
109
|
+
const greeting = "Hello, Safe MDX!"
|
|
110
|
+
console.log(greeting)
|
|
111
|
+
\`\`\`
|
|
112
|
+
|
|
113
|
+
## Interactive Component
|
|
114
|
+
|
|
115
|
+
Here's an example of an ESM component loaded from a URL:
|
|
116
|
+
|
|
117
|
+
<IOKnob className='flex flex-col w-full mx-auto' />
|
|
118
|
+
|
|
119
|
+
## Lists
|
|
120
|
+
|
|
121
|
+
### Unordered List
|
|
122
|
+
- First item
|
|
123
|
+
- Second item
|
|
124
|
+
- Third item
|
|
125
|
+
|
|
126
|
+
### Ordered List
|
|
127
|
+
1. First step
|
|
128
|
+
2. Second step
|
|
129
|
+
3. Third step
|
|
130
|
+
|
|
131
|
+
## Table
|
|
132
|
+
|
|
133
|
+
| Feature | Status |
|
|
134
|
+
|---------|--------|
|
|
135
|
+
| MDX Support | ✅ |
|
|
136
|
+
| ESM Components | ✅ |
|
|
137
|
+
| Tailwind CSS | ✅ |
|
|
138
|
+
|
|
139
|
+
## Blockquote
|
|
140
|
+
|
|
141
|
+
> This is a blockquote demonstrating how safe-mdx handles various markdown elements.
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
Built with ❤️ using safe-mdx
|
|
146
|
+
`;function v3(){const t=g3(B0);return ha.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800 p-8",children:ha.jsx("div",{className:"mx-auto max-w-4xl",children:ha.jsx("article",{className:"prose prose-slate lg:prose-lg dark:prose-invert mx-auto bg-white dark:bg-slate-800 rounded-lg shadow-xl p-8",children:ha.jsx(zb,{markdown:B0,mdast:t,allowClientEsmImports:!0})})})})}const S3={imports:{react:new URL(new URL("react-Ca6JzGpx.js",import.meta.url).href,import.meta.url).href,"react-dom":new URL(new URL("react-dom-BYRHYqYl.js",import.meta.url).href,import.meta.url).href,"react/jsx-runtime":new URL(new URL("jsx-runtime-NArryeSM.js",import.meta.url).href,import.meta.url).href,"framer-motion":"https://esm.sh/framer-motion?external=react","@motionone/dom":"https://esm.sh/@motionone/dom?external=react",framer:"https://esm.sh/unframer@latest/esm/framer.js?external=react"}};async function k3(){const t=document.createElement("script");t.type="importmap",t.textContent=JSON.stringify(S3,null,2),console.log(t.textContent),document.head.append(t)}await k3();Eb.createRoot(document.getElementById("root")).render(ha.jsx(v3,{}));
|