@illuma-ai/codeviz 1.0.1 → 1.0.2

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/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),I=require("react");function Pi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}function Xc(e){if(Array.isArray(e))return e}function Yc(e,t,r){return(t=r1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kc(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var s,i,o,c,u=[],f=!0,h=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(s=o.call(r)).done)&&(u.push(s.value),u.length!==t);f=!0);}catch(m){h=!0,i=m}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(h)throw i}}return u}}function Qc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,s)}return r}function Ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ni(Object(r),!0).forEach(function(s){Yc(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function Jc(e,t){if(e==null)return{};var r,s,i=Zc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Zc(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function e1(e,t){return Xc(e)||Kc(e,t)||n1(e,t)||Qc()}function t1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r1(e){var t=t1(e,"string");return typeof t=="symbol"?t:t+""}function n1(e,t){if(e){if(typeof e=="string")return Pi(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pi(e,t):void 0}}function s1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,s)}return r}function Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Li(Object(r),!0).forEach(function(s){s1(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Li(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function i1(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(s){return t.reduceRight(function(i,o){return o(i)},s)}}function Br(e){return function t(){for(var r=this,s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return t.apply(r,[].concat(i,u))}}}function vn(e){return{}.toString.call(e).includes("Object")}function a1(e){return!Object.keys(e).length}function Gr(e){return typeof e=="function"}function o1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c1(e,t){return vn(t)||$t("changeType"),Object.keys(t).some(function(r){return!o1(e,r)})&&$t("changeField"),t}function l1(e){Gr(e)||$t("selectorType")}function u1(e){Gr(e)||vn(e)||$t("handlerType"),vn(e)&&Object.values(e).some(function(t){return!Gr(t)})&&$t("handlersType")}function p1(e){e||$t("initialIsRequired"),vn(e)||$t("initialType"),a1(e)&&$t("initialContent")}function h1(e,t){throw new Error(e[t]||e.default)}var f1={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},$t=Br(h1)(f1),pn={changes:c1,selector:l1,handler:u1,initial:p1};function d1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pn.initial(e),pn.handler(t);var r={current:e},s=Br(x1)(r,t),i=Br(g1)(r),o=Br(pn.changes)(e),c=Br(m1)(r);function u(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return pn.selector(h),h(r.current)}function f(h){i1(s,i,o,c)(h)}return[u,f]}function m1(e,t){return Gr(t)?t(e.current):t}function g1(e,t){return e.current=Di(Di({},e.current),t),t}function x1(e,t,r){return Gr(t)?t(e.current):Object.keys(r).forEach(function(s){var i;return(i=t[s])===null||i===void 0?void 0:i.call(t,e.current[s])}),r}var k1={create:d1},b1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function y1(e){return function t(){for(var r=this,s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return t.apply(r,[].concat(i,u))}}}function v1(e){return{}.toString.call(e).includes("Object")}function w1(e){return e||Oi("configIsRequired"),v1(e)||Oi("configType"),e.urls?(_1(),{paths:{vs:e.urls.monacoBase}}):e}function _1(){console.warn(ha.deprecation)}function S1(e,t){throw new Error(e[t]||e.default)}var ha={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),I=require("react");function Pi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}function X1(e){if(Array.isArray(e))return e}function Y1(e,t,r){return(t=rc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K1(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var s,i,o,c,u=[],f=!0,p=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(s=o.call(r)).done)&&(u.push(s.value),u.length!==t);f=!0);}catch(m){p=!0,i=m}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(p)throw i}}return u}}function Q1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,s)}return r}function Ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ni(Object(r),!0).forEach(function(s){Y1(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function J1(e,t){if(e==null)return{};var r,s,i=Z1(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Z1(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function ec(e,t){return X1(e)||K1(e,t)||nc(e,t)||Q1()}function tc(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rc(e){var t=tc(e,"string");return typeof t=="symbol"?t:t+""}function nc(e,t){if(e){if(typeof e=="string")return Pi(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pi(e,t):void 0}}function sc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,s)}return r}function Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Li(Object(r),!0).forEach(function(s){sc(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Li(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function ic(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(s){return t.reduceRight(function(i,o){return o(i)},s)}}function Br(e){return function t(){for(var r=this,s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return t.apply(r,[].concat(i,u))}}}function vn(e){return{}.toString.call(e).includes("Object")}function ac(e){return!Object.keys(e).length}function Gr(e){return typeof e=="function"}function oc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function cc(e,t){return vn(t)||$t("changeType"),Object.keys(t).some(function(r){return!oc(e,r)})&&$t("changeField"),t}function lc(e){Gr(e)||$t("selectorType")}function uc(e){Gr(e)||vn(e)||$t("handlerType"),vn(e)&&Object.values(e).some(function(t){return!Gr(t)})&&$t("handlersType")}function hc(e){e||$t("initialIsRequired"),vn(e)||$t("initialType"),ac(e)&&$t("initialContent")}function pc(e,t){throw new Error(e[t]||e.default)}var fc={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},$t=Br(pc)(fc),hn={changes:cc,selector:lc,handler:uc,initial:hc};function dc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};hn.initial(e),hn.handler(t);var r={current:e},s=Br(xc)(r,t),i=Br(gc)(r),o=Br(hn.changes)(e),c=Br(mc)(r);function u(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return hn.selector(p),p(r.current)}function f(p){ic(s,i,o,c)(p)}return[u,f]}function mc(e,t){return Gr(t)?t(e.current):t}function gc(e,t){return e.current=Di(Di({},e.current),t),t}function xc(e,t,r){return Gr(t)?t(e.current):Object.keys(r).forEach(function(s){var i;return(i=t[s])===null||i===void 0?void 0:i.call(t,e.current[s])}),r}var kc={create:dc},bc={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function yc(e){return function t(){for(var r=this,s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return t.apply(r,[].concat(i,u))}}}function vc(e){return{}.toString.call(e).includes("Object")}function wc(e){return e||Oi("configIsRequired"),vc(e)||Oi("configType"),e.urls?(_c(),{paths:{vs:e.urls.monacoBase}}):e}function _c(){console.warn(pa.deprecation)}function Sc(e,t){throw new Error(e[t]||e.default)}var pa={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
3
3
  You are using deprecated way of configuration.
4
4
 
5
5
  Instead of using
@@ -8,7 +8,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8
8
  monaco.config({ paths: { vs: '...' } })
9
9
 
10
10
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
11
- `},Oi=y1(S1)(ha),I1={config:w1},E1=function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return function(i){return r.reduceRight(function(o,c){return c(o)},i)}};function fa(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],fa(e[r],t[r]))}),Ri(Ri({},e),t)}var C1={type:"cancelation",msg:"operation is manually canceled"};function fs(e){var t=!1,r=new Promise(function(s,i){e.then(function(o){return t?i(C1):s(o)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var T1=["monaco"],A1=k1.create({config:b1,isInitialized:!1,resolve:null,reject:null,monaco:null}),da=e1(A1,2),tn=da[0],jn=da[1];function P1(e){var t=I1.config(e),r=t.monaco,s=Jc(t,T1);jn(function(i){return{config:fa(i.config,s),monaco:r}})}function N1(){var e=tn(function(t){var r=t.monaco,s=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:s,resolve:i}});if(!e.isInitialized){if(jn({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),fs(ds);if(window.monaco&&window.monaco.editor)return ma(window.monaco),e.resolve(window.monaco),fs(ds);E1(R1,D1)(O1)}return fs(ds)}function R1(e){return document.body.appendChild(e)}function L1(e){var t=document.createElement("script");return e&&(t.src=e),t}function D1(e){var t=tn(function(s){var i=s.config,o=s.reject;return{config:i,reject:o}}),r=L1("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function O1(){var e=tn(function(r){var s=r.config,i=r.resolve,o=r.reject;return{config:s,resolve:i,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var s=r.m||r;ma(s),e.resolve(s)},function(r){e.reject(r)})}function ma(e){tn().monaco||jn({monaco:e})}function M1(){return tn(function(e){var t=e.monaco;return t})}var ds=new Promise(function(e,t){return jn({resolve:e,reject:t})}),ga={config:P1,init:N1,__getMonacoInstance:M1},j1={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ms=j1,F1={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},B1=F1;function V1({children:e}){return I.createElement("div",{style:B1.container},e)}var $1=V1,q1=$1;function U1({width:e,height:t,isEditorReady:r,loading:s,_ref:i,className:o,wrapperProps:c}){return I.createElement("section",{style:{...ms.wrapper,width:e,height:t},...c},!r&&I.createElement(q1,null,s),I.createElement("div",{ref:i,style:{...ms.fullWidth,...!r&&ms.hide},className:o}))}var z1=U1,xa=I.memo(z1);function H1(e){I.useEffect(e,[])}var ka=H1;function W1(e,t,r=!0){let s=I.useRef(!0);I.useEffect(s.current||!r?()=>{s.current=!1}:e,t)}var et=W1;function $r(){}function br(e,t,r,s){return G1(e,s)||X1(e,t,r,s)}function G1(e,t){return e.editor.getModel(ba(e,t))}function X1(e,t,r,s){return e.editor.createModel(t,r,s?ba(e,s):void 0)}function ba(e,t){return e.Uri.parse(t)}function Y1({original:e,modified:t,language:r,originalLanguage:s,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:c,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:f=!1,theme:h="light",loading:m="Loading...",options:x={},height:_="100%",width:y="100%",className:L,wrapperProps:O={},beforeMount:F=$r,onMount:K=$r}){let[P,j]=I.useState(!1),[D,W]=I.useState(!0),X=I.useRef(null),q=I.useRef(null),T=I.useRef(null),B=I.useRef(K),z=I.useRef(F),ye=I.useRef(!1);ka(()=>{let H=ga.init();return H.then(ce=>(q.current=ce)&&W(!1)).catch(ce=>(ce==null?void 0:ce.type)!=="cancelation"&&console.error("Monaco initialization: error:",ce)),()=>X.current?Oe():H.cancel()}),et(()=>{if(X.current&&q.current){let H=X.current.getOriginalEditor(),ce=br(q.current,e||"",s||r||"text",o||"");ce!==H.getModel()&&H.setModel(ce)}},[o],P),et(()=>{if(X.current&&q.current){let H=X.current.getModifiedEditor(),ce=br(q.current,t||"",i||r||"text",c||"");ce!==H.getModel()&&H.setModel(ce)}},[c],P),et(()=>{let H=X.current.getModifiedEditor();H.getOption(q.current.editor.EditorOption.readOnly)?H.setValue(t||""):t!==H.getValue()&&(H.executeEdits("",[{range:H.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),H.pushUndoStop())},[t],P),et(()=>{var H,ce;(ce=(H=X.current)==null?void 0:H.getModel())==null||ce.original.setValue(e||"")},[e],P),et(()=>{let{original:H,modified:ce}=X.current.getModel();q.current.editor.setModelLanguage(H,s||r||"text"),q.current.editor.setModelLanguage(ce,i||r||"text")},[r,s,i],P),et(()=>{var H;(H=q.current)==null||H.editor.setTheme(h)},[h],P),et(()=>{var H;(H=X.current)==null||H.updateOptions(x)},[x],P);let De=I.useCallback(()=>{var xe;if(!q.current)return;z.current(q.current);let H=br(q.current,e||"",s||r||"text",o||""),ce=br(q.current,t||"",i||r||"text",c||"");(xe=X.current)==null||xe.setModel({original:H,modified:ce})},[r,t,i,e,s,o,c]),$e=I.useCallback(()=>{var H;!ye.current&&T.current&&(X.current=q.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...x}),De(),(H=q.current)==null||H.editor.setTheme(h),j(!0),ye.current=!0)},[x,h,De]);I.useEffect(()=>{P&&B.current(X.current,q.current)},[P]),I.useEffect(()=>{!D&&!P&&$e()},[D,P,$e]);function Oe(){var ce,xe,ee,Pe;let H=(ce=X.current)==null?void 0:ce.getModel();u||((xe=H==null?void 0:H.original)==null||xe.dispose()),f||((ee=H==null?void 0:H.modified)==null||ee.dispose()),(Pe=X.current)==null||Pe.dispose()}return I.createElement(xa,{width:y,height:_,isEditorReady:P,loading:m,_ref:T,className:L,wrapperProps:O})}var K1=Y1;I.memo(K1);function Q1(e){let t=I.useRef();return I.useEffect(()=>{t.current=e},[e]),t.current}var J1=Q1,hn=new Map;function Z1({defaultValue:e,defaultLanguage:t,defaultPath:r,value:s,language:i,path:o,theme:c="light",line:u,loading:f="Loading...",options:h={},overrideServices:m={},saveViewState:x=!0,keepCurrentModel:_=!1,width:y="100%",height:L="100%",className:O,wrapperProps:F={},beforeMount:K=$r,onMount:P=$r,onChange:j,onValidate:D=$r}){let[W,X]=I.useState(!1),[q,T]=I.useState(!0),B=I.useRef(null),z=I.useRef(null),ye=I.useRef(null),De=I.useRef(P),$e=I.useRef(K),Oe=I.useRef(),H=I.useRef(s),ce=J1(o),xe=I.useRef(!1),ee=I.useRef(!1);ka(()=>{let te=ga.init();return te.then(ue=>(B.current=ue)&&T(!1)).catch(ue=>(ue==null?void 0:ue.type)!=="cancelation"&&console.error("Monaco initialization: error:",ue)),()=>z.current?Be():te.cancel()}),et(()=>{var ue,ke,Le,b;let te=br(B.current,e||s||"",t||i||"",o||r||"");te!==((ue=z.current)==null?void 0:ue.getModel())&&(x&&hn.set(ce,(ke=z.current)==null?void 0:ke.saveViewState()),(Le=z.current)==null||Le.setModel(te),x&&((b=z.current)==null||b.restoreViewState(hn.get(o))))},[o],W),et(()=>{var te;(te=z.current)==null||te.updateOptions(h)},[h],W),et(()=>{!z.current||s===void 0||(z.current.getOption(B.current.editor.EditorOption.readOnly)?z.current.setValue(s):s!==z.current.getValue()&&(ee.current=!0,z.current.executeEdits("",[{range:z.current.getModel().getFullModelRange(),text:s,forceMoveMarkers:!0}]),z.current.pushUndoStop(),ee.current=!1))},[s],W),et(()=>{var ue,ke;let te=(ue=z.current)==null?void 0:ue.getModel();te&&i&&((ke=B.current)==null||ke.editor.setModelLanguage(te,i))},[i],W),et(()=>{var te;u!==void 0&&((te=z.current)==null||te.revealLine(u))},[u],W),et(()=>{var te;(te=B.current)==null||te.editor.setTheme(c)},[c],W);let Pe=I.useCallback(()=>{var te;if(!(!ye.current||!B.current)&&!xe.current){$e.current(B.current);let ue=o||r,ke=br(B.current,s||e||"",t||i||"",ue||"");z.current=(te=B.current)==null?void 0:te.editor.create(ye.current,{model:ke,automaticLayout:!0,...h},m),x&&z.current.restoreViewState(hn.get(ue)),B.current.editor.setTheme(c),u!==void 0&&z.current.revealLine(u),X(!0),xe.current=!0}},[e,t,r,s,i,o,h,m,x,c,u]);I.useEffect(()=>{W&&De.current(z.current,B.current)},[W]),I.useEffect(()=>{!q&&!W&&Pe()},[q,W,Pe]),H.current=s,I.useEffect(()=>{var te,ue;W&&j&&((te=Oe.current)==null||te.dispose(),Oe.current=(ue=z.current)==null?void 0:ue.onDidChangeModelContent(ke=>{ee.current||j(z.current.getValue(),ke)}))},[W,j]),I.useEffect(()=>{if(W){let te=B.current.editor.onDidChangeMarkers(ue=>{var Le;let ke=(Le=z.current.getModel())==null?void 0:Le.uri;if(ke&&ue.find(b=>b.path===ke.path)){let b=B.current.editor.getModelMarkers({resource:ke});D==null||D(b)}});return()=>{te==null||te.dispose()}}return()=>{}},[W,D]);function Be(){var te,ue;(te=Oe.current)==null||te.dispose(),_?x&&hn.set(o,z.current.saveViewState()):(ue=z.current.getModel())==null||ue.dispose(),z.current.dispose()}return I.createElement(xa,{width:y,height:L,isEditorReady:W,loading:f,_ref:ye,className:O,wrapperProps:F})}var el=Z1,tl=I.memo(el),rl=tl;const Hs=I.memo(function({size:t="md",label:r="Loading preview..."}){const s=t==="sm"?8:t==="md"?12:16,i=t==="sm"?4:t==="md"?6:8;return E.jsxs("div",{style:fn.container,children:[E.jsx("div",{style:{...fn.cubes,gap:i},children:[0,1,2].map(o=>E.jsx("div",{style:{...fn.cube,width:s,height:s,animationDelay:`${o*.15}s`}},o))}),r&&E.jsx("div",{style:fn.label,children:r}),E.jsx("style",{children:nl})]})}),nl=`
11
+ `},Oi=yc(Sc)(pa),Ic={config:wc},Cc=function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return function(i){return r.reduceRight(function(o,c){return c(o)},i)}};function fa(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],fa(e[r],t[r]))}),Ri(Ri({},e),t)}var Ec={type:"cancelation",msg:"operation is manually canceled"};function fs(e){var t=!1,r=new Promise(function(s,i){e.then(function(o){return t?i(Ec):s(o)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var Tc=["monaco"],Ac=kc.create({config:bc,isInitialized:!1,resolve:null,reject:null,monaco:null}),da=ec(Ac,2),tn=da[0],jn=da[1];function Pc(e){var t=Ic.config(e),r=t.monaco,s=J1(t,Tc);jn(function(i){return{config:fa(i.config,s),monaco:r}})}function Nc(){var e=tn(function(t){var r=t.monaco,s=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:s,resolve:i}});if(!e.isInitialized){if(jn({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),fs(ds);if(window.monaco&&window.monaco.editor)return ma(window.monaco),e.resolve(window.monaco),fs(ds);Cc(Rc,Dc)(Oc)}return fs(ds)}function Rc(e){return document.body.appendChild(e)}function Lc(e){var t=document.createElement("script");return e&&(t.src=e),t}function Dc(e){var t=tn(function(s){var i=s.config,o=s.reject;return{config:i,reject:o}}),r=Lc("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Oc(){var e=tn(function(r){var s=r.config,i=r.resolve,o=r.reject;return{config:s,resolve:i,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var s=r.m||r;ma(s),e.resolve(s)},function(r){e.reject(r)})}function ma(e){tn().monaco||jn({monaco:e})}function Mc(){return tn(function(e){var t=e.monaco;return t})}var ds=new Promise(function(e,t){return jn({resolve:e,reject:t})}),ga={config:Pc,init:Nc,__getMonacoInstance:Mc},jc={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ms=jc,Fc={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Bc=Fc;function Vc({children:e}){return I.createElement("div",{style:Bc.container},e)}var $c=Vc,qc=$c;function Uc({width:e,height:t,isEditorReady:r,loading:s,_ref:i,className:o,wrapperProps:c}){return I.createElement("section",{style:{...ms.wrapper,width:e,height:t},...c},!r&&I.createElement(qc,null,s),I.createElement("div",{ref:i,style:{...ms.fullWidth,...!r&&ms.hide},className:o}))}var zc=Uc,xa=I.memo(zc);function Hc(e){I.useEffect(e,[])}var ka=Hc;function Wc(e,t,r=!0){let s=I.useRef(!0);I.useEffect(s.current||!r?()=>{s.current=!1}:e,t)}var et=Wc;function $r(){}function br(e,t,r,s){return Gc(e,s)||Xc(e,t,r,s)}function Gc(e,t){return e.editor.getModel(ba(e,t))}function Xc(e,t,r,s){return e.editor.createModel(t,r,s?ba(e,s):void 0)}function ba(e,t){return e.Uri.parse(t)}function Yc({original:e,modified:t,language:r,originalLanguage:s,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:c,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:f=!1,theme:p="light",loading:m="Loading...",options:x={},height:_="100%",width:y="100%",className:L,wrapperProps:O={},beforeMount:F=$r,onMount:K=$r}){let[P,j]=I.useState(!1),[D,W]=I.useState(!0),X=I.useRef(null),q=I.useRef(null),T=I.useRef(null),B=I.useRef(K),z=I.useRef(F),ye=I.useRef(!1);ka(()=>{let H=ga.init();return H.then(ce=>(q.current=ce)&&W(!1)).catch(ce=>(ce==null?void 0:ce.type)!=="cancelation"&&console.error("Monaco initialization: error:",ce)),()=>X.current?Oe():H.cancel()}),et(()=>{if(X.current&&q.current){let H=X.current.getOriginalEditor(),ce=br(q.current,e||"",s||r||"text",o||"");ce!==H.getModel()&&H.setModel(ce)}},[o],P),et(()=>{if(X.current&&q.current){let H=X.current.getModifiedEditor(),ce=br(q.current,t||"",i||r||"text",c||"");ce!==H.getModel()&&H.setModel(ce)}},[c],P),et(()=>{let H=X.current.getModifiedEditor();H.getOption(q.current.editor.EditorOption.readOnly)?H.setValue(t||""):t!==H.getValue()&&(H.executeEdits("",[{range:H.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),H.pushUndoStop())},[t],P),et(()=>{var H,ce;(ce=(H=X.current)==null?void 0:H.getModel())==null||ce.original.setValue(e||"")},[e],P),et(()=>{let{original:H,modified:ce}=X.current.getModel();q.current.editor.setModelLanguage(H,s||r||"text"),q.current.editor.setModelLanguage(ce,i||r||"text")},[r,s,i],P),et(()=>{var H;(H=q.current)==null||H.editor.setTheme(p)},[p],P),et(()=>{var H;(H=X.current)==null||H.updateOptions(x)},[x],P);let De=I.useCallback(()=>{var xe;if(!q.current)return;z.current(q.current);let H=br(q.current,e||"",s||r||"text",o||""),ce=br(q.current,t||"",i||r||"text",c||"");(xe=X.current)==null||xe.setModel({original:H,modified:ce})},[r,t,i,e,s,o,c]),$e=I.useCallback(()=>{var H;!ye.current&&T.current&&(X.current=q.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...x}),De(),(H=q.current)==null||H.editor.setTheme(p),j(!0),ye.current=!0)},[x,p,De]);I.useEffect(()=>{P&&B.current(X.current,q.current)},[P]),I.useEffect(()=>{!D&&!P&&$e()},[D,P,$e]);function Oe(){var ce,xe,ee,Pe;let H=(ce=X.current)==null?void 0:ce.getModel();u||((xe=H==null?void 0:H.original)==null||xe.dispose()),f||((ee=H==null?void 0:H.modified)==null||ee.dispose()),(Pe=X.current)==null||Pe.dispose()}return I.createElement(xa,{width:y,height:_,isEditorReady:P,loading:m,_ref:T,className:L,wrapperProps:O})}var Kc=Yc;I.memo(Kc);function Qc(e){let t=I.useRef();return I.useEffect(()=>{t.current=e},[e]),t.current}var Jc=Qc,pn=new Map;function Zc({defaultValue:e,defaultLanguage:t,defaultPath:r,value:s,language:i,path:o,theme:c="light",line:u,loading:f="Loading...",options:p={},overrideServices:m={},saveViewState:x=!0,keepCurrentModel:_=!1,width:y="100%",height:L="100%",className:O,wrapperProps:F={},beforeMount:K=$r,onMount:P=$r,onChange:j,onValidate:D=$r}){let[W,X]=I.useState(!1),[q,T]=I.useState(!0),B=I.useRef(null),z=I.useRef(null),ye=I.useRef(null),De=I.useRef(P),$e=I.useRef(K),Oe=I.useRef(),H=I.useRef(s),ce=Jc(o),xe=I.useRef(!1),ee=I.useRef(!1);ka(()=>{let te=ga.init();return te.then(ue=>(B.current=ue)&&T(!1)).catch(ue=>(ue==null?void 0:ue.type)!=="cancelation"&&console.error("Monaco initialization: error:",ue)),()=>z.current?Be():te.cancel()}),et(()=>{var ue,ke,Le,b;let te=br(B.current,e||s||"",t||i||"",o||r||"");te!==((ue=z.current)==null?void 0:ue.getModel())&&(x&&pn.set(ce,(ke=z.current)==null?void 0:ke.saveViewState()),(Le=z.current)==null||Le.setModel(te),x&&((b=z.current)==null||b.restoreViewState(pn.get(o))))},[o],W),et(()=>{var te;(te=z.current)==null||te.updateOptions(p)},[p],W),et(()=>{!z.current||s===void 0||(z.current.getOption(B.current.editor.EditorOption.readOnly)?z.current.setValue(s):s!==z.current.getValue()&&(ee.current=!0,z.current.executeEdits("",[{range:z.current.getModel().getFullModelRange(),text:s,forceMoveMarkers:!0}]),z.current.pushUndoStop(),ee.current=!1))},[s],W),et(()=>{var ue,ke;let te=(ue=z.current)==null?void 0:ue.getModel();te&&i&&((ke=B.current)==null||ke.editor.setModelLanguage(te,i))},[i],W),et(()=>{var te;u!==void 0&&((te=z.current)==null||te.revealLine(u))},[u],W),et(()=>{var te;(te=B.current)==null||te.editor.setTheme(c)},[c],W);let Pe=I.useCallback(()=>{var te;if(!(!ye.current||!B.current)&&!xe.current){$e.current(B.current);let ue=o||r,ke=br(B.current,s||e||"",t||i||"",ue||"");z.current=(te=B.current)==null?void 0:te.editor.create(ye.current,{model:ke,automaticLayout:!0,...p},m),x&&z.current.restoreViewState(pn.get(ue)),B.current.editor.setTheme(c),u!==void 0&&z.current.revealLine(u),X(!0),xe.current=!0}},[e,t,r,s,i,o,p,m,x,c,u]);I.useEffect(()=>{W&&De.current(z.current,B.current)},[W]),I.useEffect(()=>{!q&&!W&&Pe()},[q,W,Pe]),H.current=s,I.useEffect(()=>{var te,ue;W&&j&&((te=Oe.current)==null||te.dispose(),Oe.current=(ue=z.current)==null?void 0:ue.onDidChangeModelContent(ke=>{ee.current||j(z.current.getValue(),ke)}))},[W,j]),I.useEffect(()=>{if(W){let te=B.current.editor.onDidChangeMarkers(ue=>{var Le;let ke=(Le=z.current.getModel())==null?void 0:Le.uri;if(ke&&ue.find(b=>b.path===ke.path)){let b=B.current.editor.getModelMarkers({resource:ke});D==null||D(b)}});return()=>{te==null||te.dispose()}}return()=>{}},[W,D]);function Be(){var te,ue;(te=Oe.current)==null||te.dispose(),_?x&&pn.set(o,z.current.saveViewState()):(ue=z.current.getModel())==null||ue.dispose(),z.current.dispose()}return I.createElement(xa,{width:y,height:L,isEditorReady:W,loading:f,_ref:ye,className:O,wrapperProps:F})}var el=Zc,tl=I.memo(el),rl=tl;const Hs=I.memo(function({size:t="md",label:r="Loading preview..."}){const s=t==="sm"?8:t==="md"?12:16,i=t==="sm"?4:t==="md"?6:8;return C.jsxs("div",{style:fn.container,children:[C.jsx("div",{style:{...fn.cubes,gap:i},children:[0,1,2].map(o=>C.jsx("div",{style:{...fn.cube,width:s,height:s,animationDelay:`${o*.15}s`}},o))}),r&&C.jsx("div",{style:fn.label,children:r}),C.jsx("style",{children:nl})]})}),nl=`
12
12
  @keyframes codevizBounce {
13
13
  0%, 80%, 100% {
14
14
  transform: scale(0.6);
@@ -23,7 +23,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23
23
  0%, 100% { opacity: 0.5; }
24
24
  50% { opacity: 1; }
25
25
  }
26
- `,fn={container:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,width:"100%",height:"100%",minHeight:120},cubes:{display:"flex",alignItems:"center"},cube:{borderRadius:2,backgroundColor:"#6366f1",animation:"codevizBounce 1.2s infinite ease-in-out"},label:{fontSize:12,color:"#94a3b8",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',animation:"codevizPulse 2s infinite ease-in-out"}},ya=I.memo(function({code:t,language:r,onChange:s,theme:i="dark",readOnly:o=!1,options:c,editorRef:u,baseCode:f}){const h=I.useRef(null),m=I.useRef([]),x=I.useCallback(O=>{const F=O.languages.typescript.typescriptDefaults,K=O.languages.typescript.javascriptDefaults,P={noSemanticValidation:!0,noSyntaxValidation:!0,noSuggestionDiagnostics:!0};F.setDiagnosticsOptions(P),K.setDiagnosticsOptions(P);const j={jsx:O.languages.typescript.JsxEmit.ReactJSX,allowJs:!0,allowNonTsExtensions:!0,esModuleInterop:!0,noEmit:!0,target:O.languages.typescript.ScriptTarget.ESNext,moduleResolution:O.languages.typescript.ModuleResolutionKind.NodeJs};F.setCompilerOptions(j),K.setCompilerOptions(j)},[]),_=I.useCallback(O=>{h.current=O,u&&(u.current=O),il()},[u]),y=I.useCallback(O=>{s==null||s(O??"")},[s]);I.useEffect(()=>{const O=h.current;if(!O||f==null){O&&m.current.length>0&&(m.current=O.deltaDecorations(m.current,[]));return}const F=sl(f,t);m.current=O.deltaDecorations(m.current,F)},[f,t]);const L=al(r);return E.jsx("div",{style:ol.container,children:E.jsx(rl,{height:"100%",language:L,value:t,theme:i==="dark"?"vs-dark":"vs",onChange:y,beforeMount:x,onMount:_,loading:E.jsx(Hs,{size:"sm",label:"Loading editor..."}),options:{minimap:{enabled:!1},fontSize:13,lineHeight:20,padding:{top:8},scrollBeyondLastLine:!1,wordWrap:"on",tabSize:2,automaticLayout:!0,readOnly:o,domReadOnly:o,renderLineHighlight:"none",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,glyphMargin:!0,scrollbar:{verticalScrollbarSize:8,horizontalScrollbarSize:8},...c}})})});function sl(e,t){const r=e.split(`
26
+ `,fn={container:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,width:"100%",height:"100%",minHeight:120},cubes:{display:"flex",alignItems:"center"},cube:{borderRadius:2,backgroundColor:"#6366f1",animation:"codevizBounce 1.2s infinite ease-in-out"},label:{fontSize:12,color:"#94a3b8",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',animation:"codevizPulse 2s infinite ease-in-out"}},ya=I.memo(function({code:t,language:r,onChange:s,theme:i="dark",readOnly:o=!1,options:c,editorRef:u,baseCode:f}){const p=I.useRef(null),m=I.useRef([]),x=I.useCallback(O=>{const F=O.languages.typescript.typescriptDefaults,K=O.languages.typescript.javascriptDefaults,P={noSemanticValidation:!0,noSyntaxValidation:!0,noSuggestionDiagnostics:!0};F.setDiagnosticsOptions(P),K.setDiagnosticsOptions(P);const j={jsx:O.languages.typescript.JsxEmit.ReactJSX,allowJs:!0,allowNonTsExtensions:!0,esModuleInterop:!0,noEmit:!0,target:O.languages.typescript.ScriptTarget.ESNext,moduleResolution:O.languages.typescript.ModuleResolutionKind.NodeJs};F.setCompilerOptions(j),K.setCompilerOptions(j)},[]),_=I.useCallback(O=>{p.current=O,u&&(u.current=O),il()},[u]),y=I.useCallback(O=>{s==null||s(O??"")},[s]);I.useEffect(()=>{const O=p.current;if(!O||f==null){O&&m.current.length>0&&(m.current=O.deltaDecorations(m.current,[]));return}const F=sl(f,t);m.current=O.deltaDecorations(m.current,F)},[f,t]);const L=al(r);return C.jsx("div",{style:ol.container,children:C.jsx(rl,{height:"100%",language:L,value:t,theme:i==="dark"?"vs-dark":"vs",onChange:y,beforeMount:x,onMount:_,loading:C.jsx(Hs,{size:"sm",label:"Loading editor..."}),options:{minimap:{enabled:!1},fontSize:13,lineHeight:20,padding:{top:8},scrollBeyondLastLine:!1,wordWrap:"on",tabSize:2,automaticLayout:!0,readOnly:o,domReadOnly:o,renderLineHighlight:"none",overviewRulerLanes:0,hideCursorInOverviewRuler:!0,glyphMargin:!0,scrollbar:{verticalScrollbarSize:8,horizontalScrollbarSize:8},...c}})})});function sl(e,t){const r=e.split(`
27
27
  `),s=t.split(`
28
28
  `),i=[];for(let o=0;o<s.length;o++){const c=o+1;o>=r.length?i.push({range:{startLineNumber:c,startColumn:1,endLineNumber:c,endColumn:1},options:{isWholeLine:!0,linesDecorationsClassName:"lp-diff-added-gutter",className:"lp-diff-added-line",overviewRuler:{color:"#22c55e",position:1}}}):s[o]!==r[o]&&i.push({range:{startLineNumber:c,startColumn:1,endLineNumber:c,endColumn:1},options:{isWholeLine:!0,linesDecorationsClassName:"lp-diff-modified-gutter",className:"lp-diff-modified-line",overviewRuler:{color:"#3b82f6",position:1}}})}if(r.length>s.length&&s.length>0){const o=s.length;i.push({range:{startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1},options:{isWholeLine:!1,linesDecorationsClassName:"lp-diff-deleted-gutter",overviewRuler:{color:"#ef4444",position:1}}})}return i}let Mi=!1;function il(){if(Mi)return;Mi=!0;const e=document.createElement("style");e.textContent=`
29
29
  /* Green bar — added lines */
@@ -53,13 +53,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
53
53
  border-left: 3px solid #ef4444 !important;
54
54
  margin-left: 3px;
55
55
  }
56
- `,document.head.appendChild(e)}function al(e){return{tsx:"typescript",ts:"typescript",jsx:"javascript",js:"javascript",html:"html",css:"css",json:"json",md:"markdown",markdown:"markdown",mermaid:"markdown",mmd:"markdown",svg:"xml",csv:"plaintext",tsv:"plaintext",dot:"plaintext",gv:"plaintext",latex:"plaintext",tex:"plaintext",architecture:"xml",arch:"xml",drawio:"xml"}[e]||e}const ol={container:{width:"100%",height:"100%",overflow:"hidden"}};var d;(function(e){e[e.NONE=0]="NONE";const r=1;e[e._abstract=r]="_abstract";const s=r+1;e[e._accessor=s]="_accessor";const i=s+1;e[e._as=i]="_as";const o=i+1;e[e._assert=o]="_assert";const c=o+1;e[e._asserts=c]="_asserts";const u=c+1;e[e._async=u]="_async";const f=u+1;e[e._await=f]="_await";const h=f+1;e[e._checks=h]="_checks";const m=h+1;e[e._constructor=m]="_constructor";const x=m+1;e[e._declare=x]="_declare";const _=x+1;e[e._enum=_]="_enum";const y=_+1;e[e._exports=y]="_exports";const L=y+1;e[e._from=L]="_from";const O=L+1;e[e._get=O]="_get";const F=O+1;e[e._global=F]="_global";const K=F+1;e[e._implements=K]="_implements";const P=K+1;e[e._infer=P]="_infer";const j=P+1;e[e._interface=j]="_interface";const D=j+1;e[e._is=D]="_is";const W=D+1;e[e._keyof=W]="_keyof";const X=W+1;e[e._mixins=X]="_mixins";const q=X+1;e[e._module=q]="_module";const T=q+1;e[e._namespace=T]="_namespace";const B=T+1;e[e._of=B]="_of";const z=B+1;e[e._opaque=z]="_opaque";const ye=z+1;e[e._out=ye]="_out";const De=ye+1;e[e._override=De]="_override";const $e=De+1;e[e._private=$e]="_private";const Oe=$e+1;e[e._protected=Oe]="_protected";const H=Oe+1;e[e._proto=H]="_proto";const ce=H+1;e[e._public=ce]="_public";const xe=ce+1;e[e._readonly=xe]="_readonly";const ee=xe+1;e[e._require=ee]="_require";const Pe=ee+1;e[e._satisfies=Pe]="_satisfies";const Be=Pe+1;e[e._set=Be]="_set";const te=Be+1;e[e._static=te]="_static";const ue=te+1;e[e._symbol=ue]="_symbol";const ke=ue+1;e[e._type=ke]="_type";const Le=ke+1;e[e._unique=Le]="_unique";const b=Le+1;e[e._using=b]="_using"})(d||(d={}));var n;(function(e){e[e.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const r=16;e[e.IS_KEYWORD=r]="IS_KEYWORD";const s=32;e[e.IS_ASSIGN=s]="IS_ASSIGN";const i=64;e[e.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const o=128;e[e.IS_PREFIX=o]="IS_PREFIX";const c=256;e[e.IS_POSTFIX=c]="IS_POSTFIX";const u=512;e[e.IS_EXPRESSION_START=u]="IS_EXPRESSION_START";const f=512;e[e.num=f]="num";const h=1536;e[e.bigint=h]="bigint";const m=2560;e[e.decimal=m]="decimal";const x=3584;e[e.regexp=x]="regexp";const _=4608;e[e.string=_]="string";const y=5632;e[e.name=y]="name";const L=6144;e[e.eof=L]="eof";const O=7680;e[e.bracketL=O]="bracketL";const F=8192;e[e.bracketR=F]="bracketR";const K=9728;e[e.braceL=K]="braceL";const P=10752;e[e.braceBarL=P]="braceBarL";const j=11264;e[e.braceR=j]="braceR";const D=12288;e[e.braceBarR=D]="braceBarR";const W=13824;e[e.parenL=W]="parenL";const X=14336;e[e.parenR=X]="parenR";const q=15360;e[e.comma=q]="comma";const T=16384;e[e.semi=T]="semi";const B=17408;e[e.colon=B]="colon";const z=18432;e[e.doubleColon=z]="doubleColon";const ye=19456;e[e.dot=ye]="dot";const De=20480;e[e.question=De]="question";const $e=21504;e[e.questionDot=$e]="questionDot";const Oe=22528;e[e.arrow=Oe]="arrow";const H=23552;e[e.template=H]="template";const ce=24576;e[e.ellipsis=ce]="ellipsis";const xe=25600;e[e.backQuote=xe]="backQuote";const ee=27136;e[e.dollarBraceL=ee]="dollarBraceL";const Pe=27648;e[e.at=Pe]="at";const Be=29184;e[e.hash=Be]="hash";const te=29728;e[e.eq=te]="eq";const ue=30752;e[e.assign=ue]="assign";const ke=32640;e[e.preIncDec=ke]="preIncDec";const Le=33664;e[e.postIncDec=Le]="postIncDec";const b=34432;e[e.bang=b]="bang";const S=35456;e[e.tilde=S]="tilde";const C=35841;e[e.pipeline=C]="pipeline";const A=36866;e[e.nullishCoalescing=A]="nullishCoalescing";const M=37890;e[e.logicalOR=M]="logicalOR";const Y=38915;e[e.logicalAND=Y]="logicalAND";const Z=39940;e[e.bitwiseOR=Z]="bitwiseOR";const le=40965;e[e.bitwiseXOR=le]="bitwiseXOR";const we=41990;e[e.bitwiseAND=we]="bitwiseAND";const oe=43015;e[e.equality=oe]="equality";const Ne=44040;e[e.lessThan=Ne]="lessThan";const Ee=45064;e[e.greaterThan=Ee]="greaterThan";const ve=46088;e[e.relationalOrEqual=ve]="relationalOrEqual";const qe=47113;e[e.bitShiftL=qe]="bitShiftL";const Me=48137;e[e.bitShiftR=Me]="bitShiftR";const nt=49802;e[e.plus=nt]="plus";const Dt=50826;e[e.minus=Dt]="minus";const Ot=51723;e[e.modulo=Ot]="modulo";const lr=52235;e[e.star=lr]="star";const ur=53259;e[e.slash=ur]="slash";const ut=54348;e[e.exponent=ut]="exponent";const je=55296;e[e.jsxName=je]="jsxName";const Tt=56320;e[e.jsxText=Tt]="jsxText";const Ze=57344;e[e.jsxEmptyText=Ze]="jsxEmptyText";const pr=58880;e[e.jsxTagStart=pr]="jsxTagStart";const Mt=59392;e[e.jsxTagEnd=Mt]="jsxTagEnd";const jt=60928;e[e.typeParameterStart=jt]="typeParameterStart";const Cr=61440;e[e.nonNullAssertion=Cr]="nonNullAssertion";const Ft=62480;e[e._break=Ft]="_break";const Tr=63504;e[e._case=Tr]="_case";const hr=64528;e[e._catch=hr]="_catch";const fr=65552;e[e._continue=fr]="_continue";const dr=66576;e[e._debugger=dr]="_debugger";const Ar=67600;e[e._default=Ar]="_default";const Pr=68624;e[e._do=Pr]="_do";const Nr=69648;e[e._else=Nr]="_else";const Xt=70672;e[e._finally=Xt]="_finally";const mr=71696;e[e._for=mr]="_for";const xt=73232;e[e._function=xt]="_function";const Rr=73744;e[e._if=Rr]="_if";const Lr=74768;e[e._return=Lr]="_return";const Dr=75792;e[e._switch=Dr]="_switch";const Yt=77456;e[e._throw=Yt]="_throw";const Or=77840;e[e._try=Or]="_try";const Mr=78864;e[e._var=Mr]="_var";const Q=79888;e[e._let=Q]="_let";const Ie=80912;e[e._const=Ie]="_const";const _e=81936;e[e._while=_e]="_while";const pt=82960;e[e._with=pt]="_with";const kt=84496;e[e._new=kt]="_new";const gr=85520;e[e._this=gr]="_this";const At=86544;e[e._super=At]="_super";const ts=87568;e[e._class=ts]="_class";const rs=88080;e[e._extends=rs]="_extends";const ns=89104;e[e._export=ns]="_export";const ss=90640;e[e._import=ss]="_import";const is=91664;e[e._yield=is]="_yield";const as=92688;e[e._null=as]="_null";const os=93712;e[e._true=os]="_true";const cs=94736;e[e._false=cs]="_false";const ls=95256;e[e._in=ls]="_in";const us=96280;e[e._instanceof=us]="_instanceof";const ps=97936;e[e._typeof=ps]="_typeof";const hs=98960;e[e._void=hs]="_void";const Rc=99984;e[e._delete=Rc]="_delete";const Lc=100880;e[e._async=Lc]="_async";const Dc=101904;e[e._get=Dc]="_get";const Oc=102928;e[e._set=Oc]="_set";const Mc=103952;e[e._declare=Mc]="_declare";const jc=104976;e[e._readonly=jc]="_readonly";const Fc=106e3;e[e._abstract=Fc]="_abstract";const Bc=107024;e[e._static=Bc]="_static";const Vc=107536;e[e._public=Vc]="_public";const $c=108560;e[e._private=$c]="_private";const qc=109584;e[e._protected=qc]="_protected";const Uc=110608;e[e._override=Uc]="_override";const zc=112144;e[e._as=zc]="_as";const Hc=113168;e[e._enum=Hc]="_enum";const Wc=114192;e[e._type=Wc]="_type";const Gc=115216;e[e._implements=Gc]="_implements"})(n||(n={}));function cl(e){switch(e){case n.num:return"num";case n.bigint:return"bigint";case n.decimal:return"decimal";case n.regexp:return"regexp";case n.string:return"string";case n.name:return"name";case n.eof:return"eof";case n.bracketL:return"[";case n.bracketR:return"]";case n.braceL:return"{";case n.braceBarL:return"{|";case n.braceR:return"}";case n.braceBarR:return"|}";case n.parenL:return"(";case n.parenR:return")";case n.comma:return",";case n.semi:return";";case n.colon:return":";case n.doubleColon:return"::";case n.dot:return".";case n.question:return"?";case n.questionDot:return"?.";case n.arrow:return"=>";case n.template:return"template";case n.ellipsis:return"...";case n.backQuote:return"`";case n.dollarBraceL:return"${";case n.at:return"@";case n.hash:return"#";case n.eq:return"=";case n.assign:return"_=";case n.preIncDec:return"++/--";case n.postIncDec:return"++/--";case n.bang:return"!";case n.tilde:return"~";case n.pipeline:return"|>";case n.nullishCoalescing:return"??";case n.logicalOR:return"||";case n.logicalAND:return"&&";case n.bitwiseOR:return"|";case n.bitwiseXOR:return"^";case n.bitwiseAND:return"&";case n.equality:return"==/!=";case n.lessThan:return"<";case n.greaterThan:return">";case n.relationalOrEqual:return"<=/>=";case n.bitShiftL:return"<<";case n.bitShiftR:return">>/>>>";case n.plus:return"+";case n.minus:return"-";case n.modulo:return"%";case n.star:return"*";case n.slash:return"/";case n.exponent:return"**";case n.jsxName:return"jsxName";case n.jsxText:return"jsxText";case n.jsxEmptyText:return"jsxEmptyText";case n.jsxTagStart:return"jsxTagStart";case n.jsxTagEnd:return"jsxTagEnd";case n.typeParameterStart:return"typeParameterStart";case n.nonNullAssertion:return"nonNullAssertion";case n._break:return"break";case n._case:return"case";case n._catch:return"catch";case n._continue:return"continue";case n._debugger:return"debugger";case n._default:return"default";case n._do:return"do";case n._else:return"else";case n._finally:return"finally";case n._for:return"for";case n._function:return"function";case n._if:return"if";case n._return:return"return";case n._switch:return"switch";case n._throw:return"throw";case n._try:return"try";case n._var:return"var";case n._let:return"let";case n._const:return"const";case n._while:return"while";case n._with:return"with";case n._new:return"new";case n._this:return"this";case n._super:return"super";case n._class:return"class";case n._extends:return"extends";case n._export:return"export";case n._import:return"import";case n._yield:return"yield";case n._null:return"null";case n._true:return"true";case n._false:return"false";case n._in:return"in";case n._instanceof:return"instanceof";case n._typeof:return"typeof";case n._void:return"void";case n._delete:return"delete";case n._async:return"async";case n._get:return"get";case n._set:return"set";case n._declare:return"declare";case n._readonly:return"readonly";case n._abstract:return"abstract";case n._static:return"static";case n._public:return"public";case n._private:return"private";case n._protected:return"protected";case n._override:return"override";case n._as:return"as";case n._enum:return"enum";case n._type:return"type";case n._implements:return"implements";default:return""}}let _t=class{constructor(t,r,s){this.startTokenIndex=t,this.endTokenIndex=r,this.isFunctionScope=s}};class ll{constructor(t,r,s,i,o,c,u,f,h,m,x,_,y){this.potentialArrowAt=t,this.noAnonFunctionType=r,this.inDisallowConditionalTypesContext=s,this.tokensLength=i,this.scopesLength=o,this.pos=c,this.type=u,this.contextualKeyword=f,this.start=h,this.end=m,this.isType=x,this.scopeDepth=_,this.error=y}}class We{constructor(){We.prototype.__init.call(this),We.prototype.__init2.call(this),We.prototype.__init3.call(this),We.prototype.__init4.call(this),We.prototype.__init5.call(this),We.prototype.__init6.call(this),We.prototype.__init7.call(this),We.prototype.__init8.call(this),We.prototype.__init9.call(this),We.prototype.__init10.call(this),We.prototype.__init11.call(this),We.prototype.__init12.call(this),We.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=n.eof}__init8(){this.contextualKeyword=d.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new ll(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(t){this.potentialArrowAt=t.potentialArrowAt,this.noAnonFunctionType=t.noAnonFunctionType,this.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,this.tokens.length=t.tokensLength,this.scopes.length=t.scopesLength,this.pos=t.pos,this.type=t.type,this.contextualKeyword=t.contextualKeyword,this.start=t.start,this.end=t.end,this.isType=t.isType,this.scopeDepth=t.scopeDepth,this.error=t.error}}var g;(function(e){e[e.backSpace=8]="backSpace";const r=10;e[e.lineFeed=r]="lineFeed";const s=9;e[e.tab=s]="tab";const i=13;e[e.carriageReturn=i]="carriageReturn";const o=14;e[e.shiftOut=o]="shiftOut";const c=32;e[e.space=c]="space";const u=33;e[e.exclamationMark=u]="exclamationMark";const f=34;e[e.quotationMark=f]="quotationMark";const h=35;e[e.numberSign=h]="numberSign";const m=36;e[e.dollarSign=m]="dollarSign";const x=37;e[e.percentSign=x]="percentSign";const _=38;e[e.ampersand=_]="ampersand";const y=39;e[e.apostrophe=y]="apostrophe";const L=40;e[e.leftParenthesis=L]="leftParenthesis";const O=41;e[e.rightParenthesis=O]="rightParenthesis";const F=42;e[e.asterisk=F]="asterisk";const K=43;e[e.plusSign=K]="plusSign";const P=44;e[e.comma=P]="comma";const j=45;e[e.dash=j]="dash";const D=46;e[e.dot=D]="dot";const W=47;e[e.slash=W]="slash";const X=48;e[e.digit0=X]="digit0";const q=49;e[e.digit1=q]="digit1";const T=50;e[e.digit2=T]="digit2";const B=51;e[e.digit3=B]="digit3";const z=52;e[e.digit4=z]="digit4";const ye=53;e[e.digit5=ye]="digit5";const De=54;e[e.digit6=De]="digit6";const $e=55;e[e.digit7=$e]="digit7";const Oe=56;e[e.digit8=Oe]="digit8";const H=57;e[e.digit9=H]="digit9";const ce=58;e[e.colon=ce]="colon";const xe=59;e[e.semicolon=xe]="semicolon";const ee=60;e[e.lessThan=ee]="lessThan";const Pe=61;e[e.equalsTo=Pe]="equalsTo";const Be=62;e[e.greaterThan=Be]="greaterThan";const te=63;e[e.questionMark=te]="questionMark";const ue=64;e[e.atSign=ue]="atSign";const ke=65;e[e.uppercaseA=ke]="uppercaseA";const Le=66;e[e.uppercaseB=Le]="uppercaseB";const b=67;e[e.uppercaseC=b]="uppercaseC";const S=68;e[e.uppercaseD=S]="uppercaseD";const C=69;e[e.uppercaseE=C]="uppercaseE";const A=70;e[e.uppercaseF=A]="uppercaseF";const M=71;e[e.uppercaseG=M]="uppercaseG";const Y=72;e[e.uppercaseH=Y]="uppercaseH";const Z=73;e[e.uppercaseI=Z]="uppercaseI";const le=74;e[e.uppercaseJ=le]="uppercaseJ";const we=75;e[e.uppercaseK=we]="uppercaseK";const oe=76;e[e.uppercaseL=oe]="uppercaseL";const Ne=77;e[e.uppercaseM=Ne]="uppercaseM";const Ee=78;e[e.uppercaseN=Ee]="uppercaseN";const ve=79;e[e.uppercaseO=ve]="uppercaseO";const qe=80;e[e.uppercaseP=qe]="uppercaseP";const Me=81;e[e.uppercaseQ=Me]="uppercaseQ";const nt=82;e[e.uppercaseR=nt]="uppercaseR";const Dt=83;e[e.uppercaseS=Dt]="uppercaseS";const Ot=84;e[e.uppercaseT=Ot]="uppercaseT";const lr=85;e[e.uppercaseU=lr]="uppercaseU";const ur=86;e[e.uppercaseV=ur]="uppercaseV";const ut=87;e[e.uppercaseW=ut]="uppercaseW";const je=88;e[e.uppercaseX=je]="uppercaseX";const Tt=89;e[e.uppercaseY=Tt]="uppercaseY";const Ze=90;e[e.uppercaseZ=Ze]="uppercaseZ";const pr=91;e[e.leftSquareBracket=pr]="leftSquareBracket";const Mt=92;e[e.backslash=Mt]="backslash";const jt=93;e[e.rightSquareBracket=jt]="rightSquareBracket";const Cr=94;e[e.caret=Cr]="caret";const Ft=95;e[e.underscore=Ft]="underscore";const Tr=96;e[e.graveAccent=Tr]="graveAccent";const hr=97;e[e.lowercaseA=hr]="lowercaseA";const fr=98;e[e.lowercaseB=fr]="lowercaseB";const dr=99;e[e.lowercaseC=dr]="lowercaseC";const Ar=100;e[e.lowercaseD=Ar]="lowercaseD";const Pr=101;e[e.lowercaseE=Pr]="lowercaseE";const Nr=102;e[e.lowercaseF=Nr]="lowercaseF";const Xt=103;e[e.lowercaseG=Xt]="lowercaseG";const mr=104;e[e.lowercaseH=mr]="lowercaseH";const xt=105;e[e.lowercaseI=xt]="lowercaseI";const Rr=106;e[e.lowercaseJ=Rr]="lowercaseJ";const Lr=107;e[e.lowercaseK=Lr]="lowercaseK";const Dr=108;e[e.lowercaseL=Dr]="lowercaseL";const Yt=109;e[e.lowercaseM=Yt]="lowercaseM";const Or=110;e[e.lowercaseN=Or]="lowercaseN";const Mr=111;e[e.lowercaseO=Mr]="lowercaseO";const Q=112;e[e.lowercaseP=Q]="lowercaseP";const Ie=113;e[e.lowercaseQ=Ie]="lowercaseQ";const _e=114;e[e.lowercaseR=_e]="lowercaseR";const pt=115;e[e.lowercaseS=pt]="lowercaseS";const kt=116;e[e.lowercaseT=kt]="lowercaseT";const gr=117;e[e.lowercaseU=gr]="lowercaseU";const At=118;e[e.lowercaseV=At]="lowercaseV";const ts=119;e[e.lowercaseW=ts]="lowercaseW";const rs=120;e[e.lowercaseX=rs]="lowercaseX";const ns=121;e[e.lowercaseY=ns]="lowercaseY";const ss=122;e[e.lowercaseZ=ss]="lowercaseZ";const is=123;e[e.leftCurlyBrace=is]="leftCurlyBrace";const as=124;e[e.verticalBar=as]="verticalBar";const os=125;e[e.rightCurlyBrace=os]="rightCurlyBrace";const cs=126;e[e.tilde=cs]="tilde";const ls=160;e[e.nonBreakingSpace=ls]="nonBreakingSpace";const us=5760;e[e.oghamSpaceMark=us]="oghamSpaceMark";const ps=8232;e[e.lineSeparator=ps]="lineSeparator";const hs=8233;e[e.paragraphSeparator=hs]="paragraphSeparator"})(g||(g={}));let Fn,pe,me,a,N,va;function Xr(){return va++}function ul(e){if("pos"in e){const t=hl(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}class pl{constructor(t,r){this.line=t,this.column=r}}function hl(e){let t=1,r=1;for(let s=0;s<e;s++)N.charCodeAt(s)===g.lineFeed?(t++,r=1):r++;return new pl(t,r)}function fl(e,t,r,s){N=e,a=new We,va=1,Fn=t,pe=r,me=s}function U(e){return a.contextualKeyword===e}function Ws(e){const t=nn();return t.type===n.name&&t.contextualKeyword===e}function Fe(e){return a.contextualKeyword===e&&k(n.name)}function Re(e){Fe(e)||ne()}function tt(){return p(n.eof)||p(n.braceR)||Xe()}function Xe(){const e=a.tokens[a.tokens.length-1],t=e?e.end:0;for(let r=t;r<a.start;r++){const s=N.charCodeAt(r);if(s===g.lineFeed||s===g.carriageReturn||s===8232||s===8233)return!0}return!1}function wa(){const e=Gs();for(let t=a.end;t<e;t++){const r=N.charCodeAt(t);if(r===g.lineFeed||r===g.carriageReturn||r===8232||r===8233)return!0}return!1}function yt(){return k(n.semi)||tt()}function Se(){yt()||ne('Unexpected token, expected ";"')}function v(e){k(e)||ne(`Unexpected token, expected "${cl(e)}"`)}function ne(e="Unexpected token",t=a.start){if(a.error)return;const r=new SyntaxError(e);r.pos=t,a.error=r,a.pos=N.length,re(n.eof)}const _a=[9,11,12,g.space,g.nonBreakingSpace,g.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],ji=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Sa=new Uint8Array(65536);for(const e of _a)Sa[e]=1;function dl(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const dt=new Uint8Array(65536);for(let e=0;e<128;e++)dt[e]=dl(e)?1:0;for(let e=128;e<65536;e++)dt[e]=1;for(const e of _a)dt[e]=0;dt[8232]=0;dt[8233]=0;const rn=dt.slice();for(let e=g.digit0;e<=g.digit9;e++)rn[e]=0;const Fi=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-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-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(n._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function ml(){let e=0,t=0,r=a.pos;for(;r<N.length&&(t=N.charCodeAt(r),!(t<g.lowercaseA||t>g.lowercaseZ));){const i=Fi[e+(t-g.lowercaseA)+1];if(i===-1)break;e=i,r++}const s=Fi[e];if(s>-1&&!dt[t]){a.pos=r,s&1?re(s>>>1):re(n.name,s>>>1);return}for(;r<N.length;){const i=N.charCodeAt(r);if(dt[i])r++;else if(i===g.backslash){if(r+=2,N.charCodeAt(r)===g.leftCurlyBrace){for(;r<N.length&&N.charCodeAt(r)!==g.rightCurlyBrace;)r++;r++}}else if(i===g.atSign&&N.charCodeAt(r+1)===g.atSign)r+=2;else break}a.pos=r,re(n.name)}var G;(function(e){e[e.Access=0]="Access";const r=1;e[e.ExportAccess=r]="ExportAccess";const s=r+1;e[e.TopLevelDeclaration=s]="TopLevelDeclaration";const i=s+1;e[e.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const o=i+1;e[e.BlockScopedDeclaration=o]="BlockScopedDeclaration";const c=o+1;e[e.ObjectShorthandTopLevelDeclaration=c]="ObjectShorthandTopLevelDeclaration";const u=c+1;e[e.ObjectShorthandFunctionScopedDeclaration=u]="ObjectShorthandFunctionScopedDeclaration";const f=u+1;e[e.ObjectShorthandBlockScopedDeclaration=f]="ObjectShorthandBlockScopedDeclaration";const h=f+1;e[e.ObjectShorthand=h]="ObjectShorthand";const m=h+1;e[e.ImportDeclaration=m]="ImportDeclaration";const x=m+1;e[e.ObjectKey=x]="ObjectKey";const _=x+1;e[e.ImportAccess=_]="ImportAccess"})(G||(G={}));var ft;(function(e){e[e.NoChildren=0]="NoChildren";const r=1;e[e.OneChild=r]="OneChild";const s=r+1;e[e.StaticChildren=s]="StaticChildren";const i=s+1;e[e.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(ft||(ft={}));function Ia(e){const t=e.identifierRole;return t===G.TopLevelDeclaration||t===G.FunctionScopedDeclaration||t===G.BlockScopedDeclaration||t===G.ObjectShorthandTopLevelDeclaration||t===G.ObjectShorthandFunctionScopedDeclaration||t===G.ObjectShorthandBlockScopedDeclaration}function gl(e){const t=e.identifierRole;return t===G.FunctionScopedDeclaration||t===G.BlockScopedDeclaration||t===G.ObjectShorthandFunctionScopedDeclaration||t===G.ObjectShorthandBlockScopedDeclaration}function Ea(e){const t=e.identifierRole;return t===G.TopLevelDeclaration||t===G.ObjectShorthandTopLevelDeclaration||t===G.ImportDeclaration}function xl(e){const t=e.identifierRole;return t===G.TopLevelDeclaration||t===G.BlockScopedDeclaration||t===G.ObjectShorthandTopLevelDeclaration||t===G.ObjectShorthandBlockScopedDeclaration}function kl(e){const t=e.identifierRole;return t===G.FunctionScopedDeclaration||t===G.ObjectShorthandFunctionScopedDeclaration}function bl(e){return e.identifierRole===G.ObjectShorthandTopLevelDeclaration||e.identifierRole===G.ObjectShorthandBlockScopedDeclaration||e.identifierRole===G.ObjectShorthandFunctionScopedDeclaration}let Bn=class{constructor(){this.type=a.type,this.contextualKeyword=a.contextualKeyword,this.start=a.start,this.end=a.end,this.scopeDepth=a.scopeDepth,this.isType=a.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}};function w(){a.tokens.push(new Bn),Pa()}function Bt(){a.tokens.push(new Bn),a.start=a.pos,Ml()}function yl(){a.type===n.assign&&--a.pos,Ll()}function ae(e){for(let r=a.tokens.length-e;r<a.tokens.length;r++)a.tokens[r].isType=!0;const t=a.isType;return a.isType=!0,t}function ie(e){a.isType=e}function k(e){return p(e)?(w(),!0):!1}function Ca(e){const t=a.isType;a.isType=!0,k(e),a.isType=t}function p(e){return a.type===e}function Te(){const e=a.snapshot();w();const t=a.type;return a.restoreFromSnapshot(e),t}class vl{constructor(t,r){this.type=t,this.contextualKeyword=r}}function nn(){const e=a.snapshot();w();const t=a.type,r=a.contextualKeyword;return a.restoreFromSnapshot(e),new vl(t,r)}function Gs(){return Ta(a.pos)}function Ta(e){ji.lastIndex=e;const t=ji.exec(N);return e+t[0].length}function Aa(){return N.charCodeAt(Gs())}function Pa(){if(Ra(),a.start=a.pos,a.pos>=N.length){const e=a.tokens;e.length>=2&&e[e.length-1].start>=N.length&&e[e.length-2].start>=N.length&&ne("Unexpectedly reached the end of input."),re(n.eof);return}wl(N.charCodeAt(a.pos))}function wl(e){rn[e]||e===g.backslash||e===g.atSign&&N.charCodeAt(a.pos+1)===g.atSign?ml():Oa(e)}function _l(){for(;N.charCodeAt(a.pos)!==g.asterisk||N.charCodeAt(a.pos+1)!==g.slash;)if(a.pos++,a.pos>N.length){ne("Unterminated comment",a.pos-2);return}a.pos+=2}function Na(e){let t=N.charCodeAt(a.pos+=e);if(a.pos<N.length)for(;t!==g.lineFeed&&t!==g.carriageReturn&&t!==g.lineSeparator&&t!==g.paragraphSeparator&&++a.pos<N.length;)t=N.charCodeAt(a.pos)}function Ra(){for(;a.pos<N.length;){const e=N.charCodeAt(a.pos);switch(e){case g.carriageReturn:N.charCodeAt(a.pos+1)===g.lineFeed&&++a.pos;case g.lineFeed:case g.lineSeparator:case g.paragraphSeparator:++a.pos;break;case g.slash:switch(N.charCodeAt(a.pos+1)){case g.asterisk:a.pos+=2,_l();break;case g.slash:Na(2);break;default:return}break;default:if(Sa[e])++a.pos;else return}}}function re(e,t=d.NONE){a.end=a.pos,a.type=e,a.contextualKeyword=t}function Sl(){const e=N.charCodeAt(a.pos+1);if(e>=g.digit0&&e<=g.digit9){Ma(!0);return}e===g.dot&&N.charCodeAt(a.pos+2)===g.dot?(a.pos+=3,re(n.ellipsis)):(++a.pos,re(n.dot))}function Il(){N.charCodeAt(a.pos+1)===g.equalsTo?ge(n.assign,2):ge(n.slash,1)}function El(e){let t=e===g.asterisk?n.star:n.modulo,r=1,s=N.charCodeAt(a.pos+1);e===g.asterisk&&s===g.asterisk&&(r++,s=N.charCodeAt(a.pos+2),t=n.exponent),s===g.equalsTo&&N.charCodeAt(a.pos+2)!==g.greaterThan&&(r++,t=n.assign),ge(t,r)}function Cl(e){const t=N.charCodeAt(a.pos+1);if(t===e){N.charCodeAt(a.pos+2)===g.equalsTo?ge(n.assign,3):ge(e===g.verticalBar?n.logicalOR:n.logicalAND,2);return}if(e===g.verticalBar){if(t===g.greaterThan){ge(n.pipeline,2);return}else if(t===g.rightCurlyBrace&&me){ge(n.braceBarR,2);return}}if(t===g.equalsTo){ge(n.assign,2);return}ge(e===g.verticalBar?n.bitwiseOR:n.bitwiseAND,1)}function Tl(){N.charCodeAt(a.pos+1)===g.equalsTo?ge(n.assign,2):ge(n.bitwiseXOR,1)}function Al(e){const t=N.charCodeAt(a.pos+1);if(t===e){ge(n.preIncDec,2);return}t===g.equalsTo?ge(n.assign,2):e===g.plusSign?ge(n.plus,1):ge(n.minus,1)}function Pl(){const e=N.charCodeAt(a.pos+1);if(e===g.lessThan){if(N.charCodeAt(a.pos+2)===g.equalsTo){ge(n.assign,3);return}a.isType?ge(n.lessThan,1):ge(n.bitShiftL,2);return}e===g.equalsTo?ge(n.relationalOrEqual,2):ge(n.lessThan,1)}function La(){if(a.isType){ge(n.greaterThan,1);return}const e=N.charCodeAt(a.pos+1);if(e===g.greaterThan){const t=N.charCodeAt(a.pos+2)===g.greaterThan?3:2;if(N.charCodeAt(a.pos+t)===g.equalsTo){ge(n.assign,t+1);return}ge(n.bitShiftR,t);return}e===g.equalsTo?ge(n.relationalOrEqual,2):ge(n.greaterThan,1)}function Da(){a.type===n.greaterThan&&(a.pos-=1,La())}function Nl(e){const t=N.charCodeAt(a.pos+1);if(t===g.equalsTo){ge(n.equality,N.charCodeAt(a.pos+2)===g.equalsTo?3:2);return}if(e===g.equalsTo&&t===g.greaterThan){a.pos+=2,re(n.arrow);return}ge(e===g.equalsTo?n.eq:n.bang,1)}function Rl(){const e=N.charCodeAt(a.pos+1),t=N.charCodeAt(a.pos+2);e===g.questionMark&&!(me&&a.isType)?t===g.equalsTo?ge(n.assign,3):ge(n.nullishCoalescing,2):e===g.dot&&!(t>=g.digit0&&t<=g.digit9)?(a.pos+=2,re(n.questionDot)):(++a.pos,re(n.question))}function Oa(e){switch(e){case g.numberSign:++a.pos,re(n.hash);return;case g.dot:Sl();return;case g.leftParenthesis:++a.pos,re(n.parenL);return;case g.rightParenthesis:++a.pos,re(n.parenR);return;case g.semicolon:++a.pos,re(n.semi);return;case g.comma:++a.pos,re(n.comma);return;case g.leftSquareBracket:++a.pos,re(n.bracketL);return;case g.rightSquareBracket:++a.pos,re(n.bracketR);return;case g.leftCurlyBrace:me&&N.charCodeAt(a.pos+1)===g.verticalBar?ge(n.braceBarL,2):(++a.pos,re(n.braceL));return;case g.rightCurlyBrace:++a.pos,re(n.braceR);return;case g.colon:N.charCodeAt(a.pos+1)===g.colon?ge(n.doubleColon,2):(++a.pos,re(n.colon));return;case g.questionMark:Rl();return;case g.atSign:++a.pos,re(n.at);return;case g.graveAccent:++a.pos,re(n.backQuote);return;case g.digit0:{const t=N.charCodeAt(a.pos+1);if(t===g.lowercaseX||t===g.uppercaseX||t===g.lowercaseO||t===g.uppercaseO||t===g.lowercaseB||t===g.uppercaseB){Dl();return}}case g.digit1:case g.digit2:case g.digit3:case g.digit4:case g.digit5:case g.digit6:case g.digit7:case g.digit8:case g.digit9:Ma(!1);return;case g.quotationMark:case g.apostrophe:Ol(e);return;case g.slash:Il();return;case g.percentSign:case g.asterisk:El(e);return;case g.verticalBar:case g.ampersand:Cl(e);return;case g.caret:Tl();return;case g.plusSign:case g.dash:Al(e);return;case g.lessThan:Pl();return;case g.greaterThan:La();return;case g.equalsTo:case g.exclamationMark:Nl(e);return;case g.tilde:ge(n.tilde,1);return}ne(`Unexpected character '${String.fromCharCode(e)}'`,a.pos)}function ge(e,t){a.pos+=t,re(e)}function Ll(){const e=a.pos;let t=!1,r=!1;for(;;){if(a.pos>=N.length){ne("Unterminated regular expression",e);return}const s=N.charCodeAt(a.pos);if(t)t=!1;else{if(s===g.leftSquareBracket)r=!0;else if(s===g.rightSquareBracket&&r)r=!1;else if(s===g.slash&&!r)break;t=s===g.backslash}++a.pos}++a.pos,jl(),re(n.regexp)}function gs(){for(;;){const e=N.charCodeAt(a.pos);if(e>=g.digit0&&e<=g.digit9||e===g.underscore)a.pos++;else break}}function Dl(){for(a.pos+=2;;){const t=N.charCodeAt(a.pos);if(t>=g.digit0&&t<=g.digit9||t>=g.lowercaseA&&t<=g.lowercaseF||t>=g.uppercaseA&&t<=g.uppercaseF||t===g.underscore)a.pos++;else break}N.charCodeAt(a.pos)===g.lowercaseN?(++a.pos,re(n.bigint)):re(n.num)}function Ma(e){let t=!1,r=!1;e||gs();let s=N.charCodeAt(a.pos);if(s===g.dot&&(++a.pos,gs(),s=N.charCodeAt(a.pos)),(s===g.uppercaseE||s===g.lowercaseE)&&(s=N.charCodeAt(++a.pos),(s===g.plusSign||s===g.dash)&&++a.pos,gs(),s=N.charCodeAt(a.pos)),s===g.lowercaseN?(++a.pos,t=!0):s===g.lowercaseM&&(++a.pos,r=!0),t){re(n.bigint);return}if(r){re(n.decimal);return}re(n.num)}function Ol(e){for(a.pos++;;){if(a.pos>=N.length){ne("Unterminated string constant");return}const t=N.charCodeAt(a.pos);if(t===g.backslash)a.pos++;else if(t===e)break;a.pos++}a.pos++,re(n.string)}function Ml(){for(;;){if(a.pos>=N.length){ne("Unterminated template");return}const e=N.charCodeAt(a.pos);if(e===g.graveAccent||e===g.dollarSign&&N.charCodeAt(a.pos+1)===g.leftCurlyBrace){if(a.pos===a.start&&p(n.template))if(e===g.dollarSign){a.pos+=2,re(n.dollarBraceL);return}else{++a.pos,re(n.backQuote);return}re(n.template);return}e===g.backslash&&a.pos++,a.pos++}}function jl(){for(;a.pos<N.length;){const e=N.charCodeAt(a.pos);if(dt[e])a.pos++;else if(e===g.backslash){if(a.pos+=2,N.charCodeAt(a.pos)===g.leftCurlyBrace){for(;a.pos<N.length&&N.charCodeAt(a.pos)!==g.rightCurlyBrace;)a.pos++;a.pos++}}else break}}function Yr(e,t=e.currentIndex()){let r=t+1;if(dn(e,r)){const s=e.identifierNameAtIndex(t);return{isType:!1,leftName:s,rightName:s,endIndex:r}}if(r++,dn(e,r))return{isType:!0,leftName:null,rightName:null,endIndex:r};if(r++,dn(e,r))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:r};if(r++,dn(e,r))return{isType:!0,leftName:null,rightName:null,endIndex:r};throw new Error(`Unexpected import/export specifier at ${t}`)}function dn(e,t){const r=e.tokens[t];return r.type===n.braceR||r.type===n.comma}const Fl=new Map([["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","♦"]]);function ja(e){const[t,r]=Bi(e.jsxPragma||"React.createElement"),[s,i]=Bi(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:r,fragmentBase:s,fragmentSuffix:i}}function Bi(e){let t=e.indexOf(".");return t===-1&&(t=e.length),[e.slice(0,t),e.slice(t)]}class mt{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class Kt extends mt{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,r,s,i,o){super(),this.rootTransformer=t,this.tokens=r,this.importProcessor=s,this.nameManager=i,this.options=o,Kt.prototype.__init.call(this),Kt.prototype.__init2.call(this),Kt.prototype.__init3.call(this),Kt.prototype.__init4.call(this),Kt.prototype.__init5.call(this),this.jsxPragmaInfo=ja(o),this.isAutomaticRuntime=o.jsxRuntime==="automatic",this.jsxImportSource=o.jsxImportSource||"react"}process(){return this.tokens.matches1(n.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let t="";if(this.filenameVarName&&(t+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[r,s]of Object.entries(this.cjsAutomaticModuleNameResolutions))t+=`var ${s} = require("${r}");`;else{const{createElement:r,...s}=this.esmAutomaticImportNameResolutions;r&&(t+=`import {createElement as ${r}} from "${this.jsxImportSource}";`);const i=Object.entries(s).map(([o,c])=>`${o} as ${c}`).join(", ");if(i){const o=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");t+=`import {${i}} from "${o}";`}}return t}processJSXTag(){const{jsxRole:t,start:r}=this.tokens.currentToken(),s=this.options.production?null:this.getElementLocationCode(r);this.isAutomaticRuntime&&t!==ft.KeyAfterPropSpread?this.transformTagToJSXFunc(s,t):this.transformTagToCreateElement(s)}getElementLocationCode(t){return`lineNumber: ${this.getLineNumberForIndex(t)}`}getLineNumberForIndex(t){const r=this.tokens.code;for(;this.lastIndex<t&&this.lastIndex<r.length;)r[this.lastIndex]===`
56
+ `,document.head.appendChild(e)}function al(e){return{tsx:"typescript",ts:"typescript",jsx:"javascript",js:"javascript",html:"html",css:"css",json:"json",md:"markdown",markdown:"markdown",mermaid:"markdown",mmd:"markdown",svg:"xml",csv:"plaintext",tsv:"plaintext",dot:"plaintext",gv:"plaintext",latex:"plaintext",tex:"plaintext",architecture:"xml",arch:"xml",drawio:"xml"}[e]||e}const ol={container:{width:"100%",height:"100%",overflow:"hidden"}};var d;(function(e){e[e.NONE=0]="NONE";const r=1;e[e._abstract=r]="_abstract";const s=r+1;e[e._accessor=s]="_accessor";const i=s+1;e[e._as=i]="_as";const o=i+1;e[e._assert=o]="_assert";const c=o+1;e[e._asserts=c]="_asserts";const u=c+1;e[e._async=u]="_async";const f=u+1;e[e._await=f]="_await";const p=f+1;e[e._checks=p]="_checks";const m=p+1;e[e._constructor=m]="_constructor";const x=m+1;e[e._declare=x]="_declare";const _=x+1;e[e._enum=_]="_enum";const y=_+1;e[e._exports=y]="_exports";const L=y+1;e[e._from=L]="_from";const O=L+1;e[e._get=O]="_get";const F=O+1;e[e._global=F]="_global";const K=F+1;e[e._implements=K]="_implements";const P=K+1;e[e._infer=P]="_infer";const j=P+1;e[e._interface=j]="_interface";const D=j+1;e[e._is=D]="_is";const W=D+1;e[e._keyof=W]="_keyof";const X=W+1;e[e._mixins=X]="_mixins";const q=X+1;e[e._module=q]="_module";const T=q+1;e[e._namespace=T]="_namespace";const B=T+1;e[e._of=B]="_of";const z=B+1;e[e._opaque=z]="_opaque";const ye=z+1;e[e._out=ye]="_out";const De=ye+1;e[e._override=De]="_override";const $e=De+1;e[e._private=$e]="_private";const Oe=$e+1;e[e._protected=Oe]="_protected";const H=Oe+1;e[e._proto=H]="_proto";const ce=H+1;e[e._public=ce]="_public";const xe=ce+1;e[e._readonly=xe]="_readonly";const ee=xe+1;e[e._require=ee]="_require";const Pe=ee+1;e[e._satisfies=Pe]="_satisfies";const Be=Pe+1;e[e._set=Be]="_set";const te=Be+1;e[e._static=te]="_static";const ue=te+1;e[e._symbol=ue]="_symbol";const ke=ue+1;e[e._type=ke]="_type";const Le=ke+1;e[e._unique=Le]="_unique";const b=Le+1;e[e._using=b]="_using"})(d||(d={}));var n;(function(e){e[e.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const r=16;e[e.IS_KEYWORD=r]="IS_KEYWORD";const s=32;e[e.IS_ASSIGN=s]="IS_ASSIGN";const i=64;e[e.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const o=128;e[e.IS_PREFIX=o]="IS_PREFIX";const c=256;e[e.IS_POSTFIX=c]="IS_POSTFIX";const u=512;e[e.IS_EXPRESSION_START=u]="IS_EXPRESSION_START";const f=512;e[e.num=f]="num";const p=1536;e[e.bigint=p]="bigint";const m=2560;e[e.decimal=m]="decimal";const x=3584;e[e.regexp=x]="regexp";const _=4608;e[e.string=_]="string";const y=5632;e[e.name=y]="name";const L=6144;e[e.eof=L]="eof";const O=7680;e[e.bracketL=O]="bracketL";const F=8192;e[e.bracketR=F]="bracketR";const K=9728;e[e.braceL=K]="braceL";const P=10752;e[e.braceBarL=P]="braceBarL";const j=11264;e[e.braceR=j]="braceR";const D=12288;e[e.braceBarR=D]="braceBarR";const W=13824;e[e.parenL=W]="parenL";const X=14336;e[e.parenR=X]="parenR";const q=15360;e[e.comma=q]="comma";const T=16384;e[e.semi=T]="semi";const B=17408;e[e.colon=B]="colon";const z=18432;e[e.doubleColon=z]="doubleColon";const ye=19456;e[e.dot=ye]="dot";const De=20480;e[e.question=De]="question";const $e=21504;e[e.questionDot=$e]="questionDot";const Oe=22528;e[e.arrow=Oe]="arrow";const H=23552;e[e.template=H]="template";const ce=24576;e[e.ellipsis=ce]="ellipsis";const xe=25600;e[e.backQuote=xe]="backQuote";const ee=27136;e[e.dollarBraceL=ee]="dollarBraceL";const Pe=27648;e[e.at=Pe]="at";const Be=29184;e[e.hash=Be]="hash";const te=29728;e[e.eq=te]="eq";const ue=30752;e[e.assign=ue]="assign";const ke=32640;e[e.preIncDec=ke]="preIncDec";const Le=33664;e[e.postIncDec=Le]="postIncDec";const b=34432;e[e.bang=b]="bang";const S=35456;e[e.tilde=S]="tilde";const E=35841;e[e.pipeline=E]="pipeline";const A=36866;e[e.nullishCoalescing=A]="nullishCoalescing";const M=37890;e[e.logicalOR=M]="logicalOR";const Y=38915;e[e.logicalAND=Y]="logicalAND";const Z=39940;e[e.bitwiseOR=Z]="bitwiseOR";const le=40965;e[e.bitwiseXOR=le]="bitwiseXOR";const we=41990;e[e.bitwiseAND=we]="bitwiseAND";const oe=43015;e[e.equality=oe]="equality";const Ne=44040;e[e.lessThan=Ne]="lessThan";const Ce=45064;e[e.greaterThan=Ce]="greaterThan";const ve=46088;e[e.relationalOrEqual=ve]="relationalOrEqual";const qe=47113;e[e.bitShiftL=qe]="bitShiftL";const Me=48137;e[e.bitShiftR=Me]="bitShiftR";const nt=49802;e[e.plus=nt]="plus";const Dt=50826;e[e.minus=Dt]="minus";const Ot=51723;e[e.modulo=Ot]="modulo";const lr=52235;e[e.star=lr]="star";const ur=53259;e[e.slash=ur]="slash";const ut=54348;e[e.exponent=ut]="exponent";const je=55296;e[e.jsxName=je]="jsxName";const Tt=56320;e[e.jsxText=Tt]="jsxText";const Ze=57344;e[e.jsxEmptyText=Ze]="jsxEmptyText";const hr=58880;e[e.jsxTagStart=hr]="jsxTagStart";const Mt=59392;e[e.jsxTagEnd=Mt]="jsxTagEnd";const jt=60928;e[e.typeParameterStart=jt]="typeParameterStart";const Er=61440;e[e.nonNullAssertion=Er]="nonNullAssertion";const Ft=62480;e[e._break=Ft]="_break";const Tr=63504;e[e._case=Tr]="_case";const pr=64528;e[e._catch=pr]="_catch";const fr=65552;e[e._continue=fr]="_continue";const dr=66576;e[e._debugger=dr]="_debugger";const Ar=67600;e[e._default=Ar]="_default";const Pr=68624;e[e._do=Pr]="_do";const Nr=69648;e[e._else=Nr]="_else";const Xt=70672;e[e._finally=Xt]="_finally";const mr=71696;e[e._for=mr]="_for";const xt=73232;e[e._function=xt]="_function";const Rr=73744;e[e._if=Rr]="_if";const Lr=74768;e[e._return=Lr]="_return";const Dr=75792;e[e._switch=Dr]="_switch";const Yt=77456;e[e._throw=Yt]="_throw";const Or=77840;e[e._try=Or]="_try";const Mr=78864;e[e._var=Mr]="_var";const Q=79888;e[e._let=Q]="_let";const Ie=80912;e[e._const=Ie]="_const";const _e=81936;e[e._while=_e]="_while";const ht=82960;e[e._with=ht]="_with";const kt=84496;e[e._new=kt]="_new";const gr=85520;e[e._this=gr]="_this";const At=86544;e[e._super=At]="_super";const ts=87568;e[e._class=ts]="_class";const rs=88080;e[e._extends=rs]="_extends";const ns=89104;e[e._export=ns]="_export";const ss=90640;e[e._import=ss]="_import";const is=91664;e[e._yield=is]="_yield";const as=92688;e[e._null=as]="_null";const os=93712;e[e._true=os]="_true";const cs=94736;e[e._false=cs]="_false";const ls=95256;e[e._in=ls]="_in";const us=96280;e[e._instanceof=us]="_instanceof";const hs=97936;e[e._typeof=hs]="_typeof";const ps=98960;e[e._void=ps]="_void";const R1=99984;e[e._delete=R1]="_delete";const L1=100880;e[e._async=L1]="_async";const D1=101904;e[e._get=D1]="_get";const O1=102928;e[e._set=O1]="_set";const M1=103952;e[e._declare=M1]="_declare";const j1=104976;e[e._readonly=j1]="_readonly";const F1=106e3;e[e._abstract=F1]="_abstract";const B1=107024;e[e._static=B1]="_static";const V1=107536;e[e._public=V1]="_public";const $1=108560;e[e._private=$1]="_private";const q1=109584;e[e._protected=q1]="_protected";const U1=110608;e[e._override=U1]="_override";const z1=112144;e[e._as=z1]="_as";const H1=113168;e[e._enum=H1]="_enum";const W1=114192;e[e._type=W1]="_type";const G1=115216;e[e._implements=G1]="_implements"})(n||(n={}));function cl(e){switch(e){case n.num:return"num";case n.bigint:return"bigint";case n.decimal:return"decimal";case n.regexp:return"regexp";case n.string:return"string";case n.name:return"name";case n.eof:return"eof";case n.bracketL:return"[";case n.bracketR:return"]";case n.braceL:return"{";case n.braceBarL:return"{|";case n.braceR:return"}";case n.braceBarR:return"|}";case n.parenL:return"(";case n.parenR:return")";case n.comma:return",";case n.semi:return";";case n.colon:return":";case n.doubleColon:return"::";case n.dot:return".";case n.question:return"?";case n.questionDot:return"?.";case n.arrow:return"=>";case n.template:return"template";case n.ellipsis:return"...";case n.backQuote:return"`";case n.dollarBraceL:return"${";case n.at:return"@";case n.hash:return"#";case n.eq:return"=";case n.assign:return"_=";case n.preIncDec:return"++/--";case n.postIncDec:return"++/--";case n.bang:return"!";case n.tilde:return"~";case n.pipeline:return"|>";case n.nullishCoalescing:return"??";case n.logicalOR:return"||";case n.logicalAND:return"&&";case n.bitwiseOR:return"|";case n.bitwiseXOR:return"^";case n.bitwiseAND:return"&";case n.equality:return"==/!=";case n.lessThan:return"<";case n.greaterThan:return">";case n.relationalOrEqual:return"<=/>=";case n.bitShiftL:return"<<";case n.bitShiftR:return">>/>>>";case n.plus:return"+";case n.minus:return"-";case n.modulo:return"%";case n.star:return"*";case n.slash:return"/";case n.exponent:return"**";case n.jsxName:return"jsxName";case n.jsxText:return"jsxText";case n.jsxEmptyText:return"jsxEmptyText";case n.jsxTagStart:return"jsxTagStart";case n.jsxTagEnd:return"jsxTagEnd";case n.typeParameterStart:return"typeParameterStart";case n.nonNullAssertion:return"nonNullAssertion";case n._break:return"break";case n._case:return"case";case n._catch:return"catch";case n._continue:return"continue";case n._debugger:return"debugger";case n._default:return"default";case n._do:return"do";case n._else:return"else";case n._finally:return"finally";case n._for:return"for";case n._function:return"function";case n._if:return"if";case n._return:return"return";case n._switch:return"switch";case n._throw:return"throw";case n._try:return"try";case n._var:return"var";case n._let:return"let";case n._const:return"const";case n._while:return"while";case n._with:return"with";case n._new:return"new";case n._this:return"this";case n._super:return"super";case n._class:return"class";case n._extends:return"extends";case n._export:return"export";case n._import:return"import";case n._yield:return"yield";case n._null:return"null";case n._true:return"true";case n._false:return"false";case n._in:return"in";case n._instanceof:return"instanceof";case n._typeof:return"typeof";case n._void:return"void";case n._delete:return"delete";case n._async:return"async";case n._get:return"get";case n._set:return"set";case n._declare:return"declare";case n._readonly:return"readonly";case n._abstract:return"abstract";case n._static:return"static";case n._public:return"public";case n._private:return"private";case n._protected:return"protected";case n._override:return"override";case n._as:return"as";case n._enum:return"enum";case n._type:return"type";case n._implements:return"implements";default:return""}}let _t=class{constructor(t,r,s){this.startTokenIndex=t,this.endTokenIndex=r,this.isFunctionScope=s}};class ll{constructor(t,r,s,i,o,c,u,f,p,m,x,_,y){this.potentialArrowAt=t,this.noAnonFunctionType=r,this.inDisallowConditionalTypesContext=s,this.tokensLength=i,this.scopesLength=o,this.pos=c,this.type=u,this.contextualKeyword=f,this.start=p,this.end=m,this.isType=x,this.scopeDepth=_,this.error=y}}class We{constructor(){We.prototype.__init.call(this),We.prototype.__init2.call(this),We.prototype.__init3.call(this),We.prototype.__init4.call(this),We.prototype.__init5.call(this),We.prototype.__init6.call(this),We.prototype.__init7.call(this),We.prototype.__init8.call(this),We.prototype.__init9.call(this),We.prototype.__init10.call(this),We.prototype.__init11.call(this),We.prototype.__init12.call(this),We.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=n.eof}__init8(){this.contextualKeyword=d.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new ll(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(t){this.potentialArrowAt=t.potentialArrowAt,this.noAnonFunctionType=t.noAnonFunctionType,this.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,this.tokens.length=t.tokensLength,this.scopes.length=t.scopesLength,this.pos=t.pos,this.type=t.type,this.contextualKeyword=t.contextualKeyword,this.start=t.start,this.end=t.end,this.isType=t.isType,this.scopeDepth=t.scopeDepth,this.error=t.error}}var g;(function(e){e[e.backSpace=8]="backSpace";const r=10;e[e.lineFeed=r]="lineFeed";const s=9;e[e.tab=s]="tab";const i=13;e[e.carriageReturn=i]="carriageReturn";const o=14;e[e.shiftOut=o]="shiftOut";const c=32;e[e.space=c]="space";const u=33;e[e.exclamationMark=u]="exclamationMark";const f=34;e[e.quotationMark=f]="quotationMark";const p=35;e[e.numberSign=p]="numberSign";const m=36;e[e.dollarSign=m]="dollarSign";const x=37;e[e.percentSign=x]="percentSign";const _=38;e[e.ampersand=_]="ampersand";const y=39;e[e.apostrophe=y]="apostrophe";const L=40;e[e.leftParenthesis=L]="leftParenthesis";const O=41;e[e.rightParenthesis=O]="rightParenthesis";const F=42;e[e.asterisk=F]="asterisk";const K=43;e[e.plusSign=K]="plusSign";const P=44;e[e.comma=P]="comma";const j=45;e[e.dash=j]="dash";const D=46;e[e.dot=D]="dot";const W=47;e[e.slash=W]="slash";const X=48;e[e.digit0=X]="digit0";const q=49;e[e.digit1=q]="digit1";const T=50;e[e.digit2=T]="digit2";const B=51;e[e.digit3=B]="digit3";const z=52;e[e.digit4=z]="digit4";const ye=53;e[e.digit5=ye]="digit5";const De=54;e[e.digit6=De]="digit6";const $e=55;e[e.digit7=$e]="digit7";const Oe=56;e[e.digit8=Oe]="digit8";const H=57;e[e.digit9=H]="digit9";const ce=58;e[e.colon=ce]="colon";const xe=59;e[e.semicolon=xe]="semicolon";const ee=60;e[e.lessThan=ee]="lessThan";const Pe=61;e[e.equalsTo=Pe]="equalsTo";const Be=62;e[e.greaterThan=Be]="greaterThan";const te=63;e[e.questionMark=te]="questionMark";const ue=64;e[e.atSign=ue]="atSign";const ke=65;e[e.uppercaseA=ke]="uppercaseA";const Le=66;e[e.uppercaseB=Le]="uppercaseB";const b=67;e[e.uppercaseC=b]="uppercaseC";const S=68;e[e.uppercaseD=S]="uppercaseD";const E=69;e[e.uppercaseE=E]="uppercaseE";const A=70;e[e.uppercaseF=A]="uppercaseF";const M=71;e[e.uppercaseG=M]="uppercaseG";const Y=72;e[e.uppercaseH=Y]="uppercaseH";const Z=73;e[e.uppercaseI=Z]="uppercaseI";const le=74;e[e.uppercaseJ=le]="uppercaseJ";const we=75;e[e.uppercaseK=we]="uppercaseK";const oe=76;e[e.uppercaseL=oe]="uppercaseL";const Ne=77;e[e.uppercaseM=Ne]="uppercaseM";const Ce=78;e[e.uppercaseN=Ce]="uppercaseN";const ve=79;e[e.uppercaseO=ve]="uppercaseO";const qe=80;e[e.uppercaseP=qe]="uppercaseP";const Me=81;e[e.uppercaseQ=Me]="uppercaseQ";const nt=82;e[e.uppercaseR=nt]="uppercaseR";const Dt=83;e[e.uppercaseS=Dt]="uppercaseS";const Ot=84;e[e.uppercaseT=Ot]="uppercaseT";const lr=85;e[e.uppercaseU=lr]="uppercaseU";const ur=86;e[e.uppercaseV=ur]="uppercaseV";const ut=87;e[e.uppercaseW=ut]="uppercaseW";const je=88;e[e.uppercaseX=je]="uppercaseX";const Tt=89;e[e.uppercaseY=Tt]="uppercaseY";const Ze=90;e[e.uppercaseZ=Ze]="uppercaseZ";const hr=91;e[e.leftSquareBracket=hr]="leftSquareBracket";const Mt=92;e[e.backslash=Mt]="backslash";const jt=93;e[e.rightSquareBracket=jt]="rightSquareBracket";const Er=94;e[e.caret=Er]="caret";const Ft=95;e[e.underscore=Ft]="underscore";const Tr=96;e[e.graveAccent=Tr]="graveAccent";const pr=97;e[e.lowercaseA=pr]="lowercaseA";const fr=98;e[e.lowercaseB=fr]="lowercaseB";const dr=99;e[e.lowercaseC=dr]="lowercaseC";const Ar=100;e[e.lowercaseD=Ar]="lowercaseD";const Pr=101;e[e.lowercaseE=Pr]="lowercaseE";const Nr=102;e[e.lowercaseF=Nr]="lowercaseF";const Xt=103;e[e.lowercaseG=Xt]="lowercaseG";const mr=104;e[e.lowercaseH=mr]="lowercaseH";const xt=105;e[e.lowercaseI=xt]="lowercaseI";const Rr=106;e[e.lowercaseJ=Rr]="lowercaseJ";const Lr=107;e[e.lowercaseK=Lr]="lowercaseK";const Dr=108;e[e.lowercaseL=Dr]="lowercaseL";const Yt=109;e[e.lowercaseM=Yt]="lowercaseM";const Or=110;e[e.lowercaseN=Or]="lowercaseN";const Mr=111;e[e.lowercaseO=Mr]="lowercaseO";const Q=112;e[e.lowercaseP=Q]="lowercaseP";const Ie=113;e[e.lowercaseQ=Ie]="lowercaseQ";const _e=114;e[e.lowercaseR=_e]="lowercaseR";const ht=115;e[e.lowercaseS=ht]="lowercaseS";const kt=116;e[e.lowercaseT=kt]="lowercaseT";const gr=117;e[e.lowercaseU=gr]="lowercaseU";const At=118;e[e.lowercaseV=At]="lowercaseV";const ts=119;e[e.lowercaseW=ts]="lowercaseW";const rs=120;e[e.lowercaseX=rs]="lowercaseX";const ns=121;e[e.lowercaseY=ns]="lowercaseY";const ss=122;e[e.lowercaseZ=ss]="lowercaseZ";const is=123;e[e.leftCurlyBrace=is]="leftCurlyBrace";const as=124;e[e.verticalBar=as]="verticalBar";const os=125;e[e.rightCurlyBrace=os]="rightCurlyBrace";const cs=126;e[e.tilde=cs]="tilde";const ls=160;e[e.nonBreakingSpace=ls]="nonBreakingSpace";const us=5760;e[e.oghamSpaceMark=us]="oghamSpaceMark";const hs=8232;e[e.lineSeparator=hs]="lineSeparator";const ps=8233;e[e.paragraphSeparator=ps]="paragraphSeparator"})(g||(g={}));let Fn,he,me,a,N,va;function Xr(){return va++}function ul(e){if("pos"in e){const t=pl(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}class hl{constructor(t,r){this.line=t,this.column=r}}function pl(e){let t=1,r=1;for(let s=0;s<e;s++)N.charCodeAt(s)===g.lineFeed?(t++,r=1):r++;return new hl(t,r)}function fl(e,t,r,s){N=e,a=new We,va=1,Fn=t,he=r,me=s}function U(e){return a.contextualKeyword===e}function Ws(e){const t=nn();return t.type===n.name&&t.contextualKeyword===e}function Fe(e){return a.contextualKeyword===e&&k(n.name)}function Re(e){Fe(e)||ne()}function tt(){return h(n.eof)||h(n.braceR)||Xe()}function Xe(){const e=a.tokens[a.tokens.length-1],t=e?e.end:0;for(let r=t;r<a.start;r++){const s=N.charCodeAt(r);if(s===g.lineFeed||s===g.carriageReturn||s===8232||s===8233)return!0}return!1}function wa(){const e=Gs();for(let t=a.end;t<e;t++){const r=N.charCodeAt(t);if(r===g.lineFeed||r===g.carriageReturn||r===8232||r===8233)return!0}return!1}function yt(){return k(n.semi)||tt()}function Se(){yt()||ne('Unexpected token, expected ";"')}function v(e){k(e)||ne(`Unexpected token, expected "${cl(e)}"`)}function ne(e="Unexpected token",t=a.start){if(a.error)return;const r=new SyntaxError(e);r.pos=t,a.error=r,a.pos=N.length,re(n.eof)}const _a=[9,11,12,g.space,g.nonBreakingSpace,g.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],ji=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Sa=new Uint8Array(65536);for(const e of _a)Sa[e]=1;function dl(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const dt=new Uint8Array(65536);for(let e=0;e<128;e++)dt[e]=dl(e)?1:0;for(let e=128;e<65536;e++)dt[e]=1;for(const e of _a)dt[e]=0;dt[8232]=0;dt[8233]=0;const rn=dt.slice();for(let e=g.digit0;e<=g.digit9;e++)rn[e]=0;const Fi=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1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,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(n._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(n._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function ml(){let e=0,t=0,r=a.pos;for(;r<N.length&&(t=N.charCodeAt(r),!(t<g.lowercaseA||t>g.lowercaseZ));){const i=Fi[e+(t-g.lowercaseA)+1];if(i===-1)break;e=i,r++}const s=Fi[e];if(s>-1&&!dt[t]){a.pos=r,s&1?re(s>>>1):re(n.name,s>>>1);return}for(;r<N.length;){const i=N.charCodeAt(r);if(dt[i])r++;else if(i===g.backslash){if(r+=2,N.charCodeAt(r)===g.leftCurlyBrace){for(;r<N.length&&N.charCodeAt(r)!==g.rightCurlyBrace;)r++;r++}}else if(i===g.atSign&&N.charCodeAt(r+1)===g.atSign)r+=2;else break}a.pos=r,re(n.name)}var G;(function(e){e[e.Access=0]="Access";const r=1;e[e.ExportAccess=r]="ExportAccess";const s=r+1;e[e.TopLevelDeclaration=s]="TopLevelDeclaration";const i=s+1;e[e.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const o=i+1;e[e.BlockScopedDeclaration=o]="BlockScopedDeclaration";const c=o+1;e[e.ObjectShorthandTopLevelDeclaration=c]="ObjectShorthandTopLevelDeclaration";const u=c+1;e[e.ObjectShorthandFunctionScopedDeclaration=u]="ObjectShorthandFunctionScopedDeclaration";const f=u+1;e[e.ObjectShorthandBlockScopedDeclaration=f]="ObjectShorthandBlockScopedDeclaration";const p=f+1;e[e.ObjectShorthand=p]="ObjectShorthand";const m=p+1;e[e.ImportDeclaration=m]="ImportDeclaration";const x=m+1;e[e.ObjectKey=x]="ObjectKey";const _=x+1;e[e.ImportAccess=_]="ImportAccess"})(G||(G={}));var ft;(function(e){e[e.NoChildren=0]="NoChildren";const r=1;e[e.OneChild=r]="OneChild";const s=r+1;e[e.StaticChildren=s]="StaticChildren";const i=s+1;e[e.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(ft||(ft={}));function Ia(e){const t=e.identifierRole;return t===G.TopLevelDeclaration||t===G.FunctionScopedDeclaration||t===G.BlockScopedDeclaration||t===G.ObjectShorthandTopLevelDeclaration||t===G.ObjectShorthandFunctionScopedDeclaration||t===G.ObjectShorthandBlockScopedDeclaration}function gl(e){const t=e.identifierRole;return t===G.FunctionScopedDeclaration||t===G.BlockScopedDeclaration||t===G.ObjectShorthandFunctionScopedDeclaration||t===G.ObjectShorthandBlockScopedDeclaration}function Ca(e){const t=e.identifierRole;return t===G.TopLevelDeclaration||t===G.ObjectShorthandTopLevelDeclaration||t===G.ImportDeclaration}function xl(e){const t=e.identifierRole;return t===G.TopLevelDeclaration||t===G.BlockScopedDeclaration||t===G.ObjectShorthandTopLevelDeclaration||t===G.ObjectShorthandBlockScopedDeclaration}function kl(e){const t=e.identifierRole;return t===G.FunctionScopedDeclaration||t===G.ObjectShorthandFunctionScopedDeclaration}function bl(e){return e.identifierRole===G.ObjectShorthandTopLevelDeclaration||e.identifierRole===G.ObjectShorthandBlockScopedDeclaration||e.identifierRole===G.ObjectShorthandFunctionScopedDeclaration}let Bn=class{constructor(){this.type=a.type,this.contextualKeyword=a.contextualKeyword,this.start=a.start,this.end=a.end,this.scopeDepth=a.scopeDepth,this.isType=a.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}};function w(){a.tokens.push(new Bn),Pa()}function Bt(){a.tokens.push(new Bn),a.start=a.pos,Ml()}function yl(){a.type===n.assign&&--a.pos,Ll()}function ae(e){for(let r=a.tokens.length-e;r<a.tokens.length;r++)a.tokens[r].isType=!0;const t=a.isType;return a.isType=!0,t}function ie(e){a.isType=e}function k(e){return h(e)?(w(),!0):!1}function Ea(e){const t=a.isType;a.isType=!0,k(e),a.isType=t}function h(e){return a.type===e}function Te(){const e=a.snapshot();w();const t=a.type;return a.restoreFromSnapshot(e),t}class vl{constructor(t,r){this.type=t,this.contextualKeyword=r}}function nn(){const e=a.snapshot();w();const t=a.type,r=a.contextualKeyword;return a.restoreFromSnapshot(e),new vl(t,r)}function Gs(){return Ta(a.pos)}function Ta(e){ji.lastIndex=e;const t=ji.exec(N);return e+t[0].length}function Aa(){return N.charCodeAt(Gs())}function Pa(){if(Ra(),a.start=a.pos,a.pos>=N.length){const e=a.tokens;e.length>=2&&e[e.length-1].start>=N.length&&e[e.length-2].start>=N.length&&ne("Unexpectedly reached the end of input."),re(n.eof);return}wl(N.charCodeAt(a.pos))}function wl(e){rn[e]||e===g.backslash||e===g.atSign&&N.charCodeAt(a.pos+1)===g.atSign?ml():Oa(e)}function _l(){for(;N.charCodeAt(a.pos)!==g.asterisk||N.charCodeAt(a.pos+1)!==g.slash;)if(a.pos++,a.pos>N.length){ne("Unterminated comment",a.pos-2);return}a.pos+=2}function Na(e){let t=N.charCodeAt(a.pos+=e);if(a.pos<N.length)for(;t!==g.lineFeed&&t!==g.carriageReturn&&t!==g.lineSeparator&&t!==g.paragraphSeparator&&++a.pos<N.length;)t=N.charCodeAt(a.pos)}function Ra(){for(;a.pos<N.length;){const e=N.charCodeAt(a.pos);switch(e){case g.carriageReturn:N.charCodeAt(a.pos+1)===g.lineFeed&&++a.pos;case g.lineFeed:case g.lineSeparator:case g.paragraphSeparator:++a.pos;break;case g.slash:switch(N.charCodeAt(a.pos+1)){case g.asterisk:a.pos+=2,_l();break;case g.slash:Na(2);break;default:return}break;default:if(Sa[e])++a.pos;else return}}}function re(e,t=d.NONE){a.end=a.pos,a.type=e,a.contextualKeyword=t}function Sl(){const e=N.charCodeAt(a.pos+1);if(e>=g.digit0&&e<=g.digit9){Ma(!0);return}e===g.dot&&N.charCodeAt(a.pos+2)===g.dot?(a.pos+=3,re(n.ellipsis)):(++a.pos,re(n.dot))}function Il(){N.charCodeAt(a.pos+1)===g.equalsTo?ge(n.assign,2):ge(n.slash,1)}function Cl(e){let t=e===g.asterisk?n.star:n.modulo,r=1,s=N.charCodeAt(a.pos+1);e===g.asterisk&&s===g.asterisk&&(r++,s=N.charCodeAt(a.pos+2),t=n.exponent),s===g.equalsTo&&N.charCodeAt(a.pos+2)!==g.greaterThan&&(r++,t=n.assign),ge(t,r)}function El(e){const t=N.charCodeAt(a.pos+1);if(t===e){N.charCodeAt(a.pos+2)===g.equalsTo?ge(n.assign,3):ge(e===g.verticalBar?n.logicalOR:n.logicalAND,2);return}if(e===g.verticalBar){if(t===g.greaterThan){ge(n.pipeline,2);return}else if(t===g.rightCurlyBrace&&me){ge(n.braceBarR,2);return}}if(t===g.equalsTo){ge(n.assign,2);return}ge(e===g.verticalBar?n.bitwiseOR:n.bitwiseAND,1)}function Tl(){N.charCodeAt(a.pos+1)===g.equalsTo?ge(n.assign,2):ge(n.bitwiseXOR,1)}function Al(e){const t=N.charCodeAt(a.pos+1);if(t===e){ge(n.preIncDec,2);return}t===g.equalsTo?ge(n.assign,2):e===g.plusSign?ge(n.plus,1):ge(n.minus,1)}function Pl(){const e=N.charCodeAt(a.pos+1);if(e===g.lessThan){if(N.charCodeAt(a.pos+2)===g.equalsTo){ge(n.assign,3);return}a.isType?ge(n.lessThan,1):ge(n.bitShiftL,2);return}e===g.equalsTo?ge(n.relationalOrEqual,2):ge(n.lessThan,1)}function La(){if(a.isType){ge(n.greaterThan,1);return}const e=N.charCodeAt(a.pos+1);if(e===g.greaterThan){const t=N.charCodeAt(a.pos+2)===g.greaterThan?3:2;if(N.charCodeAt(a.pos+t)===g.equalsTo){ge(n.assign,t+1);return}ge(n.bitShiftR,t);return}e===g.equalsTo?ge(n.relationalOrEqual,2):ge(n.greaterThan,1)}function Da(){a.type===n.greaterThan&&(a.pos-=1,La())}function Nl(e){const t=N.charCodeAt(a.pos+1);if(t===g.equalsTo){ge(n.equality,N.charCodeAt(a.pos+2)===g.equalsTo?3:2);return}if(e===g.equalsTo&&t===g.greaterThan){a.pos+=2,re(n.arrow);return}ge(e===g.equalsTo?n.eq:n.bang,1)}function Rl(){const e=N.charCodeAt(a.pos+1),t=N.charCodeAt(a.pos+2);e===g.questionMark&&!(me&&a.isType)?t===g.equalsTo?ge(n.assign,3):ge(n.nullishCoalescing,2):e===g.dot&&!(t>=g.digit0&&t<=g.digit9)?(a.pos+=2,re(n.questionDot)):(++a.pos,re(n.question))}function Oa(e){switch(e){case g.numberSign:++a.pos,re(n.hash);return;case g.dot:Sl();return;case g.leftParenthesis:++a.pos,re(n.parenL);return;case g.rightParenthesis:++a.pos,re(n.parenR);return;case g.semicolon:++a.pos,re(n.semi);return;case g.comma:++a.pos,re(n.comma);return;case g.leftSquareBracket:++a.pos,re(n.bracketL);return;case g.rightSquareBracket:++a.pos,re(n.bracketR);return;case g.leftCurlyBrace:me&&N.charCodeAt(a.pos+1)===g.verticalBar?ge(n.braceBarL,2):(++a.pos,re(n.braceL));return;case g.rightCurlyBrace:++a.pos,re(n.braceR);return;case g.colon:N.charCodeAt(a.pos+1)===g.colon?ge(n.doubleColon,2):(++a.pos,re(n.colon));return;case g.questionMark:Rl();return;case g.atSign:++a.pos,re(n.at);return;case g.graveAccent:++a.pos,re(n.backQuote);return;case g.digit0:{const t=N.charCodeAt(a.pos+1);if(t===g.lowercaseX||t===g.uppercaseX||t===g.lowercaseO||t===g.uppercaseO||t===g.lowercaseB||t===g.uppercaseB){Dl();return}}case g.digit1:case g.digit2:case g.digit3:case g.digit4:case g.digit5:case g.digit6:case g.digit7:case g.digit8:case g.digit9:Ma(!1);return;case g.quotationMark:case g.apostrophe:Ol(e);return;case g.slash:Il();return;case g.percentSign:case g.asterisk:Cl(e);return;case g.verticalBar:case g.ampersand:El(e);return;case g.caret:Tl();return;case g.plusSign:case g.dash:Al(e);return;case g.lessThan:Pl();return;case g.greaterThan:La();return;case g.equalsTo:case g.exclamationMark:Nl(e);return;case g.tilde:ge(n.tilde,1);return}ne(`Unexpected character '${String.fromCharCode(e)}'`,a.pos)}function ge(e,t){a.pos+=t,re(e)}function Ll(){const e=a.pos;let t=!1,r=!1;for(;;){if(a.pos>=N.length){ne("Unterminated regular expression",e);return}const s=N.charCodeAt(a.pos);if(t)t=!1;else{if(s===g.leftSquareBracket)r=!0;else if(s===g.rightSquareBracket&&r)r=!1;else if(s===g.slash&&!r)break;t=s===g.backslash}++a.pos}++a.pos,jl(),re(n.regexp)}function gs(){for(;;){const e=N.charCodeAt(a.pos);if(e>=g.digit0&&e<=g.digit9||e===g.underscore)a.pos++;else break}}function Dl(){for(a.pos+=2;;){const t=N.charCodeAt(a.pos);if(t>=g.digit0&&t<=g.digit9||t>=g.lowercaseA&&t<=g.lowercaseF||t>=g.uppercaseA&&t<=g.uppercaseF||t===g.underscore)a.pos++;else break}N.charCodeAt(a.pos)===g.lowercaseN?(++a.pos,re(n.bigint)):re(n.num)}function Ma(e){let t=!1,r=!1;e||gs();let s=N.charCodeAt(a.pos);if(s===g.dot&&(++a.pos,gs(),s=N.charCodeAt(a.pos)),(s===g.uppercaseE||s===g.lowercaseE)&&(s=N.charCodeAt(++a.pos),(s===g.plusSign||s===g.dash)&&++a.pos,gs(),s=N.charCodeAt(a.pos)),s===g.lowercaseN?(++a.pos,t=!0):s===g.lowercaseM&&(++a.pos,r=!0),t){re(n.bigint);return}if(r){re(n.decimal);return}re(n.num)}function Ol(e){for(a.pos++;;){if(a.pos>=N.length){ne("Unterminated string constant");return}const t=N.charCodeAt(a.pos);if(t===g.backslash)a.pos++;else if(t===e)break;a.pos++}a.pos++,re(n.string)}function Ml(){for(;;){if(a.pos>=N.length){ne("Unterminated template");return}const e=N.charCodeAt(a.pos);if(e===g.graveAccent||e===g.dollarSign&&N.charCodeAt(a.pos+1)===g.leftCurlyBrace){if(a.pos===a.start&&h(n.template))if(e===g.dollarSign){a.pos+=2,re(n.dollarBraceL);return}else{++a.pos,re(n.backQuote);return}re(n.template);return}e===g.backslash&&a.pos++,a.pos++}}function jl(){for(;a.pos<N.length;){const e=N.charCodeAt(a.pos);if(dt[e])a.pos++;else if(e===g.backslash){if(a.pos+=2,N.charCodeAt(a.pos)===g.leftCurlyBrace){for(;a.pos<N.length&&N.charCodeAt(a.pos)!==g.rightCurlyBrace;)a.pos++;a.pos++}}else break}}function Yr(e,t=e.currentIndex()){let r=t+1;if(dn(e,r)){const s=e.identifierNameAtIndex(t);return{isType:!1,leftName:s,rightName:s,endIndex:r}}if(r++,dn(e,r))return{isType:!0,leftName:null,rightName:null,endIndex:r};if(r++,dn(e,r))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:r};if(r++,dn(e,r))return{isType:!0,leftName:null,rightName:null,endIndex:r};throw new Error(`Unexpected import/export specifier at ${t}`)}function dn(e,t){const r=e.tokens[t];return r.type===n.braceR||r.type===n.comma}const Fl=new Map([["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","♦"]]);function ja(e){const[t,r]=Bi(e.jsxPragma||"React.createElement"),[s,i]=Bi(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:r,fragmentBase:s,fragmentSuffix:i}}function Bi(e){let t=e.indexOf(".");return t===-1&&(t=e.length),[e.slice(0,t),e.slice(t)]}class mt{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class Kt extends mt{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,r,s,i,o){super(),this.rootTransformer=t,this.tokens=r,this.importProcessor=s,this.nameManager=i,this.options=o,Kt.prototype.__init.call(this),Kt.prototype.__init2.call(this),Kt.prototype.__init3.call(this),Kt.prototype.__init4.call(this),Kt.prototype.__init5.call(this),this.jsxPragmaInfo=ja(o),this.isAutomaticRuntime=o.jsxRuntime==="automatic",this.jsxImportSource=o.jsxImportSource||"react"}process(){return this.tokens.matches1(n.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let t="";if(this.filenameVarName&&(t+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[r,s]of Object.entries(this.cjsAutomaticModuleNameResolutions))t+=`var ${s} = require("${r}");`;else{const{createElement:r,...s}=this.esmAutomaticImportNameResolutions;r&&(t+=`import {createElement as ${r}} from "${this.jsxImportSource}";`);const i=Object.entries(s).map(([o,c])=>`${o} as ${c}`).join(", ");if(i){const o=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");t+=`import {${i}} from "${o}";`}}return t}processJSXTag(){const{jsxRole:t,start:r}=this.tokens.currentToken(),s=this.options.production?null:this.getElementLocationCode(r);this.isAutomaticRuntime&&t!==ft.KeyAfterPropSpread?this.transformTagToJSXFunc(s,t):this.transformTagToCreateElement(s)}getElementLocationCode(t){return`lineNumber: ${this.getLineNumberForIndex(t)}`}getLineNumberForIndex(t){const r=this.tokens.code;for(;this.lastIndex<t&&this.lastIndex<r.length;)r[this.lastIndex]===`
57
57
  `&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(t,r){const s=r===ft.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(s));let i=null;if(this.tokens.matches1(n.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(r);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),i=this.processProps(!0),this.tokens.matches2(n.slash,n.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(n.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(r);else throw new Error("Expected either /> or > at the end of the tag.");i&&this.tokens.appendCode(`, ${i}`)}for(this.options.production||(i===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${s}, ${this.getDevSource(t)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(n.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(t){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(n.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(t),!this.tokens.matches2(n.slash,n.jsxTagEnd))if(this.tokens.matches1(n.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(n.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(t){return this.options.production?t?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:t}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.base)||t.base}${t.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:t}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.fragmentBase)||t.fragmentBase)+t.fragmentSuffix}}claimAutoImportedFuncInvocation(t,r){const s=this.claimAutoImportedName(t,r);return this.importProcessor?`${s}.call(void 0, `:`${s}(`}claimAutoImportedName(t,r){if(this.importProcessor){const s=this.jsxImportSource+r;return this.cjsAutomaticModuleNameResolutions[s]||(this.cjsAutomaticModuleNameResolutions[s]=this.importProcessor.getFreeIdentifierForPath(s)),`${this.cjsAutomaticModuleNameResolutions[s]}.${t}`}else return this.esmAutomaticImportNameResolutions[t]||(this.esmAutomaticImportNameResolutions[t]=this.nameManager.claimFreeName(`_${t}`)),this.esmAutomaticImportNameResolutions[t]}processTagIntro(){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType||!this.tokens.matches2AtIndex(t-1,n.jsxName,n.jsxName)&&!this.tokens.matches2AtIndex(t-1,n.greaterThan,n.jsxName)&&!this.tokens.matches1AtIndex(t,n.braceL)&&!this.tokens.matches1AtIndex(t,n.jsxTagEnd)&&!this.tokens.matches2AtIndex(t,n.slash,n.jsxTagEnd);)t++;if(t===this.tokens.currentIndex()+1){const r=this.tokens.identifierName();Fa(r)&&this.tokens.replaceToken(`'${r}'`)}for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(t){const r=this.options.production?"":`__self: this, __source: ${this.getDevSource(t)}`;if(!this.tokens.matches1(n.jsxName)&&!this.tokens.matches1(n.braceL)){r?this.tokens.appendCode(`, {${r}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),r?this.tokens.appendCode(` ${r}}`):this.tokens.appendCode("}")}processProps(t){let r=null;for(;;){if(this.tokens.matches2(n.jsxName,n.eq)){const s=this.tokens.identifierName();if(t&&s==="key"){r!==null&&this.tokens.appendCode(r.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const i=this.tokens.snapshot();this.processPropValue(),r=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(i);continue}else this.processPropName(s),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(n.jsxName)){const s=this.tokens.identifierName();this.processPropName(s),this.tokens.appendCode(": true")}else if(this.tokens.matches1(n.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return r}processPropName(t){t.includes("-")?this.tokens.replaceToken(`'${t}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(n.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(n.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const t=this.tokens.currentToken(),r=this.tokens.code.slice(t.start+1,t.end-1),s=Vi(r),i=Vl(r);this.tokens.replaceToken(i+s)}processAutomaticChildrenAndEndProps(t){t===ft.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(t===ft.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(t){let r=t;for(;;){if(this.tokens.matches2(n.jsxTagStart,n.slash))return;let s=!1;if(this.tokens.matches1(n.braceL))this.tokens.matches2(n.braceL,n.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(r?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),s=!0);else if(this.tokens.matches1(n.jsxTagStart))this.tokens.appendCode(r?", ":""),this.processJSXTag(),s=!0;else if(this.tokens.matches1(n.jsxText)||this.tokens.matches1(n.jsxEmptyText))s=this.processChildTextElement(r);else throw new Error("Unexpected token when processing JSX children.");s&&(r=!0)}}processChildTextElement(t){const r=this.tokens.currentToken(),s=this.tokens.code.slice(r.start,r.end),i=Vi(s),o=Bl(s);return o==='""'?(this.tokens.replaceToken(i),!1):(this.tokens.replaceToken(`${t?", ":""}${o}${i}`),!0)}getDevSource(t){return`{fileName: ${this.getFilenameVarName()}, ${t}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function Fa(e){const t=e.charCodeAt(0);return t>=g.lowercaseA&&t<=g.lowercaseZ}function Bl(e){let t="",r="",s=!1,i=!1;for(let o=0;o<e.length;o++){const c=e[o];if(c===" "||c===" "||c==="\r")s||(r+=c);else if(c===`
58
58
  `)r="",s=!0;else{if(i&&s&&(t+=" "),t+=r,r="",c==="&"){const{entity:u,newI:f}=Ba(e,o+1);o=f-1,t+=u}else t+=c;i=!0,s=!1}}return s||(t+=r),JSON.stringify(t)}function Vi(e){let t=0,r=0;for(const s of e)s===`
59
59
  `?(t++,r=0):s===" "&&r++;return`
60
60
  `.repeat(t)+" ".repeat(r)}function Vl(e){let t="";for(let r=0;r<e.length;r++){const s=e[r];if(s===`
61
61
  `)if(/\s/.test(e[r+1]))for(t+=" ";r<e.length&&/\s/.test(e[r+1]);)r++;else t+=`
62
- `;else if(s==="&"){const{entity:i,newI:o}=Ba(e,r+1);t+=i,r=o-1}else t+=s}return JSON.stringify(t)}function Ba(e,t){let r="",s=0,i,o=t;if(e[o]==="#"){let c=10;o++;let u;if(e[o]==="x")for(c=16,o++,u=o;o<e.length&&ql(e.charCodeAt(o));)o++;else for(u=o;o<e.length&&$l(e.charCodeAt(o));)o++;if(e[o]===";"){const f=e.slice(u,o);f&&(o++,i=String.fromCodePoint(parseInt(f,c)))}}else for(;o<e.length&&s++<10;){const c=e[o];if(o++,c===";"){i=Fl.get(r);break}r+=c}return i?{entity:i,newI:o}:{entity:"&",newI:t}}function $l(e){return e>=g.digit0&&e<=g.digit9}function ql(e){return e>=g.digit0&&e<=g.digit9||e>=g.lowercaseA&&e<=g.lowercaseF||e>=g.uppercaseA&&e<=g.uppercaseF}function Va(e,t){const r=ja(t),s=new Set;for(let i=0;i<e.tokens.length;i++){const o=e.tokens[i];if(o.type===n.name&&!o.isType&&(o.identifierRole===G.Access||o.identifierRole===G.ObjectShorthand||o.identifierRole===G.ExportAccess)&&!o.shadowsGlobal&&s.add(e.identifierNameForToken(o)),o.type===n.jsxTagStart&&s.add(r.base),o.type===n.jsxTagStart&&i+1<e.tokens.length&&e.tokens[i+1].type===n.jsxTagEnd&&(s.add(r.base),s.add(r.fragmentBase)),o.type===n.jsxName&&o.identifierRole===G.Access){const c=e.identifierNameForToken(o);(!Fa(c)||e.tokens[i+1].type===n.dot)&&s.add(e.identifierNameForToken(o))}}return s}class Qt{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,r,s,i,o,c,u){this.nameManager=t,this.tokens=r,this.enableLegacyTypeScriptModuleInterop=s,this.options=i,this.isTypeScriptTransformEnabled=o,this.keepUnusedImports=c,this.helperManager=u,Qt.prototype.__init.call(this),Qt.prototype.__init2.call(this),Qt.prototype.__init3.call(this),Qt.prototype.__init4.call(this),Qt.prototype.__init5.call(this)}preprocessTokens(){for(let t=0;t<this.tokens.tokens.length;t++)this.tokens.matches1AtIndex(t,n._import)&&!this.tokens.matches3AtIndex(t,n._import,n.name,n.eq)&&this.preprocessImportAtIndex(t),this.tokens.matches1AtIndex(t,n._export)&&!this.tokens.matches2AtIndex(t,n._export,n.eq)&&this.preprocessExportAtIndex(t);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=Va(this.tokens,this.options);for(const[t,r]of this.importInfoByPath.entries()){if(r.hasBareImport||r.hasStarExport||r.exportStarNames.length>0||r.namedExports.length>0)continue;[...r.defaultNames,...r.wildcardNames,...r.namedImports.map(({localName:i})=>i)].every(i=>this.shouldAutomaticallyElideImportedName(i))&&this.importsToReplace.set(t,"")}}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(const[t,r]of this.importInfoByPath.entries()){const{defaultNames:s,wildcardNames:i,namedImports:o,namedExports:c,exportStarNames:u,hasStarExport:f}=r;if(s.length===0&&i.length===0&&o.length===0&&c.length===0&&u.length===0&&!f){this.importsToReplace.set(t,`require('${t}');`);continue}const h=this.getFreeIdentifierForPath(t);let m;this.enableLegacyTypeScriptModuleInterop?m=h:m=i.length>0?i[0]:this.getFreeIdentifierForPath(t);let x=`var ${h} = require('${t}');`;if(i.length>0)for(const _ of i){const y=this.enableLegacyTypeScriptModuleInterop?h:`${this.helperManager.getHelperName("interopRequireWildcard")}(${h})`;x+=` var ${_} = ${y};`}else u.length>0&&m!==h?x+=` var ${m} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${h});`:s.length>0&&m!==h&&(x+=` var ${m} = ${this.helperManager.getHelperName("interopRequireDefault")}(${h});`);for(const{importedName:_,localName:y}of c)x+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${h}, '${y}', '${_}');`;for(const _ of u)x+=` exports.${_} = ${m};`;f&&(x+=` ${this.helperManager.getHelperName("createStarExport")}(${h});`),this.importsToReplace.set(t,x);for(const _ of s)this.identifierReplacements.set(_,`${m}.default`);for(const{importedName:_,localName:y}of o)this.identifierReplacements.set(y,`${h}.${_}`)}}getFreeIdentifierForPath(t){const r=t.split("/"),i=r[r.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${i}`)}preprocessImportAtIndex(t){const r=[],s=[],i=[];if(t++,(this.tokens.matchesContextualAtIndex(t,d._type)||this.tokens.matches1AtIndex(t,n._typeof))&&!this.tokens.matches1AtIndex(t+1,n.comma)&&!this.tokens.matchesContextualAtIndex(t+1,d._from)||this.tokens.matches1AtIndex(t,n.parenL))return;if(this.tokens.matches1AtIndex(t,n.name)&&(r.push(this.tokens.identifierNameAtIndex(t)),t++,this.tokens.matches1AtIndex(t,n.comma)&&t++),this.tokens.matches1AtIndex(t,n.star)&&(t+=2,s.push(this.tokens.identifierNameAtIndex(t)),t++),this.tokens.matches1AtIndex(t,n.braceL)){const u=this.getNamedImports(t+1);t=u.newIndex;for(const f of u.namedImports)f.importedName==="default"?r.push(f.localName):i.push(f)}if(this.tokens.matchesContextualAtIndex(t,d._from)&&t++,!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of import statement.");const o=this.tokens.stringValueAtIndex(t),c=this.getImportInfo(o);c.defaultNames.push(...r),c.wildcardNames.push(...s),c.namedImports.push(...i),r.length===0&&s.length===0&&i.length===0&&(c.hasBareImport=!0)}preprocessExportAtIndex(t){if(this.tokens.matches2AtIndex(t,n._export,n._var)||this.tokens.matches2AtIndex(t,n._export,n._let)||this.tokens.matches2AtIndex(t,n._export,n._const))this.preprocessVarExportAtIndex(t);else if(this.tokens.matches2AtIndex(t,n._export,n._function)||this.tokens.matches2AtIndex(t,n._export,n._class)){const r=this.tokens.identifierNameAtIndex(t+2);this.addExportBinding(r,r)}else if(this.tokens.matches3AtIndex(t,n._export,n.name,n._function)){const r=this.tokens.identifierNameAtIndex(t+3);this.addExportBinding(r,r)}else this.tokens.matches2AtIndex(t,n._export,n.braceL)?this.preprocessNamedExportAtIndex(t):this.tokens.matches2AtIndex(t,n._export,n.star)&&this.preprocessExportStarAtIndex(t)}preprocessVarExportAtIndex(t){let r=0;for(let s=t+2;;s++)if(this.tokens.matches1AtIndex(s,n.braceL)||this.tokens.matches1AtIndex(s,n.dollarBraceL)||this.tokens.matches1AtIndex(s,n.bracketL))r++;else if(this.tokens.matches1AtIndex(s,n.braceR)||this.tokens.matches1AtIndex(s,n.bracketR))r--;else{if(r===0&&!this.tokens.matches1AtIndex(s,n.name))break;if(this.tokens.matches1AtIndex(1,n.eq)){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected = token with an end index.");s=i-1}else{const i=this.tokens.tokens[s];if(Ia(i)){const o=this.tokens.identifierNameAtIndex(s);this.identifierReplacements.set(o,`exports.${o}`)}}}}preprocessNamedExportAtIndex(t){t+=2;const{newIndex:r,namedImports:s}=this.getNamedImports(t);if(t=r,this.tokens.matchesContextualAtIndex(t,d._from))t++;else{for(const{importedName:c,localName:u}of s)this.addExportBinding(c,u);return}if(!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(t);this.getImportInfo(i).namedExports.push(...s)}preprocessExportStarAtIndex(t){let r=null;if(this.tokens.matches3AtIndex(t,n._export,n.star,n._as)?(t+=3,r=this.tokens.identifierNameAtIndex(t),t+=2):t+=3,!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of star export statement.");const s=this.tokens.stringValueAtIndex(t),i=this.getImportInfo(s);r!==null?i.exportStarNames.push(r):i.hasStarExport=!0}getNamedImports(t){const r=[];for(;;){if(this.tokens.matches1AtIndex(t,n.braceR)){t++;break}const s=Yr(this.tokens,t);if(t=s.endIndex,s.isType||r.push({importedName:s.leftName,localName:s.rightName}),this.tokens.matches2AtIndex(t,n.comma,n.braceR)){t+=2;break}else if(this.tokens.matches1AtIndex(t,n.braceR)){t++;break}else if(this.tokens.matches1AtIndex(t,n.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}`)}return{newIndex:t,namedImports:r}}getImportInfo(t){const r=this.importInfoByPath.get(t);if(r)return r;const s={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(t,s),s}addExportBinding(t,r){this.exportBindingsByLocalName.has(t)||this.exportBindingsByLocalName.set(t,[]),this.exportBindingsByLocalName.get(t).push(r)}claimImportCode(t){const r=this.importsToReplace.get(t);return this.importsToReplace.set(t,""),r||""}getIdentifierReplacement(t){return this.identifierReplacements.get(t)||null}resolveExportBinding(t){const r=this.exportBindingsByLocalName.get(t);return!r||r.length===0?null:r.map(s=>`exports.${s}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Ul=44,zl=59,$i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$a=new Uint8Array(64),Hl=new Uint8Array(128);for(let e=0;e<$i.length;e++){const t=$i.charCodeAt(e);$a[e]=t,Hl[t]=e}function jr(e,t,r){let s=t-r;s=s<0?-s<<1|1:s<<1;do{let i=s&31;s>>>=5,s>0&&(i|=32),e.write($a[i])}while(s>0);return t}var qi=1024*16,Ui=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},Wl=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(qi)}write(e){const{buffer:t}=this;t[this.pos++]=e,this.pos===qi&&(this.out+=Ui.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:r}=this;return r>0?t+Ui.decode(e.subarray(0,r)):t}};function Gl(e){const t=new Wl;let r=0,s=0,i=0,o=0;for(let c=0;c<e.length;c++){const u=e[c];if(c>0&&t.write(zl),u.length===0)continue;let f=0;for(let h=0;h<u.length;h++){const m=u[h];h>0&&t.write(Ul),f=jr(t,m[0],f),m.length!==1&&(r=jr(t,m[1],r),s=jr(t,m[2],s),i=jr(t,m[3],i),m.length!==4&&(o=jr(t,m[4],o)))}}return t.flush()}var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xl={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(Zt,function(){const r=/^[\w+.-]+:\/\//,s=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function o(P){return r.test(P)}function c(P){return P.startsWith("//")}function u(P){return P.startsWith("/")}function f(P){return P.startsWith("file:")}function h(P){return/^[.?#]/.test(P)}function m(P){const j=s.exec(P);return _(j[1],j[2]||"",j[3],j[4]||"",j[5]||"/",j[6]||"",j[7]||"")}function x(P){const j=i.exec(P),D=j[2];return _("file:","",j[1]||"","",u(D)?D:"/"+D,j[3]||"",j[4]||"")}function _(P,j,D,W,X,q,T){return{scheme:P,user:j,host:D,port:W,path:X,query:q,hash:T,type:7}}function y(P){if(c(P)){const D=m("http:"+P);return D.scheme="",D.type=6,D}if(u(P)){const D=m("http://foo.com"+P);return D.scheme="",D.host="",D.type=5,D}if(f(P))return x(P);if(o(P))return m(P);const j=m("http://foo.com/"+P);return j.scheme="",j.host="",j.type=P?P.startsWith("?")?3:P.startsWith("#")?2:4:1,j}function L(P){if(P.endsWith("/.."))return P;const j=P.lastIndexOf("/");return P.slice(0,j+1)}function O(P,j){F(j,j.type),P.path==="/"?P.path=j.path:P.path=L(j.path)+P.path}function F(P,j){const D=j<=4,W=P.path.split("/");let X=1,q=0,T=!1;for(let z=1;z<W.length;z++){const ye=W[z];if(!ye){T=!0;continue}if(T=!1,ye!=="."){if(ye===".."){q?(T=!0,q--,X--):D&&(W[X++]=ye);continue}W[X++]=ye,q++}}let B="";for(let z=1;z<X;z++)B+="/"+W[z];(!B||T&&!B.endsWith("/.."))&&(B+="/"),P.path=B}function K(P,j){if(!P&&!j)return"";const D=y(P);let W=D.type;if(j&&W!==7){const q=y(j),T=q.type;switch(W){case 1:D.hash=q.hash;case 2:D.query=q.query;case 3:case 4:O(D,q);case 5:D.user=q.user,D.host=q.host,D.port=q.port;case 6:D.scheme=q.scheme}T>W&&(W=T)}F(D,W);const X=D.query+D.hash;switch(W){case 2:case 3:return X;case 4:{const q=D.path.slice(1);return q?h(j||P)&&!h(q)?"./"+q+X:q+X:X||"."}case 5:return D.path+X;default:return D.scheme+"//"+D.user+D.host+D.port+D.path+X}}return K})})(Xl);var xs=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function Yl(e,t){return e._indexes[t]}function Kl(e,t){const r=Yl(e,t);if(r!==void 0)return r;const{array:s,_indexes:i}=e,o=s.push(t);return i[t]=o-1}var Ql=0,Jl=1,Zl=2,eu=3,tu=4,qa=-1,ru=class{constructor({file:e,sourceRoot:t}={}){this._names=new xs,this._sources=new xs,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new xs}};var ks=(e,t,r,s,i,o,c,u)=>iu(!0,e,t,r,s,i,o);function nu(e){const{_mappings:t,_sources:r,_sourcesContent:s,_names:i,_ignoreList:o}=e;return cu(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:s,mappings:t,ignoreList:o.array}}function su(e){const t=nu(e);return Object.assign({},t,{mappings:Gl(t.mappings)})}function iu(e,t,r,s,i,o,c,u,f){const{_mappings:h,_sources:m,_sourcesContent:x,_names:_}=t,y=au(h,r),L=ou(y,s);if(!i)return lu(y,L)?void 0:zi(y,L,[s]);const O=Kl(m,i),F=qa;if(O===x.length&&(x[O]=null),!uu(y,L,O,o,c,F))return zi(y,L,[s,O,o,c])}function au(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}function ou(e,t){let r=e.length;for(let s=r-1;s>=0;r=s--){const i=e[s];if(t>=i[Ql])break}return r}function zi(e,t,r){for(let s=e.length;s>t;s--)e[s]=e[s-1];e[t]=r}function cu(e){const{length:t}=e;let r=t;for(let s=r-1;s>=0&&!(e[s].length>0);r=s,s--);r<t&&(e.length=r)}function lu(e,t){return t===0?!0:e[t-1].length===1}function uu(e,t,r,s,i,o){if(t===0)return!1;const c=e[t-1];return c.length===1?!1:r===c[Jl]&&s===c[Zl]&&i===c[eu]&&o===(c.length===5?c[tu]:qa)}function pu({code:e,mappings:t},r,s,i,o){const c=hu(i,o),u=new ru({file:s.compiledFilename});let f=0,h=t[0];for(;h===void 0&&f<t.length-1;)f++,h=t[f];let m=0,x=0;h!==x&&ks(u,m,0,r,m,0);for(let O=0;O<e.length;O++){if(O===h){const F=h-x,K=c[f];for(ks(u,m,F,r,m,K);(h===O||h===void 0)&&f<t.length-1;)f++,h=t[f]}e.charCodeAt(O)===g.lineFeed&&(m++,x=O+1,h!==x&&ks(u,m,0,r,m,0))}const{sourceRoot:_,sourcesContent:y,...L}=su(u);return L}function hu(e,t){const r=new Array(t.length);let s=0,i=t[s].start,o=0;for(let c=0;c<e.length;c++)c===i&&(r[s]=i-o,s++,i=t[s].start),e.charCodeAt(c)===g.lineFeed&&(o=c+1);return r}const fu={require:`
62
+ `;else if(s==="&"){const{entity:i,newI:o}=Ba(e,r+1);t+=i,r=o-1}else t+=s}return JSON.stringify(t)}function Ba(e,t){let r="",s=0,i,o=t;if(e[o]==="#"){let c=10;o++;let u;if(e[o]==="x")for(c=16,o++,u=o;o<e.length&&ql(e.charCodeAt(o));)o++;else for(u=o;o<e.length&&$l(e.charCodeAt(o));)o++;if(e[o]===";"){const f=e.slice(u,o);f&&(o++,i=String.fromCodePoint(parseInt(f,c)))}}else for(;o<e.length&&s++<10;){const c=e[o];if(o++,c===";"){i=Fl.get(r);break}r+=c}return i?{entity:i,newI:o}:{entity:"&",newI:t}}function $l(e){return e>=g.digit0&&e<=g.digit9}function ql(e){return e>=g.digit0&&e<=g.digit9||e>=g.lowercaseA&&e<=g.lowercaseF||e>=g.uppercaseA&&e<=g.uppercaseF}function Va(e,t){const r=ja(t),s=new Set;for(let i=0;i<e.tokens.length;i++){const o=e.tokens[i];if(o.type===n.name&&!o.isType&&(o.identifierRole===G.Access||o.identifierRole===G.ObjectShorthand||o.identifierRole===G.ExportAccess)&&!o.shadowsGlobal&&s.add(e.identifierNameForToken(o)),o.type===n.jsxTagStart&&s.add(r.base),o.type===n.jsxTagStart&&i+1<e.tokens.length&&e.tokens[i+1].type===n.jsxTagEnd&&(s.add(r.base),s.add(r.fragmentBase)),o.type===n.jsxName&&o.identifierRole===G.Access){const c=e.identifierNameForToken(o);(!Fa(c)||e.tokens[i+1].type===n.dot)&&s.add(e.identifierNameForToken(o))}}return s}class Qt{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,r,s,i,o,c,u){this.nameManager=t,this.tokens=r,this.enableLegacyTypeScriptModuleInterop=s,this.options=i,this.isTypeScriptTransformEnabled=o,this.keepUnusedImports=c,this.helperManager=u,Qt.prototype.__init.call(this),Qt.prototype.__init2.call(this),Qt.prototype.__init3.call(this),Qt.prototype.__init4.call(this),Qt.prototype.__init5.call(this)}preprocessTokens(){for(let t=0;t<this.tokens.tokens.length;t++)this.tokens.matches1AtIndex(t,n._import)&&!this.tokens.matches3AtIndex(t,n._import,n.name,n.eq)&&this.preprocessImportAtIndex(t),this.tokens.matches1AtIndex(t,n._export)&&!this.tokens.matches2AtIndex(t,n._export,n.eq)&&this.preprocessExportAtIndex(t);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=Va(this.tokens,this.options);for(const[t,r]of this.importInfoByPath.entries()){if(r.hasBareImport||r.hasStarExport||r.exportStarNames.length>0||r.namedExports.length>0)continue;[...r.defaultNames,...r.wildcardNames,...r.namedImports.map(({localName:i})=>i)].every(i=>this.shouldAutomaticallyElideImportedName(i))&&this.importsToReplace.set(t,"")}}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(const[t,r]of this.importInfoByPath.entries()){const{defaultNames:s,wildcardNames:i,namedImports:o,namedExports:c,exportStarNames:u,hasStarExport:f}=r;if(s.length===0&&i.length===0&&o.length===0&&c.length===0&&u.length===0&&!f){this.importsToReplace.set(t,`require('${t}');`);continue}const p=this.getFreeIdentifierForPath(t);let m;this.enableLegacyTypeScriptModuleInterop?m=p:m=i.length>0?i[0]:this.getFreeIdentifierForPath(t);let x=`var ${p} = require('${t}');`;if(i.length>0)for(const _ of i){const y=this.enableLegacyTypeScriptModuleInterop?p:`${this.helperManager.getHelperName("interopRequireWildcard")}(${p})`;x+=` var ${_} = ${y};`}else u.length>0&&m!==p?x+=` var ${m} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${p});`:s.length>0&&m!==p&&(x+=` var ${m} = ${this.helperManager.getHelperName("interopRequireDefault")}(${p});`);for(const{importedName:_,localName:y}of c)x+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${p}, '${y}', '${_}');`;for(const _ of u)x+=` exports.${_} = ${m};`;f&&(x+=` ${this.helperManager.getHelperName("createStarExport")}(${p});`),this.importsToReplace.set(t,x);for(const _ of s)this.identifierReplacements.set(_,`${m}.default`);for(const{importedName:_,localName:y}of o)this.identifierReplacements.set(y,`${p}.${_}`)}}getFreeIdentifierForPath(t){const r=t.split("/"),i=r[r.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${i}`)}preprocessImportAtIndex(t){const r=[],s=[],i=[];if(t++,(this.tokens.matchesContextualAtIndex(t,d._type)||this.tokens.matches1AtIndex(t,n._typeof))&&!this.tokens.matches1AtIndex(t+1,n.comma)&&!this.tokens.matchesContextualAtIndex(t+1,d._from)||this.tokens.matches1AtIndex(t,n.parenL))return;if(this.tokens.matches1AtIndex(t,n.name)&&(r.push(this.tokens.identifierNameAtIndex(t)),t++,this.tokens.matches1AtIndex(t,n.comma)&&t++),this.tokens.matches1AtIndex(t,n.star)&&(t+=2,s.push(this.tokens.identifierNameAtIndex(t)),t++),this.tokens.matches1AtIndex(t,n.braceL)){const u=this.getNamedImports(t+1);t=u.newIndex;for(const f of u.namedImports)f.importedName==="default"?r.push(f.localName):i.push(f)}if(this.tokens.matchesContextualAtIndex(t,d._from)&&t++,!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of import statement.");const o=this.tokens.stringValueAtIndex(t),c=this.getImportInfo(o);c.defaultNames.push(...r),c.wildcardNames.push(...s),c.namedImports.push(...i),r.length===0&&s.length===0&&i.length===0&&(c.hasBareImport=!0)}preprocessExportAtIndex(t){if(this.tokens.matches2AtIndex(t,n._export,n._var)||this.tokens.matches2AtIndex(t,n._export,n._let)||this.tokens.matches2AtIndex(t,n._export,n._const))this.preprocessVarExportAtIndex(t);else if(this.tokens.matches2AtIndex(t,n._export,n._function)||this.tokens.matches2AtIndex(t,n._export,n._class)){const r=this.tokens.identifierNameAtIndex(t+2);this.addExportBinding(r,r)}else if(this.tokens.matches3AtIndex(t,n._export,n.name,n._function)){const r=this.tokens.identifierNameAtIndex(t+3);this.addExportBinding(r,r)}else this.tokens.matches2AtIndex(t,n._export,n.braceL)?this.preprocessNamedExportAtIndex(t):this.tokens.matches2AtIndex(t,n._export,n.star)&&this.preprocessExportStarAtIndex(t)}preprocessVarExportAtIndex(t){let r=0;for(let s=t+2;;s++)if(this.tokens.matches1AtIndex(s,n.braceL)||this.tokens.matches1AtIndex(s,n.dollarBraceL)||this.tokens.matches1AtIndex(s,n.bracketL))r++;else if(this.tokens.matches1AtIndex(s,n.braceR)||this.tokens.matches1AtIndex(s,n.bracketR))r--;else{if(r===0&&!this.tokens.matches1AtIndex(s,n.name))break;if(this.tokens.matches1AtIndex(1,n.eq)){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected = token with an end index.");s=i-1}else{const i=this.tokens.tokens[s];if(Ia(i)){const o=this.tokens.identifierNameAtIndex(s);this.identifierReplacements.set(o,`exports.${o}`)}}}}preprocessNamedExportAtIndex(t){t+=2;const{newIndex:r,namedImports:s}=this.getNamedImports(t);if(t=r,this.tokens.matchesContextualAtIndex(t,d._from))t++;else{for(const{importedName:c,localName:u}of s)this.addExportBinding(c,u);return}if(!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(t);this.getImportInfo(i).namedExports.push(...s)}preprocessExportStarAtIndex(t){let r=null;if(this.tokens.matches3AtIndex(t,n._export,n.star,n._as)?(t+=3,r=this.tokens.identifierNameAtIndex(t),t+=2):t+=3,!this.tokens.matches1AtIndex(t,n.string))throw new Error("Expected string token at the end of star export statement.");const s=this.tokens.stringValueAtIndex(t),i=this.getImportInfo(s);r!==null?i.exportStarNames.push(r):i.hasStarExport=!0}getNamedImports(t){const r=[];for(;;){if(this.tokens.matches1AtIndex(t,n.braceR)){t++;break}const s=Yr(this.tokens,t);if(t=s.endIndex,s.isType||r.push({importedName:s.leftName,localName:s.rightName}),this.tokens.matches2AtIndex(t,n.comma,n.braceR)){t+=2;break}else if(this.tokens.matches1AtIndex(t,n.braceR)){t++;break}else if(this.tokens.matches1AtIndex(t,n.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}`)}return{newIndex:t,namedImports:r}}getImportInfo(t){const r=this.importInfoByPath.get(t);if(r)return r;const s={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(t,s),s}addExportBinding(t,r){this.exportBindingsByLocalName.has(t)||this.exportBindingsByLocalName.set(t,[]),this.exportBindingsByLocalName.get(t).push(r)}claimImportCode(t){const r=this.importsToReplace.get(t);return this.importsToReplace.set(t,""),r||""}getIdentifierReplacement(t){return this.identifierReplacements.get(t)||null}resolveExportBinding(t){const r=this.exportBindingsByLocalName.get(t);return!r||r.length===0?null:r.map(s=>`exports.${s}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Ul=44,zl=59,$i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$a=new Uint8Array(64),Hl=new Uint8Array(128);for(let e=0;e<$i.length;e++){const t=$i.charCodeAt(e);$a[e]=t,Hl[t]=e}function jr(e,t,r){let s=t-r;s=s<0?-s<<1|1:s<<1;do{let i=s&31;s>>>=5,s>0&&(i|=32),e.write($a[i])}while(s>0);return t}var qi=1024*16,Ui=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},Wl=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(qi)}write(e){const{buffer:t}=this;t[this.pos++]=e,this.pos===qi&&(this.out+=Ui.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:r}=this;return r>0?t+Ui.decode(e.subarray(0,r)):t}};function Gl(e){const t=new Wl;let r=0,s=0,i=0,o=0;for(let c=0;c<e.length;c++){const u=e[c];if(c>0&&t.write(zl),u.length===0)continue;let f=0;for(let p=0;p<u.length;p++){const m=u[p];p>0&&t.write(Ul),f=jr(t,m[0],f),m.length!==1&&(r=jr(t,m[1],r),s=jr(t,m[2],s),i=jr(t,m[3],i),m.length!==4&&(o=jr(t,m[4],o)))}}return t.flush()}var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xl={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(Zt,function(){const r=/^[\w+.-]+:\/\//,s=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function o(P){return r.test(P)}function c(P){return P.startsWith("//")}function u(P){return P.startsWith("/")}function f(P){return P.startsWith("file:")}function p(P){return/^[.?#]/.test(P)}function m(P){const j=s.exec(P);return _(j[1],j[2]||"",j[3],j[4]||"",j[5]||"/",j[6]||"",j[7]||"")}function x(P){const j=i.exec(P),D=j[2];return _("file:","",j[1]||"","",u(D)?D:"/"+D,j[3]||"",j[4]||"")}function _(P,j,D,W,X,q,T){return{scheme:P,user:j,host:D,port:W,path:X,query:q,hash:T,type:7}}function y(P){if(c(P)){const D=m("http:"+P);return D.scheme="",D.type=6,D}if(u(P)){const D=m("http://foo.com"+P);return D.scheme="",D.host="",D.type=5,D}if(f(P))return x(P);if(o(P))return m(P);const j=m("http://foo.com/"+P);return j.scheme="",j.host="",j.type=P?P.startsWith("?")?3:P.startsWith("#")?2:4:1,j}function L(P){if(P.endsWith("/.."))return P;const j=P.lastIndexOf("/");return P.slice(0,j+1)}function O(P,j){F(j,j.type),P.path==="/"?P.path=j.path:P.path=L(j.path)+P.path}function F(P,j){const D=j<=4,W=P.path.split("/");let X=1,q=0,T=!1;for(let z=1;z<W.length;z++){const ye=W[z];if(!ye){T=!0;continue}if(T=!1,ye!=="."){if(ye===".."){q?(T=!0,q--,X--):D&&(W[X++]=ye);continue}W[X++]=ye,q++}}let B="";for(let z=1;z<X;z++)B+="/"+W[z];(!B||T&&!B.endsWith("/.."))&&(B+="/"),P.path=B}function K(P,j){if(!P&&!j)return"";const D=y(P);let W=D.type;if(j&&W!==7){const q=y(j),T=q.type;switch(W){case 1:D.hash=q.hash;case 2:D.query=q.query;case 3:case 4:O(D,q);case 5:D.user=q.user,D.host=q.host,D.port=q.port;case 6:D.scheme=q.scheme}T>W&&(W=T)}F(D,W);const X=D.query+D.hash;switch(W){case 2:case 3:return X;case 4:{const q=D.path.slice(1);return q?p(j||P)&&!p(q)?"./"+q+X:q+X:X||"."}case 5:return D.path+X;default:return D.scheme+"//"+D.user+D.host+D.port+D.path+X}}return K})})(Xl);var xs=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function Yl(e,t){return e._indexes[t]}function Kl(e,t){const r=Yl(e,t);if(r!==void 0)return r;const{array:s,_indexes:i}=e,o=s.push(t);return i[t]=o-1}var Ql=0,Jl=1,Zl=2,eu=3,tu=4,qa=-1,ru=class{constructor({file:e,sourceRoot:t}={}){this._names=new xs,this._sources=new xs,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new xs}};var ks=(e,t,r,s,i,o,c,u)=>iu(!0,e,t,r,s,i,o);function nu(e){const{_mappings:t,_sources:r,_sourcesContent:s,_names:i,_ignoreList:o}=e;return cu(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:s,mappings:t,ignoreList:o.array}}function su(e){const t=nu(e);return Object.assign({},t,{mappings:Gl(t.mappings)})}function iu(e,t,r,s,i,o,c,u,f){const{_mappings:p,_sources:m,_sourcesContent:x,_names:_}=t,y=au(p,r),L=ou(y,s);if(!i)return lu(y,L)?void 0:zi(y,L,[s]);const O=Kl(m,i),F=qa;if(O===x.length&&(x[O]=null),!uu(y,L,O,o,c,F))return zi(y,L,[s,O,o,c])}function au(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}function ou(e,t){let r=e.length;for(let s=r-1;s>=0;r=s--){const i=e[s];if(t>=i[Ql])break}return r}function zi(e,t,r){for(let s=e.length;s>t;s--)e[s]=e[s-1];e[t]=r}function cu(e){const{length:t}=e;let r=t;for(let s=r-1;s>=0&&!(e[s].length>0);r=s,s--);r<t&&(e.length=r)}function lu(e,t){return t===0?!0:e[t-1].length===1}function uu(e,t,r,s,i,o){if(t===0)return!1;const c=e[t-1];return c.length===1?!1:r===c[Jl]&&s===c[Zl]&&i===c[eu]&&o===(c.length===5?c[tu]:qa)}function hu({code:e,mappings:t},r,s,i,o){const c=pu(i,o),u=new ru({file:s.compiledFilename});let f=0,p=t[0];for(;p===void 0&&f<t.length-1;)f++,p=t[f];let m=0,x=0;p!==x&&ks(u,m,0,r,m,0);for(let O=0;O<e.length;O++){if(O===p){const F=p-x,K=c[f];for(ks(u,m,F,r,m,K);(p===O||p===void 0)&&f<t.length-1;)f++,p=t[f]}e.charCodeAt(O)===g.lineFeed&&(m++,x=O+1,p!==x&&ks(u,m,0,r,m,0))}const{sourceRoot:_,sourcesContent:y,...L}=su(u);return L}function pu(e,t){const r=new Array(t.length);let s=0,i=t[s].start,o=0;for(let c=0;c<e.length;c++)c===i&&(r[s]=i-o,s++,i=t[s].start),e.charCodeAt(c)===g.lineFeed&&(o=c+1);return r}const fu={require:`
63
63
  import {createRequire as CREATE_REQUIRE_NAME} from "module";
64
64
  const require = CREATE_REQUIRE_NAME(import.meta.url);
65
65
  `,interopRequireWildcard:`
@@ -168,13 +168,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
168
168
  const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
169
169
  return result == null ? true : result;
170
170
  }
171
- `};class wn{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,wn.prototype.__init.call(this),wn.prototype.__init2.call(this)}getHelperName(t){let r=this.helperNames[t];return r||(r=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=r,r)}emitHelpers(){let t="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[r,s]of Object.entries(fu)){const i=this.helperNames[r];let o=s;r==="optionalChainDelete"?o=o.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):r==="asyncOptionalChainDelete"?o=o.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):r==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),o=o.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),i&&(t+=" ",t+=o.replace(r,i).replace(/\s+/g," ").trim())}return t}}function Hi(e,t,r){du(e,r)&&mu(e,t,r)}function du(e,t){for(const r of e.tokens)if(r.type===n.name&&!r.isType&&gl(r)&&t.has(e.identifierNameForToken(r)))return!0;return!1}function mu(e,t,r){const s=[];let i=t.length-1;for(let o=e.tokens.length-1;;o--){for(;s.length>0&&s[s.length-1].startTokenIndex===o+1;)s.pop();for(;i>=0&&t[i].endTokenIndex===o+1;)s.push(t[i]),i--;if(o<0)break;const c=e.tokens[o],u=e.identifierNameForToken(c);if(s.length>1&&!c.isType&&c.type===n.name&&r.has(u)){if(xl(c))Wi(s[s.length-1],e,u);else if(kl(c)){let f=s.length-1;for(;f>0&&!s[f].isFunctionScope;)f--;if(f<0)throw new Error("Did not find parent function scope.");Wi(s[f],e,u)}}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}function Wi(e,t,r){for(let s=e.startTokenIndex;s<e.endTokenIndex;s++){const i=t.tokens[s];(i.type===n.name||i.type===n.jsxName)&&t.identifierNameForToken(i)===r&&(i.shadowsGlobal=!0)}}function gu(e,t){const r=[];for(const s of t)s.type===n.name&&r.push(e.slice(s.start,s.end));return r}class Xs{__init(){this.usedNames=new Set}constructor(t,r){Xs.prototype.__init.call(this),this.usedNames=new Set(gu(t,r))}claimFreeName(t){const r=this.findFreeName(t);return this.usedNames.add(r),r}findFreeName(t){if(!this.usedNames.has(t))return t;let r=2;for(;this.usedNames.has(t+String(r));)r++;return t+String(r)}}var be={},As={},vt={},xu=Zt&&Zt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var o in i)i.hasOwnProperty(o)&&(s[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function s(){this.constructor=t}t.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}();Object.defineProperty(vt,"__esModule",{value:!0});vt.DetailContext=vt.NoopContext=vt.VError=void 0;var Ua=function(e){xu(t,e);function t(r,s){var i=e.call(this,s)||this;return i.path=r,Object.setPrototypeOf(i,t.prototype),i}return t}(Error);vt.VError=Ua;var ku=function(){function e(){}return e.prototype.fail=function(t,r,s){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(t){},e}();vt.NoopContext=ku;var za=function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(t,r,s){return this._propNames.push(t),this._messages.push(r),this._score+=s,!1},e.prototype.unionResolver=function(){return new bu},e.prototype.resolveUnion=function(t){for(var r,s,i=t,o=null,c=0,u=i.contexts;c<u.length;c++){var f=u[c];(!o||f._score>=o._score)&&(o=f)}o&&o._score>0&&((r=this._propNames).push.apply(r,o._propNames),(s=this._messages).push.apply(s,o._messages))},e.prototype.getError=function(t){for(var r=[],s=this._propNames.length-1;s>=0;s--){var i=this._propNames[s];t+=typeof i=="number"?"["+i+"]":i?"."+i:"";var o=this._messages[s];o&&r.push(t+" "+o)}return new Ua(t,r.join("; "))},e.prototype.getErrorDetail=function(t){for(var r=[],s=this._propNames.length-1;s>=0;s--){var i=this._propNames[s];t+=typeof i=="number"?"["+i+"]":i?"."+i:"";var o=this._messages[s];o&&r.push({path:t,message:o})}for(var c=null,s=r.length-1;s>=0;s--)c&&(r[s].nested=[c]),c=r[s];return c},e}();vt.DetailContext=za;var bu=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var t=new za;return this.contexts.push(t),t},e}();(function(e){var t=Zt&&Zt.__extends||function(){var b=function(S,C){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,M){A.__proto__=M}||function(A,M){for(var Y in M)M.hasOwnProperty(Y)&&(A[Y]=M[Y])},b(S,C)};return function(S,C){b(S,C);function A(){this.constructor=S}S.prototype=C===null?Object.create(C):(A.prototype=C.prototype,new A)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var r=vt,s=function(){function b(){}return b}();e.TType=s;function i(b){return typeof b=="string"?c(b):b}function o(b,S){var C=b[S];if(!C)throw new Error("Unknown type "+S);return C}function c(b){return new u(b)}e.name=c;var u=function(b){t(S,b);function S(C){var A=b.call(this)||this;return A.name=C,A._failMsg="is not a "+C,A}return S.prototype.getChecker=function(C,A,M){var Y=this,Z=o(C,this.name),le=Z.getChecker(C,A,M);return Z instanceof ee||Z instanceof S?le:function(we,oe){return le(we,oe)?!0:oe.fail(null,Y._failMsg,0)}},S}(s);e.TName=u;function f(b){return new h(b)}e.lit=f;var h=function(b){t(S,b);function S(C){var A=b.call(this)||this;return A.value=C,A.name=JSON.stringify(C),A._failMsg="is not "+A.name,A}return S.prototype.getChecker=function(C,A){var M=this;return function(Y,Z){return Y===M.value?!0:Z.fail(null,M._failMsg,-1)}},S}(s);e.TLiteral=h;function m(b){return new x(i(b))}e.array=m;var x=function(b){t(S,b);function S(C){var A=b.call(this)||this;return A.ttype=C,A}return S.prototype.getChecker=function(C,A){var M=this.ttype.getChecker(C,A);return function(Y,Z){if(!Array.isArray(Y))return Z.fail(null,"is not an array",0);for(var le=0;le<Y.length;le++){var we=M(Y[le],Z);if(!we)return Z.fail(le,null,1)}return!0}},S}(s);e.TArray=x;function _(){for(var b=[],S=0;S<arguments.length;S++)b[S]=arguments[S];return new y(b.map(function(C){return i(C)}))}e.tuple=_;var y=function(b){t(S,b);function S(C){var A=b.call(this)||this;return A.ttypes=C,A}return S.prototype.getChecker=function(C,A){var M=this.ttypes.map(function(Z){return Z.getChecker(C,A)}),Y=function(Z,le){if(!Array.isArray(Z))return le.fail(null,"is not an array",0);for(var we=0;we<M.length;we++){var oe=M[we](Z[we],le);if(!oe)return le.fail(we,null,1)}return!0};return A?function(Z,le){return Y(Z,le)?Z.length<=M.length?!0:le.fail(M.length,"is extraneous",2):!1}:Y},S}(s);e.TTuple=y;function L(){for(var b=[],S=0;S<arguments.length;S++)b[S]=arguments[S];return new O(b.map(function(C){return i(C)}))}e.union=L;var O=function(b){t(S,b);function S(C){var A=b.call(this)||this;A.ttypes=C;var M=C.map(function(Z){return Z instanceof u||Z instanceof h?Z.name:null}).filter(function(Z){return Z}),Y=C.length-M.length;return M.length?(Y>0&&M.push(Y+" more"),A._failMsg="is none of "+M.join(", ")):A._failMsg="is none of "+Y+" types",A}return S.prototype.getChecker=function(C,A){var M=this,Y=this.ttypes.map(function(Z){return Z.getChecker(C,A)});return function(Z,le){for(var we=le.unionResolver(),oe=0;oe<Y.length;oe++){var Ne=Y[oe](Z,we.createContext());if(Ne)return!0}return le.resolveUnion(we),le.fail(null,M._failMsg,0)}},S}(s);e.TUnion=O;function F(){for(var b=[],S=0;S<arguments.length;S++)b[S]=arguments[S];return new K(b.map(function(C){return i(C)}))}e.intersection=F;var K=function(b){t(S,b);function S(C){var A=b.call(this)||this;return A.ttypes=C,A}return S.prototype.getChecker=function(C,A){var M=new Set,Y=this.ttypes.map(function(Z){return Z.getChecker(C,A,M)});return function(Z,le){var we=Y.every(function(oe){return oe(Z,le)});return we?!0:le.fail(null,null,0)}},S}(s);e.TIntersection=K;function P(b){return new j(b)}e.enumtype=P;var j=function(b){t(S,b);function S(C){var A=b.call(this)||this;return A.members=C,A.validValues=new Set,A._failMsg="is not a valid enum value",A.validValues=new Set(Object.keys(C).map(function(M){return C[M]})),A}return S.prototype.getChecker=function(C,A){var M=this;return function(Y,Z){return M.validValues.has(Y)?!0:Z.fail(null,M._failMsg,0)}},S}(s);e.TEnumType=j;function D(b,S){return new W(b,S)}e.enumlit=D;var W=function(b){t(S,b);function S(C,A){var M=b.call(this)||this;return M.enumName=C,M.prop=A,M._failMsg="is not "+C+"."+A,M}return S.prototype.getChecker=function(C,A){var M=this,Y=o(C,this.enumName);if(!(Y instanceof j))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var Z=Y.members[this.prop];if(!Y.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(le,we){return le===Z?!0:we.fail(null,M._failMsg,-1)}},S}(s);e.TEnumLiteral=W;function X(b){return Object.keys(b).map(function(S){return q(S,b[S])})}function q(b,S){return S instanceof ye?new De(b,S.ttype,!0):new De(b,i(S),!1)}function T(b,S){return new B(b,X(S))}e.iface=T;var B=function(b){t(S,b);function S(C,A){var M=b.call(this)||this;return M.bases=C,M.props=A,M.propSet=new Set(A.map(function(Y){return Y.name})),M}return S.prototype.getChecker=function(C,A,M){var Y=this,Z=this.bases.map(function(ve){return o(C,ve).getChecker(C,A)}),le=this.props.map(function(ve){return ve.ttype.getChecker(C,A)}),we=new r.NoopContext,oe=this.props.map(function(ve,qe){return!ve.isOpt&&!le[qe](void 0,we)}),Ne=function(ve,qe){if(typeof ve!="object"||ve===null)return qe.fail(null,"is not an object",0);for(var Me=0;Me<Z.length;Me++)if(!Z[Me](ve,qe))return!1;for(var Me=0;Me<le.length;Me++){var nt=Y.props[Me].name,Dt=ve[nt];if(Dt===void 0){if(oe[Me])return qe.fail(nt,"is missing",1)}else{var Ot=le[Me](Dt,qe);if(!Ot)return qe.fail(nt,null,1)}}return!0};if(!A)return Ne;var Ee=this.propSet;return M&&(this.propSet.forEach(function(ve){return M.add(ve)}),Ee=M),function(ve,qe){if(!Ne(ve,qe))return!1;for(var Me in ve)if(!Ee.has(Me))return qe.fail(Me,"is extraneous",2);return!0}},S}(s);e.TIface=B;function z(b){return new ye(i(b))}e.opt=z;var ye=function(b){t(S,b);function S(C){var A=b.call(this)||this;return A.ttype=C,A}return S.prototype.getChecker=function(C,A){var M=this.ttype.getChecker(C,A);return function(Y,Z){return Y===void 0||M(Y,Z)}},S}(s);e.TOptional=ye;var De=function(){function b(S,C,A){this.name=S,this.ttype=C,this.isOpt=A}return b}();e.TProp=De;function $e(b){for(var S=[],C=1;C<arguments.length;C++)S[C-1]=arguments[C];return new Oe(new xe(S),i(b))}e.func=$e;var Oe=function(b){t(S,b);function S(C,A){var M=b.call(this)||this;return M.paramList=C,M.result=A,M}return S.prototype.getChecker=function(C,A){return function(M,Y){return typeof M=="function"?!0:Y.fail(null,"is not a function",0)}},S}(s);e.TFunc=Oe;function H(b,S,C){return new ce(b,i(S),!!C)}e.param=H;var ce=function(){function b(S,C,A){this.name=S,this.ttype=C,this.isOpt=A}return b}();e.TParam=ce;var xe=function(b){t(S,b);function S(C){var A=b.call(this)||this;return A.params=C,A}return S.prototype.getChecker=function(C,A){var M=this,Y=this.params.map(function(oe){return oe.ttype.getChecker(C,A)}),Z=new r.NoopContext,le=this.params.map(function(oe,Ne){return!oe.isOpt&&!Y[Ne](void 0,Z)}),we=function(oe,Ne){if(!Array.isArray(oe))return Ne.fail(null,"is not an array",0);for(var Ee=0;Ee<Y.length;Ee++){var ve=M.params[Ee];if(oe[Ee]===void 0){if(le[Ee])return Ne.fail(ve.name,"is missing",1)}else{var qe=Y[Ee](oe[Ee],Ne);if(!qe)return Ne.fail(ve.name,null,1)}}return!0};return A?function(oe,Ne){return we(oe,Ne)?oe.length<=Y.length?!0:Ne.fail(Y.length,"is extraneous",2):!1}:we},S}(s);e.TParamList=xe;var ee=function(b){t(S,b);function S(C,A){var M=b.call(this)||this;return M.validator=C,M.message=A,M}return S.prototype.getChecker=function(C,A){var M=this;return function(Y,Z){return M.validator(Y)?!0:Z.fail(null,M.message,0)}},S}(s);e.BasicType=ee,e.basicTypes={any:new ee(function(b){return!0},"is invalid"),number:new ee(function(b){return typeof b=="number"},"is not a number"),object:new ee(function(b){return typeof b=="object"&&b},"is not an object"),boolean:new ee(function(b){return typeof b=="boolean"},"is not a boolean"),string:new ee(function(b){return typeof b=="string"},"is not a string"),symbol:new ee(function(b){return typeof b=="symbol"},"is not a symbol"),void:new ee(function(b){return b==null},"is not void"),undefined:new ee(function(b){return b===void 0},"is not undefined"),null:new ee(function(b){return b===null},"is not null"),never:new ee(function(b){return!1},"is unexpected"),Date:new ee(Be("[object Date]"),"is not a Date"),RegExp:new ee(Be("[object RegExp]"),"is not a RegExp")};var Pe=Object.prototype.toString;function Be(b){return function(S){return typeof S=="object"&&S&&Pe.call(S)===b}}typeof Buffer<"u"&&(e.basicTypes.Buffer=new ee(function(b){return Buffer.isBuffer(b)},"is not a Buffer"));for(var te=function(b){e.basicTypes[b.name]=new ee(function(S){return S instanceof b},"is not a "+b.name)},ue=0,ke=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];ue<ke.length;ue++){var Le=ke[ue];te(Le)}})(As);(function(e){var t=Zt&&Zt.__spreadArrays||function(){for(var f=0,h=0,m=arguments.length;h<m;h++)f+=arguments[h].length;for(var x=Array(f),_=0,h=0;h<m;h++)for(var y=arguments[h],L=0,O=y.length;L<O;L++,_++)x[_]=y[L];return x};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var r=As,s=vt,i=As;Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var o=vt;Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return o.VError}});function c(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];for(var m=Object.assign.apply(Object,t([{},r.basicTypes],f)),x={},_=0,y=f;_<y.length;_++)for(var L=y[_],O=0,F=Object.keys(L);O<F.length;O++){var K=F[O];x[K]=new u(m,L[K])}return x}e.createCheckers=c;var u=function(){function f(h,m,x){if(x===void 0&&(x="value"),this.suite=h,this.ttype=m,this._path=x,this.props=new Map,m instanceof r.TIface)for(var _=0,y=m.props;_<y.length;_++){var L=y[_];this.props.set(L.name,L.ttype)}this.checkerPlain=this.ttype.getChecker(h,!1),this.checkerStrict=this.ttype.getChecker(h,!0)}return f.prototype.setReportedPath=function(h){this._path=h},f.prototype.check=function(h){return this._doCheck(this.checkerPlain,h)},f.prototype.test=function(h){return this.checkerPlain(h,new s.NoopContext)},f.prototype.validate=function(h){return this._doValidate(this.checkerPlain,h)},f.prototype.strictCheck=function(h){return this._doCheck(this.checkerStrict,h)},f.prototype.strictTest=function(h){return this.checkerStrict(h,new s.NoopContext)},f.prototype.strictValidate=function(h){return this._doValidate(this.checkerStrict,h)},f.prototype.getProp=function(h){var m=this.props.get(h);if(!m)throw new Error("Type has no property "+h);return new f(this.suite,m,this._path+"."+h)},f.prototype.methodArgs=function(h){var m=this._getMethod(h);return new f(this.suite,m.paramList)},f.prototype.methodResult=function(h){var m=this._getMethod(h);return new f(this.suite,m.result)},f.prototype.getArgs=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getArgs() applied to non-function");return new f(this.suite,this.ttype.paramList)},f.prototype.getResult=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getResult() applied to non-function");return new f(this.suite,this.ttype.result)},f.prototype.getType=function(){return this.ttype},f.prototype._doCheck=function(h,m){var x=new s.NoopContext;if(!h(m,x)){var _=new s.DetailContext;throw h(m,_),_.getError(this._path)}},f.prototype._doValidate=function(h,m){var x=new s.NoopContext;if(h(m,x))return null;var _=new s.DetailContext;return h(m,_),_.getErrorDetail(this._path)},f.prototype._getMethod=function(h){var m=this.props.get(h);if(!m)throw new Error("Type has no property "+h);if(!(m instanceof r.TFunc))throw new Error("Property "+h+" is not a method");return m},f}();e.Checker=u})(be);const yu=be.union(be.lit("jsx"),be.lit("typescript"),be.lit("flow"),be.lit("imports"),be.lit("react-hot-loader"),be.lit("jest")),vu=be.iface([],{compiledFilename:"string"}),wu=be.iface([],{transforms:be.array("Transform"),disableESTransforms:be.opt("boolean"),jsxRuntime:be.opt(be.union(be.lit("classic"),be.lit("automatic"),be.lit("preserve"))),production:be.opt("boolean"),jsxImportSource:be.opt("string"),jsxPragma:be.opt("string"),jsxFragmentPragma:be.opt("string"),keepUnusedImports:be.opt("boolean"),preserveDynamicImport:be.opt("boolean"),injectCreateRequireForImportRequire:be.opt("boolean"),enableLegacyTypeScriptModuleInterop:be.opt("boolean"),enableLegacyBabel5ModuleInterop:be.opt("boolean"),sourceMapOptions:be.opt("SourceMapOptions"),filePath:be.opt("string")}),_u={Transform:yu,SourceMapOptions:vu,Options:wu},{Options:Su}=be.createCheckers(_u);function Iu(e){Su.strictCheck(e)}function Ha(){w(),ze(!1)}function Wa(e){w(),Vn(e)}function Wt(e){J(),Ys(e)}function _n(){J(),a.tokens[a.tokens.length-1].identifierRole=G.ImportDeclaration}function Ys(e){let t;a.scopeDepth===0?t=G.TopLevelDeclaration:e?t=G.BlockScopedDeclaration:t=G.FunctionScopedDeclaration,a.tokens[a.tokens.length-1].identifierRole=t}function Vn(e){switch(a.type){case n._this:{const t=ae(0);w(),ie(t);return}case n._yield:case n.name:{a.type=n.name,Wt(e);return}case n.bracketL:{w(),Ks(n.bracketR,e,!0);return}case n.braceL:oi(!0,e);return;default:ne()}}function Ks(e,t,r=!1,s=!1,i=0){let o=!0,c=!1;const u=a.tokens.length;for(;!k(e)&&!a.error;)if(o?o=!1:(v(n.comma),a.tokens[a.tokens.length-1].contextId=i,!c&&a.tokens[u].isType&&(a.tokens[a.tokens.length-1].isType=!0,c=!0)),!(r&&p(n.comma))){if(k(e))break;if(p(n.ellipsis)){Wa(t),Ga(),k(n.comma),v(e);break}else Eu(s,t)}}function Eu(e,t){e&&Qs([d._public,d._protected,d._private,d._readonly,d._override]),Sn(t),Ga(),Sn(t,!0)}function Ga(){me?zh():pe&&Dp()}function Sn(e,t=!1){if(t||Vn(e),!k(n.eq))return;const r=a.tokens.length-1;ze(),a.tokens[r].rhsEndIndex=a.tokens.length}function Ps(){return p(n.name)}function Cu(){return p(n.name)||!!(a.type&n.IS_KEYWORD)||p(n.string)||p(n.num)||p(n.bigint)||p(n.decimal)}function Xa(){const e=a.snapshot();return w(),(p(n.bracketL)||p(n.braceL)||p(n.star)||p(n.ellipsis)||p(n.hash)||Cu())&&!Xe()?!0:(a.restoreFromSnapshot(e),!1)}function Qs(e){for(;Ya(e)!==null;);}function Ya(e){if(!p(n.name))return null;const t=a.contextualKeyword;if(e.indexOf(t)!==-1&&Xa()){switch(t){case d._readonly:a.tokens[a.tokens.length-1].type=n._readonly;break;case d._abstract:a.tokens[a.tokens.length-1].type=n._abstract;break;case d._static:a.tokens[a.tokens.length-1].type=n._static;break;case d._public:a.tokens[a.tokens.length-1].type=n._public;break;case d._private:a.tokens[a.tokens.length-1].type=n._private;break;case d._protected:a.tokens[a.tokens.length-1].type=n._protected;break;case d._override:a.tokens[a.tokens.length-1].type=n._override;break;case d._declare:a.tokens[a.tokens.length-1].type=n._declare;break}return t}return null}function sn(){for(J();k(n.dot);)J()}function Tu(){sn(),!Xe()&&p(n.lessThan)&&wr()}function Au(){w(),an()}function Pu(){w()}function Nu(){v(n._typeof),p(n._import)?Ka():sn(),!Xe()&&p(n.lessThan)&&wr()}function Ka(){v(n._import),v(n.parenL),v(n.string),v(n.parenR),k(n.dot)&&sn(),p(n.lessThan)&&wr()}function Ru(){k(n._const);const e=k(n._in),t=Fe(d._out);k(n._const),(e||t)&&!p(n.name)?a.tokens[a.tokens.length-1].type=n.name:J(),k(n._extends)&&Ae(),k(n.eq)&&Ae()}function sr(){p(n.lessThan)&&$n()}function $n(){const e=ae(0);for(p(n.lessThan)||p(n.typeParameterStart)?w():ne();!k(n.greaterThan)&&!a.error;)Ru(),k(n.comma);ie(e)}function Js(e){const t=e===n.arrow;sr(),v(n.parenL),a.scopeDepth++,Lu(!1),a.scopeDepth--,(t||p(e))&&Kr(e)}function Lu(e){Ks(n.parenR,e)}function In(){k(n.comma)||Se()}function Gi(){Js(n.colon),In()}function Du(){const e=a.snapshot();w();const t=k(n.name)&&p(n.colon);return a.restoreFromSnapshot(e),t}function Qa(){if(!(p(n.bracketL)&&Du()))return!1;const e=ae(0);return v(n.bracketL),J(),an(),v(n.bracketR),vr(),In(),ie(e),!0}function Xi(e){k(n.question),!e&&(p(n.parenL)||p(n.lessThan))?(Js(n.colon),In()):(vr(),In())}function Ou(){if(p(n.parenL)||p(n.lessThan)){Gi();return}if(p(n._new)){w(),p(n.parenL)||p(n.lessThan)?Gi():Xi(!1);return}const e=!!Ya([d._readonly]);Qa()||((U(d._get)||U(d._set))&&Xa(),Qr(-1),Xi(e))}function Mu(){Ja()}function Ja(){for(v(n.braceL);!k(n.braceR)&&!a.error;)Ou()}function ju(){const e=a.snapshot(),t=Fu();return a.restoreFromSnapshot(e),t}function Fu(){return w(),k(n.plus)||k(n.minus)?U(d._readonly):(U(d._readonly)&&w(),!p(n.bracketL)||(w(),!Ps())?!1:(w(),p(n._in)))}function Bu(){J(),v(n._in),Ae()}function Vu(){v(n.braceL),p(n.plus)||p(n.minus)?(w(),Re(d._readonly)):Fe(d._readonly),v(n.bracketL),Bu(),Fe(d._as)&&Ae(),v(n.bracketR),p(n.plus)||p(n.minus)?(w(),v(n.question)):k(n.question),ep(),Se(),v(n.braceR)}function $u(){for(v(n.bracketL);!k(n.bracketR)&&!a.error;)qu(),k(n.comma)}function qu(){k(n.ellipsis)?Ae():(Ae(),k(n.question)),k(n.colon)&&Ae()}function Uu(){v(n.parenL),Ae(),v(n.parenR)}function zu(){for(Bt(),Bt();!p(n.backQuote)&&!a.error;)v(n.dollarBraceL),Ae(),Bt(),Bt();w()}var qt;(function(e){e[e.TSFunctionType=0]="TSFunctionType";const r=1;e[e.TSConstructorType=r]="TSConstructorType";const s=r+1;e[e.TSAbstractConstructorType=s]="TSAbstractConstructorType"})(qt||(qt={}));function bs(e){e===qt.TSAbstractConstructorType&&Re(d._abstract),(e===qt.TSConstructorType||e===qt.TSAbstractConstructorType)&&v(n._new);const t=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!1,Js(n.arrow),a.inDisallowConditionalTypesContext=t}function Hu(){switch(a.type){case n.name:Tu();return;case n._void:case n._null:w();return;case n.string:case n.num:case n.bigint:case n.decimal:case n._true:case n._false:yr();return;case n.minus:w(),yr();return;case n._this:{Pu(),U(d._is)&&!Xe()&&Au();return}case n._typeof:Nu();return;case n._import:Ka();return;case n.braceL:ju()?Vu():Mu();return;case n.bracketL:$u();return;case n.parenL:Uu();return;case n.backQuote:zu();return;default:if(a.type&n.IS_KEYWORD){w(),a.tokens[a.tokens.length-1].type=n.name;return}break}ne()}function Wu(){for(Hu();!Xe()&&k(n.bracketL);)k(n.bracketR)||(Ae(),v(n.bracketR))}function Gu(){if(Re(d._infer),J(),p(n._extends)){const e=a.snapshot();v(n._extends);const t=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!0,Ae(),a.inDisallowConditionalTypesContext=t,(a.error||!a.inDisallowConditionalTypesContext&&p(n.question))&&a.restoreFromSnapshot(e)}}function Ns(){if(U(d._keyof)||U(d._unique)||U(d._readonly))w(),Ns();else if(U(d._infer))Gu();else{const e=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!1,Wu(),a.inDisallowConditionalTypesContext=e}}function Yi(){if(k(n.bitwiseAND),Ns(),p(n.bitwiseAND))for(;k(n.bitwiseAND);)Ns()}function Xu(){if(k(n.bitwiseOR),Yi(),p(n.bitwiseOR))for(;k(n.bitwiseOR);)Yi()}function Yu(){return p(n.lessThan)?!0:p(n.parenL)&&Qu()}function Ku(){if(p(n.name)||p(n._this))return w(),!0;if(p(n.braceL)||p(n.bracketL)){let e=1;for(w();e>0&&!a.error;)p(n.braceL)||p(n.bracketL)?e++:(p(n.braceR)||p(n.bracketR))&&e--,w();return!0}return!1}function Qu(){const e=a.snapshot(),t=Ju();return a.restoreFromSnapshot(e),t}function Ju(){return w(),!!(p(n.parenR)||p(n.ellipsis)||Ku()&&(p(n.colon)||p(n.comma)||p(n.question)||p(n.eq)||p(n.parenR)&&(w(),p(n.arrow))))}function Kr(e){const t=ae(0);v(e),tp()||Ae(),ie(t)}function Zu(){p(n.colon)&&Kr(n.colon)}function vr(){p(n.colon)&&an()}function ep(){k(n.colon)&&Ae()}function tp(){const e=a.snapshot();return U(d._asserts)?(w(),Fe(d._is)?(Ae(),!0):Ps()||p(n._this)?(w(),Fe(d._is)&&Ae(),!0):(a.restoreFromSnapshot(e),!1)):Ps()||p(n._this)?(w(),U(d._is)&&!Xe()?(w(),Ae(),!0):(a.restoreFromSnapshot(e),!1)):!1}function an(){const e=ae(0);v(n.colon),Ae(),ie(e)}function Ae(){if(Ki(),a.inDisallowConditionalTypesContext||Xe()||!k(n._extends))return;const e=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!0,Ki(),a.inDisallowConditionalTypesContext=e,v(n.question),Ae(),v(n.colon),Ae()}function rp(){return U(d._abstract)&&Te()===n._new}function Ki(){if(Yu()){bs(qt.TSFunctionType);return}if(p(n._new)){bs(qt.TSConstructorType);return}else if(rp()){bs(qt.TSAbstractConstructorType);return}Xu()}function np(){const e=ae(1);Ae(),v(n.greaterThan),ie(e),on()}function sp(){if(k(n.jsxTagStart)){a.tokens[a.tokens.length-1].type=n.typeParameterStart;const e=ae(1);for(;!p(n.greaterThan)&&!a.error;)Ae(),k(n.comma);ot(),ie(e)}}function Za(){for(;!p(n.braceL)&&!a.error;)ip(),k(n.comma)}function ip(){sn(),p(n.lessThan)&&wr()}function ap(){Wt(!1),sr(),k(n._extends)&&Za(),Ja()}function op(){Wt(!1),sr(),v(n.eq),Ae(),Se()}function cp(){if(p(n.string)?yr():J(),k(n.eq)){const e=a.tokens.length-1;ze(),a.tokens[e].rhsEndIndex=a.tokens.length}}function Zs(){for(Wt(!1),v(n.braceL);!k(n.braceR)&&!a.error;)cp(),k(n.comma)}function ei(){v(n.braceL),Hn(n.braceR)}function Rs(){Wt(!1),k(n.dot)?Rs():ei()}function eo(){U(d._global)?J():p(n.string)?Pt():ne(),p(n.braceL)?ei():Se()}function Ls(){_n(),v(n.eq),up(),Se()}function lp(){return U(d._require)&&Te()===n.parenL}function up(){lp()?pp():sn()}function pp(){Re(d._require),v(n.parenL),p(n.string)||ne(),yr(),v(n.parenR)}function hp(){if(yt())return!1;switch(a.type){case n._function:{const e=ae(1);w();const t=a.start;return tr(t,!0),ie(e),!0}case n._class:{const e=ae(1);return rr(!0,!1),ie(e),!0}case n._const:if(p(n._const)&&Ws(d._enum)){const e=ae(1);return v(n._const),Re(d._enum),a.tokens[a.tokens.length-1].type=n._enum,Zs(),ie(e),!0}case n._var:case n._let:{const e=ae(1);return kn(a.type!==n._var),ie(e),!0}case n.name:{const e=ae(1),t=a.contextualKeyword;let r=!1;return t===d._global?(eo(),r=!0):r=qn(t,!0),ie(e),r}default:return!1}}function Qi(){return qn(a.contextualKeyword,!0)}function fp(e){switch(e){case d._declare:{const t=a.tokens.length-1;if(hp())return a.tokens[t].type=n._declare,!0;break}case d._global:if(p(n.braceL))return ei(),!0;break;default:return qn(e,!1)}return!1}function qn(e,t){switch(e){case d._abstract:if(xr(t)&&p(n._class))return a.tokens[a.tokens.length-1].type=n._abstract,rr(!0,!1),!0;break;case d._enum:if(xr(t)&&p(n.name))return a.tokens[a.tokens.length-1].type=n._enum,Zs(),!0;break;case d._interface:if(xr(t)&&p(n.name)){const r=ae(t?2:1);return ap(),ie(r),!0}break;case d._module:if(xr(t)){if(p(n.string)){const r=ae(t?2:1);return eo(),ie(r),!0}else if(p(n.name)){const r=ae(t?2:1);return Rs(),ie(r),!0}}break;case d._namespace:if(xr(t)&&p(n.name)){const r=ae(t?2:1);return Rs(),ie(r),!0}break;case d._type:if(xr(t)&&p(n.name)){const r=ae(t?2:1);return op(),ie(r),!0}break}return!1}function xr(e){return e?(w(),!0):!yt()}function dp(){const e=a.snapshot();return $n(),_r(),Zu(),v(n.arrow),a.error?(a.restoreFromSnapshot(e),!1):(cn(!0),!0)}function ti(){a.type===n.bitShiftL&&(a.pos-=1,re(n.lessThan)),wr()}function wr(){const e=ae(0);for(v(n.lessThan);!p(n.greaterThan)&&!a.error;)Ae(),k(n.comma);e?(v(n.greaterThan),ie(e)):(ie(e),Da(),v(n.greaterThan),a.tokens[a.tokens.length-1].isType=!0)}function to(){if(p(n.name))switch(a.contextualKeyword){case d._abstract:case d._declare:case d._enum:case d._interface:case d._module:case d._namespace:case d._type:return!0}return!1}function mp(e,t){if(p(n.colon)&&Kr(n.colon),!p(n.braceL)&&yt()){let r=a.tokens.length-1;for(;r>=0&&(a.tokens[r].start>=e||a.tokens[r].type===n._default||a.tokens[r].type===n._export);)a.tokens[r].isType=!0,r--;return}cn(!1,t)}function gp(e,t,r){if(!Xe()&&k(n.bang)){a.tokens[a.tokens.length-1].type=n.nonNullAssertion;return}if(p(n.lessThan)||p(n.bitShiftL)){const s=a.snapshot();if(!t&&lo()&&dp())return;if(ti(),!t&&k(n.parenL)?(a.tokens[a.tokens.length-1].subscriptStartIndex=e,Ut()):p(n.backQuote)?ai():(a.type===n.greaterThan||a.type!==n.parenL&&a.type&n.IS_EXPRESSION_START&&!Xe())&&ne(),a.error)a.restoreFromSnapshot(s);else return}else!t&&p(n.questionDot)&&Te()===n.lessThan&&(w(),a.tokens[e].isOptionalChainStart=!0,a.tokens[a.tokens.length-1].subscriptStartIndex=e,wr(),v(n.parenL),Ut());ni(e,t,r)}function xp(){if(k(n._import))return U(d._type)&&Te()!==n.eq&&Re(d._type),Ls(),!0;if(k(n.eq))return Ue(),Se(),!0;if(Fe(d._as))return Re(d._namespace),J(),Se(),!0;if(U(d._type)){const e=Te();(e===n.braceL||e===n.star)&&w()}return!1}function kp(){if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=G.ImportDeclaration;return}if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=G.ImportDeclaration,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0;return}if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-3].identifierRole=G.ImportAccess,a.tokens[a.tokens.length-1].identifierRole=G.ImportDeclaration;return}J(),a.tokens[a.tokens.length-3].identifierRole=G.ImportAccess,a.tokens[a.tokens.length-1].identifierRole=G.ImportDeclaration,a.tokens[a.tokens.length-4].isType=!0,a.tokens[a.tokens.length-3].isType=!0,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0}function bp(){if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=G.ExportAccess;return}if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=G.ExportAccess,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0;return}if(J(),p(n.comma)||p(n.braceR)){a.tokens[a.tokens.length-3].identifierRole=G.ExportAccess;return}J(),a.tokens[a.tokens.length-3].identifierRole=G.ExportAccess,a.tokens[a.tokens.length-4].isType=!0,a.tokens[a.tokens.length-3].isType=!0,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0}function yp(){if(U(d._abstract)&&Te()===n._class)return a.type=n._abstract,w(),rr(!0,!0),!0;if(U(d._interface)){const e=ae(2);return qn(d._interface,!0),ie(e),!0}return!1}function vp(){if(a.type===n._const){const e=nn();if(e.type===n.name&&e.contextualKeyword===d._enum)return v(n._const),Re(d._enum),a.tokens[a.tokens.length-1].type=n._enum,Zs(),!0}return!1}function wp(e){const t=a.tokens.length;Qs([d._abstract,d._readonly,d._declare,d._static,d._override]);const r=a.tokens.length;if(Qa()){const i=e?t-1:t;for(let o=i;o<r;o++)a.tokens[o].isType=!0;return!0}return!1}function _p(e){fp(e)||Se()}function Sp(){const e=Fe(d._declare);e&&(a.tokens[a.tokens.length-1].type=n._declare);let t=!1;if(p(n.name))if(e){const r=ae(2);t=Qi(),ie(r)}else t=Qi();if(!t)if(e){const r=ae(2);rt(!0),ie(r)}else rt(!0)}function Ip(e){if(e&&(p(n.lessThan)||p(n.bitShiftL))&&ti(),Fe(d._implements)){a.tokens[a.tokens.length-1].type=n._implements;const t=ae(1);Za(),ie(t)}}function Ep(){sr()}function Cp(){sr()}function Tp(){const e=ae(0);Xe()||k(n.bang),vr(),ie(e)}function Ap(){p(n.colon)&&an()}function Pp(e,t){return Fn?Np(e,t):Rp(e,t)}function Np(e,t){if(!p(n.lessThan))return wt(e,t);const r=a.snapshot();let s=wt(e,t);if(a.error)a.restoreFromSnapshot(r);else return s;return a.type=n.typeParameterStart,$n(),s=wt(e,t),s||ne(),s}function Rp(e,t){if(!p(n.lessThan))return wt(e,t);const r=a.snapshot();$n();const s=wt(e,t);if(s||ne(),a.error)a.restoreFromSnapshot(r);else return s;return wt(e,t)}function Lp(){if(p(n.colon)){const e=a.snapshot();Kr(n.colon),tt()&&ne(),p(n.arrow)||ne(),a.error&&a.restoreFromSnapshot(e)}return k(n.arrow)}function Dp(){const e=ae(0);k(n.question),vr(),ie(e)}function Op(){(p(n.lessThan)||p(n.bitShiftL))&&ti(),wo()}function Mp(){let e=!1,t=!1;for(;;){if(a.pos>=N.length){ne("Unterminated JSX contents");return}const r=N.charCodeAt(a.pos);if(r===g.lessThan||r===g.leftCurlyBrace){if(a.pos===a.start){if(r===g.lessThan){a.pos++,re(n.jsxTagStart);return}Oa(r);return}re(e&&!t?n.jsxEmptyText:n.jsxText);return}r===g.lineFeed?e=!0:r!==g.space&&r!==g.carriageReturn&&r!==g.tab&&(t=!0),a.pos++}}function jp(e){for(a.pos++;;){if(a.pos>=N.length){ne("Unterminated string constant");return}if(N.charCodeAt(a.pos)===e){a.pos++;break}a.pos++}re(n.string)}function Fp(){let e;do{if(a.pos>N.length){ne("Unexpectedly reached the end of input.");return}e=N.charCodeAt(++a.pos)}while(dt[e]||e===g.dash);re(n.jsxName)}function Ds(){ot()}function ro(e){if(Ds(),!k(n.colon)){a.tokens[a.tokens.length-1].identifierRole=e;return}Ds()}function no(){const e=a.tokens.length;ro(G.Access);let t=!1;for(;p(n.dot);)t=!0,ot(),Ds();if(!t){const r=a.tokens[e],s=N.charCodeAt(r.start);s>=g.lowercaseA&&s<=g.lowercaseZ&&(r.identifierRole=null)}}function Bp(){switch(a.type){case n.braceL:w(),Ue(),ot();return;case n.jsxTagStart:io(),ot();return;case n.string:ot();return;default:ne("JSX value should be either an expression or a quoted JSX text")}}function Vp(){v(n.ellipsis),Ue()}function $p(e){if(p(n.jsxTagEnd))return!1;no(),pe&&sp();let t=!1;for(;!p(n.slash)&&!p(n.jsxTagEnd)&&!a.error;){if(k(n.braceL)){t=!0,v(n.ellipsis),ze(),ot();continue}t&&a.end-a.start===3&&N.charCodeAt(a.start)===g.lowercaseK&&N.charCodeAt(a.start+1)===g.lowercaseE&&N.charCodeAt(a.start+2)===g.lowercaseY&&(a.tokens[e].jsxRole=ft.KeyAfterPropSpread),ro(G.ObjectKey),p(n.eq)&&(ot(),Bp())}const r=p(n.slash);return r&&ot(),r}function qp(){p(n.jsxTagEnd)||no()}function so(){const e=a.tokens.length-1;a.tokens[e].jsxRole=ft.NoChildren;let t=0;if(!$p(e))for(kr();;)switch(a.type){case n.jsxTagStart:if(ot(),p(n.slash)){ot(),qp(),a.tokens[e].jsxRole!==ft.KeyAfterPropSpread&&(t===1?a.tokens[e].jsxRole=ft.OneChild:t>1&&(a.tokens[e].jsxRole=ft.StaticChildren));return}t++,so(),kr();break;case n.jsxText:t++,kr();break;case n.jsxEmptyText:kr();break;case n.braceL:w(),p(n.ellipsis)?(Vp(),kr(),t+=2):(p(n.braceR)||(t++,Ue()),kr());break;default:ne();return}}function io(){ot(),so()}function ot(){a.tokens.push(new Bn),Ra(),a.start=a.pos;const e=N.charCodeAt(a.pos);if(rn[e])Fp();else if(e===g.quotationMark||e===g.apostrophe)jp(e);else switch(++a.pos,e){case g.greaterThan:re(n.jsxTagEnd);break;case g.lessThan:re(n.jsxTagStart);break;case g.slash:re(n.slash);break;case g.equalsTo:re(n.eq);break;case g.leftCurlyBrace:re(n.braceL);break;case g.dot:re(n.dot);break;case g.colon:re(n.colon);break;default:ne()}}function kr(){a.tokens.push(new Bn),a.start=a.pos,Mp()}function Up(e){if(p(n.question)){const t=Te();if(t===n.colon||t===n.comma||t===n.parenR)return}ao(e)}function zp(){Ca(n.question),p(n.colon)&&(pe?an():me&&ir())}class Hp{constructor(t){this.stop=t}}function Ue(e=!1){if(ze(e),p(n.comma))for(;k(n.comma);)ze(e)}function ze(e=!1,t=!1){return pe?Pp(e,t):me?Kh(e,t):wt(e,t)}function wt(e,t){if(p(n._yield))return oh(),!1;(p(n.parenL)||p(n.name)||p(n._yield))&&(a.potentialArrowAt=a.start);const r=Wp(e);return t&&ii(),a.type&n.IS_ASSIGN?(w(),ze(e),!1):r}function Wp(e){return Xp(e)?!0:(Gp(e),!1)}function Gp(e){pe||me?Up(e):ao(e)}function ao(e){k(n.question)&&(ze(),v(n.colon),ze(e))}function Xp(e){const t=a.tokens.length;return on()?!0:(gn(t,-1,e),!1)}function gn(e,t,r){if(pe&&(n._in&n.PRECEDENCE_MASK)>t&&!Xe()&&(Fe(d._as)||Fe(d._satisfies))){const i=ae(1);Ae(),ie(i),Da(),gn(e,t,r);return}const s=a.type&n.PRECEDENCE_MASK;if(s>0&&(!r||!p(n._in))&&s>t){const i=a.type;w(),i===n.nullishCoalescing&&(a.tokens[a.tokens.length-1].nullishStartIndex=e);const o=a.tokens.length;on(),gn(o,i&n.IS_RIGHT_ASSOCIATIVE?s-1:s,r),i===n.nullishCoalescing&&(a.tokens[e].numNullishCoalesceStarts++,a.tokens[a.tokens.length-1].numNullishCoalesceEnds++),gn(e,t,r)}}function on(){if(pe&&!Fn&&k(n.lessThan))return np(),!1;if(U(d._module)&&Aa()===g.leftCurlyBrace&&!wa())return ch(),!1;if(a.type&n.IS_PREFIX)return w(),on(),!1;if(oo())return!0;for(;a.type&n.IS_POSTFIX&&!tt();)a.type===n.preIncDec&&(a.type=n.postIncDec),w();return!1}function oo(){const e=a.tokens.length;return Pt()?!0:(ri(e),a.tokens.length>e&&a.tokens[e].isOptionalChainStart&&(a.tokens[a.tokens.length-1].isOptionalChainEnd=!0),!1)}function ri(e,t=!1){me?Jh(e,t):co(e,t)}function co(e,t=!1){const r=new Hp(!1);do Yp(e,t,r);while(!r.stop&&!a.error)}function Yp(e,t,r){pe?gp(e,t,r):me?Rh(e,t,r):ni(e,t,r)}function ni(e,t,r){if(!t&&k(n.doubleColon))si(),r.stop=!0,ri(e,t);else if(p(n.questionDot)){if(a.tokens[e].isOptionalChainStart=!0,t&&Te()===n.parenL){r.stop=!0;return}w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e,k(n.bracketL)?(Ue(),v(n.bracketR)):k(n.parenL)?Ut():En()}else if(k(n.dot))a.tokens[a.tokens.length-1].subscriptStartIndex=e,En();else if(k(n.bracketL))a.tokens[a.tokens.length-1].subscriptStartIndex=e,Ue(),v(n.bracketR);else if(!t&&p(n.parenL))if(lo()){const s=a.snapshot(),i=a.tokens.length;w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e;const o=Xr();a.tokens[a.tokens.length-1].contextId=o,Ut(),a.tokens[a.tokens.length-1].contextId=o,Kp()&&(a.restoreFromSnapshot(s),r.stop=!0,a.scopeDepth++,_r(),Qp(i))}else{w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e;const s=Xr();a.tokens[a.tokens.length-1].contextId=s,Ut(),a.tokens[a.tokens.length-1].contextId=s}else p(n.backQuote)?ai():r.stop=!0}function lo(){return a.tokens[a.tokens.length-1].contextualKeyword===d._async&&!tt()}function Ut(){let e=!0;for(;!k(n.parenR)&&!a.error;){if(e)e=!1;else if(v(n.comma),k(n.parenR))break;fo(!1)}}function Kp(){return p(n.colon)||p(n.arrow)}function Qp(e){pe?Ap():me&&Yh(),v(n.arrow),Jr(e)}function si(){const e=a.tokens.length;Pt(),ri(e,!0)}function Pt(){if(k(n.modulo))return J(),!1;if(p(n.jsxText)||p(n.jsxEmptyText))return yr(),!1;if(p(n.lessThan)&&Fn)return a.type=n.jsxTagStart,io(),w(),!1;const e=a.potentialArrowAt===a.start;switch(a.type){case n.slash:case n.assign:yl();case n._super:case n._this:case n.regexp:case n.num:case n.bigint:case n.decimal:case n.string:case n._null:case n._true:case n._false:return w(),!1;case n._import:return w(),p(n.dot)&&(a.tokens[a.tokens.length-1].type=n.name,w(),J()),!1;case n.name:{const t=a.tokens.length,r=a.start,s=a.contextualKeyword;return J(),s===d._await?(ah(),!1):s===d._async&&p(n._function)&&!tt()?(w(),tr(r,!1),!1):e&&s===d._async&&!tt()&&p(n.name)?(a.scopeDepth++,Wt(!1),v(n.arrow),Jr(t),!0):p(n._do)&&!tt()?(w(),zt(),!1):e&&!tt()&&p(n.arrow)?(a.scopeDepth++,Ys(!1),v(n.arrow),Jr(t),!0):(a.tokens[a.tokens.length-1].identifierRole=G.Access,!1)}case n._do:return w(),zt(),!1;case n.parenL:return uo(e);case n.bracketL:return w(),ho(n.bracketR,!0),!1;case n.braceL:return oi(!1,!1),!1;case n._function:return Jp(),!1;case n.at:gi();case n._class:return rr(!1),!1;case n._new:return eh(),!1;case n.backQuote:return ai(),!1;case n.doubleColon:return w(),si(),!1;case n.hash:{const t=Aa();return rn[t]||t===g.backslash?En():w(),!1}default:return ne(),!1}}function En(){k(n.hash),J()}function Jp(){const e=a.start;J(),k(n.dot)&&J(),tr(e,!1)}function yr(){w()}function Un(){v(n.parenL),Ue(),v(n.parenR)}function uo(e){const t=a.snapshot(),r=a.tokens.length;v(n.parenL);let s=!0;for(;!p(n.parenR)&&!a.error;){if(s)s=!1;else if(v(n.comma),p(n.parenR))break;if(p(n.ellipsis)){Wa(!1),ii();break}else ze(!1,!0)}return v(n.parenR),e&&Zp()&&Os()?(a.restoreFromSnapshot(t),a.scopeDepth++,_r(),Os(),Jr(r),a.error?(a.restoreFromSnapshot(t),uo(!1),!1):!0):!1}function Zp(){return p(n.colon)||!tt()}function Os(){return pe?Lp():me?Qh():k(n.arrow)}function ii(){(pe||me)&&zp()}function eh(){if(v(n._new),k(n.dot)){J();return}th(),me&&Lh(),k(n.parenL)&&ho(n.parenR)}function th(){si(),k(n.questionDot)}function ai(){for(Bt(),Bt();!p(n.backQuote)&&!a.error;)v(n.dollarBraceL),Ue(),Bt(),Bt();w()}function oi(e,t){const r=Xr();let s=!0;for(w(),a.tokens[a.tokens.length-1].contextId=r;!k(n.braceR)&&!a.error;){if(s)s=!1;else if(v(n.comma),k(n.braceR))break;let i=!1;if(p(n.ellipsis)){const o=a.tokens.length;if(Ha(),e&&(a.tokens.length===o+2&&Ys(t),k(n.braceR)))break;continue}e||(i=k(n.star)),!e&&U(d._async)?(i&&ne(),J(),p(n.colon)||p(n.parenL)||p(n.braceR)||p(n.eq)||p(n.comma)||(p(n.star)&&(w(),i=!0),Qr(r))):Qr(r),ih(e,t,r)}a.tokens[a.tokens.length-1].contextId=r}function rh(e){return!e&&(p(n.string)||p(n.num)||p(n.bracketL)||p(n.name)||!!(a.type&n.IS_KEYWORD))}function nh(e,t){const r=a.start;return p(n.parenL)?(e&&ne(),Ms(r,!1),!0):rh(e)?(Qr(t),Ms(r,!1),!0):!1}function sh(e,t){if(k(n.colon)){e?Sn(t):ze(!1);return}let r;e?a.scopeDepth===0?r=G.ObjectShorthandTopLevelDeclaration:t?r=G.ObjectShorthandBlockScopedDeclaration:r=G.ObjectShorthandFunctionScopedDeclaration:r=G.ObjectShorthand,a.tokens[a.tokens.length-1].identifierRole=r,Sn(t,!0)}function ih(e,t,r){pe?Ep():me&&Uh(),nh(e,r)||sh(e,t)}function Qr(e){me&&mi(),k(n.bracketL)?(a.tokens[a.tokens.length-1].contextId=e,ze(),v(n.bracketR),a.tokens[a.tokens.length-1].contextId=e):(p(n.num)||p(n.string)||p(n.bigint)||p(n.decimal)?Pt():En(),a.tokens[a.tokens.length-1].identifierRole=G.ObjectKey,a.tokens[a.tokens.length-1].contextId=e)}function Ms(e,t){const r=Xr();a.scopeDepth++;const s=a.tokens.length;_r(t,r),po(e,r);const o=a.tokens.length;a.scopes.push(new _t(s,o,!0)),a.scopeDepth--}function Jr(e){cn(!0);const t=a.tokens.length;a.scopes.push(new _t(e,t,!0)),a.scopeDepth--}function po(e,t=0){pe?mp(e,t):me?Nh(t):cn(!1,t)}function cn(e,t=0){e&&!p(n.braceL)?ze():zt(!0,t)}function ho(e,t=!1){let r=!0;for(;!k(e)&&!a.error;){if(r)r=!1;else if(v(n.comma),k(e))break;fo(t)}}function fo(e){e&&p(n.comma)||(p(n.ellipsis)?(Ha(),ii()):p(n.question)?w():ze(!1,!0))}function J(){w(),a.tokens[a.tokens.length-1].type=n.name}function ah(){on()}function oh(){w(),!p(n.semi)&&!tt()&&(k(n.star),ze())}function ch(){Re(d._module),v(n.braceL),Hn(n.braceR)}function lh(e){return(e.type===n.name||!!(e.type&n.IS_KEYWORD))&&e.contextualKeyword!==d._from}function St(e){const t=ae(0);v(e||n.colon),Qe(),ie(t)}function Ji(){v(n.modulo),Re(d._checks),k(n.parenL)&&(Ue(),v(n.parenR))}function ci(){const e=ae(0);v(n.colon),p(n.modulo)?Ji():(Qe(),p(n.modulo)&&Ji()),ie(e)}function uh(){w(),li(!0)}function ph(){w(),J(),p(n.lessThan)&&gt(),v(n.parenL),Fs(),v(n.parenR),ci(),Se()}function js(){p(n._class)?uh():p(n._function)?ph():p(n._var)?hh():Fe(d._module)?k(n.dot)?mh():fh():U(d._type)?gh():U(d._opaque)?xh():U(d._interface)?kh():p(n._export)?dh():ne()}function hh(){w(),ko(),Se()}function fh(){for(p(n.string)?Pt():J(),v(n.braceL);!p(n.braceR)&&!a.error;)p(n._import)?(w(),To()):ne();v(n.braceR)}function dh(){v(n._export),k(n._default)?p(n._function)||p(n._class)?js():(Qe(),Se()):p(n._var)||p(n._function)||p(n._class)||U(d._opaque)?js():p(n.star)||p(n.braceL)||U(d._interface)||U(d._type)||U(d._opaque)?Eo():ne()}function mh(){Re(d._exports),ir(),Se()}function gh(){w(),pi()}function xh(){w(),hi(!0)}function kh(){w(),li()}function li(e=!1){if(zn(),p(n.lessThan)&&gt(),k(n._extends))do xn();while(!e&&k(n.comma));if(U(d._mixins)){w();do xn();while(k(n.comma))}if(U(d._implements)){w();do xn();while(k(n.comma))}Cn(e,!1,e)}function xn(){mo(!1),p(n.lessThan)&&er()}function ui(){li()}function zn(){J()}function pi(){zn(),p(n.lessThan)&&gt(),St(n.eq),Se()}function hi(e){Re(d._type),zn(),p(n.lessThan)&&gt(),p(n.colon)&&St(n.colon),e||St(n.eq),Se()}function bh(){mi(),ko(),k(n.eq)&&Qe()}function gt(){const e=ae(0);p(n.lessThan)||p(n.typeParameterStart)?w():ne();do bh(),p(n.greaterThan)||v(n.comma);while(!p(n.greaterThan)&&!a.error);v(n.greaterThan),ie(e)}function er(){const e=ae(0);for(v(n.lessThan);!p(n.greaterThan)&&!a.error;)Qe(),p(n.greaterThan)||v(n.comma);v(n.greaterThan),ie(e)}function yh(){if(Re(d._interface),k(n._extends))do xn();while(k(n.comma));Cn(!1,!1,!1)}function fi(){p(n.num)||p(n.string)?Pt():J()}function vh(){Te()===n.colon?(fi(),St()):Qe(),v(n.bracketR),St()}function wh(){fi(),v(n.bracketR),v(n.bracketR),p(n.lessThan)||p(n.parenL)?di():(k(n.question),St())}function di(){for(p(n.lessThan)&&gt(),v(n.parenL);!p(n.parenR)&&!p(n.ellipsis)&&!a.error;)Tn(),p(n.parenR)||v(n.comma);k(n.ellipsis)&&Tn(),v(n.parenR),St()}function _h(){di()}function Cn(e,t,r){let s;for(t&&p(n.braceBarL)?(v(n.braceBarL),s=n.braceBarR):(v(n.braceL),s=n.braceR);!p(s)&&!a.error;){if(r&&U(d._proto)){const i=Te();i!==n.colon&&i!==n.question&&(w(),e=!1)}if(e&&U(d._static)){const i=Te();i!==n.colon&&i!==n.question&&w()}if(mi(),k(n.bracketL))k(n.bracketL)?wh():vh();else if(p(n.parenL)||p(n.lessThan))_h();else{if(U(d._get)||U(d._set)){const i=Te();(i===n.name||i===n.string||i===n.num)&&w()}Sh()}Ih()}v(s)}function Sh(){if(p(n.ellipsis)){if(v(n.ellipsis),k(n.comma)||k(n.semi),p(n.braceR))return;Qe()}else fi(),p(n.lessThan)||p(n.parenL)?di():(k(n.question),St())}function Ih(){!k(n.semi)&&!k(n.comma)&&!p(n.braceR)&&!p(n.braceBarR)&&ne()}function mo(e){for(e||J();k(n.dot);)J()}function Eh(){mo(!0),p(n.lessThan)&&er()}function Ch(){v(n._typeof),go()}function Th(){for(v(n.bracketL);a.pos<N.length&&!p(n.bracketR)&&(Qe(),!p(n.bracketR));)v(n.comma);v(n.bracketR)}function Tn(){const e=Te();e===n.colon||e===n.question?(J(),k(n.question),St()):Qe()}function Fs(){for(;!p(n.parenR)&&!p(n.ellipsis)&&!a.error;)Tn(),p(n.parenR)||v(n.comma);k(n.ellipsis)&&Tn()}function go(){let e=!1;const t=a.noAnonFunctionType;switch(a.type){case n.name:{if(U(d._interface)){yh();return}J(),Eh();return}case n.braceL:Cn(!1,!1,!1);return;case n.braceBarL:Cn(!1,!0,!1);return;case n.bracketL:Th();return;case n.lessThan:gt(),v(n.parenL),Fs(),v(n.parenR),v(n.arrow),Qe();return;case n.parenL:if(w(),!p(n.parenR)&&!p(n.ellipsis))if(p(n.name)){const r=Te();e=r!==n.question&&r!==n.colon}else e=!0;if(e)if(a.noAnonFunctionType=!1,Qe(),a.noAnonFunctionType=t,a.noAnonFunctionType||!(p(n.comma)||p(n.parenR)&&Te()===n.arrow)){v(n.parenR);return}else k(n.comma);Fs(),v(n.parenR),v(n.arrow),Qe();return;case n.minus:w(),yr();return;case n.string:case n.num:case n._true:case n._false:case n._null:case n._this:case n._void:case n.star:w();return;default:if(a.type===n._typeof){Ch();return}else if(a.type&n.IS_KEYWORD){w(),a.tokens[a.tokens.length-1].type=n.name;return}}ne()}function Ah(){for(go();!tt()&&(p(n.bracketL)||p(n.questionDot));)k(n.questionDot),v(n.bracketL),k(n.bracketR)||(Qe(),v(n.bracketR))}function xo(){k(n.question)?xo():Ah()}function Zi(){xo(),!a.noAnonFunctionType&&k(n.arrow)&&Qe()}function ea(){for(k(n.bitwiseAND),Zi();k(n.bitwiseAND);)Zi()}function Ph(){for(k(n.bitwiseOR),ea();k(n.bitwiseOR);)ea()}function Qe(){Ph()}function ir(){St()}function ko(){J(),p(n.colon)&&ir()}function mi(){(p(n.plus)||p(n.minus))&&(w(),a.tokens[a.tokens.length-1].isType=!0)}function Nh(e){p(n.colon)&&ci(),cn(!1,e)}function Rh(e,t,r){if(p(n.questionDot)&&Te()===n.lessThan){if(t){r.stop=!0;return}w(),er(),v(n.parenL),Ut();return}else if(!t&&p(n.lessThan)){const s=a.snapshot();if(er(),v(n.parenL),Ut(),a.error)a.restoreFromSnapshot(s);else return}ni(e,t,r)}function Lh(){if(p(n.lessThan)){const e=a.snapshot();er(),a.error&&a.restoreFromSnapshot(e)}}function Dh(){if(p(n.name)&&a.contextualKeyword===d._interface){const e=ae(0);return w(),ui(),ie(e),!0}else if(U(d._enum))return bo(),!0;return!1}function Oh(){return U(d._enum)?(bo(),!0):!1}function Mh(e){if(e===d._declare){if(p(n._class)||p(n.name)||p(n._function)||p(n._var)||p(n._export)){const t=ae(1);js(),ie(t)}}else if(p(n.name)){if(e===d._interface){const t=ae(1);ui(),ie(t)}else if(e===d._type){const t=ae(1);pi(),ie(t)}else if(e===d._opaque){const t=ae(1);hi(!1),ie(t)}}Se()}function jh(){return U(d._type)||U(d._interface)||U(d._opaque)||U(d._enum)}function Fh(){return p(n.name)&&(a.contextualKeyword===d._type||a.contextualKeyword===d._interface||a.contextualKeyword===d._opaque||a.contextualKeyword===d._enum)}function Bh(){if(U(d._type)){const e=ae(1);w(),p(n.braceL)?(xi(),Zr()):pi(),ie(e)}else if(U(d._opaque)){const e=ae(1);w(),hi(!1),ie(e)}else if(U(d._interface)){const e=ae(1);w(),ui(),ie(e)}else rt(!0)}function Vh(){return p(n.star)||U(d._type)&&Te()===n.star}function $h(){if(Fe(d._type)){const e=ae(2);Bs(),ie(e)}else Bs()}function qh(e){if(e&&p(n.lessThan)&&er(),U(d._implements)){const t=ae(0);w(),a.tokens[a.tokens.length-1].type=n._implements;do zn(),p(n.lessThan)&&er();while(k(n.comma));ie(t)}}function Uh(){p(n.lessThan)&&(gt(),p(n.parenL)||ne())}function zh(){const e=ae(0);k(n.question),p(n.colon)&&ir(),ie(e)}function Hh(){if(p(n._typeof)||U(d._type)){const e=nn();(lh(e)||e.type===n.braceL||e.type===n.star)&&w()}}function Wh(){const e=a.contextualKeyword===d._type||a.type===n._typeof;e?w():J(),U(d._as)&&!Ws(d._as)?(J(),e&&!p(n.name)&&!(a.type&n.IS_KEYWORD)||J()):(e&&(p(n.name)||a.type&n.IS_KEYWORD)&&J(),Fe(d._as)&&J())}function Gh(){if(p(n.lessThan)){const e=ae(0);gt(),ie(e)}}function Xh(){p(n.colon)&&ir()}function Yh(){if(p(n.colon)){const e=a.noAnonFunctionType;a.noAnonFunctionType=!0,ir(),a.noAnonFunctionType=e}}function Kh(e,t){if(p(n.lessThan)){const r=a.snapshot();let s=wt(e,t);if(a.error)a.restoreFromSnapshot(r),a.type=n.typeParameterStart;else return s;const i=ae(0);if(gt(),ie(i),s=wt(e,t),s)return!0;ne()}return wt(e,t)}function Qh(){if(p(n.colon)){const e=ae(0),t=a.snapshot(),r=a.noAnonFunctionType;a.noAnonFunctionType=!0,ci(),a.noAnonFunctionType=r,tt()&&ne(),p(n.arrow)||ne(),a.error&&a.restoreFromSnapshot(t),ie(e)}return k(n.arrow)}function Jh(e,t=!1){if(a.tokens[a.tokens.length-1].contextualKeyword===d._async&&p(n.lessThan)){const r=a.snapshot();if(Zh()&&!a.error)return;a.restoreFromSnapshot(r)}co(e,t)}function Zh(){a.scopeDepth++;const e=a.tokens.length;return _r(),Os()?(Jr(e),!0):!1}function bo(){Re(d._enum),a.tokens[a.tokens.length-1].type=n._enum,J(),ef()}function ef(){Fe(d._of)&&w(),v(n.braceL),tf(),v(n.braceR)}function tf(){for(;!p(n.braceR)&&!a.error&&!k(n.ellipsis);)rf(),p(n.braceR)||v(n.comma)}function rf(){J(),k(n.eq)&&w()}function nf(){if(Hn(n.eof),a.scopes.push(new _t(0,a.tokens.length,!0)),a.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${a.scopeDepth}`);return new zf(a.tokens,a.scopes)}function rt(e){me&&Dh()||(p(n.at)&&gi(),sf(e))}function sf(e){if(pe&&vp())return;const t=a.type;switch(t){case n._break:case n._continue:of();return;case n._debugger:cf();return;case n._do:lf();return;case n._for:uf();return;case n._function:if(Te()===n.dot)break;e||ne(),ff();return;case n._class:e||ne(),rr(!0);return;case n._if:df();return;case n._return:mf();return;case n._switch:gf();return;case n._throw:xf();return;case n._try:bf();return;case n._let:case n._const:e||ne();case n._var:kn(t!==n._var);return;case n._while:yf();return;case n.braceL:zt();return;case n.semi:vf();return;case n._export:case n._import:{const i=Te();if(i===n.parenL||i===n.dot)break;w(),t===n._import?To():Eo();return}case n.name:if(a.contextualKeyword===d._async){const i=a.start,o=a.snapshot();if(w(),p(n._function)&&!tt()){v(n._function),tr(i,!0);return}else a.restoreFromSnapshot(o)}else if(a.contextualKeyword===d._using&&!wa()&&Te()===n.name){kn(!0);return}else if(yo()){Re(d._await),kn(!0);return}}const r=a.tokens.length;Ue();let s=null;if(a.tokens.length===r+1){const i=a.tokens[a.tokens.length-1];i.type===n.name&&(s=i.contextualKeyword)}if(s==null){Se();return}k(n.colon)?wf():_f(s)}function yo(){if(!U(d._await))return!1;const e=a.snapshot();return w(),!U(d._using)||Xe()||(w(),!p(n.name)||Xe())?(a.restoreFromSnapshot(e),!1):(a.restoreFromSnapshot(e),!0)}function gi(){for(;p(n.at);)vo()}function vo(){if(w(),k(n.parenL))Ue(),v(n.parenR);else{for(J();k(n.dot);)J();af()}}function af(){pe?Op():wo()}function wo(){k(n.parenL)&&Ut()}function of(){w(),yt()||(J(),Se())}function cf(){w(),Se()}function lf(){w(),rt(!1),v(n._while),Un(),k(n.semi)}function uf(){a.scopeDepth++;const e=a.tokens.length;hf();const t=a.tokens.length;a.scopes.push(new _t(e,t,!1)),a.scopeDepth--}function pf(){return!(!U(d._using)||Ws(d._of))}function hf(){w();let e=!1;if(U(d._await)&&(e=!0,w()),v(n.parenL),p(n.semi)){e&&ne(),ys();return}const t=yo();if(t||p(n._var)||p(n._let)||p(n._const)||pf()){if(t&&Re(d._await),w(),_o(!0,a.type!==n._var),p(n._in)||U(d._of)){ta(e);return}ys();return}if(Ue(!0),p(n._in)||U(d._of)){ta(e);return}e&&ne(),ys()}function ff(){const e=a.start;w(),tr(e,!0)}function df(){w(),Un(),rt(!1),k(n._else)&&rt(!1)}function mf(){w(),yt()||(Ue(),Se())}function gf(){w(),Un(),a.scopeDepth++;const e=a.tokens.length;for(v(n.braceL);!p(n.braceR)&&!a.error;)if(p(n._case)||p(n._default)){const r=p(n._case);w(),r&&Ue(),v(n.colon)}else rt(!0);w();const t=a.tokens.length;a.scopes.push(new _t(e,t,!1)),a.scopeDepth--}function xf(){w(),Ue(),Se()}function kf(){Vn(!0),pe&&vr()}function bf(){if(w(),zt(),p(n._catch)){w();let e=null;if(p(n.parenL)&&(a.scopeDepth++,e=a.tokens.length,v(n.parenL),kf(),v(n.parenR)),zt(),e!=null){const t=a.tokens.length;a.scopes.push(new _t(e,t,!1)),a.scopeDepth--}}k(n._finally)&&zt()}function kn(e){w(),_o(!1,e),Se()}function yf(){w(),Un(),rt(!1)}function vf(){w()}function wf(){rt(!0)}function _f(e){pe?_p(e):me?Mh(e):Se()}function zt(e=!1,t=0){const r=a.tokens.length;a.scopeDepth++,v(n.braceL),t&&(a.tokens[a.tokens.length-1].contextId=t),Hn(n.braceR),t&&(a.tokens[a.tokens.length-1].contextId=t);const s=a.tokens.length;a.scopes.push(new _t(r,s,e)),a.scopeDepth--}function Hn(e){for(;!k(e)&&!a.error;)rt(!0)}function ys(){v(n.semi),p(n.semi)||Ue(),v(n.semi),p(n.parenR)||Ue(),v(n.parenR),rt(!1)}function ta(e){e?Fe(d._of):w(),Ue(),v(n.parenR),rt(!1)}function _o(e,t){for(;;){if(Sf(t),k(n.eq)){const r=a.tokens.length-1;ze(e),a.tokens[r].rhsEndIndex=a.tokens.length}if(!k(n.comma))break}}function Sf(e){Vn(e),pe?Tp():me&&Xh()}function tr(e,t,r=!1){p(n.star)&&w(),t&&!r&&!p(n.name)&&!p(n._yield)&&ne();let s=null;p(n.name)&&(t||(s=a.tokens.length,a.scopeDepth++),Wt(!1));const i=a.tokens.length;a.scopeDepth++,_r(),po(e);const o=a.tokens.length;a.scopes.push(new _t(i,o,!0)),a.scopeDepth--,s!==null&&(a.scopes.push(new _t(s,o,!0)),a.scopeDepth--)}function _r(e=!1,t=0){pe?Cp():me&&Gh(),v(n.parenL),t&&(a.tokens[a.tokens.length-1].contextId=t),Ks(n.parenR,!1,!1,e,t),t&&(a.tokens[a.tokens.length-1].contextId=t)}function rr(e,t=!1){const r=Xr();w(),a.tokens[a.tokens.length-1].contextId=r,a.tokens[a.tokens.length-1].isExpression=!e;let s=null;e||(s=a.tokens.length,a.scopeDepth++),Tf(e,t),Af();const i=a.tokens.length;if(If(r),!a.error&&(a.tokens[i].contextId=r,a.tokens[a.tokens.length-1].contextId=r,s!==null)){const o=a.tokens.length;a.scopes.push(new _t(s,o,!1)),a.scopeDepth--}}function So(){return p(n.eq)||p(n.semi)||p(n.braceR)||p(n.bang)||p(n.colon)}function Io(){return p(n.parenL)||p(n.lessThan)}function If(e){for(v(n.braceL);!k(n.braceR)&&!a.error;){if(k(n.semi))continue;if(p(n.at)){vo();continue}const t=a.start;Ef(t,e)}}function Ef(e,t){pe&&Qs([d._declare,d._public,d._protected,d._private,d._override]);let r=!1;if(p(n.name)&&a.contextualKeyword===d._static){if(J(),Io()){Vr(e,!1);return}else if(So()){bn();return}if(a.tokens[a.tokens.length-1].type=n._static,r=!0,p(n.braceL)){a.tokens[a.tokens.length-1].contextId=t,zt();return}}Cf(e,r,t)}function Cf(e,t,r){if(pe&&wp(t))return;if(k(n.star)){Fr(r),Vr(e,!1);return}Fr(r);let s=!1;const i=a.tokens[a.tokens.length-1];i.contextualKeyword===d._constructor&&(s=!0),ra(),Io()?Vr(e,s):So()?bn():i.contextualKeyword===d._async&&!yt()?(a.tokens[a.tokens.length-1].type=n._async,p(n.star)&&w(),Fr(r),ra(),Vr(e,!1)):(i.contextualKeyword===d._get||i.contextualKeyword===d._set)&&!(yt()&&p(n.star))?(i.contextualKeyword===d._get?a.tokens[a.tokens.length-1].type=n._get:a.tokens[a.tokens.length-1].type=n._set,Fr(r),Vr(e,!1)):i.contextualKeyword===d._accessor&&!yt()?(Fr(r),bn()):yt()?bn():ne()}function Vr(e,t){pe?sr():me&&p(n.lessThan)&&gt(),Ms(e,t)}function Fr(e){Qr(e)}function ra(){if(pe){const e=ae(0);k(n.question),ie(e)}}function bn(){if(pe?(Ca(n.bang),vr()):me&&p(n.colon)&&ir(),p(n.eq)){const e=a.tokens.length;w(),ze(),a.tokens[e].rhsEndIndex=a.tokens.length}Se()}function Tf(e,t=!1){pe&&(!e||t)&&U(d._implements)||(p(n.name)&&Wt(!0),pe?sr():me&&p(n.lessThan)&&gt())}function Af(){let e=!1;k(n._extends)?(oo(),e=!0):e=!1,pe?Ip(e):me&&qh(e)}function Eo(){const e=a.tokens.length-1;pe&&xp()||(Lf()?Df():Rf()?(J(),p(n.comma)&&Te()===n.star?(v(n.comma),v(n.star),Re(d._as),J()):Co(),Zr()):k(n._default)?Pf():Mf()?Nf():(xi(),Zr()),a.tokens[e].rhsEndIndex=a.tokens.length)}function Pf(){if(pe&&yp()||me&&Oh())return;const e=a.start;k(n._function)?tr(e,!0,!0):U(d._async)&&Te()===n._function?(Fe(d._async),k(n._function),tr(e,!0,!0)):p(n._class)?rr(!0,!0):p(n.at)?(gi(),rr(!0,!0)):(ze(),Se())}function Nf(){pe?Sp():me?Bh():rt(!0)}function Rf(){if(pe&&to())return!1;if(me&&Fh())return!1;if(p(n.name))return a.contextualKeyword!==d._async;if(!p(n._default))return!1;const e=Gs(),t=nn(),r=t.type===n.name&&t.contextualKeyword===d._from;if(t.type===n.comma)return!0;if(r){const s=N.charCodeAt(Ta(e+4));return s===g.quotationMark||s===g.apostrophe}return!1}function Co(){k(n.comma)&&xi()}function Zr(){Fe(d._from)&&(Pt(),Ao()),Se()}function Lf(){return me?Vh():p(n.star)}function Df(){me?$h():Bs()}function Bs(){v(n.star),U(d._as)?Of():Zr()}function Of(){w(),a.tokens[a.tokens.length-1].type=n._as,J(),Co(),Zr()}function Mf(){return pe&&to()||me&&jh()||a.type===n._var||a.type===n._const||a.type===n._let||a.type===n._function||a.type===n._class||U(d._async)||p(n.at)}function xi(){let e=!0;for(v(n.braceL);!k(n.braceR)&&!a.error;){if(e)e=!1;else if(v(n.comma),k(n.braceR))break;jf()}}function jf(){if(pe){bp();return}J(),a.tokens[a.tokens.length-1].identifierRole=G.ExportAccess,Fe(d._as)&&J()}function Ff(){const e=a.snapshot();return Re(d._module),Fe(d._from)?U(d._from)?(a.restoreFromSnapshot(e),!0):(a.restoreFromSnapshot(e),!1):p(n.comma)?(a.restoreFromSnapshot(e),!1):(a.restoreFromSnapshot(e),!0)}function Bf(){U(d._module)&&Ff()&&w()}function To(){if(pe&&p(n.name)&&Te()===n.eq){Ls();return}if(pe&&U(d._type)){const e=nn();if(e.type===n.name&&e.contextualKeyword!==d._from){if(Re(d._type),Te()===n.eq){Ls();return}}else(e.type===n.star||e.type===n.braceL)&&Re(d._type)}p(n.string)||(Bf(),$f(),Re(d._from)),Pt(),Ao(),Se()}function Vf(){return p(n.name)}function na(){_n()}function $f(){me&&Hh();let e=!0;if(!(Vf()&&(na(),!k(n.comma)))){if(p(n.star)){w(),Re(d._as),na();return}for(v(n.braceL);!k(n.braceR)&&!a.error;){if(e)e=!1;else if(k(n.colon)&&ne("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),v(n.comma),k(n.braceR))break;qf()}}}function qf(){if(pe){kp();return}if(me){Wh();return}_n(),U(d._as)&&(a.tokens[a.tokens.length-1].identifierRole=G.ImportAccess,w(),_n())}function Ao(){(p(n._with)||U(d._assert)&&!Xe())&&(w(),oi(!1,!1))}function Uf(){return a.pos===0&&N.charCodeAt(0)===g.numberSign&&N.charCodeAt(1)===g.exclamationMark&&Na(2),Pa(),nf()}class zf{constructor(t,r){this.tokens=t,this.scopes=r}}function Hf(e,t,r,s){if(s&&r)throw new Error("Cannot combine flow and typescript plugins.");fl(e,t,r,s);const i=Uf();if(a.error)throw ul(a.error);return i}function Wf(e){let t=e.currentIndex(),r=0;const s=e.currentToken();do{const i=e.tokens[t];if(i.isOptionalChainStart&&r++,i.isOptionalChainEnd&&r--,r+=i.numNullishCoalesceStarts,r-=i.numNullishCoalesceEnds,i.contextualKeyword===d._await&&i.identifierRole==null&&i.scopeDepth===s.scopeDepth)return!0;t+=1}while(r>0&&t<e.tokens.length);return!1}class qr{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(t,r,s,i,o){this.code=t,this.tokens=r,this.isFlowEnabled=s,this.disableESTransforms=i,this.helperManager=o,qr.prototype.__init.call(this),qr.prototype.__init2.call(this),qr.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(t){this.resultCode=t.resultCode,this.tokenIndex=t.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(t){const r=this.resultCode.slice(t.resultCode.length);return this.resultCode=t.resultCode,r}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(t,r){return this.matches1AtIndex(t,n.name)&&this.tokens[t].contextualKeyword===r}identifierNameAtIndex(t){return this.identifierNameForToken(this.tokens[t])}identifierNameAtRelativeIndex(t){return this.identifierNameForToken(this.tokenAtRelativeIndex(t))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(t){return this.code.slice(t.start,t.end)}rawCodeForToken(t){return this.code.slice(t.start,t.end)}stringValueAtIndex(t){return this.stringValueForToken(this.tokens[t])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(t){return this.code.slice(t.start+1,t.end-1)}matches1AtIndex(t,r){return this.tokens[t].type===r}matches2AtIndex(t,r,s){return this.tokens[t].type===r&&this.tokens[t+1].type===s}matches3AtIndex(t,r,s,i){return this.tokens[t].type===r&&this.tokens[t+1].type===s&&this.tokens[t+2].type===i}matches1(t){return this.tokens[this.tokenIndex].type===t}matches2(t,r){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r}matches3(t,r,s){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s}matches4(t,r,s,i){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===i}matches5(t,r,s,i,o){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===i&&this.tokens[this.tokenIndex+4].type===o}matchesContextual(t){return this.matchesContextualAtIndex(this.tokenIndex,t)}matchesContextIdAndLabel(t,r){return this.matches1(t)&&this.currentToken().contextId===r}previousWhitespaceAndComments(){let t=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(t=t.replace(/@flow/g,"")),t}replaceToken(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(t){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let t=0;for(;!this.isAtEnd();){if(this.matches1(n.braceL))t++;else if(this.matches1(n.braceR)){if(t===0)return;t--}this.removeToken()}}copyExpectedToken(t){if(this.tokens[this.tokenIndex].type!==t)throw new Error(`Expected token ${t}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=t,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const t=this.currentToken();if((t.numNullishCoalesceStarts||t.isOptionalChainStart)&&(t.isAsyncOperation=Wf(this)),!this.disableESTransforms){if(t.numNullishCoalesceStarts)for(let r=0;r<t.numNullishCoalesceStarts;r++)t.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";t.isOptionalChainStart&&(t.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===n._delete?t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const t=this.currentToken();if(t.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),t.numNullishCoalesceEnds&&!this.disableESTransforms)for(let r=0;r<t.numNullishCoalesceEnds;r++)this.resultCode+="))"}appendCode(t){this.resultCode+=t}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const t=this.currentToken();return this.code.slice(t.start,t.end)}tokenAtRelativeIndex(t){return this.tokens[this.tokenIndex+t]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function Gf(e,t,r,s){const i=t.snapshot(),o=Xf(t);let c=[];const u=[],f=[];let h=null;const m=[],x=[],_=t.currentToken().contextId;if(_==null)throw new Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(n.braceR,_);)if(t.matchesContextual(d._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:c,constructorInsertPos:h}=sa(t));else if(t.matches1(n.semi))s||x.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{const y=t.currentIndex();let L=!1,O=!1,F=!1;for(;An(t.currentToken());)t.matches1(n._static)&&(L=!0),t.matches1(n.hash)&&(O=!0),(t.matches1(n._declare)||t.matches1(n._abstract))&&(F=!0),t.nextToken();if(L&&t.matches1(n.braceL)){vs(t,_);continue}if(O){vs(t,_);continue}if(t.matchesContextual(d._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:c,constructorInsertPos:h}=sa(t));continue}const K=t.currentIndex();if(Yf(t),t.matches1(n.lessThan)||t.matches1(n.parenL)){vs(t,_);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(n.eq)){const P=t.currentIndex(),j=t.currentToken().rhsEndIndex;if(j==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(t.nextToken();t.currentIndex()<j;)e.processToken();let D;L?(D=r.claimFreeName("__initStatic"),f.push(D)):(D=r.claimFreeName("__init"),u.push(D)),m.push({initializerName:D,equalsIndex:P,start:K,end:t.currentIndex()})}else(!s||F)&&x.push({start:y,end:t.currentIndex()})}return t.restoreToSnapshot(i),s?{headerInfo:o,constructorInitializerStatements:c,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:h,fields:[],rangesToRemove:x}:{headerInfo:o,constructorInitializerStatements:c,instanceInitializerNames:u,staticInitializerNames:f,constructorInsertPos:h,fields:m,rangesToRemove:x}}function vs(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;An(e.tokenAtRelativeIndex(-1));)e.previousToken()}function Xf(e){const t=e.currentToken(),r=t.contextId;if(r==null)throw new Error("Expected context ID on class token.");const s=t.isExpression;if(s==null)throw new Error("Expected isExpression on class token.");let i=null,o=!1;for(e.nextToken(),e.matches1(n.name)&&(i=e.identifierName());!e.matchesContextIdAndLabel(n.braceL,r);)e.matches1(n._extends)&&!e.currentToken().isType&&(o=!0),e.nextToken();return{isExpression:s,className:i,hasSuperclass:o}}function sa(e){const t=[];e.nextToken();const r=e.currentToken().contextId;if(r==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!e.matchesContextIdAndLabel(n.parenR,r);)if(e.currentToken().contextId===r){if(e.nextToken(),An(e.currentToken())){for(e.nextToken();An(e.currentToken());)e.nextToken();const o=e.currentToken();if(o.type!==n.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const c=e.identifierNameForToken(o);t.push(`this.${c} = ${c}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let s=e.currentIndex(),i=!1;for(;!e.matchesContextIdAndLabel(n.braceR,r);){if(!i&&e.matches2(n._super,n.parenL)){e.nextToken();const o=e.currentToken().contextId;if(o==null)throw new Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(n.parenR,o);)e.nextToken();s=e.currentIndex(),i=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:s}}function An(e){return[n._async,n._get,n._set,n.plus,n.minus,n._readonly,n._static,n._public,n._private,n._protected,n._override,n._abstract,n.star,n._declare,n.hash].includes(e.type)}function Yf(e){if(e.matches1(n.bracketL)){const r=e.currentToken().contextId;if(r==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(n.bracketR,r);)e.nextToken();e.nextToken()}else e.nextToken()}function Po(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(n.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(n.dot);)e.removeToken(),e.removeToken()}const No={typeDeclarations:new Set,valueDeclarations:new Set};function Ro(e){const t=new Set,r=new Set;for(let s=0;s<e.tokens.length;s++){const i=e.tokens[s];i.type===n.name&&Ea(i)&&(i.isType?t.add(e.identifierNameForToken(i)):r.add(e.identifierNameForToken(i)))}return{typeDeclarations:t,valueDeclarations:r}}function Lo(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,n.braceR);)t++;return e.matchesContextualAtIndex(t+1,d._from)&&e.matches1AtIndex(t+2,n.string)}function Jt(e){(e.matches2(n._with,n.braceL)||e.matches2(n.name,n.braceL)&&e.matchesContextual(d._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function Do(e,t,r,s){if(!e||t)return!1;const i=r.currentToken();if(i.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const o=i.rhsEndIndex-r.currentIndex();if(o!==3&&!(o===4&&r.matches1AtIndex(i.rhsEndIndex-1,n.semi)))return!1;const c=r.tokenAtRelativeIndex(2);if(c.type!==n.name)return!1;const u=r.identifierNameForToken(c);return s.typeDeclarations.has(u)&&!s.valueDeclarations.has(u)}class Ur extends mt{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(t,r,s,i,o,c,u,f,h,m,x,_){super(),this.rootTransformer=t,this.tokens=r,this.importProcessor=s,this.nameManager=i,this.helperManager=o,this.reactHotLoaderTransformer=c,this.enableLegacyBabel5ModuleInterop=u,this.enableLegacyTypeScriptModuleInterop=f,this.isTypeScriptTransformEnabled=h,this.isFlowTransformEnabled=m,this.preserveDynamicImport=x,this.keepUnusedImports=_,Ur.prototype.__init.call(this),Ur.prototype.__init2.call(this),Ur.prototype.__init3.call(this),this.declarationInfo=h?Ro(r):No}getPrefixCode(){let t="";return this.hadExport&&(t+='Object.defineProperty(exports, "__esModule", {value: true});'),t}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
171
+ `};class wn{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,wn.prototype.__init.call(this),wn.prototype.__init2.call(this)}getHelperName(t){let r=this.helperNames[t];return r||(r=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=r,r)}emitHelpers(){let t="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[r,s]of Object.entries(fu)){const i=this.helperNames[r];let o=s;r==="optionalChainDelete"?o=o.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):r==="asyncOptionalChainDelete"?o=o.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):r==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),o=o.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),i&&(t+=" ",t+=o.replace(r,i).replace(/\s+/g," ").trim())}return t}}function Hi(e,t,r){du(e,r)&&mu(e,t,r)}function du(e,t){for(const r of e.tokens)if(r.type===n.name&&!r.isType&&gl(r)&&t.has(e.identifierNameForToken(r)))return!0;return!1}function mu(e,t,r){const s=[];let i=t.length-1;for(let o=e.tokens.length-1;;o--){for(;s.length>0&&s[s.length-1].startTokenIndex===o+1;)s.pop();for(;i>=0&&t[i].endTokenIndex===o+1;)s.push(t[i]),i--;if(o<0)break;const c=e.tokens[o],u=e.identifierNameForToken(c);if(s.length>1&&!c.isType&&c.type===n.name&&r.has(u)){if(xl(c))Wi(s[s.length-1],e,u);else if(kl(c)){let f=s.length-1;for(;f>0&&!s[f].isFunctionScope;)f--;if(f<0)throw new Error("Did not find parent function scope.");Wi(s[f],e,u)}}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}function Wi(e,t,r){for(let s=e.startTokenIndex;s<e.endTokenIndex;s++){const i=t.tokens[s];(i.type===n.name||i.type===n.jsxName)&&t.identifierNameForToken(i)===r&&(i.shadowsGlobal=!0)}}function gu(e,t){const r=[];for(const s of t)s.type===n.name&&r.push(e.slice(s.start,s.end));return r}class Xs{__init(){this.usedNames=new Set}constructor(t,r){Xs.prototype.__init.call(this),this.usedNames=new Set(gu(t,r))}claimFreeName(t){const r=this.findFreeName(t);return this.usedNames.add(r),r}findFreeName(t){if(!this.usedNames.has(t))return t;let r=2;for(;this.usedNames.has(t+String(r));)r++;return t+String(r)}}var be={},As={},vt={},xu=Zt&&Zt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var o in i)i.hasOwnProperty(o)&&(s[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function s(){this.constructor=t}t.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}();Object.defineProperty(vt,"__esModule",{value:!0});vt.DetailContext=vt.NoopContext=vt.VError=void 0;var Ua=function(e){xu(t,e);function t(r,s){var i=e.call(this,s)||this;return i.path=r,Object.setPrototypeOf(i,t.prototype),i}return t}(Error);vt.VError=Ua;var ku=function(){function e(){}return e.prototype.fail=function(t,r,s){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(t){},e}();vt.NoopContext=ku;var za=function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(t,r,s){return this._propNames.push(t),this._messages.push(r),this._score+=s,!1},e.prototype.unionResolver=function(){return new bu},e.prototype.resolveUnion=function(t){for(var r,s,i=t,o=null,c=0,u=i.contexts;c<u.length;c++){var f=u[c];(!o||f._score>=o._score)&&(o=f)}o&&o._score>0&&((r=this._propNames).push.apply(r,o._propNames),(s=this._messages).push.apply(s,o._messages))},e.prototype.getError=function(t){for(var r=[],s=this._propNames.length-1;s>=0;s--){var i=this._propNames[s];t+=typeof i=="number"?"["+i+"]":i?"."+i:"";var o=this._messages[s];o&&r.push(t+" "+o)}return new Ua(t,r.join("; "))},e.prototype.getErrorDetail=function(t){for(var r=[],s=this._propNames.length-1;s>=0;s--){var i=this._propNames[s];t+=typeof i=="number"?"["+i+"]":i?"."+i:"";var o=this._messages[s];o&&r.push({path:t,message:o})}for(var c=null,s=r.length-1;s>=0;s--)c&&(r[s].nested=[c]),c=r[s];return c},e}();vt.DetailContext=za;var bu=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var t=new za;return this.contexts.push(t),t},e}();(function(e){var t=Zt&&Zt.__extends||function(){var b=function(S,E){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,M){A.__proto__=M}||function(A,M){for(var Y in M)M.hasOwnProperty(Y)&&(A[Y]=M[Y])},b(S,E)};return function(S,E){b(S,E);function A(){this.constructor=S}S.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var r=vt,s=function(){function b(){}return b}();e.TType=s;function i(b){return typeof b=="string"?c(b):b}function o(b,S){var E=b[S];if(!E)throw new Error("Unknown type "+S);return E}function c(b){return new u(b)}e.name=c;var u=function(b){t(S,b);function S(E){var A=b.call(this)||this;return A.name=E,A._failMsg="is not a "+E,A}return S.prototype.getChecker=function(E,A,M){var Y=this,Z=o(E,this.name),le=Z.getChecker(E,A,M);return Z instanceof ee||Z instanceof S?le:function(we,oe){return le(we,oe)?!0:oe.fail(null,Y._failMsg,0)}},S}(s);e.TName=u;function f(b){return new p(b)}e.lit=f;var p=function(b){t(S,b);function S(E){var A=b.call(this)||this;return A.value=E,A.name=JSON.stringify(E),A._failMsg="is not "+A.name,A}return S.prototype.getChecker=function(E,A){var M=this;return function(Y,Z){return Y===M.value?!0:Z.fail(null,M._failMsg,-1)}},S}(s);e.TLiteral=p;function m(b){return new x(i(b))}e.array=m;var x=function(b){t(S,b);function S(E){var A=b.call(this)||this;return A.ttype=E,A}return S.prototype.getChecker=function(E,A){var M=this.ttype.getChecker(E,A);return function(Y,Z){if(!Array.isArray(Y))return Z.fail(null,"is not an array",0);for(var le=0;le<Y.length;le++){var we=M(Y[le],Z);if(!we)return Z.fail(le,null,1)}return!0}},S}(s);e.TArray=x;function _(){for(var b=[],S=0;S<arguments.length;S++)b[S]=arguments[S];return new y(b.map(function(E){return i(E)}))}e.tuple=_;var y=function(b){t(S,b);function S(E){var A=b.call(this)||this;return A.ttypes=E,A}return S.prototype.getChecker=function(E,A){var M=this.ttypes.map(function(Z){return Z.getChecker(E,A)}),Y=function(Z,le){if(!Array.isArray(Z))return le.fail(null,"is not an array",0);for(var we=0;we<M.length;we++){var oe=M[we](Z[we],le);if(!oe)return le.fail(we,null,1)}return!0};return A?function(Z,le){return Y(Z,le)?Z.length<=M.length?!0:le.fail(M.length,"is extraneous",2):!1}:Y},S}(s);e.TTuple=y;function L(){for(var b=[],S=0;S<arguments.length;S++)b[S]=arguments[S];return new O(b.map(function(E){return i(E)}))}e.union=L;var O=function(b){t(S,b);function S(E){var A=b.call(this)||this;A.ttypes=E;var M=E.map(function(Z){return Z instanceof u||Z instanceof p?Z.name:null}).filter(function(Z){return Z}),Y=E.length-M.length;return M.length?(Y>0&&M.push(Y+" more"),A._failMsg="is none of "+M.join(", ")):A._failMsg="is none of "+Y+" types",A}return S.prototype.getChecker=function(E,A){var M=this,Y=this.ttypes.map(function(Z){return Z.getChecker(E,A)});return function(Z,le){for(var we=le.unionResolver(),oe=0;oe<Y.length;oe++){var Ne=Y[oe](Z,we.createContext());if(Ne)return!0}return le.resolveUnion(we),le.fail(null,M._failMsg,0)}},S}(s);e.TUnion=O;function F(){for(var b=[],S=0;S<arguments.length;S++)b[S]=arguments[S];return new K(b.map(function(E){return i(E)}))}e.intersection=F;var K=function(b){t(S,b);function S(E){var A=b.call(this)||this;return A.ttypes=E,A}return S.prototype.getChecker=function(E,A){var M=new Set,Y=this.ttypes.map(function(Z){return Z.getChecker(E,A,M)});return function(Z,le){var we=Y.every(function(oe){return oe(Z,le)});return we?!0:le.fail(null,null,0)}},S}(s);e.TIntersection=K;function P(b){return new j(b)}e.enumtype=P;var j=function(b){t(S,b);function S(E){var A=b.call(this)||this;return A.members=E,A.validValues=new Set,A._failMsg="is not a valid enum value",A.validValues=new Set(Object.keys(E).map(function(M){return E[M]})),A}return S.prototype.getChecker=function(E,A){var M=this;return function(Y,Z){return M.validValues.has(Y)?!0:Z.fail(null,M._failMsg,0)}},S}(s);e.TEnumType=j;function D(b,S){return new W(b,S)}e.enumlit=D;var W=function(b){t(S,b);function S(E,A){var M=b.call(this)||this;return M.enumName=E,M.prop=A,M._failMsg="is not "+E+"."+A,M}return S.prototype.getChecker=function(E,A){var M=this,Y=o(E,this.enumName);if(!(Y instanceof j))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var Z=Y.members[this.prop];if(!Y.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(le,we){return le===Z?!0:we.fail(null,M._failMsg,-1)}},S}(s);e.TEnumLiteral=W;function X(b){return Object.keys(b).map(function(S){return q(S,b[S])})}function q(b,S){return S instanceof ye?new De(b,S.ttype,!0):new De(b,i(S),!1)}function T(b,S){return new B(b,X(S))}e.iface=T;var B=function(b){t(S,b);function S(E,A){var M=b.call(this)||this;return M.bases=E,M.props=A,M.propSet=new Set(A.map(function(Y){return Y.name})),M}return S.prototype.getChecker=function(E,A,M){var Y=this,Z=this.bases.map(function(ve){return o(E,ve).getChecker(E,A)}),le=this.props.map(function(ve){return ve.ttype.getChecker(E,A)}),we=new r.NoopContext,oe=this.props.map(function(ve,qe){return!ve.isOpt&&!le[qe](void 0,we)}),Ne=function(ve,qe){if(typeof ve!="object"||ve===null)return qe.fail(null,"is not an object",0);for(var Me=0;Me<Z.length;Me++)if(!Z[Me](ve,qe))return!1;for(var Me=0;Me<le.length;Me++){var nt=Y.props[Me].name,Dt=ve[nt];if(Dt===void 0){if(oe[Me])return qe.fail(nt,"is missing",1)}else{var Ot=le[Me](Dt,qe);if(!Ot)return qe.fail(nt,null,1)}}return!0};if(!A)return Ne;var Ce=this.propSet;return M&&(this.propSet.forEach(function(ve){return M.add(ve)}),Ce=M),function(ve,qe){if(!Ne(ve,qe))return!1;for(var Me in ve)if(!Ce.has(Me))return qe.fail(Me,"is extraneous",2);return!0}},S}(s);e.TIface=B;function z(b){return new ye(i(b))}e.opt=z;var ye=function(b){t(S,b);function S(E){var A=b.call(this)||this;return A.ttype=E,A}return S.prototype.getChecker=function(E,A){var M=this.ttype.getChecker(E,A);return function(Y,Z){return Y===void 0||M(Y,Z)}},S}(s);e.TOptional=ye;var De=function(){function b(S,E,A){this.name=S,this.ttype=E,this.isOpt=A}return b}();e.TProp=De;function $e(b){for(var S=[],E=1;E<arguments.length;E++)S[E-1]=arguments[E];return new Oe(new xe(S),i(b))}e.func=$e;var Oe=function(b){t(S,b);function S(E,A){var M=b.call(this)||this;return M.paramList=E,M.result=A,M}return S.prototype.getChecker=function(E,A){return function(M,Y){return typeof M=="function"?!0:Y.fail(null,"is not a function",0)}},S}(s);e.TFunc=Oe;function H(b,S,E){return new ce(b,i(S),!!E)}e.param=H;var ce=function(){function b(S,E,A){this.name=S,this.ttype=E,this.isOpt=A}return b}();e.TParam=ce;var xe=function(b){t(S,b);function S(E){var A=b.call(this)||this;return A.params=E,A}return S.prototype.getChecker=function(E,A){var M=this,Y=this.params.map(function(oe){return oe.ttype.getChecker(E,A)}),Z=new r.NoopContext,le=this.params.map(function(oe,Ne){return!oe.isOpt&&!Y[Ne](void 0,Z)}),we=function(oe,Ne){if(!Array.isArray(oe))return Ne.fail(null,"is not an array",0);for(var Ce=0;Ce<Y.length;Ce++){var ve=M.params[Ce];if(oe[Ce]===void 0){if(le[Ce])return Ne.fail(ve.name,"is missing",1)}else{var qe=Y[Ce](oe[Ce],Ne);if(!qe)return Ne.fail(ve.name,null,1)}}return!0};return A?function(oe,Ne){return we(oe,Ne)?oe.length<=Y.length?!0:Ne.fail(Y.length,"is extraneous",2):!1}:we},S}(s);e.TParamList=xe;var ee=function(b){t(S,b);function S(E,A){var M=b.call(this)||this;return M.validator=E,M.message=A,M}return S.prototype.getChecker=function(E,A){var M=this;return function(Y,Z){return M.validator(Y)?!0:Z.fail(null,M.message,0)}},S}(s);e.BasicType=ee,e.basicTypes={any:new ee(function(b){return!0},"is invalid"),number:new ee(function(b){return typeof b=="number"},"is not a number"),object:new ee(function(b){return typeof b=="object"&&b},"is not an object"),boolean:new ee(function(b){return typeof b=="boolean"},"is not a boolean"),string:new ee(function(b){return typeof b=="string"},"is not a string"),symbol:new ee(function(b){return typeof b=="symbol"},"is not a symbol"),void:new ee(function(b){return b==null},"is not void"),undefined:new ee(function(b){return b===void 0},"is not undefined"),null:new ee(function(b){return b===null},"is not null"),never:new ee(function(b){return!1},"is unexpected"),Date:new ee(Be("[object Date]"),"is not a Date"),RegExp:new ee(Be("[object RegExp]"),"is not a RegExp")};var Pe=Object.prototype.toString;function Be(b){return function(S){return typeof S=="object"&&S&&Pe.call(S)===b}}typeof Buffer<"u"&&(e.basicTypes.Buffer=new ee(function(b){return Buffer.isBuffer(b)},"is not a Buffer"));for(var te=function(b){e.basicTypes[b.name]=new ee(function(S){return S instanceof b},"is not a "+b.name)},ue=0,ke=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];ue<ke.length;ue++){var Le=ke[ue];te(Le)}})(As);(function(e){var t=Zt&&Zt.__spreadArrays||function(){for(var f=0,p=0,m=arguments.length;p<m;p++)f+=arguments[p].length;for(var x=Array(f),_=0,p=0;p<m;p++)for(var y=arguments[p],L=0,O=y.length;L<O;L++,_++)x[_]=y[L];return x};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var r=As,s=vt,i=As;Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var o=vt;Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return o.VError}});function c(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];for(var m=Object.assign.apply(Object,t([{},r.basicTypes],f)),x={},_=0,y=f;_<y.length;_++)for(var L=y[_],O=0,F=Object.keys(L);O<F.length;O++){var K=F[O];x[K]=new u(m,L[K])}return x}e.createCheckers=c;var u=function(){function f(p,m,x){if(x===void 0&&(x="value"),this.suite=p,this.ttype=m,this._path=x,this.props=new Map,m instanceof r.TIface)for(var _=0,y=m.props;_<y.length;_++){var L=y[_];this.props.set(L.name,L.ttype)}this.checkerPlain=this.ttype.getChecker(p,!1),this.checkerStrict=this.ttype.getChecker(p,!0)}return f.prototype.setReportedPath=function(p){this._path=p},f.prototype.check=function(p){return this._doCheck(this.checkerPlain,p)},f.prototype.test=function(p){return this.checkerPlain(p,new s.NoopContext)},f.prototype.validate=function(p){return this._doValidate(this.checkerPlain,p)},f.prototype.strictCheck=function(p){return this._doCheck(this.checkerStrict,p)},f.prototype.strictTest=function(p){return this.checkerStrict(p,new s.NoopContext)},f.prototype.strictValidate=function(p){return this._doValidate(this.checkerStrict,p)},f.prototype.getProp=function(p){var m=this.props.get(p);if(!m)throw new Error("Type has no property "+p);return new f(this.suite,m,this._path+"."+p)},f.prototype.methodArgs=function(p){var m=this._getMethod(p);return new f(this.suite,m.paramList)},f.prototype.methodResult=function(p){var m=this._getMethod(p);return new f(this.suite,m.result)},f.prototype.getArgs=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getArgs() applied to non-function");return new f(this.suite,this.ttype.paramList)},f.prototype.getResult=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getResult() applied to non-function");return new f(this.suite,this.ttype.result)},f.prototype.getType=function(){return this.ttype},f.prototype._doCheck=function(p,m){var x=new s.NoopContext;if(!p(m,x)){var _=new s.DetailContext;throw p(m,_),_.getError(this._path)}},f.prototype._doValidate=function(p,m){var x=new s.NoopContext;if(p(m,x))return null;var _=new s.DetailContext;return p(m,_),_.getErrorDetail(this._path)},f.prototype._getMethod=function(p){var m=this.props.get(p);if(!m)throw new Error("Type has no property "+p);if(!(m instanceof r.TFunc))throw new Error("Property "+p+" is not a method");return m},f}();e.Checker=u})(be);const yu=be.union(be.lit("jsx"),be.lit("typescript"),be.lit("flow"),be.lit("imports"),be.lit("react-hot-loader"),be.lit("jest")),vu=be.iface([],{compiledFilename:"string"}),wu=be.iface([],{transforms:be.array("Transform"),disableESTransforms:be.opt("boolean"),jsxRuntime:be.opt(be.union(be.lit("classic"),be.lit("automatic"),be.lit("preserve"))),production:be.opt("boolean"),jsxImportSource:be.opt("string"),jsxPragma:be.opt("string"),jsxFragmentPragma:be.opt("string"),keepUnusedImports:be.opt("boolean"),preserveDynamicImport:be.opt("boolean"),injectCreateRequireForImportRequire:be.opt("boolean"),enableLegacyTypeScriptModuleInterop:be.opt("boolean"),enableLegacyBabel5ModuleInterop:be.opt("boolean"),sourceMapOptions:be.opt("SourceMapOptions"),filePath:be.opt("string")}),_u={Transform:yu,SourceMapOptions:vu,Options:wu},{Options:Su}=be.createCheckers(_u);function Iu(e){Su.strictCheck(e)}function Ha(){w(),ze(!1)}function Wa(e){w(),Vn(e)}function Wt(e){J(),Ys(e)}function _n(){J(),a.tokens[a.tokens.length-1].identifierRole=G.ImportDeclaration}function Ys(e){let t;a.scopeDepth===0?t=G.TopLevelDeclaration:e?t=G.BlockScopedDeclaration:t=G.FunctionScopedDeclaration,a.tokens[a.tokens.length-1].identifierRole=t}function Vn(e){switch(a.type){case n._this:{const t=ae(0);w(),ie(t);return}case n._yield:case n.name:{a.type=n.name,Wt(e);return}case n.bracketL:{w(),Ks(n.bracketR,e,!0);return}case n.braceL:oi(!0,e);return;default:ne()}}function Ks(e,t,r=!1,s=!1,i=0){let o=!0,c=!1;const u=a.tokens.length;for(;!k(e)&&!a.error;)if(o?o=!1:(v(n.comma),a.tokens[a.tokens.length-1].contextId=i,!c&&a.tokens[u].isType&&(a.tokens[a.tokens.length-1].isType=!0,c=!0)),!(r&&h(n.comma))){if(k(e))break;if(h(n.ellipsis)){Wa(t),Ga(),k(n.comma),v(e);break}else Cu(s,t)}}function Cu(e,t){e&&Qs([d._public,d._protected,d._private,d._readonly,d._override]),Sn(t),Ga(),Sn(t,!0)}function Ga(){me?zp():he&&Dh()}function Sn(e,t=!1){if(t||Vn(e),!k(n.eq))return;const r=a.tokens.length-1;ze(),a.tokens[r].rhsEndIndex=a.tokens.length}function Ps(){return h(n.name)}function Eu(){return h(n.name)||!!(a.type&n.IS_KEYWORD)||h(n.string)||h(n.num)||h(n.bigint)||h(n.decimal)}function Xa(){const e=a.snapshot();return w(),(h(n.bracketL)||h(n.braceL)||h(n.star)||h(n.ellipsis)||h(n.hash)||Eu())&&!Xe()?!0:(a.restoreFromSnapshot(e),!1)}function Qs(e){for(;Ya(e)!==null;);}function Ya(e){if(!h(n.name))return null;const t=a.contextualKeyword;if(e.indexOf(t)!==-1&&Xa()){switch(t){case d._readonly:a.tokens[a.tokens.length-1].type=n._readonly;break;case d._abstract:a.tokens[a.tokens.length-1].type=n._abstract;break;case d._static:a.tokens[a.tokens.length-1].type=n._static;break;case d._public:a.tokens[a.tokens.length-1].type=n._public;break;case d._private:a.tokens[a.tokens.length-1].type=n._private;break;case d._protected:a.tokens[a.tokens.length-1].type=n._protected;break;case d._override:a.tokens[a.tokens.length-1].type=n._override;break;case d._declare:a.tokens[a.tokens.length-1].type=n._declare;break}return t}return null}function sn(){for(J();k(n.dot);)J()}function Tu(){sn(),!Xe()&&h(n.lessThan)&&wr()}function Au(){w(),an()}function Pu(){w()}function Nu(){v(n._typeof),h(n._import)?Ka():sn(),!Xe()&&h(n.lessThan)&&wr()}function Ka(){v(n._import),v(n.parenL),v(n.string),v(n.parenR),k(n.dot)&&sn(),h(n.lessThan)&&wr()}function Ru(){k(n._const);const e=k(n._in),t=Fe(d._out);k(n._const),(e||t)&&!h(n.name)?a.tokens[a.tokens.length-1].type=n.name:J(),k(n._extends)&&Ae(),k(n.eq)&&Ae()}function sr(){h(n.lessThan)&&$n()}function $n(){const e=ae(0);for(h(n.lessThan)||h(n.typeParameterStart)?w():ne();!k(n.greaterThan)&&!a.error;)Ru(),k(n.comma);ie(e)}function Js(e){const t=e===n.arrow;sr(),v(n.parenL),a.scopeDepth++,Lu(!1),a.scopeDepth--,(t||h(e))&&Kr(e)}function Lu(e){Ks(n.parenR,e)}function In(){k(n.comma)||Se()}function Gi(){Js(n.colon),In()}function Du(){const e=a.snapshot();w();const t=k(n.name)&&h(n.colon);return a.restoreFromSnapshot(e),t}function Qa(){if(!(h(n.bracketL)&&Du()))return!1;const e=ae(0);return v(n.bracketL),J(),an(),v(n.bracketR),vr(),In(),ie(e),!0}function Xi(e){k(n.question),!e&&(h(n.parenL)||h(n.lessThan))?(Js(n.colon),In()):(vr(),In())}function Ou(){if(h(n.parenL)||h(n.lessThan)){Gi();return}if(h(n._new)){w(),h(n.parenL)||h(n.lessThan)?Gi():Xi(!1);return}const e=!!Ya([d._readonly]);Qa()||((U(d._get)||U(d._set))&&Xa(),Qr(-1),Xi(e))}function Mu(){Ja()}function Ja(){for(v(n.braceL);!k(n.braceR)&&!a.error;)Ou()}function ju(){const e=a.snapshot(),t=Fu();return a.restoreFromSnapshot(e),t}function Fu(){return w(),k(n.plus)||k(n.minus)?U(d._readonly):(U(d._readonly)&&w(),!h(n.bracketL)||(w(),!Ps())?!1:(w(),h(n._in)))}function Bu(){J(),v(n._in),Ae()}function Vu(){v(n.braceL),h(n.plus)||h(n.minus)?(w(),Re(d._readonly)):Fe(d._readonly),v(n.bracketL),Bu(),Fe(d._as)&&Ae(),v(n.bracketR),h(n.plus)||h(n.minus)?(w(),v(n.question)):k(n.question),eh(),Se(),v(n.braceR)}function $u(){for(v(n.bracketL);!k(n.bracketR)&&!a.error;)qu(),k(n.comma)}function qu(){k(n.ellipsis)?Ae():(Ae(),k(n.question)),k(n.colon)&&Ae()}function Uu(){v(n.parenL),Ae(),v(n.parenR)}function zu(){for(Bt(),Bt();!h(n.backQuote)&&!a.error;)v(n.dollarBraceL),Ae(),Bt(),Bt();w()}var qt;(function(e){e[e.TSFunctionType=0]="TSFunctionType";const r=1;e[e.TSConstructorType=r]="TSConstructorType";const s=r+1;e[e.TSAbstractConstructorType=s]="TSAbstractConstructorType"})(qt||(qt={}));function bs(e){e===qt.TSAbstractConstructorType&&Re(d._abstract),(e===qt.TSConstructorType||e===qt.TSAbstractConstructorType)&&v(n._new);const t=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!1,Js(n.arrow),a.inDisallowConditionalTypesContext=t}function Hu(){switch(a.type){case n.name:Tu();return;case n._void:case n._null:w();return;case n.string:case n.num:case n.bigint:case n.decimal:case n._true:case n._false:yr();return;case n.minus:w(),yr();return;case n._this:{Pu(),U(d._is)&&!Xe()&&Au();return}case n._typeof:Nu();return;case n._import:Ka();return;case n.braceL:ju()?Vu():Mu();return;case n.bracketL:$u();return;case n.parenL:Uu();return;case n.backQuote:zu();return;default:if(a.type&n.IS_KEYWORD){w(),a.tokens[a.tokens.length-1].type=n.name;return}break}ne()}function Wu(){for(Hu();!Xe()&&k(n.bracketL);)k(n.bracketR)||(Ae(),v(n.bracketR))}function Gu(){if(Re(d._infer),J(),h(n._extends)){const e=a.snapshot();v(n._extends);const t=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!0,Ae(),a.inDisallowConditionalTypesContext=t,(a.error||!a.inDisallowConditionalTypesContext&&h(n.question))&&a.restoreFromSnapshot(e)}}function Ns(){if(U(d._keyof)||U(d._unique)||U(d._readonly))w(),Ns();else if(U(d._infer))Gu();else{const e=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!1,Wu(),a.inDisallowConditionalTypesContext=e}}function Yi(){if(k(n.bitwiseAND),Ns(),h(n.bitwiseAND))for(;k(n.bitwiseAND);)Ns()}function Xu(){if(k(n.bitwiseOR),Yi(),h(n.bitwiseOR))for(;k(n.bitwiseOR);)Yi()}function Yu(){return h(n.lessThan)?!0:h(n.parenL)&&Qu()}function Ku(){if(h(n.name)||h(n._this))return w(),!0;if(h(n.braceL)||h(n.bracketL)){let e=1;for(w();e>0&&!a.error;)h(n.braceL)||h(n.bracketL)?e++:(h(n.braceR)||h(n.bracketR))&&e--,w();return!0}return!1}function Qu(){const e=a.snapshot(),t=Ju();return a.restoreFromSnapshot(e),t}function Ju(){return w(),!!(h(n.parenR)||h(n.ellipsis)||Ku()&&(h(n.colon)||h(n.comma)||h(n.question)||h(n.eq)||h(n.parenR)&&(w(),h(n.arrow))))}function Kr(e){const t=ae(0);v(e),th()||Ae(),ie(t)}function Zu(){h(n.colon)&&Kr(n.colon)}function vr(){h(n.colon)&&an()}function eh(){k(n.colon)&&Ae()}function th(){const e=a.snapshot();return U(d._asserts)?(w(),Fe(d._is)?(Ae(),!0):Ps()||h(n._this)?(w(),Fe(d._is)&&Ae(),!0):(a.restoreFromSnapshot(e),!1)):Ps()||h(n._this)?(w(),U(d._is)&&!Xe()?(w(),Ae(),!0):(a.restoreFromSnapshot(e),!1)):!1}function an(){const e=ae(0);v(n.colon),Ae(),ie(e)}function Ae(){if(Ki(),a.inDisallowConditionalTypesContext||Xe()||!k(n._extends))return;const e=a.inDisallowConditionalTypesContext;a.inDisallowConditionalTypesContext=!0,Ki(),a.inDisallowConditionalTypesContext=e,v(n.question),Ae(),v(n.colon),Ae()}function rh(){return U(d._abstract)&&Te()===n._new}function Ki(){if(Yu()){bs(qt.TSFunctionType);return}if(h(n._new)){bs(qt.TSConstructorType);return}else if(rh()){bs(qt.TSAbstractConstructorType);return}Xu()}function nh(){const e=ae(1);Ae(),v(n.greaterThan),ie(e),on()}function sh(){if(k(n.jsxTagStart)){a.tokens[a.tokens.length-1].type=n.typeParameterStart;const e=ae(1);for(;!h(n.greaterThan)&&!a.error;)Ae(),k(n.comma);ot(),ie(e)}}function Za(){for(;!h(n.braceL)&&!a.error;)ih(),k(n.comma)}function ih(){sn(),h(n.lessThan)&&wr()}function ah(){Wt(!1),sr(),k(n._extends)&&Za(),Ja()}function oh(){Wt(!1),sr(),v(n.eq),Ae(),Se()}function ch(){if(h(n.string)?yr():J(),k(n.eq)){const e=a.tokens.length-1;ze(),a.tokens[e].rhsEndIndex=a.tokens.length}}function Zs(){for(Wt(!1),v(n.braceL);!k(n.braceR)&&!a.error;)ch(),k(n.comma)}function ei(){v(n.braceL),Hn(n.braceR)}function Rs(){Wt(!1),k(n.dot)?Rs():ei()}function eo(){U(d._global)?J():h(n.string)?Pt():ne(),h(n.braceL)?ei():Se()}function Ls(){_n(),v(n.eq),uh(),Se()}function lh(){return U(d._require)&&Te()===n.parenL}function uh(){lh()?hh():sn()}function hh(){Re(d._require),v(n.parenL),h(n.string)||ne(),yr(),v(n.parenR)}function ph(){if(yt())return!1;switch(a.type){case n._function:{const e=ae(1);w();const t=a.start;return tr(t,!0),ie(e),!0}case n._class:{const e=ae(1);return rr(!0,!1),ie(e),!0}case n._const:if(h(n._const)&&Ws(d._enum)){const e=ae(1);return v(n._const),Re(d._enum),a.tokens[a.tokens.length-1].type=n._enum,Zs(),ie(e),!0}case n._var:case n._let:{const e=ae(1);return kn(a.type!==n._var),ie(e),!0}case n.name:{const e=ae(1),t=a.contextualKeyword;let r=!1;return t===d._global?(eo(),r=!0):r=qn(t,!0),ie(e),r}default:return!1}}function Qi(){return qn(a.contextualKeyword,!0)}function fh(e){switch(e){case d._declare:{const t=a.tokens.length-1;if(ph())return a.tokens[t].type=n._declare,!0;break}case d._global:if(h(n.braceL))return ei(),!0;break;default:return qn(e,!1)}return!1}function qn(e,t){switch(e){case d._abstract:if(xr(t)&&h(n._class))return a.tokens[a.tokens.length-1].type=n._abstract,rr(!0,!1),!0;break;case d._enum:if(xr(t)&&h(n.name))return a.tokens[a.tokens.length-1].type=n._enum,Zs(),!0;break;case d._interface:if(xr(t)&&h(n.name)){const r=ae(t?2:1);return ah(),ie(r),!0}break;case d._module:if(xr(t)){if(h(n.string)){const r=ae(t?2:1);return eo(),ie(r),!0}else if(h(n.name)){const r=ae(t?2:1);return Rs(),ie(r),!0}}break;case d._namespace:if(xr(t)&&h(n.name)){const r=ae(t?2:1);return Rs(),ie(r),!0}break;case d._type:if(xr(t)&&h(n.name)){const r=ae(t?2:1);return oh(),ie(r),!0}break}return!1}function xr(e){return e?(w(),!0):!yt()}function dh(){const e=a.snapshot();return $n(),_r(),Zu(),v(n.arrow),a.error?(a.restoreFromSnapshot(e),!1):(cn(!0),!0)}function ti(){a.type===n.bitShiftL&&(a.pos-=1,re(n.lessThan)),wr()}function wr(){const e=ae(0);for(v(n.lessThan);!h(n.greaterThan)&&!a.error;)Ae(),k(n.comma);e?(v(n.greaterThan),ie(e)):(ie(e),Da(),v(n.greaterThan),a.tokens[a.tokens.length-1].isType=!0)}function to(){if(h(n.name))switch(a.contextualKeyword){case d._abstract:case d._declare:case d._enum:case d._interface:case d._module:case d._namespace:case d._type:return!0}return!1}function mh(e,t){if(h(n.colon)&&Kr(n.colon),!h(n.braceL)&&yt()){let r=a.tokens.length-1;for(;r>=0&&(a.tokens[r].start>=e||a.tokens[r].type===n._default||a.tokens[r].type===n._export);)a.tokens[r].isType=!0,r--;return}cn(!1,t)}function gh(e,t,r){if(!Xe()&&k(n.bang)){a.tokens[a.tokens.length-1].type=n.nonNullAssertion;return}if(h(n.lessThan)||h(n.bitShiftL)){const s=a.snapshot();if(!t&&lo()&&dh())return;if(ti(),!t&&k(n.parenL)?(a.tokens[a.tokens.length-1].subscriptStartIndex=e,Ut()):h(n.backQuote)?ai():(a.type===n.greaterThan||a.type!==n.parenL&&a.type&n.IS_EXPRESSION_START&&!Xe())&&ne(),a.error)a.restoreFromSnapshot(s);else return}else!t&&h(n.questionDot)&&Te()===n.lessThan&&(w(),a.tokens[e].isOptionalChainStart=!0,a.tokens[a.tokens.length-1].subscriptStartIndex=e,wr(),v(n.parenL),Ut());ni(e,t,r)}function xh(){if(k(n._import))return U(d._type)&&Te()!==n.eq&&Re(d._type),Ls(),!0;if(k(n.eq))return Ue(),Se(),!0;if(Fe(d._as))return Re(d._namespace),J(),Se(),!0;if(U(d._type)){const e=Te();(e===n.braceL||e===n.star)&&w()}return!1}function kh(){if(J(),h(n.comma)||h(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=G.ImportDeclaration;return}if(J(),h(n.comma)||h(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=G.ImportDeclaration,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0;return}if(J(),h(n.comma)||h(n.braceR)){a.tokens[a.tokens.length-3].identifierRole=G.ImportAccess,a.tokens[a.tokens.length-1].identifierRole=G.ImportDeclaration;return}J(),a.tokens[a.tokens.length-3].identifierRole=G.ImportAccess,a.tokens[a.tokens.length-1].identifierRole=G.ImportDeclaration,a.tokens[a.tokens.length-4].isType=!0,a.tokens[a.tokens.length-3].isType=!0,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0}function bh(){if(J(),h(n.comma)||h(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=G.ExportAccess;return}if(J(),h(n.comma)||h(n.braceR)){a.tokens[a.tokens.length-1].identifierRole=G.ExportAccess,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0;return}if(J(),h(n.comma)||h(n.braceR)){a.tokens[a.tokens.length-3].identifierRole=G.ExportAccess;return}J(),a.tokens[a.tokens.length-3].identifierRole=G.ExportAccess,a.tokens[a.tokens.length-4].isType=!0,a.tokens[a.tokens.length-3].isType=!0,a.tokens[a.tokens.length-2].isType=!0,a.tokens[a.tokens.length-1].isType=!0}function yh(){if(U(d._abstract)&&Te()===n._class)return a.type=n._abstract,w(),rr(!0,!0),!0;if(U(d._interface)){const e=ae(2);return qn(d._interface,!0),ie(e),!0}return!1}function vh(){if(a.type===n._const){const e=nn();if(e.type===n.name&&e.contextualKeyword===d._enum)return v(n._const),Re(d._enum),a.tokens[a.tokens.length-1].type=n._enum,Zs(),!0}return!1}function wh(e){const t=a.tokens.length;Qs([d._abstract,d._readonly,d._declare,d._static,d._override]);const r=a.tokens.length;if(Qa()){const i=e?t-1:t;for(let o=i;o<r;o++)a.tokens[o].isType=!0;return!0}return!1}function _h(e){fh(e)||Se()}function Sh(){const e=Fe(d._declare);e&&(a.tokens[a.tokens.length-1].type=n._declare);let t=!1;if(h(n.name))if(e){const r=ae(2);t=Qi(),ie(r)}else t=Qi();if(!t)if(e){const r=ae(2);rt(!0),ie(r)}else rt(!0)}function Ih(e){if(e&&(h(n.lessThan)||h(n.bitShiftL))&&ti(),Fe(d._implements)){a.tokens[a.tokens.length-1].type=n._implements;const t=ae(1);Za(),ie(t)}}function Ch(){sr()}function Eh(){sr()}function Th(){const e=ae(0);Xe()||k(n.bang),vr(),ie(e)}function Ah(){h(n.colon)&&an()}function Ph(e,t){return Fn?Nh(e,t):Rh(e,t)}function Nh(e,t){if(!h(n.lessThan))return wt(e,t);const r=a.snapshot();let s=wt(e,t);if(a.error)a.restoreFromSnapshot(r);else return s;return a.type=n.typeParameterStart,$n(),s=wt(e,t),s||ne(),s}function Rh(e,t){if(!h(n.lessThan))return wt(e,t);const r=a.snapshot();$n();const s=wt(e,t);if(s||ne(),a.error)a.restoreFromSnapshot(r);else return s;return wt(e,t)}function Lh(){if(h(n.colon)){const e=a.snapshot();Kr(n.colon),tt()&&ne(),h(n.arrow)||ne(),a.error&&a.restoreFromSnapshot(e)}return k(n.arrow)}function Dh(){const e=ae(0);k(n.question),vr(),ie(e)}function Oh(){(h(n.lessThan)||h(n.bitShiftL))&&ti(),wo()}function Mh(){let e=!1,t=!1;for(;;){if(a.pos>=N.length){ne("Unterminated JSX contents");return}const r=N.charCodeAt(a.pos);if(r===g.lessThan||r===g.leftCurlyBrace){if(a.pos===a.start){if(r===g.lessThan){a.pos++,re(n.jsxTagStart);return}Oa(r);return}re(e&&!t?n.jsxEmptyText:n.jsxText);return}r===g.lineFeed?e=!0:r!==g.space&&r!==g.carriageReturn&&r!==g.tab&&(t=!0),a.pos++}}function jh(e){for(a.pos++;;){if(a.pos>=N.length){ne("Unterminated string constant");return}if(N.charCodeAt(a.pos)===e){a.pos++;break}a.pos++}re(n.string)}function Fh(){let e;do{if(a.pos>N.length){ne("Unexpectedly reached the end of input.");return}e=N.charCodeAt(++a.pos)}while(dt[e]||e===g.dash);re(n.jsxName)}function Ds(){ot()}function ro(e){if(Ds(),!k(n.colon)){a.tokens[a.tokens.length-1].identifierRole=e;return}Ds()}function no(){const e=a.tokens.length;ro(G.Access);let t=!1;for(;h(n.dot);)t=!0,ot(),Ds();if(!t){const r=a.tokens[e],s=N.charCodeAt(r.start);s>=g.lowercaseA&&s<=g.lowercaseZ&&(r.identifierRole=null)}}function Bh(){switch(a.type){case n.braceL:w(),Ue(),ot();return;case n.jsxTagStart:io(),ot();return;case n.string:ot();return;default:ne("JSX value should be either an expression or a quoted JSX text")}}function Vh(){v(n.ellipsis),Ue()}function $h(e){if(h(n.jsxTagEnd))return!1;no(),he&&sh();let t=!1;for(;!h(n.slash)&&!h(n.jsxTagEnd)&&!a.error;){if(k(n.braceL)){t=!0,v(n.ellipsis),ze(),ot();continue}t&&a.end-a.start===3&&N.charCodeAt(a.start)===g.lowercaseK&&N.charCodeAt(a.start+1)===g.lowercaseE&&N.charCodeAt(a.start+2)===g.lowercaseY&&(a.tokens[e].jsxRole=ft.KeyAfterPropSpread),ro(G.ObjectKey),h(n.eq)&&(ot(),Bh())}const r=h(n.slash);return r&&ot(),r}function qh(){h(n.jsxTagEnd)||no()}function so(){const e=a.tokens.length-1;a.tokens[e].jsxRole=ft.NoChildren;let t=0;if(!$h(e))for(kr();;)switch(a.type){case n.jsxTagStart:if(ot(),h(n.slash)){ot(),qh(),a.tokens[e].jsxRole!==ft.KeyAfterPropSpread&&(t===1?a.tokens[e].jsxRole=ft.OneChild:t>1&&(a.tokens[e].jsxRole=ft.StaticChildren));return}t++,so(),kr();break;case n.jsxText:t++,kr();break;case n.jsxEmptyText:kr();break;case n.braceL:w(),h(n.ellipsis)?(Vh(),kr(),t+=2):(h(n.braceR)||(t++,Ue()),kr());break;default:ne();return}}function io(){ot(),so()}function ot(){a.tokens.push(new Bn),Ra(),a.start=a.pos;const e=N.charCodeAt(a.pos);if(rn[e])Fh();else if(e===g.quotationMark||e===g.apostrophe)jh(e);else switch(++a.pos,e){case g.greaterThan:re(n.jsxTagEnd);break;case g.lessThan:re(n.jsxTagStart);break;case g.slash:re(n.slash);break;case g.equalsTo:re(n.eq);break;case g.leftCurlyBrace:re(n.braceL);break;case g.dot:re(n.dot);break;case g.colon:re(n.colon);break;default:ne()}}function kr(){a.tokens.push(new Bn),a.start=a.pos,Mh()}function Uh(e){if(h(n.question)){const t=Te();if(t===n.colon||t===n.comma||t===n.parenR)return}ao(e)}function zh(){Ea(n.question),h(n.colon)&&(he?an():me&&ir())}class Hh{constructor(t){this.stop=t}}function Ue(e=!1){if(ze(e),h(n.comma))for(;k(n.comma);)ze(e)}function ze(e=!1,t=!1){return he?Ph(e,t):me?Kp(e,t):wt(e,t)}function wt(e,t){if(h(n._yield))return op(),!1;(h(n.parenL)||h(n.name)||h(n._yield))&&(a.potentialArrowAt=a.start);const r=Wh(e);return t&&ii(),a.type&n.IS_ASSIGN?(w(),ze(e),!1):r}function Wh(e){return Xh(e)?!0:(Gh(e),!1)}function Gh(e){he||me?Uh(e):ao(e)}function ao(e){k(n.question)&&(ze(),v(n.colon),ze(e))}function Xh(e){const t=a.tokens.length;return on()?!0:(gn(t,-1,e),!1)}function gn(e,t,r){if(he&&(n._in&n.PRECEDENCE_MASK)>t&&!Xe()&&(Fe(d._as)||Fe(d._satisfies))){const i=ae(1);Ae(),ie(i),Da(),gn(e,t,r);return}const s=a.type&n.PRECEDENCE_MASK;if(s>0&&(!r||!h(n._in))&&s>t){const i=a.type;w(),i===n.nullishCoalescing&&(a.tokens[a.tokens.length-1].nullishStartIndex=e);const o=a.tokens.length;on(),gn(o,i&n.IS_RIGHT_ASSOCIATIVE?s-1:s,r),i===n.nullishCoalescing&&(a.tokens[e].numNullishCoalesceStarts++,a.tokens[a.tokens.length-1].numNullishCoalesceEnds++),gn(e,t,r)}}function on(){if(he&&!Fn&&k(n.lessThan))return nh(),!1;if(U(d._module)&&Aa()===g.leftCurlyBrace&&!wa())return cp(),!1;if(a.type&n.IS_PREFIX)return w(),on(),!1;if(oo())return!0;for(;a.type&n.IS_POSTFIX&&!tt();)a.type===n.preIncDec&&(a.type=n.postIncDec),w();return!1}function oo(){const e=a.tokens.length;return Pt()?!0:(ri(e),a.tokens.length>e&&a.tokens[e].isOptionalChainStart&&(a.tokens[a.tokens.length-1].isOptionalChainEnd=!0),!1)}function ri(e,t=!1){me?Jp(e,t):co(e,t)}function co(e,t=!1){const r=new Hh(!1);do Yh(e,t,r);while(!r.stop&&!a.error)}function Yh(e,t,r){he?gh(e,t,r):me?Rp(e,t,r):ni(e,t,r)}function ni(e,t,r){if(!t&&k(n.doubleColon))si(),r.stop=!0,ri(e,t);else if(h(n.questionDot)){if(a.tokens[e].isOptionalChainStart=!0,t&&Te()===n.parenL){r.stop=!0;return}w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e,k(n.bracketL)?(Ue(),v(n.bracketR)):k(n.parenL)?Ut():Cn()}else if(k(n.dot))a.tokens[a.tokens.length-1].subscriptStartIndex=e,Cn();else if(k(n.bracketL))a.tokens[a.tokens.length-1].subscriptStartIndex=e,Ue(),v(n.bracketR);else if(!t&&h(n.parenL))if(lo()){const s=a.snapshot(),i=a.tokens.length;w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e;const o=Xr();a.tokens[a.tokens.length-1].contextId=o,Ut(),a.tokens[a.tokens.length-1].contextId=o,Kh()&&(a.restoreFromSnapshot(s),r.stop=!0,a.scopeDepth++,_r(),Qh(i))}else{w(),a.tokens[a.tokens.length-1].subscriptStartIndex=e;const s=Xr();a.tokens[a.tokens.length-1].contextId=s,Ut(),a.tokens[a.tokens.length-1].contextId=s}else h(n.backQuote)?ai():r.stop=!0}function lo(){return a.tokens[a.tokens.length-1].contextualKeyword===d._async&&!tt()}function Ut(){let e=!0;for(;!k(n.parenR)&&!a.error;){if(e)e=!1;else if(v(n.comma),k(n.parenR))break;fo(!1)}}function Kh(){return h(n.colon)||h(n.arrow)}function Qh(e){he?Ah():me&&Yp(),v(n.arrow),Jr(e)}function si(){const e=a.tokens.length;Pt(),ri(e,!0)}function Pt(){if(k(n.modulo))return J(),!1;if(h(n.jsxText)||h(n.jsxEmptyText))return yr(),!1;if(h(n.lessThan)&&Fn)return a.type=n.jsxTagStart,io(),w(),!1;const e=a.potentialArrowAt===a.start;switch(a.type){case n.slash:case n.assign:yl();case n._super:case n._this:case n.regexp:case n.num:case n.bigint:case n.decimal:case n.string:case n._null:case n._true:case n._false:return w(),!1;case n._import:return w(),h(n.dot)&&(a.tokens[a.tokens.length-1].type=n.name,w(),J()),!1;case n.name:{const t=a.tokens.length,r=a.start,s=a.contextualKeyword;return J(),s===d._await?(ap(),!1):s===d._async&&h(n._function)&&!tt()?(w(),tr(r,!1),!1):e&&s===d._async&&!tt()&&h(n.name)?(a.scopeDepth++,Wt(!1),v(n.arrow),Jr(t),!0):h(n._do)&&!tt()?(w(),zt(),!1):e&&!tt()&&h(n.arrow)?(a.scopeDepth++,Ys(!1),v(n.arrow),Jr(t),!0):(a.tokens[a.tokens.length-1].identifierRole=G.Access,!1)}case n._do:return w(),zt(),!1;case n.parenL:return uo(e);case n.bracketL:return w(),po(n.bracketR,!0),!1;case n.braceL:return oi(!1,!1),!1;case n._function:return Jh(),!1;case n.at:gi();case n._class:return rr(!1),!1;case n._new:return ep(),!1;case n.backQuote:return ai(),!1;case n.doubleColon:return w(),si(),!1;case n.hash:{const t=Aa();return rn[t]||t===g.backslash?Cn():w(),!1}default:return ne(),!1}}function Cn(){k(n.hash),J()}function Jh(){const e=a.start;J(),k(n.dot)&&J(),tr(e,!1)}function yr(){w()}function Un(){v(n.parenL),Ue(),v(n.parenR)}function uo(e){const t=a.snapshot(),r=a.tokens.length;v(n.parenL);let s=!0;for(;!h(n.parenR)&&!a.error;){if(s)s=!1;else if(v(n.comma),h(n.parenR))break;if(h(n.ellipsis)){Wa(!1),ii();break}else ze(!1,!0)}return v(n.parenR),e&&Zh()&&Os()?(a.restoreFromSnapshot(t),a.scopeDepth++,_r(),Os(),Jr(r),a.error?(a.restoreFromSnapshot(t),uo(!1),!1):!0):!1}function Zh(){return h(n.colon)||!tt()}function Os(){return he?Lh():me?Qp():k(n.arrow)}function ii(){(he||me)&&zh()}function ep(){if(v(n._new),k(n.dot)){J();return}tp(),me&&Lp(),k(n.parenL)&&po(n.parenR)}function tp(){si(),k(n.questionDot)}function ai(){for(Bt(),Bt();!h(n.backQuote)&&!a.error;)v(n.dollarBraceL),Ue(),Bt(),Bt();w()}function oi(e,t){const r=Xr();let s=!0;for(w(),a.tokens[a.tokens.length-1].contextId=r;!k(n.braceR)&&!a.error;){if(s)s=!1;else if(v(n.comma),k(n.braceR))break;let i=!1;if(h(n.ellipsis)){const o=a.tokens.length;if(Ha(),e&&(a.tokens.length===o+2&&Ys(t),k(n.braceR)))break;continue}e||(i=k(n.star)),!e&&U(d._async)?(i&&ne(),J(),h(n.colon)||h(n.parenL)||h(n.braceR)||h(n.eq)||h(n.comma)||(h(n.star)&&(w(),i=!0),Qr(r))):Qr(r),ip(e,t,r)}a.tokens[a.tokens.length-1].contextId=r}function rp(e){return!e&&(h(n.string)||h(n.num)||h(n.bracketL)||h(n.name)||!!(a.type&n.IS_KEYWORD))}function np(e,t){const r=a.start;return h(n.parenL)?(e&&ne(),Ms(r,!1),!0):rp(e)?(Qr(t),Ms(r,!1),!0):!1}function sp(e,t){if(k(n.colon)){e?Sn(t):ze(!1);return}let r;e?a.scopeDepth===0?r=G.ObjectShorthandTopLevelDeclaration:t?r=G.ObjectShorthandBlockScopedDeclaration:r=G.ObjectShorthandFunctionScopedDeclaration:r=G.ObjectShorthand,a.tokens[a.tokens.length-1].identifierRole=r,Sn(t,!0)}function ip(e,t,r){he?Ch():me&&Up(),np(e,r)||sp(e,t)}function Qr(e){me&&mi(),k(n.bracketL)?(a.tokens[a.tokens.length-1].contextId=e,ze(),v(n.bracketR),a.tokens[a.tokens.length-1].contextId=e):(h(n.num)||h(n.string)||h(n.bigint)||h(n.decimal)?Pt():Cn(),a.tokens[a.tokens.length-1].identifierRole=G.ObjectKey,a.tokens[a.tokens.length-1].contextId=e)}function Ms(e,t){const r=Xr();a.scopeDepth++;const s=a.tokens.length;_r(t,r),ho(e,r);const o=a.tokens.length;a.scopes.push(new _t(s,o,!0)),a.scopeDepth--}function Jr(e){cn(!0);const t=a.tokens.length;a.scopes.push(new _t(e,t,!0)),a.scopeDepth--}function ho(e,t=0){he?mh(e,t):me?Np(t):cn(!1,t)}function cn(e,t=0){e&&!h(n.braceL)?ze():zt(!0,t)}function po(e,t=!1){let r=!0;for(;!k(e)&&!a.error;){if(r)r=!1;else if(v(n.comma),k(e))break;fo(t)}}function fo(e){e&&h(n.comma)||(h(n.ellipsis)?(Ha(),ii()):h(n.question)?w():ze(!1,!0))}function J(){w(),a.tokens[a.tokens.length-1].type=n.name}function ap(){on()}function op(){w(),!h(n.semi)&&!tt()&&(k(n.star),ze())}function cp(){Re(d._module),v(n.braceL),Hn(n.braceR)}function lp(e){return(e.type===n.name||!!(e.type&n.IS_KEYWORD))&&e.contextualKeyword!==d._from}function St(e){const t=ae(0);v(e||n.colon),Qe(),ie(t)}function Ji(){v(n.modulo),Re(d._checks),k(n.parenL)&&(Ue(),v(n.parenR))}function ci(){const e=ae(0);v(n.colon),h(n.modulo)?Ji():(Qe(),h(n.modulo)&&Ji()),ie(e)}function up(){w(),li(!0)}function hp(){w(),J(),h(n.lessThan)&&gt(),v(n.parenL),Fs(),v(n.parenR),ci(),Se()}function js(){h(n._class)?up():h(n._function)?hp():h(n._var)?pp():Fe(d._module)?k(n.dot)?mp():fp():U(d._type)?gp():U(d._opaque)?xp():U(d._interface)?kp():h(n._export)?dp():ne()}function pp(){w(),ko(),Se()}function fp(){for(h(n.string)?Pt():J(),v(n.braceL);!h(n.braceR)&&!a.error;)h(n._import)?(w(),To()):ne();v(n.braceR)}function dp(){v(n._export),k(n._default)?h(n._function)||h(n._class)?js():(Qe(),Se()):h(n._var)||h(n._function)||h(n._class)||U(d._opaque)?js():h(n.star)||h(n.braceL)||U(d._interface)||U(d._type)||U(d._opaque)?Co():ne()}function mp(){Re(d._exports),ir(),Se()}function gp(){w(),hi()}function xp(){w(),pi(!0)}function kp(){w(),li()}function li(e=!1){if(zn(),h(n.lessThan)&&gt(),k(n._extends))do xn();while(!e&&k(n.comma));if(U(d._mixins)){w();do xn();while(k(n.comma))}if(U(d._implements)){w();do xn();while(k(n.comma))}En(e,!1,e)}function xn(){mo(!1),h(n.lessThan)&&er()}function ui(){li()}function zn(){J()}function hi(){zn(),h(n.lessThan)&&gt(),St(n.eq),Se()}function pi(e){Re(d._type),zn(),h(n.lessThan)&&gt(),h(n.colon)&&St(n.colon),e||St(n.eq),Se()}function bp(){mi(),ko(),k(n.eq)&&Qe()}function gt(){const e=ae(0);h(n.lessThan)||h(n.typeParameterStart)?w():ne();do bp(),h(n.greaterThan)||v(n.comma);while(!h(n.greaterThan)&&!a.error);v(n.greaterThan),ie(e)}function er(){const e=ae(0);for(v(n.lessThan);!h(n.greaterThan)&&!a.error;)Qe(),h(n.greaterThan)||v(n.comma);v(n.greaterThan),ie(e)}function yp(){if(Re(d._interface),k(n._extends))do xn();while(k(n.comma));En(!1,!1,!1)}function fi(){h(n.num)||h(n.string)?Pt():J()}function vp(){Te()===n.colon?(fi(),St()):Qe(),v(n.bracketR),St()}function wp(){fi(),v(n.bracketR),v(n.bracketR),h(n.lessThan)||h(n.parenL)?di():(k(n.question),St())}function di(){for(h(n.lessThan)&&gt(),v(n.parenL);!h(n.parenR)&&!h(n.ellipsis)&&!a.error;)Tn(),h(n.parenR)||v(n.comma);k(n.ellipsis)&&Tn(),v(n.parenR),St()}function _p(){di()}function En(e,t,r){let s;for(t&&h(n.braceBarL)?(v(n.braceBarL),s=n.braceBarR):(v(n.braceL),s=n.braceR);!h(s)&&!a.error;){if(r&&U(d._proto)){const i=Te();i!==n.colon&&i!==n.question&&(w(),e=!1)}if(e&&U(d._static)){const i=Te();i!==n.colon&&i!==n.question&&w()}if(mi(),k(n.bracketL))k(n.bracketL)?wp():vp();else if(h(n.parenL)||h(n.lessThan))_p();else{if(U(d._get)||U(d._set)){const i=Te();(i===n.name||i===n.string||i===n.num)&&w()}Sp()}Ip()}v(s)}function Sp(){if(h(n.ellipsis)){if(v(n.ellipsis),k(n.comma)||k(n.semi),h(n.braceR))return;Qe()}else fi(),h(n.lessThan)||h(n.parenL)?di():(k(n.question),St())}function Ip(){!k(n.semi)&&!k(n.comma)&&!h(n.braceR)&&!h(n.braceBarR)&&ne()}function mo(e){for(e||J();k(n.dot);)J()}function Cp(){mo(!0),h(n.lessThan)&&er()}function Ep(){v(n._typeof),go()}function Tp(){for(v(n.bracketL);a.pos<N.length&&!h(n.bracketR)&&(Qe(),!h(n.bracketR));)v(n.comma);v(n.bracketR)}function Tn(){const e=Te();e===n.colon||e===n.question?(J(),k(n.question),St()):Qe()}function Fs(){for(;!h(n.parenR)&&!h(n.ellipsis)&&!a.error;)Tn(),h(n.parenR)||v(n.comma);k(n.ellipsis)&&Tn()}function go(){let e=!1;const t=a.noAnonFunctionType;switch(a.type){case n.name:{if(U(d._interface)){yp();return}J(),Cp();return}case n.braceL:En(!1,!1,!1);return;case n.braceBarL:En(!1,!0,!1);return;case n.bracketL:Tp();return;case n.lessThan:gt(),v(n.parenL),Fs(),v(n.parenR),v(n.arrow),Qe();return;case n.parenL:if(w(),!h(n.parenR)&&!h(n.ellipsis))if(h(n.name)){const r=Te();e=r!==n.question&&r!==n.colon}else e=!0;if(e)if(a.noAnonFunctionType=!1,Qe(),a.noAnonFunctionType=t,a.noAnonFunctionType||!(h(n.comma)||h(n.parenR)&&Te()===n.arrow)){v(n.parenR);return}else k(n.comma);Fs(),v(n.parenR),v(n.arrow),Qe();return;case n.minus:w(),yr();return;case n.string:case n.num:case n._true:case n._false:case n._null:case n._this:case n._void:case n.star:w();return;default:if(a.type===n._typeof){Ep();return}else if(a.type&n.IS_KEYWORD){w(),a.tokens[a.tokens.length-1].type=n.name;return}}ne()}function Ap(){for(go();!tt()&&(h(n.bracketL)||h(n.questionDot));)k(n.questionDot),v(n.bracketL),k(n.bracketR)||(Qe(),v(n.bracketR))}function xo(){k(n.question)?xo():Ap()}function Zi(){xo(),!a.noAnonFunctionType&&k(n.arrow)&&Qe()}function ea(){for(k(n.bitwiseAND),Zi();k(n.bitwiseAND);)Zi()}function Pp(){for(k(n.bitwiseOR),ea();k(n.bitwiseOR);)ea()}function Qe(){Pp()}function ir(){St()}function ko(){J(),h(n.colon)&&ir()}function mi(){(h(n.plus)||h(n.minus))&&(w(),a.tokens[a.tokens.length-1].isType=!0)}function Np(e){h(n.colon)&&ci(),cn(!1,e)}function Rp(e,t,r){if(h(n.questionDot)&&Te()===n.lessThan){if(t){r.stop=!0;return}w(),er(),v(n.parenL),Ut();return}else if(!t&&h(n.lessThan)){const s=a.snapshot();if(er(),v(n.parenL),Ut(),a.error)a.restoreFromSnapshot(s);else return}ni(e,t,r)}function Lp(){if(h(n.lessThan)){const e=a.snapshot();er(),a.error&&a.restoreFromSnapshot(e)}}function Dp(){if(h(n.name)&&a.contextualKeyword===d._interface){const e=ae(0);return w(),ui(),ie(e),!0}else if(U(d._enum))return bo(),!0;return!1}function Op(){return U(d._enum)?(bo(),!0):!1}function Mp(e){if(e===d._declare){if(h(n._class)||h(n.name)||h(n._function)||h(n._var)||h(n._export)){const t=ae(1);js(),ie(t)}}else if(h(n.name)){if(e===d._interface){const t=ae(1);ui(),ie(t)}else if(e===d._type){const t=ae(1);hi(),ie(t)}else if(e===d._opaque){const t=ae(1);pi(!1),ie(t)}}Se()}function jp(){return U(d._type)||U(d._interface)||U(d._opaque)||U(d._enum)}function Fp(){return h(n.name)&&(a.contextualKeyword===d._type||a.contextualKeyword===d._interface||a.contextualKeyword===d._opaque||a.contextualKeyword===d._enum)}function Bp(){if(U(d._type)){const e=ae(1);w(),h(n.braceL)?(xi(),Zr()):hi(),ie(e)}else if(U(d._opaque)){const e=ae(1);w(),pi(!1),ie(e)}else if(U(d._interface)){const e=ae(1);w(),ui(),ie(e)}else rt(!0)}function Vp(){return h(n.star)||U(d._type)&&Te()===n.star}function $p(){if(Fe(d._type)){const e=ae(2);Bs(),ie(e)}else Bs()}function qp(e){if(e&&h(n.lessThan)&&er(),U(d._implements)){const t=ae(0);w(),a.tokens[a.tokens.length-1].type=n._implements;do zn(),h(n.lessThan)&&er();while(k(n.comma));ie(t)}}function Up(){h(n.lessThan)&&(gt(),h(n.parenL)||ne())}function zp(){const e=ae(0);k(n.question),h(n.colon)&&ir(),ie(e)}function Hp(){if(h(n._typeof)||U(d._type)){const e=nn();(lp(e)||e.type===n.braceL||e.type===n.star)&&w()}}function Wp(){const e=a.contextualKeyword===d._type||a.type===n._typeof;e?w():J(),U(d._as)&&!Ws(d._as)?(J(),e&&!h(n.name)&&!(a.type&n.IS_KEYWORD)||J()):(e&&(h(n.name)||a.type&n.IS_KEYWORD)&&J(),Fe(d._as)&&J())}function Gp(){if(h(n.lessThan)){const e=ae(0);gt(),ie(e)}}function Xp(){h(n.colon)&&ir()}function Yp(){if(h(n.colon)){const e=a.noAnonFunctionType;a.noAnonFunctionType=!0,ir(),a.noAnonFunctionType=e}}function Kp(e,t){if(h(n.lessThan)){const r=a.snapshot();let s=wt(e,t);if(a.error)a.restoreFromSnapshot(r),a.type=n.typeParameterStart;else return s;const i=ae(0);if(gt(),ie(i),s=wt(e,t),s)return!0;ne()}return wt(e,t)}function Qp(){if(h(n.colon)){const e=ae(0),t=a.snapshot(),r=a.noAnonFunctionType;a.noAnonFunctionType=!0,ci(),a.noAnonFunctionType=r,tt()&&ne(),h(n.arrow)||ne(),a.error&&a.restoreFromSnapshot(t),ie(e)}return k(n.arrow)}function Jp(e,t=!1){if(a.tokens[a.tokens.length-1].contextualKeyword===d._async&&h(n.lessThan)){const r=a.snapshot();if(Zp()&&!a.error)return;a.restoreFromSnapshot(r)}co(e,t)}function Zp(){a.scopeDepth++;const e=a.tokens.length;return _r(),Os()?(Jr(e),!0):!1}function bo(){Re(d._enum),a.tokens[a.tokens.length-1].type=n._enum,J(),ef()}function ef(){Fe(d._of)&&w(),v(n.braceL),tf(),v(n.braceR)}function tf(){for(;!h(n.braceR)&&!a.error&&!k(n.ellipsis);)rf(),h(n.braceR)||v(n.comma)}function rf(){J(),k(n.eq)&&w()}function nf(){if(Hn(n.eof),a.scopes.push(new _t(0,a.tokens.length,!0)),a.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${a.scopeDepth}`);return new zf(a.tokens,a.scopes)}function rt(e){me&&Dp()||(h(n.at)&&gi(),sf(e))}function sf(e){if(he&&vh())return;const t=a.type;switch(t){case n._break:case n._continue:of();return;case n._debugger:cf();return;case n._do:lf();return;case n._for:uf();return;case n._function:if(Te()===n.dot)break;e||ne(),ff();return;case n._class:e||ne(),rr(!0);return;case n._if:df();return;case n._return:mf();return;case n._switch:gf();return;case n._throw:xf();return;case n._try:bf();return;case n._let:case n._const:e||ne();case n._var:kn(t!==n._var);return;case n._while:yf();return;case n.braceL:zt();return;case n.semi:vf();return;case n._export:case n._import:{const i=Te();if(i===n.parenL||i===n.dot)break;w(),t===n._import?To():Co();return}case n.name:if(a.contextualKeyword===d._async){const i=a.start,o=a.snapshot();if(w(),h(n._function)&&!tt()){v(n._function),tr(i,!0);return}else a.restoreFromSnapshot(o)}else if(a.contextualKeyword===d._using&&!wa()&&Te()===n.name){kn(!0);return}else if(yo()){Re(d._await),kn(!0);return}}const r=a.tokens.length;Ue();let s=null;if(a.tokens.length===r+1){const i=a.tokens[a.tokens.length-1];i.type===n.name&&(s=i.contextualKeyword)}if(s==null){Se();return}k(n.colon)?wf():_f(s)}function yo(){if(!U(d._await))return!1;const e=a.snapshot();return w(),!U(d._using)||Xe()||(w(),!h(n.name)||Xe())?(a.restoreFromSnapshot(e),!1):(a.restoreFromSnapshot(e),!0)}function gi(){for(;h(n.at);)vo()}function vo(){if(w(),k(n.parenL))Ue(),v(n.parenR);else{for(J();k(n.dot);)J();af()}}function af(){he?Oh():wo()}function wo(){k(n.parenL)&&Ut()}function of(){w(),yt()||(J(),Se())}function cf(){w(),Se()}function lf(){w(),rt(!1),v(n._while),Un(),k(n.semi)}function uf(){a.scopeDepth++;const e=a.tokens.length;pf();const t=a.tokens.length;a.scopes.push(new _t(e,t,!1)),a.scopeDepth--}function hf(){return!(!U(d._using)||Ws(d._of))}function pf(){w();let e=!1;if(U(d._await)&&(e=!0,w()),v(n.parenL),h(n.semi)){e&&ne(),ys();return}const t=yo();if(t||h(n._var)||h(n._let)||h(n._const)||hf()){if(t&&Re(d._await),w(),_o(!0,a.type!==n._var),h(n._in)||U(d._of)){ta(e);return}ys();return}if(Ue(!0),h(n._in)||U(d._of)){ta(e);return}e&&ne(),ys()}function ff(){const e=a.start;w(),tr(e,!0)}function df(){w(),Un(),rt(!1),k(n._else)&&rt(!1)}function mf(){w(),yt()||(Ue(),Se())}function gf(){w(),Un(),a.scopeDepth++;const e=a.tokens.length;for(v(n.braceL);!h(n.braceR)&&!a.error;)if(h(n._case)||h(n._default)){const r=h(n._case);w(),r&&Ue(),v(n.colon)}else rt(!0);w();const t=a.tokens.length;a.scopes.push(new _t(e,t,!1)),a.scopeDepth--}function xf(){w(),Ue(),Se()}function kf(){Vn(!0),he&&vr()}function bf(){if(w(),zt(),h(n._catch)){w();let e=null;if(h(n.parenL)&&(a.scopeDepth++,e=a.tokens.length,v(n.parenL),kf(),v(n.parenR)),zt(),e!=null){const t=a.tokens.length;a.scopes.push(new _t(e,t,!1)),a.scopeDepth--}}k(n._finally)&&zt()}function kn(e){w(),_o(!1,e),Se()}function yf(){w(),Un(),rt(!1)}function vf(){w()}function wf(){rt(!0)}function _f(e){he?_h(e):me?Mp(e):Se()}function zt(e=!1,t=0){const r=a.tokens.length;a.scopeDepth++,v(n.braceL),t&&(a.tokens[a.tokens.length-1].contextId=t),Hn(n.braceR),t&&(a.tokens[a.tokens.length-1].contextId=t);const s=a.tokens.length;a.scopes.push(new _t(r,s,e)),a.scopeDepth--}function Hn(e){for(;!k(e)&&!a.error;)rt(!0)}function ys(){v(n.semi),h(n.semi)||Ue(),v(n.semi),h(n.parenR)||Ue(),v(n.parenR),rt(!1)}function ta(e){e?Fe(d._of):w(),Ue(),v(n.parenR),rt(!1)}function _o(e,t){for(;;){if(Sf(t),k(n.eq)){const r=a.tokens.length-1;ze(e),a.tokens[r].rhsEndIndex=a.tokens.length}if(!k(n.comma))break}}function Sf(e){Vn(e),he?Th():me&&Xp()}function tr(e,t,r=!1){h(n.star)&&w(),t&&!r&&!h(n.name)&&!h(n._yield)&&ne();let s=null;h(n.name)&&(t||(s=a.tokens.length,a.scopeDepth++),Wt(!1));const i=a.tokens.length;a.scopeDepth++,_r(),ho(e);const o=a.tokens.length;a.scopes.push(new _t(i,o,!0)),a.scopeDepth--,s!==null&&(a.scopes.push(new _t(s,o,!0)),a.scopeDepth--)}function _r(e=!1,t=0){he?Eh():me&&Gp(),v(n.parenL),t&&(a.tokens[a.tokens.length-1].contextId=t),Ks(n.parenR,!1,!1,e,t),t&&(a.tokens[a.tokens.length-1].contextId=t)}function rr(e,t=!1){const r=Xr();w(),a.tokens[a.tokens.length-1].contextId=r,a.tokens[a.tokens.length-1].isExpression=!e;let s=null;e||(s=a.tokens.length,a.scopeDepth++),Tf(e,t),Af();const i=a.tokens.length;if(If(r),!a.error&&(a.tokens[i].contextId=r,a.tokens[a.tokens.length-1].contextId=r,s!==null)){const o=a.tokens.length;a.scopes.push(new _t(s,o,!1)),a.scopeDepth--}}function So(){return h(n.eq)||h(n.semi)||h(n.braceR)||h(n.bang)||h(n.colon)}function Io(){return h(n.parenL)||h(n.lessThan)}function If(e){for(v(n.braceL);!k(n.braceR)&&!a.error;){if(k(n.semi))continue;if(h(n.at)){vo();continue}const t=a.start;Cf(t,e)}}function Cf(e,t){he&&Qs([d._declare,d._public,d._protected,d._private,d._override]);let r=!1;if(h(n.name)&&a.contextualKeyword===d._static){if(J(),Io()){Vr(e,!1);return}else if(So()){bn();return}if(a.tokens[a.tokens.length-1].type=n._static,r=!0,h(n.braceL)){a.tokens[a.tokens.length-1].contextId=t,zt();return}}Ef(e,r,t)}function Ef(e,t,r){if(he&&wh(t))return;if(k(n.star)){Fr(r),Vr(e,!1);return}Fr(r);let s=!1;const i=a.tokens[a.tokens.length-1];i.contextualKeyword===d._constructor&&(s=!0),ra(),Io()?Vr(e,s):So()?bn():i.contextualKeyword===d._async&&!yt()?(a.tokens[a.tokens.length-1].type=n._async,h(n.star)&&w(),Fr(r),ra(),Vr(e,!1)):(i.contextualKeyword===d._get||i.contextualKeyword===d._set)&&!(yt()&&h(n.star))?(i.contextualKeyword===d._get?a.tokens[a.tokens.length-1].type=n._get:a.tokens[a.tokens.length-1].type=n._set,Fr(r),Vr(e,!1)):i.contextualKeyword===d._accessor&&!yt()?(Fr(r),bn()):yt()?bn():ne()}function Vr(e,t){he?sr():me&&h(n.lessThan)&&gt(),Ms(e,t)}function Fr(e){Qr(e)}function ra(){if(he){const e=ae(0);k(n.question),ie(e)}}function bn(){if(he?(Ea(n.bang),vr()):me&&h(n.colon)&&ir(),h(n.eq)){const e=a.tokens.length;w(),ze(),a.tokens[e].rhsEndIndex=a.tokens.length}Se()}function Tf(e,t=!1){he&&(!e||t)&&U(d._implements)||(h(n.name)&&Wt(!0),he?sr():me&&h(n.lessThan)&&gt())}function Af(){let e=!1;k(n._extends)?(oo(),e=!0):e=!1,he?Ih(e):me&&qp(e)}function Co(){const e=a.tokens.length-1;he&&xh()||(Lf()?Df():Rf()?(J(),h(n.comma)&&Te()===n.star?(v(n.comma),v(n.star),Re(d._as),J()):Eo(),Zr()):k(n._default)?Pf():Mf()?Nf():(xi(),Zr()),a.tokens[e].rhsEndIndex=a.tokens.length)}function Pf(){if(he&&yh()||me&&Op())return;const e=a.start;k(n._function)?tr(e,!0,!0):U(d._async)&&Te()===n._function?(Fe(d._async),k(n._function),tr(e,!0,!0)):h(n._class)?rr(!0,!0):h(n.at)?(gi(),rr(!0,!0)):(ze(),Se())}function Nf(){he?Sh():me?Bp():rt(!0)}function Rf(){if(he&&to())return!1;if(me&&Fp())return!1;if(h(n.name))return a.contextualKeyword!==d._async;if(!h(n._default))return!1;const e=Gs(),t=nn(),r=t.type===n.name&&t.contextualKeyword===d._from;if(t.type===n.comma)return!0;if(r){const s=N.charCodeAt(Ta(e+4));return s===g.quotationMark||s===g.apostrophe}return!1}function Eo(){k(n.comma)&&xi()}function Zr(){Fe(d._from)&&(Pt(),Ao()),Se()}function Lf(){return me?Vp():h(n.star)}function Df(){me?$p():Bs()}function Bs(){v(n.star),U(d._as)?Of():Zr()}function Of(){w(),a.tokens[a.tokens.length-1].type=n._as,J(),Eo(),Zr()}function Mf(){return he&&to()||me&&jp()||a.type===n._var||a.type===n._const||a.type===n._let||a.type===n._function||a.type===n._class||U(d._async)||h(n.at)}function xi(){let e=!0;for(v(n.braceL);!k(n.braceR)&&!a.error;){if(e)e=!1;else if(v(n.comma),k(n.braceR))break;jf()}}function jf(){if(he){bh();return}J(),a.tokens[a.tokens.length-1].identifierRole=G.ExportAccess,Fe(d._as)&&J()}function Ff(){const e=a.snapshot();return Re(d._module),Fe(d._from)?U(d._from)?(a.restoreFromSnapshot(e),!0):(a.restoreFromSnapshot(e),!1):h(n.comma)?(a.restoreFromSnapshot(e),!1):(a.restoreFromSnapshot(e),!0)}function Bf(){U(d._module)&&Ff()&&w()}function To(){if(he&&h(n.name)&&Te()===n.eq){Ls();return}if(he&&U(d._type)){const e=nn();if(e.type===n.name&&e.contextualKeyword!==d._from){if(Re(d._type),Te()===n.eq){Ls();return}}else(e.type===n.star||e.type===n.braceL)&&Re(d._type)}h(n.string)||(Bf(),$f(),Re(d._from)),Pt(),Ao(),Se()}function Vf(){return h(n.name)}function na(){_n()}function $f(){me&&Hp();let e=!0;if(!(Vf()&&(na(),!k(n.comma)))){if(h(n.star)){w(),Re(d._as),na();return}for(v(n.braceL);!k(n.braceR)&&!a.error;){if(e)e=!1;else if(k(n.colon)&&ne("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),v(n.comma),k(n.braceR))break;qf()}}}function qf(){if(he){kh();return}if(me){Wp();return}_n(),U(d._as)&&(a.tokens[a.tokens.length-1].identifierRole=G.ImportAccess,w(),_n())}function Ao(){(h(n._with)||U(d._assert)&&!Xe())&&(w(),oi(!1,!1))}function Uf(){return a.pos===0&&N.charCodeAt(0)===g.numberSign&&N.charCodeAt(1)===g.exclamationMark&&Na(2),Pa(),nf()}class zf{constructor(t,r){this.tokens=t,this.scopes=r}}function Hf(e,t,r,s){if(s&&r)throw new Error("Cannot combine flow and typescript plugins.");fl(e,t,r,s);const i=Uf();if(a.error)throw ul(a.error);return i}function Wf(e){let t=e.currentIndex(),r=0;const s=e.currentToken();do{const i=e.tokens[t];if(i.isOptionalChainStart&&r++,i.isOptionalChainEnd&&r--,r+=i.numNullishCoalesceStarts,r-=i.numNullishCoalesceEnds,i.contextualKeyword===d._await&&i.identifierRole==null&&i.scopeDepth===s.scopeDepth)return!0;t+=1}while(r>0&&t<e.tokens.length);return!1}class qr{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(t,r,s,i,o){this.code=t,this.tokens=r,this.isFlowEnabled=s,this.disableESTransforms=i,this.helperManager=o,qr.prototype.__init.call(this),qr.prototype.__init2.call(this),qr.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(t){this.resultCode=t.resultCode,this.tokenIndex=t.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(t){const r=this.resultCode.slice(t.resultCode.length);return this.resultCode=t.resultCode,r}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(t,r){return this.matches1AtIndex(t,n.name)&&this.tokens[t].contextualKeyword===r}identifierNameAtIndex(t){return this.identifierNameForToken(this.tokens[t])}identifierNameAtRelativeIndex(t){return this.identifierNameForToken(this.tokenAtRelativeIndex(t))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(t){return this.code.slice(t.start,t.end)}rawCodeForToken(t){return this.code.slice(t.start,t.end)}stringValueAtIndex(t){return this.stringValueForToken(this.tokens[t])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(t){return this.code.slice(t.start+1,t.end-1)}matches1AtIndex(t,r){return this.tokens[t].type===r}matches2AtIndex(t,r,s){return this.tokens[t].type===r&&this.tokens[t+1].type===s}matches3AtIndex(t,r,s,i){return this.tokens[t].type===r&&this.tokens[t+1].type===s&&this.tokens[t+2].type===i}matches1(t){return this.tokens[this.tokenIndex].type===t}matches2(t,r){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r}matches3(t,r,s){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s}matches4(t,r,s,i){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===i}matches5(t,r,s,i,o){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===r&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===i&&this.tokens[this.tokenIndex+4].type===o}matchesContextual(t){return this.matchesContextualAtIndex(this.tokenIndex,t)}matchesContextIdAndLabel(t,r){return this.matches1(t)&&this.currentToken().contextId===r}previousWhitespaceAndComments(){let t=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(t=t.replace(/@flow/g,"")),t}replaceToken(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(t){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let t=0;for(;!this.isAtEnd();){if(this.matches1(n.braceL))t++;else if(this.matches1(n.braceR)){if(t===0)return;t--}this.removeToken()}}copyExpectedToken(t){if(this.tokens[this.tokenIndex].type!==t)throw new Error(`Expected token ${t}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=t,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const t=this.currentToken();if((t.numNullishCoalesceStarts||t.isOptionalChainStart)&&(t.isAsyncOperation=Wf(this)),!this.disableESTransforms){if(t.numNullishCoalesceStarts)for(let r=0;r<t.numNullishCoalesceStarts;r++)t.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";t.isOptionalChainStart&&(t.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===n._delete?t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const t=this.currentToken();if(t.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),t.numNullishCoalesceEnds&&!this.disableESTransforms)for(let r=0;r<t.numNullishCoalesceEnds;r++)this.resultCode+="))"}appendCode(t){this.resultCode+=t}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const t=this.currentToken();return this.code.slice(t.start,t.end)}tokenAtRelativeIndex(t){return this.tokens[this.tokenIndex+t]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function Gf(e,t,r,s){const i=t.snapshot(),o=Xf(t);let c=[];const u=[],f=[];let p=null;const m=[],x=[],_=t.currentToken().contextId;if(_==null)throw new Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(n.braceR,_);)if(t.matchesContextual(d._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:c,constructorInsertPos:p}=sa(t));else if(t.matches1(n.semi))s||x.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{const y=t.currentIndex();let L=!1,O=!1,F=!1;for(;An(t.currentToken());)t.matches1(n._static)&&(L=!0),t.matches1(n.hash)&&(O=!0),(t.matches1(n._declare)||t.matches1(n._abstract))&&(F=!0),t.nextToken();if(L&&t.matches1(n.braceL)){vs(t,_);continue}if(O){vs(t,_);continue}if(t.matchesContextual(d._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:c,constructorInsertPos:p}=sa(t));continue}const K=t.currentIndex();if(Yf(t),t.matches1(n.lessThan)||t.matches1(n.parenL)){vs(t,_);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(n.eq)){const P=t.currentIndex(),j=t.currentToken().rhsEndIndex;if(j==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(t.nextToken();t.currentIndex()<j;)e.processToken();let D;L?(D=r.claimFreeName("__initStatic"),f.push(D)):(D=r.claimFreeName("__init"),u.push(D)),m.push({initializerName:D,equalsIndex:P,start:K,end:t.currentIndex()})}else(!s||F)&&x.push({start:y,end:t.currentIndex()})}return t.restoreToSnapshot(i),s?{headerInfo:o,constructorInitializerStatements:c,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:p,fields:[],rangesToRemove:x}:{headerInfo:o,constructorInitializerStatements:c,instanceInitializerNames:u,staticInitializerNames:f,constructorInsertPos:p,fields:m,rangesToRemove:x}}function vs(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;An(e.tokenAtRelativeIndex(-1));)e.previousToken()}function Xf(e){const t=e.currentToken(),r=t.contextId;if(r==null)throw new Error("Expected context ID on class token.");const s=t.isExpression;if(s==null)throw new Error("Expected isExpression on class token.");let i=null,o=!1;for(e.nextToken(),e.matches1(n.name)&&(i=e.identifierName());!e.matchesContextIdAndLabel(n.braceL,r);)e.matches1(n._extends)&&!e.currentToken().isType&&(o=!0),e.nextToken();return{isExpression:s,className:i,hasSuperclass:o}}function sa(e){const t=[];e.nextToken();const r=e.currentToken().contextId;if(r==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!e.matchesContextIdAndLabel(n.parenR,r);)if(e.currentToken().contextId===r){if(e.nextToken(),An(e.currentToken())){for(e.nextToken();An(e.currentToken());)e.nextToken();const o=e.currentToken();if(o.type!==n.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const c=e.identifierNameForToken(o);t.push(`this.${c} = ${c}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let s=e.currentIndex(),i=!1;for(;!e.matchesContextIdAndLabel(n.braceR,r);){if(!i&&e.matches2(n._super,n.parenL)){e.nextToken();const o=e.currentToken().contextId;if(o==null)throw new Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(n.parenR,o);)e.nextToken();s=e.currentIndex(),i=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:s}}function An(e){return[n._async,n._get,n._set,n.plus,n.minus,n._readonly,n._static,n._public,n._private,n._protected,n._override,n._abstract,n.star,n._declare,n.hash].includes(e.type)}function Yf(e){if(e.matches1(n.bracketL)){const r=e.currentToken().contextId;if(r==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(n.bracketR,r);)e.nextToken();e.nextToken()}else e.nextToken()}function Po(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(n.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(n.dot);)e.removeToken(),e.removeToken()}const No={typeDeclarations:new Set,valueDeclarations:new Set};function Ro(e){const t=new Set,r=new Set;for(let s=0;s<e.tokens.length;s++){const i=e.tokens[s];i.type===n.name&&Ca(i)&&(i.isType?t.add(e.identifierNameForToken(i)):r.add(e.identifierNameForToken(i)))}return{typeDeclarations:t,valueDeclarations:r}}function Lo(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,n.braceR);)t++;return e.matchesContextualAtIndex(t+1,d._from)&&e.matches1AtIndex(t+2,n.string)}function Jt(e){(e.matches2(n._with,n.braceL)||e.matches2(n.name,n.braceL)&&e.matchesContextual(d._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function Do(e,t,r,s){if(!e||t)return!1;const i=r.currentToken();if(i.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const o=i.rhsEndIndex-r.currentIndex();if(o!==3&&!(o===4&&r.matches1AtIndex(i.rhsEndIndex-1,n.semi)))return!1;const c=r.tokenAtRelativeIndex(2);if(c.type!==n.name)return!1;const u=r.identifierNameForToken(c);return s.typeDeclarations.has(u)&&!s.valueDeclarations.has(u)}class Ur extends mt{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(t,r,s,i,o,c,u,f,p,m,x,_){super(),this.rootTransformer=t,this.tokens=r,this.importProcessor=s,this.nameManager=i,this.helperManager=o,this.reactHotLoaderTransformer=c,this.enableLegacyBabel5ModuleInterop=u,this.enableLegacyTypeScriptModuleInterop=f,this.isTypeScriptTransformEnabled=p,this.isFlowTransformEnabled=m,this.preserveDynamicImport=x,this.keepUnusedImports=_,Ur.prototype.__init.call(this),Ur.prototype.__init2.call(this),Ur.prototype.__init3.call(this),this.declarationInfo=p?Ro(r):No}getPrefixCode(){let t="";return this.hadExport&&(t+='Object.defineProperty(exports, "__esModule", {value: true});'),t}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
172
172
  module.exports = exports.default;
173
173
  `:""}process(){return this.tokens.matches3(n._import,n.name,n.eq)?this.processImportEquals():this.tokens.matches1(n._import)?(this.processImport(),!0):this.tokens.matches2(n._export,n.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(n._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(n.name,n.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(n.name)||this.tokens.matches1(n.jsxName)?this.processIdentifier():this.tokens.matches1(n.eq)?this.processAssignment():this.tokens.matches1(n.assign)?this.processComplexAssignment():this.tokens.matches1(n.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(t)?Po(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(n._import,n.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const r=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${r}require`);const s=this.tokens.currentToken().contextId;if(s==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(n.parenR,s);)this.rootTransformer.processToken();this.tokens.replaceToken(r?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const r=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(r)),this.tokens.appendCode(this.importProcessor.claimImportCode(r))}Jt(this.tokens),this.tokens.matches1(n.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(d._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(n.name)||this.tokens.matches1(n.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(n.string))return!1;let t=!1,r=!1;for(;!this.tokens.matches1(n.string);)(!t&&this.tokens.matches1(n.braceL)||this.tokens.matches1(n.comma))&&(this.tokens.removeToken(),this.tokens.matches1(n.braceR)||(r=!0),(this.tokens.matches2(n.name,n.comma)||this.tokens.matches2(n.name,n.braceR)||this.tokens.matches4(n.name,n.name,n.name,n.comma)||this.tokens.matches4(n.name,n.name,n.name,n.braceR))&&(t=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?r&&!t:!1}removeRemainingImport(){for(;!this.tokens.matches1(n.string);)this.tokens.removeToken()}processIdentifier(){const t=this.tokens.currentToken();if(t.shadowsGlobal)return!1;if(t.identifierRole===G.ObjectShorthand)return this.processObjectShorthand();if(t.identifierRole!==G.Access)return!1;const r=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(t));if(!r)return!1;let s=this.tokens.currentIndex()+1;for(;s<this.tokens.tokens.length&&this.tokens.tokens[s].type===n.parenR;)s++;return this.tokens.tokens[s].type===n.parenL?this.tokens.tokenAtRelativeIndex(1).type===n.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==n._new?(this.tokens.replaceToken(`${r}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR)):this.tokens.replaceToken(`(0, ${r})`):this.tokens.replaceToken(r),!0}processObjectShorthand(){const t=this.tokens.identifierName(),r=this.importProcessor.getIdentifierReplacement(t);return r?(this.tokens.replaceToken(`${t}: ${r}`),!0):!1}processExport(){if(this.tokens.matches2(n._export,n._enum)||this.tokens.matches3(n._export,n._const,n._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(n._export,n._default))return this.tokens.matches3(n._export,n._default,n._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(n._export,n.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(n._export,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(n.braceL)){for(;!this.tokens.matches1(n.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(n._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(d._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Jt(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(n._export,n._var)||this.tokens.matches2(n._export,n._let)||this.tokens.matches2(n._export,n._const))return this.processExportVar(),!0;if(this.tokens.matches2(n._export,n._function)||this.tokens.matches3(n._export,n.name,n._function))return this.processExportFunction(),!0;if(this.tokens.matches2(n._export,n._class)||this.tokens.matches3(n._export,n._abstract,n._class)||this.tokens.matches2(n._export,n.at))return this.processExportClass(),!0;if(this.tokens.matches2(n._export,n.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t-1];if(r.isType||r.type!==n.name||r.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,n.dot)||t>=2&&[n._var,n._let,n._const].includes(this.tokens.tokens[t-2].type))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(r));return s?(this.tokens.copyToken(),this.tokens.appendCode(` ${s} =`),!0):!1}processComplexAssignment(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t-1];if(r.type!==n.name||r.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,n.dot))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(r));return s?(this.tokens.appendCode(` = ${s}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t+1];if(r.type!==n.name||r.shadowsGlobal||t+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(t+2,n.dot)||this.tokens.matches1AtIndex(t+2,n.bracketL)||this.tokens.matches1AtIndex(t+2,n.parenL)))return!1;const s=this.tokens.identifierNameForToken(r),i=this.importProcessor.resolveExportBinding(s);return i?(this.tokens.appendCode(`${i} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const t=this.tokens.currentIndex(),r=this.tokens.tokens[t],s=this.tokens.tokens[t+1];if(r.type!==n.name||r.shadowsGlobal||t>=1&&this.tokens.matches1AtIndex(t-1,n.dot))return!1;const i=this.tokens.identifierNameForToken(r),o=this.importProcessor.resolveExportBinding(i);if(!o)return!1;const c=this.tokens.rawCodeForToken(s),u=this.importProcessor.getIdentifierReplacement(i)||i;if(c==="++")this.tokens.replaceToken(`(${u} = ${o} = ${u} + 1, ${u} - 1)`);else if(c==="--")this.tokens.replaceToken(`(${u} = ${o} = ${u} - 1, ${u} + 1)`);else throw new Error(`Unexpected operator: ${c}`);return this.tokens.removeToken(),!0}processExportDefault(){let t=!0;if(this.tokens.matches4(n._export,n._default,n._function,n.name)||this.tokens.matches5(n._export,n._default,n.name,n._function,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const r=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${r};`)}else if(this.tokens.matches4(n._export,n._default,n._class,n.name)||this.tokens.matches5(n._export,n._default,n._abstract,n._class,n.name)||this.tokens.matches3(n._export,n._default,n.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(n._abstract)&&this.tokens.removeToken();const r=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${r};`)}else if(Do(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))t=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const r=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${r}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${r} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(r)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");t&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(n.at);)if(this.tokens.copyToken(),this.tokens.matches1(n.parenL))this.tokens.copyExpectedToken(n.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR);else{for(this.tokens.copyExpectedToken(n.name);this.tokens.matches1(n.dot);)this.tokens.copyExpectedToken(n.dot),this.tokens.copyExpectedToken(n.name);this.tokens.matches1(n.parenL)&&(this.tokens.copyExpectedToken(n.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let t=this.tokens.currentIndex();if(t++,t++,!this.tokens.matches1AtIndex(t,n.name))return!1;for(t++;t<this.tokens.tokens.length&&this.tokens.tokens[t].isType;)t++;return!!this.tokens.matches1AtIndex(t,n.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const t=this.tokens.identifierName();for(;!this.tokens.matches1(n.eq);)this.rootTransformer.processToken();const r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${t} = ${t}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.matches1(n.braceL);t&&this.tokens.appendCode("(");let r=0;for(;;)if(this.tokens.matches1(n.braceL)||this.tokens.matches1(n.dollarBraceL)||this.tokens.matches1(n.bracketL))r++,this.tokens.copyToken();else if(this.tokens.matches1(n.braceR)||this.tokens.matches1(n.bracketR))r--,this.tokens.copyToken();else{if(r===0&&!this.tokens.matches1(n.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(n.eq)){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken()}else{const s=this.tokens.currentToken();if(Ia(s)){const i=this.tokens.identifierName();let o=this.importProcessor.getIdentifierReplacement(i);if(o===null)throw new Error(`Expected a replacement for ${i} in \`export var\` syntax.`);bl(s)&&(o=`${i}: ${o}`),this.tokens.replaceToken(o)}else this.rootTransformer.processToken()}}if(t){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const t=this.processNamedFunction();this.tokens.appendCode(` exports.${t} = ${t};`)}processNamedFunction(){if(this.tokens.matches1(n._function))this.tokens.copyToken();else if(this.tokens.matches2(n.name,n._function)){if(!this.tokens.matchesContextual(d._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(n.star)&&this.tokens.copyToken(),!this.tokens.matches1(n.name))throw new Error("Expected identifier for exported function name.");const t=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(n.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(n.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.braceR),t}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(n._abstract)&&this.tokens.removeToken();const t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${t} = ${t};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=Lo(this.tokens),r=[];for(;;){if(this.tokens.matches1(n.braceR)){this.tokens.removeToken();break}const s=Yr(this.tokens);for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();if(!(s.isType||!t&&this.shouldElideExportedIdentifier(s.leftName))){const o=s.rightName;o==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const c=s.leftName,u=this.importProcessor.getIdentifierReplacement(c);r.push(`exports.${o} = ${u||c};`)}if(this.tokens.matches1(n.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(n.comma,n.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(n.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(d._from)){this.tokens.removeToken();const s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),Jt(this.tokens)}else this.tokens.appendCode(r.join(" "));this.tokens.matches1(n.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(n.string);)this.tokens.removeToken();const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),Jt(this.tokens),this.tokens.matches1(n.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(t)}}class Kf extends mt{constructor(t,r,s,i,o,c,u,f){super(),this.tokens=t,this.nameManager=r,this.helperManager=s,this.reactHotLoaderTransformer=i,this.isTypeScriptTransformEnabled=o,this.isFlowTransformEnabled=c,this.keepUnusedImports=u,this.nonTypeIdentifiers=o&&!u?Va(t,f):new Set,this.declarationInfo=o&&!u?Ro(t):No,this.injectCreateRequireForImportRequire=!!f.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(n._import,n.name,n.eq))return this.processImportEquals();if(this.tokens.matches4(n._import,n.name,n.name,n.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._type)){this.tokens.removeInitialToken();for(let t=0;t<7;t++)this.tokens.removeToken();return!0}if(this.tokens.matches2(n._export,n.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(n._export,n._import,n.name,n.name,n.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._type)){this.tokens.removeInitialToken();for(let t=0;t<8;t++)this.tokens.removeToken();return!0}if(this.tokens.matches1(n._import))return this.processImport();if(this.tokens.matches2(n._export,n._default))return this.processExportDefault();if(this.tokens.matches2(n._export,n.braceL))return this.processNamedExports();if(this.tokens.matches2(n._export,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(n.braceL)){for(;!this.tokens.matches1(n.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(n._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(d._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Jt(this.tokens)),!0}return!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(t)?Po(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(n._import,n.parenL))return!1;const t=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(t);!this.tokens.matches1(n.string);)this.tokens.removeToken();this.tokens.removeToken(),Jt(this.tokens),this.tokens.matches1(n.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(n._import),this.tokens.matchesContextual(d._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,n.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,d._from))return!0;if(this.tokens.matches1(n.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(d._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._from)&&this.tokens.copyToken();let t=!1,r=!1,s=!1;if(this.tokens.matches1(n.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(n.comma)&&this.tokens.removeToken()):(t=!0,this.tokens.copyToken(),this.tokens.matches1(n.comma)&&(s=!0,this.tokens.removeToken()))),this.tokens.matches1(n.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(s&&this.tokens.appendCode(","),t=!0,this.tokens.copyExpectedToken(n.star),this.tokens.copyExpectedToken(n.name),this.tokens.copyExpectedToken(n.name));else if(this.tokens.matches1(n.braceL)){for(s&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(n.braceR);){r=!0;const i=Yr(this.tokens);if(i.isType||this.shouldAutomaticallyElideImportedName(i.rightName)){for(;this.tokens.currentIndex()<i.endIndex;)this.tokens.removeToken();this.tokens.matches1(n.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<i.endIndex;)this.tokens.copyToken();this.tokens.matches1(n.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(n.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?r&&!t:!1}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}processExportDefault(){if(Do(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(n._export,n._default,n._function,n.name)||this.tokens.matches5(n._export,n._default,n.name,n._function,n.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,d._async)||this.tokens.matches4(n._export,n._default,n._class,n.name)||this.tokens.matches5(n._export,n._default,n._abstract,n._class,n.name))&&this.reactHotLoaderTransformer){const r=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${r}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${r} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(r),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(n._export),this.tokens.copyExpectedToken(n.braceL);const t=Lo(this.tokens);let r=!1;for(;!this.tokens.matches1(n.braceR);){const s=Yr(this.tokens);if(s.isType||!t&&this.shouldElideExportedName(s.leftName)){for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();this.tokens.matches1(n.comma)&&this.tokens.removeToken()}else{for(r=!0;this.tokens.currentIndex()<s.endIndex;)this.tokens.copyToken();this.tokens.matches1(n.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(n.braceR),!this.keepUnusedImports&&t&&!r&&(this.tokens.removeToken(),this.tokens.removeToken(),Jt(this.tokens)),!0}shouldElideExportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(t)&&!this.declarationInfo.valueDeclarations.has(t)}}class Qf extends mt{constructor(t,r,s){super(),this.rootTransformer=t,this.tokens=r,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(n._enum)?(this.processEnum(),!0):this.tokens.matches2(n._export,n._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(n._export,n._default,n._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${t} = ${t};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${t};`):this.tokens.appendCode(` export default ${t};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(n.name);let t=!1;this.tokens.matchesContextual(d._of)&&(this.tokens.removeToken(),t=this.tokens.matchesContextual(d._symbol),this.tokens.removeToken());const r=this.tokens.matches3(n.braceL,n.name,n.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const s=!t&&!r;for(this.tokens.replaceTokenTrimmingLeftWhitespace(s?".Mirrored([":"({");!this.tokens.matches1(n.braceR);){if(this.tokens.matches1(n.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(t,r),this.tokens.matches1(n.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(s?"]);":"});")}processEnumElement(t,r){if(t){const s=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${s}")`)}else r?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function Jf(e){let t,r=e[0],s=1;for(;s<e.length;){const i=e[s],o=e[s+1];if(s+=2,(i==="optionalAccess"||i==="optionalCall")&&r==null)return;i==="access"||i==="optionalAccess"?(t=r,r=o(r)):(i==="call"||i==="optionalCall")&&(r=o((...c)=>r.call(t,...c)),t=void 0)}return r}const mn="jest",Zf=["mock","unmock","enableAutomock","disableAutomock"];class ki extends mt{__init(){this.hoistedFunctionNames=[]}constructor(t,r,s,i){super(),this.rootTransformer=t,this.tokens=r,this.nameManager=s,this.importProcessor=i,ki.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(n.name,n.dot,n.name,n.parenL)&&this.tokens.identifierName()===mn?Jf([this,"access",t=>t.importProcessor,"optionalAccess",t=>t.getGlobalNames,"call",t=>t(),"optionalAccess",t=>t.has,"call",t=>t(mn)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(t=>`${t}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let t=!1;for(;this.tokens.matches3(n.dot,n.name,n.parenL);){const r=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Zf.includes(r)){const i=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(i),this.tokens.replaceToken(`function ${i}(){${mn}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR),this.tokens.appendCode(";}"),t=!1}else t?this.tokens.copyToken():this.tokens.replaceToken(`${mn}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.parenR),t=!0}return!0}}class ed extends mt{constructor(t){super(),this.tokens=t}process(){if(this.tokens.matches1(n.num)){const t=this.tokens.currentTokenCode();if(t.includes("_"))return this.tokens.replaceToken(t.replace(/_/g,"")),!0}return!1}}class td extends mt{constructor(t,r){super(),this.tokens=t,this.nameManager=r}process(){return this.tokens.matches2(n._catch,n.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class rd extends mt{constructor(t,r){super(),this.tokens=t,this.nameManager=r}process(){if(this.tokens.matches1(n.nullishCoalescing)){const s=this.tokens.currentToken();return this.tokens.tokens[s.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(n._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const r=this.tokens.currentToken().subscriptStartIndex;if(r!=null&&this.tokens.tokens[r].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==n._super){const s=this.nameManager.claimFreeName("_");let i;if(r>0&&this.tokens.matches1AtIndex(r-1,n._delete)&&this.isLastSubscriptInChain()?i=`${s} => delete ${s}`:i=`${s} => ${s}`,this.tokens.tokens[r].isAsyncOperation&&(i=`async ${i}`),this.tokens.matches2(n.questionDot,n.parenL)||this.tokens.matches2(n.questionDot,n.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${i}`);else if(this.tokens.matches2(n.questionDot,n.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}`);else if(this.tokens.matches1(n.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}.`);else if(this.tokens.matches1(n.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}.`);else if(this.tokens.matches1(n.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}[`);else if(this.tokens.matches1(n.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${i}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let t=0;for(let r=this.tokens.currentIndex()+1;;r++){if(r>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[r].isOptionalChainStart?t++:this.tokens.tokens[r].isOptionalChainEnd&&t--,t<0)return!0;if(t===0&&this.tokens.tokens[r].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let t=0,r=this.tokens.currentIndex()-1;for(;;){if(r<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[r].isOptionalChainStart?t--:this.tokens.tokens[r].isOptionalChainEnd&&t++,t<0)return!1;if(t===0&&this.tokens.tokens[r].subscriptStartIndex!=null)return this.tokens.tokens[r-1].type===n._super;r--}}}class nd extends mt{constructor(t,r,s,i){super(),this.rootTransformer=t,this.tokens=r,this.importProcessor=s,this.options=i}process(){const t=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const r=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return r?this.tokens.replaceToken(`(0, ${r})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}if(this.tokens.matches3(n.name,n.dot,n.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const r=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return this.tokens.replaceToken(r),this.tokens.copyToken(),this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}return!1}tryProcessCreateClassCall(t){const r=this.findDisplayName(t);r&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(n.parenL),this.tokens.copyExpectedToken(n.braceL),this.tokens.appendCode(`displayName: '${r}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(n.braceR),this.tokens.copyExpectedToken(n.parenR))}findDisplayName(t){return t<2?null:this.tokens.matches2AtIndex(t-2,n.name,n.eq)?this.tokens.identifierNameAtIndex(t-2):t>=2&&this.tokens.tokens[t-2].identifierRole===G.ObjectKey?this.tokens.identifierNameAtIndex(t-2):this.tokens.matches2AtIndex(t-2,n._export,n._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const r=(this.options.filePath||"unknown").split("/"),s=r[r.length-1],i=s.lastIndexOf("."),o=i===-1?s:s.slice(0,i);return o==="index"&&r[r.length-2]?r[r.length-2]:o}classNeedsDisplayName(){let t=this.tokens.currentIndex();if(!this.tokens.matches2(n.parenL,n.braceL))return!1;const r=t+1,s=this.tokens.tokens[r].contextId;if(s==null)throw new Error("Expected non-null context ID on object open-brace.");for(;t<this.tokens.tokens.length;t++){const i=this.tokens.tokens[t];if(i.type===n.braceR&&i.contextId===s){t++;break}if(this.tokens.identifierNameAtIndex(t)==="displayName"&&this.tokens.tokens[t].identifierRole===G.ObjectKey&&i.contextId===s)return!1}if(t===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(t,n.parenR)||this.tokens.matches2AtIndex(t,n.comma,n.parenR)}}class bi extends mt{__init(){this.extractedDefaultExportName=null}constructor(t,r){super(),this.tokens=t,this.filePath=r,bi.prototype.__init.call(this)}setExtractedDefaultExportName(t){this.extractedDefaultExportName=t}getPrefixCode(){return`
174
174
  (function () {
175
175
  var enterModule = require('react-hot-loader').enterModule;
176
176
  enterModule && enterModule(module);
177
- })();`.replace(/\s+/g," ").trim()}getSuffixCode(){const t=new Set;for(const s of this.tokens.tokens)!s.isType&&Ea(s)&&s.identifierRole!==G.ImportDeclaration&&t.add(this.tokens.identifierNameForToken(s));const r=Array.from(t).map(s=>({variableName:s,uniqueLocalName:s}));return this.extractedDefaultExportName&&r.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
177
+ })();`.replace(/\s+/g," ").trim()}getSuffixCode(){const t=new Set;for(const s of this.tokens.tokens)!s.isType&&Ca(s)&&s.identifierRole!==G.ImportDeclaration&&t.add(this.tokens.identifierNameForToken(s));const r=Array.from(t).map(s=>({variableName:s,uniqueLocalName:s}));return this.extractedDefaultExportName&&r.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
178
178
  ;(function () {
179
179
  var reactHotLoader = require('react-hot-loader').default;
180
180
  var leaveModule = require('react-hot-loader').leaveModule;
@@ -186,27 +186,27 @@ ${r.map(({variableName:s,uniqueLocalName:i})=>` reactHotLoader.register(${s}, "
186
186
  leaveModule(module);
187
187
  })();`}process(){return!1}}const sd=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function ia(e){if(e.length===0||!rn[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!dt[e.charCodeAt(t)])return!1;return!sd.has(e)}class id extends mt{constructor(t,r,s){super(),this.rootTransformer=t,this.tokens=r,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(n._public)||this.tokens.matches1(n._protected)||this.tokens.matches1(n._private)||this.tokens.matches1(n._abstract)||this.tokens.matches1(n._readonly)||this.tokens.matches1(n._override)||this.tokens.matches1(n.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(n._enum)||this.tokens.matches2(n._const,n._enum)?(this.processEnum(),!0):this.tokens.matches2(n._export,n._enum)||this.tokens.matches3(n._export,n._const,n._enum)?(this.processEnum(!0),!0):!1}processEnum(t=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(n._const)||this.tokens.matches1(n._enum);)this.tokens.removeToken();const r=this.tokens.identifierName();this.tokens.removeToken(),t&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${r}; (function (${r})`),this.tokens.copyExpectedToken(n.braceL),this.processEnumBody(r),this.tokens.copyExpectedToken(n.braceR),t&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${r} || (exports.${r} = ${r} = {}));`):this.tokens.appendCode(`)(${r} || (${r} = {}));`)}processEnumBody(t){let r=null;for(;!this.tokens.matches1(n.braceR);){const{nameStringCode:s,variableName:i}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(n.eq,n.string,n.comma)||this.tokens.matches3(n.eq,n.string,n.braceR)?this.processStringLiteralEnumMember(t,s,i):this.tokens.matches1(n.eq)?this.processExplicitValueEnumMember(t,s,i):this.processImplicitValueEnumMember(t,s,i,r),this.tokens.matches1(n.comma)&&this.tokens.removeToken(),i!=null?r=i:r=`${t}[${s}]`}}extractEnumKeyInfo(t){if(t.type===n.name){const r=this.tokens.identifierNameForToken(t);return{nameStringCode:`"${r}"`,variableName:ia(r)?r:null}}else if(t.type===n.string){const r=this.tokens.stringValueForToken(t);return{nameStringCode:this.tokens.code.slice(t.start,t.end),variableName:ia(r)?r:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(t,r,s){s!=null?(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${t}[${r}] = ${s};`)):(this.tokens.appendCode(`${t}[${r}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(t,r,s){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected rhsEndIndex on enum assign.");if(s!=null){for(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${t}[${t}[${r}] = ${s}] = ${r};`)}else{for(this.tokens.appendCode(`${t}[${t}[${r}]`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${r};`)}}processImplicitValueEnumMember(t,r,s,i){let o=i!=null?`${i} + 1`:"0";s!=null&&(this.tokens.appendCode(`const ${s} = ${o}; `),o=s),this.tokens.appendCode(`${t}[${t}[${r}] = ${o}] = ${r};`)}}class Pn{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,r,s,i){Pn.prototype.__init.call(this),Pn.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.helperManager;const{tokenProcessor:o,importProcessor:c}=t;this.tokens=o,this.isImportsTransformEnabled=r.includes("imports"),this.isReactHotLoaderTransformEnabled=r.includes("react-hot-loader"),this.disableESTransforms=!!i.disableESTransforms,i.disableESTransforms||(this.transformers.push(new rd(o,this.nameManager)),this.transformers.push(new ed(o)),this.transformers.push(new td(o,this.nameManager))),r.includes("jsx")&&(i.jsxRuntime!=="preserve"&&this.transformers.push(new Kt(this,o,c,this.nameManager,i)),this.transformers.push(new nd(this,o,c,i)));let u=null;if(r.includes("react-hot-loader")){if(!i.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");u=new bi(o,i.filePath),this.transformers.push(u)}if(r.includes("imports")){if(c===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new Ur(this,o,c,this.nameManager,this.helperManager,u,s,!!i.enableLegacyTypeScriptModuleInterop,r.includes("typescript"),r.includes("flow"),!!i.preserveDynamicImport,!!i.keepUnusedImports))}else this.transformers.push(new Kf(o,this.nameManager,this.helperManager,u,r.includes("typescript"),r.includes("flow"),!!i.keepUnusedImports,i));r.includes("flow")&&this.transformers.push(new Qf(this,o,r.includes("imports"))),r.includes("typescript")&&this.transformers.push(new id(this,o,r.includes("imports"))),r.includes("jest")&&this.transformers.push(new ki(this,o,this.nameManager,c))}transform(){this.tokens.reset(),this.processBalancedCode();let r=this.isImportsTransformEnabled?'"use strict";':"";for(const c of this.transformers)r+=c.getPrefixCode();r+=this.helperManager.emitHelpers(),r+=this.generatedVariables.map(c=>` var ${c};`).join("");for(const c of this.transformers)r+=c.getHoistedCode();let s="";for(const c of this.transformers)s+=c.getSuffixCode();const i=this.tokens.finish();let{code:o}=i;if(o.startsWith("#!")){let c=o.indexOf(`
188
188
  `);return c===-1&&(c=o.length,o+=`
189
- `),{code:o.slice(0,c+1)+r+o.slice(c+1)+s,mappings:this.shiftMappings(i.mappings,r.length)}}else return{code:r+o+s,mappings:this.shiftMappings(i.mappings,r.length)}}processBalancedCode(){let t=0,r=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(n.braceL)||this.tokens.matches1(n.dollarBraceL))t++;else if(this.tokens.matches1(n.braceR)){if(t===0)return;t--}if(this.tokens.matches1(n.parenL))r++;else if(this.tokens.matches1(n.parenR)){if(r===0)return;r--}this.processToken()}}processToken(){if(this.tokens.matches1(n._class)){this.processClass();return}for(const t of this.transformers)if(t.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(n._class,n.name))throw new Error("Expected identifier for exported class name.");const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){const t=Gf(this,this.tokens,this.nameManager,this.disableESTransforms),r=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0;let s=t.headerInfo.className;r&&(s=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(s),this.tokens.appendCode(` (${s} =`));const o=this.tokens.currentToken().contextId;if(o==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(n._class);!this.tokens.matchesContextIdAndLabel(n.braceL,o);)this.processToken();this.processClassBody(t,s);const c=t.staticInitializerNames.map(u=>`${s}.${u}()`);r?this.tokens.appendCode(`, ${c.map(u=>`${u}, `).join("")}${s})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${c.map(u=>`${u};`).join(" ")}`)}processClassBody(t,r){const{headerInfo:s,constructorInsertPos:i,constructorInitializerStatements:o,fields:c,instanceInitializerNames:u,rangesToRemove:f}=t;let h=0,m=0;const x=this.tokens.currentToken().contextId;if(x==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(n.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const _=o.length+u.length>0;if(i===null&&_){const y=this.makeConstructorInitCode(o,u,r);if(s.hasSuperclass){const L=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${L}) { super(...${L}); ${y}; }`)}else this.tokens.appendCode(`constructor() { ${y}; }`)}for(;!this.tokens.matchesContextIdAndLabel(n.braceR,x);)if(h<c.length&&this.tokens.currentIndex()===c[h].start){let y=!1;for(this.tokens.matches1(n.bracketL)?this.tokens.copyTokenWithPrefix(`${c[h].initializerName}() {this`):this.tokens.matches1(n.string)||this.tokens.matches1(n.num)?(this.tokens.copyTokenWithPrefix(`${c[h].initializerName}() {this[`),y=!0):this.tokens.copyTokenWithPrefix(`${c[h].initializerName}() {this.`);this.tokens.currentIndex()<c[h].end;)y&&this.tokens.currentIndex()===c[h].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),h++}else if(m<f.length&&this.tokens.currentIndex()>=f[m].start){for(this.tokens.currentIndex()<f[m].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<f[m].end;)this.tokens.removeToken();m++}else this.tokens.currentIndex()===i?(this.tokens.copyToken(),_&&this.tokens.appendCode(`;${this.makeConstructorInitCode(o,u,r)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(n.braceR)}makeConstructorInitCode(t,r,s){return[...t,...r.map(i=>`${s}.prototype.${i}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(n.parenR,n.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,n.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(d._async)&&!this.tokens.matches1(n._async))return!1;const t=this.tokens.tokenAtRelativeIndex(1);if(t.type!==n.lessThan||!t.isType)return!1;let r=this.tokens.currentIndex()+1;for(;this.tokens.tokens[r].isType;)r++;if(this.tokens.matches1AtIndex(r,n.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<r;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(t,r){for(let s=0;s<t.length;s++){const i=t[s];i!==void 0&&(t[s]=i+r)}return t}}var ad={};(function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var t=`
190
- `,r="\r",s=function(){function i(o){this.string=o;for(var c=[0],u=0;u<o.length;)switch(o[u]){case t:u+=t.length,c.push(u);break;case r:u+=r.length,o[u]===t&&(u+=t.length),c.push(u);break;default:u++;break}this.offsets=c}return i.prototype.locationForIndex=function(o){if(o<0||o>this.string.length)return null;for(var c=0,u=this.offsets;u[c+1]<=o;)c++;var f=o-u[c];return{line:c,column:f}},i.prototype.indexForLocation=function(o){var c=o.line,u=o.column;return c<0||c>=this.offsets.length||u<0||u>this.lengthOfLine(c)?null:this.offsets[c]+u},i.prototype.lengthOfLine=function(o){var c=this.offsets[o],u=o===this.offsets.length-1?this.string.length:this.offsets[o+1];return u-c},i}();e.LinesAndColumns=s,e.default=s})(ad);function od(e){const t=new Set;for(let r=0;r<e.tokens.length;r++)e.matches1AtIndex(r,n._import)&&!e.matches3AtIndex(r,n._import,n.name,n.eq)&&cd(e,r,t);return t}function cd(e,t,r){t++,!e.matches1AtIndex(t,n.parenL)&&(e.matches1AtIndex(t,n.name)&&(r.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,n.comma)&&t++),e.matches1AtIndex(t,n.star)&&(t+=2,r.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,n.braceL)&&(t++,ld(e,t,r)))}function ld(e,t,r){for(;;){if(e.matches1AtIndex(t,n.braceR))return;const s=Yr(e,t);if(t=s.endIndex,s.isType||r.add(s.rightName),e.matches2AtIndex(t,n.comma,n.braceR))return;if(e.matches1AtIndex(t,n.braceR))return;if(e.matches1AtIndex(t,n.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}function ud(e,t){Iu(t);try{const r=pd(e,t),i=new Pn(r,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform();let o={code:i.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");o={...o,sourceMap:pu(i,t.filePath,t.sourceMapOptions,e,r.tokenProcessor.tokens)}}return o}catch(r){throw t.filePath&&(r.message=`Error transforming ${t.filePath}: ${r.message}`),r}}function pd(e,t){const r=t.transforms.includes("jsx"),s=t.transforms.includes("typescript"),i=t.transforms.includes("flow"),o=t.disableESTransforms===!0,c=Hf(e,r,s,i),u=c.tokens,f=c.scopes,h=new Xs(e,u),m=new wn(h),x=new qr(e,u,i,o,m),_=!!t.enableLegacyTypeScriptModuleInterop;let y=null;return t.transforms.includes("imports")?(y=new Qt(h,x,_,t,t.transforms.includes("typescript"),!!t.keepUnusedImports,m),y.preprocessTokens(),Hi(x,f,y.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&y.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&Hi(x,f,od(x)),{tokenProcessor:x,scopes:f,nameManager:h,importProcessor:y,helperManager:m}}var hd=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Oo=[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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],fd="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Mo="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ws={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"},_s="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",dd={5:_s,"5module":_s+" export import",6:_s+" const class extends export import super"},jo=/^in(stanceof)?$/,md=new RegExp("["+Mo+"]"),gd=new RegExp("["+Mo+fd+"]");function Vs(e,t){for(var r=65536,s=0;s<t.length;s+=2){if(r+=t[s],r>e)return!1;if(r+=t[s+1],r>=e)return!0}return!1}function It(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&md.test(String.fromCharCode(e)):t===!1?!1:Vs(e,Oo)}function Ht(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&gd.test(String.fromCharCode(e)):t===!1?!1:Vs(e,Oo)||Vs(e,hd)}var de=function(t,r){r===void 0&&(r={}),this.label=t,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 st(e,t){return new de(e,{beforeExpr:!0,binop:t})}var it={beforeExpr:!0},Ke={startsExpr:!0},yi={};function fe(e,t){return t===void 0&&(t={}),t.keyword=e,yi[e]=new de(e,t)}var l={num:new de("num",Ke),regexp:new de("regexp",Ke),string:new de("string",Ke),name:new de("name",Ke),privateId:new de("privateId",Ke),eof:new de("eof"),bracketL:new de("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new de("]"),braceL:new de("{",{beforeExpr:!0,startsExpr:!0}),braceR:new de("}"),parenL:new de("(",{beforeExpr:!0,startsExpr:!0}),parenR:new de(")"),comma:new de(",",it),semi:new de(";",it),colon:new de(":",it),dot:new de("."),question:new de("?",it),questionDot:new de("?."),arrow:new de("=>",it),template:new de("template"),invalidTemplate:new de("invalidTemplate"),ellipsis:new de("...",it),backQuote:new de("`",Ke),dollarBraceL:new de("${",{beforeExpr:!0,startsExpr:!0}),eq:new de("=",{beforeExpr:!0,isAssign:!0}),assign:new de("_=",{beforeExpr:!0,isAssign:!0}),incDec:new de("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new de("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:st("||",1),logicalAND:st("&&",2),bitwiseOR:st("|",3),bitwiseXOR:st("^",4),bitwiseAND:st("&",5),equality:st("==/!=/===/!==",6),relational:st("</>/<=/>=",7),bitShift:st("<</>>/>>>",8),plusMin:new de("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:st("%",10),star:st("*",10),slash:st("/",10),starstar:new de("**",{beforeExpr:!0}),coalesce:st("??",1),_break:fe("break"),_case:fe("case",it),_catch:fe("catch"),_continue:fe("continue"),_debugger:fe("debugger"),_default:fe("default",it),_do:fe("do",{isLoop:!0,beforeExpr:!0}),_else:fe("else",it),_finally:fe("finally"),_for:fe("for",{isLoop:!0}),_function:fe("function",Ke),_if:fe("if"),_return:fe("return",it),_switch:fe("switch"),_throw:fe("throw",it),_try:fe("try"),_var:fe("var"),_const:fe("const"),_while:fe("while",{isLoop:!0}),_with:fe("with"),_new:fe("new",{beforeExpr:!0,startsExpr:!0}),_this:fe("this",Ke),_super:fe("super",Ke),_class:fe("class",Ke),_extends:fe("extends",it),_export:fe("export"),_import:fe("import",Ke),_null:fe("null",Ke),_true:fe("true",Ke),_false:fe("false",Ke),_in:fe("in",{beforeExpr:!0,binop:7}),_instanceof:fe("instanceof",{beforeExpr:!0,binop:7}),_typeof:fe("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:fe("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:fe("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Je=/\r\n?|\n|\u2028|\u2029/,xd=new RegExp(Je.source,"g");function Sr(e){return e===10||e===13||e===8232||e===8233}function Fo(e,t,r){r===void 0&&(r=e.length);for(var s=t;s<r;s++){var i=e.charCodeAt(s);if(Sr(i))return s<r-1&&i===13&&e.charCodeAt(s+1)===10?s+2:s+1}return-1}var Bo=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,He=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Vo=Object.prototype,kd=Vo.hasOwnProperty,bd=Vo.toString,Ir=Object.hasOwn||function(e,t){return kd.call(e,t)},aa=Array.isArray||function(e){return bd.call(e)==="[object Array]"},oa=Object.create(null);function Vt(e){return oa[e]||(oa[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Nt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var yd=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,en=function(t,r){this.line=t,this.column=r};en.prototype.offset=function(t){return new en(this.line,this.column+t)};var Wn=function(t,r,s){this.start=r,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function $o(e,t){for(var r=1,s=0;;){var i=Fo(e,s,t);if(i<0)return new en(r,t-s);++r,s=i}}var $s={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},ca=!1;function vd(e){var t={};for(var r in $s)t[r]=e&&Ir(e,r)?e[r]:$s[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!ca&&typeof console=="object"&&console.warn&&(ca=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
189
+ `),{code:o.slice(0,c+1)+r+o.slice(c+1)+s,mappings:this.shiftMappings(i.mappings,r.length)}}else return{code:r+o+s,mappings:this.shiftMappings(i.mappings,r.length)}}processBalancedCode(){let t=0,r=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(n.braceL)||this.tokens.matches1(n.dollarBraceL))t++;else if(this.tokens.matches1(n.braceR)){if(t===0)return;t--}if(this.tokens.matches1(n.parenL))r++;else if(this.tokens.matches1(n.parenR)){if(r===0)return;r--}this.processToken()}}processToken(){if(this.tokens.matches1(n._class)){this.processClass();return}for(const t of this.transformers)if(t.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(n._class,n.name))throw new Error("Expected identifier for exported class name.");const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){const t=Gf(this,this.tokens,this.nameManager,this.disableESTransforms),r=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0;let s=t.headerInfo.className;r&&(s=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(s),this.tokens.appendCode(` (${s} =`));const o=this.tokens.currentToken().contextId;if(o==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(n._class);!this.tokens.matchesContextIdAndLabel(n.braceL,o);)this.processToken();this.processClassBody(t,s);const c=t.staticInitializerNames.map(u=>`${s}.${u}()`);r?this.tokens.appendCode(`, ${c.map(u=>`${u}, `).join("")}${s})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${c.map(u=>`${u};`).join(" ")}`)}processClassBody(t,r){const{headerInfo:s,constructorInsertPos:i,constructorInitializerStatements:o,fields:c,instanceInitializerNames:u,rangesToRemove:f}=t;let p=0,m=0;const x=this.tokens.currentToken().contextId;if(x==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(n.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const _=o.length+u.length>0;if(i===null&&_){const y=this.makeConstructorInitCode(o,u,r);if(s.hasSuperclass){const L=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${L}) { super(...${L}); ${y}; }`)}else this.tokens.appendCode(`constructor() { ${y}; }`)}for(;!this.tokens.matchesContextIdAndLabel(n.braceR,x);)if(p<c.length&&this.tokens.currentIndex()===c[p].start){let y=!1;for(this.tokens.matches1(n.bracketL)?this.tokens.copyTokenWithPrefix(`${c[p].initializerName}() {this`):this.tokens.matches1(n.string)||this.tokens.matches1(n.num)?(this.tokens.copyTokenWithPrefix(`${c[p].initializerName}() {this[`),y=!0):this.tokens.copyTokenWithPrefix(`${c[p].initializerName}() {this.`);this.tokens.currentIndex()<c[p].end;)y&&this.tokens.currentIndex()===c[p].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),p++}else if(m<f.length&&this.tokens.currentIndex()>=f[m].start){for(this.tokens.currentIndex()<f[m].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<f[m].end;)this.tokens.removeToken();m++}else this.tokens.currentIndex()===i?(this.tokens.copyToken(),_&&this.tokens.appendCode(`;${this.makeConstructorInitCode(o,u,r)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(n.braceR)}makeConstructorInitCode(t,r,s){return[...t,...r.map(i=>`${s}.prototype.${i}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(n.parenR,n.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,n.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(d._async)&&!this.tokens.matches1(n._async))return!1;const t=this.tokens.tokenAtRelativeIndex(1);if(t.type!==n.lessThan||!t.isType)return!1;let r=this.tokens.currentIndex()+1;for(;this.tokens.tokens[r].isType;)r++;if(this.tokens.matches1AtIndex(r,n.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<r;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(t,r){for(let s=0;s<t.length;s++){const i=t[s];i!==void 0&&(t[s]=i+r)}return t}}var ad={};(function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var t=`
190
+ `,r="\r",s=function(){function i(o){this.string=o;for(var c=[0],u=0;u<o.length;)switch(o[u]){case t:u+=t.length,c.push(u);break;case r:u+=r.length,o[u]===t&&(u+=t.length),c.push(u);break;default:u++;break}this.offsets=c}return i.prototype.locationForIndex=function(o){if(o<0||o>this.string.length)return null;for(var c=0,u=this.offsets;u[c+1]<=o;)c++;var f=o-u[c];return{line:c,column:f}},i.prototype.indexForLocation=function(o){var c=o.line,u=o.column;return c<0||c>=this.offsets.length||u<0||u>this.lengthOfLine(c)?null:this.offsets[c]+u},i.prototype.lengthOfLine=function(o){var c=this.offsets[o],u=o===this.offsets.length-1?this.string.length:this.offsets[o+1];return u-c},i}();e.LinesAndColumns=s,e.default=s})(ad);function od(e){const t=new Set;for(let r=0;r<e.tokens.length;r++)e.matches1AtIndex(r,n._import)&&!e.matches3AtIndex(r,n._import,n.name,n.eq)&&cd(e,r,t);return t}function cd(e,t,r){t++,!e.matches1AtIndex(t,n.parenL)&&(e.matches1AtIndex(t,n.name)&&(r.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,n.comma)&&t++),e.matches1AtIndex(t,n.star)&&(t+=2,r.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,n.braceL)&&(t++,ld(e,t,r)))}function ld(e,t,r){for(;;){if(e.matches1AtIndex(t,n.braceR))return;const s=Yr(e,t);if(t=s.endIndex,s.isType||r.add(s.rightName),e.matches2AtIndex(t,n.comma,n.braceR))return;if(e.matches1AtIndex(t,n.braceR))return;if(e.matches1AtIndex(t,n.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}function ud(e,t){Iu(t);try{const r=hd(e,t),i=new Pn(r,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform();let o={code:i.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");o={...o,sourceMap:hu(i,t.filePath,t.sourceMapOptions,e,r.tokenProcessor.tokens)}}return o}catch(r){throw t.filePath&&(r.message=`Error transforming ${t.filePath}: ${r.message}`),r}}function hd(e,t){const r=t.transforms.includes("jsx"),s=t.transforms.includes("typescript"),i=t.transforms.includes("flow"),o=t.disableESTransforms===!0,c=Hf(e,r,s,i),u=c.tokens,f=c.scopes,p=new Xs(e,u),m=new wn(p),x=new qr(e,u,i,o,m),_=!!t.enableLegacyTypeScriptModuleInterop;let y=null;return t.transforms.includes("imports")?(y=new Qt(p,x,_,t,t.transforms.includes("typescript"),!!t.keepUnusedImports,m),y.preprocessTokens(),Hi(x,f,y.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&y.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&Hi(x,f,od(x)),{tokenProcessor:x,scopes:f,nameManager:p,importProcessor:y,helperManager:m}}var pd=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Oo=[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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],fd="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Mo="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ws={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"},_s="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",dd={5:_s,"5module":_s+" export import",6:_s+" const class extends export import super"},jo=/^in(stanceof)?$/,md=new RegExp("["+Mo+"]"),gd=new RegExp("["+Mo+fd+"]");function Vs(e,t){for(var r=65536,s=0;s<t.length;s+=2){if(r+=t[s],r>e)return!1;if(r+=t[s+1],r>=e)return!0}return!1}function It(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&md.test(String.fromCharCode(e)):t===!1?!1:Vs(e,Oo)}function Ht(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&gd.test(String.fromCharCode(e)):t===!1?!1:Vs(e,Oo)||Vs(e,pd)}var de=function(t,r){r===void 0&&(r={}),this.label=t,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 st(e,t){return new de(e,{beforeExpr:!0,binop:t})}var it={beforeExpr:!0},Ke={startsExpr:!0},yi={};function fe(e,t){return t===void 0&&(t={}),t.keyword=e,yi[e]=new de(e,t)}var l={num:new de("num",Ke),regexp:new de("regexp",Ke),string:new de("string",Ke),name:new de("name",Ke),privateId:new de("privateId",Ke),eof:new de("eof"),bracketL:new de("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new de("]"),braceL:new de("{",{beforeExpr:!0,startsExpr:!0}),braceR:new de("}"),parenL:new de("(",{beforeExpr:!0,startsExpr:!0}),parenR:new de(")"),comma:new de(",",it),semi:new de(";",it),colon:new de(":",it),dot:new de("."),question:new de("?",it),questionDot:new de("?."),arrow:new de("=>",it),template:new de("template"),invalidTemplate:new de("invalidTemplate"),ellipsis:new de("...",it),backQuote:new de("`",Ke),dollarBraceL:new de("${",{beforeExpr:!0,startsExpr:!0}),eq:new de("=",{beforeExpr:!0,isAssign:!0}),assign:new de("_=",{beforeExpr:!0,isAssign:!0}),incDec:new de("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new de("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:st("||",1),logicalAND:st("&&",2),bitwiseOR:st("|",3),bitwiseXOR:st("^",4),bitwiseAND:st("&",5),equality:st("==/!=/===/!==",6),relational:st("</>/<=/>=",7),bitShift:st("<</>>/>>>",8),plusMin:new de("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:st("%",10),star:st("*",10),slash:st("/",10),starstar:new de("**",{beforeExpr:!0}),coalesce:st("??",1),_break:fe("break"),_case:fe("case",it),_catch:fe("catch"),_continue:fe("continue"),_debugger:fe("debugger"),_default:fe("default",it),_do:fe("do",{isLoop:!0,beforeExpr:!0}),_else:fe("else",it),_finally:fe("finally"),_for:fe("for",{isLoop:!0}),_function:fe("function",Ke),_if:fe("if"),_return:fe("return",it),_switch:fe("switch"),_throw:fe("throw",it),_try:fe("try"),_var:fe("var"),_const:fe("const"),_while:fe("while",{isLoop:!0}),_with:fe("with"),_new:fe("new",{beforeExpr:!0,startsExpr:!0}),_this:fe("this",Ke),_super:fe("super",Ke),_class:fe("class",Ke),_extends:fe("extends",it),_export:fe("export"),_import:fe("import",Ke),_null:fe("null",Ke),_true:fe("true",Ke),_false:fe("false",Ke),_in:fe("in",{beforeExpr:!0,binop:7}),_instanceof:fe("instanceof",{beforeExpr:!0,binop:7}),_typeof:fe("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:fe("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:fe("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Je=/\r\n?|\n|\u2028|\u2029/,xd=new RegExp(Je.source,"g");function Sr(e){return e===10||e===13||e===8232||e===8233}function Fo(e,t,r){r===void 0&&(r=e.length);for(var s=t;s<r;s++){var i=e.charCodeAt(s);if(Sr(i))return s<r-1&&i===13&&e.charCodeAt(s+1)===10?s+2:s+1}return-1}var Bo=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,He=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Vo=Object.prototype,kd=Vo.hasOwnProperty,bd=Vo.toString,Ir=Object.hasOwn||function(e,t){return kd.call(e,t)},aa=Array.isArray||function(e){return bd.call(e)==="[object Array]"},oa=Object.create(null);function Vt(e){return oa[e]||(oa[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Nt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var yd=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,en=function(t,r){this.line=t,this.column=r};en.prototype.offset=function(t){return new en(this.line,this.column+t)};var Wn=function(t,r,s){this.start=r,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function $o(e,t){for(var r=1,s=0;;){var i=Fo(e,s,t);if(i<0)return new en(r,t-s);++r,s=i}}var $s={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},ca=!1;function vd(e){var t={};for(var r in $s)t[r]=e&&Ir(e,r)?e[r]:$s[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!ca&&typeof console=="object"&&console.warn&&(ca=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
191
191
  Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),aa(t.onToken)){var s=t.onToken;t.onToken=function(i){return s.push(i)}}if(aa(t.onComment)&&(t.onComment=wd(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function wd(e,t){return function(r,s,i,o,c,u){var f={type:r?"Block":"Line",value:s,start:i,end:o};e.locations&&(f.loc=new Wn(this,c,u)),e.ranges&&(f.range=[i,o]),t.push(f)}}var nr=1,ar=2,vi=4,qo=8,wi=16,Uo=32,Gn=64,zo=128,or=256,ln=512,Ho=1024,Xn=nr|ar|or;function _i(e,t){return ar|(e?vi:0)|(t?qo:0)}var Nn=0,Si=1,Lt=2,Wo=3,Go=4,Xo=5,Ve=function(t,r,s){this.options=t=vd(t),this.sourceFile=t.sourceFile,this.keywords=Vt(dd[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var i="";t.allowReserved!==!0&&(i=ws[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(i+=" await")),this.reservedWords=Vt(i);var o=(i?i+" ":"")+ws.strict;this.reservedWordsStrict=Vt(o),this.reservedWordsStrictBind=Vt(o+" "+ws.strictBind),this.input=String(r),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
192
- `,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Je).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=l.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=t.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&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?ar:nr),this.regexpState=null,this.privateNameStack=[]},ct={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ve.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};ct.inFunction.get=function(){return(this.currentVarScope().flags&ar)>0};ct.inGenerator.get=function(){return(this.currentVarScope().flags&qo)>0};ct.inAsync.get=function(){return(this.currentVarScope().flags&vi)>0};ct.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(or|ln))return!1;if(r&ar)return(r&vi)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};ct.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&nr)};ct.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Gn)>0||this.options.allowSuperOutsideMethod};ct.allowDirectSuper.get=function(){return(this.currentThisScope().flags&zo)>0};ct.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};ct.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(or|ln)||r&ar&&!(r&wi))return!0}return!1};ct.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&Ho||!this.inModule&&t&nr)};ct.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&or)>0};Ve.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var s=this,i=0;i<t.length;i++)s=t[i](s);return s};Ve.parse=function(t,r){return new this(r,t).parse()};Ve.parseExpressionAt=function(t,r,s){var i=new this(s,t,r);return i.nextToken(),i.parseExpression()};Ve.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(Ve.prototype,ct);var Ye=Ve.prototype,_d=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ye.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){He.lastIndex=e,e+=He.exec(this.input)[0].length;var t=_d.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){He.lastIndex=e+t[0].length;var r=He.exec(this.input),s=r.index+r[0].length,i=this.input.charAt(s);return i===";"||i==="}"||Je.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,He.lastIndex=e,e+=He.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ye.eat=function(e){return this.type===e?(this.next(),!0):!1};Ye.isContextual=function(e){return this.type===l.name&&this.value===e&&!this.containsEsc};Ye.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ye.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ye.canInsertSemicolon=function(){return this.type===l.eof||this.type===l.braceR||Je.test(this.input.slice(this.lastTokEnd,this.start))};Ye.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ye.semicolon=function(){!this.eat(l.semi)&&!this.insertSemicolon()&&this.unexpected()};Ye.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ye.expect=function(e){this.eat(e)||this.unexpected()};Ye.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Yn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ye.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};Ye.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,s=e.doubleProto;if(!t)return r>=0||s>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};Ye.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")};Ye.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var $=Ve.prototype;$.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==l.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var s=0,i=Object.keys(this.undefinedExports);s<i.length;s+=1){var o=i[s];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Ii={kind:"loop"},Sd={kind:"switch"};$.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;He.lastIndex=this.pos;var t=He.exec(this.input),r=this.pos+t[0].length,s=this.fullCharCodeAt(r);if(s===91||s===92)return!0;if(e)return!1;if(s===123)return!0;if(It(s)){var i=r;do r+=s<=65535?1:2;while(Ht(s=this.fullCharCodeAt(r)));if(s===92)return!0;var o=this.input.slice(i,r);if(!jo.test(o))return!0}return!1};$.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;He.lastIndex=this.pos;var e=He.exec(this.input),t=this.pos+e[0].length,r;return!Je.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Ht(r=this.fullCharCodeAt(t+8))||r===92))};$.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;He.lastIndex=this.pos;var r=He.exec(this.input),s=this.pos+r[0].length;if(Je.test(this.input.slice(this.pos,s)))return!1;if(e){var i=s+5,o;if(this.input.slice(s,i)!=="using"||i===this.input.length||Ht(o=this.fullCharCodeAt(i))||o===92)return!1;He.lastIndex=i;var c=He.exec(this.input);if(s=i+c[0].length,c&&Je.test(this.input.slice(i,s)))return!1}var u=this.fullCharCodeAt(s);if(!It(u)&&u!==92)return!1;var f=s;do s+=u<=65535?1:2;while(Ht(u=this.fullCharCodeAt(s)));if(u===92)return!0;var h=this.input.slice(f,s);return!(jo.test(h)||t&&h==="of")};$.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};$.isUsing=function(e){return this.isUsingKeyword(!1,e)};$.parseStatement=function(e,t,r){var s=this.type,i=this.startNode(),o;switch(this.isLet(e)&&(s=l._var,o="let"),s){case l._break:case l._continue:return this.parseBreakContinueStatement(i,s.keyword);case l._debugger:return this.parseDebuggerStatement(i);case l._do:return this.parseDoStatement(i);case l._for:return this.parseForStatement(i);case l._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case l._class:return e&&this.unexpected(),this.parseClass(i,!0);case l._if:return this.parseIfStatement(i);case l._return:return this.parseReturnStatement(i);case l._switch:return this.parseSwitchStatement(i);case l._throw:return this.parseThrowStatement(i);case l._try:return this.parseTryStatement(i);case l._const:case l._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(i,o);case l._while:return this.parseWhileStatement(i);case l._with:return this.parseWithStatement(i);case l.braceL:return this.parseBlock(!0,i);case l.semi:return this.parseEmptyStatement(i);case l._export:case l._import:if(this.options.ecmaVersion>10&&s===l._import){He.lastIndex=this.pos;var c=He.exec(this.input),u=this.pos+c[0].length,f=this.input.charCodeAt(u);if(f===40||f===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||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'")),s===l._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var h=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(h)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),h==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,h),this.semicolon(),this.finishNode(i,"VariableDeclaration");var m=this.value,x=this.parseExpression();return s===l.name&&x.type==="Identifier"&&this.eat(l.colon)?this.parseLabeledStatement(i,m,x,e):this.parseExpressionStatement(i,x)}};$.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(l.semi)||this.insertSemicolon()?e.label=null:this.type!==l.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var i=this.labels[s];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||e.label&&r))break}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};$.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};$.parseDoStatement=function(e){return this.next(),this.labels.push(Ii),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(l._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(l.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};$.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ii),this.enterScope(0),this.expect(l.parenL),this.type===l.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===l._var||this.type===l._const||r){var s=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(s,!0,i),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(e,s,t)}var o=this.isContextual("let"),c=!1,u=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(u){var f=this.startNode();return this.next(),u==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(f,!0,u),this.finishNode(f,"VariableDeclaration"),this.parseForAfterInit(e,f,t)}var h=this.containsEsc,m=new Yn,x=this.start,_=t>-1?this.parseExprSubscripts(m,"await"):this.parseExpression(!0,m);return this.type===l._in||(c=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===l._in&&this.unexpected(t),e.await=!0):c&&this.options.ecmaVersion>=8&&(_.start===x&&!h&&_.type==="Identifier"&&_.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),o&&c&&this.raise(_.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(_,!1,m),this.checkLValPattern(_),this.parseForIn(e,_)):(this.checkExpressionErrors(m,!0),t>-1&&this.unexpected(t),this.parseFor(e,_))};$.parseForAfterInit=function(e,t,r){return(this.type===l._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===l._in?r>-1&&this.unexpected(r):e.await=r>-1),this.parseForIn(e,t)):(r>-1&&this.unexpected(r),this.parseFor(e,t))};$.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,zr|(r?0:qs),!1,t)};$.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(l._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};$.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(l.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};$.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(l.braceL),this.labels.push(Sd),this.enterScope(Ho);for(var t,r=!1;this.type!==l.braceR;)if(this.type===l._case||this.type===l._default){var s=this.type===l._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(l.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};$.parseThrowStatement=function(e){return this.next(),Je.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Id=[];$.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Uo:0),this.checkLValPattern(e,t?Go:Lt),this.expect(l.parenR),e};$.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===l._catch){var t=this.startNode();this.next(),this.eat(l.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(l._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};$.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};$.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ii),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};$.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};$.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};$.parseLabeledStatement=function(e,t,r,s){for(var i=0,o=this.labels;i<o.length;i+=1){var c=o[i];c.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===l._switch?"switch":null,f=this.labels.length-1;f>=0;f--){var h=this.labels[f];if(h.statementStart===e.start)h.statementStart=this.start,h.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};$.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};$.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(l.braceL),e&&this.enterScope(0);this.type!==l.braceR;){var s=this.parseStatement(null);t.body.push(s)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};$.parseFor=function(e,t){return e.init=t,this.expect(l.semi),e.test=this.type===l.semi?null:this.parseExpression(),this.expect(l.semi),e.update=this.type===l.parenR?null:this.parseExpression(),this.expect(l.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};$.parseForIn=function(e,t){var r=this.type===l._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(l.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};$.parseVar=function(e,t,r,s){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(l.eq)?i.init=this.parseMaybeAssign(t):!s&&r==="const"&&!(this.type===l._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&(r==="using"||r==="await using")&&this.options.ecmaVersion>=17&&this.type!==l._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):!s&&i.id.type!=="Identifier"&&!(t&&(this.type===l._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(l.comma))break}return e};$.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Si:Lt,!1)};var zr=1,qs=2,Yo=4;$.parseFunction=function(e,t,r,s,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===l.star&&t&qs&&this.unexpected(),e.generator=this.eat(l.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&zr&&(e.id=t&Yo&&this.type!==l.name?null:this.parseIdent(),e.id&&!(t&qs)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Si:Lt:Wo));var o=this.yieldPos,c=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_i(e.async,e.generator)),t&zr||(e.id=this.type===l.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,i),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=u,this.finishNode(e,t&zr?"FunctionDeclaration":"FunctionExpression")};$.parseFunctionParams=function(e){this.expect(l.parenL),e.params=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};$.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),i=this.startNode(),o=!1;for(i.body=[],this.expect(l.braceL);this.type!==l.braceR;){var c=this.parseClassElement(e.superClass!==null);c&&(i.body.push(c),c.type==="MethodDefinition"&&c.kind==="constructor"?(o&&this.raiseRecoverable(c.start,"Duplicate constructor in the same class"),o=!0):c.key&&c.key.type==="PrivateIdentifier"&&Ed(s,c)&&this.raiseRecoverable(c.key.start,"Identifier '#"+c.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};$.parseClassElement=function(e){if(this.eat(l.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),s="",i=!1,o=!1,c="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(l.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===l.star?u=!0:s="static"}if(r.static=u,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===l.star)&&!this.canInsertSemicolon()?o=!0:s="async"),!s&&(t>=9||!o)&&this.eat(l.star)&&(i=!0),!s&&!o&&!i){var f=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?c=f:s=f)}if(s?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=s,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===l.parenL||c!=="method"||i||o){var h=!r.static&&Rn(r,"constructor"),m=h&&e;h&&c!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=h?"constructor":c,this.parseClassMethod(r,i,o,m)}else this.parseClassField(r);return r};$.isClassElementNameStart=function(){return this.type===l.name||this.type===l.privateId||this.type===l.num||this.type===l.string||this.type===l.bracketL||this.type.keyword};$.parseClassElementName=function(e){this.type===l.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};$.parseClassMethod=function(e,t,r,s){var i=e.key;e.kind==="constructor"?(t&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):e.static&&Rn(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,r,s);return e.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),e.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),e.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};$.parseClassField=function(e){return Rn(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Rn(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(l.eq)?(this.enterScope(ln|Gn),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};$.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(or|Gn);this.type!==l.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};$.parseClassId=function(e,t){this.type===l.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Lt,!1)):(t===!0&&this.unexpected(),e.id=null)};$.parseClassSuper=function(e){e.superClass=this.eat(l._extends)?this.parseExprSubscripts(null,!1):null};$.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};$.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,i=s===0?null:this.privateNameStack[s-1],o=0;o<r.length;++o){var c=r[o];Ir(t,c.name)||(i?i.used.push(c):this.raiseRecoverable(c.start,"Private field '#"+c.name+"' must be declared in an enclosing class"))}};function Ed(e,t){var r=t.key.name,s=e[r],i="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(i=(t.static?"s":"i")+t.kind),s==="iget"&&i==="iset"||s==="iset"&&i==="iget"||s==="sget"&&i==="sset"||s==="sset"&&i==="sget"?(e[r]="true",!1):s?!0:(e[r]=i,!1)}function Rn(e,t){var r=e.computed,s=e.key;return!r&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}$.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==l.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};$.parseExport=function(e,t){if(this.next(),this.eat(l.star))return this.parseExportAllDeclaration(e,t);if(this.eat(l._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==l.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var r=0,s=e.specifiers;r<s.length;r+=1){var i=s[r];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type==="Literal"&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};$.parseExportDeclaration=function(e){return this.parseStatement(null)};$.parseExportDefaultDeclaration=function(){var e;if(this.type===l._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,zr|Yo,!1,e)}else if(this.type===l._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var s=this.parseMaybeAssign();return this.semicolon(),s}};$.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Ir(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};$.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var s=0,i=t.properties;s<i.length;s+=1){var o=i[s];this.checkPatternExport(e,o)}else if(r==="ArrayPattern")for(var c=0,u=t.elements;c<u.length;c+=1){var f=u[c];f&&this.checkPatternExport(e,f)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"&&this.checkPatternExport(e,t.argument)};$.checkVariableExport=function(e,t){if(e)for(var r=0,s=t;r<s.length;r+=1){var i=s[r];this.checkPatternExport(e,i.id)}};$.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};$.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};$.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(r)r=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;t.push(this.parseExportSpecifier(e))}return t};$.parseImport=function(e){return this.next(),this.type===l.string?(e.specifiers=Id,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===l.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};$.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Lt),this.finishNode(e,"ImportSpecifier")};$.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Lt),this.finishNode(e,"ImportDefaultSpecifier")};$.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Lt),this.finishNode(e,"ImportNamespaceSpecifier")};$.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===l.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(l.comma)))return e;if(this.type===l.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;e.push(this.parseImportSpecifier())}return e};$.parseWithClause=function(){var e=[];if(!this.eat(l._with))return e;this.expect(l.braceL);for(var t={},r=!0;!this.eat(l.braceR);){if(r)r=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;var s=this.parseImportAttribute(),i=s.key.type==="Identifier"?s.key.name:s.key.value;Ir(t,i)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(s)}return e};$.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===l.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(l.colon),this.type!==l.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};$.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===l.string){var e=this.parseLiteral(this.value);return yd.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};$.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};$.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var lt=Ve.prototype;lt.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];this.toAssignable(o,t),o.type==="RestElement"&&(o.argument.type==="ArrayPattern"||o.argument.type==="ObjectPattern")&&this.raise(o.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};lt.toAssignableList=function(e,t){for(var r=e.length,s=0;s<r;s++){var i=e[s];i&&this.toAssignable(i,t)}if(r){var o=e[r-1];this.options.ecmaVersion===6&&t&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier"&&this.unexpected(o.argument.start)}return e};lt.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};lt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==l.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};lt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case l.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(l.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case l.braceL:return this.parseObj(!0)}return this.parseIdent()};lt.parseBindingList=function(e,t,r,s){for(var i=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(l.comma),t&&this.type===l.comma)i.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===l.ellipsis){var c=this.parseRestBinding();this.parseBindingListItem(c),i.push(c),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(s))}return i};lt.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};lt.parseBindingListItem=function(e){return e};lt.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(l.eq))return r;var s=this.startNodeAt(e,t);return s.left=r,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")};lt.checkLValSimple=function(e,t,r){t===void 0&&(t=Nn);var s=t!==Nn;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(t===Lt&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(Ir(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==Xo&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}};lt.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=Nn),e.type){case"ObjectPattern":for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];this.checkLValInnerPattern(o,t,r)}break;case"ArrayPattern":for(var c=0,u=e.elements;c<u.length;c+=1){var f=u[c];f&&this.checkLValInnerPattern(f,t,r)}break;default:this.checkLValSimple(e,t,r)}};lt.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=Nn),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var ht=function(t,r,s,i,o){this.token=t,this.isExpr=!!r,this.preserveSpace=!!s,this.override=i,this.generator=!!o},Ce={b_stat:new ht("{",!1),b_expr:new ht("{",!0),b_tmpl:new ht("${",!1),p_stat:new ht("(",!1),p_expr:new ht("(",!0),q_tmpl:new ht("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new ht("function",!1),f_expr:new ht("function",!0),f_expr_gen:new ht("function",!0,!1,null,!0),f_gen:new ht("function",!1,!1,null,!0)},Er=Ve.prototype;Er.initialContext=function(){return[Ce.b_stat]};Er.curContext=function(){return this.context[this.context.length-1]};Er.braceIsBlock=function(e){var t=this.curContext();return t===Ce.f_expr||t===Ce.f_stat?!0:e===l.colon&&(t===Ce.b_stat||t===Ce.b_expr)?!t.isExpr:e===l._return||e===l.name&&this.exprAllowed?Je.test(this.input.slice(this.lastTokEnd,this.start)):e===l._else||e===l.semi||e===l.eof||e===l.parenR||e===l.arrow?!0:e===l.braceL?t===Ce.b_stat:e===l._var||e===l._const||e===l.name?!1:!this.exprAllowed};Er.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Er.updateContext=function(e){var t,r=this.type;r.keyword&&e===l.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};Er.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};l.parenR.updateContext=l.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===Ce.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};l.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Ce.b_stat:Ce.b_expr),this.exprAllowed=!0};l.dollarBraceL.updateContext=function(){this.context.push(Ce.b_tmpl),this.exprAllowed=!0};l.parenL.updateContext=function(e){var t=e===l._if||e===l._for||e===l._with||e===l._while;this.context.push(t?Ce.p_stat:Ce.p_expr),this.exprAllowed=!0};l.incDec.updateContext=function(){};l._function.updateContext=l._class.updateContext=function(e){e.beforeExpr&&e!==l._else&&!(e===l.semi&&this.curContext()!==Ce.p_stat)&&!(e===l._return&&Je.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===l.colon||e===l.braceL)&&this.curContext()===Ce.b_stat)?this.context.push(Ce.f_expr):this.context.push(Ce.f_stat),this.exprAllowed=!1};l.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};l.backQuote.updateContext=function(){this.curContext()===Ce.q_tmpl?this.context.pop():this.context.push(Ce.q_tmpl),this.exprAllowed=!1};l.star.updateContext=function(e){if(e===l._function){var t=this.context.length-1;this.context[t]===Ce.f_expr?this.context[t]=Ce.f_expr_gen:this.context[t]=Ce.f_gen}this.exprAllowed=!0};l.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==l.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var se=Ve.prototype;se.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s=e.key,i;switch(s.type){case"Identifier":i=s.name;break;case"Literal":i=String(s.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&o==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);return}i="$"+i;var c=t[i];if(c){var u;o==="init"?u=this.strict&&c.init||c.get||c.set:u=c.init||c[o],u&&this.raiseRecoverable(s.start,"Redefinition of property")}else c=t[i]={init:!1,get:!1,set:!1};c[o]=!0}};se.parseExpression=function(e,t){var r=this.start,s=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===l.comma){var o=this.startNodeAt(r,s);for(o.expressions=[i];this.eat(l.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return i};se.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,i=-1,o=-1,c=-1;t?(i=t.parenthesizedAssign,o=t.trailingComma,c=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Yn,s=!0);var u=this.start,f=this.startLoc;(this.type===l.parenL||this.type===l.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var h=this.parseMaybeConditional(e,t);if(r&&(h=r.call(this,h,u,f)),this.type.isAssign){var m=this.startNodeAt(u,f);return m.operator=this.value,this.type===l.eq&&(h=this.toAssignable(h,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=h.start&&(t.shorthandAssign=-1),this.type===l.eq?this.checkLValPattern(h):this.checkLValSimple(h),m.left=h,this.next(),m.right=this.parseMaybeAssign(e),c>-1&&(t.doubleProto=c),this.finishNode(m,"AssignmentExpression")}else s&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),o>-1&&(t.trailingComma=o),h};se.parseMaybeConditional=function(e,t){var r=this.start,s=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(l.question)){var o=this.startNodeAt(r,s);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(l.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i};se.parseExprOps=function(e,t){var r=this.start,s=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,s,-1,e)};se.parseExprOp=function(e,t,r,s,i){var o=this.type.binop;if(o!=null&&(!i||this.type!==l._in)&&o>s){var c=this.type===l.logicalOR||this.type===l.logicalAND,u=this.type===l.coalesce;u&&(o=l.logicalAND.binop);var f=this.value;this.next();var h=this.start,m=this.startLoc,x=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),h,m,o,i),_=this.buildBinary(t,r,e,x,f,c||u);return(c&&this.type===l.coalesce||u&&(this.type===l.logicalOR||this.type===l.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(_,t,r,s,i)}return e};se.buildBinary=function(e,t,r,s,i,o){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var c=this.startNodeAt(e,t);return c.left=r,c.operator=i,c.right=s,this.finishNode(c,o?"LogicalExpression":"BinaryExpression")};se.parseMaybeUnary=function(e,t,r,s){var i=this.start,o=this.startLoc,c;if(this.isContextual("await")&&this.canAwait)c=this.parseAwait(s),t=!0;else if(this.type.prefix){var u=this.startNode(),f=this.type===l.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,f,s),this.checkExpressionErrors(e,!0),f?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&Ko(u.argument)?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&Us(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):t=!0,c=this.finishNode(u,f?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===l.privateId)(s||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),c=this.parsePrivateIdent(),this.type!==l._in&&this.unexpected();else{if(c=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return c;for(;this.type.postfix&&!this.canInsertSemicolon();){var h=this.startNodeAt(i,o);h.operator=this.value,h.prefix=!1,h.argument=c,this.checkLValSimple(c),this.next(),c=this.finishNode(h,"UpdateExpression")}}if(!r&&this.eat(l.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,o,c,this.parseMaybeUnary(null,!1,!1,s),"**",!1);else return c};function Ko(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Ko(e.expression)}function Us(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Us(e.expression)||e.type==="ParenthesizedExpression"&&Us(e.expression)}se.parseExprSubscripts=function(e,t){var r=this.start,s=this.startLoc,i=this.parseExprAtom(e,t);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var o=this.parseSubscripts(i,r,s,!1,t);return e&&o.type==="MemberExpression"&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o};se.parseSubscripts=function(e,t,r,s,i){for(var o=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,c=!1;;){var u=this.parseSubscript(e,t,r,s,o,c,i);if(u.optional&&(c=!0),u===e||u.type==="ArrowFunctionExpression"){if(c){var f=this.startNodeAt(t,r);f.expression=u,u=this.finishNode(f,"ChainExpression")}return u}e=u}};se.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(l.arrow)};se.parseSubscriptAsyncArrow=function(e,t,r,s){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,s)};se.parseSubscript=function(e,t,r,s,i,o,c){var u=this.options.ecmaVersion>=11,f=u&&this.eat(l.questionDot);s&&f&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var h=this.eat(l.bracketL);if(h||f&&this.type!==l.parenL&&this.type!==l.backQuote||this.eat(l.dot)){var m=this.startNodeAt(t,r);m.object=e,h?(m.property=this.parseExpression(),this.expect(l.bracketR)):this.type===l.privateId&&e.type!=="Super"?m.property=this.parsePrivateIdent():m.property=this.parseIdent(this.options.allowReserved!=="never"),m.computed=!!h,u&&(m.optional=f),e=this.finishNode(m,"MemberExpression")}else if(!s&&this.eat(l.parenL)){var x=new Yn,_=this.yieldPos,y=this.awaitPos,L=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var O=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1,x);if(i&&!f&&this.shouldParseAsyncArrow())return this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=_,this.awaitPos=y,this.awaitIdentPos=L,this.parseSubscriptAsyncArrow(t,r,O,c);this.checkExpressionErrors(x,!0),this.yieldPos=_||this.yieldPos,this.awaitPos=y||this.awaitPos,this.awaitIdentPos=L||this.awaitIdentPos;var F=this.startNodeAt(t,r);F.callee=e,F.arguments=O,u&&(F.optional=f),e=this.finishNode(F,"CallExpression")}else if(this.type===l.backQuote){(f||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var K=this.startNodeAt(t,r);K.tag=e,K.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(K,"TaggedTemplateExpression")}return e};se.parseExprAtom=function(e,t,r){this.type===l.slash&&this.readRegexp();var s,i=this.potentialArrowAt===this.start;switch(this.type){case l._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type===l.parenL&&!this.allowDirectSuper&&this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==l.dot&&this.type!==l.bracketL&&this.type!==l.parenL&&this.unexpected(),this.finishNode(s,"Super");case l._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case l.name:var o=this.start,c=this.startLoc,u=this.containsEsc,f=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!u&&f.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(Ce.f_expr),this.parseFunction(this.startNodeAt(o,c),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(o,c),[f],!1,t);if(this.options.ecmaVersion>=8&&f.name==="async"&&this.type===l.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return f=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(l.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,c),[f],!0,t)}return f;case l.regexp:var h=this.value;return s=this.parseLiteral(h.value),s.regex={pattern:h.pattern,flags:h.flags},s;case l.num:case l.string:return this.parseLiteral(this.value);case l._null:case l._true:case l._false:return s=this.startNode(),s.value=this.type===l._null?null:this.type===l._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case l.parenL:var m=this.start,x=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(x)&&(e.parenthesizedAssign=m),e.parenthesizedBind<0&&(e.parenthesizedBind=m)),x;case l.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(l.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case l.braceL:return this.overrideContext(Ce.b_expr),this.parseObj(!1,e);case l._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case l._class:return this.parseClass(this.startNode(),!1);case l._new:return this.parseNew();case l.backQuote:return this.parseTemplate();case l._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};se.parseExprAtomDefault=function(){this.unexpected()};se.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===l.parenL&&!e)return this.parseDynamicImport(t);if(this.type===l.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};se.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(l.parenR)?e.options=null:(this.expect(l.comma),this.afterTrailingComma(l.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(l.parenR)||(this.expect(l.comma),this.afterTrailingComma(l.parenR)||this.unexpected())));else if(!this.eat(l.parenR)){var t=this.start;this.eat(l.comma)&&this.eat(l.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};se.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};se.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};se.parseParenExpression=function(){this.expect(l.parenL);var e=this.parseExpression();return this.expect(l.parenR),e};se.shouldParseArrow=function(e){return!this.canInsertSemicolon()};se.parseParenAndDistinguishExpression=function(e,t){var r=this.start,s=this.startLoc,i,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var c=this.start,u=this.startLoc,f=[],h=!0,m=!1,x=new Yn,_=this.yieldPos,y=this.awaitPos,L;for(this.yieldPos=0,this.awaitPos=0;this.type!==l.parenR;)if(h?h=!1:this.expect(l.comma),o&&this.afterTrailingComma(l.parenR,!0)){m=!0;break}else if(this.type===l.ellipsis){L=this.start,f.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else f.push(this.parseMaybeAssign(!1,x,this.parseParenItem));var O=this.lastTokEnd,F=this.lastTokEndLoc;if(this.expect(l.parenR),e&&this.shouldParseArrow(f)&&this.eat(l.arrow))return this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=_,this.awaitPos=y,this.parseParenArrowList(r,s,f,t);(!f.length||m)&&this.unexpected(this.lastTokStart),L&&this.unexpected(L),this.checkExpressionErrors(x,!0),this.yieldPos=_||this.yieldPos,this.awaitPos=y||this.awaitPos,f.length>1?(i=this.startNodeAt(c,u),i.expressions=f,this.finishNodeAt(i,"SequenceExpression",O,F)):i=f[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var K=this.startNodeAt(r,s);return K.expression=i,this.finishNode(K,"ParenthesizedExpression")}else return i};se.parseParenItem=function(e){return e};se.parseParenArrowList=function(e,t,r,s){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,s)};var Cd=[];se.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===l.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,i,!0,!1),this.eat(l.parenL)?e.arguments=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Cd,this.finishNode(e,"NewExpression")};se.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===l.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,`
192
+ `,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Je).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=l.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=t.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&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?ar:nr),this.regexpState=null,this.privateNameStack=[]},ct={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ve.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};ct.inFunction.get=function(){return(this.currentVarScope().flags&ar)>0};ct.inGenerator.get=function(){return(this.currentVarScope().flags&qo)>0};ct.inAsync.get=function(){return(this.currentVarScope().flags&vi)>0};ct.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(or|ln))return!1;if(r&ar)return(r&vi)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};ct.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&nr)};ct.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Gn)>0||this.options.allowSuperOutsideMethod};ct.allowDirectSuper.get=function(){return(this.currentThisScope().flags&zo)>0};ct.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};ct.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(or|ln)||r&ar&&!(r&wi))return!0}return!1};ct.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&Ho||!this.inModule&&t&nr)};ct.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&or)>0};Ve.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var s=this,i=0;i<t.length;i++)s=t[i](s);return s};Ve.parse=function(t,r){return new this(r,t).parse()};Ve.parseExpressionAt=function(t,r,s){var i=new this(s,t,r);return i.nextToken(),i.parseExpression()};Ve.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(Ve.prototype,ct);var Ye=Ve.prototype,_d=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ye.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){He.lastIndex=e,e+=He.exec(this.input)[0].length;var t=_d.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){He.lastIndex=e+t[0].length;var r=He.exec(this.input),s=r.index+r[0].length,i=this.input.charAt(s);return i===";"||i==="}"||Je.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,He.lastIndex=e,e+=He.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ye.eat=function(e){return this.type===e?(this.next(),!0):!1};Ye.isContextual=function(e){return this.type===l.name&&this.value===e&&!this.containsEsc};Ye.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ye.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ye.canInsertSemicolon=function(){return this.type===l.eof||this.type===l.braceR||Je.test(this.input.slice(this.lastTokEnd,this.start))};Ye.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ye.semicolon=function(){!this.eat(l.semi)&&!this.insertSemicolon()&&this.unexpected()};Ye.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ye.expect=function(e){this.eat(e)||this.unexpected()};Ye.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Yn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ye.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};Ye.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,s=e.doubleProto;if(!t)return r>=0||s>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};Ye.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")};Ye.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var $=Ve.prototype;$.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==l.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var s=0,i=Object.keys(this.undefinedExports);s<i.length;s+=1){var o=i[s];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Ii={kind:"loop"},Sd={kind:"switch"};$.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;He.lastIndex=this.pos;var t=He.exec(this.input),r=this.pos+t[0].length,s=this.fullCharCodeAt(r);if(s===91||s===92)return!0;if(e)return!1;if(s===123)return!0;if(It(s)){var i=r;do r+=s<=65535?1:2;while(Ht(s=this.fullCharCodeAt(r)));if(s===92)return!0;var o=this.input.slice(i,r);if(!jo.test(o))return!0}return!1};$.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;He.lastIndex=this.pos;var e=He.exec(this.input),t=this.pos+e[0].length,r;return!Je.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Ht(r=this.fullCharCodeAt(t+8))||r===92))};$.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;He.lastIndex=this.pos;var r=He.exec(this.input),s=this.pos+r[0].length;if(Je.test(this.input.slice(this.pos,s)))return!1;if(e){var i=s+5,o;if(this.input.slice(s,i)!=="using"||i===this.input.length||Ht(o=this.fullCharCodeAt(i))||o===92)return!1;He.lastIndex=i;var c=He.exec(this.input);if(s=i+c[0].length,c&&Je.test(this.input.slice(i,s)))return!1}var u=this.fullCharCodeAt(s);if(!It(u)&&u!==92)return!1;var f=s;do s+=u<=65535?1:2;while(Ht(u=this.fullCharCodeAt(s)));if(u===92)return!0;var p=this.input.slice(f,s);return!(jo.test(p)||t&&p==="of")};$.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};$.isUsing=function(e){return this.isUsingKeyword(!1,e)};$.parseStatement=function(e,t,r){var s=this.type,i=this.startNode(),o;switch(this.isLet(e)&&(s=l._var,o="let"),s){case l._break:case l._continue:return this.parseBreakContinueStatement(i,s.keyword);case l._debugger:return this.parseDebuggerStatement(i);case l._do:return this.parseDoStatement(i);case l._for:return this.parseForStatement(i);case l._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case l._class:return e&&this.unexpected(),this.parseClass(i,!0);case l._if:return this.parseIfStatement(i);case l._return:return this.parseReturnStatement(i);case l._switch:return this.parseSwitchStatement(i);case l._throw:return this.parseThrowStatement(i);case l._try:return this.parseTryStatement(i);case l._const:case l._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(i,o);case l._while:return this.parseWhileStatement(i);case l._with:return this.parseWithStatement(i);case l.braceL:return this.parseBlock(!0,i);case l.semi:return this.parseEmptyStatement(i);case l._export:case l._import:if(this.options.ecmaVersion>10&&s===l._import){He.lastIndex=this.pos;var c=He.exec(this.input),u=this.pos+c[0].length,f=this.input.charCodeAt(u);if(f===40||f===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||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'")),s===l._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var p=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(p)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),p==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(i,!1,p),this.semicolon(),this.finishNode(i,"VariableDeclaration");var m=this.value,x=this.parseExpression();return s===l.name&&x.type==="Identifier"&&this.eat(l.colon)?this.parseLabeledStatement(i,m,x,e):this.parseExpressionStatement(i,x)}};$.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(l.semi)||this.insertSemicolon()?e.label=null:this.type!==l.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var i=this.labels[s];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||e.label&&r))break}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};$.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};$.parseDoStatement=function(e){return this.next(),this.labels.push(Ii),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(l._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(l.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};$.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ii),this.enterScope(0),this.expect(l.parenL),this.type===l.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===l._var||this.type===l._const||r){var s=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(s,!0,i),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(e,s,t)}var o=this.isContextual("let"),c=!1,u=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(u){var f=this.startNode();return this.next(),u==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(f,!0,u),this.finishNode(f,"VariableDeclaration"),this.parseForAfterInit(e,f,t)}var p=this.containsEsc,m=new Yn,x=this.start,_=t>-1?this.parseExprSubscripts(m,"await"):this.parseExpression(!0,m);return this.type===l._in||(c=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===l._in&&this.unexpected(t),e.await=!0):c&&this.options.ecmaVersion>=8&&(_.start===x&&!p&&_.type==="Identifier"&&_.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),o&&c&&this.raise(_.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(_,!1,m),this.checkLValPattern(_),this.parseForIn(e,_)):(this.checkExpressionErrors(m,!0),t>-1&&this.unexpected(t),this.parseFor(e,_))};$.parseForAfterInit=function(e,t,r){return(this.type===l._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===l._in?r>-1&&this.unexpected(r):e.await=r>-1),this.parseForIn(e,t)):(r>-1&&this.unexpected(r),this.parseFor(e,t))};$.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,zr|(r?0:qs),!1,t)};$.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(l._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};$.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(l.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};$.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(l.braceL),this.labels.push(Sd),this.enterScope(Ho);for(var t,r=!1;this.type!==l.braceR;)if(this.type===l._case||this.type===l._default){var s=this.type===l._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(l.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};$.parseThrowStatement=function(e){return this.next(),Je.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Id=[];$.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Uo:0),this.checkLValPattern(e,t?Go:Lt),this.expect(l.parenR),e};$.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===l._catch){var t=this.startNode();this.next(),this.eat(l.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(l._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};$.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};$.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ii),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};$.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};$.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};$.parseLabeledStatement=function(e,t,r,s){for(var i=0,o=this.labels;i<o.length;i+=1){var c=o[i];c.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===l._switch?"switch":null,f=this.labels.length-1;f>=0;f--){var p=this.labels[f];if(p.statementStart===e.start)p.statementStart=this.start,p.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};$.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};$.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(l.braceL),e&&this.enterScope(0);this.type!==l.braceR;){var s=this.parseStatement(null);t.body.push(s)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};$.parseFor=function(e,t){return e.init=t,this.expect(l.semi),e.test=this.type===l.semi?null:this.parseExpression(),this.expect(l.semi),e.update=this.type===l.parenR?null:this.parseExpression(),this.expect(l.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};$.parseForIn=function(e,t){var r=this.type===l._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(l.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};$.parseVar=function(e,t,r,s){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(l.eq)?i.init=this.parseMaybeAssign(t):!s&&r==="const"&&!(this.type===l._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&(r==="using"||r==="await using")&&this.options.ecmaVersion>=17&&this.type!==l._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):!s&&i.id.type!=="Identifier"&&!(t&&(this.type===l._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(l.comma))break}return e};$.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Si:Lt,!1)};var zr=1,qs=2,Yo=4;$.parseFunction=function(e,t,r,s,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===l.star&&t&qs&&this.unexpected(),e.generator=this.eat(l.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&zr&&(e.id=t&Yo&&this.type!==l.name?null:this.parseIdent(),e.id&&!(t&qs)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Si:Lt:Wo));var o=this.yieldPos,c=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_i(e.async,e.generator)),t&zr||(e.id=this.type===l.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,i),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=u,this.finishNode(e,t&zr?"FunctionDeclaration":"FunctionExpression")};$.parseFunctionParams=function(e){this.expect(l.parenL),e.params=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};$.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),i=this.startNode(),o=!1;for(i.body=[],this.expect(l.braceL);this.type!==l.braceR;){var c=this.parseClassElement(e.superClass!==null);c&&(i.body.push(c),c.type==="MethodDefinition"&&c.kind==="constructor"?(o&&this.raiseRecoverable(c.start,"Duplicate constructor in the same class"),o=!0):c.key&&c.key.type==="PrivateIdentifier"&&Cd(s,c)&&this.raiseRecoverable(c.key.start,"Identifier '#"+c.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};$.parseClassElement=function(e){if(this.eat(l.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),s="",i=!1,o=!1,c="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(l.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===l.star?u=!0:s="static"}if(r.static=u,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===l.star)&&!this.canInsertSemicolon()?o=!0:s="async"),!s&&(t>=9||!o)&&this.eat(l.star)&&(i=!0),!s&&!o&&!i){var f=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?c=f:s=f)}if(s?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=s,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===l.parenL||c!=="method"||i||o){var p=!r.static&&Rn(r,"constructor"),m=p&&e;p&&c!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=p?"constructor":c,this.parseClassMethod(r,i,o,m)}else this.parseClassField(r);return r};$.isClassElementNameStart=function(){return this.type===l.name||this.type===l.privateId||this.type===l.num||this.type===l.string||this.type===l.bracketL||this.type.keyword};$.parseClassElementName=function(e){this.type===l.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};$.parseClassMethod=function(e,t,r,s){var i=e.key;e.kind==="constructor"?(t&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):e.static&&Rn(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,r,s);return e.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),e.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),e.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};$.parseClassField=function(e){return Rn(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Rn(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(l.eq)?(this.enterScope(ln|Gn),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};$.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(or|Gn);this.type!==l.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};$.parseClassId=function(e,t){this.type===l.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Lt,!1)):(t===!0&&this.unexpected(),e.id=null)};$.parseClassSuper=function(e){e.superClass=this.eat(l._extends)?this.parseExprSubscripts(null,!1):null};$.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};$.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,i=s===0?null:this.privateNameStack[s-1],o=0;o<r.length;++o){var c=r[o];Ir(t,c.name)||(i?i.used.push(c):this.raiseRecoverable(c.start,"Private field '#"+c.name+"' must be declared in an enclosing class"))}};function Cd(e,t){var r=t.key.name,s=e[r],i="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(i=(t.static?"s":"i")+t.kind),s==="iget"&&i==="iset"||s==="iset"&&i==="iget"||s==="sget"&&i==="sset"||s==="sset"&&i==="sget"?(e[r]="true",!1):s?!0:(e[r]=i,!1)}function Rn(e,t){var r=e.computed,s=e.key;return!r&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}$.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==l.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};$.parseExport=function(e,t){if(this.next(),this.eat(l.star))return this.parseExportAllDeclaration(e,t);if(this.eat(l._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==l.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var r=0,s=e.specifiers;r<s.length;r+=1){var i=s[r];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type==="Literal"&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};$.parseExportDeclaration=function(e){return this.parseStatement(null)};$.parseExportDefaultDeclaration=function(){var e;if(this.type===l._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,zr|Yo,!1,e)}else if(this.type===l._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var s=this.parseMaybeAssign();return this.semicolon(),s}};$.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Ir(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};$.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var s=0,i=t.properties;s<i.length;s+=1){var o=i[s];this.checkPatternExport(e,o)}else if(r==="ArrayPattern")for(var c=0,u=t.elements;c<u.length;c+=1){var f=u[c];f&&this.checkPatternExport(e,f)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"&&this.checkPatternExport(e,t.argument)};$.checkVariableExport=function(e,t){if(e)for(var r=0,s=t;r<s.length;r+=1){var i=s[r];this.checkPatternExport(e,i.id)}};$.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};$.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};$.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(l.braceL);!this.eat(l.braceR);){if(r)r=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;t.push(this.parseExportSpecifier(e))}return t};$.parseImport=function(e){return this.next(),this.type===l.string?(e.specifiers=Id,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===l.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};$.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,Lt),this.finishNode(e,"ImportSpecifier")};$.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Lt),this.finishNode(e,"ImportDefaultSpecifier")};$.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Lt),this.finishNode(e,"ImportNamespaceSpecifier")};$.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===l.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(l.comma)))return e;if(this.type===l.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(l.braceL);!this.eat(l.braceR);){if(t)t=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;e.push(this.parseImportSpecifier())}return e};$.parseWithClause=function(){var e=[];if(!this.eat(l._with))return e;this.expect(l.braceL);for(var t={},r=!0;!this.eat(l.braceR);){if(r)r=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;var s=this.parseImportAttribute(),i=s.key.type==="Identifier"?s.key.name:s.key.value;Ir(t,i)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(s)}return e};$.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===l.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(l.colon),this.type!==l.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};$.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===l.string){var e=this.parseLiteral(this.value);return yd.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};$.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};$.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var lt=Ve.prototype;lt.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];this.toAssignable(o,t),o.type==="RestElement"&&(o.argument.type==="ArrayPattern"||o.argument.type==="ObjectPattern")&&this.raise(o.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};lt.toAssignableList=function(e,t){for(var r=e.length,s=0;s<r;s++){var i=e[s];i&&this.toAssignable(i,t)}if(r){var o=e[r-1];this.options.ecmaVersion===6&&t&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier"&&this.unexpected(o.argument.start)}return e};lt.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};lt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==l.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};lt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case l.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(l.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case l.braceL:return this.parseObj(!0)}return this.parseIdent()};lt.parseBindingList=function(e,t,r,s){for(var i=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(l.comma),t&&this.type===l.comma)i.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===l.ellipsis){var c=this.parseRestBinding();this.parseBindingListItem(c),i.push(c),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(s))}return i};lt.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};lt.parseBindingListItem=function(e){return e};lt.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(l.eq))return r;var s=this.startNodeAt(e,t);return s.left=r,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")};lt.checkLValSimple=function(e,t,r){t===void 0&&(t=Nn);var s=t!==Nn;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(t===Lt&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(Ir(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==Xo&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}};lt.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=Nn),e.type){case"ObjectPattern":for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];this.checkLValInnerPattern(o,t,r)}break;case"ArrayPattern":for(var c=0,u=e.elements;c<u.length;c+=1){var f=u[c];f&&this.checkLValInnerPattern(f,t,r)}break;default:this.checkLValSimple(e,t,r)}};lt.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=Nn),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var pt=function(t,r,s,i,o){this.token=t,this.isExpr=!!r,this.preserveSpace=!!s,this.override=i,this.generator=!!o},Ee={b_stat:new pt("{",!1),b_expr:new pt("{",!0),b_tmpl:new pt("${",!1),p_stat:new pt("(",!1),p_expr:new pt("(",!0),q_tmpl:new pt("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new pt("function",!1),f_expr:new pt("function",!0),f_expr_gen:new pt("function",!0,!1,null,!0),f_gen:new pt("function",!1,!1,null,!0)},Cr=Ve.prototype;Cr.initialContext=function(){return[Ee.b_stat]};Cr.curContext=function(){return this.context[this.context.length-1]};Cr.braceIsBlock=function(e){var t=this.curContext();return t===Ee.f_expr||t===Ee.f_stat?!0:e===l.colon&&(t===Ee.b_stat||t===Ee.b_expr)?!t.isExpr:e===l._return||e===l.name&&this.exprAllowed?Je.test(this.input.slice(this.lastTokEnd,this.start)):e===l._else||e===l.semi||e===l.eof||e===l.parenR||e===l.arrow?!0:e===l.braceL?t===Ee.b_stat:e===l._var||e===l._const||e===l.name?!1:!this.exprAllowed};Cr.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Cr.updateContext=function(e){var t,r=this.type;r.keyword&&e===l.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};Cr.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};l.parenR.updateContext=l.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===Ee.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};l.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Ee.b_stat:Ee.b_expr),this.exprAllowed=!0};l.dollarBraceL.updateContext=function(){this.context.push(Ee.b_tmpl),this.exprAllowed=!0};l.parenL.updateContext=function(e){var t=e===l._if||e===l._for||e===l._with||e===l._while;this.context.push(t?Ee.p_stat:Ee.p_expr),this.exprAllowed=!0};l.incDec.updateContext=function(){};l._function.updateContext=l._class.updateContext=function(e){e.beforeExpr&&e!==l._else&&!(e===l.semi&&this.curContext()!==Ee.p_stat)&&!(e===l._return&&Je.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===l.colon||e===l.braceL)&&this.curContext()===Ee.b_stat)?this.context.push(Ee.f_expr):this.context.push(Ee.f_stat),this.exprAllowed=!1};l.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};l.backQuote.updateContext=function(){this.curContext()===Ee.q_tmpl?this.context.pop():this.context.push(Ee.q_tmpl),this.exprAllowed=!1};l.star.updateContext=function(e){if(e===l._function){var t=this.context.length-1;this.context[t]===Ee.f_expr?this.context[t]=Ee.f_expr_gen:this.context[t]=Ee.f_gen}this.exprAllowed=!0};l.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==l.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var se=Ve.prototype;se.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s=e.key,i;switch(s.type){case"Identifier":i=s.name;break;case"Literal":i=String(s.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&o==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);return}i="$"+i;var c=t[i];if(c){var u;o==="init"?u=this.strict&&c.init||c.get||c.set:u=c.init||c[o],u&&this.raiseRecoverable(s.start,"Redefinition of property")}else c=t[i]={init:!1,get:!1,set:!1};c[o]=!0}};se.parseExpression=function(e,t){var r=this.start,s=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===l.comma){var o=this.startNodeAt(r,s);for(o.expressions=[i];this.eat(l.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return i};se.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,i=-1,o=-1,c=-1;t?(i=t.parenthesizedAssign,o=t.trailingComma,c=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Yn,s=!0);var u=this.start,f=this.startLoc;(this.type===l.parenL||this.type===l.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var p=this.parseMaybeConditional(e,t);if(r&&(p=r.call(this,p,u,f)),this.type.isAssign){var m=this.startNodeAt(u,f);return m.operator=this.value,this.type===l.eq&&(p=this.toAssignable(p,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===l.eq?this.checkLValPattern(p):this.checkLValSimple(p),m.left=p,this.next(),m.right=this.parseMaybeAssign(e),c>-1&&(t.doubleProto=c),this.finishNode(m,"AssignmentExpression")}else s&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),o>-1&&(t.trailingComma=o),p};se.parseMaybeConditional=function(e,t){var r=this.start,s=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(l.question)){var o=this.startNodeAt(r,s);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(l.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i};se.parseExprOps=function(e,t){var r=this.start,s=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,s,-1,e)};se.parseExprOp=function(e,t,r,s,i){var o=this.type.binop;if(o!=null&&(!i||this.type!==l._in)&&o>s){var c=this.type===l.logicalOR||this.type===l.logicalAND,u=this.type===l.coalesce;u&&(o=l.logicalAND.binop);var f=this.value;this.next();var p=this.start,m=this.startLoc,x=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),p,m,o,i),_=this.buildBinary(t,r,e,x,f,c||u);return(c&&this.type===l.coalesce||u&&(this.type===l.logicalOR||this.type===l.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(_,t,r,s,i)}return e};se.buildBinary=function(e,t,r,s,i,o){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var c=this.startNodeAt(e,t);return c.left=r,c.operator=i,c.right=s,this.finishNode(c,o?"LogicalExpression":"BinaryExpression")};se.parseMaybeUnary=function(e,t,r,s){var i=this.start,o=this.startLoc,c;if(this.isContextual("await")&&this.canAwait)c=this.parseAwait(s),t=!0;else if(this.type.prefix){var u=this.startNode(),f=this.type===l.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,f,s),this.checkExpressionErrors(e,!0),f?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&Ko(u.argument)?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&Us(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):t=!0,c=this.finishNode(u,f?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===l.privateId)(s||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),c=this.parsePrivateIdent(),this.type!==l._in&&this.unexpected();else{if(c=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return c;for(;this.type.postfix&&!this.canInsertSemicolon();){var p=this.startNodeAt(i,o);p.operator=this.value,p.prefix=!1,p.argument=c,this.checkLValSimple(c),this.next(),c=this.finishNode(p,"UpdateExpression")}}if(!r&&this.eat(l.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,o,c,this.parseMaybeUnary(null,!1,!1,s),"**",!1);else return c};function Ko(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Ko(e.expression)}function Us(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Us(e.expression)||e.type==="ParenthesizedExpression"&&Us(e.expression)}se.parseExprSubscripts=function(e,t){var r=this.start,s=this.startLoc,i=this.parseExprAtom(e,t);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var o=this.parseSubscripts(i,r,s,!1,t);return e&&o.type==="MemberExpression"&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o};se.parseSubscripts=function(e,t,r,s,i){for(var o=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,c=!1;;){var u=this.parseSubscript(e,t,r,s,o,c,i);if(u.optional&&(c=!0),u===e||u.type==="ArrowFunctionExpression"){if(c){var f=this.startNodeAt(t,r);f.expression=u,u=this.finishNode(f,"ChainExpression")}return u}e=u}};se.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(l.arrow)};se.parseSubscriptAsyncArrow=function(e,t,r,s){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,s)};se.parseSubscript=function(e,t,r,s,i,o,c){var u=this.options.ecmaVersion>=11,f=u&&this.eat(l.questionDot);s&&f&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(l.bracketL);if(p||f&&this.type!==l.parenL&&this.type!==l.backQuote||this.eat(l.dot)){var m=this.startNodeAt(t,r);m.object=e,p?(m.property=this.parseExpression(),this.expect(l.bracketR)):this.type===l.privateId&&e.type!=="Super"?m.property=this.parsePrivateIdent():m.property=this.parseIdent(this.options.allowReserved!=="never"),m.computed=!!p,u&&(m.optional=f),e=this.finishNode(m,"MemberExpression")}else if(!s&&this.eat(l.parenL)){var x=new Yn,_=this.yieldPos,y=this.awaitPos,L=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var O=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1,x);if(i&&!f&&this.shouldParseAsyncArrow())return this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=_,this.awaitPos=y,this.awaitIdentPos=L,this.parseSubscriptAsyncArrow(t,r,O,c);this.checkExpressionErrors(x,!0),this.yieldPos=_||this.yieldPos,this.awaitPos=y||this.awaitPos,this.awaitIdentPos=L||this.awaitIdentPos;var F=this.startNodeAt(t,r);F.callee=e,F.arguments=O,u&&(F.optional=f),e=this.finishNode(F,"CallExpression")}else if(this.type===l.backQuote){(f||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var K=this.startNodeAt(t,r);K.tag=e,K.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(K,"TaggedTemplateExpression")}return e};se.parseExprAtom=function(e,t,r){this.type===l.slash&&this.readRegexp();var s,i=this.potentialArrowAt===this.start;switch(this.type){case l._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type===l.parenL&&!this.allowDirectSuper&&this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==l.dot&&this.type!==l.bracketL&&this.type!==l.parenL&&this.unexpected(),this.finishNode(s,"Super");case l._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case l.name:var o=this.start,c=this.startLoc,u=this.containsEsc,f=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!u&&f.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(Ee.f_expr),this.parseFunction(this.startNodeAt(o,c),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(o,c),[f],!1,t);if(this.options.ecmaVersion>=8&&f.name==="async"&&this.type===l.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return f=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(l.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,c),[f],!0,t)}return f;case l.regexp:var p=this.value;return s=this.parseLiteral(p.value),s.regex={pattern:p.pattern,flags:p.flags},s;case l.num:case l.string:return this.parseLiteral(this.value);case l._null:case l._true:case l._false:return s=this.startNode(),s.value=this.type===l._null?null:this.type===l._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case l.parenL:var m=this.start,x=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(x)&&(e.parenthesizedAssign=m),e.parenthesizedBind<0&&(e.parenthesizedBind=m)),x;case l.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(l.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case l.braceL:return this.overrideContext(Ee.b_expr),this.parseObj(!1,e);case l._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case l._class:return this.parseClass(this.startNode(),!1);case l._new:return this.parseNew();case l.backQuote:return this.parseTemplate();case l._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};se.parseExprAtomDefault=function(){this.unexpected()};se.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===l.parenL&&!e)return this.parseDynamicImport(t);if(this.type===l.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};se.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(l.parenR)?e.options=null:(this.expect(l.comma),this.afterTrailingComma(l.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(l.parenR)||(this.expect(l.comma),this.afterTrailingComma(l.parenR)||this.unexpected())));else if(!this.eat(l.parenR)){var t=this.start;this.eat(l.comma)&&this.eat(l.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};se.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};se.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};se.parseParenExpression=function(){this.expect(l.parenL);var e=this.parseExpression();return this.expect(l.parenR),e};se.shouldParseArrow=function(e){return!this.canInsertSemicolon()};se.parseParenAndDistinguishExpression=function(e,t){var r=this.start,s=this.startLoc,i,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var c=this.start,u=this.startLoc,f=[],p=!0,m=!1,x=new Yn,_=this.yieldPos,y=this.awaitPos,L;for(this.yieldPos=0,this.awaitPos=0;this.type!==l.parenR;)if(p?p=!1:this.expect(l.comma),o&&this.afterTrailingComma(l.parenR,!0)){m=!0;break}else if(this.type===l.ellipsis){L=this.start,f.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else f.push(this.parseMaybeAssign(!1,x,this.parseParenItem));var O=this.lastTokEnd,F=this.lastTokEndLoc;if(this.expect(l.parenR),e&&this.shouldParseArrow(f)&&this.eat(l.arrow))return this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=_,this.awaitPos=y,this.parseParenArrowList(r,s,f,t);(!f.length||m)&&this.unexpected(this.lastTokStart),L&&this.unexpected(L),this.checkExpressionErrors(x,!0),this.yieldPos=_||this.yieldPos,this.awaitPos=y||this.awaitPos,f.length>1?(i=this.startNodeAt(c,u),i.expressions=f,this.finishNodeAt(i,"SequenceExpression",O,F)):i=f[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var K=this.startNodeAt(r,s);return K.expression=i,this.finishNode(K,"ParenthesizedExpression")}else return i};se.parseParenItem=function(e){return e};se.parseParenArrowList=function(e,t,r,s){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,s)};var Ed=[];se.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===l.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,i,!0,!1),this.eat(l.parenL)?e.arguments=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ed,this.finishNode(e,"NewExpression")};se.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===l.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,`
193
193
  `),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
194
- `),cooked:this.value},this.next(),r.tail=this.type===l.backQuote,this.finishNode(r,"TemplateElement")};se.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(r.quasis=[s];!s.tail;)this.type===l.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(l.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(l.braceR),r.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};se.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===l.name||this.type===l.num||this.type===l.string||this.type===l.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===l.star)&&!Je.test(this.input.slice(this.lastTokEnd,this.start))};se.parseObj=function(e,t){var r=this.startNode(),s=!0,i={};for(r.properties=[],this.next();!this.eat(l.braceR);){if(s)s=!1;else if(this.expect(l.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(l.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),r.properties.push(o)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};se.parseProperty=function(e,t){var r=this.startNode(),s,i,o,c;if(this.options.ecmaVersion>=9&&this.eat(l.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===l.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(o=this.start,c=this.startLoc),e||(s=this.eat(l.star)));var u=this.containsEsc;return this.parsePropertyName(r),!e&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(r)?(i=!0,s=this.options.ecmaVersion>=9&&this.eat(l.star),this.parsePropertyName(r)):i=!1,this.parsePropertyValue(r,e,s,i,o,c,t,u),this.finishNode(r,"Property")};se.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var r=e.kind==="get"?0:1;if(e.value.params.length!==r){var s=e.value.start;e.kind==="get"?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};se.parsePropertyValue=function(e,t,r,s,i,o,c,u){(r||s)&&this.type===l.colon&&this.unexpected(),this.eat(l.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,c),e.kind="init"):this.options.ecmaVersion>=6&&this.type===l.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(r,s),e.kind="init"):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==l.comma&&this.type!==l.braceR&&this.type!==l.eq?((r||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key)):this.type===l.eq&&c?(c.shorthandAssign<0&&(c.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};se.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(l.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(l.bracketR),e.key;e.computed=!1}return e.key=this.type===l.num||this.type===l.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};se.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};se.parseMethod=function(e,t,r){var s=this.startNode(),i=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_i(t,s.generator)|Gn|(r?zo:0)),this.expect(l.parenL),s.params=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(s,"FunctionExpression")};se.parseArrowExpression=function(e,t,r,s){var i=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.enterScope(_i(r,!1)|wi),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(e,"ArrowFunctionExpression")};se.parseFunctionBody=function(e,t,r,s){var i=t&&this.type!==l.braceL,o=this.strict,c=!1;if(i)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!o||u)&&(c=this.strictDirective(this.end),c&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var f=this.labels;this.labels=[],c&&(this.strict=!0),this.checkParams(e,!o&&!c&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Xo),e.body=this.parseBlock(!1,void 0,c&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=f}this.exitScope()};se.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var s=r[t];if(s.type!=="Identifier")return!1}return!0};se.checkParams=function(e,t){for(var r=Object.create(null),s=0,i=e.params;s<i.length;s+=1){var o=i[s];this.checkLValInnerPattern(o,Si,t?null:r)}};se.parseExprList=function(e,t,r,s){for(var i=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(l.comma),t&&this.afterTrailingComma(e))break;var c=void 0;r&&this.type===l.comma?c=null:this.type===l.ellipsis?(c=this.parseSpread(s),s&&this.type===l.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):c=this.parseMaybeAssign(!1,s),i.push(c)}return i};se.checkUnreserved=function(e){var t=e.start,r=e.end,s=e.name;if(this.inGenerator&&s==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Xn)&&s==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(s==="arguments"||s==="await")&&this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(s)&&(!this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))}};se.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};se.parseIdentNode=function(){var e=this.startNode();return this.type===l.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=l.name):this.unexpected(),e};se.parsePrivateIdent=function(){var e=this.startNode();return this.type===l.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};se.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===l.semi||this.canInsertSemicolon()||this.type!==l.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(l.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};se.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Ln=Ve.prototype;Ln.raise=function(e,t){var r=$o(this.input,e);t+=" ("+r.line+":"+r.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var s=new SyntaxError(t);throw s.pos=e,s.loc=r,s.raisedAt=this.pos,s};Ln.raiseRecoverable=Ln.raise;Ln.curPosition=function(){if(this.options.locations)return new en(this.curLine,this.pos-this.lineStart)};var Gt=Ve.prototype,Td=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Gt.enterScope=function(e){this.scopeStack.push(new Td(e))};Gt.exitScope=function(){this.scopeStack.pop()};Gt.treatFunctionsAsVarInScope=function(e){return e.flags&ar||!this.inModule&&e.flags&nr};Gt.declareName=function(e,t,r){var s=!1;if(t===Lt){var i=this.currentScope();s=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&nr&&delete this.undefinedExports[e]}else if(t===Go){var o=this.currentScope();o.lexical.push(e)}else if(t===Wo){var c=this.currentScope();this.treatFunctionsAsVar?s=c.lexical.indexOf(e)>-1:s=c.lexical.indexOf(e)>-1||c.var.indexOf(e)>-1,c.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var f=this.scopeStack[u];if(f.lexical.indexOf(e)>-1&&!(f.flags&Uo&&f.lexical[0]===e)||!this.treatFunctionsAsVarInScope(f)&&f.functions.indexOf(e)>-1){s=!0;break}if(f.var.push(e),this.inModule&&f.flags&nr&&delete this.undefinedExports[e],f.flags&Xn)break}s&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};Gt.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Gt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Gt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Xn|ln|or))return t}};Gt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Xn|ln|or)&&!(t.flags&wi))return t}};var Kn=function(t,r,s){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new Wn(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},un=Ve.prototype;un.startNode=function(){return new Kn(this,this.start,this.startLoc)};un.startNodeAt=function(e,t){return new Kn(this,e,t)};function Qo(e,t,r,s){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=r),e}un.finishNode=function(e,t){return Qo.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};un.finishNodeAt=function(e,t,r,s){return Qo.call(this,e,t,r,s)};un.copyNode=function(e){var t=new Kn(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var Ad="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Jo="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",Zo=Jo+" Extended_Pictographic",ec=Zo,tc=ec+" EBase EComp EMod EPres ExtPict",rc=tc,Pd=rc,Nd={9:Jo,10:Zo,11:ec,12:tc,13:rc,14:Pd},Rd="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Ld={9:"",10:"",11:"",12:"",13:"",14:Rd},la="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",nc="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",sc=nc+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ic=sc+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ac=ic+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",oc=ac+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Dd=oc+" "+Ad,Od={9:nc,10:sc,11:ic,12:ac,13:oc,14:Dd},cc={};function Md(e){var t=cc[e]={binary:Vt(Nd[e]+" "+la),binaryOfStrings:Vt(Ld[e]),nonBinary:{General_Category:Vt(la),Script:Vt(Od[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Ss=0,ua=[9,10,11,12,13,14];Ss<ua.length;Ss+=1){var jd=ua[Ss];Md(jd)}var V=Ve.prototype,Dn=function(t,r){this.parent=t,this.base=r||this};Dn.prototype.separatedFrom=function(t){for(var r=this;r;r=r.parent)for(var s=t;s;s=s.parent)if(r.base===s.base&&r!==s)return!0;return!1};Dn.prototype.sibling=function(){return new Dn(this.parent,this.base)};var Et=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=cc[t.options.ecmaVersion>=14?14:t.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};Et.prototype.reset=function(t,r,s){var i=s.indexOf("v")!==-1,o=s.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=s,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=o&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=o&&this.parser.options.ecmaVersion>=9)};Et.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Et.prototype.at=function(t,r){r===void 0&&(r=!1);var s=this.source,i=s.length;if(t>=i)return-1;var o=s.charCodeAt(t);if(!(r||this.switchU)||o<=55295||o>=57344||t+1>=i)return o;var c=s.charCodeAt(t+1);return c>=56320&&c<=57343?(o<<10)+c-56613888:o};Et.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var s=this.source,i=s.length;if(t>=i)return i;var o=s.charCodeAt(t),c;return!(r||this.switchU)||o<=55295||o>=57344||t+1>=i||(c=s.charCodeAt(t+1))<56320||c>57343?t+1:t+2};Et.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Et.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Et.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Et.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};Et.prototype.eatChars=function(t,r){r===void 0&&(r=!1);for(var s=this.pos,i=0,o=t;i<o.length;i+=1){var c=o[i],u=this.at(s,r);if(u===-1||u!==c)return!1;s=this.nextIndex(s,r)}return this.pos=s,!0};V.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,s=!1,i=!1,o=0;o<r.length;o++){var c=r.charAt(o);t.indexOf(c)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(c,o+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),c==="u"&&(s=!0),c==="v"&&(i=!0)}this.options.ecmaVersion>=15&&s&&i&&this.raise(e.start,"Invalid regular expression flag")};function Fd(e){for(var t in e)return!0;return!1}V.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Fd(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};V.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var s=r[t];e.groupNames[s]||e.raise("Invalid named capture referenced")}};V.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Dn(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};V.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};V.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};V.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};V.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};V.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};V.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var s=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};V.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};V.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};V.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var r=this.regexp_eatModifiers(e),s=e.eat(45);if(r||s){for(var i=0;i<r.length;i++){var o=r.charAt(i);r.indexOf(o,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(s){var c=this.regexp_eatModifiers(e);!r&&!c&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var u=0;u<c.length;u++){var f=c.charAt(u);(c.indexOf(f,u+1)>-1||r.indexOf(f)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};V.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};V.regexp_eatModifiers=function(e){for(var t="",r=0;(r=e.current())!==-1&&Bd(r);)t+=Nt(r),e.advance();return t};function Bd(e){return e===105||e===109||e===115}V.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};V.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};V.regexp_eatSyntaxCharacter=function(e){var t=e.current();return lc(t)?(e.lastIntValue=t,e.advance(),!0):!1};function lc(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}V.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!lc(r);)e.advance();return e.pos!==t};V.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};V.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,r=e.groupNames[e.lastStringValue];if(r)if(t)for(var s=0,i=r;s<i.length;s+=1){var o=i[s];o.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(r||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};V.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};V.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Nt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Nt(e.lastIntValue);return!0}return!1};V.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,s=e.current(r);return e.advance(r),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(s=e.lastIntValue),Vd(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Vd(e){return It(e,!0)||e===36||e===95}V.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,s=e.current(r);return e.advance(r),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(s=e.lastIntValue),$d(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function $d(e){return Ht(e,!0)||e===36||e===95||e===8204||e===8205}V.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};V.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};V.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};V.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};V.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};V.regexp_eatZero=function(e){return e.current()===48&&!Qn(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};V.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};V.regexp_eatControlLetter=function(e){var t=e.current();return uc(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function uc(e){return e>=65&&e<=90||e>=97&&e<=122}V.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(s&&i>=55296&&i<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var c=e.lastIntValue;if(c>=56320&&c<=57343)return e.lastIntValue=(i-55296)*1024+(c-56320)+65536,!0}e.pos=o,e.lastIntValue=i}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&qd(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function qd(e){return e>=0&&e<=1114111}V.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};V.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var pc=0,Rt=1,at=2;V.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ud(t))return e.lastIntValue=-1,e.advance(),Rt;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&s===at&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return pc};function Ud(e){return e===100||e===68||e===115||e===83||e===119||e===87}V.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,s),Rt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return pc};V.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Ir(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};V.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Rt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return at;e.raise("Invalid property name")};V.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";hc(t=e.current());)e.lastStringValue+=Nt(t),e.advance();return e.lastStringValue!==""};function hc(e){return uc(e)||e===95}V.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";zd(t=e.current());)e.lastStringValue+=Nt(t),e.advance();return e.lastStringValue!==""};function zd(e){return hc(e)||Qn(e)}V.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};V.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===at&&e.raise("Negated character class may contain strings"),!0}return!1};V.regexp_classContents=function(e){return e.current()===93?Rt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Rt)};V.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};V.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||mc(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1};V.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};V.regexp_classSetExpression=function(e){var t=Rt,r;if(!this.regexp_eatClassSetRange(e))if(r=this.regexp_eatClassSetOperand(e)){r===at&&(t=at);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(r=this.regexp_eatClassSetOperand(e))){r!==at&&(t=Rt);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(r=this.regexp_eatClassSetOperand(e),!r)return t;r===at&&(t=at)}};V.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return r!==-1&&s!==-1&&r>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};V.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Rt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};V.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return r&&s===at&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null};V.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null};V.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===at&&(t=at);return t};V.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Rt:at};V.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var r=e.current();return r<0||r===e.lookahead()&&Hd(r)||Wd(r)?!1:(e.advance(),e.lastIntValue=r,!0)};function Hd(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Wd(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}V.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Gd(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Gd(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}V.regexp_eatClassControlLetter=function(e){var t=e.current();return Qn(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};V.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};V.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Qn(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function Qn(e){return e>=48&&e<=57}V.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;fc(r=e.current());)e.lastIntValue=16*e.lastIntValue+dc(r),e.advance();return e.pos!==t};function fc(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function dc(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}V.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};V.regexp_eatOctalDigit=function(e){var t=e.current();return mc(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function mc(e){return e>=48&&e<=55}V.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var i=e.current();if(!fc(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+dc(i),e.advance()}return!0};var Ei=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Wn(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},he=Ve.prototype;he.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ei(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};he.getToken=function(){return this.next(),new Ei(this)};typeof Symbol<"u"&&(he[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===l.eof,value:t}}}});he.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(l.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};he.readToken=function(e){return It(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};he.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var r=this.input.charCodeAt(e+1);return r<=56319||r>=57344?t:(t<<10)+r-56613888};he.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};he.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=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 s=void 0,i=t;(s=Fo(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};he.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Sr(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};he.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){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 e}break;default:if(e>8&&e<14||e>=5760&&Bo.test(String.fromCharCode(e)))++this.pos;else break e}}};he.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};he.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(l.ellipsis)):(++this.pos,this.finishToken(l.dot))};he.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(l.assign,2):this.finishOp(l.slash,1)};he.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,s=e===42?l.star:l.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,s=l.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(l.assign,r+1):this.finishOp(s,r)};he.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(l.assign,3)}return this.finishOp(e===124?l.logicalOR:l.logicalAND,2)}return t===61?this.finishOp(l.assign,2):this.finishOp(e===124?l.bitwiseOR:l.bitwiseAND,1)};he.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(l.assign,2):this.finishOp(l.bitwiseXOR,1)};he.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Je.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(l.incDec,2):t===61?this.finishOp(l.assign,2):this.finishOp(l.plusMin,1)};he.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(l.assign,r+1):this.finishOp(l.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(l.relational,r))};he.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(l.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(l.arrow)):this.finishOp(e===61?l.eq:l.prefix,1)};he.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(l.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(l.assign,3)}return this.finishOp(l.coalesce,2)}}return this.finishOp(l.question,1)};he.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),It(t,!0)||t===92))return this.finishToken(l.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Nt(t)+"'")};he.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(l.parenL);case 41:return++this.pos,this.finishToken(l.parenR);case 59:return++this.pos,this.finishToken(l.semi);case 44:return++this.pos,this.finishToken(l.comma);case 91:return++this.pos,this.finishToken(l.bracketL);case 93:return++this.pos,this.finishToken(l.bracketR);case 123:return++this.pos,this.finishToken(l.braceL);case 125:return++this.pos,this.finishToken(l.braceR);case 58:return++this.pos,this.finishToken(l.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(l.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(l.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Nt(e)+"'")};he.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};he.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(Je.test(s)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var o=this.pos,c=this.readWord1();this.containsEsc&&this.unexpected(o);var u=this.regexpState||(this.regexpState=new Et(this));u.reset(r,i,c),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var f=null;try{f=new RegExp(i,c)}catch{}return this.finishToken(l.regexp,{pattern:i,flags:c,value:f})};he.readInt=function(e,t,r){for(var s=this.options.ecmaVersion>=12&&t===void 0,i=r&&this.input.charCodeAt(this.pos)===48,o=this.pos,c=0,u=0,f=0,h=t??1/0;f<h;++f,++this.pos){var m=this.input.charCodeAt(this.pos),x=void 0;if(s&&m===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),u===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),f===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),u=m;continue}if(m>=97?x=m-97+10:m>=65?x=m-65+10:m>=48&&m<=57?x=m-48:x=1/0,x>=e)break;u=m,c=c*e+x}return s&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:c};function Xd(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function gc(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}he.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=gc(this.input.slice(t,this.pos)),++this.pos):It(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(l.num,r)};he.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&s===110){var i=gc(this.input.slice(t,this.pos));return++this.pos,It(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(l.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),s===46&&!r&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!r&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),It(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=Xd(this.input.slice(t,this.pos),r);return this.finishToken(l.num,o)};he.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};he.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Sr(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(l.string,t)};var xc={};he.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===xc)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};he.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw xc;this.raise(e,t)};he.readTmplToken=function(){for(var e="",t=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===l.template||this.type===l.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(l.dollarBraceL)):(++this.pos,this.finishToken(l.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(l.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Sr(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
195
- `;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};he.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(l.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
194
+ `),cooked:this.value},this.next(),r.tail=this.type===l.backQuote,this.finishNode(r,"TemplateElement")};se.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(r.quasis=[s];!s.tail;)this.type===l.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(l.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(l.braceR),r.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};se.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===l.name||this.type===l.num||this.type===l.string||this.type===l.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===l.star)&&!Je.test(this.input.slice(this.lastTokEnd,this.start))};se.parseObj=function(e,t){var r=this.startNode(),s=!0,i={};for(r.properties=[],this.next();!this.eat(l.braceR);){if(s)s=!1;else if(this.expect(l.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(l.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),r.properties.push(o)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};se.parseProperty=function(e,t){var r=this.startNode(),s,i,o,c;if(this.options.ecmaVersion>=9&&this.eat(l.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===l.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===l.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(o=this.start,c=this.startLoc),e||(s=this.eat(l.star)));var u=this.containsEsc;return this.parsePropertyName(r),!e&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(r)?(i=!0,s=this.options.ecmaVersion>=9&&this.eat(l.star),this.parsePropertyName(r)):i=!1,this.parsePropertyValue(r,e,s,i,o,c,t,u),this.finishNode(r,"Property")};se.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var r=e.kind==="get"?0:1;if(e.value.params.length!==r){var s=e.value.start;e.kind==="get"?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};se.parsePropertyValue=function(e,t,r,s,i,o,c,u){(r||s)&&this.type===l.colon&&this.unexpected(),this.eat(l.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,c),e.kind="init"):this.options.ecmaVersion>=6&&this.type===l.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(r,s),e.kind="init"):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==l.comma&&this.type!==l.braceR&&this.type!==l.eq?((r||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key)):this.type===l.eq&&c?(c.shorthandAssign<0&&(c.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};se.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(l.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(l.bracketR),e.key;e.computed=!1}return e.key=this.type===l.num||this.type===l.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};se.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};se.parseMethod=function(e,t,r){var s=this.startNode(),i=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_i(t,s.generator)|Gn|(r?zo:0)),this.expect(l.parenL),s.params=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(s,"FunctionExpression")};se.parseArrowExpression=function(e,t,r,s){var i=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.enterScope(_i(r,!1)|wi),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(e,"ArrowFunctionExpression")};se.parseFunctionBody=function(e,t,r,s){var i=t&&this.type!==l.braceL,o=this.strict,c=!1;if(i)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!o||u)&&(c=this.strictDirective(this.end),c&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var f=this.labels;this.labels=[],c&&(this.strict=!0),this.checkParams(e,!o&&!c&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Xo),e.body=this.parseBlock(!1,void 0,c&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=f}this.exitScope()};se.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var s=r[t];if(s.type!=="Identifier")return!1}return!0};se.checkParams=function(e,t){for(var r=Object.create(null),s=0,i=e.params;s<i.length;s+=1){var o=i[s];this.checkLValInnerPattern(o,Si,t?null:r)}};se.parseExprList=function(e,t,r,s){for(var i=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(l.comma),t&&this.afterTrailingComma(e))break;var c=void 0;r&&this.type===l.comma?c=null:this.type===l.ellipsis?(c=this.parseSpread(s),s&&this.type===l.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):c=this.parseMaybeAssign(!1,s),i.push(c)}return i};se.checkUnreserved=function(e){var t=e.start,r=e.end,s=e.name;if(this.inGenerator&&s==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Xn)&&s==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(s==="arguments"||s==="await")&&this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var i=this.strict?this.reservedWordsStrict:this.reservedWords;i.test(s)&&(!this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))}};se.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};se.parseIdentNode=function(){var e=this.startNode();return this.type===l.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=l.name):this.unexpected(),e};se.parsePrivateIdent=function(){var e=this.startNode();return this.type===l.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};se.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===l.semi||this.canInsertSemicolon()||this.type!==l.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(l.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};se.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Ln=Ve.prototype;Ln.raise=function(e,t){var r=$o(this.input,e);t+=" ("+r.line+":"+r.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var s=new SyntaxError(t);throw s.pos=e,s.loc=r,s.raisedAt=this.pos,s};Ln.raiseRecoverable=Ln.raise;Ln.curPosition=function(){if(this.options.locations)return new en(this.curLine,this.pos-this.lineStart)};var Gt=Ve.prototype,Td=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Gt.enterScope=function(e){this.scopeStack.push(new Td(e))};Gt.exitScope=function(){this.scopeStack.pop()};Gt.treatFunctionsAsVarInScope=function(e){return e.flags&ar||!this.inModule&&e.flags&nr};Gt.declareName=function(e,t,r){var s=!1;if(t===Lt){var i=this.currentScope();s=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&nr&&delete this.undefinedExports[e]}else if(t===Go){var o=this.currentScope();o.lexical.push(e)}else if(t===Wo){var c=this.currentScope();this.treatFunctionsAsVar?s=c.lexical.indexOf(e)>-1:s=c.lexical.indexOf(e)>-1||c.var.indexOf(e)>-1,c.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var f=this.scopeStack[u];if(f.lexical.indexOf(e)>-1&&!(f.flags&Uo&&f.lexical[0]===e)||!this.treatFunctionsAsVarInScope(f)&&f.functions.indexOf(e)>-1){s=!0;break}if(f.var.push(e),this.inModule&&f.flags&nr&&delete this.undefinedExports[e],f.flags&Xn)break}s&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};Gt.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Gt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Gt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Xn|ln|or))return t}};Gt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Xn|ln|or)&&!(t.flags&wi))return t}};var Kn=function(t,r,s){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new Wn(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},un=Ve.prototype;un.startNode=function(){return new Kn(this,this.start,this.startLoc)};un.startNodeAt=function(e,t){return new Kn(this,e,t)};function Qo(e,t,r,s){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=r),e}un.finishNode=function(e,t){return Qo.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};un.finishNodeAt=function(e,t,r,s){return Qo.call(this,e,t,r,s)};un.copyNode=function(e){var t=new Kn(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var Ad="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Jo="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",Zo=Jo+" Extended_Pictographic",e1=Zo,t1=e1+" EBase EComp EMod EPres ExtPict",r1=t1,Pd=r1,Nd={9:Jo,10:Zo,11:e1,12:t1,13:r1,14:Pd},Rd="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Ld={9:"",10:"",11:"",12:"",13:"",14:Rd},la="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",n1="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",s1=n1+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",i1=s1+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",a1=i1+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",o1=a1+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Dd=o1+" "+Ad,Od={9:n1,10:s1,11:i1,12:a1,13:o1,14:Dd},c1={};function Md(e){var t=c1[e]={binary:Vt(Nd[e]+" "+la),binaryOfStrings:Vt(Ld[e]),nonBinary:{General_Category:Vt(la),Script:Vt(Od[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Ss=0,ua=[9,10,11,12,13,14];Ss<ua.length;Ss+=1){var jd=ua[Ss];Md(jd)}var V=Ve.prototype,Dn=function(t,r){this.parent=t,this.base=r||this};Dn.prototype.separatedFrom=function(t){for(var r=this;r;r=r.parent)for(var s=t;s;s=s.parent)if(r.base===s.base&&r!==s)return!0;return!1};Dn.prototype.sibling=function(){return new Dn(this.parent,this.base)};var Ct=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=c1[t.options.ecmaVersion>=14?14:t.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};Ct.prototype.reset=function(t,r,s){var i=s.indexOf("v")!==-1,o=s.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=s,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=o&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=o&&this.parser.options.ecmaVersion>=9)};Ct.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Ct.prototype.at=function(t,r){r===void 0&&(r=!1);var s=this.source,i=s.length;if(t>=i)return-1;var o=s.charCodeAt(t);if(!(r||this.switchU)||o<=55295||o>=57344||t+1>=i)return o;var c=s.charCodeAt(t+1);return c>=56320&&c<=57343?(o<<10)+c-56613888:o};Ct.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var s=this.source,i=s.length;if(t>=i)return i;var o=s.charCodeAt(t),c;return!(r||this.switchU)||o<=55295||o>=57344||t+1>=i||(c=s.charCodeAt(t+1))<56320||c>57343?t+1:t+2};Ct.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Ct.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Ct.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Ct.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};Ct.prototype.eatChars=function(t,r){r===void 0&&(r=!1);for(var s=this.pos,i=0,o=t;i<o.length;i+=1){var c=o[i],u=this.at(s,r);if(u===-1||u!==c)return!1;s=this.nextIndex(s,r)}return this.pos=s,!0};V.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,s=!1,i=!1,o=0;o<r.length;o++){var c=r.charAt(o);t.indexOf(c)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(c,o+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),c==="u"&&(s=!0),c==="v"&&(i=!0)}this.options.ecmaVersion>=15&&s&&i&&this.raise(e.start,"Invalid regular expression flag")};function Fd(e){for(var t in e)return!0;return!1}V.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Fd(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};V.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var s=r[t];e.groupNames[s]||e.raise("Invalid named capture referenced")}};V.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Dn(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};V.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};V.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};V.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};V.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};V.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};V.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var s=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};V.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};V.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};V.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var r=this.regexp_eatModifiers(e),s=e.eat(45);if(r||s){for(var i=0;i<r.length;i++){var o=r.charAt(i);r.indexOf(o,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(s){var c=this.regexp_eatModifiers(e);!r&&!c&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var u=0;u<c.length;u++){var f=c.charAt(u);(c.indexOf(f,u+1)>-1||r.indexOf(f)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};V.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};V.regexp_eatModifiers=function(e){for(var t="",r=0;(r=e.current())!==-1&&Bd(r);)t+=Nt(r),e.advance();return t};function Bd(e){return e===105||e===109||e===115}V.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};V.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};V.regexp_eatSyntaxCharacter=function(e){var t=e.current();return l1(t)?(e.lastIntValue=t,e.advance(),!0):!1};function l1(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}V.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!l1(r);)e.advance();return e.pos!==t};V.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};V.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,r=e.groupNames[e.lastStringValue];if(r)if(t)for(var s=0,i=r;s<i.length;s+=1){var o=i[s];o.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(r||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};V.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};V.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Nt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Nt(e.lastIntValue);return!0}return!1};V.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,s=e.current(r);return e.advance(r),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(s=e.lastIntValue),Vd(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Vd(e){return It(e,!0)||e===36||e===95}V.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,s=e.current(r);return e.advance(r),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(s=e.lastIntValue),$d(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function $d(e){return Ht(e,!0)||e===36||e===95||e===8204||e===8205}V.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};V.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};V.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};V.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};V.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};V.regexp_eatZero=function(e){return e.current()===48&&!Qn(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};V.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};V.regexp_eatControlLetter=function(e){var t=e.current();return u1(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function u1(e){return e>=65&&e<=90||e>=97&&e<=122}V.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(s&&i>=55296&&i<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var c=e.lastIntValue;if(c>=56320&&c<=57343)return e.lastIntValue=(i-55296)*1024+(c-56320)+65536,!0}e.pos=o,e.lastIntValue=i}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&qd(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function qd(e){return e>=0&&e<=1114111}V.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};V.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var h1=0,Rt=1,at=2;V.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ud(t))return e.lastIntValue=-1,e.advance(),Rt;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&s===at&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return h1};function Ud(e){return e===100||e===68||e===115||e===83||e===119||e===87}V.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,s),Rt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return h1};V.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Ir(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};V.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Rt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return at;e.raise("Invalid property name")};V.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";p1(t=e.current());)e.lastStringValue+=Nt(t),e.advance();return e.lastStringValue!==""};function p1(e){return u1(e)||e===95}V.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";zd(t=e.current());)e.lastStringValue+=Nt(t),e.advance();return e.lastStringValue!==""};function zd(e){return p1(e)||Qn(e)}V.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};V.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===at&&e.raise("Negated character class may contain strings"),!0}return!1};V.regexp_classContents=function(e){return e.current()===93?Rt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Rt)};V.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};V.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||m1(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1};V.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};V.regexp_classSetExpression=function(e){var t=Rt,r;if(!this.regexp_eatClassSetRange(e))if(r=this.regexp_eatClassSetOperand(e)){r===at&&(t=at);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(r=this.regexp_eatClassSetOperand(e))){r!==at&&(t=Rt);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(r=this.regexp_eatClassSetOperand(e),!r)return t;r===at&&(t=at)}};V.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return r!==-1&&s!==-1&&r>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};V.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Rt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};V.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return r&&s===at&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null};V.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null};V.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===at&&(t=at);return t};V.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Rt:at};V.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var r=e.current();return r<0||r===e.lookahead()&&Hd(r)||Wd(r)?!1:(e.advance(),e.lastIntValue=r,!0)};function Hd(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Wd(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}V.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Gd(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Gd(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}V.regexp_eatClassControlLetter=function(e){var t=e.current();return Qn(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};V.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};V.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Qn(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function Qn(e){return e>=48&&e<=57}V.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;f1(r=e.current());)e.lastIntValue=16*e.lastIntValue+d1(r),e.advance();return e.pos!==t};function f1(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function d1(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}V.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};V.regexp_eatOctalDigit=function(e){var t=e.current();return m1(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function m1(e){return e>=48&&e<=55}V.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var i=e.current();if(!f1(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+d1(i),e.advance()}return!0};var Ci=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Wn(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},pe=Ve.prototype;pe.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ci(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};pe.getToken=function(){return this.next(),new Ci(this)};typeof Symbol<"u"&&(pe[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===l.eof,value:t}}}});pe.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(l.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};pe.readToken=function(e){return It(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};pe.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var r=this.input.charCodeAt(e+1);return r<=56319||r>=57344?t:(t<<10)+r-56613888};pe.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};pe.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=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 s=void 0,i=t;(s=Fo(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};pe.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Sr(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};pe.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){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 e}break;default:if(e>8&&e<14||e>=5760&&Bo.test(String.fromCharCode(e)))++this.pos;else break e}}};pe.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};pe.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(l.ellipsis)):(++this.pos,this.finishToken(l.dot))};pe.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(l.assign,2):this.finishOp(l.slash,1)};pe.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,s=e===42?l.star:l.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,s=l.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(l.assign,r+1):this.finishOp(s,r)};pe.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(l.assign,3)}return this.finishOp(e===124?l.logicalOR:l.logicalAND,2)}return t===61?this.finishOp(l.assign,2):this.finishOp(e===124?l.bitwiseOR:l.bitwiseAND,1)};pe.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(l.assign,2):this.finishOp(l.bitwiseXOR,1)};pe.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Je.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(l.incDec,2):t===61?this.finishOp(l.assign,2):this.finishOp(l.plusMin,1)};pe.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(l.assign,r+1):this.finishOp(l.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(l.relational,r))};pe.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(l.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(l.arrow)):this.finishOp(e===61?l.eq:l.prefix,1)};pe.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(l.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(l.assign,3)}return this.finishOp(l.coalesce,2)}}return this.finishOp(l.question,1)};pe.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),It(t,!0)||t===92))return this.finishToken(l.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Nt(t)+"'")};pe.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(l.parenL);case 41:return++this.pos,this.finishToken(l.parenR);case 59:return++this.pos,this.finishToken(l.semi);case 44:return++this.pos,this.finishToken(l.comma);case 91:return++this.pos,this.finishToken(l.bracketL);case 93:return++this.pos,this.finishToken(l.bracketR);case 123:return++this.pos,this.finishToken(l.braceL);case 125:return++this.pos,this.finishToken(l.braceR);case 58:return++this.pos,this.finishToken(l.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(l.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(l.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Nt(e)+"'")};pe.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};pe.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(Je.test(s)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var o=this.pos,c=this.readWord1();this.containsEsc&&this.unexpected(o);var u=this.regexpState||(this.regexpState=new Ct(this));u.reset(r,i,c),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var f=null;try{f=new RegExp(i,c)}catch{}return this.finishToken(l.regexp,{pattern:i,flags:c,value:f})};pe.readInt=function(e,t,r){for(var s=this.options.ecmaVersion>=12&&t===void 0,i=r&&this.input.charCodeAt(this.pos)===48,o=this.pos,c=0,u=0,f=0,p=t??1/0;f<p;++f,++this.pos){var m=this.input.charCodeAt(this.pos),x=void 0;if(s&&m===95){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),u===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),f===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),u=m;continue}if(m>=97?x=m-97+10:m>=65?x=m-65+10:m>=48&&m<=57?x=m-48:x=1/0,x>=e)break;u=m,c=c*e+x}return s&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:c};function Xd(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function g1(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}pe.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=g1(this.input.slice(t,this.pos)),++this.pos):It(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(l.num,r)};pe.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&s===110){var i=g1(this.input.slice(t,this.pos));return++this.pos,It(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(l.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),s===46&&!r&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!r&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),It(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=Xd(this.input.slice(t,this.pos),r);return this.finishToken(l.num,o)};pe.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};pe.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Sr(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(l.string,t)};var x1={};pe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===x1)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};pe.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw x1;this.raise(e,t)};pe.readTmplToken=function(){for(var e="",t=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===l.template||this.type===l.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(l.dollarBraceL)):(++this.pos,this.finishToken(l.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(l.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Sr(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
195
+ `;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};pe.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(l.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
196
196
  `&&++this.pos;case`
197
- `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};he.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
198
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Nt(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"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(s,8);return i>255&&(s=s.slice(0,-1),i=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return Sr(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};he.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};he.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Ht(i,s))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var c=this.readCodePoint();(t?It:Ht)(c,s)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=Nt(c),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};he.readWord=function(){var e=this.readWord1(),t=l.name;return this.keywords.test(e)&&(t=yi[e]),this.finishToken(t,e)};var Yd="8.16.0";Ve.acorn={Parser:Ve,version:Yd,defaultOptions:$s,Position:en,SourceLocation:Wn,getLineInfo:$o,Node:Kn,TokenType:de,tokTypes:l,keywordTypes:yi,TokContext:ht,tokContexts:Ce,isIdentifierChar:Ht,isIdentifierStart:It,Token:Ei,isNewLine:Sr,lineBreak:Je,lineBreakG:xd,nonASCIIwhitespace:Bo};function kc(e,t){return Ve.parse(e,t)}function Is(e,t,r,s,i){r||(r=R),function o(c,u,f){var h=f||c.type;bc(r,h,c,u,o),t[h]&&t[h](c,u)}(e,s,i)}function Kd(e,t,r,s,i){var o=[];r||(r=R),function c(u,f,h){var m=h||u.type,x=u!==o[o.length-1];x&&o.push(u),bc(r,m,u,f,c),t[m]&&t[m](u,f||o,o),x&&o.pop()}(e,s,i)}function Ci(e,t,r){r(e,t)}function cr(e,t,r){}function bc(e,t,r,s,i){if(e[t]==null)throw new Error("No walker function defined for node type "+t);e[t](r,s,i)}var R={};R.Program=R.BlockStatement=R.StaticBlock=function(e,t,r){for(var s=0,i=e.body;s<i.length;s+=1){var o=i[s];r(o,t,"Statement")}};R.Statement=Ci;R.EmptyStatement=cr;R.ExpressionStatement=R.ParenthesizedExpression=R.ChainExpression=function(e,t,r){return r(e.expression,t,"Expression")};R.IfStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")};R.LabeledStatement=function(e,t,r){return r(e.body,t,"Statement")};R.BreakStatement=R.ContinueStatement=cr;R.WithStatement=function(e,t,r){r(e.object,t,"Expression"),r(e.body,t,"Statement")};R.SwitchStatement=function(e,t,r){r(e.discriminant,t,"Expression");for(var s=0,i=e.cases;s<i.length;s+=1){var o=i[s];r(o,t)}};R.SwitchCase=function(e,t,r){e.test&&r(e.test,t,"Expression");for(var s=0,i=e.consequent;s<i.length;s+=1){var o=i[s];r(o,t,"Statement")}};R.ReturnStatement=R.YieldExpression=R.AwaitExpression=function(e,t,r){e.argument&&r(e.argument,t,"Expression")};R.ThrowStatement=R.SpreadElement=function(e,t,r){return r(e.argument,t,"Expression")};R.TryStatement=function(e,t,r){r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")};R.CatchClause=function(e,t,r){e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")};R.WhileStatement=R.DoWhileStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.body,t,"Statement")};R.ForStatement=function(e,t,r){e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")};R.ForInStatement=R.ForOfStatement=function(e,t,r){r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")};R.ForInit=function(e,t,r){e.type==="VariableDeclaration"?r(e,t):r(e,t,"Expression")};R.DebuggerStatement=cr;R.FunctionDeclaration=function(e,t,r){return r(e,t,"Function")};R.VariableDeclaration=function(e,t,r){for(var s=0,i=e.declarations;s<i.length;s+=1){var o=i[s];r(o,t)}};R.VariableDeclarator=function(e,t,r){r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")};R.Function=function(e,t,r){e.id&&r(e.id,t,"Pattern");for(var s=0,i=e.params;s<i.length;s+=1){var o=i[s];r(o,t,"Pattern")}r(e.body,t,e.expression?"Expression":"Statement")};R.Pattern=function(e,t,r){e.type==="Identifier"?r(e,t,"VariablePattern"):e.type==="MemberExpression"?r(e,t,"MemberPattern"):r(e,t)};R.VariablePattern=cr;R.MemberPattern=Ci;R.RestElement=function(e,t,r){return r(e.argument,t,"Pattern")};R.ArrayPattern=function(e,t,r){for(var s=0,i=e.elements;s<i.length;s+=1){var o=i[s];o&&r(o,t,"Pattern")}};R.ObjectPattern=function(e,t,r){for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];o.type==="Property"?(o.computed&&r(o.key,t,"Expression"),r(o.value,t,"Pattern")):o.type==="RestElement"&&r(o.argument,t,"Pattern")}};R.Expression=Ci;R.ThisExpression=R.Super=R.MetaProperty=cr;R.ArrayExpression=function(e,t,r){for(var s=0,i=e.elements;s<i.length;s+=1){var o=i[s];o&&r(o,t,"Expression")}};R.ObjectExpression=function(e,t,r){for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];r(o,t)}};R.FunctionExpression=R.ArrowFunctionExpression=R.FunctionDeclaration;R.SequenceExpression=function(e,t,r){for(var s=0,i=e.expressions;s<i.length;s+=1){var o=i[s];r(o,t,"Expression")}};R.TemplateLiteral=function(e,t,r){for(var s=0,i=e.quasis;s<i.length;s+=1){var o=i[s];r(o,t)}for(var c=0,u=e.expressions;c<u.length;c+=1){var f=u[c];r(f,t,"Expression")}};R.TemplateElement=cr;R.UnaryExpression=R.UpdateExpression=function(e,t,r){r(e.argument,t,"Expression")};R.BinaryExpression=R.LogicalExpression=function(e,t,r){r(e.left,t,"Expression"),r(e.right,t,"Expression")};R.AssignmentExpression=R.AssignmentPattern=function(e,t,r){r(e.left,t,"Pattern"),r(e.right,t,"Expression")};R.ConditionalExpression=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")};R.NewExpression=R.CallExpression=function(e,t,r){if(r(e.callee,t,"Expression"),e.arguments)for(var s=0,i=e.arguments;s<i.length;s+=1){var o=i[s];r(o,t,"Expression")}};R.MemberExpression=function(e,t,r){r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")};R.ExportNamedDeclaration=R.ExportDefaultDeclaration=function(e,t,r){if(e.declaration&&r(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression"),e.attributes)for(var s=0,i=e.attributes;s<i.length;s+=1){var o=i[s];r(o,t)}};R.ExportAllDeclaration=function(e,t,r){if(e.exported&&r(e.exported,t),r(e.source,t,"Expression"),e.attributes)for(var s=0,i=e.attributes;s<i.length;s+=1){var o=i[s];r(o,t)}};R.ImportAttribute=function(e,t,r){r(e.value,t,"Expression")};R.ImportDeclaration=function(e,t,r){for(var s=0,i=e.specifiers;s<i.length;s+=1){var o=i[s];r(o,t)}if(r(e.source,t,"Expression"),e.attributes)for(var c=0,u=e.attributes;c<u.length;c+=1){var f=u[c];r(f,t)}};R.ImportExpression=function(e,t,r){r(e.source,t,"Expression"),e.options&&r(e.options,t,"Expression")};R.ImportSpecifier=R.ImportDefaultSpecifier=R.ImportNamespaceSpecifier=R.Identifier=R.PrivateIdentifier=R.Literal=cr;R.TaggedTemplateExpression=function(e,t,r){r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")};R.ClassDeclaration=R.ClassExpression=function(e,t,r){return r(e,t,"Class")};R.Class=function(e,t,r){e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)};R.ClassBody=function(e,t,r){for(var s=0,i=e.body;s<i.length;s+=1){var o=i[s];r(o,t)}};R.MethodDefinition=R.PropertyDefinition=R.Property=function(e,t,r){e.computed&&r(e.key,t,"Expression"),e.value&&r(e.value,t,"Expression")};let Hr=0;const yc=new Set(["React","Fragment","window","document","navigator","location","history","localStorage","sessionStorage","console","fetch","URL","URLSearchParams","FormData","Headers","Request","Response","Blob","File","FileReader","FileList","AbortController","AbortSignal","Event","CustomEvent","EventTarget","MutationObserver","IntersectionObserver","ResizeObserver","requestAnimationFrame","cancelAnimationFrame","setTimeout","setInterval","clearTimeout","clearInterval","HTMLElement","SVGElement","Element","Node","NodeList","Math","Date","JSON","Array","Object","String","Number","Boolean","BigInt","Symbol","RegExp","Promise","Set","Map","WeakSet","WeakMap","Proxy","Reflect","Error","TypeError","ReferenceError","RangeError","SyntaxError","URIError","parseInt","parseFloat","isNaN","isFinite","NaN","Infinity","undefined","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","btoa","atob","structuredClone","queueMicrotask","Record","Partial","Required","Readonly","Pick","Omit","Exclude","Extract","require","module","exports","globalThis","self","_jsxDEV","_jsxs","_jsx","_Fragment","DataTable","MetricCard","StatusBadge","DetailCard","StepWizard"]);function Qd(e){const t=new Set(yc),r=/import\s*\{([^}]+)\}\s*from\s*['"][^'"]+['"]/g;let s;for(;s=r.exec(e);)for(const L of s[1].split(",")){const O=L.trim();if(!O)continue;const F=O.split(/\s+as\s+/);t.add(F[F.length-1].trim())}const i=/import\s+([A-Z]\w*)\s+from\s*['"][^'"]+['"]/g;for(;s=i.exec(e);)t.add(s[1]);const o=/import\s*\*\s*as\s+(\w+)\s+from\s*['"][^'"]+['"]/g;for(;s=o.exec(e);)t.add(s[1]);const c=/(?:const|let|var)\s+(\w+)/g;for(;s=c.exec(e);)t.add(s[1]);const u=/function\s+(\w+)/g;for(;s=u.exec(e);)t.add(s[1]);const f=/class\s+(\w+)/g;for(;s=f.exec(e);)t.add(s[1]);const h=/enum\s+(\w+)/g;for(;s=h.exec(e);)t.add(s[1]);const m=/(?:type|interface)\s+(\w+)/g;for(;s=m.exec(e);)t.add(s[1]);const x=/<([A-Z]\w*)/g,_=[],y=new Set;for(;s=x.exec(e);){const L=s[1];if(t.has(L)||y.has(L))continue;y.add(L);const F=e.substring(0,s.index).split(`
199
- `).length;_.push({name:L,line:F})}return _}function Jd(e,t){let r;try{r=kc(e,{ecmaVersion:"latest",sourceType:"module",locations:!0})}catch{return[]}const s=new Set(yc);Is(r,{ImportDeclaration(c){for(const u of c.specifiers)s.add(u.local.name)},VariableDeclarator(c){bt(c.id,s)},FunctionDeclaration(c){c.id&&s.add(c.id.name)},ClassDeclaration(c){c.id&&s.add(c.id.name)}}),Is(r,{FunctionDeclaration(c){Es(c.params,s)},FunctionExpression(c){Es(c.params,s)},ArrowFunctionExpression(c){Es(c.params,s)},CatchClause(c){c.param&&bt(c.param,s)},ForInStatement(c){if(c.left.type==="VariableDeclaration")for(const u of c.left.declarations)bt(u.id,s)},ForOfStatement(c){if(c.left.type==="VariableDeclaration")for(const u of c.left.declarations)bt(u.id,s)}});const i=[],o=new Set;return Is(r,{Identifier(c){const u=c.name;s.has(u)||o.has(u)}}),Kd(r,{Identifier(c,u,f){var y,L;const h=c.name;if(s.has(h)||o.has(h))return;const m=f[f.length-2];if(!m||m.type==="MemberExpression"&&m.property===c&&!m.computed||m.type==="Property"&&m.key===c&&!m.computed||m.type==="ImportSpecifier"||m.type==="ImportDefaultSpecifier"||m.type==="ImportNamespaceSpecifier"||m.type==="VariableDeclarator"&&m.id===c||m.type==="FunctionDeclaration"&&m.id===c||m.type==="ClassDeclaration"&&m.id===c||m.type==="LabeledStatement"&&m.label===c||(m.type==="BreakStatement"||m.type==="ContinueStatement")&&m.label===c||m.type==="MethodDefinition"&&m.key===c||m.type==="JSXAttribute"&&m.name===c||m.type==="JSXOpeningElement"&&m.name===c||m.type==="JSXClosingElement"&&m.name===c)return;o.add(h);const x=((L=(y=c.loc)==null?void 0:y.start)==null?void 0:L.line)??1,_=Math.min(x,t);i.push({name:h,line:_})}}),i}function bt(e,t){if(e)switch(e.type){case"Identifier":t.add(e.name);break;case"ObjectPattern":for(const r of e.properties)r.type==="RestElement"?bt(r.argument,t):bt(r.value,t);break;case"ArrayPattern":for(const r of e.elements)r&&bt(r,t);break;case"RestElement":bt(e.argument,t);break;case"AssignmentPattern":bt(e.left,t);break}}function Es(e,t){for(const r of e)bt(r,t)}function On(e,t){const r=e.split(`
200
- `),s=[];let i=null,o=null,c=0;if(t>0&&t<=r.length){const f=r[t-1].match(/^(\s*)/);c=f?f[1].length:0}for(let u=Math.min(t-1,r.length-1);u>=0;u--){const f=r[u];if(!i){const h=f.match(/^(\s*)(export\s+default\s+)?function\s+(\w+)/);h&&(i={name:h[3],line:u+1});const m=f.match(/^(\s*)(export\s+default\s+)?const\s+(\w+)\s*=\s*(\([^)]*\)|[^=])*=>/);m&&(i={name:m[3],line:u+1})}if(!o){const h=f.match(/activePage\s*===\s*['"](\w+)['"]/);h&&(o={page:h[1],line:u+1})}if(i&&o)break}return i&&s.push(`inside function ${i.name} (line ${i.line})`),o&&s.push(`inside activePage === '${o.page}' block (line ${o.line})`),s.length===0&&s.push(`at indent level ${c} spaces`),s.join(", ")}function Zd(e){const t=e.split(`
197
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};pe.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
198
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Nt(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"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(s,8);return i>255&&(s=s.slice(0,-1),i=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return Sr(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};pe.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};pe.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Ht(i,s))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var c=this.readCodePoint();(t?It:Ht)(c,s)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=Nt(c),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};pe.readWord=function(){var e=this.readWord1(),t=l.name;return this.keywords.test(e)&&(t=yi[e]),this.finishToken(t,e)};var Yd="8.16.0";Ve.acorn={Parser:Ve,version:Yd,defaultOptions:$s,Position:en,SourceLocation:Wn,getLineInfo:$o,Node:Kn,TokenType:de,tokTypes:l,keywordTypes:yi,TokContext:pt,tokContexts:Ee,isIdentifierChar:Ht,isIdentifierStart:It,Token:Ci,isNewLine:Sr,lineBreak:Je,lineBreakG:xd,nonASCIIwhitespace:Bo};function k1(e,t){return Ve.parse(e,t)}function Is(e,t,r,s,i){r||(r=R),function o(c,u,f){var p=f||c.type;b1(r,p,c,u,o),t[p]&&t[p](c,u)}(e,s,i)}function Kd(e,t,r,s,i){var o=[];r||(r=R),function c(u,f,p){var m=p||u.type,x=u!==o[o.length-1];x&&o.push(u),b1(r,m,u,f,c),t[m]&&t[m](u,f||o,o),x&&o.pop()}(e,s,i)}function Ei(e,t,r){r(e,t)}function cr(e,t,r){}function b1(e,t,r,s,i){if(e[t]==null)throw new Error("No walker function defined for node type "+t);e[t](r,s,i)}var R={};R.Program=R.BlockStatement=R.StaticBlock=function(e,t,r){for(var s=0,i=e.body;s<i.length;s+=1){var o=i[s];r(o,t,"Statement")}};R.Statement=Ei;R.EmptyStatement=cr;R.ExpressionStatement=R.ParenthesizedExpression=R.ChainExpression=function(e,t,r){return r(e.expression,t,"Expression")};R.IfStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")};R.LabeledStatement=function(e,t,r){return r(e.body,t,"Statement")};R.BreakStatement=R.ContinueStatement=cr;R.WithStatement=function(e,t,r){r(e.object,t,"Expression"),r(e.body,t,"Statement")};R.SwitchStatement=function(e,t,r){r(e.discriminant,t,"Expression");for(var s=0,i=e.cases;s<i.length;s+=1){var o=i[s];r(o,t)}};R.SwitchCase=function(e,t,r){e.test&&r(e.test,t,"Expression");for(var s=0,i=e.consequent;s<i.length;s+=1){var o=i[s];r(o,t,"Statement")}};R.ReturnStatement=R.YieldExpression=R.AwaitExpression=function(e,t,r){e.argument&&r(e.argument,t,"Expression")};R.ThrowStatement=R.SpreadElement=function(e,t,r){return r(e.argument,t,"Expression")};R.TryStatement=function(e,t,r){r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")};R.CatchClause=function(e,t,r){e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")};R.WhileStatement=R.DoWhileStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.body,t,"Statement")};R.ForStatement=function(e,t,r){e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")};R.ForInStatement=R.ForOfStatement=function(e,t,r){r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")};R.ForInit=function(e,t,r){e.type==="VariableDeclaration"?r(e,t):r(e,t,"Expression")};R.DebuggerStatement=cr;R.FunctionDeclaration=function(e,t,r){return r(e,t,"Function")};R.VariableDeclaration=function(e,t,r){for(var s=0,i=e.declarations;s<i.length;s+=1){var o=i[s];r(o,t)}};R.VariableDeclarator=function(e,t,r){r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")};R.Function=function(e,t,r){e.id&&r(e.id,t,"Pattern");for(var s=0,i=e.params;s<i.length;s+=1){var o=i[s];r(o,t,"Pattern")}r(e.body,t,e.expression?"Expression":"Statement")};R.Pattern=function(e,t,r){e.type==="Identifier"?r(e,t,"VariablePattern"):e.type==="MemberExpression"?r(e,t,"MemberPattern"):r(e,t)};R.VariablePattern=cr;R.MemberPattern=Ei;R.RestElement=function(e,t,r){return r(e.argument,t,"Pattern")};R.ArrayPattern=function(e,t,r){for(var s=0,i=e.elements;s<i.length;s+=1){var o=i[s];o&&r(o,t,"Pattern")}};R.ObjectPattern=function(e,t,r){for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];o.type==="Property"?(o.computed&&r(o.key,t,"Expression"),r(o.value,t,"Pattern")):o.type==="RestElement"&&r(o.argument,t,"Pattern")}};R.Expression=Ei;R.ThisExpression=R.Super=R.MetaProperty=cr;R.ArrayExpression=function(e,t,r){for(var s=0,i=e.elements;s<i.length;s+=1){var o=i[s];o&&r(o,t,"Expression")}};R.ObjectExpression=function(e,t,r){for(var s=0,i=e.properties;s<i.length;s+=1){var o=i[s];r(o,t)}};R.FunctionExpression=R.ArrowFunctionExpression=R.FunctionDeclaration;R.SequenceExpression=function(e,t,r){for(var s=0,i=e.expressions;s<i.length;s+=1){var o=i[s];r(o,t,"Expression")}};R.TemplateLiteral=function(e,t,r){for(var s=0,i=e.quasis;s<i.length;s+=1){var o=i[s];r(o,t)}for(var c=0,u=e.expressions;c<u.length;c+=1){var f=u[c];r(f,t,"Expression")}};R.TemplateElement=cr;R.UnaryExpression=R.UpdateExpression=function(e,t,r){r(e.argument,t,"Expression")};R.BinaryExpression=R.LogicalExpression=function(e,t,r){r(e.left,t,"Expression"),r(e.right,t,"Expression")};R.AssignmentExpression=R.AssignmentPattern=function(e,t,r){r(e.left,t,"Pattern"),r(e.right,t,"Expression")};R.ConditionalExpression=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")};R.NewExpression=R.CallExpression=function(e,t,r){if(r(e.callee,t,"Expression"),e.arguments)for(var s=0,i=e.arguments;s<i.length;s+=1){var o=i[s];r(o,t,"Expression")}};R.MemberExpression=function(e,t,r){r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")};R.ExportNamedDeclaration=R.ExportDefaultDeclaration=function(e,t,r){if(e.declaration&&r(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression"),e.attributes)for(var s=0,i=e.attributes;s<i.length;s+=1){var o=i[s];r(o,t)}};R.ExportAllDeclaration=function(e,t,r){if(e.exported&&r(e.exported,t),r(e.source,t,"Expression"),e.attributes)for(var s=0,i=e.attributes;s<i.length;s+=1){var o=i[s];r(o,t)}};R.ImportAttribute=function(e,t,r){r(e.value,t,"Expression")};R.ImportDeclaration=function(e,t,r){for(var s=0,i=e.specifiers;s<i.length;s+=1){var o=i[s];r(o,t)}if(r(e.source,t,"Expression"),e.attributes)for(var c=0,u=e.attributes;c<u.length;c+=1){var f=u[c];r(f,t)}};R.ImportExpression=function(e,t,r){r(e.source,t,"Expression"),e.options&&r(e.options,t,"Expression")};R.ImportSpecifier=R.ImportDefaultSpecifier=R.ImportNamespaceSpecifier=R.Identifier=R.PrivateIdentifier=R.Literal=cr;R.TaggedTemplateExpression=function(e,t,r){r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")};R.ClassDeclaration=R.ClassExpression=function(e,t,r){return r(e,t,"Class")};R.Class=function(e,t,r){e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)};R.ClassBody=function(e,t,r){for(var s=0,i=e.body;s<i.length;s+=1){var o=i[s];r(o,t)}};R.MethodDefinition=R.PropertyDefinition=R.Property=function(e,t,r){e.computed&&r(e.key,t,"Expression"),e.value&&r(e.value,t,"Expression")};let Hr=0;const y1=new Set(["React","Fragment","window","document","navigator","location","history","localStorage","sessionStorage","console","fetch","URL","URLSearchParams","FormData","Headers","Request","Response","Blob","File","FileReader","FileList","AbortController","AbortSignal","Event","CustomEvent","EventTarget","MutationObserver","IntersectionObserver","ResizeObserver","requestAnimationFrame","cancelAnimationFrame","setTimeout","setInterval","clearTimeout","clearInterval","HTMLElement","SVGElement","Element","Node","NodeList","Math","Date","JSON","Array","Object","String","Number","Boolean","BigInt","Symbol","RegExp","Promise","Set","Map","WeakSet","WeakMap","Proxy","Reflect","Error","TypeError","ReferenceError","RangeError","SyntaxError","URIError","parseInt","parseFloat","isNaN","isFinite","NaN","Infinity","undefined","encodeURIComponent","decodeURIComponent","encodeURI","decodeURI","btoa","atob","structuredClone","queueMicrotask","Record","Partial","Required","Readonly","Pick","Omit","Exclude","Extract","require","module","exports","globalThis","self","_jsxDEV","_jsxs","_jsx","_Fragment","DataTable","MetricCard","StatusBadge","DetailCard","StepWizard"]);function Qd(e){const t=new Set(y1),r=/import\s*\{([^}]+)\}\s*from\s*['"][^'"]+['"]/g;let s;for(;s=r.exec(e);)for(const L of s[1].split(",")){const O=L.trim();if(!O)continue;const F=O.split(/\s+as\s+/);t.add(F[F.length-1].trim())}const i=/import\s+([A-Z]\w*)\s+from\s*['"][^'"]+['"]/g;for(;s=i.exec(e);)t.add(s[1]);const o=/import\s*\*\s*as\s+(\w+)\s+from\s*['"][^'"]+['"]/g;for(;s=o.exec(e);)t.add(s[1]);const c=/(?:const|let|var)\s+(\w+)/g;for(;s=c.exec(e);)t.add(s[1]);const u=/function\s+(\w+)/g;for(;s=u.exec(e);)t.add(s[1]);const f=/class\s+(\w+)/g;for(;s=f.exec(e);)t.add(s[1]);const p=/enum\s+(\w+)/g;for(;s=p.exec(e);)t.add(s[1]);const m=/(?:type|interface)\s+(\w+)/g;for(;s=m.exec(e);)t.add(s[1]);const x=/<([A-Z]\w*)/g,_=[],y=new Set;for(;s=x.exec(e);){const L=s[1];if(t.has(L)||y.has(L))continue;y.add(L);const F=e.substring(0,s.index).split(`
199
+ `).length;_.push({name:L,line:F})}return _}function Jd(e,t){let r;try{r=k1(e,{ecmaVersion:"latest",sourceType:"module",locations:!0})}catch{return[]}const s=new Set(y1);Is(r,{ImportDeclaration(c){for(const u of c.specifiers)s.add(u.local.name)},VariableDeclarator(c){bt(c.id,s)},FunctionDeclaration(c){c.id&&s.add(c.id.name)},ClassDeclaration(c){c.id&&s.add(c.id.name)}}),Is(r,{FunctionDeclaration(c){Cs(c.params,s)},FunctionExpression(c){Cs(c.params,s)},ArrowFunctionExpression(c){Cs(c.params,s)},CatchClause(c){c.param&&bt(c.param,s)},ForInStatement(c){if(c.left.type==="VariableDeclaration")for(const u of c.left.declarations)bt(u.id,s)},ForOfStatement(c){if(c.left.type==="VariableDeclaration")for(const u of c.left.declarations)bt(u.id,s)}});const i=[],o=new Set;return Is(r,{Identifier(c){const u=c.name;s.has(u)||o.has(u)}}),Kd(r,{Identifier(c,u,f){var y,L;const p=c.name;if(s.has(p)||o.has(p))return;const m=f[f.length-2];if(!m||m.type==="MemberExpression"&&m.property===c&&!m.computed||m.type==="Property"&&m.key===c&&!m.computed||m.type==="ImportSpecifier"||m.type==="ImportDefaultSpecifier"||m.type==="ImportNamespaceSpecifier"||m.type==="VariableDeclarator"&&m.id===c||m.type==="FunctionDeclaration"&&m.id===c||m.type==="ClassDeclaration"&&m.id===c||m.type==="LabeledStatement"&&m.label===c||(m.type==="BreakStatement"||m.type==="ContinueStatement")&&m.label===c||m.type==="MethodDefinition"&&m.key===c||m.type==="JSXAttribute"&&m.name===c||m.type==="JSXOpeningElement"&&m.name===c||m.type==="JSXClosingElement"&&m.name===c)return;o.add(p);const x=((L=(y=c.loc)==null?void 0:y.start)==null?void 0:L.line)??1,_=Math.min(x,t);i.push({name:p,line:_})}}),i}function bt(e,t){if(e)switch(e.type){case"Identifier":t.add(e.name);break;case"ObjectPattern":for(const r of e.properties)r.type==="RestElement"?bt(r.argument,t):bt(r.value,t);break;case"ArrayPattern":for(const r of e.elements)r&&bt(r,t);break;case"RestElement":bt(e.argument,t);break;case"AssignmentPattern":bt(e.left,t);break}}function Cs(e,t){for(const r of e)bt(r,t)}function On(e,t){const r=e.split(`
200
+ `),s=[];let i=null,o=null,c=0;if(t>0&&t<=r.length){const f=r[t-1].match(/^(\s*)/);c=f?f[1].length:0}for(let u=Math.min(t-1,r.length-1);u>=0;u--){const f=r[u];if(!i){const p=f.match(/^(\s*)(export\s+default\s+)?function\s+(\w+)/);p&&(i={name:p[3],line:u+1});const m=f.match(/^(\s*)(export\s+default\s+)?const\s+(\w+)\s*=\s*(\([^)]*\)|[^=])*=>/);m&&(i={name:m[3],line:u+1})}if(!o){const p=f.match(/activePage\s*===\s*['"](\w+)['"]/);p&&(o={page:p[1],line:u+1})}if(i&&o)break}return i&&s.push(`inside function ${i.name} (line ${i.line})`),o&&s.push(`inside activePage === '${o.page}' block (line ${o.line})`),s.length===0&&s.push(`at indent level ${c} spaces`),s.join(", ")}function Zd(e){const t=e.split(`
201
201
  `),r=[],s=/\{?\/\*\s*@section:\s*(.+?)\s*\*\/\}?/;for(let i=0;i<t.length;i++){const o=t[i].match(s);o&&r.push({name:o[1].trim(),startLine:i+1,endLine:t.length})}for(let i=0;i<r.length;i++)if(i+1<r.length)r[i].endLine=r[i+1].startLine-1;else{let o=t.length;for(let c=r[i].startLine;c<t.length;c++)if(t[c].includes("</main>")||t[c].match(/^\s*<\/div>\s*$/)){o=c;break}r[i].endLine=o}return r}function Mn(e,t){const r=e.split(`
202
202
  `),s=Math.max(0,t-6),i=Math.min(r.length,t+5);return r.slice(s,i).map((o,c)=>{const u=s+c+1;return`${u===t?">>>":" "} ${u}: ${o}`}).join(`
203
- `)}function Jn(e,t={}){var m;const{filename:r="App.tsx",isTypeScript:s,isJSX:i}=t,o=((m=r.split(".").pop())==null?void 0:m.toLowerCase())??"",c=[];(s??(o==="tsx"||o==="ts"))&&c.push("typescript"),(i??(o==="tsx"||o==="jsx"))&&c.push("jsx");const u=[],f=Zd(e);let h="";try{h=ud(e,{transforms:c,jsxRuntime:"automatic",production:!1,filePath:r}).code}catch(x){const _=tm(x,e);return u.push(_),{code:"",error:_,errors:u,sections:f}}try{kc(h,{ecmaVersion:"latest",sourceType:"module"})}catch(x){const _=(x.message||"").toLowerCase();if(_.includes("export")||_.includes("import")){const y=em(x,e);u.push(y)}}if((o==="tsx"||o==="jsx")&&!/export\s+default\s/.test(e)&&!/module\.exports/.test(e)&&u.push({id:`struct-${++Hr}`,category:"transpilation",severity:"error",message:'Missing "export default" — component will not render in preview',timestamp:new Date().toISOString()}),o==="tsx"||o==="jsx"){const x=Qd(e);for(const{name:_,line:y}of x)u.push({id:`scope-${++Hr}`,category:"runtime",severity:"error",message:`"${_}" is used in JSX but not imported or declared — will cause ReferenceError at runtime`,line:y,sourceContext:Mn(e,y),location:On(e,y),timestamp:new Date().toISOString()})}if(o==="tsx"||o==="jsx"||o==="ts"||o==="js"){const x=e.split(`
204
- `).length,_=Jd(h,x);for(const{name:y,line:L}of _)u.some(O=>O.message.includes(`"${y}"`))||u.push({id:`scope-${++Hr}`,category:"runtime",severity:"error",message:`"${y}" is not defined — will cause ReferenceError at runtime. Check spelling or add import/declaration.`,line:L,sourceContext:Mn(e,L),location:On(e,L),timestamp:new Date().toISOString()})}return{code:h,error:u.length>0?u[0]:null,errors:u,sections:f}}function em(e,t,r){const s=e.message||"Module validation failed";let i,o;e.loc&&(i=e.loc.line,o=e.loc.column+1);const c=i?Mn(t,i):void 0,u=i?On(t,i):void 0,f=s.replace(/\s*\(\d+:\d+\)\s*$/,"");return{id:`module-${++Hr}`,category:"transpilation",severity:"error",message:f,line:i,column:o,sourceContext:c,location:u,timestamp:new Date().toISOString()}}function tm(e,t){var h,m;const r=e.message||"Transpilation failed";let s,i;const o=r.match(/\((\d+):(\d+)\)/);if(o&&(s=parseInt(o[1],10),i=parseInt(o[2],10)),!s&&typeof e.pos=="number"){const x=t.substring(0,e.pos).split(`
205
- `);s=x.length,i=(((h=x[x.length-1])==null?void 0:h.length)??0)+1}const c=s?Mn(t,s):void 0,u=s?On(t,s):void 0;let f="";if(s&&(r.includes("Unexpected token")||r.includes("Unterminated"))){const x=t.split(`
203
+ `)}function Jn(e,t={}){var m;const{filename:r="App.tsx",isTypeScript:s,isJSX:i}=t,o=((m=r.split(".").pop())==null?void 0:m.toLowerCase())??"",c=[];(s??(o==="tsx"||o==="ts"))&&c.push("typescript"),(i??(o==="tsx"||o==="jsx"))&&c.push("jsx");const u=[],f=Zd(e);let p="";try{p=ud(e,{transforms:c,jsxRuntime:"automatic",production:!1,filePath:r}).code}catch(x){const _=tm(x,e);return u.push(_),{code:"",error:_,errors:u,sections:f}}try{k1(p,{ecmaVersion:"latest",sourceType:"module"})}catch(x){const _=(x.message||"").toLowerCase();if(_.includes("export")||_.includes("import")){const y=em(x,e);u.push(y)}}if((o==="tsx"||o==="jsx")&&!/export\s+default\s/.test(e)&&!/module\.exports/.test(e)&&u.push({id:`struct-${++Hr}`,category:"transpilation",severity:"error",message:'Missing "export default" — component will not render in preview',timestamp:new Date().toISOString()}),o==="tsx"||o==="jsx"){const x=Qd(e);for(const{name:_,line:y}of x)u.push({id:`scope-${++Hr}`,category:"runtime",severity:"error",message:`"${_}" is used in JSX but not imported or declared — will cause ReferenceError at runtime`,line:y,sourceContext:Mn(e,y),location:On(e,y),timestamp:new Date().toISOString()})}if(o==="tsx"||o==="jsx"||o==="ts"||o==="js"){const x=e.split(`
204
+ `).length,_=Jd(p,x);for(const{name:y,line:L}of _)u.some(O=>O.message.includes(`"${y}"`))||u.push({id:`scope-${++Hr}`,category:"runtime",severity:"error",message:`"${y}" is not defined — will cause ReferenceError at runtime. Check spelling or add import/declaration.`,line:L,sourceContext:Mn(e,L),location:On(e,L),timestamp:new Date().toISOString()})}return{code:p,error:u.length>0?u[0]:null,errors:u,sections:f}}function em(e,t,r){const s=e.message||"Module validation failed";let i,o;e.loc&&(i=e.loc.line,o=e.loc.column+1);const c=i?Mn(t,i):void 0,u=i?On(t,i):void 0,f=s.replace(/\s*\(\d+:\d+\)\s*$/,"");return{id:`module-${++Hr}`,category:"transpilation",severity:"error",message:f,line:i,column:o,sourceContext:c,location:u,timestamp:new Date().toISOString()}}function tm(e,t){var p,m;const r=e.message||"Transpilation failed";let s,i;const o=r.match(/\((\d+):(\d+)\)/);if(o&&(s=parseInt(o[1],10),i=parseInt(o[2],10)),!s&&typeof e.pos=="number"){const x=t.substring(0,e.pos).split(`
205
+ `);s=x.length,i=(((p=x[x.length-1])==null?void 0:p.length)??0)+1}const c=s?Mn(t,s):void 0,u=s?On(t,s):void 0;let f="";if(s&&(r.includes("Unexpected token")||r.includes("Unterminated"))){const x=t.split(`
206
206
  `).length,_=rm(t),y=((m=t.split(`
207
- `).reverse().find(F=>F.trim()))==null?void 0:m.trim())??"",L=/^[}\])\s;]*$/.test(y)||y.endsWith("};");if(x>20&&_>=2&&!L)f=` — FILE APPEARS TRUNCATED (${_} unclosed brackets/tags at end of file). The code was cut off mid-generation. Do NOT try to fix syntax — instead, use content_tool edit to add the missing closing code from where it was cut off.`;else{const F=nm(t);if(F){const K=F.char==="{"?"brace":F.char==="("?"parenthesis":"bracket";f=` — likely caused by unclosed '${F.char}' (${K}) on line ${F.line}. Read lines ${Math.max(1,F.line-2)}–${F.line+10} to find where the closing '${F.char==="{"?"}":F.char==="("?")":"]"}' is missing, then add it with content_tool edit.`}}}return{id:`transpile-${++Hr}`,category:"transpilation",severity:"error",message:sm(r)+f,line:s,column:i,sourceContext:c,location:u,timestamp:new Date().toISOString()}}function rm(e){const t={"(":")","[":"]","{":"}"},r=new Set([")","]","}"]),s=[];let i=!1,o="",c=!1,u=!1,f=!1;for(let h=0;h<e.length;h++){const m=e[h],x=e[h+1];if(m===`
208
- `){u=!1;continue}if(!u){if(f){m==="*"&&x==="/"&&(f=!1,h++);continue}if(i){if(m==="\\"){h++;continue}m===o&&(i=!1);continue}if(c){if(m==="\\"){h++;continue}m==="`"&&(c=!1);continue}if(m==="/"&&x==="/"){u=!0,h++;continue}if(m==="/"&&x==="*"){f=!0,h++;continue}if(m==="'"||m==='"'){i=!0,o=m;continue}if(m==="`"){c=!0;continue}t[m]?s.push(m):r.has(m)&&s.length>0&&s.pop()}}return s.length}function nm(e,t){const r={"(":")","[":"]","{":"}"},s={")":"(","]":"[","}":"{"},i=[];let o=!1,c="",u=!1,f=!1,h=!1,m=1,x=null;for(let _=0;_<e.length;_++){const y=e[_],L=e[_+1];if(y===`
209
- `){m++,f=!1;continue}if(!f){if(h){y==="*"&&L==="/"&&(h=!1,_++);continue}if(o){if(y==="\\"){_++;continue}y===c&&(o=!1);continue}if(u){if(y==="\\"){_++;continue}y==="`"&&(u=!1);continue}if(y==="/"&&L==="/"){f=!0,_++;continue}if(y==="/"&&L==="*"){h=!0,_++;continue}if(y==="'"||y==='"'){o=!0,c=y;continue}if(y==="`"){u=!0;continue}r[y]?i.push({char:y,line:m}):s[y]&&(i.length>0&&i[i.length-1].char===s[y]?i.pop():x||(x=i.length>0?i[i.length-1]:{char:y,line:m}))}}return x||(i.length>0?i[0]:null)}function sm(e){return e.replace(/^\/[^:]+:\s*/,"").replace(/^Error:\s*/,"")}function im(e){const t={};for(const[r,s]of Object.entries(e))t[r]=Jn(s,{filename:r});return t}const am="https://esm.sh";function Ti(e={}){var f,h;const t=e.cdnBase||am,r="18.2.0",s="?external=react,react-dom",i={react:`${t}/react@${r}`,"react/":`${t}/react@${r}/`,"react-dom":`${t}/react-dom@${r}`,"react-dom/":`${t}/react-dom@${r}/`,"react/jsx-runtime":`${t}/react@${r}/jsx-runtime`,"react/jsx-dev-runtime":`${t}/react@${r}/jsx-dev-runtime`,"class-variance-authority":`${t}/class-variance-authority@0.7.1`,clsx:`${t}/clsx@2.1.1`,"tailwind-merge":`${t}/tailwind-merge@2.6.0`,"lucide-react":`${t}/lucide-react@0.468.0${s}`,"react-icons/":`${t}/react-icons@5.4.0/`,"date-fns":`${t}/date-fns@4.1.0`,"date-fns/":`${t}/date-fns@4.1.0/`,"chart.js":`${t}/chart.js@4.4.8/auto`,"chart.js/auto":`${t}/chart.js@4.4.8/auto`,"chart.js/":`${t}/chart.js@4.4.8/`,"react-chartjs-2":`${t}/react-chartjs-2@5.3.0${s}`,recharts:`${t}/recharts@2.15.0${s}`,"recharts/":`${t}/recharts@2.15.0&external=react,react-dom/`,"framer-motion":`${t}/framer-motion@11.18.0${s}`,"framer-motion/":`${t}/framer-motion@11.18.0&external=react,react-dom/`,"react-hook-form":`${t}/react-hook-form@7.54.2${s}`,zod:`${t}/zod@3.24.1`,"@hookform/resolvers":`${t}/@hookform/resolvers@3.9.1${s}`,"@hookform/resolvers/":`${t}/@hookform/resolvers@3.9.1&external=react,react-dom/`,"@tanstack/react-table":`${t}/@tanstack/react-table@8.21.2${s}`,zustand:`${t}/zustand@5.0.3${s}`,"zustand/":`${t}/zustand@5.0.3&external=react,react-dom/`,"react-router-dom":`${t}/react-router-dom@6.28.2${s}`,"react-router-dom/":`${t}/react-router-dom@6.28.2&external=react,react-dom/`,sonner:`${t}/sonner@1.7.3${s}`,cmdk:`${t}/cmdk@1.0.4${s}`,"@dnd-kit/core":`${t}/@dnd-kit/core@6.3.1${s}`,"@dnd-kit/sortable":`${t}/@dnd-kit/sortable@10.0.0${s}`,"@dnd-kit/utilities":`${t}/@dnd-kit/utilities@3.2.2`,axios:`${t}/axios@1.7.9`,"axios/":`${t}/axios@1.7.9/`,"lodash-es":`${t}/lodash-es@4.17.21`,"lodash-es/":`${t}/lodash-es@4.17.21/`,nanoid:`${t}/nanoid@5.0.9`,uuid:`${t}/uuid@11.0.5`,"react-markdown":`${t}/react-markdown@9.0.3${s}`,"remark-gfm":`${t}/remark-gfm@4.0.0`,"react-syntax-highlighter":`${t}/react-syntax-highlighter@15.6.1${s}`,"react-syntax-highlighter/":`${t}/react-syntax-highlighter@15.6.1&external=react,react-dom/`,"react-leaflet":`${t}/react-leaflet@4.2.1${s}`,"react-leaflet/":`${t}/react-leaflet@4.2.1&external=react,react-dom/`,leaflet:`${t}/leaflet@1.9.4`,"leaflet/":`${t}/leaflet@1.9.4/`,"react-player":`${t}/react-player@2.16.0${s}`,"react-player/":`${t}/react-player@2.16.0&external=react,react-dom/`,"usehooks-ts":`${t}/usehooks-ts@3.1.0${s}`,"react-colorful":`${t}/react-colorful@5.6.1${s}`,"@radix-ui/react-slot":`${t}/@radix-ui/react-slot@1.1.1${s}`,"@radix-ui/react-accordion":`${t}/@radix-ui/react-accordion@1.2.2${s}`,"@radix-ui/react-alert-dialog":`${t}/@radix-ui/react-alert-dialog@1.1.4${s}`,"@radix-ui/react-aspect-ratio":`${t}/@radix-ui/react-aspect-ratio@1.1.1${s}`,"@radix-ui/react-avatar":`${t}/@radix-ui/react-avatar@1.1.2${s}`,"@radix-ui/react-checkbox":`${t}/@radix-ui/react-checkbox@1.1.3${s}`,"@radix-ui/react-collapsible":`${t}/@radix-ui/react-collapsible@1.1.2${s}`,"@radix-ui/react-context-menu":`${t}/@radix-ui/react-context-menu@2.2.4${s}`,"@radix-ui/react-dialog":`${t}/@radix-ui/react-dialog@1.1.4${s}`,"@radix-ui/react-dropdown-menu":`${t}/@radix-ui/react-dropdown-menu@2.1.4${s}`,"@radix-ui/react-hover-card":`${t}/@radix-ui/react-hover-card@1.1.4${s}`,"@radix-ui/react-label":`${t}/@radix-ui/react-label@2.1.1${s}`,"@radix-ui/react-menubar":`${t}/@radix-ui/react-menubar@1.1.4${s}`,"@radix-ui/react-navigation-menu":`${t}/@radix-ui/react-navigation-menu@1.2.3${s}`,"@radix-ui/react-popover":`${t}/@radix-ui/react-popover@1.1.4${s}`,"@radix-ui/react-progress":`${t}/@radix-ui/react-progress@1.1.1${s}`,"@radix-ui/react-radio-group":`${t}/@radix-ui/react-radio-group@1.2.2${s}`,"@radix-ui/react-scroll-area":`${t}/@radix-ui/react-scroll-area@1.2.2${s}`,"@radix-ui/react-select":`${t}/@radix-ui/react-select@2.1.4${s}`,"@radix-ui/react-separator":`${t}/@radix-ui/react-separator@1.1.1${s}`,"@radix-ui/react-slider":`${t}/@radix-ui/react-slider@1.2.2${s}`,"@radix-ui/react-switch":`${t}/@radix-ui/react-switch@1.1.2${s}`,"@radix-ui/react-tabs":`${t}/@radix-ui/react-tabs@1.1.2${s}`,"@radix-ui/react-toast":`${t}/@radix-ui/react-toast@1.2.4${s}`,"@radix-ui/react-toggle":`${t}/@radix-ui/react-toggle@1.1.1${s}`,"@radix-ui/react-toggle-group":`${t}/@radix-ui/react-toggle-group@1.1.1${s}`,"@radix-ui/react-tooltip":`${t}/@radix-ui/react-tooltip@1.1.6${s}`,"@radix-ui/react-portal":`${t}/@radix-ui/react-portal@1.1.3${s}`,"@radix-ui/react-visually-hidden":`${t}/@radix-ui/react-visually-hidden@1.1.1${s}`,"@radix-ui/react-collection":`${t}/@radix-ui/react-collection@1.1.1${s}`,"@radix-ui/react-context":`${t}/@radix-ui/react-context@1.1.1${s}`,"embla-carousel-react":`${t}/embla-carousel-react@8.5.1${s}`,"embla-carousel-autoplay":`${t}/embla-carousel-autoplay@8.5.1`,vaul:`${t}/vaul@1.1.2${s}`,"resize-observer-polyfill":`${t}/resize-observer-polyfill@1.5.1`,"react-resizable-panels":`${t}/react-resizable-panels@2.1.7${s}`,"react-day-picker":`${t}/react-day-picker@9.4.4${s}`,"input-otp":`${t}/input-otp@1.4.1${s}`,"react-dropzone":`${t}/react-dropzone@14.3.5${s}`,"qrcode.react":`${t}/qrcode.react@4.2.0${s}`},o=["esm.sh","cdn.jsdelivr.net","unpkg.com","cdn.skypack.dev","cdnjs.cloudflare.com"];if(e.dependencies)for(const[m,x]of Object.entries(e.dependencies))if(x.startsWith("http")){try{const _=new URL(x);if(!o.some(y=>_.hostname===y||_.hostname.endsWith("."+y))){console.warn(`[codeviz] Blocked untrusted CDN URL for "${m}": ${x}`);continue}}catch{console.warn(`[codeviz] Invalid URL for "${m}": ${x}`);continue}i[m]=x}else i[m]=`${t}/${m}@${x}${s}`;const c={...i,...((f=e.overrides)==null?void 0:f.imports)||{}},u={react:`${t}/react@${r}`,"react/":`${t}/react@${r}/`,"react-dom":`${t}/react-dom@${r}`,"react-dom/":`${t}/react-dom@${r}/`,"react/jsx-runtime":`${t}/react@${r}/jsx-runtime`,"react/jsx-dev-runtime":`${t}/react@${r}/jsx-dev-runtime`};return{imports:c,scopes:{[`${t}/`]:u,...((h=e.overrides)==null?void 0:h.scopes)||{}}}}function Ai(e){return`<script type="importmap">${JSON.stringify(e,null,2)}<\/script>`}function vc(){return`Available packages (just import, no install needed):
207
+ `).reverse().find(F=>F.trim()))==null?void 0:m.trim())??"",L=/^[}\])\s;]*$/.test(y)||y.endsWith("};");if(x>20&&_>=2&&!L)f=` — FILE APPEARS TRUNCATED (${_} unclosed brackets/tags at end of file). The code was cut off mid-generation. Do NOT try to fix syntax — instead, use content_tool edit to add the missing closing code from where it was cut off.`;else{const F=nm(t);if(F){const K=F.char==="{"?"brace":F.char==="("?"parenthesis":"bracket";f=` — likely caused by unclosed '${F.char}' (${K}) on line ${F.line}. Read lines ${Math.max(1,F.line-2)}–${F.line+10} to find where the closing '${F.char==="{"?"}":F.char==="("?")":"]"}' is missing, then add it with content_tool edit.`}}}return{id:`transpile-${++Hr}`,category:"transpilation",severity:"error",message:sm(r)+f,line:s,column:i,sourceContext:c,location:u,timestamp:new Date().toISOString()}}function rm(e){const t={"(":")","[":"]","{":"}"},r=new Set([")","]","}"]),s=[];let i=!1,o="",c=!1,u=!1,f=!1;for(let p=0;p<e.length;p++){const m=e[p],x=e[p+1];if(m===`
208
+ `){u=!1;continue}if(!u){if(f){m==="*"&&x==="/"&&(f=!1,p++);continue}if(i){if(m==="\\"){p++;continue}m===o&&(i=!1);continue}if(c){if(m==="\\"){p++;continue}m==="`"&&(c=!1);continue}if(m==="/"&&x==="/"){u=!0,p++;continue}if(m==="/"&&x==="*"){f=!0,p++;continue}if(m==="'"||m==='"'){i=!0,o=m;continue}if(m==="`"){c=!0;continue}t[m]?s.push(m):r.has(m)&&s.length>0&&s.pop()}}return s.length}function nm(e,t){const r={"(":")","[":"]","{":"}"},s={")":"(","]":"[","}":"{"},i=[];let o=!1,c="",u=!1,f=!1,p=!1,m=1,x=null;for(let _=0;_<e.length;_++){const y=e[_],L=e[_+1];if(y===`
209
+ `){m++,f=!1;continue}if(!f){if(p){y==="*"&&L==="/"&&(p=!1,_++);continue}if(o){if(y==="\\"){_++;continue}y===c&&(o=!1);continue}if(u){if(y==="\\"){_++;continue}y==="`"&&(u=!1);continue}if(y==="/"&&L==="/"){f=!0,_++;continue}if(y==="/"&&L==="*"){p=!0,_++;continue}if(y==="'"||y==='"'){o=!0,c=y;continue}if(y==="`"){u=!0;continue}r[y]?i.push({char:y,line:m}):s[y]&&(i.length>0&&i[i.length-1].char===s[y]?i.pop():x||(x=i.length>0?i[i.length-1]:{char:y,line:m}))}}return x||(i.length>0?i[0]:null)}function sm(e){return e.replace(/^\/[^:]+:\s*/,"").replace(/^Error:\s*/,"")}function im(e){const t={};for(const[r,s]of Object.entries(e))t[r]=Jn(s,{filename:r});return t}const am="https://esm.sh";function Ti(e={}){var f,p;const t=e.cdnBase||am,r="18.2.0",s="?external=react,react-dom",i={react:`${t}/react@${r}`,"react/":`${t}/react@${r}/`,"react-dom":`${t}/react-dom@${r}`,"react-dom/":`${t}/react-dom@${r}/`,"react/jsx-runtime":`${t}/react@${r}/jsx-runtime`,"react/jsx-dev-runtime":`${t}/react@${r}/jsx-dev-runtime`,"class-variance-authority":`${t}/class-variance-authority@0.7.1`,clsx:`${t}/clsx@2.1.1`,"tailwind-merge":`${t}/tailwind-merge@2.6.0`,"lucide-react":`${t}/lucide-react@0.468.0${s}`,"react-icons/":`${t}/react-icons@5.4.0/`,"date-fns":`${t}/date-fns@4.1.0`,"date-fns/":`${t}/date-fns@4.1.0/`,"chart.js":`${t}/chart.js@4.4.8/auto`,"chart.js/auto":`${t}/chart.js@4.4.8/auto`,"chart.js/":`${t}/chart.js@4.4.8/`,"react-chartjs-2":`${t}/react-chartjs-2@5.3.0${s}`,recharts:`${t}/recharts@2.15.0${s}`,"recharts/":`${t}/recharts@2.15.0&external=react,react-dom/`,"framer-motion":`${t}/framer-motion@11.18.0${s}`,"framer-motion/":`${t}/framer-motion@11.18.0&external=react,react-dom/`,"react-hook-form":`${t}/react-hook-form@7.54.2${s}`,zod:`${t}/zod@3.24.1`,"@hookform/resolvers":`${t}/@hookform/resolvers@3.9.1${s}`,"@hookform/resolvers/":`${t}/@hookform/resolvers@3.9.1&external=react,react-dom/`,"@tanstack/react-table":`${t}/@tanstack/react-table@8.21.2${s}`,zustand:`${t}/zustand@5.0.3${s}`,"zustand/":`${t}/zustand@5.0.3&external=react,react-dom/`,"react-router-dom":`${t}/react-router-dom@6.28.2${s}`,"react-router-dom/":`${t}/react-router-dom@6.28.2&external=react,react-dom/`,sonner:`${t}/sonner@1.7.3${s}`,cmdk:`${t}/cmdk@1.0.4${s}`,"@dnd-kit/core":`${t}/@dnd-kit/core@6.3.1${s}`,"@dnd-kit/sortable":`${t}/@dnd-kit/sortable@10.0.0${s}`,"@dnd-kit/utilities":`${t}/@dnd-kit/utilities@3.2.2`,axios:`${t}/axios@1.7.9`,"axios/":`${t}/axios@1.7.9/`,"lodash-es":`${t}/lodash-es@4.17.21`,"lodash-es/":`${t}/lodash-es@4.17.21/`,nanoid:`${t}/nanoid@5.0.9`,uuid:`${t}/uuid@11.0.5`,"react-markdown":`${t}/react-markdown@9.0.3${s}`,"remark-gfm":`${t}/remark-gfm@4.0.0`,"react-syntax-highlighter":`${t}/react-syntax-highlighter@15.6.1${s}`,"react-syntax-highlighter/":`${t}/react-syntax-highlighter@15.6.1&external=react,react-dom/`,"react-leaflet":`${t}/react-leaflet@4.2.1${s}`,"react-leaflet/":`${t}/react-leaflet@4.2.1&external=react,react-dom/`,leaflet:`${t}/leaflet@1.9.4`,"leaflet/":`${t}/leaflet@1.9.4/`,"react-player":`${t}/react-player@2.16.0${s}`,"react-player/":`${t}/react-player@2.16.0&external=react,react-dom/`,"usehooks-ts":`${t}/usehooks-ts@3.1.0${s}`,"react-colorful":`${t}/react-colorful@5.6.1${s}`,"@radix-ui/react-slot":`${t}/@radix-ui/react-slot@1.1.1${s}`,"@radix-ui/react-accordion":`${t}/@radix-ui/react-accordion@1.2.2${s}`,"@radix-ui/react-alert-dialog":`${t}/@radix-ui/react-alert-dialog@1.1.4${s}`,"@radix-ui/react-aspect-ratio":`${t}/@radix-ui/react-aspect-ratio@1.1.1${s}`,"@radix-ui/react-avatar":`${t}/@radix-ui/react-avatar@1.1.2${s}`,"@radix-ui/react-checkbox":`${t}/@radix-ui/react-checkbox@1.1.3${s}`,"@radix-ui/react-collapsible":`${t}/@radix-ui/react-collapsible@1.1.2${s}`,"@radix-ui/react-context-menu":`${t}/@radix-ui/react-context-menu@2.2.4${s}`,"@radix-ui/react-dialog":`${t}/@radix-ui/react-dialog@1.1.4${s}`,"@radix-ui/react-dropdown-menu":`${t}/@radix-ui/react-dropdown-menu@2.1.4${s}`,"@radix-ui/react-hover-card":`${t}/@radix-ui/react-hover-card@1.1.4${s}`,"@radix-ui/react-label":`${t}/@radix-ui/react-label@2.1.1${s}`,"@radix-ui/react-menubar":`${t}/@radix-ui/react-menubar@1.1.4${s}`,"@radix-ui/react-navigation-menu":`${t}/@radix-ui/react-navigation-menu@1.2.3${s}`,"@radix-ui/react-popover":`${t}/@radix-ui/react-popover@1.1.4${s}`,"@radix-ui/react-progress":`${t}/@radix-ui/react-progress@1.1.1${s}`,"@radix-ui/react-radio-group":`${t}/@radix-ui/react-radio-group@1.2.2${s}`,"@radix-ui/react-scroll-area":`${t}/@radix-ui/react-scroll-area@1.2.2${s}`,"@radix-ui/react-select":`${t}/@radix-ui/react-select@2.1.4${s}`,"@radix-ui/react-separator":`${t}/@radix-ui/react-separator@1.1.1${s}`,"@radix-ui/react-slider":`${t}/@radix-ui/react-slider@1.2.2${s}`,"@radix-ui/react-switch":`${t}/@radix-ui/react-switch@1.1.2${s}`,"@radix-ui/react-tabs":`${t}/@radix-ui/react-tabs@1.1.2${s}`,"@radix-ui/react-toast":`${t}/@radix-ui/react-toast@1.2.4${s}`,"@radix-ui/react-toggle":`${t}/@radix-ui/react-toggle@1.1.1${s}`,"@radix-ui/react-toggle-group":`${t}/@radix-ui/react-toggle-group@1.1.1${s}`,"@radix-ui/react-tooltip":`${t}/@radix-ui/react-tooltip@1.1.6${s}`,"@radix-ui/react-portal":`${t}/@radix-ui/react-portal@1.1.3${s}`,"@radix-ui/react-visually-hidden":`${t}/@radix-ui/react-visually-hidden@1.1.1${s}`,"@radix-ui/react-collection":`${t}/@radix-ui/react-collection@1.1.1${s}`,"@radix-ui/react-context":`${t}/@radix-ui/react-context@1.1.1${s}`,"embla-carousel-react":`${t}/embla-carousel-react@8.5.1${s}`,"embla-carousel-autoplay":`${t}/embla-carousel-autoplay@8.5.1`,vaul:`${t}/vaul@1.1.2${s}`,"resize-observer-polyfill":`${t}/resize-observer-polyfill@1.5.1`,"react-resizable-panels":`${t}/react-resizable-panels@2.1.7${s}`,"react-day-picker":`${t}/react-day-picker@9.4.4${s}`,"input-otp":`${t}/input-otp@1.4.1${s}`,"react-dropzone":`${t}/react-dropzone@14.3.5${s}`,"qrcode.react":`${t}/qrcode.react@4.2.0${s}`},o=["esm.sh","cdn.jsdelivr.net","unpkg.com","cdn.skypack.dev","cdnjs.cloudflare.com"];if(e.dependencies)for(const[m,x]of Object.entries(e.dependencies))if(x.startsWith("http")){try{const _=new URL(x);if(!o.some(y=>_.hostname===y||_.hostname.endsWith("."+y))){console.warn(`[codeviz] Blocked untrusted CDN URL for "${m}": ${x}`);continue}}catch{console.warn(`[codeviz] Invalid URL for "${m}": ${x}`);continue}i[m]=x}else i[m]=`${t}/${m}@${x}${s}`;const c={...i,...((f=e.overrides)==null?void 0:f.imports)||{}},u={react:`${t}/react@${r}`,"react/":`${t}/react@${r}/`,"react-dom":`${t}/react-dom@${r}`,"react-dom/":`${t}/react-dom@${r}/`,"react/jsx-runtime":`${t}/react@${r}/jsx-runtime`,"react/jsx-dev-runtime":`${t}/react@${r}/jsx-dev-runtime`};return{imports:c,scopes:{[`${t}/`]:u,...((p=e.overrides)==null?void 0:p.scopes)||{}}}}function Ai(e){return`<script type="importmap">${JSON.stringify(e,null,2)}<\/script>`}function v1(){return`Available packages (just import, no install needed):
210
210
 
211
211
  STYLING: clsx, class-variance-authority, tailwind-merge
212
212
  ICONS: lucide-react (1400+ icons), react-icons/* (40k+ icons from fa/md/hi/etc)
@@ -235,7 +235,7 @@ UI PRIMITIVES (Radix): accordion, alert-dialog, aspect-ratio, avatar, checkbox,
235
235
  navigation-menu, popover, progress, radio-group, scroll-area, select, separator,
236
236
  slider, switch, tabs, toast, toggle, toggle-group, tooltip, portal, visually-hidden
237
237
 
238
- All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all styling.`}const om="https://cdn.tailwindcss.com/3.4.16?plugins=forms,typography";function yn(e){const{transpiledCode:t,template:r,importMap:s,tailwindCdn:i=om,externalResources:o=[],themeCSS:c,componentsPreamble:u}=e;return r==="html"?cm(t,{tailwindCdn:i,externalResources:o}):r==="markdown"?um(t,{tailwindCdn:i,externalResources:o}):r==="mermaid"?pm(t):r==="svg"?hm(t):r==="csv"?fm(t):r==="json"?dm(t):r==="architecture"?mm(t):r==="dot"?gm(t):r==="latex"?xm(t):km(t,{importMap:s,tailwindCdn:i,externalResources:o,themeCSS:c,componentsPreamble:u})}function cm(e,t){const{tailwindCdn:r,externalResources:s=[]}=t;if(e.includes("<html")||e.includes("<!DOCTYPE"))return e;const i=s.map(c=>c.endsWith(".css")?`<link rel="stylesheet" href="${c}">`:`<script src="${c}"><\/script>`).join(`
238
+ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all styling.`}const om="https://cdn.tailwindcss.com/3.4.16?plugins=forms,typography";function yn(e){const{transpiledCode:t,template:r,importMap:s,tailwindCdn:i=om,externalResources:o=[],themeCSS:c,componentsPreamble:u}=e;return r==="html"?cm(t,{tailwindCdn:i,externalResources:o}):r==="markdown"?um(t,{tailwindCdn:i,externalResources:o}):r==="mermaid"?hm(t):r==="svg"?pm(t):r==="csv"?fm(t):r==="json"?dm(t):r==="architecture"?mm(t):r==="dot"?gm(t):r==="latex"?xm(t):km(t,{importMap:s,tailwindCdn:i,externalResources:o,themeCSS:c,componentsPreamble:u})}function cm(e,t){const{tailwindCdn:r,externalResources:s=[]}=t;if(e.includes("<html")||e.includes("<!DOCTYPE"))return e;const i=s.map(c=>c.endsWith(".css")?`<link rel="stylesheet" href="${c}">`:`<script src="${c}"><\/script>`).join(`
239
239
  `);return`<!DOCTYPE html>
240
240
  <html lang="en">
241
241
  <head>
@@ -243,7 +243,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
243
243
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
244
244
  ${r?`<script src="${r}"><\/script>`:""}
245
245
  ${i}
246
- ${Ct()}
246
+ ${Et()}
247
247
  <style>
248
248
  body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; }
249
249
  </style>
@@ -416,7 +416,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
416
416
  <script src="https://cdn.jsdelivr.net/npm/marked@14/marked.min.js"><\/script>
417
417
  <script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"><\/script>
418
418
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@5/github-markdown-dark.min.css">
419
- ${Ct()}
419
+ ${Et()}
420
420
  <style>
421
421
  body { margin: 0; padding: 0; background: #0d1117; }
422
422
  .markdown-body {
@@ -465,13 +465,13 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
465
465
  });
466
466
  <\/script>
467
467
  </body>
468
- </html>`}function pm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
468
+ </html>`}function hm(e){const t=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return`<!DOCTYPE html>
469
469
  <html lang="en">
470
470
  <head>
471
471
  <meta charset="UTF-8">
472
472
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
473
473
  <script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"><\/script>
474
- ${Ct()}
474
+ ${Et()}
475
475
  <style>
476
476
  * { box-sizing: border-box; margin: 0; padding: 0; }
477
477
  body { background: #0d1117; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
@@ -532,12 +532,12 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
532
532
  });
533
533
  <\/script>
534
534
  </body>
535
- </html>`}function hm(e){return`<!DOCTYPE html>
535
+ </html>`}function pm(e){return`<!DOCTYPE html>
536
536
  <html lang="en">
537
537
  <head>
538
538
  <meta charset="UTF-8">
539
539
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
540
- ${Ct()}
540
+ ${Et()}
541
541
  <style>
542
542
  * { box-sizing: border-box; margin: 0; padding: 0; }
543
543
  body { background: #0d1117; }
@@ -598,7 +598,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
598
598
  <head>
599
599
  <meta charset="UTF-8">
600
600
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
601
- ${Ct()}
601
+ ${Et()}
602
602
  <style>
603
603
  * { box-sizing: border-box; margin: 0; padding: 0; }
604
604
  body { background: #0d1117; color: #e6edf3; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; padding: 16px; }
@@ -710,7 +710,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
710
710
  <head>
711
711
  <meta charset="UTF-8">
712
712
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
713
- ${Ct()}
713
+ ${Et()}
714
714
  <style>
715
715
  * { box-sizing: border-box; margin: 0; padding: 0; }
716
716
  body { background: #0d1117; color: #e6edf3; font-family: 'SF Mono', Menlo, monospace; font-size: 13px; padding: 16px; line-height: 1.5; }
@@ -834,7 +834,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
834
834
  <head>
835
835
  <meta charset="UTF-8">
836
836
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
837
- ${Ct()}
837
+ ${Et()}
838
838
  <style>
839
839
  * { box-sizing: border-box; margin: 0; padding: 0; }
840
840
  html, body { width: 100%; height: 100%; overflow: hidden; }
@@ -879,7 +879,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
879
879
  <meta charset="UTF-8">
880
880
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
881
881
  <script src="https://cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js"><\/script>
882
- ${Ct()}
882
+ ${Et()}
883
883
  <style>
884
884
  * { box-sizing: border-box; margin: 0; padding: 0; }
885
885
  body { background: #0d1117; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
@@ -951,7 +951,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
951
951
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16/dist/katex.min.css">
952
952
  <script src="https://cdn.jsdelivr.net/npm/katex@0.16/dist/katex.min.js"><\/script>
953
953
  <script src="https://cdn.jsdelivr.net/npm/katex@0.16/dist/contrib/auto-render.min.js"><\/script>
954
- ${Ct()}
954
+ ${Et()}
955
955
  <style>
956
956
  * { box-sizing: border-box; margin: 0; padding: 0; }
957
957
  body {
@@ -1057,7 +1057,7 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
1057
1057
  <\/script>
1058
1058
  </body>
1059
1059
  </html>`}function km(e,t){const{importMap:r,tailwindCdn:s,externalResources:i=[],themeCSS:o,componentsPreamble:c}=t,u=i.map(x=>x.endsWith(".css")?`<link rel="stylesheet" href="${x}">`:`<script src="${x}"><\/script>`).join(`
1060
- `),f=s?`<script src="${s}"><\/script>`:"",h=o?`<style data-theme>${o}</style>`:"",m=c?c+`
1060
+ `),f=s?`<script src="${s}"><\/script>`:"",p=o?`<style data-theme>${o}</style>`:"",m=c?c+`
1061
1061
  `+e:e;return`<!DOCTYPE html>
1062
1062
  <html lang="en">
1063
1063
  <head>
@@ -1066,8 +1066,8 @@ All packages use Tailwind CSS (available via CDN). Use Tailwind classes for all
1066
1066
  ${Ai(r)}
1067
1067
  ${f}
1068
1068
  ${u}
1069
- ${Ct()}
1070
- ${h}
1069
+ ${Et()}
1070
+ ${p}
1071
1071
  <style>
1072
1072
  * { box-sizing: border-box; }
1073
1073
  body {
@@ -1158,7 +1158,7 @@ ${bm(m)}
1158
1158
  }
1159
1159
 
1160
1160
  main();
1161
- `}function Ct(){return`<script>
1161
+ `}function Et(){return`<script>
1162
1162
  // Capture unhandled errors — include line/column from ErrorEvent
1163
1163
  window.addEventListener('error', (e) => {
1164
1164
  window.parent.postMessage({
@@ -1205,10 +1205,10 @@ ${bm(m)}
1205
1205
  payload: { message: msg, level: 'error' }
1206
1206
  }, '*');
1207
1207
  };
1208
- <\/script>`}let ym=0;function pa(e,t,r){return{id:`preview-${++ym}`,category:e,severity:"error",message:t,timestamp:new Date().toISOString(),...r}}const wc=I.memo(function({code:t,template:r,importMap:s,dependencies:i,cdnBase:o,tailwindCdn:c,externalResources:u,files:f,onError:h,onLoad:m,theme:x="dark",showLoader:_=!0,loader:y}){const L=I.useRef(null),[O,F]=I.useState(!0),K=I.useRef(h),P=I.useRef(m);I.useEffect(()=>{K.current=h,P.current=m},[h,m]);const j=I.useMemo(()=>Ti({cdnBase:o,dependencies:i,overrides:s}),[o,i,s]);I.useEffect(()=>{const q=T=>{var z,ye,De,$e,Oe,H,ce,xe;if(T.origin!=="null"&&T.origin!==window.location.origin)return;const B=T.data;if((B==null?void 0:B.type)==="codeviz"){if(B.action==="ready")F(!1),(z=P.current)==null||z.call(P);else if(B.action==="error"){const ee=((ye=B.payload)==null?void 0:ye.message)||"Unknown error";F(!1);const Pe=ee.includes("Failed to resolve")||ee.includes("does not provide an export")?"import":"runtime";(H=K.current)==null||H.call(K,pa(Pe,ee,{stack:(De=B.payload)==null?void 0:De.stack,line:($e=B.payload)==null?void 0:$e.line,column:(Oe=B.payload)==null?void 0:Oe.column}))}else if(B.action==="console"&&((ce=B.payload)==null?void 0:ce.level)==="error"){const ee=(B.payload.message||"").trim();ee&&ee!=="{}"&&ee!=="[]"&&ee!=="undefined"&&ee!=="null"&&!ee.includes("Warning:")&&!ee.includes("ReactDOM.render")&&!ee.includes("Each child in a list")&&!ee.includes("validateDOMNesting")&&((xe=K.current)==null||xe.call(K,pa("console-error",ee)))}}};return window.addEventListener("message",q),()=>window.removeEventListener("message",q)},[]);const D=I.useMemo(()=>{var T;if(r==="html"||r==="markdown"||r==="mermaid"||r==="svg"||r==="csv"||r==="json"||r==="dot"||r==="latex"||r==="architecture")return yn({transpiledCode:t,template:r,importMap:j,tailwindCdn:c,externalResources:u});const q=Jn(t,{filename:r==="react"?"App.jsx":"App.tsx"});return q.error?((T=K.current)==null||T.call(K,q.error),yn({transpiledCode:vm(q.error),template:"html",importMap:j,tailwindCdn:!1})):yn({transpiledCode:q.code,template:r,importMap:j,tailwindCdn:c,externalResources:u})},[t,r,j,c,u]),W=I.useRef(D);I.useEffect(()=>{D!==W.current&&(F(!0),W.current=D)},[D]);const X=x==="dark"?"#09090b":"#ffffff";return E.jsxs("div",{style:{...Ts.container,backgroundColor:X},children:[_&&O&&E.jsx("div",{style:{...Ts.overlay,backgroundColor:X},children:y||E.jsx(Hs,{size:"lg",label:"Building preview..."})}),E.jsx("iframe",{ref:L,srcDoc:D,sandbox:"allow-scripts allow-modals allow-popups",style:Ts.iframe,title:"Preview"})]})});function vm(e){const t=[`<div style="padding:20px;color:#fca5a5;font-family:'SF Mono',Menlo,monospace;font-size:13px;line-height:1.6;background:#18181b;min-height:100vh;">`,'<div style="color:#ef4444;font-weight:600;font-size:14px;margin-bottom:8px;">Transpilation Error</div>',`<div style="color:#fca5a5;margin-bottom:12px;">${Cs(e.message)}</div>`];if(e.line&&t.push(`<div style="color:#71717a;font-size:11px;margin-bottom:8px;">Line ${e.line}${e.column?`:${e.column}`:""}</div>`),e.sourceContext){t.push('<pre style="background:#0f0f0f;border-radius:8px;padding:12px;overflow-x:auto;font-size:12px;border:1px solid #27272a;">');for(const r of e.sourceContext.split(`
1209
- `)){const i=parseInt(r)===e.line;t.push(i?`<span style="color:#ef4444;background:rgba(239,68,68,0.1);display:block;padding:0 4px;">${Cs(r)}</span>`:`<span style="color:#52525b;">${Cs(r)}</span>`)}t.push("</pre>")}return t.push("</div>"),t.join(`
1210
- `)}function Cs(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const Ts={container:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},overlay:{position:"absolute",inset:0,zIndex:10,display:"flex",alignItems:"center",justifyContent:"center"},iframe:{width:"100%",height:"100%",border:"none",display:"block"}},_c=new Set(["react","react-ts","html","markdown","mermaid","svg","csv","json","dot","latex","architecture"]),Wr={EDITOR_DEBOUNCE_MS:400,PREVIEW_SWITCH_DELAY_MS:800,COPY_CONFIRMATION_MS:2e3},zs=768,Sc=I.memo(function({view:t,onViewChange:r,onRefresh:s,isLoading:i,theme:o,isStreaming:c=!1,isFullscreen:u=!1,onFullscreenToggle:f,onDownload:h,downloadOptions:m,onClose:x,hideSplit:_=!1}){const y=o==="dark",[L,O]=I.useState(()=>typeof window<"u"?window.innerWidth>=zs:!1);I.useEffect(()=>{const T=window.matchMedia(`(min-width: ${zs}px)`),B=z=>O(z.matches);return B(T),T.addEventListener("change",B),()=>T.removeEventListener("change",B)},[]);const F=!_&&(L||u),[K,P]=I.useState(!1);I.useEffect(()=>{t==="split"&&!F&&r("code")},[F,t,r]);const j=F?["code","split","preview"]:["code","preview"],D={display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,borderRadius:4,border:"none",cursor:"pointer",backgroundColor:"transparent",color:y?"#71717a":"#a1a1aa",transition:"all 0.15s",padding:0},W=(T,B)=>{T.currentTarget.style.backgroundColor=B?y?"#27272a":"#e4e4e7":"transparent",T.currentTarget.style.color=B?y?"#d4d4d8":"#52525b":y?"#71717a":"#a1a1aa"},X=(T,B)=>{T.currentTarget.style.backgroundColor=B?"rgba(239,68,68,0.15)":"transparent",T.currentTarget.style.color=B?"#ef4444":y?"#71717a":"#a1a1aa"},q=I.useCallback((T,B)=>{switch(T){case"code":return E.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[E.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"5 4 1 8 5 12"}),E.jsx("polyline",{points:"11 4 15 8 11 12"})]}),"Code"]});case"split":return E.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[E.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[E.jsx("rect",{x:"1",y:"2",width:"14",height:"12",rx:"1.5"}),E.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"14"})]}),"Split"]});case"preview":return E.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[E.jsx("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:B?"#22c55e":"currentColor",stroke:"none",children:E.jsx("path",{d:"M4 2.5v11l9-5.5z"})}),"Preview"]})}},[]);return E.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"0 6px 0 8px",backgroundColor:y?"#18181b":"#fafafa",borderBottom:`1px solid ${y?"#27272a":"#e4e4e7"}`,flexShrink:0,userSelect:"none"},children:[E.jsx("div",{style:{display:"flex",alignItems:"center",gap:1,padding:1,borderRadius:5,backgroundColor:y?"#27272a":"#e4e4e7"},children:j.map(T=>{const z=c&&(T==="preview"||T==="split");return E.jsx("button",{onClick:()=>!z&&r(T),disabled:z,style:{display:"flex",alignItems:"center",padding:"2px 8px",borderRadius:4,border:"none",cursor:z?"not-allowed":"pointer",fontSize:11,fontWeight:500,fontFamily:"inherit",letterSpacing:.2,lineHeight:1,opacity:z?.4:1,backgroundColor:t===T?y?"#3f3f46":"#ffffff":"transparent",color:t===T?y?"#fafafa":"#18181b":y?"#71717a":"#a1a1aa",boxShadow:t===T?"0 1px 2px rgba(0,0,0,0.08)":"none",transition:"all 0.15s"},children:q(T,t===T)},T)})}),E.jsx("div",{}),E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:1},children:[E.jsx("button",{onClick:s,title:"Refresh preview",style:D,onMouseEnter:T=>W(T,!0),onMouseLeave:T=>W(T,!1),children:E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[E.jsx("path",{d:"M2 8a6 6 0 0 1 10.3-4.2M14 2v4h-4"}),E.jsx("path",{d:"M14 8a6 6 0 0 1-10.3 4.2M2 14v-4h4"})]})}),(h||m&&m.length>0)&&E.jsxs("div",{style:{position:"relative"},children:[E.jsx("button",{onClick:()=>{m&&m.length>0?P(!K):h==null||h()},title:"Download",style:D,onMouseEnter:T=>W(T,!0),onMouseLeave:T=>W(T,!1),children:E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M8 2v8m0 0l-3-3m3 3l3-3"}),E.jsx("path",{d:"M2 12v1.5a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V12"})]})}),K&&m&&m.length>0&&E.jsx("div",{style:{position:"absolute",top:"100%",right:0,marginTop:4,minWidth:160,padding:"4px 0",borderRadius:8,border:`1px solid ${y?"#30363d":"#d0d7de"}`,backgroundColor:y?"#161b22":"#ffffff",boxShadow:"0 8px 24px rgba(0,0,0,0.2)",zIndex:100},children:m.map((T,B)=>E.jsx("button",{onClick:()=>{T.action(),P(!1)},style:{display:"block",width:"100%",padding:"6px 12px",border:"none",background:"none",color:y?"#e6edf3":"#24292f",fontSize:12,textAlign:"left",cursor:"pointer",fontFamily:"inherit"},onMouseEnter:z=>{z.currentTarget.style.backgroundColor=y?"#21262d":"#f3f4f6"},onMouseLeave:z=>{z.currentTarget.style.backgroundColor="transparent"},children:T.label},B))})]}),f&&E.jsx("button",{onClick:f,title:u?"Exit fullscreen":"Fullscreen",style:D,onMouseEnter:T=>W(T,!0),onMouseLeave:T=>W(T,!1),children:u?E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"4 14 4 10 0 10"}),E.jsx("polyline",{points:"12 2 12 6 16 6"}),E.jsx("line",{x1:"0",y1:"16",x2:"4",y2:"10"}),E.jsx("line",{x1:"16",y1:"0",x2:"12",y2:"6"})]}):E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"10 2 14 2 14 6"}),E.jsx("polyline",{points:"6 14 2 14 2 10"}),E.jsx("line",{x1:"14",y1:"2",x2:"10",y2:"6"}),E.jsx("line",{x1:"2",y1:"14",x2:"6",y2:"10"})]})}),x&&E.jsxs(E.Fragment,{children:[E.jsx("div",{style:{width:1,height:14,backgroundColor:y?"#27272a":"#e4e4e7",margin:"0 2px"}}),E.jsx("button",{onClick:x,title:"Close preview",style:D,onMouseEnter:T=>X(T,!0),onMouseLeave:T=>X(T,!1),children:E.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[E.jsx("line",{x1:"4",y1:"4",x2:"12",y2:"12"}),E.jsx("line",{x1:"12",y1:"4",x2:"4",y2:"12"})]})})]})]})]})}),Ic=I.memo(function({errors:t,isLoading:r,isStreaming:s,language:i,theme:o,filename:c,footerSlot:u,view:f}){const h=o==="dark",m=t.filter(T=>T.severity==="error").length,x=t.filter(T=>T.severity==="warning").length,_=f==="preview"||f==="split",[y,L]=I.useState(!1),[O,F]=I.useState(!1),K=I.useRef(),P=I.useRef(null);I.useEffect(()=>()=>{clearTimeout(K.current)},[]),I.useEffect(()=>{if(!O)return;const T=B=>{P.current&&!P.current.contains(B.target)&&F(!1)};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[O]);let j="Ready",D=h?"#71717a":"#a1a1aa";s?(j="⟳ Streaming...",D="#818cf8"):m>0?(j=`✕ ${m} error${m>1?"s":""}`,D="#ef4444"):r&&_&&(j="◌ Building...",D="#f59e0b");const W=I.useCallback(()=>{const T=new CustomEvent("codeviz:copy-request");window.dispatchEvent(T),L(!0),clearTimeout(K.current),K.current=setTimeout(()=>L(!1),Wr.COPY_CONFIRMATION_MS)},[]),X=h?"#52525b":"#a1a1aa",q=h?"#a1a1aa":"#71717a";return E.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:24,padding:"0 8px",backgroundColor:h?"#18181b":"#f4f4f5",borderTop:`1px solid ${h?"#27272a":"#e4e4e7"}`,fontSize:11,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace',flexShrink:0,userSelect:"none",position:"relative"},children:[E.jsxs("div",{ref:P,style:{display:"flex",alignItems:"center",gap:8,minWidth:0,flex:"0 0 auto",position:"relative"},children:[E.jsx("span",{style:{color:D,fontWeight:500,cursor:m>0?"pointer":"default"},onClick:m>0?()=>F(T=>!T):void 0,title:m>0?"Click to view errors":void 0,children:j}),x>0&&E.jsxs("span",{style:{color:"#f59e0b"},children:["⚠ ",x]}),O&&t.length>0&&E.jsx("div",{style:{position:"absolute",bottom:"100%",right:0,marginBottom:2,width:320,maxHeight:180,overflowY:"auto",backgroundColor:h?"#1e1e2e":"#ffffff",border:`1px solid ${h?"#3f3f50":"#d4d4d8"}`,borderRadius:4,boxShadow:h?"0 2px 8px rgba(0,0,0,0.4)":"0 2px 8px rgba(0,0,0,0.1)",zIndex:50,padding:0},children:t.map((T,B)=>E.jsxs("div",{style:{padding:"3px 8px",borderBottom:B<t.length-1?`1px solid ${h?"#27272a":"#f4f4f5"}`:"none",fontSize:10,lineHeight:1.4,display:"flex",alignItems:"baseline",gap:4},children:[E.jsx("span",{style:{color:T.severity==="error"?"#ef4444":"#f59e0b",fontWeight:600,fontSize:9,textTransform:"uppercase",flexShrink:0},children:T.category}),T.line&&E.jsxs("span",{style:{color:h?"#71717a":"#a1a1aa",fontSize:9,flexShrink:0},children:["L",T.line]}),E.jsx("span",{style:{color:h?"#d4d4d8":"#3f3f46",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:'"SF Mono", Menlo, monospace',fontSize:9},children:T.message.length>120?T.message.slice(0,120)+"…":T.message})]},T.id))})]}),c&&E.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",color:h?"#71717a":"#a1a1aa",padding:"0 8px"},children:[s&&E.jsx("div",{style:{width:5,height:5,borderRadius:"50%",backgroundColor:"#f59e0b",flexShrink:0,animation:"codevizPulse 1s infinite"}}),c]}),E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flex:"0 0 auto"},children:[E.jsx("button",{onClick:W,title:y?"Copied!":"Copy code",style:{display:"flex",alignItems:"center",gap:3,border:"none",background:"none",cursor:"pointer",padding:"0 2px",color:y?"#22c55e":X,fontSize:11,fontFamily:"inherit",transition:"color 0.15s"},onMouseEnter:T=>{y||(T.currentTarget.style.color=q)},onMouseLeave:T=>{y||(T.currentTarget.style.color=X)},children:y?E.jsxs(E.Fragment,{children:[E.jsx("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("polyline",{points:"3 8 7 12 13 4"})}),"Copied"]}):E.jsxs(E.Fragment,{children:[E.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"5",y:"5",width:"9",height:"9",rx:"1.5"}),E.jsx("path",{d:"M3 11V3a1.5 1.5 0 011.5-1.5H11"})]}),"Copy"]})}),E.jsx("span",{style:{color:X},children:i.toUpperCase()}),u]})]})}),Ec=I.memo(function({errors:t,theme:r}){const s=r==="dark",i=t.filter(c=>c.severity==="error").length,o=t.filter(c=>c.severity==="warning").length;return E.jsxs("div",{style:{width:"100%",height:"100%",overflow:"auto",backgroundColor:s?"#09090b":"#ffffff",padding:"24px 20px",fontFamily:'"SF Mono", Menlo, Consolas, monospace'},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:16,paddingBottom:12,borderBottom:`1px solid ${s?"#27272a":"#e4e4e7"}`},children:[E.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"#ef4444",strokeWidth:"1.5"}),E.jsx("line",{x1:"8",y1:"4.5",x2:"8",y2:"8.5",stroke:"#ef4444",strokeWidth:"1.5",strokeLinecap:"round"}),E.jsx("circle",{cx:"8",cy:"11",r:"0.75",fill:"#ef4444"})]}),E.jsxs("span",{style:{color:"#ef4444",fontWeight:600,fontSize:13},children:[i," error",i!==1?"s":""]}),o>0&&E.jsxs("span",{style:{color:"#f59e0b",fontSize:12},children:[o," warning",o!==1?"s":""]})]}),t.map(c=>E.jsxs("div",{style:{marginBottom:8,padding:"8px 10px",borderRadius:6,backgroundColor:s?c.severity==="error"?"rgba(239,68,68,0.08)":"rgba(245,158,11,0.08)":c.severity==="error"?"rgba(239,68,68,0.05)":"rgba(245,158,11,0.05)",border:`1px solid ${s?c.severity==="error"?"rgba(239,68,68,0.2)":"rgba(245,158,11,0.2)":c.severity==="error"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)"}`},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:3},children:[E.jsx("span",{style:{color:c.severity==="error"?"#ef4444":"#f59e0b",fontWeight:600,fontSize:10,textTransform:"uppercase",letterSpacing:.5},children:c.category}),c.line&&E.jsxs("span",{style:{color:s?"#71717a":"#a1a1aa",fontSize:10},children:["Line ",c.line,c.column?`:${c.column}`:""]})]}),E.jsx("div",{style:{color:s?"#d4d4d8":"#3f3f46",fontSize:11,lineHeight:1.5,wordBreak:"break-word"},children:c.message}),c.sourceContext&&E.jsx("pre",{style:{marginTop:6,padding:"6px 8px",borderRadius:4,backgroundColor:s?"#0f0f0f":"#f9fafb",border:`1px solid ${s?"#1e1e1e":"#e5e7eb"}`,fontSize:10,lineHeight:1.4,overflow:"auto",color:s?"#a1a1aa":"#6b7280",whiteSpace:"pre-wrap"},children:c.sourceContext})]},c.id))]})}),Ge={};function wm(e){Ge[e.id]=e}function _m(e){for(const t of e)Ge[t.id]=t}function Sm(e){delete Ge[e]}function Im(){for(const e of Object.keys(Ge))delete Ge[e]}function Em(e){return Ge[e]}function Cm(){return Object.keys(Ge)}function Tm(){return Object.values(Ge)}function Cc(){const e=Object.values(Ge);return e.length===0?"_No templates registered._":e.map(t=>`- **${t.id}**: ${t.description} [keywords: ${t.keywords.join(", ")}]`).join(`
1211
- `)}function Am(e,t){const r=e.toLowerCase(),s=Object.keys(Ge);let o=t??s[0]??"",c=0;for(const[u,f]of Object.entries(Ge)){let h=0;for(const m of f.keywords)r.includes(m)&&(h+=m.length);h>c&&(c=h,o=u)}return o}function Tc(e){return _c.has(e)}function Ac(e){switch(e.toLowerCase().replace(/^\./,"")){case"html":case"htm":return"html";case"md":case"markdown":case"mdx":return"markdown";case"mermaid":case"mmd":return"mermaid";case"svg":return"svg";case"csv":case"tsv":return"csv";case"json":case"jsonl":return"json";case"dot":case"gv":case"graphviz":return"dot";case"latex":case"tex":case"katex":return"latex";case"architecture":case"arch":case"drawio":return"architecture";case"jsx":case"js":case"javascript":return"react";case"tsx":case"ts":case"typescript":default:return"react-ts"}}function Pc(e,t,r){switch(t){case"html":return{filename:"preview.html",content:e,mime:"text/html"};case"markdown":return{filename:"document.md",content:e,mime:"text/markdown"};case"dot":return{filename:"diagram.dot",content:e,mime:"text/vnd.graphviz"};case"latex":return{filename:"document.tex",content:e,mime:"application/x-latex"};case"architecture":return{filename:"architecture.drawio",content:e,mime:"application/xml"};case"mermaid":return{filename:"diagram.mermaid",content:e,mime:"text/plain"};case"svg":return{filename:"image.svg",content:e,mime:"image/svg+xml"};case"csv":return{filename:"data.csv",content:e,mime:"text/csv"};case"json":return{filename:"data.json",content:e,mime:"application/json"};case"react":case"react-ts":{const s=Jn(e,{filename:t==="react"?"App.jsx":"App.tsx"});if(s.error)return{filename:`component.${r==="jsx"||r==="js"?"jsx":"tsx"}`,content:e,mime:"text/plain"};const i=Ti({}),o=s.code.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return{filename:"preview.html",content:`<!DOCTYPE html>
1208
+ <\/script>`}let ym=0;function ha(e,t,r){return{id:`preview-${++ym}`,category:e,severity:"error",message:t,timestamp:new Date().toISOString(),...r}}const w1=I.memo(function({code:t,template:r,importMap:s,dependencies:i,cdnBase:o,tailwindCdn:c,externalResources:u,files:f,onError:p,onLoad:m,theme:x="dark",showLoader:_=!0,loader:y}){const L=I.useRef(null),[O,F]=I.useState(!0),K=I.useRef(p),P=I.useRef(m);I.useEffect(()=>{K.current=p,P.current=m},[p,m]);const j=I.useMemo(()=>Ti({cdnBase:o,dependencies:i,overrides:s}),[o,i,s]);I.useEffect(()=>{const q=T=>{var z,ye,De,$e,Oe,H,ce,xe;if(T.origin!=="null"&&T.origin!==window.location.origin)return;const B=T.data;if((B==null?void 0:B.type)==="codeviz"){if(B.action==="ready")F(!1),(z=P.current)==null||z.call(P);else if(B.action==="error"){const ee=((ye=B.payload)==null?void 0:ye.message)||"Unknown error";F(!1);const Pe=ee.includes("Failed to resolve")||ee.includes("does not provide an export")?"import":"runtime";(H=K.current)==null||H.call(K,ha(Pe,ee,{stack:(De=B.payload)==null?void 0:De.stack,line:($e=B.payload)==null?void 0:$e.line,column:(Oe=B.payload)==null?void 0:Oe.column}))}else if(B.action==="console"&&((ce=B.payload)==null?void 0:ce.level)==="error"){const ee=(B.payload.message||"").trim();ee&&ee!=="{}"&&ee!=="[]"&&ee!=="undefined"&&ee!=="null"&&!ee.includes("Warning:")&&!ee.includes("ReactDOM.render")&&!ee.includes("Each child in a list")&&!ee.includes("validateDOMNesting")&&((xe=K.current)==null||xe.call(K,ha("console-error",ee)))}}};return window.addEventListener("message",q),()=>window.removeEventListener("message",q)},[]);const D=I.useMemo(()=>{var T;if(r==="html"||r==="markdown"||r==="mermaid"||r==="svg"||r==="csv"||r==="json"||r==="dot"||r==="latex"||r==="architecture")return yn({transpiledCode:t,template:r,importMap:j,tailwindCdn:c,externalResources:u});const q=Jn(t,{filename:r==="react"?"App.jsx":"App.tsx"});return q.error?((T=K.current)==null||T.call(K,q.error),yn({transpiledCode:vm(q.error),template:"html",importMap:j,tailwindCdn:!1})):yn({transpiledCode:q.code,template:r,importMap:j,tailwindCdn:c,externalResources:u})},[t,r,j,c,u]),W=I.useRef(D);I.useEffect(()=>{D!==W.current&&(F(!0),W.current=D)},[D]);const X=x==="dark"?"#09090b":"#ffffff";return C.jsxs("div",{style:{...Ts.container,backgroundColor:X},children:[_&&O&&C.jsx("div",{style:{...Ts.overlay,backgroundColor:X},children:y||C.jsx(Hs,{size:"lg",label:"Building preview..."})}),C.jsx("iframe",{ref:L,srcDoc:D,sandbox:"allow-scripts allow-modals allow-popups",style:Ts.iframe,title:"Preview"})]})});function vm(e){const t=[`<div style="padding:20px;color:#fca5a5;font-family:'SF Mono',Menlo,monospace;font-size:13px;line-height:1.6;background:#18181b;min-height:100vh;">`,'<div style="color:#ef4444;font-weight:600;font-size:14px;margin-bottom:8px;">Transpilation Error</div>',`<div style="color:#fca5a5;margin-bottom:12px;">${Es(e.message)}</div>`];if(e.line&&t.push(`<div style="color:#71717a;font-size:11px;margin-bottom:8px;">Line ${e.line}${e.column?`:${e.column}`:""}</div>`),e.sourceContext){t.push('<pre style="background:#0f0f0f;border-radius:8px;padding:12px;overflow-x:auto;font-size:12px;border:1px solid #27272a;">');for(const r of e.sourceContext.split(`
1209
+ `)){const i=parseInt(r)===e.line;t.push(i?`<span style="color:#ef4444;background:rgba(239,68,68,0.1);display:block;padding:0 4px;">${Es(r)}</span>`:`<span style="color:#52525b;">${Es(r)}</span>`)}t.push("</pre>")}return t.push("</div>"),t.join(`
1210
+ `)}function Es(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const Ts={container:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},overlay:{position:"absolute",inset:0,zIndex:10,display:"flex",alignItems:"center",justifyContent:"center"},iframe:{width:"100%",height:"100%",border:"none",display:"block"}},_1=new Set(["react","react-ts","html","markdown","mermaid","svg","csv","json","dot","latex","architecture"]),Wr={EDITOR_DEBOUNCE_MS:400,PREVIEW_SWITCH_DELAY_MS:800,COPY_CONFIRMATION_MS:2e3},zs=768,S1=I.memo(function({view:t,onViewChange:r,onRefresh:s,isLoading:i,theme:o,isStreaming:c=!1,isFullscreen:u=!1,onFullscreenToggle:f,onDownload:p,downloadOptions:m,onClose:x,hideSplit:_=!1}){const y=o==="dark",[L,O]=I.useState(()=>typeof window<"u"?window.innerWidth>=zs:!1);I.useEffect(()=>{const T=window.matchMedia(`(min-width: ${zs}px)`),B=z=>O(z.matches);return B(T),T.addEventListener("change",B),()=>T.removeEventListener("change",B)},[]);const F=!_&&(L||u),[K,P]=I.useState(!1);I.useEffect(()=>{t==="split"&&!F&&r("code")},[F,t,r]);const j=F?["code","split","preview"]:["code","preview"],D={display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,borderRadius:4,border:"none",cursor:"pointer",backgroundColor:"transparent",color:y?"#71717a":"#a1a1aa",transition:"all 0.15s",padding:0},W=(T,B)=>{T.currentTarget.style.backgroundColor=B?y?"#27272a":"#e4e4e7":"transparent",T.currentTarget.style.color=B?y?"#d4d4d8":"#52525b":y?"#71717a":"#a1a1aa"},X=(T,B)=>{T.currentTarget.style.backgroundColor=B?"rgba(239,68,68,0.15)":"transparent",T.currentTarget.style.color=B?"#ef4444":y?"#71717a":"#a1a1aa"},q=I.useCallback((T,B)=>{switch(T){case"code":return C.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[C.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[C.jsx("polyline",{points:"5 4 1 8 5 12"}),C.jsx("polyline",{points:"11 4 15 8 11 12"})]}),"Code"]});case"split":return C.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[C.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[C.jsx("rect",{x:"1",y:"2",width:"14",height:"12",rx:"1.5"}),C.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"14"})]}),"Split"]});case"preview":return C.jsxs("span",{style:{display:"flex",alignItems:"center",gap:3},children:[C.jsx("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:B?"#22c55e":"currentColor",stroke:"none",children:C.jsx("path",{d:"M4 2.5v11l9-5.5z"})}),"Preview"]})}},[]);return C.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:32,padding:"0 6px 0 8px",backgroundColor:y?"#18181b":"#fafafa",borderBottom:`1px solid ${y?"#27272a":"#e4e4e7"}`,flexShrink:0,userSelect:"none"},children:[C.jsx("div",{style:{display:"flex",alignItems:"center",gap:1,padding:1,borderRadius:5,backgroundColor:y?"#27272a":"#e4e4e7"},children:j.map(T=>{const z=c&&(T==="preview"||T==="split");return C.jsx("button",{onClick:()=>!z&&r(T),disabled:z,style:{display:"flex",alignItems:"center",padding:"2px 8px",borderRadius:4,border:"none",cursor:z?"not-allowed":"pointer",fontSize:11,fontWeight:500,fontFamily:"inherit",letterSpacing:.2,lineHeight:1,opacity:z?.4:1,backgroundColor:t===T?y?"#3f3f46":"#ffffff":"transparent",color:t===T?y?"#fafafa":"#18181b":y?"#71717a":"#a1a1aa",boxShadow:t===T?"0 1px 2px rgba(0,0,0,0.08)":"none",transition:"all 0.15s"},children:q(T,t===T)},T)})}),C.jsx("div",{}),C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:1},children:[C.jsx("button",{onClick:s,title:"Refresh preview",style:D,onMouseEnter:T=>W(T,!0),onMouseLeave:T=>W(T,!1),children:C.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[C.jsx("path",{d:"M2 8a6 6 0 0 1 10.3-4.2M14 2v4h-4"}),C.jsx("path",{d:"M14 8a6 6 0 0 1-10.3 4.2M2 14v-4h4"})]})}),(p||m&&m.length>0)&&C.jsxs("div",{style:{position:"relative"},children:[C.jsx("button",{onClick:()=>{m&&m.length>0?P(!K):p==null||p()},title:"Download",style:D,onMouseEnter:T=>W(T,!0),onMouseLeave:T=>W(T,!1),children:C.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[C.jsx("path",{d:"M8 2v8m0 0l-3-3m3 3l3-3"}),C.jsx("path",{d:"M2 12v1.5a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V12"})]})}),K&&m&&m.length>0&&C.jsx("div",{style:{position:"absolute",top:"100%",right:0,marginTop:4,minWidth:160,padding:"4px 0",borderRadius:8,border:`1px solid ${y?"#30363d":"#d0d7de"}`,backgroundColor:y?"#161b22":"#ffffff",boxShadow:"0 8px 24px rgba(0,0,0,0.2)",zIndex:100},children:m.map((T,B)=>C.jsx("button",{onClick:()=>{T.action(),P(!1)},style:{display:"block",width:"100%",padding:"6px 12px",border:"none",background:"none",color:y?"#e6edf3":"#24292f",fontSize:12,textAlign:"left",cursor:"pointer",fontFamily:"inherit"},onMouseEnter:z=>{z.currentTarget.style.backgroundColor=y?"#21262d":"#f3f4f6"},onMouseLeave:z=>{z.currentTarget.style.backgroundColor="transparent"},children:T.label},B))})]}),f&&C.jsx("button",{onClick:f,title:u?"Exit fullscreen":"Fullscreen",style:D,onMouseEnter:T=>W(T,!0),onMouseLeave:T=>W(T,!1),children:u?C.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[C.jsx("polyline",{points:"4 14 4 10 0 10"}),C.jsx("polyline",{points:"12 2 12 6 16 6"}),C.jsx("line",{x1:"0",y1:"16",x2:"4",y2:"10"}),C.jsx("line",{x1:"16",y1:"0",x2:"12",y2:"6"})]}):C.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[C.jsx("polyline",{points:"10 2 14 2 14 6"}),C.jsx("polyline",{points:"6 14 2 14 2 10"}),C.jsx("line",{x1:"14",y1:"2",x2:"10",y2:"6"}),C.jsx("line",{x1:"2",y1:"14",x2:"6",y2:"10"})]})}),x&&C.jsxs(C.Fragment,{children:[C.jsx("div",{style:{width:1,height:14,backgroundColor:y?"#27272a":"#e4e4e7",margin:"0 2px"}}),C.jsx("button",{onClick:x,title:"Close preview",style:D,onMouseEnter:T=>X(T,!0),onMouseLeave:T=>X(T,!1),children:C.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[C.jsx("line",{x1:"4",y1:"4",x2:"12",y2:"12"}),C.jsx("line",{x1:"12",y1:"4",x2:"4",y2:"12"})]})})]})]})]})}),I1=I.memo(function({errors:t,isLoading:r,isStreaming:s,language:i,theme:o,filename:c,footerSlot:u,view:f}){const p=o==="dark",m=t.filter(T=>T.severity==="error").length,x=t.filter(T=>T.severity==="warning").length,_=f==="preview"||f==="split",[y,L]=I.useState(!1),[O,F]=I.useState(!1),K=I.useRef(),P=I.useRef(null);I.useEffect(()=>()=>{clearTimeout(K.current)},[]),I.useEffect(()=>{if(!O)return;const T=B=>{P.current&&!P.current.contains(B.target)&&F(!1)};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[O]);let j="Ready",D=p?"#71717a":"#a1a1aa";s?(j="⟳ Streaming...",D="#818cf8"):m>0?(j=`✕ ${m} error${m>1?"s":""}`,D="#ef4444"):r&&_&&(j="◌ Building...",D="#f59e0b");const W=I.useCallback(()=>{const T=new CustomEvent("codeviz:copy-request");window.dispatchEvent(T),L(!0),clearTimeout(K.current),K.current=setTimeout(()=>L(!1),Wr.COPY_CONFIRMATION_MS)},[]),X=p?"#52525b":"#a1a1aa",q=p?"#a1a1aa":"#71717a";return C.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:24,padding:"0 8px",backgroundColor:p?"#18181b":"#f4f4f5",borderTop:`1px solid ${p?"#27272a":"#e4e4e7"}`,fontSize:11,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace',flexShrink:0,userSelect:"none",position:"relative"},children:[C.jsxs("div",{ref:P,style:{display:"flex",alignItems:"center",gap:8,minWidth:0,flex:"0 0 auto",position:"relative"},children:[C.jsx("span",{style:{color:D,fontWeight:500,cursor:m>0?"pointer":"default"},onClick:m>0?()=>F(T=>!T):void 0,title:m>0?"Click to view errors":void 0,children:j}),x>0&&C.jsxs("span",{style:{color:"#f59e0b"},children:["⚠ ",x]}),O&&t.length>0&&C.jsx("div",{style:{position:"absolute",bottom:"100%",right:0,marginBottom:2,width:320,maxHeight:180,overflowY:"auto",backgroundColor:p?"#1e1e2e":"#ffffff",border:`1px solid ${p?"#3f3f50":"#d4d4d8"}`,borderRadius:4,boxShadow:p?"0 2px 8px rgba(0,0,0,0.4)":"0 2px 8px rgba(0,0,0,0.1)",zIndex:50,padding:0},children:t.map((T,B)=>C.jsxs("div",{style:{padding:"3px 8px",borderBottom:B<t.length-1?`1px solid ${p?"#27272a":"#f4f4f5"}`:"none",fontSize:10,lineHeight:1.4,display:"flex",alignItems:"baseline",gap:4},children:[C.jsx("span",{style:{color:T.severity==="error"?"#ef4444":"#f59e0b",fontWeight:600,fontSize:9,textTransform:"uppercase",flexShrink:0},children:T.category}),T.line&&C.jsxs("span",{style:{color:p?"#71717a":"#a1a1aa",fontSize:9,flexShrink:0},children:["L",T.line]}),C.jsx("span",{style:{color:p?"#d4d4d8":"#3f3f46",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:'"SF Mono", Menlo, monospace',fontSize:9},children:T.message.length>120?T.message.slice(0,120)+"…":T.message})]},T.id))})]}),c&&C.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",color:p?"#71717a":"#a1a1aa",padding:"0 8px"},children:[s&&C.jsx("div",{style:{width:5,height:5,borderRadius:"50%",backgroundColor:"#f59e0b",flexShrink:0,animation:"codevizPulse 1s infinite"}}),c]}),C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flex:"0 0 auto"},children:[C.jsx("button",{onClick:W,title:y?"Copied!":"Copy code",style:{display:"flex",alignItems:"center",gap:3,border:"none",background:"none",cursor:"pointer",padding:"0 2px",color:y?"#22c55e":X,fontSize:11,fontFamily:"inherit",transition:"color 0.15s"},onMouseEnter:T=>{y||(T.currentTarget.style.color=q)},onMouseLeave:T=>{y||(T.currentTarget.style.color=X)},children:y?C.jsxs(C.Fragment,{children:[C.jsx("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:C.jsx("polyline",{points:"3 8 7 12 13 4"})}),"Copied"]}):C.jsxs(C.Fragment,{children:[C.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[C.jsx("rect",{x:"5",y:"5",width:"9",height:"9",rx:"1.5"}),C.jsx("path",{d:"M3 11V3a1.5 1.5 0 011.5-1.5H11"})]}),"Copy"]})}),C.jsx("span",{style:{color:X},children:i.toUpperCase()}),u]})]})}),C1=I.memo(function({errors:t,theme:r}){const s=r==="dark",i=t.filter(c=>c.severity==="error").length,o=t.filter(c=>c.severity==="warning").length;return C.jsxs("div",{style:{width:"100%",height:"100%",overflow:"auto",backgroundColor:s?"#09090b":"#ffffff",padding:"24px 20px",fontFamily:'"SF Mono", Menlo, Consolas, monospace'},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:16,paddingBottom:12,borderBottom:`1px solid ${s?"#27272a":"#e4e4e7"}`},children:[C.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"#ef4444",strokeWidth:"1.5"}),C.jsx("line",{x1:"8",y1:"4.5",x2:"8",y2:"8.5",stroke:"#ef4444",strokeWidth:"1.5",strokeLinecap:"round"}),C.jsx("circle",{cx:"8",cy:"11",r:"0.75",fill:"#ef4444"})]}),C.jsxs("span",{style:{color:"#ef4444",fontWeight:600,fontSize:13},children:[i," error",i!==1?"s":""]}),o>0&&C.jsxs("span",{style:{color:"#f59e0b",fontSize:12},children:[o," warning",o!==1?"s":""]})]}),t.map(c=>C.jsxs("div",{style:{marginBottom:8,padding:"8px 10px",borderRadius:6,backgroundColor:s?c.severity==="error"?"rgba(239,68,68,0.08)":"rgba(245,158,11,0.08)":c.severity==="error"?"rgba(239,68,68,0.05)":"rgba(245,158,11,0.05)",border:`1px solid ${s?c.severity==="error"?"rgba(239,68,68,0.2)":"rgba(245,158,11,0.2)":c.severity==="error"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)"}`},children:[C.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:3},children:[C.jsx("span",{style:{color:c.severity==="error"?"#ef4444":"#f59e0b",fontWeight:600,fontSize:10,textTransform:"uppercase",letterSpacing:.5},children:c.category}),c.line&&C.jsxs("span",{style:{color:s?"#71717a":"#a1a1aa",fontSize:10},children:["Line ",c.line,c.column?`:${c.column}`:""]})]}),C.jsx("div",{style:{color:s?"#d4d4d8":"#3f3f46",fontSize:11,lineHeight:1.5,wordBreak:"break-word"},children:c.message}),c.sourceContext&&C.jsx("pre",{style:{marginTop:6,padding:"6px 8px",borderRadius:4,backgroundColor:s?"#0f0f0f":"#f9fafb",border:`1px solid ${s?"#1e1e1e":"#e5e7eb"}`,fontSize:10,lineHeight:1.4,overflow:"auto",color:s?"#a1a1aa":"#6b7280",whiteSpace:"pre-wrap"},children:c.sourceContext})]},c.id))]})}),Ge={};function wm(e){Ge[e.id]=e}function _m(e){for(const t of e)Ge[t.id]=t}function Sm(e){delete Ge[e]}function Im(){for(const e of Object.keys(Ge))delete Ge[e]}function Cm(e){return Ge[e]}function Em(){return Object.keys(Ge)}function Tm(){return Object.values(Ge)}function E1(){const e=Object.values(Ge);return e.length===0?"_No templates registered._":e.map(t=>`- **${t.id}**: ${t.description} [keywords: ${t.keywords.join(", ")}]`).join(`
1211
+ `)}function Am(e,t){const r=e.toLowerCase(),s=Object.keys(Ge);let o=t??s[0]??"",c=0;for(const[u,f]of Object.entries(Ge)){let p=0;for(const m of f.keywords)r.includes(m)&&(p+=m.length);p>c&&(c=p,o=u)}return o}function T1(e){return _1.has(e)}function A1(e){switch(e.toLowerCase().replace(/^\./,"")){case"html":case"htm":return"html";case"md":case"markdown":case"mdx":return"markdown";case"mermaid":case"mmd":return"mermaid";case"svg":return"svg";case"csv":case"tsv":return"csv";case"json":case"jsonl":return"json";case"dot":case"gv":case"graphviz":return"dot";case"latex":case"tex":case"katex":return"latex";case"architecture":case"arch":case"drawio":return"architecture";case"jsx":case"js":case"javascript":return"react";case"tsx":case"ts":case"typescript":default:return"react-ts"}}function P1(e,t,r){switch(t){case"html":return{filename:"preview.html",content:e,mime:"text/html"};case"markdown":return{filename:"document.md",content:e,mime:"text/markdown"};case"dot":return{filename:"diagram.dot",content:e,mime:"text/vnd.graphviz"};case"latex":return{filename:"document.tex",content:e,mime:"application/x-latex"};case"architecture":return{filename:"architecture.drawio",content:e,mime:"application/xml"};case"mermaid":return{filename:"diagram.mermaid",content:e,mime:"text/plain"};case"svg":return{filename:"image.svg",content:e,mime:"image/svg+xml"};case"csv":return{filename:"data.csv",content:e,mime:"text/csv"};case"json":return{filename:"data.json",content:e,mime:"application/json"};case"react":case"react-ts":{const s=Jn(e,{filename:t==="react"?"App.jsx":"App.tsx"});if(s.error)return{filename:`component.${r==="jsx"||r==="js"?"jsx":"tsx"}`,content:e,mime:"text/plain"};const i=Ti({}),o=s.code.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${");return{filename:"preview.html",content:`<!DOCTYPE html>
1212
1212
  <html lang="en">
1213
1213
  <head>
1214
1214
  <meta charset="UTF-8">
@@ -1245,7 +1245,7 @@ ${bm(m)}
1245
1245
  </div>
1246
1246
  </div>
1247
1247
  );
1248
- }`,Nm=I.memo(I.forwardRef(function({code:t,language:r="tsx",template:s="react-ts",templateId:i,importMap:o,dependencies:c,cdnBase:u,externalResources:f,tailwindCdn:h,onChange:m,onError:x,onLoad:_,onClose:y,onFullscreenChange:L,showEditor:O=!0,showPreview:F,defaultView:K="split",editorOptions:P,className:j,height:D="100%",width:W="100%",theme:X="dark",readOnly:q=!1,showLoader:T=!0,loader:B,showToolbar:z=!0,showStatusBar:ye=!0,filename:De,hideSplit:$e=!1,footerSlot:Oe,isStreaming:H},ce){const xe=i?Ge[i]:null,ee=(xe==null?void 0:xe.code)??t??Pm,Pe=(xe==null?void 0:xe.language)??r,Be=(xe==null?void 0:xe.type)??s??Ac(Pe),te=F??Tc(Be),[ue,ke]=I.useState(ee),[Le,b]=I.useState([]),[S,C]=I.useState(O?te?K:"code":"preview"),[A,M]=I.useState(!0),[Y,Z]=I.useState(!1),[le,we]=I.useState(!1),oe=Y||(H??!1),Ne=I.useRef(H),Ee=I.useRef(!1),ve=I.useRef(),qe=I.useRef(null),Me=I.useRef(null),nt=I.useRef(0),[Dt,Ot]=I.useState(0),lr=I.useRef(),[ur,ut]=I.useState(ee),je=I.useRef(ee),Tt=I.useRef(t),Ze=I.useRef(!1);I.useEffect(()=>{t!=null&&t!==Tt.current&&t!==je.current&&(Tt.current=t,je.current=t,Ze.current=!0,ke(t),oe||ut(t),queueMicrotask(()=>{Ze.current=!1}))},[t,oe]),I.useEffect(()=>{const Q=Ne.current;if(Ne.current=H,Q&&!H&&!Y&&te){const Ie=je.current;ut(Ie),b([]),M(!0),Ee.current=!0,clearTimeout(ve.current),ve.current=setTimeout(()=>{Ee.current&&(Ee.current=!1,C("preview"))},Wr.PREVIEW_SWITCH_DELAY_MS)}},[H,Y,te]),I.useEffect(()=>{oe&&(S==="preview"||S==="split")&&C("code")},[oe,S]);const[pr,Mt]=I.useState(null),jt=I.useRef(null);I.useEffect(()=>{const Q=()=>{const Ie=je.current;Ie&&navigator.clipboard.writeText(Ie).catch(()=>{const _e=document.createElement("textarea");_e.value=Ie,_e.style.position="fixed",_e.style.opacity="0",document.body.appendChild(_e),_e.select(),document.execCommand("copy"),document.body.removeChild(_e)})};return window.addEventListener("codeviz:copy-request",Q),()=>window.removeEventListener("codeviz:copy-request",Q)},[]),I.useEffect(()=>{const Q=()=>{const Ie=document.fullscreenElement===Me.current;we(Ie),L==null||L(Ie),Ie?C(_e=>(jt.current=_e,te?"preview":"code")):jt.current!=null&&(C(jt.current),jt.current=null)};return document.addEventListener("fullscreenchange",Q),()=>document.removeEventListener("fullscreenchange",Q)},[L,te]);const Cr=I.useCallback(()=>{const Q=Me.current;Q&&(document.fullscreenElement===Q?document.exitFullscreen():Q.requestFullscreen())},[]),Ft=I.useCallback((Q,Ie,_e)=>{const pt=Q.replace(/[^a-zA-Z0-9\-_.]/g,"_"),kt=new Blob([Ie],{type:_e}),gr=URL.createObjectURL(kt),At=document.createElement("a");At.href=gr,At.download=pt,document.body.appendChild(At),At.click(),document.body.removeChild(At),URL.revokeObjectURL(gr)},[]),Tr=I.useCallback(()=>{const Q=je.current,{filename:Ie,content:_e,mime:pt}=Pc(Q,Be,Pe);Ft(Ie,_e,pt)},[Be,Pe,Ft]),hr=I.useCallback(()=>{Ft("document.md",je.current,"text/markdown")},[Ft]),fr=I.useCallback(()=>{const Q=je.current,Ie=`<!DOCTYPE html>
1248
+ }`,Nm=I.memo(I.forwardRef(function({code:t,language:r="tsx",template:s="react-ts",templateId:i,importMap:o,dependencies:c,cdnBase:u,externalResources:f,tailwindCdn:p,onChange:m,onError:x,onLoad:_,onClose:y,onFullscreenChange:L,showEditor:O=!0,showPreview:F,defaultView:K="split",editorOptions:P,className:j,height:D="100%",width:W="100%",theme:X="dark",readOnly:q=!1,showLoader:T=!0,loader:B,showToolbar:z=!0,showStatusBar:ye=!0,filename:De,hideSplit:$e=!1,footerSlot:Oe,isStreaming:H},ce){const xe=i?Ge[i]:null,ee=(xe==null?void 0:xe.code)??t??Pm,Pe=(xe==null?void 0:xe.language)??r,Be=(xe==null?void 0:xe.type)??s??A1(Pe),te=F??T1(Be),[ue,ke]=I.useState(ee),[Le,b]=I.useState([]),[S,E]=I.useState(O?te?K:"code":"preview"),[A,M]=I.useState(!0),[Y,Z]=I.useState(!1),[le,we]=I.useState(!1),oe=Y||(H??!1),Ne=I.useRef(H),Ce=I.useRef(!1),ve=I.useRef(),qe=I.useRef(null),Me=I.useRef(null),nt=I.useRef(0),[Dt,Ot]=I.useState(0),lr=I.useRef(),[ur,ut]=I.useState(ee),je=I.useRef(ee),Tt=I.useRef(t),Ze=I.useRef(!1);I.useEffect(()=>{t!=null&&t!==Tt.current&&t!==je.current&&(Tt.current=t,je.current=t,Ze.current=!0,ke(t),oe||ut(t),queueMicrotask(()=>{Ze.current=!1}))},[t,oe]),I.useEffect(()=>{const Q=Ne.current;if(Ne.current=H,Q&&!H&&!Y&&te){const Ie=je.current;ut(Ie),b([]),M(!0),Ce.current=!0,clearTimeout(ve.current),ve.current=setTimeout(()=>{Ce.current&&(Ce.current=!1,E("preview"))},Wr.PREVIEW_SWITCH_DELAY_MS)}},[H,Y,te]),I.useEffect(()=>{oe&&(S==="preview"||S==="split")&&E("code")},[oe,S]);const[hr,Mt]=I.useState(null),jt=I.useRef(null);I.useEffect(()=>{const Q=()=>{const Ie=je.current;Ie&&navigator.clipboard.writeText(Ie).catch(()=>{const _e=document.createElement("textarea");_e.value=Ie,_e.style.position="fixed",_e.style.opacity="0",document.body.appendChild(_e),_e.select(),document.execCommand("copy"),document.body.removeChild(_e)})};return window.addEventListener("codeviz:copy-request",Q),()=>window.removeEventListener("codeviz:copy-request",Q)},[]),I.useEffect(()=>{const Q=()=>{const Ie=document.fullscreenElement===Me.current;we(Ie),L==null||L(Ie),Ie?E(_e=>(jt.current=_e,te?"preview":"code")):jt.current!=null&&(E(jt.current),jt.current=null)};return document.addEventListener("fullscreenchange",Q),()=>document.removeEventListener("fullscreenchange",Q)},[L,te]);const Er=I.useCallback(()=>{const Q=Me.current;Q&&(document.fullscreenElement===Q?document.exitFullscreen():Q.requestFullscreen())},[]),Ft=I.useCallback((Q,Ie,_e)=>{const ht=Q.replace(/[^a-zA-Z0-9\-_.]/g,"_"),kt=new Blob([Ie],{type:_e}),gr=URL.createObjectURL(kt),At=document.createElement("a");At.href=gr,At.download=ht,document.body.appendChild(At),At.click(),document.body.removeChild(At),URL.revokeObjectURL(gr)},[]),Tr=I.useCallback(()=>{const Q=je.current,{filename:Ie,content:_e,mime:ht}=P1(Q,Be,Pe);Ft(Ie,_e,ht)},[Be,Pe,Ft]),pr=I.useCallback(()=>{Ft("document.md",je.current,"text/markdown")},[Ft]),fr=I.useCallback(()=>{const Q=je.current,Ie=`<!DOCTYPE html>
1249
1249
  <html><head>
1250
1250
  <meta charset="UTF-8">
1251
1251
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@5/github-markdown.min.css">
@@ -1262,7 +1262,7 @@ ${bm(m)}
1262
1262
  document.getElementById('content').innerHTML = marked.parse(${JSON.stringify(Q)});
1263
1263
  setTimeout(() => { window.print(); }, 500);
1264
1264
  <\/script>
1265
- </body></html>`,_e=window.open("","_blank");_e&&(_e.document.write(Ie),_e.document.close())},[]),dr=I.useMemo(()=>{if(Be==="markdown")return[{label:"Download as Markdown (.md)",action:hr},{label:"Download as PDF (Print)",action:fr}]},[Be,hr,fr]),Ar=I.useCallback(Q=>{ke(Q),je.current=Q,Ze.current||(m==null||m(Q),clearTimeout(lr.current),lr.current=setTimeout(()=>{ut(Q)},Wr.EDITOR_DEBOUNCE_MS))},[m]),Pr=I.useCallback(Q=>{Ee.current&&(Ee.current=!1,clearTimeout(ve.current),C("code")),b(Ie=>Ie.some(_e=>_e.message===Q.message)?Ie:[...Ie.slice(-9),Q]),x==null||x(Q)},[x]),Nr=I.useCallback(()=>{M(!1);const Q=Ne.current??!1;!oe&&!Q&&te&&S==="code"&&!Ee.current&&C("preview"),_==null||_()},[_,oe,te,S]);I.useImperativeHandle(ce,()=>({getCode:()=>je.current,setCode:Q=>{Ze.current=!0,Mt(ue),ke(Q),ut(Q),je.current=Q,Tt.current=Q,b([]),queueMicrotask(()=>{Ze.current=!1})},streamCode:Q=>{Ze.current=!0,Y||(Mt(je.current),Z(!0),C("code")),je.current=Q,Tt.current=Q,ke(Q),queueMicrotask(()=>{Ze.current=!1})},commitCode:()=>{Z(!1);const Q=je.current;ke(Q),ut(Q),b([]),M(!0),te&&H==null&&(Ee.current=!0,clearTimeout(ve.current),ve.current=setTimeout(()=>{Ee.current&&(Ee.current=!1,C("preview"))},Wr.PREVIEW_SWITCH_DELAY_MS))},editCode:(Q,Ie)=>{const _e=je.current,pt=_e.indexOf(Q);if(pt===-1)return!1;Ze.current=!0,pr==null&&Mt(_e);const kt=_e.slice(0,pt)+Ie+_e.slice(pt+Q.length);return ke(kt),ut(kt),je.current=kt,Tt.current=kt,queueMicrotask(()=>{Ze.current=!1}),!0},refresh:()=>{nt.current+=1,Ot(nt.current),b([])},setView:Q=>C(Q),getErrors:()=>Le,clearErrors:()=>b([]),isLoading:()=>A})),I.useEffect(()=>{if(i&&Ge[i]){const Q=Ge[i];ke(Q.code),ut(Q.code),je.current=Q.code,Mt(null)}},[i]);const Xt=X==="dark",mr=S==="split"||S==="code",xt=S==="split"||S==="preview",Rr=te&&ur!==ee&&!oe,Lr={display:"flex",flexDirection:"column",width:le?"100vw":typeof W=="number"?`${W}px`:W,height:le?"100vh":typeof D=="number"?`${D}px`:D,overflow:"hidden",borderRadius:le?0:10,border:le?"none":`1px solid ${Xt?"#27272a":"#e4e4e7"}`,backgroundColor:Xt?"#09090b":"#ffffff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},Dr={display:"flex",flexDirection:"row",flex:1,minHeight:0,overflow:"hidden"},Yt={flex:1,minWidth:0,minHeight:0,overflow:"hidden"},Or={flexShrink:0,width:1,backgroundColor:Xt?"#27272a":"#e4e4e7"},Mr=Be==="react-ts"?"react-ts":Be;return E.jsxs("div",{ref:Me,className:j,style:Lr,children:[z&&E.jsx(Sc,{view:S,onViewChange:C,onRefresh:()=>{nt.current+=1,Ot(nt.current),b([])},isLoading:A,theme:X,isStreaming:oe,isFullscreen:le,onFullscreenToggle:Cr,onDownload:dr?void 0:Tr,downloadOptions:dr,onClose:y,hideSplit:$e}),E.jsxs("div",{style:Dr,children:[mr&&E.jsx("div",{style:Yt,children:E.jsx(ya,{code:ue,language:Pe,onChange:Ar,theme:X,readOnly:q||oe,options:P,editorRef:qe,baseCode:pr})}),mr&&xt&&E.jsx("div",{style:Or}),xt&&!oe&&Le.length>0&&E.jsx("div",{style:Yt,children:E.jsx(Ec,{errors:Le,theme:X})}),(xt||Rr&&!xt)&&E.jsx("div",{style:{...Yt,...xt&&!(Le.length>0&&!oe)?{}:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0,pointerEvents:"none"}},children:E.jsx(wc,{code:ur,template:Mr,importMap:o,dependencies:c,cdnBase:u,tailwindCdn:h,externalResources:f,files:void 0,onError:Pr,onLoad:Nr,theme:X,showLoader:T&&xt&&!(Le.length>0&&!oe),loader:B})},Dt)]}),ye&&E.jsx(Ic,{errors:Le,isLoading:A,isStreaming:oe,language:Pe,theme:X,view:S,filename:De,footerSlot:Oe})]})})),Nc={"application/vnd.react":{description:"React TSX component (single file, default export)",extension:".tsx",template:"react-ts",example:"export default function App() { return <h1>Hello</h1>; }"},"text/html":{description:"Static HTML (rendered directly, Tailwind CSS available)",extension:".html",template:"html",example:'<div class="p-4"><h1 class="text-2xl font-bold">Hello</h1></div>'},"text/markdown":{description:"Markdown with Mermaid diagram support (GFM, rendered with github-markdown-css)",extension:".md",template:"markdown",example:`# Hello
1265
+ </body></html>`,_e=window.open("","_blank");_e&&(_e.document.write(Ie),_e.document.close())},[]),dr=I.useMemo(()=>{if(Be==="markdown")return[{label:"Download as Markdown (.md)",action:pr},{label:"Download as PDF (Print)",action:fr}]},[Be,pr,fr]),Ar=I.useCallback(Q=>{ke(Q),je.current=Q,Ze.current||(m==null||m(Q),clearTimeout(lr.current),lr.current=setTimeout(()=>{ut(Q)},Wr.EDITOR_DEBOUNCE_MS))},[m]),Pr=I.useCallback(Q=>{Ce.current&&(Ce.current=!1,clearTimeout(ve.current),E("code")),b(Ie=>Ie.some(_e=>_e.message===Q.message)?Ie:[...Ie.slice(-9),Q]),x==null||x(Q)},[x]),Nr=I.useCallback(()=>{M(!1);const Q=Ne.current??!1;!oe&&!Q&&te&&S==="code"&&!Ce.current&&E("preview"),_==null||_()},[_,oe,te,S]);I.useImperativeHandle(ce,()=>({getCode:()=>je.current,setCode:Q=>{Ze.current=!0,Mt(ue),ke(Q),ut(Q),je.current=Q,Tt.current=Q,b([]),queueMicrotask(()=>{Ze.current=!1})},streamCode:Q=>{Ze.current=!0,Y||(Mt(je.current),Z(!0),E("code")),je.current=Q,Tt.current=Q,ke(Q),queueMicrotask(()=>{Ze.current=!1})},commitCode:()=>{Z(!1);const Q=je.current;ke(Q),ut(Q),b([]),M(!0),te&&H==null&&(Ce.current=!0,clearTimeout(ve.current),ve.current=setTimeout(()=>{Ce.current&&(Ce.current=!1,E("preview"))},Wr.PREVIEW_SWITCH_DELAY_MS))},editCode:(Q,Ie)=>{const _e=je.current,ht=_e.indexOf(Q);if(ht===-1)return!1;Ze.current=!0,hr==null&&Mt(_e);const kt=_e.slice(0,ht)+Ie+_e.slice(ht+Q.length);return ke(kt),ut(kt),je.current=kt,Tt.current=kt,queueMicrotask(()=>{Ze.current=!1}),!0},refresh:()=>{nt.current+=1,Ot(nt.current),b([])},setView:Q=>E(Q),getErrors:()=>Le,clearErrors:()=>b([]),isLoading:()=>A})),I.useEffect(()=>{if(i&&Ge[i]){const Q=Ge[i];ke(Q.code),ut(Q.code),je.current=Q.code,Mt(null)}},[i]);const Xt=X==="dark",mr=S==="split"||S==="code",xt=S==="split"||S==="preview",Rr=te&&ur!==ee&&!oe,Lr={display:"flex",flexDirection:"column",width:le?"100vw":typeof W=="number"?`${W}px`:W,height:le?"100vh":typeof D=="number"?`${D}px`:D,overflow:"hidden",borderRadius:le?0:10,border:le?"none":`1px solid ${Xt?"#27272a":"#e4e4e7"}`,backgroundColor:Xt?"#09090b":"#ffffff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},Dr={display:"flex",flexDirection:"row",flex:1,minHeight:0,overflow:"hidden"},Yt={flex:1,minWidth:0,minHeight:0,overflow:"hidden"},Or={flexShrink:0,width:1,backgroundColor:Xt?"#27272a":"#e4e4e7"},Mr=Be==="react-ts"?"react-ts":Be;return C.jsxs("div",{ref:Me,className:j,style:Lr,children:[z&&C.jsx(S1,{view:S,onViewChange:E,onRefresh:()=>{nt.current+=1,Ot(nt.current),b([])},isLoading:A,theme:X,isStreaming:oe,isFullscreen:le,onFullscreenToggle:Er,onDownload:dr?void 0:Tr,downloadOptions:dr,onClose:y,hideSplit:$e}),C.jsxs("div",{style:Dr,children:[mr&&C.jsx("div",{style:Yt,children:C.jsx(ya,{code:ue,language:Pe,onChange:Ar,theme:X,readOnly:q||oe,options:P,editorRef:qe,baseCode:hr})}),mr&&xt&&C.jsx("div",{style:Or}),xt&&!oe&&Le.length>0&&C.jsx("div",{style:Yt,children:C.jsx(C1,{errors:Le,theme:X})}),(xt||Rr&&!xt)&&C.jsx("div",{style:{...Yt,...xt&&!(Le.length>0&&!oe)?{}:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0,pointerEvents:"none"}},children:C.jsx(w1,{code:ur,template:Mr,importMap:o,dependencies:c,cdnBase:u,tailwindCdn:p,externalResources:f,files:void 0,onError:Pr,onLoad:Nr,theme:X,showLoader:T&&xt&&!(Le.length>0&&!oe),loader:B})},Dt)]}),ye&&C.jsx(I1,{errors:Le,isLoading:A,isStreaming:oe,language:Pe,theme:X,view:S,filename:De,footerSlot:Oe})]})})),N1={"application/vnd.react":{description:"React TSX component (single file, default export)",extension:".tsx",template:"react-ts",example:"export default function App() { return <h1>Hello</h1>; }"},"text/html":{description:"Static HTML (rendered directly, Tailwind CSS available)",extension:".html",template:"html",example:'<div class="p-4"><h1 class="text-2xl font-bold">Hello</h1></div>'},"text/markdown":{description:"Markdown with Mermaid diagram support (GFM, rendered with github-markdown-css)",extension:".md",template:"markdown",example:`# Hello
1266
1266
 
1267
1267
  Some text
1268
1268
 
@@ -1277,7 +1277,7 @@ Alice,30,NYC
1277
1277
  Bob,25,LA`},"application/json":{description:"JSON data with collapsible tree view and syntax highlighting",extension:".json",template:"json",example:'{"users": [{"name": "Alice", "role": "admin"}]}'},"text/vnd.graphviz":{description:"Graphviz DOT diagram with zoom/pan viewer (digraph, subgraph, clusters)",extension:".dot",template:"dot",example:`digraph G {
1278
1278
  A -> B -> C;
1279
1279
  B -> D;
1280
- }`},"application/x-latex":{description:"LaTeX math equations rendered with KaTeX (inline $...$ and display $$...$$)",extension:".tex",template:"latex",example:"The quadratic formula: $$x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}$$"},"application/vnd.architecture":{description:"Architecture diagram using Draw.io XML (mxGraphModel). Supports AWS, GCP, Azure, K8s shapes and all draw.io stencils.",extension:".drawio",template:"architecture",example:'<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>'}};function Rm(){return Nc}function Lm(){return`## Artifact Preview (CodeViz)
1280
+ }`},"application/x-latex":{description:"LaTeX math equations rendered with KaTeX (inline $...$ and display $$...$$)",extension:".tex",template:"latex",example:"The quadratic formula: $$x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}$$"},"application/vnd.architecture":{description:"Architecture diagram using Draw.io XML (mxGraphModel). Supports AWS, GCP, Azure, K8s shapes and all draw.io stencils.",extension:".drawio",template:"architecture",example:'<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>'}};function Rm(){return N1}function Lm(){return`## Artifact Preview (CodeViz)
1281
1281
 
1282
1282
  You can create interactive React or HTML artifacts that render in a live preview.
1283
1283
 
@@ -1301,7 +1301,7 @@ You can create interactive React or HTML artifacts that render in a live preview
1301
1301
  5. **Pick a template**: Start from the closest matching template to save tokens. Edit the template body — don't rewrite imports.
1302
1302
 
1303
1303
  ### Available Templates
1304
- ${Cc()}
1304
+ ${E1()}
1305
1305
 
1306
1306
  ### Template Selection
1307
1307
  Pick the template whose keywords best match the user's request. If unsure, use **singlepage**.
@@ -1314,7 +1314,7 @@ Templates use a **skeleton-first** approach to save tokens. Each template provid
1314
1314
 
1315
1315
  **How to extend:** Pick a template, then replace placeholder components with real content. Keep the layout structure — only modify the body.
1316
1316
 
1317
- ${vc()}
1317
+ ${v1()}
1318
1318
 
1319
1319
  ### Error Handling
1320
1320
  If you receive an error from the preview, fix it by:
@@ -1737,6 +1737,54 @@ function StepWizard({ steps = [], onComplete }) {
1737
1737
  );
1738
1738
  }
1739
1739
 
1740
+ /**
1741
+ * Logo — Ranger/Illuma brand logo SVG.
1742
+ * Adapts to dark/light theme via the dark prop.
1743
+ * Templates use this as a one-liner: <Logo dark={dark} />
1744
+ *
1745
+ * @param dark - Whether to render in dark mode (white text) or light mode (navy text)
1746
+ */
1747
+ function Logo({ dark }) {
1748
+ const f = dark ? '#fff' : '#003';
1749
+ return (
1750
+ <svg xmlns="http://www.w3.org/2000/svg" width={140} height={43} viewBox="0 0 643.9 200" className="flex-shrink-0">
1751
+ <polygon fill={f} points="101.7,92.4 75.8,92.4 67.8,67.8 59.8,92.4 33.9,92.4 54.8,107.7 46.8,132.3 67.8,117.1 88.8,132.3 80.8,107.7"/>
1752
+ <circle cx="67.5" cy="100.3" r="51.5" fill="none" stroke="#C00" strokeWidth="4.4"/>
1753
+ <path fill={f} d="M190.4,70.2h-53.1l-.5,19l1.5,.1c5.6-11.6,11-17,17.1-17h3.2v51.3c0,3.6-2.9,5.2-10,5.5v1.5h30.8V129c-7.1-.2-10-1.8-10-5.5V72.3h3.2c6,0,11.5,5.4,17.2,17l1.5-.1L190.4,70.2z"/>
1754
+ <path fill={f} d="M222.8,120c-3.5,4.6-6.6,7.2-12,7.2c-8.3,0-13.3-6.3-13.3-16.9v-1.9h26.4c.4-5.4-1.1-10.3-4.2-13.6c-3-3.2-7.4-4.9-12.7-4.9c-11,0-19.6,9.3-19.6,21.2c0,11.9,8.1,20.2,19.6,20.2c7.4,0,12.8-3.2,17.1-10.1L222.8,120z M197.5,106.6c.6-9.5,3.7-14.7,8.7-14.7c2.2,0,4,.7,5.2,2.1c2.1,2.3,2.9,6.5,2.3,12.7H197.5z"/>
1755
+ <path fill={f} d="M268.5,129.1c-3.6-.7-4.9-1.7-8.7-7l-10.1-14l6.6-8.2c4.5-5.5,6.9-7.2,11.7-8v-1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,3.2-2.5,6.4-7.2,6.4c-5.9,0-9.1-2.7-14.8-12.5h-1.5v14.7h1.2l2.8-3c2.7,1.7,8.2,3,11.3,3c10.2,0,14.7-6.7,14.7-13.4C342.7,110.5,337.7,107.6,329.6,105.4z"/>
1758
+ <path fill={f} d="M418.6,114c-4.2,9.2-11.5,14.3-20.4,14.3c-15.5,0-20.9-15.1-20.9-28c0-14.3,4.9-29.5,18.7-29.5c8.6,0,15,5.9,19.9,18.6h1.5V68.3h-1.1l-3.7,4c-4.6-2.3-9.8-3.5-15.4-3.5c-18,0-31.6,14-31.6,32.5c0,9.1,2.8,16.9,8.1,22.3c5.3,5.5,12.7,8.4,21.4,8.4c15.5,0,22.5-10.7,25.3-17l-1.8-1z"/>
1759
+ <path fill={f} d="M464.7,127.8l-.5-1.2c-2.3,1-3.9,1.1-4.9,.4c-.9-.6-1.4-2-1.4-4.2v-20c0-8.6-4.9-12.8-15.1-12.8c-9.7,0-16.2,3.6-16.2,9c0,3.1,2.2,5.3,5.2,5.3c3.3,0,5.4-2,5.4-5.3c0-1.6-.8-3.2-2.2-4.6c1.5-1.4,4.1-2.3,6.8-2.3c4.7,0,6.8,2.8,6.8,9.3v6.1c-.7,.3-2.2,.5-4.1,.9c-4,.7-10,1.7-14.2,4.1c-3.3,1.8-5.3,5.1-5.3,8.9c0,2.6,1,5,2.7,6.7c2,2,4.9,3,8.5,3c4.6,0,8.8-2.2,12.7-6.8h.1c.6,4.8,2.6,6.6,7.3,6.6c3.1,0,5.3-1,8.4-3z M448.4,109.5V122c-2.1,2.9-4.9,4.7-7.4,4.7c-4,0-6.2-2.4-6.2-6.8C434.9,114.5,436.8,111.8,448.4,109.5z"/>
1760
+ <path fill={f} d="M490.7,89.8c-4.6,0-8.8,1.9-12.9,5.9v-5.4L462.5,91v1.4c4.9,.1,5.9,1.7,5.9,4.1v46c0,2.5-.9,3-5.9,3.1v1.4h23.7v-1.4c-6.6-.1-8-.6-8-3.1v-13.6c3.3,1.7,6.2,2.4,10.1,2.4c10.8,0,18.4-8.7,18.4-21.3C506.6,97.7,500.4,89.8,490.7,89.8z M478,97.9c2.8-2.9,5.4-4.2,8.4-4.2c6.1,0,10,6.6,10,16.7c0,12.4-3.3,18.7-9.8,18.7c-4.2,0-7-2.1-8.7-6.4V97.9z"/>
1761
+ <path fill={f} d="M520.2,83.4c3.5,0,5.9-2.4,5.9-6c0-3.6-2.3-5.9-5.9-5.9c-3.5,0-5.8,2.5-5.8,6.1C514.4,81.1,516.7,83.4,520.2,83.4z"/>
1762
+ <path fill={f} d="M525.4,126V90.3L509.7,91v1.4c5.3,.1,6.1,2,6.1,4.1V126c0,2.4-1.1,3-6.1,3.1v1.4h22v-1.4C526.1,129,525.4,128.4,525.4,126z"/>
1763
+ <path fill={f} d="M560.5,121.8c-2.1,3.8-4.4,5.7-7,5.7c-3.4,0-4.8-1.9-4.8-6.9V93.9h12.2v-3.1h-12.2V76.4l-9.4,3.4v10.9l-8,1.9V94h8v25.7c0,7.8,3.4,11.6,10.5,11.6c5.3,0,9.2-2.8,12.1-8.7l-1.4-.9z"/>
1764
+ <path fill={f} d="M603.2,126.7c-2.3,1-3.9,1.1-4.9,.4c-.9-.6-1.4-2-1.4-4.2v-20c0-8.6-4.9-12.8-15.1-12.8c-9.7,0-16.2,3.6-16.2,9c0,3.1,2.2,5.3,5.2,5.3c3.3,0,5.4-2,5.4-5.3c0-1.6-.8-3.2-2.2-4.6c1.5-1.4,4.1-2.3,6.8-2.3c4.7,0,6.8,2.8,6.8,9.3v6.1c-.7,.3-2.2,.5-4.1,.9c-4,.7-10,1.7-14.2,4.1c-3.3,1.8-5.3,5.1-5.3,8.9c0,2.6,1,5,2.7,6.7c2,2,4.9,3,8.5,3c4.6,0,8.8-2.2,12.7-6.8h.1c.6,4.8,2.6,6.6,7.3,6.6c3.1,0,5.3-1,8.4-3l-.5-1.2z M587.6,109.5V122c-2.1,2.9-4.9,4.7-7.4,4.7c-4,0-6.2-2.4-6.2-6.8C574.1,114.5,576,111.8,587.6,109.5z"/>
1765
+ <path fill={f} d="M620.9,126V68.5L604.8,69v1.4c6,.2,6.7,1.5,6.7,4.2V126c0,2.3-.8,3-6,3.1v1.4H627v-1.4C621.7,129,620.9,128.3,620.9,126z"/>
1766
+ </svg>
1767
+ );
1768
+ }
1769
+
1770
+ /**
1771
+ * Avatar — User avatar circle with initials.
1772
+ * Default initials "RA" for Ranger. Adapts to dark/light theme.
1773
+ *
1774
+ * @param initials - Two-letter initials to display (default: "RA")
1775
+ * @param dark - Whether to render in dark mode
1776
+ */
1777
+ function Avatar({ initials = 'RA', dark }) {
1778
+ return (
1779
+ <div className={cn(
1780
+ 'flex items-center justify-center w-7 h-7 rounded-full text-xs font-semibold flex-shrink-0',
1781
+ dark ? 'bg-[#00C1D5]/20 text-[#00C1D5]' : 'bg-[#000033]/10 text-[#000033]'
1782
+ )}>
1783
+ {initials}
1784
+ </div>
1785
+ );
1786
+ }
1787
+
1740
1788
  // ── End built-in components ─────────────────────────────────────────────────
1741
- `,Mm=["DataTable","MetricCard","StatusBadge","DetailCard","StepWizard"];exports.BANKING_THEME_CSS=Dm;exports.BUILTIN_COMPONENTS_TSX=Om;exports.BUILTIN_COMPONENT_NAMES=Mm;exports.CodeViz=Nm;exports.EditorPane=ya;exports.ErrorPanel=Ec;exports.Loader=Hs;exports.PREVIEW_TEMPLATES=_c;exports.PreviewPane=wc;exports.RENDERABLE_TYPES=Nc;exports.SPLIT_BREAKPOINT=zs;exports.StatusBar=Ic;exports.TIMINGS=Wr;exports.Toolbar=Sc;exports.buildDownload=Pc;exports.buildImportMap=Ti;exports.buildPreviewHtml=yn;exports.clearTemplates=Im;exports.getAgentSystemPrompt=Lm;exports.getAvailablePackages=vc;exports.getRenderableTypes=Rm;exports.getTemplate=Em;exports.getTemplateIds=Cm;exports.getTemplateSummary=Cc;exports.getTemplates=Tm;exports.hasPreviewSupport=Tc;exports.importMapToScript=Ai;exports.inferTemplate=Ac;exports.pickTemplate=Am;exports.registerTemplate=wm;exports.registerTemplates=_m;exports.templates=Ge;exports.transpile=Jn;exports.transpileFiles=im;exports.unregisterTemplate=Sm;
1789
+ `,Mm=["DataTable","MetricCard","StatusBadge","DetailCard","StepWizard","Logo","Avatar"];exports.BANKING_THEME_CSS=Dm;exports.BUILTIN_COMPONENTS_TSX=Om;exports.BUILTIN_COMPONENT_NAMES=Mm;exports.CodeViz=Nm;exports.EditorPane=ya;exports.ErrorPanel=C1;exports.Loader=Hs;exports.PREVIEW_TEMPLATES=_1;exports.PreviewPane=w1;exports.RENDERABLE_TYPES=N1;exports.SPLIT_BREAKPOINT=zs;exports.StatusBar=I1;exports.TIMINGS=Wr;exports.Toolbar=S1;exports.buildDownload=P1;exports.buildImportMap=Ti;exports.buildPreviewHtml=yn;exports.clearTemplates=Im;exports.getAgentSystemPrompt=Lm;exports.getAvailablePackages=v1;exports.getRenderableTypes=Rm;exports.getTemplate=Cm;exports.getTemplateIds=Em;exports.getTemplateSummary=E1;exports.getTemplates=Tm;exports.hasPreviewSupport=T1;exports.importMapToScript=Ai;exports.inferTemplate=A1;exports.pickTemplate=Am;exports.registerTemplate=wm;exports.registerTemplates=_m;exports.templates=Ge;exports.transpile=Jn;exports.transpileFiles=im;exports.unregisterTemplate=Sm;
1742
1790
  //# sourceMappingURL=index.cjs.map