resolver-egretimp-plus 0.1.5 → 0.1.7
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/theme/element/index.css +1 -1
- package/dist/theme/element/src/index.scss +1 -0
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/components/packages-web/ElSelect.jsx +2 -2
- package/src/components/packages-web/ElText.jsx +1 -1
- package/src/theme/element/index.scss +1 -0
package/dist/web/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__ from"element-plus/es/utils/index.mjs";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_constants_index_mjs_c9f35684__ from"element-plus/es/constants/index.mjs";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_components_icon_index_mjs_cc6cca25__ from"element-plus/es/components/icon/index.mjs";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_hooks_index_mjs_8115c98f__ from"element-plus/es/hooks/index.mjs";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_locale_lang_zh_cn_0728a483__ from"element-plus/es/locale/lang/zh-cn";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_locale_lang_en_79630139__ from"element-plus/es/locale/lang/en";import*as __WEBPACK_EXTERNAL_MODULE__element_plus_icons_vue_349f2d5d__ from"@element-plus/icons-vue";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_be66d3b8__ from"element-plus";import*as __WEBPACK_EXTERNAL_MODULE_vue__ from"vue";import*as __WEBPACK_EXTERNAL_MODULE_vue_router_6389ad97__ from"vue-router";var __webpack_modules__={89932:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(53474),_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(53811),vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(75286),core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(76918),core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(23288),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(26099),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(38781),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(86226),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(56255),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(11393),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(73363),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(64007),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9__),_utils_index_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(17427),_hooks_index_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(90722),_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(44413),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(19022),vue_router__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(11292),_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(44026),_components_loadingComponent_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(30604);function _isSlot(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,vue__WEBPACK_IMPORTED_MODULE_0__.isVNode)(e)}const __WEBPACK_DEFAULT_EXPORT__={name:"AnalysisComponent",inheritAttrs:!1,props:{config:{type:Object,default:function(){return{}}},modelValue:{default:null},component:{type:[Function,Object,String],default:null},rowScope:{type:[Object],default:function(){return null}},mode:{type:String,default:"operate"},additionConfigs:{type:Array,default:function(){return[]}}},emits:["update:modelValue"],setup:function setup(props,_ref){var _context4,emit=_ref.emit,attrs=_ref.attrs,currentAttrs=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){var e=(0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.A)({},attrs);return delete e.onClick,e})),ruleExecuter=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_ruleExecuter"),dialogReq=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_dialogReq",{}),requestTraceId=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("requestTraceId"),polyfillConfigs=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_polyfillConfigs",{}),buttonActions=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("buttonActions",{}),router=(0,vue_router__WEBPACK_IMPORTED_MODULE_14__.useRouter)(),route=(0,vue_router__WEBPACK_IMPORTED_MODULE_14__.useRoute)(),routeQuery=null==route?void 0:route.query,hireRelatMapRules=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("hireRelatMapRules"),components=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("components"),dataLoad=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("dataLoad"),rootForm=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("rootForm"),_axiosInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_axiosInstance"),confirmInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_confirmInstance"),openChildDialogInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_openChildDialogInstance"),messageCb=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_messageCb"),messageInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_messageInstance"),builtPolyfillReq=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_builtPolyfillReq"),rootValue=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("rootValue"),validate=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_validate"),lang=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("lang"),selects=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("selects"),_parentRootValue=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_parentRootValue"),_parentDynamicMapComp=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_parentDynamicMapComp");(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_lang",lang),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_rootValue",rootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"router",router),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"route",route),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_validate",validate),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_rowScope",props.rowScope),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_selects",selects),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_parentRootValue",_parentRootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_parentDynamicMapComp",_parentDynamicMapComp);var instance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)(),appContext=null==instance?void 0:instance.appContext;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"wrapVm",instance);var refFn=function(e){(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"vm",e)},onVnodeMounted=function onVnodeMounted(e){var _props$config,_penddingRules$hireRe,_ruleExecuter$penddin,_props$config2;if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"vmIsBind",!0),props.config.onVnodeMounted&&"function"==typeof props.config.onVnodeMounted){var context={dataLoad};try{props.config.onVnodeMounted.call(context,props,e,selects)}catch(e){console.error("onVnodeMounted error,",e,props.config)}}if(props.config.onMounted){var onMounted=props.config.onMounted;if("string"==typeof onMounted)try{onMounted=eval("(function({props, e, selects}) {\n try {\n ".concat(props.config.onMounted,"\n } catch (error) {\n console.error('onMounted error===:', props, error)\n }\n })"))}catch(e){console.error("parse onMounted error===:",props,e)}"function"==typeof onMounted&&onMounted({props,e,selects})}var hireRelat=null===(_props$config=props.config)||void 0===_props$config?void 0:_props$config.hireRelat,_context,_context2;if(null!==(_penddingRules$hireRe=_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_13__.Vr[hireRelat])&&void 0!==_penddingRules$hireRe&&_penddingRules$hireRe.length&&(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5___default()(_context=_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_13__.Vr[hireRelat]).call(_context,(function(e){var t=e.rules;delete e.rules,_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6___default()((function(){_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_12__.Ay.call(e,t)}),0)})),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_13__.Vr[hireRelat]=null),null!=ruleExecuter&&null!==(_ruleExecuter$penddin=ruleExecuter.penddingRules)&&void 0!==_ruleExecuter$penddin&&null!==(_ruleExecuter$penddin=_ruleExecuter$penddin[hireRelat])&&void 0!==_ruleExecuter$penddin&&_ruleExecuter$penddin.length&&(null==ruleExecuter||_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5___default()(_context2=ruleExecuter.penddingRules[hireRelat]).call(_context2,(function(e){var t=e.rules;delete e.rules,_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6___default()((function(){null==ruleExecuter||ruleExecuter.run(e,t)}),0)})),ruleExecuter.penddingRules[hireRelat]=null),null!==(_props$config2=props.config)&&void 0!==_props$config2&&_props$config2.immediateClickEvent)var unWatch=(0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)(dataLoad,(function(e){e&&_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6___default()((function(){executeClickEvents(),unWatch&&unWatch()}),0)}),{immediate:!0})},onVnodeUnmounted=function(){if(props.config.vmIsBind=!1,props.config.onVnodeUnmounted&&"function"==typeof props.config.onVnodeUnmounted)try{props.config.onVnodeUnmounted(props)}catch(e){console.error("onVnodeUnmounted error,",e,props.config)}},_useVmodels=(0,_hooks_index_js__WEBPACK_IMPORTED_MODULE_11__.K)(props,emit),vModelObjs=_useVmodels.vModelObjs,initVmodels=_useVmodels.initVmodels,modelValue=_useVmodels.modelValue;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"refValue",modelValue);var fnComponentkeys=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([]),_props$component,_props$component2,_props$component3;function getFncomponentProps(){var e,t={};return _babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5___default()(e=fnComponentkeys.value).call(e,(function(e){(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.$3)(props.config,e)&&(t[e]=props.config[e])})),t}"function"==typeof props.component?null===(_props$component=props.component())||void 0===_props$component||_props$component.then((function(e){var t,n;null!=e&&null!==(t=e.default)&&void 0!==t&&t.emits&&initVmodels(null==e||null===(n=e.default)||void 0===n?void 0:n.emits),fnComponentkeys.value=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.SK)((null==e?void 0:e.default)||e)})):null!==(_props$component2=props.component)&&void 0!==_props$component2&&_props$component2.emits&&initVmodels(null===(_props$component3=props.component)||void 0===_props$component3?void 0:_props$component3.emits);var currentComponent=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return"function"==typeof props.component?(0,vue__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent)({loader:props.component,loadingComponent:_components_loadingComponent_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_16__.A}):props.component})),parent=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("parent",null),dynamicMapComp=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("dynamicMapComp"),configLinks=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_context4=[parent]).call(_context4,(0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_18__.A)(props.additionConfigs),[props.config]);_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_8___default()(configLinks).call(configLinks,(function(e,t){var n,r;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"parent",e),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"dynamicMapComp",dynamicMapComp);var i=null!=e&&e.dynamicHireRelat?_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(n=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(r="".concat(null==e?void 0:e.dynamicHireRelat)).call(r,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.$3)(t,"rowIndex")?"[".concat(t.rowIndex,"]"):"","->")).call(n,t.metaCode||""):t.metaCode;return(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"dynamicHireRelat",i),t.dynamicHireRelat&&(dynamicMapComp[t.dynamicHireRelat]=t),t})),(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)("parent",props.config);var _isH5=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_isH5"),_onClick=function(e,t){var n,r,i,o={props,dynamicMapComp,hireRelatMapRules,components,selects,rootValue:null==rootValue?void 0:rootValue.value,dataLoad,rootForm,routeQuery,appContext};null==attrs||null===(n=attrs.onClick)||void 0===n||n.call(o,e),-1!==(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Tn)(_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.UP,(null===(r=props.config)||void 0===r?void 0:r.renderby)||(null===(i=props.config)||void 0===i?void 0:i.metaType))&&executeClickEvents(t)};function executeClickEvents(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Qd)(e)||(e={}),(0,_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_15__.bt)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.A)({},e),{},{builtPolyfillReq,components,props,requestTraceId:null==requestTraceId?void 0:requestTraceId.value,axiosInstance:null==_axiosInstance?void 0:_axiosInstance.value,polyfillConfigs,rootValue:null==rootValue?void 0:rootValue.value,confirmInstance:null==confirmInstance?void 0:confirmInstance.value,dynamicMapComp,openChildDialog:null==openChildDialogInstance?void 0:openChildDialogInstance.value,messageInstance:null==messageInstance?void 0:messageInstance.value,messageCb,buttonActions,lang:null==lang?void 0:lang.value,dialogReq,appContext}))}return(0,vue__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured)((function(e,t,n){var r,i,o,s;console.error("component render failer",(null==lang||null===(r=lang.value)||void 0===r?void 0:_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9___default()(r).call(r,"zh"))>-1?null===(i=props.config)||void 0===i?void 0:i.metaNameZh:null===(o=props.config)||void 0===o?void 0:o.metaNameEn,null===(s=props.config)||void 0===s?void 0:s.metaCode,e,t,n)})),function(){var e,t=getFncomponentProps(),n=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.qg)({config:props.config,props,component:props.component,modelValue,selects,lang:lang.value}),r=null==n?void 0:n.onClick;return delete n.onClick,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.M9)(props.config,lang.value,n,null==_isH5?void 0:_isH5.value,{lang,rootValue,dynamicMapComp,props,messageInstance:null==messageInstance?void 0:messageInstance.value})((0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(currentComponent.value,(0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ref:refFn,onVnodeMounted,onVnodeUnmounted},currentAttrs.value,{onClick:function(e,t){_onClick(e,t),null==r||r(e)}},t,n,vModelObjs),_isSlot(e=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.yo)({config:props.config}))?e:{default:function(){return[e]}}))}}}},76693:(e,t,n)=>{n.d(t,{FR:()=>u,Tl:()=>l,UU:()=>o,Wb:()=>i,_Q:()=>p,aZ:()=>s,dF:()=>c,dL:()=>a,xx:()=>r});var r="/sa-lcp/api/v1/pageConfig/queryPageConfigData",i="/sa-lcp/login",o="/sa-lcp/api/v1/sysparam/getSysParamCache",s="/sa-lcp/changePwd/refreshToken",a="/sa-lcp/api/v1/validate/dataValidRuleExecute",l="/sa-lcp/api/v1/fileopertate/findFileAndContentById",c="/gcweb/External_Mail",u="/gcweb/External_Import",p="/gcweb/External_Export"},71143:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(64007),i=n.n(r),o=(n(2892),n(75286)),s=["labelWidth"],a={slot:"label",class:"custom-label--formItem"},l={class:"custom-label-content"},c={key:0,class:"label-required"},u={class:"label-text"};const p={__name:"index",props:{messageInstance:{type:[Object,Function],default:function(){return null}},config:{type:Object,default:function(){return{}}},lang:{type:String,default:"zh"},labelWidth:[String,Number]},setup:function(e){var t=e,n=(0,o.useAttrs)(),r=(0,o.computed)((function(){var e;return"1"==t.config.labelHidden||0==t.config.labelWidth||"0"==t.config.labelWidth?"":(i()(e=t.lang).call(e,"zh")>-1?t.config.metaNameZh:t.config.metaNameEn)||""})),p=(0,o.computed)((function(){return t.config.labelPosition?t.config.labelPosition:"left"}));function f(){var e,n;null===(e=messageInstance)||void 0===e||e.text(i()(n=t.lang).call(n,"zh")>-1?t.config.hintContentZh:t.config.hintContentEn)}return function(e,i){return(0,o.openBlock)(),(0,o.createElementBlock)("cmi-form-item",(0,o.mergeProps)((0,o.unref)(n),{class:["custom-form-item-h5",[{"--required":"1"==t.config.requiredFlag,"--label-hide":!p.value,"--label-text-left":"left"===e.labelPosition,"--label-text-right":"right"===e.labelPosition},e.customClass]],labelWidth:t.labelWidth}),[(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("div",l,["1"==t.config.requiredFlag?((0,o.openBlock)(),(0,o.createElementBlock)("span",c,"*")):(0,o.createCommentVNode)("v-if",!0),(0,o.createElementVNode)("span",u,(0,o.toDisplayString)(r.value),1),"1"==t.config.hintFlag?((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:1,class:"label-tip",onClick:f},i[0]||(i[0]=[(0,o.createElementVNode)("cmi-icon-question-circle",{size:"14"},null,-1)]))):(0,o.createCommentVNode)("v-if",!0)])]),(0,o.renderSlot)(e.$slots,"default")],16,s)}}};n(38709);const f=(0,n(66262).A)(p,[["__scopeId","data-v-d2c369a2"]])},85845:(e,t,n)=>{n.d(t,{D:()=>o});var r=n(75286),i=n(24691);function o(e){var t=e.showTooltip,n=e.offset,o=e.displayValue,s=e.calcFn,a=(e.config,(0,r.ref)(!1)),l=(0,r.ref)(!1),c=(0,r.ref)(null),u=(0,r.ref)(!1),p=(0,r.ref)(null),f=(0,r.ref)(null);function d(e){return s?s(e):(0,i.fW)(e,0)}var h,m,y=(h=null,m=null,{clear:function(){h&&h(),m&&window.removeEventListener("resize",m)},calc:function(){this.clear();var e=d(p.value),t=(0,i.fW)(f.value,0-n.value);u.value=e<t,h=(0,r.watch)((function(){return o.value}),(function(o){(0,r.nextTick)((function(){t=(0,i.fW)(f.value,0-n.value),u.value=e<t}))})),m=function(){e=d(p.value),u.value=e<t},window.addEventListener("resize",m)}}),g=(0,r.computed)((function(){var e={};return t.value&&(e.onMouseenter=function(e){l.value=!0,c.value=null==e?void 0:e.target},e.onMouseleave=function(){l.value=!1,a.value||(c.value=null)}),e})),v=(0,r.computed)((function(){var e={onFocus:function(){if(a.value=!0,t.value){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];c.value=null==r||null===(e=r[0])||void 0===e?void 0:e.target}},onBlur:function(){a.value=!1,t.value&&(l.value||(c.value=null))}};return e}));return(0,r.onMounted)((function(){(0,r.watch)(t,(function(e){e&&(null==y||y.calc())}),{immediate:!0})})),(0,r.onUnmounted)((function(){null==y||y.clear()})),{isFocus:a,isEnter:l,generateTooltipWrap:function(e,n){var i=(n||{}).maintain,s=void 0!==i&&i,a=(0,r.defineComponent)(e);return s&&!t.value?(0,r.createVNode)(a,null,null):(0,r.createVNode)("div",{class:"resolver-calc-contrainer custom-error-tip-block"},[(0,r.createVNode)("span",{ref:function(e){return f.value=e},class:"resolver-calc-span"},[o.value]),u.value?(0,r.createVNode)((0,r.resolveComponent)("el-tooltip"),{placement:"top",visible:u.value&&!!c.value,content:o.value,virtualTriggering:!0,virtualRef:c.value},null):null,(0,r.createVNode)("div",(0,r.mergeProps)({class:"resolver-calc-wrap"},g.value,{ref:function(e){return p.value=e}}),[(0,r.createVNode)(a,v.value,null)])])}}}},44026:(e,t,n)=>{n.d(t,{bt:()=>$,fs:()=>q,nK:()=>D});var r=n(37891),i=n(53811),o=n(34963),s=(n(48598),n(44114),n(27495),n(71761),n(73363)),a=n.n(s),l=n(86226),c=n.n(l),u=n(64007),p=n.n(u),f=n(48079),d=n.n(f),h=n(14166),m=n.n(h),y=n(50697),g=n.n(y),v=n(71426),b=n.n(v),_=n(61240),E=n.n(_),x=n(36586),S=n.n(x),w=n(12935),T=n(76693),A=n(19022),P=n(157),O=n(17427),C=n(52644);function k(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=n;return"string"==typeof n&&(r=n.split(".")),null!==(e=a()(r).call(r,(function(e,t){return e?e[t]:null}),t))&&void 0!==e?e:""}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=t;"string"==typeof t&&(r=t.split("."));var i=e;c()(r).call(r,(function(e,t){t+1===r.length?i[e]=null!=n?n:"":(i[e]||(i[e]={}),i=i[e])}))}function j(e){return N.apply(this,arguments)}function N(){return(N=(0,o.A)((0,r.A)().mark((function e(t){var n,i,o,s,a,l,c,u,p,f,d,h,m,y,v,_,E;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=t.serviceList,i=void 0===n?[]:n,o=t.requestTraceId,s=t.axiosInstance,a=t.dialogReq,l=t.dynamicMapComp,c=t.rootValue,u=t.dynamicHireRelat,p=t.messageCb,f=t.compConfig,d=t.messageInstance,h=t.lang,m=t.beforeRequestService,y=t.afterRequestService,v=g()(l),_=b()(i).call(i,(function(e){return"1"==e.serviceType})),E=0;E<i.length;E++)D(i[E],{dynamicMapComp:l,requestTraceId:o,dialogReq:a,mixinServiceConfig:_,rootValue:c,dynamicMapCompKeys:v,dynamicHireRelat:u,axiosInstance:s,messageCb:p,compConfig:f,messageInstance:d,lang:h,beforeRequestService:m,afterRequestService:y});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e,t){return M.apply(this,arguments)}function M(){return M=(0,o.A)((0,r.A)().mark((function e(t,n){var s,a,l,c,u,p,f,d,h,m,y,g,v,b,_,x,T,A,C,j,N,D,M,B,F,U,V,$,W,K,z,H,G,Q,X,Y,J,Z,ee,te,ne,re;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.dynamicMapComp,l=n.requestTraceId,n.dialogReq,c=n.mixinServiceConfig,u=n.rootValue,p=n.dynamicMapCompKeys,f=n.dynamicHireRelat,d=n.axiosInstance,h=n.messageCb,m=n.compConfig,y=n.messageInstance,g=n.lang,v=n.beforeRequestService,b=n.afterRequestService,_=u||{},x=null,T=(0,O.Ho)({extendAttr:t.extendAttr}),A=null,C=null,((j=null==m?void 0:m.beforeRequestService)||v)&&(A=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return v&&(t=null==v?void 0:v.apply(void 0,i)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!j){e.next=12;break}return e.abrupt("return",null==j?void 0:j.apply(void 0,i));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((N=null==m?void 0:m.afterRequestService)||b)&&(C=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),i=0;i<t;i++)n[i]=o[i];return e.next=3,null==b?void 0:b.apply(void 0,n);case 3:return e.next=5,null==N?void 0:N.apply(void 0,n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),"1"==t.transactionType&&(_=L(t.inParamMappingList||[],{emptyUpdate:!0,dynamicMapComp:a,dynamicMapCompKeys:p,dynamicHireRelat:f}),x=q(t.outParamMappingList,{dynamicMapComp:a,dynamicMapCompKeys:p,dynamicHireRelat:f}),null!==(D=x)&&void 0!==D&&D.vm&&((0,w.b0)(null===(M=x.vm.page)||void 0===M?void 0:M.pageNum)||(0,w.kZ)(null===(B=x.vm.page)||void 0===B?void 0:B.pageNum)||I(_,t.pageNum||"pageNum",null===(V=x.vm.page)||void 0===V?void 0:V.pageNum),(0,w.b0)(null===(F=x.vm.page)||void 0===F?void 0:F.pageSize)||(0,w.kZ)(null===(U=x.vm.page)||void 0===U?void 0:U.pageSize)||I(_,t.pageSize||"pageSize",null===($=x.vm.page)||void 0===$?void 0:$.pageSize)),_=(0,i.A)({},_)),W=t.serviceCode,K=t.httpMethod||"post",z={aid_language:g,requestTraceId:l,pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==c?void 0:c.mainServiceCode}},(null==T?void 0:T.notDefaultParmas)&&(z={}),z=(0,i.A)((0,i.A)({},z),_),H=!0,A&&(H=A({dynamicMapComp:a,requestTraceId:l,mixinServiceConfig:c,rootValue:u,dynamicHireRelat:f,compConfig:m,service:t,reqData:z})),e.next=21,H;case 21:if(!1!==e.sent){e.next=24;break}return e.abrupt("return");case 24:return G={url:W,method:K,data:z},"get"===K.toLocaleLowerCase()&&(G.params=z,delete G.data),e.next=28,d&&d(G);case 28:if(Q=e.sent,!C){e.next=32;break}return e.next=32,C(Q,{dynamicMapComp:a,requestTraceId:l,mixinServiceConfig:c,rootValue:u,dynamicHireRelat:f,compConfig:m,service:t,reqData:z});case 32:if(X="get"===K.toLocaleLowerCase()||"1"==t.transactionType||(null==T?void 0:T.noSuccessIip),(0,P.N)(null==Q?void 0:Q.data,y,{messageCb:h,service:t,compConfig:m,noSuccessIip:X})){e.next=37;break}return e.next=36,E().reject();case 36:return e.abrupt("return");case 37:R(t.outParamMappingList,{dynamicMapComp:a,dynamicMapCompKeys:p,dynamicHireRelat:f,outResult:Q.data}),null!==(s=x)&&void 0!==s&&s.vm&&(Z=null===(Y=Q.data)||void 0===Y?void 0:Y.result,ee=t.pageTotalCount,te=/^_deep:(.+)$/,(ne=null===(J=t.pageTotalCount)||void 0===J?void 0:J.match(te))&&(Z=Q.data,ee=ne[1]),re=S()(k(Z||{},ee||"pageCount")),x.vm.page.total=re);case 39:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.emptyUpdate,r=t.dynamicMapComp,i=t.dynamicMapCompKeys,o=t.dynamicHireRelat;return a()(e).call(e,(function(e,t){var s,a=t.orignParam,l=void 0===a?"":a,c=t.destParam,u=void 0===c?"":c,f=(0,A.qK)(i,l,o);f.length>1&&console.error("search arg muti",t,f);var d=f[0],h=null==r||null===(s=r[d])||void 0===s?void 0:s.refValue;return(((0,w.b0)(h)||(0,w.kZ)(h))&&n||!(0,w.b0)(h)&&!(0,w.kZ)(h))&&I(e,-1!==(null==u?void 0:p()(u).call(u,"->"))?(null==u?void 0:u.split("->"))||[]:(null==u?void 0:u.split("."))||[],(0,w.b0)(h)||(0,w.kZ)(h)?"":h),e}),{})}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.dynamicMapComp,r=t.dynamicMapCompKeys,i=t.dynamicHireRelat,o=t.outResult,s=void 0===o?{}:o;c()(e).call(e,(function(e){var t=e.orignParam,o=void 0===t?"":t,l=e.destParam,c=void 0===l?"":l,u=e.isList,p=void 0!==u&&u,f=e.primaryKeys,h=void 0===f?[]:f,y=(0,A.qK)(r,c,i);y.length>1&&console.error("search arg muti",e,y);var g=y[0],v=n[g];if(v){var b=o?null==o?void 0:o.split("."):[],_=a()(b).call(b,(function(e,t){if(e)return e[t]}),s);p&&((0,w.cy)(_)?(0,w.cy)(v.refValue)&&(0,w.cy)(_)&&(_=(0,O.q2)(v.refValue,_,(function(e,t){var n;return!(!h||!h.length)&&(null===(n=d()(h).call(h,(function(n){return((0,w.sw)(e[n])||(0,w.sw)(t[n]))&&e[n]==t[n]})))||void 0===n?void 0:m()(n).call(n,(function(e){return e})))}))):_=(0,w.cy)(v.refValue)?v.refValue:[]),v.refValue=_}}))}function q(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.dynamicMapComp,r=t.dynamicMapCompKeys,i=t.dynamicHireRelat,o=0;o<e.length;o++){var s=e[o],a=s.destParam,l=void 0===a?"":a,c=(0,A.qK)(r,l,i);c.length>1&&console.error("search arg muti",s,c);var u=c[0];if(u){var p=n[u];if("CustomComponentTable"===p.metaType)return p}}}function B(e){var t,n=e.beforeOpenDialog,s=e.afterOpenDialog,l=e.middleOpenDialog,u=e.components,p=e.rootValue,f=e.polyfillConfigs,h=e.pagePopupMap,m=e.axiosInstance,y=e.dynamicMapComp,v=e.dynamicHireRelat,b=e.lang,_=e.buttonActions,E=e.openChildDialog,x=e.appContext,S=e.compConfig,w=(0,O.Ho)({extendAttr:h.extendAttr}),T=h.popupBusiIdentityId,A=g()(y),P=L(h.inParamMappingList||[],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v}),C="1"==(null==h?void 0:h.objOrList),k=(null==h||null===(t=h.outParamMappingList)||void 0===t?void 0:d()(t).call(t,(function(e){var t=e.orignParam?e.orignParam.split("->"):[],n=e.orignParam?"1"!=(null==w?void 0:w.bindFormData)||C?t[t.length-1]:t.join("."):"";return(0,i.A)((0,i.A)({},e),{},{orignParam:n})})))||[],I={},j={};if(C){var N,D=[];I=null===(N=k)||void 0===N?void 0:a()(N).call(N,(function(e,t){var n=t.orignParam,r=t.destParam,i=t.primaryKeyFlag,o=void 0===i?"":i,s=r?r.split("->"):[];return e[r?s[s.length-1]:""]=n,"1"==o&&D.push(n),e}),{});var M=q(k=[{orignParam:"",destParam:h.parentTable||"",primaryKeys:D,isList:!0}],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v});j.selections=(null==M?void 0:M.refValue)||[],j.primaryKeys=D}var B={},F={},U=null,V={};h.outDisplayTrigger&&(V[h.outDisplayTrigger]=function(e){return{onClick:function(){var e,t=B.tableSelectedInfo;C&&(t=null===(e=B.tableSelectedInfo)||void 0===e?void 0:d()(e).call(e,(function(e){var t,n=(0,i.A)({},e);return c()(t=g()(I)).call(t,(function(t){I[t]&&(n[t]=e[I[t]])})),n}))),"1"!=(null==w?void 0:w.bindFormData)||C||(t=F);var n=null==S?void 0:S.middleOpenDialog,s=l;(n||s)&&(l=function(){var e=(0,o.A)((0,r.A)().mark((function e(t){var o,a;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null,s&&(o=null==s?void 0:s(t)),!o){e.next=7;break}return e.next=5,o;case 5:return a=e.sent,e.abrupt("return",null==n?void 0:n((0,i.A)((0,i.A)({},t),{},{outputParams:a})));case 7:return e.abrupt("return",null==n?void 0:n(t));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());var a=t;function u(e){var t;R(k,{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v,outResult:e}),null===(t=U)||void 0===t||t(),z(e)}l&&(a=l({dynamicMapComp:y,rootValue:p,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:P,outputParams:t})||a),(0,O.yL)(a)?a.then((function(e){u(e)})):u(a)}}}),h.closedTrigger&&(V[h.closedTrigger]=function(e){return{onClick:function(){var e;null===(e=U)||void 0===e||e(),z()}}});var $=null==S?void 0:S.beforeOpenDialog,W=n;($||W)&&(n=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return W&&(t=null==W?void 0:W.apply(void 0,i)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!$){e.next=12;break}return e.abrupt("return",null==$?void 0:$.apply(void 0,i));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());var K=!0;function z(e){var t=null==S?void 0:S.afterOpenDialog,n=s;(t||n)&&(s=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var i,o,s,a=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=a.length,o=new Array(i),s=0;s<i;s++)o[s]=a[s];null==n||n.apply(void 0,o),null==t||t.apply(void 0,o);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),s&&s({dynamicMapComp:y,rootValue:p,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:P,outputParams:e})}function H(){U=E({buttonActions:_,dialogProps:(0,i.A)((0,i.A)({},w||{}),{},{beforeClose:function(){z()}}),parentRootValue:p,parentDynamicMapComp:y,selectionsObj:j,busiIdentityId:T,axiosInstance:m,lang:b,loadEvnetsReq:P,initData:P,components:u,parentSelects:null==S?void 0:S._selects,polyfillConfigs:(0,i.A)((0,i.A)({},V),f||{}),rootStoreChange:function(e){B=e},rootDataChange:function(e){F=e}},x)}n&&(K=n({dynamicMapComp:y,rootValue:p,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:P})),null!=K?(0,O.yL)(K)?K.then((function(e){!1!==e&&H()})):K&&H():H()}function F(e,t){return U.apply(this,arguments)}function U(){return U=(0,o.A)((0,r.A)().mark((function e(t,n){var s,a,l,c,u,f,d,h,m,y,g,v,b,_,x,S,w,A,O,k,I,j,N,D,M,L;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=n.beforeDataValidRequestService,c=n.afterDataValidRequestService,u=n.confirmInstance,f=n.dynamicMapComp,d=n.requestTraceId,h=n.compConfig,m=n.mixinServiceConfig,y=n.rootValue,g=n.builtPolyfillReq,n.axiosInstance,v=n.lang,b=y||{},_=T.dL,((w=null==h?void 0:h.beforeDataValidRequestService)||l)&&(x=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return l&&(t=null==l?void 0:l.apply(void 0,i)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!w){e.next=12;break}return e.abrupt("return",null==w?void 0:w.apply(void 0,i));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((A=null==h?void 0:h.afterDataValidRequestService)||c)&&(S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==c||c.apply(void 0,t),null==A||A.apply(void 0,t)}),O=!0,x&&(O=x({dynamicMapComp:f,requestTraceId:d,mixinServiceConfig:m,rootValue:y,compConfig:h,service:t,reqData:b})),e.next=11,O;case 11:if(!1!==e.sent){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,(0,C.ZW)(_,(0,i.A)((0,i.A)((0,i.A)({aid_language:v,requestTraceId:d},b),g||{}),{},{pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==m?void 0:m.mainServiceCode}}),{method:"post"});case 16:if(k=e.sent,I=k.data||{},null!==(s=k.data)&&void 0!==s&&s.baseResponse&&(I=null===(j=k.data)||void 0===j?void 0:j.baseResponse),N=I.resultCode,D=(null===(a=I)||void 0===a?void 0:a.resultMessage)||"",M="",L=!1,P.O.SUCCESS===N){e.next=40;break}e.t0=N,e.next=e.t0===P.O.WARNING?27:e.t0===P.O.ERROR?30:e.t0===P.O.INFO?33:e.t0===P.O.OTHER?35:37;break;case 27:return M="warning",L=!0,e.abrupt("break",39);case 30:return M="error",L=!1,e.abrupt("break",39);case 33:return M="info",e.abrupt("break",39);case 35:case 37:return M="error",e.abrupt("break",39);case 39:return e.abrupt("return",new(E())((function(e,t){u(D,(null==v?void 0:p()(v).call(v,"zh"))>-1?"提示":"Hint",{type:M,showCancelButton:L}).then((function(){L?(S&&S(k,{valid:!0}),e(!0)):(S&&S(k,{valid:!1}),e(!1))})).catch((function(){S&&S(k,{valid:!1}),t(!1)}))})));case 40:return S&&S(k,{valid:!0}),e.abrupt("return",!0);case 42:case"end":return e.stop()}}),e)}))),U.apply(this,arguments)}function V(e){if("1"==(null==e?void 0:e.closedType)){var t=window.top;null==t||t.close()}else{var n;null===(n=window)||void 0===n||null===(n=n.history)||void 0===n||n.back()}}function $(){return W.apply(this,arguments)}function W(){return W=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s,a,l,c,u,p,f,d,h,m,y,g,v,_,E,x,S,w,T,A,P,O,C,k,I,N,D,M,L,R,q,U=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(n=U.length>0&&void 0!==U[0]?U[0]:{}).beforeDataValidRequestService,o=n.afterDataValidRequestService,s=n.beforeRequestService,a=n.afterRequestService,l=n.beforeOpenDialog,c=n.afterOpenDialog,u=n.middleOpenDialog,p=n.components,f=n.props,d=n.requestTraceId,h=n.axiosInstance,m=n.polyfillConfigs,y=n.buttonActions,g=n.rootValue,v=n.confirmInstance,_=n.dialogReq,E=n.dynamicMapComp,x=n.messageInstance,S=n.openChildDialog,w=n.messageCb,T=n.lang,A=n.builtPolyfillReq,P=n.appContext,O=f.config.lcpPageServiceMapVOList||[],C=b()(O).call(O,(function(e){return"1"==e.serviceType})),null==(k=(null===(t=f.config)||void 0===t?void 0:t.lcpPageRuleVOList)||[])||!k.length){e.next=11;break}return I=k[0],e.next=8,F(I,{dynamicMapComp:E,requestTraceId:d,rootValue:g,axiosInstance:h,mixinServiceConfig:C,compConfig:f.config,confirmInstance:v,builtPolyfillReq:A,beforeDataValidRequestService:i,afterDataValidRequestService:o,lang:T});case 8:if(e.sent){e.next=11;break}return e.abrupt("return");case 11:null!=O&&O.length&&(D=null===(N=f.config)||void 0===N?void 0:N.dynamicHireRelat,j({serviceList:O,axiosInstance:h,requestTraceId:d,rootValue:g,dynamicMapComp:E,dynamicHireRelat:D,messageInstance:x,messageCb:w,compConfig:f.config,dialogReq:_,lang:T,beforeRequestService:s,afterRequestService:a})),(M=f.config.lcpPagePopupMapVO)&&(R=null===(L=f.config)||void 0===L?void 0:L.dynamicHireRelat,B({beforeOpenDialog:l,afterOpenDialog:c,middleOpenDialog:u,components:p,rootValue:g,polyfillConfigs:m,pagePopupMap:M,axiosInstance:h,dynamicMapComp:E,dynamicHireRelat:R,appContext:P,lang:T,messageCb:w,buttonActions:y,openChildDialog:S,compConfig:f.config})),(q=f.config.lcpPageClosedMapVO)&&V(q);case 16:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}},7365:(e,t,n)=>{n.d(t,{Mn:()=>v,QT:()=>_,o7:()=>E});var r=n(37891),i=n(53811),o=n(34963),s=n(71426),a=n.n(s),l=n(86226),c=n.n(l),u=n(50697),p=n.n(u),f=(n(11393),n(56255),n(96319)),d=n.n(f),h=n(61240),m=n.n(h),y=(n(44413),n(19022),n(17427)),g=n(157);function v(){return b.apply(this,arguments)}function b(){return b=(0,o.A)((0,r.A)().mark((function e(){var t,n,o,s,l,c,u,p,f,h,v,b,_,E,x,S,w,T,A,P,O,C,k,I,j,N=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=N.length>0&&void 0!==N[0]?N[0]:[],o=(n=N.length>1?N[1]:void 0).alongLoad,s=n.requestTraceId,l=n.businessIdentityReqData,c=void 0===l?{}:l,u=n.axiosInstance,p=n.messageInstance,f=n.reqData,h=n.respCb,v=n.loadEventsBefore,b=n.notLoadCb,o||null==f||!f.notLoad){e.next=5;break}return b&&b(),e.abrupt("return");case 5:if(delete(0,i.A)({},f||{}).notLoad,_=d()(t).call(t,(function(e){return"1"==e.eventType})),E=a()(t).call(t,(function(e){return"1"==e.serviceType})),_&&_.length){e.next=12;break}return b&&b(),e.abrupt("return");case 12:x=0;case 13:if(!(x<_.length)){e.next=49;break}if(T=_[x],A=T.serviceCode,P=T.httpMethod||"post",O=(0,i.A)({requestTraceId:s,pmHandleBusinessIdentity:(0,i.A)({busiIdentityId:T.busiIdentityId,pageMetaId:T.pageMetaId,tenantId:T.tenantId,mainServiceCode:null==E?void 0:E.mainServiceCode},c)},f||{}),C={url:A,method:P,data:O},"get"===P.toLocaleLowerCase()&&(C.params=O,delete C.data),!v||"function"!=typeof v){e.next=36;break}if(k=!0,v&&(k=v({reqConfig:C})),null==k){e.next=36;break}if(!(0,y.yL)(k)){e.next=33;break}return e.next=27,k;case 27:if(!1!==(k=e.sent)){e.next=30;break}return e.abrupt("return");case 30:(0,y.Qd)(k)&&(C=k),e.next=36;break;case 33:if(!1!==k){e.next=36;break}return console.warn("请求中断"),e.abrupt("return");case 36:return e.next=38,u.value&&u.value(C);case 38:if(I=e.sent,!(0,g.N)(I.data,p,{noSuccessIip:!0})){e.next=42;break}return h&&h(null==I||null===(j=I.data)||void 0===j?void 0:j.result),e.abrupt("return");case 42:return h&&h({}),null==p||null===(S=p.value)||void 0===S||S.error((null==I||null===(w=I.data)||void 0===w?void 0:w.resultMessage)||""),e.next=46,m().reject();case 46:x++,e.next=13;break;case 49:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function _(e){var t,n=null==e||null===(t=e.pmPageMetaList)||void 0===t?void 0:a()(t).call(t,(function(e){return"PC-root-panel"===e.metaCode||"H5-root-panel"===e.metaCode}));return n&&(e.pmPageMetaList=n.pmPageMetaList,delete n.pmPageMetaList,e.rootOptionComp=n),e}function E(e){var t;c()(t=p()(e)).call(t,(function(t){(0,y.$3)(e[t],"eventInit")&&(e[t].eventInit=!1)}))}},75905:(e,t,n)=>{n.r(t),n.d(t,{default:()=>V});var r=n(49859),i=n(53474),o=n(53811),s=n(75286),a=(n(76918),n(23288),n(2892),n(26099),n(27495),n(38781),n(25440),n(73363)),l=n.n(a),c=n(50697),u=n.n(c),p=n(66615),f=n.n(p),d=n(48079),h=n.n(d),m=n(36586),y=n.n(m),g=n(18979),v=n.n(g),b=n(129),_=n.n(b),E=n(96319),x=n.n(E),S=n(71426),w=n.n(S),T=n(31721),A=n.n(T),P=n(14166),O=n.n(P),C=n(8628),k=n.n(C),I=n(74707),j=n.n(I),N=n(86226),D=n.n(N),M=n(64007),L=n.n(M),R=n(11393),q=n.n(R),B=n(84061),F=n(50510),U=n(17427);n(58843),n(7365);const V={inheritAttrs:!1,name:"CustomComponentTable",props:(0,o.A)((0,o.A)((0,o.A)({},U.yz),B.ElTable.props),B.ElPagination.props),setup:function(e,t){var n,a=t.expose,c=t.attrs,p=t.emit,d=(0,s.computed)({get:function(){return e.modelValue},set:function(e){p("update:modelValue",e)}}),m=(0,s.computed)((function(){var t,n=l()(t=u()(B.ElTable.props)).call(t,(function(t,n){return void 0!==e[n]&&null!==e[n]&&(t[n]=e[n]),t}),{});return n.border||(n.border=!0),n.stripe||(n.stripe=!0),n})),g=function(e){var t=e.emits;return f()(t)||(t=u()(t)),l()(t).call(t,(function(e,t){var n="on".concat((0,U.ZH)((0,U.PT)(t)));return(0,U.$3)(c,n)&&(e[n]=c[n]),e}),{})},b=(0,s.computed)((function(){return g(B.ElTable)})),E=(0,s.computed)((function(){var e=(0,o.A)({},b.value||{});return delete e.onSortChange,e})),S=(0,s.computed)((function(){return g(B.ElPagination)})),T=((0,s.inject)("_ruleExecuter"),(0,s.inject)("dynamicMapComp"),(0,s.inject)("_parentRootValue",{})),P=(0,s.inject)("_parentDynamicMapComp",{}),C=(0,s.inject)("_selectionsObj",{}),I=(0,s.inject)("_rootStore",{}),N=(0,s.inject)("lang"),M=(0,s.inject)("rootValue"),R=(0,s.inject)("selects"),V=(0,s.ref)(""),$=(0,s.computed)((function(){var t=e.config.pmPageMetaList||[];return h()(t).call(t,(function(t){return t.displayType===U.Op||0==e.width||"0px"==e.width||"1"==t.hidden||V.value||(V.value=t.metaCode),Z(t)}))})),W=5;null!==(n=e.config)&&void 0!==n&&n.pageSize&&(W=y()(e.config.pageSize)||5);var K=(0,s.reactive)({pageNum:1,pageSize:W,total:0}),z=(0,s.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.frontPageFlag)})),H=(0,s.computed)((function(){var e;return z.value?(null===(e=d.value||[])||void 0===e?void 0:e.length)||0:K.total})),G=(0,s.computed)((function(){var e;return z.value?v()(e=d.value||[]).call(e,(K.pageNum-1)*K.pageSize,K.pageNum*K.pageSize):d.value||[]})),Q=(0,s.ref)(null),X=function(e){var t,n,r=e.prop,i=e.order;null===(t=b.value)||void 0===t||null===(n=t.onSortChange)||void 0===n||n.call(t,{prop:r,order:i}),Q.value=null,i&&(Q.value={prop:r,order:i})},Y=(0,s.computed)((function(){if(!Q.value)return[];var e=[Q.value];return l()(e).call(e,(function(e,t){return _()(e).call(e,(function(e,n){return""===e[t.prop]||void 0===e[t.prop]||null===e[t.prop]?"descending"===t.order?1:-1:""===n[t.prop]||void 0===n[t.prop]||null===n[t.prop]||e[t.prop]>n[t.prop]?"descending"===t.order?-1:1:e[t.prop]===n[t.prop]?0:"descending"===t.order?1:-1}))}),(0,i.A)(G.value||[]))})),J=(0,s.computed)((function(){return Q.value?Y.value:G.value})),Z=function(e){return(0,o.A)((0,o.A)({},e),{},{labelHidden:"1"})},ee=(0,s.computed)((function(){return e.config.multiPmPageMetaList||[]})),te=new(j());(0,s.watch)((function(){var e;return null==J||null===(e=J.value)||void 0===e?void 0:e.length}),(function(t){var n=[];if(t){var r,i=J.value;n=null==i||null===(r=h()(i))||void 0===r?void 0:r.call(i,(function(t,n){var r=te.get(t);if(r)return D()(r).call(r,(function(e){e.rowIndex=n})),r;var i,o=h()(i=$.value).call(i,(function(t,r){var i,o=(0,U.mg)(t);return o.width&&!o.columnWidth&&(o.columnWidth=o.width,delete o.width),o.columnId=(0,U.Ij)(),o.rowIndex=n,o.isColumn=!0,o.refConfig=null==e||null===(i=e.config)||void 0===i||null===(i=i.pmPageMetaList)||void 0===i?void 0:i[r],o.parent=null==e?void 0:e.config,o}));return te.set(t,o),o}))}(0,U.Ts)(e.config,"multiPmPageMetaList",n)}),{immediate:!0,deep:!0});var ne=(0,s.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.totalMetaCodes)||[]})),re=(0,s.computed)((function(){var e,t;return x()(e=h()(t=ne.value).call(t,(function(e){return"string"==typeof e?{code:e,totalFn:oe}:(0,U.Qd)(e)&&(0,U.$3)(e,"code")?(e.totalFn="function"==typeof e.totalFn?e.totalFn:oe,e):null}))).call(e,(function(e){return!!e}))})),ie=(0,s.computed)((function(){var e,t=(0,r.A)({},V.value,(function(){var e;return(0,s.createVNode)("div",null,[L()(e=N.value).call(e,"zh")>-1?"总计":"Total"])}));return l()(e=re.value).call(e,(function(e,t){var n=t.code,r=t.render;return r&&"function"==typeof r&&(e[n]=r),e}),t)})),oe=function(e,t,n){t=null==t?isNaN(Number(t))?"":0:t.toString().replace(/[^\d\.]/g,"");var r=!isNaN(Number(t));return null==e&&(e=r?0:""),e+(r?Number(t):t)},se=(0,s.computed)((function(){var e,t;return null!==(e=J.value)&&void 0!==e&&e.length&&ne.value.length&&re.value.length?[l()(t=J.value||[]).call(t,(function(e,t){var n;return D()(n=re.value).call(n,(function(n){var r=n.code,i=n.totalFn;e[r]=i(e[r],t[r],t)})),e}),{totalFlag:!0})]:[]})),ae=(0,s.computed)((function(){var t,n;return"1"==(null===(t=e.config)||void 0===t?void 0:t.selectable)||(null===(n=e.config)||void 0===n?void 0:n.canSelect)})),le=(0,s.ref)(null),ce=function(e){var t;le.value=e,null==b||null===(t=b.onCurrentChange)||void 0===t||t.call(b,e),I.tableSelectedInfo=e},ue=(0,s.ref)([]),pe=function(e){ue.value=e,I.tableSelectedInfo=e},fe=(0,s.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pageable)})),de=(0,s.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.pageAlign})),he="right",me=(0,r.A)((0,r.A)((0,r.A)({},"left","flex-start"),he,"flex-end"),"center","center"),ye=(0,s.computed)((function(){var t,n=l()(t=u()(B.ElPagination.props)).call(t,(function(t,n){return(0,U.$3)(e.config,n)&&(t[n]=e.config[n]),t}),{});return(0,U.$3)(n,"background")||(n.background=!0),(0,U.$3)(n,"layout")||(n.layout="prev, pager, next, jumper, sizes, total"),(0,U.$3)(n,"page-sizes")||(0,U.$3)(n,"pageSizes")||(n.pageSizes=[5,10,20,40]),n}));(0,s.watch)((function(){return K.pageNum}),(function(t){var n,r=null===(n=e.config)||void 0===n?void 0:n.currentChange,i=r&&r(t,e,K);i&&((0,U.yL)(i)?i.then((function(e){e&&(d.value=e)})):d.value=i)})),(0,s.watch)((function(){return K.pageSize}),(function(t){var n,r=null===(n=e.config)||void 0===n?void 0:n.sizeChange,i=r&&r(t,e,K);i&&((0,U.yL)(i)?i.then((function(e){e&&(d.value=e)})):d.value=i)}));var ge=["clearSelection","getSelectionRows","toggleRowSelection","toggleAllSelection","toggleRowExpansion","setCurrentRow","clearSort","clearFilter","doLayout","sort","scrollTo","setScrollTop","setScrollLeft","columns"],ve=(0,s.ref)(null),be=l()(ge).call(ge,(function(e,t){return e[t]=function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(e=ve.value)||void 0===e||e[t].apply(e,r)},e}),{});a((0,o.A)({multipleSelection:ue,selectedRow:le,page:K,changePage:function(e,t){K[t||"pageNum"]=e}},be));var _e=(0,s.computed)((function(){var e,t;return null!==(e=se.value)&&void 0!==e&&e.length?q()(t=[]).call(t,(0,i.A)(J.value),(0,i.A)(se.value)):J.value}));return function(){var t,n,r,i,a;return(0,s.createVNode)("div",{class:"custom-component-table"},[(0,s.createVNode)(B.ElTable,(0,s.mergeProps)(m.value,E.value,{ref:function(e){ve.value=e},"highlight-current-row":!!(ae.value||null!==(n=m.value)&&void 0!==n&&n.highlightCurrentRow),onCurrentChange:ae.value||null!==(r=m.value)&&void 0!==r&&r.highlightCurrentRow?ce:function(){},data:_e.value,onSelectionChange:pe,onSortChange:X}),(a=t=h()(i=$.value).call(i,(function(t,n){return t.displayType==U.Op?null:(0,s.createVNode)(B.ElTableColumn,(0,s.mergeProps)({key:t.requiredFlag+t.metaCode},function(e,t){var n,r,i,s=v()(n=$.value).call(n,t+1),a=!(null!=s&&null!==(r=x()(s).call(s,(function(e){return e.displayType!=U.Op&&!(0==e.width||"0px"==e.width||"1"==e.hidden)})))&&void 0!==r&&r.length),c=w()(s).call(s,(function(e){return e.displayType!=U.Op})),p=l()(i=u()(B.ElTableColumn.props)).call(i,(function(t,n){return(0,U.$3)(e,n)&&(t[n]=e[n]),t}),{});if("1"==e.showOverflowTooltip||"1"==e["show-overflow-tooltip"]?(p["show-overflow-tooltip"]=!0,p.showOverflowTooltip=!0):(p["show-overflow-tooltip"]=!1,p.showOverflowTooltip=!1),p.prop||(p.prop=e.metaCode),e.columnWidth&&(p.width=e.columnWidth),p.width||(p.minWidth="160px"),0!=p.width&&"0px"!=p.width&&"1"!=e.hidden||(p.className="hidden-column",p.width="1px"),!c||0!=c.width&&"0px"!=c.width&&"1"!=c.hidden||(p.className="".concat(p.className||""," next-hidden-column")),a&&(p.className="".concat(p.className||""," end-show-column")),"CustomComponentSelectEmployees"==e.metaType&&(p.className="".concat(p.className||""," clear-index")),(0,U.rn)((0,o.A)((0,o.A)({},e),{},{isColumn:!0}),(0,U.AP)(e,p.mode))&&"0"!=e.showOverflowTooltip&&"0"!=e["show-overflow-tooltip"]&&(p["show-overflow-tooltip"]=!0,p.showOverflowTooltip=!0),"selection"===e.type){var f=p.selectable;p.selectable=function(e,t){var n=!0;f&&"function"==typeof f&&(n=f(e,t,{tableConfig:p.config,rootValue:M,parentRootValue:T,parentDynamicMapComp:P}));var r,i=!0;return C.selections&&C.selections.length&&C.primaryKeys&&C.primaryKeys.length&&(i=!(null===(r=C.selections)||void 0===r?void 0:A()(r).call(r,(function(t){var n,r;return O()(n=h()(r=C.primaryKeys).call(r,(function(n){return n&&t[n]==e[n]}))).call(n,(function(e){return e}))})))),n&&i}}return p}(t,n)),{header:function(){var n,r,i;return(0,s.createVNode)("span",{className:"head-span",title:L()(n=N.value).call(n,"zh")>-1?t.metaNameZh:t.metaNameEn},["1"==t.requiredFlag?(0,s.createVNode)("span",{style:"color: rgb(245, 34, 45); margin-right: 3px;"},[(0,s.createTextVNode)("*")]):"",t.headerRender?t.headerRender(s.h,{props:e,config:t,lang:N,rootValue:M,selects:R}):L()(r=N.value).call(r,"zh")>-1?t.metaNameZh:t.metaNameEn,"1"==t.hintFlag?(0,s.createVNode)((0,s.resolveComponent)("ElTooltip"),{effect:"dark",content:L()(i=N.value).call(i,"zh")>-1?t.hintContentZh:t.hintContentEn,placement:"top"},{default:function(){return[(0,s.createVNode)((0,s.resolveComponent)("elIcon"),{style:"fontSize: 16px; verticalAlign: sub; margin-left: 3px;"},{default:function(){return[(0,s.createVNode)((0,s.resolveComponent)("QuestionFilled"),null,null)]}})]}}):null])},default:function(e){var r,i,o=e.row,a=(e.column,e.$index);if(o.totalFlag)return ie.value[t.metaCode]?ie.value[t.metaCode]({val:o[t.metaCode],row:o,h:s.h}):null;var l,c,u=null===(r=ee.value)||void 0===r||null===(r=r[a])||void 0===r?void 0:r[n];return function(e){var t;if(!e)return!0;if(k()(t=["selection","index"]).call(t,e.type))return!0;var n=A()(U.Bs).call(U.Bs,(function(t){return(0,U.ro)(t,e.metaType)}))||!e.metaType;return!e.renderby&&n}(u)?null:(0,s.createVNode)(F.A,{key:q()(i="".concat(u.columnId,"-")).call(i,u.rowIndex),class:"error-tip-block",rowScope:{row:o,$index:a},modelValue:(l=a,null===(c=J.value)||void 0===c?void 0:c[l]),"onUpdate:modelValue":function(e){!function(e,t){d.value||(d.value=[]),d.value[t]=e}(e,a)},config:u},null)}})})),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!(0,s.isVNode)(a)?t:{default:function(){return[t]}})),fe.value?(0,s.createVNode)("div",{class:"pagination-wrap",style:{"justify-content":me[de.value||he]}},[(0,s.createVNode)(B.ElPagination,(0,s.mergeProps)(ye.value,S,{"current-page":K.pageNum,"onUpdate:current-page":function(e){return K.pageNum=e},"page-size":K.pageSize,"onUpdate:page-size":function(e){return K.pageSize=e},total:H.value}),null)]):null])}}}},27243:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var r=n(53811),i=n(75286),o=n(8628),s=n.n(o),a=n(73363),l=n.n(a),c=n(50697),u=n.n(c),p=n(36586),f=n.n(p),d=n(43981),h=n.n(d),m=n(11393),y=n.n(m),g=(n(76918),n(48598),n(23288),n(2892),n(9868),n(26099),n(27495),n(38781),n(25440),n(84061)),v=n(17427),b=n(24691);const _={inheritAttrs:!1,props:(0,r.A)((0,r.A)((0,r.A)({},v.yz),g.ElInput.props),{},{textAreaCnt:{type:[Number,String],default:2},showTooltip:{type:[String,Number],default:""},showMoney:{type:[String,Number],default:""},moneySeg:{type:[String],default:","},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},decimal:{type:Number,default:2},decimalSuffix:{type:[Number,String],default:"0"},canShowFlag:{type:Array,default:["na","-"]},showSymbol:{type:String,default:""},symbol:{type:String,default:"¥"},symbolPosition:{type:String,default:"before",validator:function(e){var t;return s()(t=["before","after"]).call(t,e)}}}),emits:["update:modelValue"],setup:function(e,t){var n,o,a=t.emit,c=t.attrs,p=t.expose,d=t.slots,m=(0,i.ref)(!1),_=(0,i.ref)(!1),E=(0,i.ref)(null),x=(0,i.ref)(!1),S=(0,i.ref)(null),w=(0,i.ref)(null),T=(0,i.computed)((function(){var t,n,r,i,o=l()(t=u()(g.ElInput.props)).call(t,(function(t,n){return t[n]=e[n],t}),{});return null!==(n=e.config)&&void 0!==n&&n.icon&&(o.suffixIcon=null===(i=e.config)||void 0===i?void 0:i.icon),null!==(r=e.config)&&void 0!==r&&r.maxLength&&(o.maxlength=f()(e.config.maxLength)),e.textAreaCnt&&(o.rows=f()(e.textAreaCnt)),o})),A=(0,i.computed)((function(){var e=(0,r.A)({},T.value);return delete e.modelValue,delete e.suffixIcon,delete e.prefixIcon,e})),P=(0,i.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),O=(0,i.computed)({get:function(){return e.modelValue},set:function(e){a("update:modelValue",e)}}),C=(0,i.ref)(""),k=(0,i.computed)((function(){return"1"==e.showMoney?m.value?C.value:B(O.value):O.value})),I=(0,i.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==T.value.suffixIcon})),j=(0,i.computed)((function(){var t;return!(0,v.$3)(e.config,"onlyIconClickFlag")||"1"==(null===(t=e.config)||void 0===t?void 0:t.onlyIconClickFlag)})),N=(0,i.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pagePopupEditFlag)})),D=(0,i.computed)((function(){var t={modelValue:k.value};return!I.value||N.value?(t["onUpdate:modelValue"]=function(t){"1"==e.showMoney?C.value=t:O.value=t},"1"==e.showMoney&&(t.onFocus=function(){C.value=O.value},t.onBlur=function(){O.value=function(t){var n;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t||""===t)return"";var r=0,i="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=r;return r++,t?"":e})),o=Number(i);return isNaN(o)?"":o}(B(C.value))})):t.onClear=function(){var e;null==c||null===(e=c.onClear)||void 0===e||e.call(c),O.value=""},t})),M=(0,i.computed)((function(){return{class:null==c?void 0:c.class,style:null==c?void 0:c.style}})),L=(0,i.computed)((function(){var e=(0,r.A)({},c);delete e.class;var t=e.onFocus;e.onFocus=function(){m.value=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i;P.value&&(E.value=null==n||null===(i=n[0])||void 0===i?void 0:i.target),null==t||t.apply(void 0,n)};var n=e.onBlur;if(e.onBlur=function(){m.value=!1,P.value&&(_.value||(E.value=null));for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];null==n||n.apply(void 0,t)},I.value&&j.value&&delete e.onClick,e.onWrapClick)if(e.onClick){var i=e.onClick;e.onClick=function(){i.apply(void 0,arguments),e.onWrapClick.apply(e,arguments)}}else e.onClick=e.onWrapClick;return e})),R=(n=null,o=null,{clear:function(){n&&n(),o&&window.removeEventListener("resize",o)},calc:function(){this.clear();var t=20;!e.disabled&&e.clearable&&(t=50);var r=(0,b.fW)(S.value,0),s=(0,b.fW)(w.value,0-t);x.value=r<s,n=(0,i.watch)((function(){return k.value}),(function(e){(0,i.nextTick)((function(){s=(0,b.fW)(w.value,0-t),x.value=r<s}))})),o=function(){r=(0,b.fW)(S.value,0),x.value=r<s},window.addEventListener("resize",o)}});(0,i.onMounted)((function(){(0,i.watch)(P,(function(e){e&&(null==R||R.calc())}),{immediate:!0})})),(0,i.onUnmounted)((function(){null==R||R.clear()}));var q=function(){var t,n,o=(0,r.A)({},d);if(null!==(t=T.value)&&void 0!==t&&t.suffixIcon){var s=(0,i.resolveComponent)(T.value.suffixIcon);o.suffix=function(){var t={};return I.value&&(e.disabled||(t.onClick=c.onClick,t.style={cursor:"pointer"})),(0,i.createVNode)((0,i.resolveComponent)("el-icon"),t,{default:function(){return[(0,i.createVNode)(s,null,null)]}})}}if(null!==(n=T.value)&&void 0!==n&&n.prefixIcon){var a=(0,i.resolveComponent)(T.value.prefixIcon);o.prefix=function(){return(0,i.createVNode)((0,i.resolveComponent)("el-icon"),null,{default:function(){return[(0,i.createVNode)(a,null,null)]}})}}return o};function B(t){var n,r,i;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t)return"";var o="".concat(t).replace(e.moneySeg,"");if(o=h()(o),isNaN(o))return"";o=Math.max(e.min,Math.min(e.max,o)),"-1"!=e.decimal&&(o=o.toFixed(e.decimal)),"1"!=e.decimalSuffix&&(o=h()(o));var a="".concat(o).split(".");a[0]=a[0].replace(/\B(?=(\d{3})+(?!\d))/g,e.moneySeg);var l=a.join(".");return"1"==e.showSymbol?"before"===e.symbolPosition?y()(r="".concat(e.symbol," ")).call(r,l):y()(i="".concat(l," ")).call(i,e.symbol):l}var F=(0,i.computed)((function(){var e={};return P.value&&(e.onMouseenter=function(e){_.value=!0,E.value=null==e?void 0:e.target},e.onMouseleave=function(){_.value=!1,m.value||(E.value=null)}),e}));return p({click:function(e){var t;null==c||null===(t=c.onClick)||void 0===t||t.call(c,null,e)}}),function(){var e,t;return(0,i.createVNode)("div",(0,i.mergeProps)({class:"input-contrainer"},M.value),[(0,i.createVNode)("span",{ref:function(e){return w.value=e},class:"calc-span"},[k.value]),x.value?(0,i.createVNode)((0,i.resolveComponent)("el-tooltip"),{placement:"top",visible:x.value&&!!E.value,content:k.value,virtualTriggering:!0,virtualRef:E.value},null):null,(0,i.createVNode)("div",(0,i.mergeProps)({class:"input-wrap"},F.value,{ref:function(e){return S.value=e}}),[(0,i.createVNode)(g.ElInput,(0,i.mergeProps)(D.value,(0,r.A)((0,r.A)({},L.value),A.value)),(t=e=q(),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!(0,i.isVNode)(t)?e:{default:function(){return[e]}}))])])}}}},31810:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var r=n(53811),i=n(75286),o=n(8628),s=n.n(o),a=n(73363),l=n.n(a),c=n(50697),u=n.n(c),p=n(36586),f=n.n(p),d=n(43981),h=n.n(d),m=n(11393),y=n.n(m),g=(n(76918),n(48598),n(23288),n(2892),n(9868),n(26099),n(27495),n(38781),n(25440),n(84061)),v=n(17427),b=(n(24691),n(85845));const _={inheritAttrs:!1,props:(0,r.A)((0,r.A)((0,r.A)({},v.yz),g.ElInput.props),{},{textAreaCnt:{type:[Number,String],default:2},showTooltip:{type:[String,Number],default:""},showMoney:{type:[String,Number],default:""},moneySeg:{type:[String],default:","},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},decimal:{type:Number,default:2},decimalSuffix:{type:[Number,String],default:"0"},canShowFlag:{type:Array,default:["na","-"]},showSymbol:{type:String,default:""},symbol:{type:String,default:"¥"},symbolPosition:{type:String,default:"before",validator:function(e){var t;return s()(t=["before","after"]).call(t,e)}}}),emits:["update:modelValue"],setup:function(e,t){var n=t.emit,o=t.attrs,a=t.expose,c=t.slots,p=(0,i.computed)((function(){var t,n,r,i,o=l()(t=u()(g.ElInput.props)).call(t,(function(t,n){return t[n]=e[n],t}),{});return null!==(n=e.config)&&void 0!==n&&n.icon&&(o.suffixIcon=null===(i=e.config)||void 0===i?void 0:i.icon),null!==(r=e.config)&&void 0!==r&&r.maxLength&&(o.maxlength=f()(e.config.maxLength)),e.textAreaCnt&&(o.rows=f()(e.textAreaCnt)),o})),d=(0,i.computed)((function(){var e=(0,r.A)({},p.value);return delete e.modelValue,delete e.suffixIcon,delete e.prefixIcon,e})),m=(0,i.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),_=(0,i.computed)({get:function(){return e.modelValue},set:function(e){n("update:modelValue",e)}}),E=(0,i.ref)(""),x=(0,i.ref)(!1),S=(0,i.computed)((function(){return"1"==e.showMoney?x.value?E.value:k(_.value):_.value})),w=(0,b.D)({showTooltip:m,offset:(0,i.computed)((function(){var t=20;return!e.disabled&&e.clearable&&(t=50),t})),displayValue:S}).generateTooltipWrap,T=(0,i.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==p.value.suffixIcon})),A=(0,i.computed)((function(){var t;return!(0,v.$3)(e.config,"onlyIconClickFlag")||"1"==(null===(t=e.config)||void 0===t?void 0:t.onlyIconClickFlag)})),P=(0,i.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pagePopupEditFlag)})),O=(0,i.computed)((function(){var t={modelValue:S.value};return!T.value||P.value?(t["onUpdate:modelValue"]=function(t){"1"==e.showMoney?E.value=t:_.value=t},"1"==e.showMoney&&(t.onFocus=function(){x.value=!0,E.value=_.value},t.onBlur=function(){x.value=!1,_.value=function(t){var n;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t||""===t)return"";var r=0,i="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=r;return r++,t?"":e})),o=Number(i);return isNaN(o)?"":o}(k(E.value))})):t.onClear=function(){var e;null==o||null===(e=o.onClear)||void 0===e||e.call(o),_.value=""},t})),C=(0,i.computed)((function(){var e=(0,r.A)({},o);if(delete e.class,T.value&&A.value&&delete e.onClick,e.onWrapClick)if(e.onClick){var t=e.onClick;e.onClick=function(){t.apply(void 0,arguments),e.onWrapClick.apply(e,arguments)}}else e.onClick=e.onWrapClick;return e}));function k(t){var n,r,i;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t)return"";var o="".concat(t).replace(e.moneySeg,"");if(o=h()(o),isNaN(o))return"";o=Math.max(e.min,Math.min(e.max,o)),"-1"!=e.decimal&&(o=o.toFixed(e.decimal)),"1"!=e.decimalSuffix&&(o=h()(o));var a="".concat(o).split(".");a[0]=a[0].replace(/\B(?=(\d{3})+(?!\d))/g,e.moneySeg);var l=a.join(".");return"1"==e.showSymbol?"before"===e.symbolPosition?y()(r="".concat(e.symbol," ")).call(r,l):y()(i="".concat(l," ")).call(i,e.symbol):l}return a({click:function(e){var t;null==o||null===(t=o.onClick)||void 0===t||t.call(o,null,e)}}),function(){var t,n;return w((0,i.createVNode)(g.ElInput,(0,i.mergeProps)(O.value,(0,r.A)((0,r.A)({},C.value),d.value)),"function"==typeof(n=t=function(){var t,n,s=(0,r.A)({},c);if(null!==(t=p.value)&&void 0!==t&&t.suffixIcon){var a=(0,i.resolveComponent)(p.value.suffixIcon);s.suffix=function(){var t={};return T.value&&(e.disabled||(t.onClick=o.onClick,t.style={cursor:"pointer"})),(0,i.createVNode)((0,i.resolveComponent)("el-icon"),t,{default:function(){return[(0,i.createVNode)(a,null,null)]}})}}if(null!==(n=p.value)&&void 0!==n&&n.prefixIcon){var l=(0,i.resolveComponent)(p.value.prefixIcon);s.prefix=function(){return(0,i.createVNode)((0,i.resolveComponent)("el-icon"),null,{default:function(){return[(0,i.createVNode)(l,null,null)]}})}}return s}())||"[object Object]"===Object.prototype.toString.call(n)&&!(0,i.isVNode)(n)?t:{default:function(){return[t]}}))}}}},80316:(e,t,n)=>{n.r(t),n.d(t,{default:()=>S});var r=n(53811),i=n(75286),o=n(57119),s=n.n(o),a=n(73363),l=n.n(a),c=n(96319),u=n.n(c),p=n(31721),f=n.n(p),d=n(50697),h=n.n(d),m=n(36586),y=n.n(m),g=n(48079),v=n.n(g),b=n(64007),_=n.n(b),E=(n(76918),n(48598),n(23288),n(2892),n(26099),n(27495),n(38781),n(90744),n(84061)),x=n(17427);const S={inheritAttrs:!1,props:(0,r.A)((0,r.A)((0,r.A)({},E.ElSelect.props),x.yz),{},{multiple:[String,Boolean],filterable:[String,Boolean],multipleLimit:[String,Number],rangeOptions:Array,excludeOptions:Array,separator:{type:[String],default:","}}),emits:["update:modelValue"],setup:function(e,t){var n=t.emit,o=t.attrs,a=(t.expose,t.slots),c="object",p=(0,i.computed)({get:function(){var t=e.modelValue;if(!e.hidden)if(g.value){if((0,x.Qd)(t)||(0,x.cy)(t))try{t=s()(t).join(e.separator),n("update:modelValue",t)}catch(e){}}else if((0,x.Kg)(t)||(0,x.Et)(t)){var r,i;t=null===(r="".concat(t))||void 0===r?void 0:r.split(e.separator),b.value&&(t=null===(i=t)||void 0===i?void 0:l()(i).call(i,(function(e,t,n){return e[n]=t,e}),{})),n("update:modelValue",t)}return t},set:function(e){n("update:modelValue",e)}}),d=(0,i.computed)((function(){return e.separator})),m=(0,i.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.valueType})),g=(0,i.computed)((function(){return"list"!==m.value&&m.value!==c})),b=(0,i.computed)((function(){return m.value===c})),S=(0,i.computed)((function(){return"1"==e.multiple})),w=(0,i.computed)((function(){var t,n,r,i,o=e.options;return e.rangeOptions&&e.rangeOptions.length&&(o=null===(t=o)||void 0===t||null===(n=u()(t))||void 0===n?void 0:n.call(t,(function(t){var n;return null===(n=e.rangeOptions)||void 0===n?void 0:f()(n).call(n,(function(e){return e==t.columnValue}))}))),e.excludeOptions&&e.excludeOptions.length&&(o=null===(r=o)||void 0===r||null===(i=u()(r))||void 0===i?void 0:i.call(r,(function(t){var n;return!(null!==(n=e.excludeOptions)&&void 0!==n&&f()(n).call(n,(function(e){return e==t.columnValue})))}))),o})),T=(0,i.computed)({get:function(){if(S.value){var t=p.value||"";return t?g.value?t.split(d.value):b.value?s()(t||{}):t:[]}var n;return null!==p.value&&void 0!==p.value?null!==(n=w.value)&&void 0!==n&&f()(n).call(n,(function(e){return e.columnValue==p.value}))?(e.config.isMatch=!0,"".concat(p.value)):(e.config.isMatch=!1,""):""},set:function(e){S.value?p.value=g.value?e.join(d.value):b.value?null==e?void 0:l()(e).call(e,(function(e,t,n){return e[n]=t,e}),{}):e:p.value=e}}),A=(0,i.computed)((function(){var t,n=l()(t=h()(E.ElSelect.props)).call(t,(function(t,n){return t[n]=e[n],t}),{});return null!==n.placeholder&&void 0!==n.placeholder||(n.placeholder=""),"string"==typeof n.filterable&&(n.filterable="1"==n.filterable),"string"==typeof n.multiple&&(n.multiple="1"==n.multiple),n["suffix-icon"]||n.suffixIcon||(delete n.suffixIcon,delete n["suffix-icon"]),n.multipleLimit=Number(y()(n.multipleLimit||0)),n})),P=(0,i.inject)("lang"),O=function(){p.value=""};return function(){var e,t;return(0,i.createVNode)(E.ElSelect,(0,i.mergeProps)({class:"custom-self-select"},(0,r.A)((0,r.A)({},o),A.value),{modelValue:T.value,"onUpdate:modelValue":function(e){return T.value=e},onClear:O}),"function"==typeof(t=e=(0,r.A)((0,r.A)({},a),{},{default:function(){var e;return null===(e=w.value)||void 0===e?void 0:v()(e).call(e,(function(e){var t;return(0,i.createVNode)(E.ElOption,{key:e.columnValue,label:(null==P||null===(t=P.value)||void 0===t?void 0:_()(t).call(t,"zh"))>-1?e.columnDesc_zh:e.columnDesc,value:e.columnValue,disabled:"0"==e.columnStatus||"2"==e.columnStatus},null)}))}}))||"[object Object]"===Object.prototype.toString.call(t)&&!(0,i.isVNode)(t)?e:{default:function(){return[e]}})}}}},91413:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(22204),i=n(53811),o=n(75286),s=n(85569),a=n.n(s),l=n(71426),c=n.n(l),u=n(64007),p=n.n(u),f=n(73363),d=n.n(f),h=n(50697),m=n.n(h),y=(n(76918),n(23288),n(2892),n(26099),n(38781),n(84061)),g=n(17427),v=(n(28880),n(85845));const b={inheritAttrs:!1,props:(0,i.A)((0,i.A)((0,i.A)({},g.yz),y.ElText.props),{},{fontSize:[String,Number],needWrap:{type:[String,Number],default:"0"},suffixIcon:{type:[String,Object],default:""},isPointer:{type:[String,Number]},showTooltip:{type:[String,Number],default:"0"},truncated:{type:[String,Number,Boolean],default:"1"}}),emits:["update:modelValue"],setup:function(e,t){var n,s=t.emit,l=t.attrs,u=(t.expose,t.slots),f=(0,o.computed)({get:function(){return e.modelValue},set:function(e){s("update:modelValue",e)}}),h=(0,o.inject)("lang"),g=null===(n=(0,o.getCurrentInstance)())||void 0===n?void 0:n.appContext,b=(0,o.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO})),_=(0,o.computed)((function(){var t,n=null!==f.value&&void 0!==f.value?f.value:"";if("object"===(0,r.A)(n))try{n=a()(n)}catch(e){n=""}else"function"==typeof n&&(n="");var i,o=null==e||null===(t=e.options)||void 0===t?void 0:c()(t).call(t,(function(e){return e.columnValue==n}));return o?(null==h||null===(i=h.value)||void 0===i?void 0:p()(i).call(i,"zh"))>-1?o.columnDesc_zh:o.columnDesc:n})),E=(0,o.computed)((function(){var t,n=d()(t=m()(y.ElText.props)).call(t,(function(t,n){return t[n]=e[n],t}),{});return"boolean"!=typeof n.truncated&&(n.truncated="1"==n.truncated),n})),x=(0,o.inject)("buttonActions",{}),S=(0,o.computed)((function(){return _.value})),w=(0,o.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),T=(0,v.D)({showTooltip:w,offset:(0,o.computed)((function(){var t=0;return"1"==e.needWrap&&(t=22,e.suffixIcon&&(t=36)),t})),displayValue:S,config:e.config,calcFn:function(e){var t;return null==e||null===(t=e.getBoundingClientRect)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t.width}}).generateTooltipWrap,A=(0,o.inject)("dynamicMapComp"),P=(0,o.inject)("hireRelatMapRules"),O=(0,o.inject)("components"),C=(0,o.inject)("selects"),k=(0,o.inject)("rootValue"),I=(0,o.inject)("dataLoad"),j=(0,o.inject)("rootForm");function N(){if(e.suffixIcon&&!e.disabled){var t={color:"#a8abb2",size:14},n=e.suffixIcon;return"string"==typeof n&&(b.value&&"Search"==n&&(t.onClick=(0,o.withModifiers)(l.onClick,["stop"]),t.style={cursor:"pointer"}),n=(0,o.resolveComponent)(n)),(0,o.createVNode)(y.ElIcon,t,{default:function(){return[(0,o.createVNode)(n,null,null)]}})}return null}return function(){var t,n,r;return T((n=(0,o.createVNode)(y.ElText,(0,o.mergeProps)((0,i.A)((0,i.A)({},l),E.value),{onClickCapture:(0,o.withModifiers)((function(t){var n,r,i,o,s;o=(null===(n=e.config)||void 0===n?void 0:n.clickActionKey)||(null===(r=e.config)||void 0===r?void 0:r.buttonActionKey)||(null===(i=e.config)||void 0===i?void 0:i.hireRelat),(s=x[o])&&s(e,{dynamicMapComp:A,hireRelatMapRules:P,components:O,selects:C,rootValue:k,dataLoad:I,rootForm:j},g)}),["stop","self"]),class:{cursor:"1"==e.isPointer}}),"function"==typeof(r=t=(0,i.A)({default:function(){return S.value}},u))||"[object Object]"===Object.prototype.toString.call(r)&&!(0,o.isVNode)(r)?t:{default:function(){return[t]}}),"1"==e.needWrap?(0,o.createVNode)("div",{class:{"resolver-custom-cust-input-wrap":!0,"resolver-custom-is-disabled":e.disabled}},[n,N()]):n),{maintain:!0})}}}},801:(e,t,n)=>{n.d(t,{m:()=>Pe,A:()=>Oe});var r=n(53474),i=n(37891),o=n(34963),s=n(49859),a=n(75286),l=n(8628),c=n.n(l);n(62010),n(2892);const u=(p={buildProps:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.buildProps,capitalize:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.capitalize,definePropType:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.definePropType,isNumber:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.isNumber,isString:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.isString,isUndefined:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.isUndefined,mutable:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.mutable,throwError:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.throwError},f={},n.d(f,p),f);var p,f;const d=(e=>{var t={};return n.d(t,e),t})({EVENT_CODE:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_constants_index_mjs_c9f35684__.EVENT_CODE,UPDATE_MODEL_EVENT:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_constants_index_mjs_c9f35684__.UPDATE_MODEL_EVENT}),h=(e=>{var t={};return n.d(t,e),t})({ElIcon:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_components_icon_index_mjs_cc6cca25__.ElIcon,default:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_components_icon_index_mjs_cc6cca25__.default});var m=n(27077);const y=(e=>{var t={};return n.d(t,e),t})({useNamespace:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_hooks_index_mjs_8115c98f__.useNamespace,useOrderedChildren:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_hooks_index_mjs_8115c98f__.useOrderedChildren});var g,v=n(16781),b=n.n(v)()("tabsRootContextKey"),_=n(11393),E=n.n(_),x=n(49763),S=n.n(x),w=n(64007),T=n.n(w),A=n(56255),P=n.n(A),O=n(48079),C=n.n(O),k=Object.defineProperty,I=Object.defineProperties,j=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,L=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function R(e,t){var n;const r=(0,a.shallowRef)();var i,o;return(0,a.watchEffect)((()=>{r.value=e()}),(i=((e,t)=>{for(var n in t||(t={}))D.call(t,n)&&L(e,n,t[n]);if(N)for(var n of N(t))M.call(t,n)&&L(e,n,t[n]);return e})({},t),o={flush:null!=(n=null==t?void 0:t.flush)?n:"sync"},I(i,j(o)))),(0,a.readonly)(r)}const q="undefined"!=typeof window,B=(Object.prototype.toString,e=>"string"==typeof e),F=()=>{};function U(e){return!!(0,a.getCurrentScope)()&&((0,a.onScopeDispose)(e),!0)}function V(e){var t;const n="function"==typeof(r=e)?r():(0,a.unref)(r);var r;return null!=(t=null==n?void 0:n.$el)?t:n}q&&(null==(g=null==window?void 0:window.navigator)?void 0:g.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent),Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const $=q?window:void 0,W=q?window.document:void 0;function K(...e){let t,n,r,i;if(B(e[0])?([n,r,i]=e,t=$):[t,n,r,i]=e,!t)return F;let o=F;const s=(0,a.watch)((()=>V(t)),(e=>{o(),e&&(e.addEventListener(n,r,i),o=()=>{e.removeEventListener(n,r,i),o=F})}),{immediate:!0,flush:"post"}),l=()=>{s(),o()};return U(l),l}q&&window.navigator,q&&window.location,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},H="__vueuse_ssr_handlers__";z[H]=z[H]||{},z[H],Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var G,Q,X=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;function Z(e,t,n={}){const r=n,{window:i=$}=r,o=((e,t)=>{var n={};for(var r in e)Y.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&X)for(var r of X(e))t.indexOf(r)<0&&J.call(e,r)&&(n[r]=e[r]);return n})(r,["window"]);let s;const l=function(e,t=!1){const n=(0,a.ref)(),r=()=>n.value=Boolean(e());return r(),function(e,t=!0){(0,a.getCurrentInstance)()?(0,a.onMounted)(e):t?e():(0,a.nextTick)(e)}(r,t),n}((()=>i&&"ResizeObserver"in i)),c=()=>{s&&(s.disconnect(),s=void 0)},u=(0,a.watch)((()=>V(e)),(e=>{c(),l.value&&i&&e&&(s=new ResizeObserver(t),s.observe(e,o))}),{immediate:!0,flush:"post"}),p=()=>{c(),u()};return U(p),{isSupported:l,stop:p}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,new Map,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,(Q=G||(G={})).UP="UP",Q.RIGHT="RIGHT",Q.DOWN="DOWN",Q.LEFT="LEFT",Q.NONE="NONE",Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var ee=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(e,t,n)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))ne.call(t,n)&&ie(e,n,t[n]);if(te)for(var n of te(t))re.call(t,n)&&ie(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});var oe=n(29544),se=n.n(oe),ae=n(14166),le=n.n(ae),ce=n(63579),ue=n.n(ce),pe=(0,u.buildProps)({tabs:{type:(0,u.definePropType)(Array),default:function(){return(0,u.mutable)([])}}}),fe="ElTabBar";const de=se()({name:fe},{__name:"tab-bar",props:pe,setup:function(e,t){var n=t.expose,r=e,l=(0,a.getCurrentInstance)(),p=(0,a.inject)(b);p||(0,u.throwError)(fe,"<el-tabs><el-tab-bar /></el-tabs>");var f=(0,y.useNamespace)("tabs"),d=(0,a.ref)(),h=(0,a.ref)(),m=function(){return h.value=function(){var e,t,n,i=0,o=0,a=c()(e=["top","bottom"]).call(e,p.props.tabPosition)?"width":"height",f="width"===a?"x":"y",d="x"===f?"left":"top";return le()(t=r.tabs).call(t,(function(e){var t,n=null===(t=l.parent)||void 0===t||null===(t=t.refs)||void 0===t?void 0:t["tab-".concat(e.uid)];if(!n)return!1;if(!e.active)return!0;i=n["offset".concat((0,u.capitalize)(d))],o=n["client".concat((0,u.capitalize)(a))];var s=window.getComputedStyle(n);return"width"===a&&(r.tabs.length>1&&(o-=ue()(s.paddingLeft)+ue()(s.paddingRight)),i+=ue()(s.paddingLeft)),!1})),(0,s.A)((0,s.A)({},a,"".concat(o,"px")),"transform",E()(n="translate".concat((0,u.capitalize)(f),"(")).call(n,i,"px)"))}()};return(0,a.watch)((function(){return r.tabs}),(0,o.A)((0,i.A)().mark((function e(){return(0,i.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.nextTick)();case 2:m();case 3:case"end":return e.stop()}}),e)}))),{immediate:!0}),Z(d,(function(){return m()})),n({ref:d,update:m}),function(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{ref_key:"barRef",ref:d,class:(0,a.normalizeClass)([(0,a.unref)(f).e("active-bar"),(0,a.unref)(f).is((0,a.unref)(p).props.tabPosition)]),style:(0,a.normalizeStyle)(h.value)},null,6)}}}),he=de;var me=(0,u.buildProps)({panes:{type:(0,u.definePropType)(Array),default:function(){return(0,u.mutable)([])}},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),ye={tabClick:function(e,t,n){return n instanceof Event},tabRemove:function(e,t){return t instanceof Event}},ge="ElTabNav",ve=(0,a.defineComponent)({name:ge,props:me,emits:ye,setup:function(e,t){var n=t.expose,s=t.emit,l=(0,a.getCurrentInstance)(),p=(0,a.inject)(b);p||(0,u.throwError)(ge,"<el-tabs><tab-nav /></el-tabs>");var f=(0,y.useNamespace)("tabs"),g=function({document:e=W}={}){if(!e)return(0,a.ref)("visible");const t=(0,a.ref)(e.visibilityState);return K(e,"visibilitychange",(()=>{t.value=e.visibilityState})),t}(),v=function({window:e=$}={}){if(!e)return(0,a.ref)(!1);const t=(0,a.ref)(e.document.hasFocus());return K(e,"blur",(()=>{t.value=!1})),K(e,"focus",(()=>{t.value=!0})),t}(),_=(0,a.ref)(),x=(0,a.ref)(),w=(0,a.ref)(),A=(0,a.ref)(),O=(0,a.ref)(!1),k=(0,a.ref)(0),I=(0,a.ref)(!1),j=(0,a.ref)(!0),N=(0,a.computed)((function(){var e;return c()(e=["top","bottom"]).call(e,p.props.tabPosition)?"width":"height"})),D=(0,a.computed)((function(){var e,t="width"===N.value?"X":"Y";return{transform:E()(e="translate".concat(t,"(-")).call(e,k.value,"px)")}})),M=function(){if(_.value){var e=_.value["offset".concat((0,u.capitalize)(N.value))],t=k.value;if(t){var n=t>e?t-e:0;k.value=n}}},L=function(){if(_.value&&x.value){var e=x.value["offset".concat((0,u.capitalize)(N.value))],t=_.value["offset".concat((0,u.capitalize)(N.value))],n=k.value;if(!(e-n<=t)){var r=e-n>2*t?n+t:e-t;k.value=r}}},R=function(){var e=(0,o.A)((0,i.A)().mark((function e(){var t,n,r,o,s,l,u,f,d,h;return(0,i.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=x.value,O.value&&w.value&&_.value&&n){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,a.nextTick)();case 5:if(r=w.value.querySelector(".is-active")){e.next=8;break}return e.abrupt("return");case 8:o=_.value,s=c()(t=["top","bottom"]).call(t,p.props.tabPosition),l=r.getBoundingClientRect(),u=o.getBoundingClientRect(),f=s?n.offsetWidth-u.width:n.offsetHeight-u.height,d=k.value,h=d,s?(l.left<u.left&&(h=d-(u.left-l.left)),l.right>u.right&&(h=d+l.right-u.right)):(l.top<u.top&&(h=d-(u.top-l.top)),l.bottom>u.bottom&&(h=d+(l.bottom-u.bottom))),h=Math.max(h,0),k.value=Math.min(h,f);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){var t;if(x.value&&_.value){e.stretch&&(null===(t=A.value)||void 0===t||t.update());var n=x.value["offset".concat((0,u.capitalize)(N.value))],r=_.value["offset".concat((0,u.capitalize)(N.value))],i=k.value;r<n?(O.value=O.value||{},O.value.prev=i,O.value.next=i+r<n,n-i<r&&(k.value=n-r)):(O.value=!1,i>0&&(k.value=0))}},B=function(e){var t,n=e.code,r=d.EVENT_CODE.up,i=d.EVENT_CODE.down,o=d.EVENT_CODE.left,s=d.EVENT_CODE.right;if(c()(t=[r,i,o,s]).call(t,n)){var a,l=S()(e.currentTarget.querySelectorAll<HTMLDivElement>"[role=tab]:not(.is-disabled)"),u=T()(l).call(l,e.target);l[a=n===o||n===r?0===u?l.length-1:u-1:u<l.length-1?u+1:0].focus({preventScroll:!0}),l[a].click(),F()}},F=function(){j.value&&(I.value=!0)},U=function(){return I.value=!1};return(0,a.watch)(g,(function(e){"hidden"===e?j.value=!1:"visible"===e&&P()((function(){return j.value=!0}),50)})),(0,a.watch)(v,(function(e){e?P()((function(){return j.value=!0}),50):j.value=!1})),Z(w,q),(0,a.onMounted)((function(){return P()((function(){return R()}),0)})),(0,a.onUpdated)((function(){return q()})),n({scrollToActiveTab:R,removeFocus:U}),(0,a.watch)((function(){return e.panes}),(function(){return l.update()}),{flush:"post",deep:!0}),function(){var t,n,i,o=O.value?[(0,a.createVNode)("span",{class:[f.e("nav-prev"),f.is("disabled",!O.value.prev)],onClick:M},[(0,a.createVNode)(h.ElIcon,null,{default:function(){return[(0,a.createVNode)(m.ArrowLeft,null,null)]}})]),(0,a.createVNode)("span",{class:[f.e("nav-next"),f.is("disabled",!O.value.next)],onClick:L},[(0,a.createVNode)(h.ElIcon,null,{default:function(){return[(0,a.createVNode)(m.ArrowRight,null,null)]}})])]:null,l=C()(t=e.panes).call(t,(function(t,n){var r,i,o,l,c,u=t.uid,y=t.props.disabled,g=null!==(r=null!==(i=t.props.name)&&void 0!==i?i:t.index)&&void 0!==r?r:"".concat(n),v=!y&&(t.isClosable||e.editable),b=t.props.hidden;t.index="".concat(n);var _=v?(0,a.createVNode)(h.ElIcon,{class:"is-icon-close",onClick:function(e){return s("tabRemove",t,e)}},{default:function(){return[(0,a.createVNode)(m.Close,null,null)]}}):null,x=(null===(o=(l=t.slots).label)||void 0===o?void 0:o.call(l))||t.props.label,S=!y&&t.active?0:-1;return b?null:(0,a.createVNode)("div",{ref:"tab-".concat(u),class:[f.e("item"),f.is(p.props.tabPosition),f.is("active",t.active),f.is("disabled",y),f.is("closable",v),f.is("focus",I.value)],style:b?{display:"none"}:{},id:"tab-".concat(g),key:"tab-".concat(u),"aria-controls":"pane-".concat(g),role:"tab","aria-selected":t.active,tabindex:S,onFocus:function(){return F()},onBlur:function(){return U()},onClick:function(e){U(),s("tabClick",t,g,e)},onKeydown:function(e){!v||e.code!==d.EVENT_CODE.delete&&e.code!==d.EVENT_CODE.backspace||s("tabRemove",t,e)}},[(0,a.createVNode)("div",{title:x,class:"tabs__item-wrap"},E()(c=[x,_]).call(c))])}));return(0,a.createVNode)("div",{ref:w,class:[f.e("nav-wrap"),f.is("scrollable",!!O.value),f.is(p.props.tabPosition)]},[o,(0,a.createVNode)("div",{class:f.e("nav-scroll"),ref:_},[(0,a.createVNode)("div",{class:[f.e("nav"),f.is(p.props.tabPosition),f.is("stretch",e.stretch&&c()(n=["top","bottom"]).call(n,p.props.tabPosition))],ref:x,style:D.value,role:"tablist",onKeydown:B},E()(i=[e.type?null:(0,a.createVNode)(he,{ref:A,tabs:(0,r.A)(e.panes)},null),l]).call(i))])])}}});const be=ve;var _e=(0,u.buildProps)({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Function,default:function(){return!0}},stretch:Boolean}),Ee=function(e){return(0,u.isString)(e)||(0,u.isNumber)(e)},xe=(0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)({},d.UPDATE_MODEL_EVENT,(function(e){return Ee(e)})),"tabClick",(function(e,t){return t instanceof Event})),"tabChange",(function(e){return Ee(e)})),"edit",(function(e,t){var n;return c()(n=["remove","add"]).call(n,t)})),"tabRemove",(function(e){return Ee(e)})),"tabAdd",(function(){return!0}));const Se=(0,a.defineComponent)({name:"ElTabs",props:_e,emits:xe,setup:function(e,t){var n,l=t.emit,c=t.slots,p=t.expose,f=(0,y.useNamespace)("tabs"),g=(0,y.useOrderedChildren)((0,a.getCurrentInstance)(),"ElTabPane"),v=g.children,_=g.addChild,E=g.removeChild,x=(0,a.ref)({}),S=(0,a.ref)(null!==(n=e.modelValue)&&void 0!==n?n:"0"),w=function(){var t=(0,o.A)((0,i.A)().mark((function t(n){var r,o,s,a,c=arguments;return(0,i.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=c.length>1&&void 0!==c[1]&&c[1],S.value!==n&&!(0,u.isUndefined)(n)){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,t.next=6,null===(o=e.beforeLeave)||void 0===o?void 0:o.call(e,n,S.value);case 6:!1!==t.sent&&(S.value=n,r&&(l(d.UPDATE_MODEL_EVENT,n),l("tabChange",n)),null===(s=x.value)||void 0===s||null===(a=s.removeFocus)||void 0===a||a.call(s)),t.next=12;break;case 10:t.prev=10,t.t0=t.catch(3);case 12:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),T=function(e,t,n){e.props.disabled||(w(t,!0),l("tabClick",e,n))},A=function(e,t){e.props.disabled||(0,u.isUndefined)(e.props.name)||(t.stopPropagation(),l("edit",e.props.name,"remove"),l("tabRemove",e.props.name))},P=function(){l("edit",void 0,"add"),l("tabAdd")};return(0,a.watch)((function(){return e.modelValue}),(function(e){return w(e)})),(0,a.watch)(S,(0,o.A)((0,i.A)().mark((function e(){var t;return(0,i.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.nextTick)();case 2:null===(t=x.value)||void 0===t||t.scrollToActiveTab();case 3:case"end":return e.stop()}}),e)})))),(0,a.provide)(b,{props:e,currentName:S,registerPane:_,unregisterPane:E}),p({currentName:S}),function(){var t=c["add-icon"],n=e.editable||e.addable?(0,a.createVNode)("span",{class:f.e("new-tab"),tabindex:"0",onClick:P,onKeydown:function(e){e.code===d.EVENT_CODE.enter&&P()}},[t?(0,a.renderSlot)(c,"add-icon"):(0,a.createVNode)(h.default,{class:f.is("icon-plus")},{default:function(){return[(0,a.createVNode)(m.Plus,null,null)]}})]):null,i=(0,a.createVNode)("div",{class:[f.e("header"),f.is(e.tabPosition)]},[n,(0,a.createVNode)(be,{ref:x,currentName:S.value,editable:e.editable,type:e.type,panes:v.value,stretch:e.stretch,onTabClick:T,onTabRemove:A},null)]),o=(0,a.createVNode)("div",{class:f.e("content")},[(0,a.renderSlot)(c,"default")]);return(0,a.createVNode)("div",{class:["resolver-tabs",f.b(),f.m(e.tabPosition),(0,s.A)((0,s.A)({},f.m("card"),"card"===e.type),f.m("border-card"),"border-card"===e.type)]},(0,r.A)("bottom"!==e.tabPosition?[i,o]:[o,i]))}}});var we=(0,u.buildProps)({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean,hidden:Boolean}),Te=["id","aria-hidden","aria-labelledby"],Ae="ElTabPane";const Pe=se()({name:Ae},{__name:"tab-pane",props:we,setup:function(e){var t=e,n=(0,a.getCurrentInstance)(),r=(0,a.useSlots)(),i=(0,a.inject)(b);i||(0,u.throwError)(Ae,"usage: <el-tabs><el-tab-pane /></el-tabs/>");var o=(0,y.useNamespace)("tab-pane"),s=(0,a.ref)(),l=(0,a.computed)((function(){return t.closable||i.props.closable})),c=R((function(){var e;return i.currentName.value===(null!==(e=t.name)&&void 0!==e?e:s.value)})),p=(0,a.ref)(c.value),f=(0,a.computed)((function(){var e;return null!==(e=t.name)&&void 0!==e?e:s.value})),d=R((function(){return!t.lazy||p.value||c.value}));(0,a.watch)(c,(function(e){e&&(p.value=!0)}));var h=(0,a.reactive)({uid:n.uid,slots:r,props:t,paneName:f,active:c,index:s,isClosable:l});return(0,a.onMounted)((function(){i.registerPane(h)})),(0,a.onUnmounted)((function(){i.unregisterPane(h.uid)})),function(e,t){return(0,a.unref)(d)?(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:0,id:"pane-".concat(f.value),class:(0,a.normalizeClass)((0,a.unref)(o).b()),role:"tabpanel","aria-hidden":!(0,a.unref)(c),"aria-labelledby":"tab-".concat(f.value)},[(0,a.renderSlot)(e.$slots,"default")],10,Te)),[[a.vShow,(0,a.unref)(c)]]):(0,a.createCommentVNode)("v-if",!0)}}}),Oe=Se},32820:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(53811),i=n(86226),o=n.n(i),s=n(50697),a=n.n(s),l=n(64007),c=n.n(l),u=n(75286),p=n(84061),f={key:0,class:"header"},d=["src"],h={class:"footer"},m={class:"dialog-footer"};const y={__name:"ThirdPartyFrame",props:{src:{type:String,default:""},awalyCloseCb:{type:Function,default:null},closeCb:{type:Function,default:null},title:{type:String,default:""},showClose:{type:Boolean,default:!0},lang:String},setup:function(e,t){var n=t.expose,r=(0,u.ref)(null),i=e,o=(0,u.computed)((function(){return i.lang})),s=null,a=(0,u.ref)(!1);n({dialogVisible:a}),(0,u.watch)(a,(function(e,t){var n;!e&&t&&(s&&s(),null===(n=i.awalyCloseCb)||void 0===n||n.call(i),r.value=null,s=null)}));var l=function(e){switch(console.log("event===:",e),e.data.submitType){case"CCM_CLOSE":case"PROCUREMENT_CONTRACT_SUBMIT":console.log("props===:",i),s=i.closeCb,a.value=!1}};return(0,u.onMounted)((function(){(0,u.watch)(r,(function(e){e&&window&&window.addEventListener("message",l)}),{immediate:!0})})),(0,u.onUnmounted)((function(){window&&window.removeEventListener("message",l)})),function(t,n){return(0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(p.ElDialog),{class:"third-party-frame custom-component-dialog",width:"90%",modelValue:a.value,"onUpdate:modelValue":n[1]||(n[1]=function(e){return a.value=e}),"close-on-click-modal":!1},{default:(0,u.withCtx)((function(){return[i.title?((0,u.openBlock)(),(0,u.createElementBlock)("div",f,[(0,u.createElementVNode)("span",null,(0,u.toDisplayString)(i.title),1)])):(0,u.createCommentVNode)("v-if",!0),(0,u.createCommentVNode)(" :style=\"{marginTop: !!props.title ? 0 : '16px'}\" "),(0,u.createElementVNode)("iframe",{ref_key:"iframeRef",ref:r,class:"iframe-box",src:a.value?i.src:""},null,8,d),(0,u.createElementVNode)("div",h,[(0,u.createElementVNode)("div",m,[e.showClose?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(p.ElButton),{key:0,onClick:n[0]||(n[0]=function(e){return a.value=!1})},{default:(0,u.withCtx)((function(){var e;return[(0,u.createTextVNode)((0,u.toDisplayString)(c()(e=o.value).call(e,"zh")>-1?"关闭":"Close"),1)]})),_:1})):(0,u.createCommentVNode)("v-if",!0)])])]})),_:1},8,["modelValue"])}}};n(65190),n(85304);const g=(0,n(66262).A)(y,[["__scopeId","data-v-60756844"]]);var v=null;function b(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v)return o()(t=a()(n)).call(t,(function(e){v.props[e]=n[e],v.vm.exposed.dialogVisible.value=!0})),v.close;var i=document.createElement("div"),s=(0,u.createVNode)(g,(0,r.A)({},n));return(0,u.render)(s,i),document.body.appendChild(i.firstElementChild),v={vnode:s,vm:s.component,props:null===(e=s.component)||void 0===e?void 0:e.props,close:function(){s.component.exposed.dialogVisible.value=!1}},s.component.exposed.dialogVisible.value=!0,v.close}},90722:(e,t,n)=>{n.d(t,{K:()=>T});var r=n(22204),i=n(49859),o=n(56255),s=n.n(o),a=n(66615),l=n.n(a),c=n(50697),u=n.n(c),p=n(96319),f=n.n(p),d=n(86226),h=n.n(d),m=(n(27495),n(71761),n(25440),n(75286)),y=n(44413),g=n(8628),v=n.n(g),b=n(11393),_=n.n(b),E=(n(23288),n(79432),n(90906),n(48618)),x=n(85352),S=n(17427);function w(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"update:modelValue",a=this.hireRelatMapRules,l=this.messageInstance,c=this.rootValue,u=this.ruleExecuter,p=this.dataLoad,f=this.dynamicMapComp,d=this.lang,h=this._mapComp,g=a.value[e.hireRelat],b=e.metaCode;if("update:modelValue"!==o){var w=o.match(/^update:(\w+)$/);if(!w)return;b=w[1];var T=e.dynamicHireRelat.replace(/->\w+$/,"->".concat(b));e=f[T]}var A=(0,m.computed)({get:function(){var n,r;if(e){var i=null!==(n=b?null===(r=t.modelValue)||void 0===r?void 0:r[b]:t.modelValue)&&void 0!==n?n:null;return"update:modelValue"!==o||i||s()((function(){!function(e){if((e.defaultVal||e.defaultValue)&&!e.bindValue&&0!==e.bindValue){var t=e.defaultVal||e.defaultValue,n=null;try{var r,i;if("string"==typeof t){var o=null;if("string"==typeof t&&(o=t.match(/^_route:(.*)$/))){var s,a=o[1],l=null==e||null===(s=e.route)||void 0===s?void 0:s.query;n=null==l?void 0:l[a]}else if("string"==typeof t&&/^_lang$/.test(t))n=null==e?void 0:e._lang;else if(/^{[\w\W]*}$/.test(t)||/^\[[\w\W]*\]$/.test(t))n=JSON.parse(t);else{var c;n=t===x.DE.CURRENT_DATE||"currentDate"===t?(0,E.Yq)(new Date,"yyyy-MM-dd"):v()(c=["true","false"]).call(c,t)?"true"==t:t}}else n=(0,m.toRaw)(t);console.log(_()(r=_()(i="".concat(e.dynamicHireRelat,",")).call(i,e.hireRelat," to set defaultValue, ")).call(r,n)),e.refValue=n}catch(t){console.log("set default val fail, config",e,t)}}}(e)}),0),e&&(e.bindValue=i),e&&(!p.value||e.eventInit||e.notInit||s()((function(){null==u||u.run({rootValue:c,rules:g,config:e,dynamicMapComp:f,lang:d,messageInstance:l,_mapComp:h,isInit:!0}),y.Ay.call({config:e,dynamicMapComp:f,lang:d,_mapComp:h,messageInstance:l},g,!0),(0,S.Ts)(e,"eventInit",!0)}),0)),i}},set:function(o){if(e){var a=t.modelValue,p=b;if(p){if(a){var v;if(null!==(v=e)&&void 0!==v&&v.frameSet&&null!=a&&a[p]&&("object"!==(0,r.A)(a[p])&&"object"!==(0,r.A)(o)||(o=(0,S.Vv)(a[p],o))),(0,S.vr)(a[p])&&(0,S.vr)(o)&&a[p]===o)return;try{t.modelValue[p]=o}catch(t){console.log("config",e,p)}}else e.parent&&(e.parent.frameSet=!0),(0,m.nextTick)((function(){e.parent&&(e.parent.frameSet=!1)})),n("update:modelValue",(0,i.A)({},p,o));e&&s()((function(){null==u||u.run({rootValue:c,rules:g,config:e,dynamicMapComp:f,lang:d,messageInstance:l,_mapComp:h}),y.Ay.call({config:e,dynamicMapComp:f,lang:d,_mapComp:h,messageInstance:l},g)}),0)}}}});return A}function T(e,t){var n=(0,m.inject)("hireRelatMapRules"),r=(0,m.inject)("dataLoad"),i=(0,m.inject)("dynamicMapComp"),o=(0,m.inject)("lang"),s=(0,m.inject)("_mapComp"),a=(0,m.inject)("rootValue"),c=(0,m.inject)("_ruleExecuter"),p=(0,m.inject)("_messageInstance"),d={hireRelatMapRules:n,dataLoad:r,dynamicMapComp:i,lang:o,rootValue:a,_mapComp:s,ruleExecuter:c,messageInstance:null==p?void 0:p.value},y=(0,m.reactive)({}),g=w.call(d,e.config,e,t);return y["onUpdate:modelValue"]=function(e){g.value=e},y.modelValue=g,{modelValue:g,vModelObjs:y,initVmodels:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l()(n)||(n=u()(n)),n=f()(n).call(n,(function(e){return e.match(/^update:(\w+)$/)})),h()(n).call(n,(function(n){if("string"==typeof n){var r=w.call(d,e.config,e,t,n);if(r){var i=n.match(/^update:(\w+)$/);y["onUpdate:".concat(i[1])]=function(e){r.value=e},y[i[1]]=r}}})),y["onUpdate:modelValue"]=function(e){g.value=e},y.modelValue=g}}}},50510:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(75286),i=n(66615),o=n.n(i),s=n(48079),a=n.n(s),l=n(11393),c=n.n(l),u=n(17427),p=n(89932);const f={name:"Renderer",inheritAttrs:!1,props:{config:{type:[Object,Array],default:function(){return null}},modelValue:{default:null},rowScope:{type:[Object],default:function(){return null}},mode:{type:String,default:""},additionConfigs:{type:Array,default:function(){return[]}}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit,i=t.attrs,s=(0,r.computed)({get:function(){return e.modelValue},set:function(e){n("update:modelValue",e)}}),l=(0,r.inject)("_getNativeComps"),f=(0,r.inject)("_loadModuleCache"),d=(0,r.inject)("_isH5"),h=(0,r.inject)("injectMode",""),m=e.mode||h;return(0,r.provide)("injectMode",m),function(){var t=o()(e.config)?e.config:[e.config];return t&&t.length?a()(t).call(t,(function(t){if((null==t?void 0:t.displayType)==u.Op)return null;var n,o=(0,u.AP)(t,m),a=(0,u.fw)({config:t,disabled:o,getNativeComps:l,isH5:null==d?void 0:d.value,loadModuleCache:f});return a?(0,u.ZB)(t,o,null==d?void 0:d.value)((0,r.createVNode)(p.A,(0,r.mergeProps)({additionConfigs:e.additionConfigs,key:c()(n="".concat(t.metaId,"-")).call(n,t.rowIndex),component:a,config:t},i,{mode:m,rowScope:e.rowScope,modelValue:s.value,"onUpdate:modelValue":function(e){return s.value=e}}),null)):void 0})):null}}}},19022:(e,t,n)=>{n.d(t,{Ct:()=>k,MM:()=>N,NR:()=>R,Vf:()=>L,Vr:()=>C,Xe:()=>D,cv:()=>I,qK:()=>q});var r=n(53474),i=n(53811),o=(n(48598),n(44114),n(2892),n(84864),n(57465),n(27495),n(87745),n(90906),n(38781),n(71761),n(25440),n(86226)),s=n.n(o),a=n(31721),l=n.n(a),c=n(48079),u=n.n(c),p=n(36586),f=n.n(p),d=n(18979),h=n.n(d),m=n(11393),y=n.n(m),g=n(71426),v=n.n(g),b=n(8628),_=n.n(b),E=n(96319),x=n.n(E),S=(n(66615),n(385)),w=n.n(S),T=n(73363),A=n.n(T),P=n(17427),O=["setShow","setHidden"],C={};function k(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;if(!n)return"";var i=this.config,o=(this.dynamicMapComp,i.hireRelat),s=void 0===o?"":o;if(i.dynamicHireRelat,s===n)return i.bindValue;var a=j.call(this,n,i);return 1!==a.length?null:r?null===(e=a[0])||void 0===e?void 0:e.refValue:null===(t=a[0])||void 0===t?void 0:t.bindValue}function I(e,t){var n=this;if(e)if((0,P.Qd)(e))(0,P.$3)(e,"refValue")&&(e.refValue=t);else{var r=this.config,i=j.call(this,e,r);s()(i).call(i,(function(e){if((0,P.$3)(e,"refValue"))e.refValue=t;else{var r,i,o=n._mapComp;null!=o&&null!==(r=o.value)&&void 0!==r&&r[e.hireRelat]&&(C[e.hireRelat]||(C[e.hireRelat]=[]),l()(i=C[e.hireRelat]).call(i,(function(e){return(null==e?void 0:e.rules)===(null==n?void 0:n.rules)&&(null==e?void 0:e.config)===(null==n?void 0:n.config)}))||C[e.hireRelat].push(n))}}))}}function j(e,t,n){for(var r,i,o,a=this,c=t.dynamicHireRelat,p=void 0===c?"":c,d=u()(r=p.split("->")).call(r,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?{idx:f()(t[2]),code:t[1]}:{idx:-1,code:e}})),m=-1,g=e.split("->"),b=0;b<g.length;b++){var E=g[b];if(d[b].code!==E){m=b;break}}var x=h()(g).call(g,m),S=u()(i=h()(d).call(d,0,m)).call(i,(function(e){var t,n=e.idx,r=e.code;return-1!==n?y()(t="".concat(r,"[")).call(t,n,"]"):r})).join("->"),w=S,T=null,A=S.match(/^([\w\W]*)\[(\d*)\]$/);A&&(w=A[1],T=A[2]);var P=this.dynamicMapComp,k=this._mapComp,I=[];if(w)I=[P[w]];else{var j=x.shift();I=[P[j]]}for(var N,D=function(){var e=x.shift(),t=[];s()(I).call(I,(function(r){if(r.multiPmPageMetaList)if(null!==T){var i=r.multiPmPageMetaList[T],o=i&&v()(i).call(i,(function(t){return t.metaCode===e}));if(!o)return;t.push(o),T=null}else{var a;if(_()(O).call(O,n)){var l,c=null==r||null===(l=r.pmPageMetaList)||void 0===l?void 0:v()(l).call(l,(function(t){return t.metaCode===e}));if(!c)return;t.push(c)}s()(a=r.multiPmPageMetaList).call(a,(function(n){var r=v()(n).call(n,(function(t){return t.metaCode===e}));r&&t.push(r)}))}else{var u,p=null==r||null===(u=r.pmPageMetaList)||void 0===u?void 0:v()(u).call(u,(function(t){return t.metaCode===e}));if(!p)return;t.push(p)}})),I=t};x.length;)D();return null!=k&&null!==(o=k.value)&&void 0!==o&&o[e]&&!I.length&&(C[e]||(C[e]=[]),l()(N=C[e]).call(N,(function(e){return(null==e?void 0:e.rules)===(null==a?void 0:a.rules)&&(null==e?void 0:e.config)===(null==a?void 0:a.config)}))||C[e].push(this)),I}function N(e,t){var n=M(e),r=M(t);return n&&r?Number(e)>Number(t):e+"">t+""}function D(e,t){var n=M(e),r=M(t);return n&&r?Number(e)<Number(t):e+""<t+""}function M(e){return!isNaN(Number(e))}function L(e,t){if(!e)return null;var n=this.config;return j.call(this,e,n,t)}function R(e){if(!e)return[];var t=[],n=e.pmRuleDefVoList,o=e.pmRuleDefVOList,a=n||(null==o?void 0:x()(o).call(o,(function(e){return"1"==(null==e?void 0:e.ruleType)})))||[];return s()(a).call(a,(function(e){var n=e.pmRuleEventRelVOList||e.pmRuleEventRelVoList||[],o=u()(n).call(n,(function(t){return(0,i.A)((0,i.A)({},t),{},{ruleType:e.ruleType})}));t.push.apply(t,(0,r.A)(o))})),t}function q(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=t?t.split("->"):[],i=n?n.split("->"):[],o=-1,s=0;-1===o&&s<r.length&&s<i.length;){var a=r[s],l=new RegExp("^".concat(a,"(\\[\\d+\\])?$")),c=i[s];l.test(c)?(w()(r).call(r,s,1,c),s++):o=s}var u=A()(r).call(r,(function(e,t){var n=t.replace(/([\[\]]{1})/g,(function(e,t){return"\\".concat(t)}));return e+(e?"->".concat(n,"(\\[\\d+\\])?"):"".concat(n,"(\\[\\d+\\])?"))}),""),p=new RegExp("^".concat(u,"$"));return x()(e).call(e,(function(e){return p.test(e)}))}},44413:(e,t,n)=>{n.d(t,{Ay:()=>ee,Zt:()=>R});var r=n(31564),i=n(32321),o=n(99029),s=n(63520),a=n(42984);n(44114),n(27495),n(71761);var l=n(86226),c=n.n(l),u=n(11393),p=n.n(u),f=n(56255),d=n.n(f),h=n(50697),m=n.n(h),y=n(96319),g=n.n(y),v=n(48079),b=n.n(v),_=n(36586),E=n.n(_),x=n(22204),S=n(49859),w=(n(23288),n(2892),n(79432),n(84864),n(57465),n(87745),n(90906),n(38781),n(66615)),T=n.n(w),A=n(64007),P=n.n(A),O=n(8628),C=n.n(O),k=n(31721),I=n.n(k),j=n(19022),N=n(17427),D={COMPONENT:1,SYSTEM:2,SELF:3,COMPONENT_ENMU:4,NULL:5},M=(0,S.A)((0,S.A)((0,S.A)((0,S.A)((0,S.A)({},D.COMPONENT,(function(e){var t,n=e.tabpanelCode,r=e.value;return j.Ct.call(this,p()(t="".concat(n?n+"->":"")).call(t,r))})),D.SYSTEM,(function(e){return function(e){var t=new Date;switch(e){case q.currentDate:return(0,N.Yq)(new Date,"yyyy-MM-dd");case q.currentTimestamp:return(new Date).getTime();case q.CurrentYear:return(0,N.Yq)(new Date,"yyyy");case q.CurrentMonth:return(0,N.Yq)(new Date,"MM");case q.CurrentDay:return(0,N.Yq)(new Date,"dd");case q.CurrentAfter30Day:return t.setDate(t.getDate()+30),(0,N.Yq)(t,"yyyy-MM-dd");case q.CurrentBefore30Day:return t.setDate(t.getDate()-30),(0,N.Yq)(t,"yyyy-MM-dd");default:return e}}(e.value)})),D.SELF,(function(e){return e.value})),D.COMPONENT_ENMU,(function(e){return e.value})),D.NULL,(function(){return null}));function L(e){var t=this,n=e||{},r=n.eventExpress,i=(n.pmRuleTargetEventVoList,n.ruleType,n.tabpanelCode);if(!r)return!1;var o=JSON.parse(r),s=o.relation,a=o.conditions;return b()(a).call(a,(function(e){var n,r=e.refType,o=e.refValue,s=e.targetType,a=e.targetValue;if(D.COMPONENT==r){var l,c=j.Vf.call(t,p()(l="".concat(i?i+"->":"")).call(l,o));if(!c||1!==c.length)return!1}if(!M[r])return!1;var u=M[r].call(t,{tabpanelCode:i,value:o});if(D.COMPONENT==s){var f,d=j.Vf.call(t,p()(f="".concat(i?i+"->":"")).call(f,a));if(!d||1!==d.length)return!1}if(!M[s])return!1;var h=M[s].call(t,{tabpanelCode:i,value:a}),m=u=null==u?"":u,y=h=null==h?"":h;switch(u==Number(u)&&h==Number(h)&&(m=Number(u),y=Number(h)),e.symbol){case 1:return m>y;case 2:return m>=y;case 3:return m<y;case 4:return m<=y;case 5:return u==h||!h&&(0,N.cy)(u)&&!u.length;case 6:return u!=h;case 7:return"number"==typeof u&&(u="".concat(u)),!(!T()(u)&&"string"!=typeof u)&&P()(u).call(u,h)>-1;case 8:return!!C()(n=["string","number"]).call(n,(0,x.A)(h))&&new RegExp(h).test(u);default:return!1}}))[1==s?"every":"some"]((function(e){return e}))}function R(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return c()(e).call(e,(function(e){var n=function(e){var t=[],n=e||{},r=n.eventExpress,i=(n.pmRuleTargetEventVoList,n.tabpanelCode);if(!r)return!1;var o=JSON.parse(r).conditions,s=void 0===o?[]:o;return c()(s).call(s,(function(n){var r,o;n.refType!=D.COMPONENT&&n.targetType!=D.COMPONENT||(n.refType==D.COMPONENT&&t.push({key:i?p()(r="".concat(i,"->")).call(r,n.refCode||n.refValue):n.refCode||n.refValue,rules:[e]}),n.targetType==D.COMPONENT&&t.push({key:i?p()(o="".concat(i,"->")).call(o,n.targetValue):n.targetValue,rules:[e]}))})),t}(e);n&&n.length&&c()(n).call(n,(function(e){var n=e.key,r=void 0===n?"":n,i=e.rules,o=void 0===i?[]:i;t[r]?c()(o).call(o,(function(e){var n;null!==(n=t[r])&&void 0!==n&&I()(n).call(n,(function(t){return(null==t?void 0:t.relId)===(null==e?void 0:e.relId)}))||t[r].push(e)})):t[r]=o}))})),t}((0,j.NR)(e))}var q={currentDate:"1",currentTimestamp:"2",CurrentYear:"3",CurrentMonth:"4",CurrentDay:"5",CurrentAfter30Day:"6",CurrentBefore30Day:"7"};var B=n(53474),F=n(85569),U=n.n(F),V=n(38048),$=n.n(V),W=n(9665),K=n.n(W),z=(n(25440),n(85352)),H=(0,B.A)(z.Lu),G=[],Q={0:"setHidden",1:"setRequired",2:"setDisable",3:"setClear",4:"setDefaultValue",5:"limitDataRange",6:"setPopup",7:"openThePage",8:"setShow",9:"setNoRequired",10:"setNoDisable",11:"setDisableNotEffect",12:"setRequiredNotEffect",13:"setNoRequiredNotEffect",14:"setNoDisableNotEffect",16:"setProps"},X={setDefaultValue:function(e,t,n){var r,i=e.targetObj,o=e.targetObjVal;if(i){var s,a=this.config,l=this.dynamicMapComp,c=p()(r="".concat(n?n+"->":"")).call(r,i),u=/^_replace:/.test(o);u&&(o=function(e,t){var n=t.config,r=t.dynamicMapComp;return null==e?void 0:e.replace(/\$\{([^}]+)\}/g,(function(e,t,i){var o,s,a,l=null,c=null===(o=t)||void 0===o||null===(s=o.match)||void 0===s?void 0:s.call(o,/^_absoluteTarget:(.+)$/);if(t===z.DE.REF_VAL)t=null!==(a=null==n?void 0:n.bindValue)&&void 0!==a?a:"";else if(t===z.DE.CURRENT_DATE)t=(0,N.Yq)(new Date,"yyyy-MM-dd");else if(l=t.match(/^_route:(.*)$/)){var u,p=l[1],f=null==n||null===(u=n.route)||void 0===u?void 0:u.query;t=null==f?void 0:f[p]}else if("string"==typeof t&&/^_lang$/.test(t))t=null==n?void 0:n._lang;else if(null!=c&&c[1]){var d=null==r?void 0:r[c[1]];t=(null==d?void 0:d.bindValue)||""}else{var h,m,y=null===(h=t)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_assgin:(.*)$/);t=y?null==y?void 0:y[1]:""}return t}))}(null===(s=o)||void 0===s?void 0:s.replace(/^_replace:/,""),{config:a,dynamicMapComp:l}));var f="";try{f=JSON.parse(o)}catch(e){f=o||""}if("number"==typeof f&&(f="".concat(f)),u);else if(f===z.DE.REF_VAL){var d;f=null!==(d=null==a?void 0:a.bindValue)&&void 0!==d?d:""}else if(f===z.DE.CURRENT_DATE)f=(0,N.Yq)(new Date,"yyyy-MM-dd");else{var h,m,y=null,g=null===(h=f)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_absoluteTarget:(.+)$/);if("string"==typeof f&&(y=f.match(/^_route:(.*)$/))){var v,b=y[1],_=null==a||null===(v=a.route)||void 0===v?void 0:v.query;f=null==_?void 0:_[b]}else if("string"==typeof f&&/^_lang$/.test(f))f=null==a?void 0:a._lang;else if("string"==typeof f&&null!=g&&g[1]){var E=null==l?void 0:l[g[1]];f=(null==E?void 0:E.bindValue)||""}else{var x,S,w=null===(x=f)||void 0===x||null===(S=x.match)||void 0===S?void 0:S.call(x,/^_assgin:(.*)$/);if(w)f=null==w?void 0:w[1];else{var T=j.Ct.call(this,c,!0);(T||"0"==T)&&(f=T)}}}j.cv.call(this,c,f)}},setClear:function(e,t,n){var r;if(!t){var i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o);c()(s).call(s,(function(e){if(e){var t="";C()(H).call(H,e.metaType||e.labelType)&&(t=[]),C()(G).call(G,e.metaType||e.labelType)&&(t=!1),(0,N.$3)(e,"refValue")&&(e.refValue=t)}}))}}},setDisable:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o);return c()(s).call(s,(function(e){e&&(e.editFlag="0")})),function(){c()(s).call(s,(function(e){e&&(e.editFlag="1")}))}}},setDisableNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o),a=[];return c()(s).call(s,(function(e){var t=e&&e.editFlag;a.push(t),e&&(e.editFlag="0")})),function(){c()(s).call(s,(function(e,t){var n=a[t];e&&(e.editFlag=n)}))}}},setRequired:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o);return c()(s).call(s,(function(e){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){c()(s).call(s,(function(e){e&&(e.requiredFlag="0"),e&&e.refConfig&&(e.refConfig.requiredFlag="0")}))}}},setRequiredNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o),a=[];return c()(s).call(s,(function(e){var t=e&&e.requiredFlag;a.push(t),e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){c()(s).call(s,(function(e,t){var n=a[t];e&&(e.requiredFlag=n),e&&e.refConfig&&(e.refConfig.requiredFlag=n)}))}}},setHidden:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o,"setHidden");return d()((function(){c()(s).call(s,(function(e){e&&/^\d+$/.test(e.displayType)&&(e.displayType="0"),e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}),0),function(){c()(s).call(s,(function(e,t){e&&/^\d+$/.test(e.displayType)&&(e.displayType="1"),e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.displayType="1"),e&&e.refConfig&&(e.refConfig.hidden="0")}))}}},setShow:function(e,t,n,r){var i,o=e.targetObj;if(o){var s=p()(i="".concat(n?n+"->":"")).call(i,o),a=j.Vf.call(this,s,"setShow");return c()(a).call(a,(function(e){e&&/^\d+$/.test(e.displayType)&&(e.displayType="1"),e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.displayType="1"),e&&e.refConfig&&(e.refConfig.hidden="0")})),function(){return d()((function(){c()(a).call(a,(function(e,t){e&&/^\d+$/.test(e.displayType)&&(e.displayType="0"),e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}),0)}}},setNoRequired:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o),a=[];return c()(s).call(s,(function(e){e&&"0"!=e.requiredFlag&&(e&&(e.requiredFlag="0"),a.push((function(){e&&(e.requiredFlag="1")})))})),function(){c()(a).call(a,(function(e){return e()}))}}},setNoRequiredNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o),a=[];return c()(s).call(s,(function(e){var t=e&&e.requiredFlag;a.push(t),e&&(e.requiredFlag="0")})),function(){c()(s).call(s,(function(e,t){var n=a[t];e&&(e.requiredFlag=n)}))}}},setNoDisable:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o);return c()(s).call(s,(function(e){e&&(e.editFlag="1")})),function(){c()(s).call(s,(function(e){e&&(e.editFlag="0")}))}}},setNoDisableNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o),a=[];return c()(s).call(s,(function(e){var t=e&&e.editFlag;a.push(t),e&&(e.editFlag="1")})),function(){c()(s).call(s,(function(e,t){var n=a[t];e&&(e.editFlag=n)}))}}},limitDataRange:function(e,t,n){var r,i=this,o=e.targetObj,s=e.targetObjVal,a=void 0===s?"":s;if(o){var l,u=p()(r="".concat(n?n+"->":"")).call(r,o);if((l=(null==a?void 0:P()(a).call(a,"~"))>-1?a.split("~"):a.split(","))&&l.length){var f=[],d=j.Vf.call(this,u);return c()(d).call(d,(function(t){var n=!1,r={};if(f.push(r),t){var o=i.config,s="";if(-1!==(0,N.Tn)(["ElDatePicker"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var a=l[0],p=l[1];try{s=(0,N.Ho)({extendAttr:U()({min:a,max:p}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==o?void 0:o.bindValue)}catch(e){s=""}}else{if(-1===(0,N.Tn)(["ElSelect"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var d=j.Ct.call(i,u,!0);return min&&(0,j.Xe)(d,min)&&j.cv.call(i,t,min),void(max&&(0,j.MM)(d,max)&&j.cv.call(i,t,max))}try{console.log("event==:",e),s=(0,N.Ho)({extendAttr:U()({rangeOptions:l}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==o?void 0:o.bindValue)}catch(e){s=""}}if(delete s.metaCode,(0,N.Qd)(s)){var h,y,g=m()(s);c()(g).call(g,(function(e){if(r[e]=t[e],(0,N.$3)(t,e)||(n=!0),"string"==typeof s[e]){var o=i.config,a=null==o?void 0:o.bindValue;t[e]=s[e].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return $()(n=K()(t).call(t)).call(n)===z.DE.REF_VAL?a:$()(r=K()(t).call(t)).call(r)===z.DE.CURRENT_DATE?(0,N.Yq)(new Date,"yyyy-MM-dd"):e}))}else t[e]=s[e]})),n&&(null==t||null===(h=t.wrapVm)||void 0===h||null===(h=h.proxy)||void 0===h||null===(y=h.$forceUpdate)||void 0===y||y.call(h))}}})),function(){c()(d).call(d,(function(e,t){var n=f[t];if(e){var r=m()(n);c()(r).call(r,(function(t){e[t]=n[t]}))}}))}}}},setPopup:function(e,t,n){var r,i=e.targetMsg,o=e.targetMsgEn,s=P()(r=this.lang.value).call(r,"zh")>-1?i:o;this.messageInstance.warning(s,"",{showCancelButton:!1})},openThePage:function(e,t,n){var r=e.targetObjVal;r&&window.open(r,"_blank")},setProps:function(e,t,n,r){var i,o=this,s=e.targetObj,a=e.targetObjVal;if(s){var l=p()(i="".concat(n?n+"->":"")).call(i,s),u=this.config,f="";try{f=(0,N.Ho)({extendAttr:a,metaCode:"event setPorps code:".concat(u.metaCode)},null==u?void 0:u.bindValue)}catch(e){f=""}if(delete f.metaCode,(0,N.Qd)(f)){var d=j.Vf.call(this,l),h=[],y=m()(f);return c()(d).call(d,(function(e){var t,n,r=!1,i={};e&&(c()(y).call(y,(function(t){if(i[t]=e[t],(0,N.$3)(e,t)||(r=!0),"string"==typeof f[t]){var n=o.config,s=null==n?void 0:n.bindValue;e[t]=f[t].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return $()(n=K()(t).call(t)).call(n)===z.DE.REF_VAL?s:$()(r=K()(t).call(t)).call(r)===z.DE.CURRENT_DATE?(0,N.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=f[t]})),h.push(i),r&&(null==e||null===(t=e.wrapVm)||void 0===t||null===(t=t.proxy)||void 0===t||null===(n=t.$forceUpdate)||void 0===n||n.call(t)))})),function(){c()(d).call(d,(function(e,t){var n=h[t];e&&c()(y).call(y,(function(t){e[t]=n[t]}))}))}}}}};function Y(e,t,n,r){var i=this;return e=e||[],b()(e).call(e,(function(e){var o=e.eventId,s=Q[o];return X[s]&&X[s].call(i,e,t,n,r)}))}var J={},Z={};function ee(e,t){var n=this;e=e||[],this.rules=e;var l=this.config,u=l.dynamicHireRelat;l.metaCode,e&&e.length&&c()(e).call(e,(function(e){var l;if(e){var f=e.pmRuleTargetEventVoList,h=e.pmRuleTargetEventVOList,y=e.relId,v=e.tabpanelCode,b=p()(l="".concat(y,"__")).call(l,u);if(L.call(n,e))d()((function(){var r,i;J[b]&&c()(r=J[b]).call(r,(function(e){if(e){var t=null==e?void 0:e();t&&(Z[b]||(Z[b]=[]),Z[b].push(t))}})),Z[b]&&(null===(i=Z[b])||void 0===i||c()(i).call(i,(function(e){return e&&clearTimeout(e)})));var o=Y.call(n,f||h,t,v,e);J[b]=o}),0);else{var _=m()(J),E=g()(_).call(_,(function(e){var t,n,l=(t=e.split("__"),n=2,function(e){if(r(e))return e}(t)||function(e,t){var n=null==e?null:void 0!==i&&o(e)||e["@@iterator"];if(null!=n){var r,a,l,c,u=[],p=!0,f=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;p=!1}else for(;!(p=(r=l.call(n)).done)&&(s(u).call(u,r.value),u.length!==t);p=!0);}catch(e){f=!0,a=e}finally{try{if(!p&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}(t,n)||(0,a.A)(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],p=l[1];if(c==y){if(p===u)return!0;for(var f=te(p).codes,d=te(u).codes,h=0;h<d.length;h++){var m=d[h],g=f[h];if(!g||m.code!==g.code)return!0;if(m.idx!==g.idx)return!1}return!0}return!1}));c()(E).call(E,(function(e){var t;J[e]&&c()(t=J[e]).call(t,(function(t){if(t){var n=t();n&&(Z[e]||(Z[e]=[]),Z[e].push(n))}})),delete J[e]}))}}}))}function te(e){var t,n="",r=b()(t=e.split("->")).call(t,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?(n+=n?"->".concat(t[1]):t[1],{idx:E()(t[2]),code:t[1]}):(n+=n?"->".concat(e):e,{idx:-1,code:e})}));return{nativeRelat:n,codes:r}}},48618:(e,t,n)=>{n.d(t,{$3:()=>ne,$N:()=>oe,Dg:()=>de,E1:()=>Y,Ij:()=>ue,M6:()=>K,Oe:()=>ae,PT:()=>G,Qd:()=>re,Tn:()=>X,Ts:()=>fe,Vv:()=>se,Yq:()=>ie,ZH:()=>Q,bO:()=>Z,fN:()=>pe,fz:()=>J,mg:()=>R.A,pp:()=>ce,q2:()=>q.A,ro:()=>ee,vr:()=>z,yL:()=>le});var r=n(53811),i=n(7252),o=n(53474),s=n(22204),a=(n(16280),n(76918),n(48598),n(44114),n(54743),n(11745),n(38309),n(16573),n(78100),n(77936),n(23288),n(2892),n(9868),n(79432),n(26099),n(84864),n(57465),n(27495),n(87745),n(90906),n(38781),n(71761),n(25440),n(50375),n(21489),n(48140),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(21903),n(91134),n(33206),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(86614),n(41405),n(37467),n(44732),n(33684),n(79577),n(27681)),l=n.n(a),c=n(71426),u=n.n(c),p=n(27124),f=n.n(p),d=n(36586),h=n.n(d),m=n(18979),y=n.n(m),g=n(73363),v=n.n(g),b=n(86226),_=n.n(b),E=n(50697),x=n.n(E),S=(n(43981),n(11393)),w=n.n(S),T=n(66615),A=n.n(T),P=(n(11265),n(48079)),O=n.n(P),C=n(53930),k=n.n(C),I=n(87842),j=n.n(I),N=n(59261),D=n.n(N),M=n(74707),L=n.n(M),R=n(88592),q=n(11779),B=n(96032),F=n(92049),U=n(25010),V=n(54870),$=n(12935);function W(e){var t=l()(null);return function(n){return t[n]||(t[n]=e(n))}}function K(e){if(!e)return null;var t=Number(e);if(isNaN(t)){var n=["px","%","vh","vw","rem","em"],r=u()(n).call(n,(function(t){return null==e?void 0:f()(e).call(e,t)}));return r?h()(e)+r:null}return t+"px"}function z(e){var t=(0,s.A)(e);return"undefined"===t||"boolean"===t||"number"===t||"string"===t||"symbol"===t||"bigint"===t}n(75286);var H=/-(\w)/g,G=W((function(e){return e.replace(H,(function(e,t){return t?t.toUpperCase():""}))})),Q=W((function(e){return e.charAt(0).toUpperCase()+y()(e).call(e,1)}));function X(e,t){var n=J(v()(e).call(e,(function(e,t,n){return e[t]=n,e}),{}),t);return null==n?-1:n}function Y(e,t){return-1!==X(e,null==t?void 0:t.renderby)||-1!==X(e,null==t?void 0:t.metaType)}function J(e,t){if("string"!=typeof t)return null;var n=e;if(void 0!==n[t]&&null!==n[t])return n[t];var r=G(t);if(void 0!==n[r]&&null!==n[r])return n[r];var i=Q(r);return void 0!==n[i]&&null!==n[i]?n[i]:null}function Z(e){return"string"!=typeof e?e:Q(G(e))}function ee(e,t){return"string"==typeof e&&"string"==typeof t&&Q(G(e))===Q(G(t))}var te=Object.prototype.hasOwnProperty;function ne(e,t){return te.call(e,t)}function re(e){return"[object Object]"===Object.prototype.toString.call(e)&&null!=e}function ie(e,t){var n;if(!e)return"";(0,$.$P)(e)||(e=new Date(e)),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,"".concat(e.getFullYear()).substr(4-RegExp.$1.length)));var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};return _()(n=x()(r)).call(n,(function(e){var n="".concat(r[e]);new RegExp("(".concat(e,")")).test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n:function(e){return"00".concat(e).substr(e.length)}(n)))})),t}function oe(e,t,n){if(!t)return e;if(!e)return t;var r=(0,B.A)(e,t,(function(e,t){if(!t)return e;if(!e)return t;if((0,F.A)(t)&&(0,F.A)(e))switch(n){case"union":return(0,q.A)(e,t,U.A);case"intersection":return(0,V.A)(e,t,U.A);case"concat":return w()(e).call(e,t);case"replace":return t;default:throw new Error("Unknown merge array strategy: ".concat(n))}return re(t)&&re(e)?oe(e,t,n):t}));if(A()(e)&&r&&!A()(r)){var i,o=[];_()(i=x()(r)).call(i,(function(e){o[e]=r[e]})),r=o}return r}function se(e,t){var n=t;if("object"===(0,s.A)(e)&&"object"===(0,s.A)(t)&&(n=(0,B.A)(e,t,(function(e,t){if((0,F.A)(e)&&(0,F.A)(t)){for(var n=[],r=0;r<e.length&&r<t.length;r++)n.push(se(e[r],t[r]));return r<e.length?n.push.apply(n,(0,o.A)(y()(e).call(e,r))):n.push.apply(n,(0,o.A)(y()(t).call(t,r))),n}return re(t)&&re(e)?se(e,t):t}))),A()(e)&&n&&!A()(n)){var r,i=[];_()(r=x()(n)).call(r,(function(e){i[e]=n[e]})),n=i}return n}function ae(e){return/^\s*(?:function\s*(?:\w+\s*)?\([^()]*\)\s*\{[\s\S]*?\})\s*$/.test(e)||/^\s*\((?:\s*\w+(?:\s*=\s*\w+)?\s*(?:,\s*)?)*\)\s*=>\s*(?:\{[\s\S]*?\}|[\s\S]+?)\s*$/.test(e)}function le(e){return e&&"function"==typeof e.then}function ce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.A)(Date,t)}function ue(){var e;return w()(e="".concat(ie(new Date,"yyyy-MM-dd hh:mm:ss"),"-")).call(e,function(){if("object"===("undefined"==typeof crypto?"undefined":(0,s.A)(crypto))){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();if("function"==typeof crypto.getRandomValues&&"function"==typeof Uint8Array)return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){var t=Number(e);return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}var e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}())}function pe(e,t){var n,r,i,o=e.referenceOptions,s=e.selectKey,a=[];try{var l;a=O()(l=JSON.parse((null==e?void 0:e.optionItems)||"[]")).call(l,(function(e){return{columnValue:e.value,columnDesc_zh:e.label,columnDesc:e.label_en||e.label,columnStatus:e.columnStatus}}))}catch(e){a=[]}var c=(null==t?void 0:t.value)&&(null==t||null===(n=t.value)||void 0===n?void 0:n[s])||(null==t?void 0:t.value)&&(null==t||null===(r=t.value)||void 0===r?void 0:r["".concat(e.metaCode,"ListValue")])||(null==t?void 0:t.value)&&(null==t||null===(i=t.value)||void 0===i?void 0:i[o])||a||[];return(null==e?void 0:e.priOptions)||c}function fe(e,t,n,i){e[t]=n;var o=i||{};k()(e,t,(0,r.A)({value:n,writable:!0,enumerable:!1,configurable:!0},o))}function de(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(j());if(null===e||"object"!==(0,s.A)(e))switch((0,s.A)(e)){case"string":case"number":return"";default:return null}if(r.has(e))return r.get(e);if(A()(e))t=[],r.set(e,t),(n=t).push.apply(n,(0,o.A)(O()(e).call(e,(function(e){return de(e,r)}))));else if(e instanceof Date)t=null;else if(e instanceof D())t=new(D());else if(e instanceof L())t=new(L());else{t={},r.set(e,t);for(var i=0,a=x()(e);i<a.length;i++){var l=a[i],c=de(e[l],r);null!=c&&(t[l]=c)}}return t}},85352:(e,t,n)=>{n.d(t,{AP:()=>k,Bs:()=>b,DE:()=>c,LX:()=>y,Lu:()=>g,MD:()=>_,Op:()=>w,R_:()=>d,UP:()=>h,V6:()=>v,Xj:()=>P,aX:()=>x,dK:()=>C,fH:()=>S,g:()=>l,jf:()=>m,of:()=>f,pL:()=>E,s1:()=>I,ue:()=>A,un:()=>p,yD:()=>T,yz:()=>O});var r=n(64007),i=n.n(r),o=n(11393),s=n.n(o),a=(n(2892),n(48618)),l={OPERATE:"operate",DETAIL:"detail",LOG:"log"},c={CURRENT_DATE:"_currentDate",REF_VAL:"_refVal"},u=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentTabPaneH5"],p="CustomComponentFormLayout",f="CustomComponentFormLayoutH5",d=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentDialog","ElButton","CustomComponentTable","CustomComponentRow","CustomComponentCol","CustomComponentCycle","CustomComponentCardH5","CustomComponentCollapseH5","CustomComponentTabsH5","CustomComponentTabPaneH5","CustomComponentTableH5","cmi-cell","cmi-button","cmi-link","cmi-dropdown-menu","cmi-divider"],h=["ElInput","ElButton","CmiInput","CmiButton","ElText"],m=["CmiInput","CmiSelect","CmiPicker"],y=["CustomComponentTabPane","CustomComponentDialog","CustomComponentCol","CustomComponentTabPaneH5"],g=["CustomComponentTable"],v=["el-select","el-date-picker","el-time-picker","el-time-select","el-cascader","el-input-number","CustomComponentTree","CustomComponentSteps"],b=["el-span"],_="el-",E="t-",x="cmi-",S="H5-",w="0",T=["ElText"],A=["ElInput","ElDatePicker","ElInputNumber"],P=["ElSelect"],O={compInfo:{type:Object,getValue:function(e,t,n){return e}},modelValue:{type:[String,Number,Object,Array,Boolean,void 0,null],getValue:function(e,t,n){return n.value}},config:{type:Object,getValue:function(e,t,n){return e}},refValue:{type:[Object,Number,String],default:"",getValue:function(e,t,n){return n}},disabled:{type:Boolean,default:!1,getValue:function(e,t,n){return k(e,t.mode)}},clearable:{type:Boolean,default:!1,getValue:function(e,t,n){return"1"==e.clearableFlag}},required:{type:Boolean,default:!1,getValue:function(e,t,n){return"1"==e.requiredFlag}},hidden:{type:Boolean,default:!1,getValue:function(e,t,n){return C({config:e})}},onlyRequiredFlag:{type:[Boolean,String,Number],default:!1,getValue:function(e,t,n){return e.onlyRequiredFlag}},tableData:{type:Array,default:function(){return[]},getValue:function(e,t,n){return t.tableData}},rowScope:{type:Object,getValue:function(e,t,n){return t.rowScope}},width:{type:[String,Number],default:"",getValue:function(e,t,n){return e.width?(0,a.M6)(e.width):null}},mode:{type:[String],default:"",getValue:function(e,t){return t.mode}},options:{type:Array,default:function(){return[]},getValue:function(e,t,n,r){return(0,a.fN)(e,r)}},placeholder:{type:String,default:function(){return""},getValue:function(e,t,n,r,o){return((null==o?void 0:i()(o).call(o,"zh"))>-1?e.defPlacehold:e.defPlaceholdEn)||""}},placeholderEn:{type:String,default:function(){return""},getValue:function(e,t,n,r,i){return e.defPlaceholdEn}}};function C(e){var t=e.config;return"boolean"==typeof t.hidden&&t.hidden||"1"==t.hidden||"1"==t.collapseHidden}function k(e,t){var n,r;return!(0,a.E1)(["CustomComponentTabs"],e)&&(t===l.LOG?!e.logAlong&&!(0,a.E1)(s()(n=[p]).call(n,u),e)||"0"==e.editFlag:t===l.DETAIL&&!e.detailAlong&&!(0,a.E1)(s()(r=[p]).call(r,u),e)||"0"==e.editFlag)}var I={row:"CustomComponentRow",grid:"CustomComponentRow","grid-col":"CustomComponentCol",table:"CustomComponentTable","checkbox-table":"CustomComponentTable",tab:"CustomComponentTabs","tab-pane":"CustomComponentTabPane",collapse:"CustomComponentCollapse",card:"CustomComponentCollapse",cycle:"CustomComponentCycle",input:"ElInput",textarea:"ElInput",button:"ElButton","static-text":"ElText",number:"ElInputNumber",radio:"ElRadio",checkbox:"ElCheckbox",select:"ElSelect",time:"ElTimePicker","time-range":"ElTimePicker",date:"ElDatePicker","date-range":"ElDatePicker",cascader:"ElCascader","select-employees":"CustomComponentSelectEmployees","rich-editor":"CustomComponentEditor",pagination:"ElPagination",tree:"CustomComponentTree",steps:"CustomComponentSteps","mail-send":"CustomComponentSendMail","file-import":"CustomComponentFileImport","file-export":"CustomComponentFileExport","cmi-card":"CustomComponentCardH5","cmi-collapse":"CustomComponentCollapseH5","cmi-tab":"CustomComponentTabsH5","cmi-tab-pane":"CustomComponentTabPaneH5","cmi-table":"CustomComponentTableH5","cmi-datetime":"CmiDatetimePicker"};window&&(!window["resolver-egretimp-plus"]&&(window["resolver-egretimp-plus"]={}),window["resolver-egretimp-plus"].componentPropsType=O)},24691:(e,t,n)=>{function r(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=document.createRange();return i.setStart(e,0),i.setEnd(e,null==e||null===(t=e.childNodes)||void 0===t?void 0:t.length),(null===(n=i.getBoundingClientRect())||void 0===n?void 0:n.width)-r}n.d(t,{fW:()=>r}),n(9868),n(80668),n(63579)},17427:(e,t,n)=>{n.d(t,{$3:()=>r.$3,$N:()=>r.$N,$P:()=>s.$P,AP:()=>o.AP,Bs:()=>o.Bs,Dg:()=>r.Dg,Et:()=>s.Et,Ho:()=>i.Ho,Ij:()=>r.Ij,KK:()=>i.KK,Kg:()=>s.Kg,M9:()=>i.M9,Op:()=>o.Op,PT:()=>r.PT,Qd:()=>r.Qd,SK:()=>i.SK,Tn:()=>r.Tn,Ts:()=>r.Ts,UP:()=>o.UP,Vv:()=>r.Vv,Yq:()=>r.Yq,ZB:()=>i.ZB,ZH:()=>r.ZH,cy:()=>s.cy,fw:()=>i.fw,mg:()=>r.mg,q2:()=>r.q2,qg:()=>i.qg,rn:()=>i.rn,ro:()=>r.ro,vr:()=>r.vr,yL:()=>r.yL,yo:()=>i.yo,yz:()=>o.yz});var r=n(48618),i=n(8069),o=n(85352),s=n(12935)},12935:(e,t,n)=>{n.d(t,{$P:()=>o.A,Et:()=>a.A,Kg:()=>c.A,Tn:()=>s.A,b0:()=>u.A,cy:()=>p,kZ:()=>l.A,sw:()=>f});var r=n(66615),i=n.n(r),o=(n(76918),n(23288),n(26099),n(27495),n(90906),n(38781),n(22922)),s=n(89610),a=n(21879),l=n(21395),c=n(32084),u=n(69592);function p(e){return e&&i()(e)}function f(e){return null!=e}Object.prototype.toString},20807:(e,t,n)=>{n.d(t,{A:()=>x});var r=n(37891),i=n(34963),o=(n(79432),n(29544)),s=n.n(o),a=n(86226),l=n.n(a),c=n(50697),u=n.n(c),p=n(75286),f=[(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return U.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return R.default}});var i=n(348),o=n(349),s=n(350),a=n(362),l=n(363);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(364),u=n(365),p=n(366),f=n(4);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var d=n(368);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=n(369);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=n(27),y=n(370),g=n(371),v=n(372),b=n(373),_=n(374),E=n(172),x=n(173),S=n(174),w=n(175),T=n(176),A=n(375),P=n(376);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var O=n(26);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var C=n(377),k=n(378),I=n(177),j=n(379),N=n(380),D=n(178),M=n(381),L=n(382),R=n(383),q=n(9);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return q[e]}}))}));var B=n(384),F=n(385),U=n(386),V=n(181),$=n(179),W=n(171),K=n(60),z=n(387),H=n(388);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}}))}));var G=n(180),Q=n(96),X=n(42),Y=n(389),J=n(390),Z=n(391),ee=n(182),te=n(170),ne=n(392),re=n(168),ie=n(393),oe=n(394),se=n(395),ae=n(98),le=n(396),ce=n(43),ue=n(397),pe=n(165),fe=n(97),de=n(164),he=n(2);Object.keys(he).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===he[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}}))}));var me=n(58);t.react={isReactComponent:i.default,isCompatTag:o.default,buildChildren:s.default},t.toSequenceExpression=n(398).default},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_EXTENSIONS=void 0,Object.defineProperty(t,"File",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"buildExternalHelpers",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"createConfigItem",{enumerable:!0,get:function(){return p.createConfigItem}}),Object.defineProperty(t,"createConfigItemAsync",{enumerable:!0,get:function(){return p.createConfigItemAsync}}),Object.defineProperty(t,"createConfigItemSync",{enumerable:!0,get:function(){return p.createConfigItemSync}}),Object.defineProperty(t,"getEnv",{enumerable:!0,get:function(){return s.getEnv}}),Object.defineProperty(t,"loadOptions",{enumerable:!0,get:function(){return p.loadOptions}}),Object.defineProperty(t,"loadOptionsAsync",{enumerable:!0,get:function(){return p.loadOptionsAsync}}),Object.defineProperty(t,"loadOptionsSync",{enumerable:!0,get:function(){return p.loadOptionsSync}}),Object.defineProperty(t,"loadPartialConfig",{enumerable:!0,get:function(){return p.loadPartialConfig}}),Object.defineProperty(t,"loadPartialConfigAsync",{enumerable:!0,get:function(){return p.loadPartialConfigAsync}}),Object.defineProperty(t,"loadPartialConfigSync",{enumerable:!0,get:function(){return p.loadPartialConfigSync}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return m.parse}}),Object.defineProperty(t,"parseAsync",{enumerable:!0,get:function(){return m.parseAsync}}),Object.defineProperty(t,"parseSync",{enumerable:!0,get:function(){return m.parseSync}}),Object.defineProperty(t,"resolvePlugin",{enumerable:!0,get:function(){return o.resolvePlugin}}),Object.defineProperty(t,"resolvePreset",{enumerable:!0,get:function(){return o.resolvePreset}}),Object.defineProperty(t,"template",{enumerable:!0,get:function(){return u().default}}),Object.defineProperty(t,"tokTypes",{enumerable:!0,get:function(){return l().tokTypes}}),Object.defineProperty(t,"transform",{enumerable:!0,get:function(){return f.transform}}),Object.defineProperty(t,"transformAsync",{enumerable:!0,get:function(){return f.transformAsync}}),Object.defineProperty(t,"transformFile",{enumerable:!0,get:function(){return d.transformFile}}),Object.defineProperty(t,"transformFileAsync",{enumerable:!0,get:function(){return d.transformFileAsync}}),Object.defineProperty(t,"transformFileSync",{enumerable:!0,get:function(){return d.transformFileSync}}),Object.defineProperty(t,"transformFromAst",{enumerable:!0,get:function(){return h.transformFromAst}}),Object.defineProperty(t,"transformFromAstAsync",{enumerable:!0,get:function(){return h.transformFromAstAsync}}),Object.defineProperty(t,"transformFromAstSync",{enumerable:!0,get:function(){return h.transformFromAstSync}}),Object.defineProperty(t,"transformSync",{enumerable:!0,get:function(){return f.transformSync}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return c().default}}),t.version=t.types=void 0;var r=n(95),i=n(453),o=n(81),s=n(278);function a(){const e=n(0);return a=function(){return e},e}function l(){const e=n(21);return l=function(){return e},e}function c(){const e=n(14);return c=function(){return e},e}function u(){const e=n(37);return u=function(){return e},e}Object.defineProperty(t,"types",{enumerable:!0,get:function(){return a()}});var p=n(82),f=n(475),d=n(488),h=n(489),m=n(490);n(1),t.version="7.23.9",t.DEFAULT_EXTENSIONS=Object.freeze([".js",".jsx",".es6",".es",".mjs",".cjs"]),t.OptionManager=class{init(e){return(0,p.loadOptionsSync)(e)}},t.Plugin=function(e){throw new Error(`The (${e}) Babel 5 plugin is being run with an unsupported Babel version.`)}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBinary=function(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBlock=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockParent=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,r.default)(e,t))},t.isClass=function(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isCompletionStatement=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditional=function(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBody=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumMember=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpression=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpressionWrapper=function(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,r.default)(e,t))},t.isFlow=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowPredicate=function(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowType=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFor=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForXStatement=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunction=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionParent=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,r.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isImmutable=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportOrExportDeclaration=o,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,r.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSX=function(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,r.default)(e,t))},t.isLVal=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isLiteral=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isLoop=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isMethod=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMiscellaneous=function(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleDeclaration=function(e,t){return(0,i.default)("isModuleDeclaration","isImportOrExportDeclaration"),o(e,t)},t.isModuleExpression=function(e,t){return!!e&&"ModuleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleSpecifier=function(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,i.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectMember=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPattern=function(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPatternLike=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isPrivate=function(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,r.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,r.default)(e,t))},t.isProperty=function(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPureish=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,i.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestProperty=function(e,t){return(0,i.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isScopable=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,i.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isStandardized=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStatement=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBaseType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEntityName=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeElement=function(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTerminatorless=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeScript=function(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryLike=function(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUserWhitespacable=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,r.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isWhile=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,r.default)(e,t))};var r=n(96),i=n(58);function o(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)}},(e,t,n)=>{const r=n(48),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(47),{safeRe:s,t:a}=n(34),l=n(75),{compareIdentifiers:c}=n(128);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.default)({type:"ArrayExpression",elements:e})},t.arrayPattern=function(e){return(0,r.default)({type:"ArrayPattern",elements:e})},t.arrayTypeAnnotation=function(e){return(0,r.default)({type:"ArrayTypeAnnotation",elementType:e})},t.arrowFunctionExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"ArrowFunctionExpression",params:e,body:t,async:n,expression:null})},t.assignmentExpression=function(e,t,n){return(0,r.default)({type:"AssignmentExpression",operator:e,left:t,right:n})},t.assignmentPattern=function(e,t){return(0,r.default)({type:"AssignmentPattern",left:e,right:t})},t.awaitExpression=function(e){return(0,r.default)({type:"AwaitExpression",argument:e})},t.bigIntLiteral=function(e){return(0,r.default)({type:"BigIntLiteral",value:e})},t.binaryExpression=function(e,t,n){return(0,r.default)({type:"BinaryExpression",operator:e,left:t,right:n})},t.bindExpression=function(e,t){return(0,r.default)({type:"BindExpression",object:e,callee:t})},t.blockStatement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,r.default)({type:"BlockStatement",body:e,directives:t})},t.booleanLiteral=function(e){return(0,r.default)({type:"BooleanLiteral",value:e})},t.booleanLiteralTypeAnnotation=function(e){return(0,r.default)({type:"BooleanLiteralTypeAnnotation",value:e})},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"BreakStatement",label:e})},t.callExpression=function(e,t){return(0,r.default)({type:"CallExpression",callee:e,arguments:t})},t.catchClause=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"CatchClause",param:e,body:t})},t.classAccessorProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return(0,r.default)({type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:n,decorators:i,computed:o,static:s})},t.classBody=function(e){return(0,r.default)({type:"ClassBody",body:e})},t.classDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:i})},t.classExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassExpression",id:e,superClass:t,body:n,decorators:i})},t.classImplements=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"ClassImplements",id:e,typeParameters:t})},t.classMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return(0,r.default)({type:"ClassMethod",kind:e,key:t,params:n,body:i,computed:o,static:s,generator:a,async:l})},t.classPrivateMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ClassPrivateMethod",kind:e,key:t,params:n,body:i,static:o})},t.classPrivateProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:i})},t.classProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return(0,r.default)({type:"ClassProperty",key:e,value:t,typeAnnotation:n,decorators:i,computed:o,static:s})},t.conditionalExpression=function(e,t,n){return(0,r.default)({type:"ConditionalExpression",test:e,consequent:t,alternate:n})},t.continueStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"ContinueStatement",label:e})},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){return(0,r.default)({type:"DecimalLiteral",value:e})},t.declareClass=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareClass",id:e,typeParameters:t,extends:n,body:i})},t.declareExportAllDeclaration=function(e){return(0,r.default)({type:"DeclareExportAllDeclaration",source:e})},t.declareExportDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:n})},t.declareFunction=function(e){return(0,r.default)({type:"DeclareFunction",id:e})},t.declareInterface=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:i})},t.declareModule=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareModule",id:e,body:t,kind:n})},t.declareModuleExports=function(e){return(0,r.default)({type:"DeclareModuleExports",typeAnnotation:e})},t.declareOpaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:n})},t.declareTypeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"DeclareTypeAlias",id:e,typeParameters:t,right:n})},t.declareVariable=function(e){return(0,r.default)({type:"DeclareVariable",id:e})},t.declaredPredicate=function(e){return(0,r.default)({type:"DeclaredPredicate",value:e})},t.decorator=function(e){return(0,r.default)({type:"Decorator",expression:e})},t.directive=function(e){return(0,r.default)({type:"Directive",value:e})},t.directiveLiteral=function(e){return(0,r.default)({type:"DirectiveLiteral",value:e})},t.doExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"DoExpression",body:e,async:t})},t.doWhileStatement=function(e,t){return(0,r.default)({type:"DoWhileStatement",test:e,body:t})},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){return(0,r.default)({type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumBooleanMember=function(e){return(0,r.default)({type:"EnumBooleanMember",id:e,init:null})},t.enumDeclaration=function(e,t){return(0,r.default)({type:"EnumDeclaration",id:e,body:t})},t.enumDefaultedMember=function(e){return(0,r.default)({type:"EnumDefaultedMember",id:e})},t.enumNumberBody=function(e){return(0,r.default)({type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumNumberMember=function(e,t){return(0,r.default)({type:"EnumNumberMember",id:e,init:t})},t.enumStringBody=function(e){return(0,r.default)({type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumStringMember=function(e,t){return(0,r.default)({type:"EnumStringMember",id:e,init:t})},t.enumSymbolBody=function(e){return(0,r.default)({type:"EnumSymbolBody",members:e,hasUnknownMembers:null})},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){return(0,r.default)({type:"ExportAllDeclaration",source:e})},t.exportDefaultDeclaration=function(e){return(0,r.default)({type:"ExportDefaultDeclaration",declaration:e})},t.exportDefaultSpecifier=function(e){return(0,r.default)({type:"ExportDefaultSpecifier",exported:e})},t.exportNamedDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:n})},t.exportNamespaceSpecifier=function(e){return(0,r.default)({type:"ExportNamespaceSpecifier",exported:e})},t.exportSpecifier=function(e,t){return(0,r.default)({type:"ExportSpecifier",local:e,exported:t})},t.expressionStatement=function(e){return(0,r.default)({type:"ExpressionStatement",expression:e})},t.file=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"File",program:e,comments:t,tokens:n})},t.forInStatement=function(e,t,n){return(0,r.default)({type:"ForInStatement",left:e,right:t,body:n})},t.forOfStatement=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ForOfStatement",left:e,right:t,body:n,await:i})},t.forStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"ForStatement",init:e,test:t,update:n,body:i})},t.functionDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionDeclaration",id:e,params:t,body:n,generator:i,async:o})},t.functionExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionExpression",id:e,params:t,body:n,generator:i,async:o})},t.functionTypeAnnotation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:i})},t.functionTypeParam=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"FunctionTypeParam",name:e,typeAnnotation:t})},t.genericTypeAnnotation=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"GenericTypeAnnotation",id:e,typeParameters:t})},t.identifier=function(e){return(0,r.default)({type:"Identifier",name:e})},t.ifStatement=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"IfStatement",test:e,consequent:t,alternate:n})},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){return(0,r.default)({type:"ImportAttribute",key:e,value:t})},t.importDeclaration=function(e,t){return(0,r.default)({type:"ImportDeclaration",specifiers:e,source:t})},t.importDefaultSpecifier=function(e){return(0,r.default)({type:"ImportDefaultSpecifier",local:e})},t.importExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"ImportExpression",source:e,options:t})},t.importNamespaceSpecifier=function(e){return(0,r.default)({type:"ImportNamespaceSpecifier",local:e})},t.importSpecifier=function(e,t){return(0,r.default)({type:"ImportSpecifier",local:e,imported:t})},t.indexedAccessType=function(e,t){return(0,r.default)({type:"IndexedAccessType",objectType:e,indexType:t})},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:i})},t.interfaceExtends=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"InterfaceExtends",id:e,typeParameters:t})},t.interfaceTypeAnnotation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"InterfaceTypeAnnotation",extends:e,body:t})},t.interpreterDirective=function(e){return(0,r.default)({type:"InterpreterDirective",value:e})},t.intersectionTypeAnnotation=function(e){return(0,r.default)({type:"IntersectionTypeAnnotation",types:e})},t.jSXAttribute=t.jsxAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"JSXAttribute",name:e,value:t})},t.jSXClosingElement=t.jsxClosingElement=function(e){return(0,r.default)({type:"JSXClosingElement",name:e})},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"JSXElement",openingElement:e,closingElement:t,children:n,selfClosing:i})},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){return(0,r.default)({type:"JSXExpressionContainer",expression:e})},t.jSXFragment=t.jsxFragment=function(e,t,n){return(0,r.default)({type:"JSXFragment",openingFragment:e,closingFragment:t,children:n})},t.jSXIdentifier=t.jsxIdentifier=function(e){return(0,r.default)({type:"JSXIdentifier",name:e})},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){return(0,r.default)({type:"JSXMemberExpression",object:e,property:t})},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){return(0,r.default)({type:"JSXNamespacedName",namespace:e,name:t})},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"JSXOpeningElement",name:e,attributes:t,selfClosing:n})},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){return(0,r.default)({type:"JSXSpreadAttribute",argument:e})},t.jSXSpreadChild=t.jsxSpreadChild=function(e){return(0,r.default)({type:"JSXSpreadChild",expression:e})},t.jSXText=t.jsxText=function(e){return(0,r.default)({type:"JSXText",value:e})},t.labeledStatement=function(e,t){return(0,r.default)({type:"LabeledStatement",label:e,body:t})},t.logicalExpression=function(e,t,n){return(0,r.default)({type:"LogicalExpression",operator:e,left:t,right:n})},t.memberExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"MemberExpression",object:e,property:t,computed:n,optional:i})},t.metaProperty=function(e,t){return(0,r.default)({type:"MetaProperty",meta:e,property:t})},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){return(0,r.default)({type:"ModuleExpression",body:e})},t.newExpression=function(e,t){return(0,r.default)({type:"NewExpression",callee:e,arguments:t})},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){return(0,r.default)({type:"NullableTypeAnnotation",typeAnnotation:e})},t.numberLiteral=function(e){return(0,i.default)("NumberLiteral","NumericLiteral","The node type "),o(e)},t.numberLiteralTypeAnnotation=function(e){return(0,r.default)({type:"NumberLiteralTypeAnnotation",value:e})},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=o,t.objectExpression=function(e){return(0,r.default)({type:"ObjectExpression",properties:e})},t.objectMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,r.default)({type:"ObjectMethod",kind:e,key:t,params:n,body:i,computed:o,generator:s,async:a})},t.objectPattern=function(e){return(0,r.default)({type:"ObjectPattern",properties:e})},t.objectProperty=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"ObjectProperty",key:e,value:t,computed:n,shorthand:i,decorators:o})},t.objectTypeAnnotation=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:i,exact:o})},t.objectTypeCallProperty=function(e){return(0,r.default)({type:"ObjectTypeCallProperty",value:e,static:null})},t.objectTypeIndexer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:i,static:null})},t.objectTypeInternalSlot=function(e,t,n,i,o){return(0,r.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:i,method:o})},t.objectTypeProperty=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"ObjectTypeProperty",key:e,value:t,variance:n,kind:null,method:null,optional:null,proto:null,static:null})},t.objectTypeSpreadProperty=function(e){return(0,r.default)({type:"ObjectTypeSpreadProperty",argument:e})},t.opaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:i})},t.optionalCallExpression=function(e,t,n){return(0,r.default)({type:"OptionalCallExpression",callee:e,arguments:t,optional:n})},t.optionalIndexedAccessType=function(e,t){return(0,r.default)({type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null})},t.optionalMemberExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:i})},t.parenthesizedExpression=function(e){return(0,r.default)({type:"ParenthesizedExpression",expression:e})},t.pipelineBareFunction=function(e){return(0,r.default)({type:"PipelineBareFunction",callee:e})},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){return(0,r.default)({type:"PipelineTopicExpression",expression:e})},t.placeholder=function(e,t){return(0,r.default)({type:"Placeholder",expectedNode:e,name:t})},t.privateName=function(e){return(0,r.default)({type:"PrivateName",id:e})},t.program=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"script",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"Program",body:e,directives:t,sourceType:n,interpreter:i,sourceFile:null})},t.qualifiedTypeIdentifier=function(e,t){return(0,r.default)({type:"QualifiedTypeIdentifier",id:e,qualification:t})},t.recordExpression=function(e){return(0,r.default)({type:"RecordExpression",properties:e})},t.regExpLiteral=s,t.regexLiteral=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,i.default)("RegexLiteral","RegExpLiteral","The node type "),s(e,t)},t.restElement=a,t.restProperty=function(e){return(0,i.default)("RestProperty","RestElement","The node type "),a(e)},t.returnStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"ReturnStatement",argument:e})},t.sequenceExpression=function(e){return(0,r.default)({type:"SequenceExpression",expressions:e})},t.spreadElement=l,t.spreadProperty=function(e){return(0,i.default)("SpreadProperty","SpreadElement","The node type "),l(e)},t.staticBlock=function(e){return(0,r.default)({type:"StaticBlock",body:e})},t.stringLiteral=function(e){return(0,r.default)({type:"StringLiteral",value:e})},t.stringLiteralTypeAnnotation=function(e){return(0,r.default)({type:"StringLiteralTypeAnnotation",value:e})},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"SwitchCase",test:e,consequent:t})},t.switchStatement=function(e,t){return(0,r.default)({type:"SwitchStatement",discriminant:e,cases:t})},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){return(0,r.default)({type:"TaggedTemplateExpression",tag:e,quasi:t})},t.templateElement=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"TemplateElement",value:e,tail:t})},t.templateLiteral=function(e,t){return(0,r.default)({type:"TemplateLiteral",quasis:e,expressions:t})},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){return(0,r.default)({type:"ThrowStatement",argument:e})},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TryStatement",block:e,handler:t,finalizer:n})},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){return(0,r.default)({type:"TSArrayType",elementType:e})},t.tSAsExpression=t.tsAsExpression=function(e,t){return(0,r.default)({type:"TSAsExpression",expression:e,typeAnnotation:t})},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSConditionalType=t.tsConditionalType=function(e,t,n,i){return(0,r.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:i})},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSConstructorType=t.tsConstructorType=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSDeclareFunction=t.tsDeclareFunction=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:i})},t.tSDeclareMethod=t.tsDeclareMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:n,params:i,returnType:o})},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){return(0,r.default)({type:"TSEnumDeclaration",id:e,members:t})},t.tSEnumMember=t.tsEnumMember=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSEnumMember",id:e,initializer:t})},t.tSExportAssignment=t.tsExportAssignment=function(e){return(0,r.default)({type:"TSExportAssignment",expression:e})},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t})},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){return(0,r.default)({type:"TSExternalModuleReference",expression:e})},t.tSFunctionType=t.tsFunctionType=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){return(0,r.default)({type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null})},t.tSImportType=t.tsImportType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSImportType",argument:e,qualifier:t,typeParameters:n})},t.tSIndexSignature=t.tsIndexSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSIndexSignature",parameters:e,typeAnnotation:t})},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){return(0,r.default)({type:"TSIndexedAccessType",objectType:e,indexType:t})},t.tSInferType=t.tsInferType=function(e){return(0,r.default)({type:"TSInferType",typeParameter:e})},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSInstantiationExpression",expression:e,typeParameters:t})},t.tSInterfaceBody=t.tsInterfaceBody=function(e){return(0,r.default)({type:"TSInterfaceBody",body:e})},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:i})},t.tSIntersectionType=t.tsIntersectionType=function(e){return(0,r.default)({type:"TSIntersectionType",types:e})},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){return(0,r.default)({type:"TSLiteralType",literal:e})},t.tSMappedType=t.tsMappedType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:n})},t.tSMethodSignature=t.tsMethodSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:n,typeAnnotation:i,kind:null})},t.tSModuleBlock=t.tsModuleBlock=function(e){return(0,r.default)({type:"TSModuleBlock",body:e})},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){return(0,r.default)({type:"TSModuleDeclaration",id:e,body:t})},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"TSNamedTupleMember",label:e,elementType:t,optional:n})},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){return(0,r.default)({type:"TSNamespaceExportDeclaration",id:e})},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){return(0,r.default)({type:"TSNonNullExpression",expression:e})},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){return(0,r.default)({type:"TSOptionalType",typeAnnotation:e})},t.tSParameterProperty=t.tsParameterProperty=function(e){return(0,r.default)({type:"TSParameterProperty",parameter:e})},t.tSParenthesizedType=t.tsParenthesizedType=function(e){return(0,r.default)({type:"TSParenthesizedType",typeAnnotation:e})},t.tSPropertySignature=t.tsPropertySignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null})},t.tSQualifiedName=t.tsQualifiedName=function(e,t){return(0,r.default)({type:"TSQualifiedName",left:e,right:t})},t.tSRestType=t.tsRestType=function(e){return(0,r.default)({type:"TSRestType",typeAnnotation:e})},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){return(0,r.default)({type:"TSSatisfiesExpression",expression:e,typeAnnotation:t})},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){return(0,r.default)({type:"TSTupleType",elementTypes:e})},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:n})},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){return(0,r.default)({type:"TSTypeAnnotation",typeAnnotation:e})},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){return(0,r.default)({type:"TSTypeAssertion",typeAnnotation:e,expression:t})},t.tSTypeLiteral=t.tsTypeLiteral=function(e){return(0,r.default)({type:"TSTypeLiteral",members:e})},t.tSTypeOperator=t.tsTypeOperator=function(e){return(0,r.default)({type:"TSTypeOperator",typeAnnotation:e,operator:null})},t.tSTypeParameter=t.tsTypeParameter=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TSTypeParameter",constraint:e,default:t,name:n})},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){return(0,r.default)({type:"TSTypeParameterDeclaration",params:e})},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){return(0,r.default)({type:"TSTypeParameterInstantiation",params:e})},t.tSTypePredicate=t.tsTypePredicate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:n})},t.tSTypeQuery=t.tsTypeQuery=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSTypeQuery",exprName:e,typeParameters:t})},t.tSTypeReference=t.tsTypeReference=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSTypeReference",typeName:e,typeParameters:t})},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){return(0,r.default)({type:"TSUnionType",types:e})},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.default)({type:"TupleExpression",elements:e})},t.tupleTypeAnnotation=function(e){return(0,r.default)({type:"TupleTypeAnnotation",types:e})},t.typeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TypeAlias",id:e,typeParameters:t,right:n})},t.typeAnnotation=function(e){return(0,r.default)({type:"TypeAnnotation",typeAnnotation:e})},t.typeCastExpression=function(e,t){return(0,r.default)({type:"TypeCastExpression",expression:e,typeAnnotation:t})},t.typeParameter=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TypeParameter",bound:e,default:t,variance:n,name:null})},t.typeParameterDeclaration=function(e){return(0,r.default)({type:"TypeParameterDeclaration",params:e})},t.typeParameterInstantiation=function(e){return(0,r.default)({type:"TypeParameterInstantiation",params:e})},t.typeofTypeAnnotation=function(e){return(0,r.default)({type:"TypeofTypeAnnotation",argument:e})},t.unaryExpression=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,r.default)({type:"UnaryExpression",operator:e,argument:t,prefix:n})},t.unionTypeAnnotation=function(e){return(0,r.default)({type:"UnionTypeAnnotation",types:e})},t.updateExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"UpdateExpression",operator:e,argument:t,prefix:n})},t.v8IntrinsicIdentifier=function(e){return(0,r.default)({type:"V8IntrinsicIdentifier",name:e})},t.variableDeclaration=function(e,t){return(0,r.default)({type:"VariableDeclaration",kind:e,declarations:t})},t.variableDeclarator=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"VariableDeclarator",id:e,init:t})},t.variance=function(e){return(0,r.default)({type:"Variance",kind:e})},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){return(0,r.default)({type:"WhileStatement",test:e,body:t})},t.withStatement=function(e,t){return(0,r.default)({type:"WithStatement",object:e,body:t})},t.yieldExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"YieldExpression",argument:e,delegate:t})};var r=n(352),i=n(58);function o(e){return(0,r.default)({type:"NumericLiteral",value:e})}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,r.default)({type:"RegExpLiteral",pattern:e,flags:t})}function a(e){return(0,r.default)({type:"RestElement",argument:e})}function l(e){return(0,r.default)({type:"SpreadElement",argument:e})}},function(e,t,n){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},e=>{var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},(e,t,n)=>{const r=n(3);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},(e,t,n)=>{class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!y(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+e,n=i.get(t);if(n)return n;const r=this.options.loose,o=r?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(o,C(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(c[u.COMPARATORTRIM],p),a("comparator trim",e),e=e.replace(c[u.TILDETRIM],f),a("tilde trim",e),e=e.replace(c[u.CARETTRIM],d),a("caret trim",e);let l=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>O(e,this.options)));r&&(l=l.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE]))))),a("range list",l);const g=new Map,v=l.map((e=>new s(e,this.options)));for(const e of v){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");const _=[...g.values()];return i.set(t,_),_}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>v(n,t)&&e.set.some((e=>v(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(k(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const i=new(n(132))({max:1e3}),o=n(75),s=n(50),a=n(48),l=n(3),{safeRe:c,t:u,comparatorTrimReplace:p,tildeTrimReplace:f,caretTrimReplace:d}=n(34),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=n(47),y=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,v=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},b=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=E(e,t),a("tildes",e),e=T(e,t),a("xrange",e),e=P(e,t),a("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,((t,n,r,i,o)=>{let s;return a("tilde",e,t,n,r,i,o),_(n)?s="":_(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:_(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,a("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{a("caret",e,t);const n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,s)=>{let l;return a("caret",e,t,n,i,o,s),_(n)?l="":_(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:_(o)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${o}-${s} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${s} <${+n+1}.0.0-0`):(a("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),a("caret return",l),l}))},T=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>A(e,t))).join(" ")),A=(e,t)=>{e=e.trim();const n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,((n,r,i,o,s,l)=>{a("xRange",e,n,r,i,o,s,l);const c=_(i),u=c||_(o),p=u||_(s),f=p;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(l="-0"),n=`${r+i}.${o}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",n),n}))},P=(e,t)=>(a("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),O=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),C=e=>(t,n,r,i,o,s,a,l,c,u,p,f,d)=>`${n=_(r)?"":_(i)?`>=${r}.0.0${e?"-0":""}`:_(o)?`>=${r}.${i}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=_(c)?"":_(u)?`<${+c+1}.0.0-0`:_(p)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${p}-${f}`:e?`<${c}.${u}.${+p+1}-0`:`<=${l}`}`.trim(),k=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(a(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return i.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return i.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return s.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return i.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return i.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return i.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return i.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return o.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return o.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return o.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return i.VISITOR_KEYS}});var r=n(166);n(167),n(356),n(357),n(358),n(359),n(360);var i=n(18),o=n(169),s=n(361);Object.keys(s.DEPRECATED_ALIASES).forEach((e=>{i.FLIPPED_ALIAS_KEYS[e]=i.FLIPPED_ALIAS_KEYS[s.DEPRECATED_ALIASES[e]]})),r(i.VISITOR_KEYS),r(i.ALIAS_KEYS),r(i.FLIPPED_ALIAS_KEYS),r(i.NODE_FIELDS),r(i.BUILDER_KEYS),r(i.DEPRECATED_KEYS),r(o.PLACEHOLDERS_ALIAS),r(o.PLACEHOLDERS_FLIPPED_ALIAS),t.TYPES=[].concat(Object.keys(i.VISITOR_KEYS),Object.keys(i.FLIPPED_ALIAS_KEYS),Object.keys(i.DEPRECATED_KEYS))},(e,t,n)=>{var r=n(17);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var n,r="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(o===a-1||1===s);else if(o!==a-1&&2===s){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var s={resolve:function(){for(var e,t="",n=!1,s=arguments.length-1;s>=-1&&!n;s--){var a;s>=0?a=arguments[s]:(void 0===e&&(e=r.cwd()),a=e),i(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=o(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];i(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":s.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=s.resolve(e))===(t=s.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,o=r-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var l=t.length-a,c=o<l?o:l,u=-1,p=0;p<=c;++p){if(p===c){if(l>c){if(47===t.charCodeAt(a+p))return t.slice(a+p+1);if(0===p)return t.slice(a+p)}else o>c&&(47===e.charCodeAt(n+p)?u=p:0===p&&(u=0));break}var f=e.charCodeAt(n+p);if(f!==t.charCodeAt(a+p))break;47===f&&(u=p)}var d="";for(p=n+u+1;p<=r;++p)p!==r&&47!==e.charCodeAt(p)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(a+u):(a+=u,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!o){r=s;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var n,r=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!s){r=n+1;break}}else-1===l&&(s=!1,l=n+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(o=n):(a=-1,o=l))}return r===o?o=l:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){r=n+1;break}}else-1===o&&(s=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname:function(e){i(e);for(var t=-1,n=0,r=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(o=!1,r=a+1),46===l?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),o=47===r;o?(t.root="/",n=1):n=0;for(var s=-1,a=0,l=-1,c=!0,u=e.length-1,p=0;u>=n;--u)if(47!==(r=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===r?-1===s?s=u:1!==p&&(p=1):-1!==s&&(p=-1);else if(!c){a=u+1;break}return-1===s||-1===l||0===p||1===p&&s===l-1&&s===a+1?-1!==l&&(t.base=t.name=0===a&&o?e.slice(1,l):e.slice(a,l)):(0===a&&o?(t.name=e.slice(1,s),t.base=e.slice(1,l)):(t.name=e.slice(a,s),t.base=e.slice(a,l)),t.ext=e.slice(s,l)),a>0?t.dir=e.slice(0,a-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,e.exports=s},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,n)=>{var r=n(5),i=n(66),o=n(206),s=n(218),a=n(221),l=n(63),c=n(11),u=r.RangeError,p=r.Int8Array,f=p&&p.prototype,d=f&&f.set,h=o.aTypedArray,m=o.exportTypedArrayMethod,y=!c((function(){var e=new Uint8ClampedArray(2);return i(d,e,{length:1,0:3},1),3!==e[1]})),g=y&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new p(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){h(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(y)return i(d,this,n,t);var r=this.length,o=s(n),c=0;if(o+t>r)throw new u("Wrong length");for(;c<o;)this[t+c]=n[c++]}),!y||g)},e=>{const t=Symbol.for("gensync:v1:start"),n=Symbol.for("gensync:v1:suspend"),r="GENSYNC_EXPECTED_START",i="GENSYNC_EXPECTED_SUSPEND",o="GENSYNC_OPTIONS_ERROR",s="GENSYNC_RACE_NONEMPTY";function a(e,t,n,r){if(typeof n===e||r&&void 0===n)return;let i;throw i=r?`Expected opts.${t} to be either a ${e}, or undefined.`:`Expected opts.${t} to be a ${e}.`,l(i,o)}function l(e,t){return Object.assign(new Error(e),{code:t})}function c(e){let{name:r,arity:i,sync:o,async:s}=e;return m(r,i,(function*(){const e=yield t;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];if(!e)return o.call(this,i);let l;try{s.call(this,i,(t=>{l||(l={value:t},e())}),(t=>{l||(l={err:t},e())}))}catch(t){l={err:t},e()}if(yield n,l.hasOwnProperty("err"))throw l.err;return l.value}))}function u(e){let t;for(;!({value:t}=e.next()).done;)f(t,e);return t}function p(e,t,n){!function r(){try{let n;for(;!({value:n}=e.next()).done;){f(n,e);let t=!0,i=!1;const o=e.next((()=>{t?i=!0:r()}));if(t=!1,d(o,e),!i)return}return t(n)}catch(e){return n(e)}}()}function f(e,n){e!==t&&h(n,l(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,r))}function d(e,t){let{value:r,done:o}=e;(o||r!==n)&&h(t,l(o?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(r)}. If you get this, it is probably a gensync bug.`,i))}function h(e,t){throw e.throw&&e.throw(t),t}function m(e,t,n){if("string"==typeof e){const t=Object.getOwnPropertyDescriptor(n,"name");t&&!t.configurable||Object.defineProperty(n,"name",Object.assign(t||{},{configurable:!0,value:e}))}if("number"==typeof t){const e=Object.getOwnPropertyDescriptor(n,"length");e&&!e.configurable||Object.defineProperty(n,"length",Object.assign(e||{},{configurable:!0,value:t}))}return n}e.exports=Object.assign((function(e){let t=e;return t="function"!=typeof e?function(e){let{name:t,arity:n,sync:r,async:i,errback:s}=e;if(a("string","name",t,!0),a("number","arity",n,!0),a("function","sync",r),a("function","async",i,!0),a("function","errback",s,!0),i&&s)throw l("Expected one of either opts.async or opts.errback, but got _both_.",o);if("string"!=typeof t){let e;s&&s.name&&"errback"!==s.name&&(e=s.name),i&&i.name&&"async"!==i.name&&(e=i.name.replace(/Async$/,"")),r&&r.name&&"sync"!==r.name&&(e=r.name.replace(/Sync$/,"")),"string"==typeof e&&(t=e)}return"number"!=typeof n&&(n=r.length),c({name:t,arity:n,sync:function(e){return r.apply(this,e)},async:function(e,t,n){i?i.apply(this,e).then(t,n):s?s.call(this,...e,((e,r)=>{null==e?t(r):n(e)})):t(r.apply(this,e))}})}(e):function(e){return m(e.name,e.length,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}))}(e),Object.assign(t,function(e){const t={sync:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(e.apply(this,n))},async:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Promise(((t,r)=>{p(e.apply(this,n),t,r)}))},errback:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.pop();if("function"!=typeof i)throw l("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let o;try{o=e.apply(this,n)}catch(e){return void i(e)}p(o,(e=>i(void 0,e)),(e=>i(e)))}};return t}(t))}),{all:c({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map((e=>u(e)))},async:function(e,t,n){const r=Array.from(e[0]);if(0===r.length)return void Promise.resolve().then((()=>t([])));let i=0;const o=r.map((()=>{}));r.forEach(((e,r)=>{p(e,(e=>{o[r]=e,i+=1,i===o.length&&t(o)}),n)}))}}),race:c({name:"race",arity:1,sync:function(e){const t=Array.from(e[0]);if(0===t.length)throw l("Must race at least 1 item",s);return u(t[0])},async:function(e,t,n){const r=Array.from(e[0]);if(0===r.length)throw l("Must race at least 1 item",s);for(const e of r)p(e,t,n)}})})},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),t.visitors=t.default=void 0;var r=n(57);t.visitors=r;var i=n(0),o=n(35),s=n(100),a=n(28),l=n(183),c=n(444);const{VISITOR_KEYS:u,removeProperties:p,traverseFast:f}=i;function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!o&&a)throw new Error("visitSelf can only be used when providing a NodePath.");u[e.type]&&(r.explode(t),(0,s.traverseNode)(e,t,n,i,o,null,a))}}function h(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}t.default=d,d.visitors=r,d.verify=r.verify,d.explode=r.explode,d.cheap=function(e,t){f(e,t)},d.node=function(e,t,n,r,i,o){(0,s.traverseNode)(e,t,n,r,i,o)},d.clearNode=function(e,t){p(e,t)},d.removeProperties=function(e,t){return f(e,d.clearNode,t),e},d.hasType=function(e,t,n){if(null!=n&&n.includes(e.type))return!1;if(e.type===t)return!0;const r={has:!1,type:t};return d(e,{noScope:!0,denylist:n,enter:h},null,r),r.has},d.cache=o},(e,t,n)=>{var r=n(11);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.declare=r,t.declarePreset=void 0;const n={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const n=Error.stackTraceLimit;let r;throw"number"==typeof n&&n<25&&(Error.stackTraceLimit=25),r="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`),"number"==typeof n&&(Error.stackTraceLimit=n),Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)}};function r(e){return(t,r,i)=>{var s;let a;for(const e of Object.keys(n))t[e]||(null!=a||(a=o(t)),a[e]=n[e](a));return e(null!=(s=a)?s:t,r||{},i)}}Object.assign(n,{targets:()=>()=>({}),assumption:()=>()=>{}});const i=r;function o(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||s(t,"version")&&s(t,"transform")&&s(t,"template")&&s(t,"types")||(t=null)),Object.assign({},t,e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.declarePreset=i},e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,l=[],c=!1,u=-1;function p(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=s(p);c=!0;for(var t=l.length;t;){for(a=l,l=[];++u<t;)a&&a[u].run();u=-1,t=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new d(e,t)),1!==l.length||c||s(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VISITOR_KEYS=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0,t.arrayOf=m,t.arrayOfType=y,t.assertEach=g,t.assertNodeOrValueType=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function o(e,n,o){for(const s of t)if(f(o)===s||(0,r.default)(s,o))return void(0,i.validateChild)(e,n,o);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==o?void 0:o.type)}`)}return o.oneOfNodeOrValueTypes=t,o},t.assertNodeType=v,t.assertOneOf=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(e,n,r){if(t.indexOf(r)<0)throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(t)} but got ${JSON.stringify(r)}`)}return r.oneOf=t,r},t.assertOptionalChainStart=function(){return function(e){var t;let n=e;for(;e;){const{type:e}=n;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(n.optional)return;n=n.object}else{if(n.optional)return;n=n.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=n)?void 0:t.type}`)}},t.assertShape=function(e){function t(t,n,r){const o=[];for(const n of Object.keys(e))try{(0,i.validateField)(t,n,r[n],e[n])}catch(e){if(e instanceof TypeError){o.push(e.message);continue}throw e}if(o.length)throw new TypeError(`Property ${n} of ${t.type} expected to have the following:\n${o.join("\n")}`)}return t.shapeOf=e,t},t.assertValueType=b,t.chain=_,t.default=w,t.defineAliasedType=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.aliases;var i;r||(n.inherits&&(r=null==(i=S[n.inherits].aliases)?void 0:i.slice()),null!=r||(r=[]),n.aliases=r);const o=t.filter((e=>!r.includes(e)));r.unshift(...o),w(e,n)}},t.typeIs=h,t.validate=d,t.validateArrayOfType=function(e){return d(y(e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(e){return{validate:h(e),optional:!0}},t.validateType=function(e){return d(h(e))};var r=n(42),i=n(97);const o=t.VISITOR_KEYS={},s=t.ALIAS_KEYS={},a=t.FLIPPED_ALIAS_KEYS={},l=t.NODE_FIELDS={},c=t.BUILDER_KEYS={},u=t.DEPRECATED_KEYS={},p=t.NODE_PARENT_VALIDATIONS={};function f(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function d(e){return{validate:e}}function h(e){return"string"==typeof e?v(e):v(...e)}function m(e){return _(b("array"),g(e))}function y(e){return m(h(e))}function g(e){function t(t,n,r){if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=`${n}[${i}]`,s=r[i];e(t,o,s)}}return t.each=e,t}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function o(e,n,o){for(const s of t)if((0,r.default)(s,o))return void(0,i.validateChild)(e,n,o);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==o?void 0:o.type)}`)}return o.oneOfNodeTypes=t,o}function b(e){function t(t,n,r){if(f(r)!==e)throw new TypeError(`Property ${n} expected type of ${e} but got ${f(r)}`)}return t.type=e,t}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(){for(const e of t)e(...arguments)}if(r.chainOf=t,t.length>=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return r}const E=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],x=["default","optional","deprecated","validate"],S={};function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.inherits&&S[t.inherits]||{};let r=t.fields;if(!r&&(r={},n.fields)){const e=Object.getOwnPropertyNames(n.fields);for(const t of e){const e=n.fields[t],i=e.default;if(Array.isArray(i)?i.length>0:i&&"object"==typeof i)throw new Error("field defaults can only be primitives or empty arrays currently");r[t]={default:Array.isArray(i)?[]:i,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const i=t.visitor||n.visitor||[],d=t.aliases||n.aliases||[],h=t.builder||n.builder||t.visitor||[];for(const n of Object.keys(t))if(-1===E.indexOf(n))throw new Error(`Unknown type option "${n}" on ${e}`);t.deprecatedAlias&&(u[t.deprecatedAlias]=e);for(const e of i.concat(h))r[e]=r[e]||{};for(const t of Object.keys(r)){const n=r[t];void 0!==n.default&&-1===h.indexOf(t)&&(n.optional=!0),void 0===n.default?n.default=null:n.validate||null==n.default||(n.validate=b(f(n.default)));for(const r of Object.keys(n))if(-1===x.indexOf(r))throw new Error(`Unknown field key "${r}" on ${e}.${t}`)}o[e]=t.visitor=i,c[e]=t.builder=h,l[e]=t.fields=r,s[e]=t.aliases=d,d.forEach((t=>{a[t]=a[t]||[],a[t].push(e)})),t.validate&&(p[e]=t.validate),S[e]=t}},(e,t,n)=>{var r=n(104),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);e.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},(e,t,n)=>{var r=n(6);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n(44),Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}}class o{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function s(e,t){const{line:n,column:r,index:o}=e;return new i(n,r+t,o+t)}const a="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var l={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:a},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:a}};const c={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},u=e=>{let{type:t,prefix:n}=e;return"UpdateExpression"===t?c.UpdateExpression[String(n)]:c[t]};var p={AccessorIsGenerator:e=>{let{kind:t}=e;return`A ${t}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:e=>{let{kind:t}=e;return`Missing initializer in ${t} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:e=>{let{exportName:t}=e;return`\`${t}\` has already been exported. Exported identifiers must be unique.`},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:e=>{let{phase:t}=e;return`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:e=>{let{localName:t,exportName:n}=e;return`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${n}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:e=>{let{type:t}=e;return`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:e=>{let{type:t}=e;return`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:e=>{let{importName:t}=e;return`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:e=>{let{maxArgumentCount:t}=e;return`\`import()\` requires exactly ${1===t?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:e=>{let{radix:t}=e;return`Expected number in radix ${t}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:e=>{let{reservedWord:t}=e;return`Escape sequence in keyword ${t}.`},InvalidIdentifier:e=>{let{identifierName:t}=e;return`Invalid identifier ${t}.`},InvalidLhs:e=>{let{ancestor:t}=e;return`Invalid left-hand side in ${u(t)}.`},InvalidLhsBinding:e=>{let{ancestor:t}=e;return`Binding invalid left-hand side in ${u(t)}.`},InvalidLhsOptionalChaining:e=>{let{ancestor:t}=e;return`Invalid optional chaining in the left-hand side of ${u(t)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:e=>{let{unexpected:t}=e;return`Unexpected character '${t}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:e=>{let{identifierName:t}=e;return`Private name #${t} is not defined.`},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:e=>{let{labelName:t}=e;return`Label '${t}' is already declared.`},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling the parser plugin: ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingOneOfPlugins:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:e=>{let{key:t}=e;return`Duplicate key "${t}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:e=>{let{surrogateCharCode:t}=e;return`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`},ModuleExportUndefined:e=>{let{localName:t}=e;return`Export '${t}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:e=>{let{identifierName:t}=e;return`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`},PrivateNameRedeclaration:e=>{let{identifierName:t}=e;return`Duplicate private name #${t}.`},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:e=>{let{keyword:t}=e;return`Unexpected keyword '${t}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:e=>{let{reservedWord:t}=e;return`Unexpected reserved word '${t}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:e=>{let{expected:t,unexpected:n}=e;return`Unexpected token${n?` '${n}'.`:""}${t?`, expected "${t}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:e=>{let{target:t,onlyValidPropertyName:n}=e;return`The only valid meta property for ${t} is ${t}.${n}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:e=>{let{identifierName:t}=e;return`Identifier '${t}' has already been declared.`},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};const f=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var d={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:e=>{let{token:t}=e;return`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:e=>{let{type:t}=e;return`Hack-style pipe body cannot be an unparenthesized ${u({type:t})}; please wrap it in parentheses.`},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const h=["toMessage"],m=["message"];function y(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function g(e){let{toMessage:t}=e,n=r(e,h);return function e(r,o){const s=new SyntaxError;return Object.assign(s,n,{loc:r,pos:r.index}),"missingPlugin"in o&&Object.assign(s,{missingPlugin:o.missingPlugin}),y(s,"clone",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n;const{line:s,column:a,index:l}=null!=(n=t.loc)?n:r;return e(new i(s,a,l),Object.assign({},o,t.details))})),y(s,"details",o),Object.defineProperty(s,"message",{configurable:!0,get(){const e=`${t(o)} (${r.line}:${r.column})`;return this.message=e,e},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),s}}function v(e,t){if(Array.isArray(e))return t=>v(t,e[0]);const n={};for(const i of Object.keys(e)){const o=e[i],s="string"==typeof o?{message:()=>o}:"function"==typeof o?{message:o}:o,{message:a}=s,l=r(s,m),c="string"==typeof a?()=>a:a;n[i]=g(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:c},t?{syntaxPlugin:t}:{},l))}return n}const b=Object.assign({},v(l),v(p),v({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:e=>{let{referenceName:t}=e;return`Assigning to '${t}' in strict mode.`},StrictEvalArgumentsBinding:e=>{let{bindingName:t}=e;return`Binding '${t}' in strict mode.`},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),v`pipelineOperator`(d)),{defineProperty:_}=Object,E=(e,t)=>_(e,t,{enumerable:!1,value:e[t]});function x(e){return e.loc.start&&E(e.loc.start,"index"),e.loc.end&&E(e.loc.end,"index"),e}class S{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const w={brace:new S("{"),j_oTag:new S("<tag"),j_cTag:new S("</tag"),j_expr:new S("<tag>...</tag>",!0)};w.template=new S("`",!0);const T=!0,A=!0,P=!0,O=!0,C=!0;class k{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}const I=new Map;function j(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;const n=U(e,t);return I.set(e,n),n}function N(e,t){return U(e,{beforeExpr:T,binop:t})}let D=-1;const M=[],L=[],R=[],q=[],B=[],F=[];function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,i,o;return++D,L.push(e),R.push(null!=(n=t.binop)?n:-1),q.push(null!=(r=t.beforeExpr)&&r),B.push(null!=(i=t.startsExpr)&&i),F.push(null!=(o=t.prefix)&&o),M.push(new k(e,t)),D}function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,i,o;return++D,I.set(e,D),L.push(e),R.push(null!=(n=t.binop)?n:-1),q.push(null!=(r=t.beforeExpr)&&r),B.push(null!=(i=t.startsExpr)&&i),F.push(null!=(o=t.prefix)&&o),M.push(new k("name",t)),D}const $={bracketL:U("[",{beforeExpr:T,startsExpr:A}),bracketHashL:U("#[",{beforeExpr:T,startsExpr:A}),bracketBarL:U("[|",{beforeExpr:T,startsExpr:A}),bracketR:U("]"),bracketBarR:U("|]"),braceL:U("{",{beforeExpr:T,startsExpr:A}),braceBarL:U("{|",{beforeExpr:T,startsExpr:A}),braceHashL:U("#{",{beforeExpr:T,startsExpr:A}),braceR:U("}"),braceBarR:U("|}"),parenL:U("(",{beforeExpr:T,startsExpr:A}),parenR:U(")"),comma:U(",",{beforeExpr:T}),semi:U(";",{beforeExpr:T}),colon:U(":",{beforeExpr:T}),doubleColon:U("::",{beforeExpr:T}),dot:U("."),question:U("?",{beforeExpr:T}),questionDot:U("?."),arrow:U("=>",{beforeExpr:T}),template:U("template"),ellipsis:U("...",{beforeExpr:T}),backQuote:U("`",{startsExpr:A}),dollarBraceL:U("${",{beforeExpr:T,startsExpr:A}),templateTail:U("...`",{startsExpr:A}),templateNonTail:U("...${",{beforeExpr:T,startsExpr:A}),at:U("@"),hash:U("#",{startsExpr:A}),interpreterDirective:U("#!..."),eq:U("=",{beforeExpr:T,isAssign:O}),assign:U("_=",{beforeExpr:T,isAssign:O}),slashAssign:U("_=",{beforeExpr:T,isAssign:O}),xorAssign:U("_=",{beforeExpr:T,isAssign:O}),moduloAssign:U("_=",{beforeExpr:T,isAssign:O}),incDec:U("++/--",{prefix:C,postfix:!0,startsExpr:A}),bang:U("!",{beforeExpr:T,prefix:C,startsExpr:A}),tilde:U("~",{beforeExpr:T,prefix:C,startsExpr:A}),doubleCaret:U("^^",{startsExpr:A}),doubleAt:U("@@",{startsExpr:A}),pipeline:N("|>",0),nullishCoalescing:N("??",1),logicalOR:N("||",1),logicalAND:N("&&",2),bitwiseOR:N("|",3),bitwiseXOR:N("^",4),bitwiseAND:N("&",5),equality:N("==/!=/===/!==",6),lt:N("</>/<=/>=",7),gt:N("</>/<=/>=",7),relational:N("</>/<=/>=",7),bitShift:N("<</>>/>>>",8),bitShiftL:N("<</>>/>>>",8),bitShiftR:N("<</>>/>>>",8),plusMin:U("+/-",{beforeExpr:T,binop:9,prefix:C,startsExpr:A}),modulo:U("%",{binop:10,startsExpr:A}),star:U("*",{binop:10}),slash:N("/",10),exponent:U("**",{beforeExpr:T,binop:11,rightAssociative:!0}),_in:j("in",{beforeExpr:T,binop:7}),_instanceof:j("instanceof",{beforeExpr:T,binop:7}),_break:j("break"),_case:j("case",{beforeExpr:T}),_catch:j("catch"),_continue:j("continue"),_debugger:j("debugger"),_default:j("default",{beforeExpr:T}),_else:j("else",{beforeExpr:T}),_finally:j("finally"),_function:j("function",{startsExpr:A}),_if:j("if"),_return:j("return",{beforeExpr:T}),_switch:j("switch"),_throw:j("throw",{beforeExpr:T,prefix:C,startsExpr:A}),_try:j("try"),_var:j("var"),_const:j("const"),_with:j("with"),_new:j("new",{beforeExpr:T,startsExpr:A}),_this:j("this",{startsExpr:A}),_super:j("super",{startsExpr:A}),_class:j("class",{startsExpr:A}),_extends:j("extends",{beforeExpr:T}),_export:j("export"),_import:j("import",{startsExpr:A}),_null:j("null",{startsExpr:A}),_true:j("true",{startsExpr:A}),_false:j("false",{startsExpr:A}),_typeof:j("typeof",{beforeExpr:T,prefix:C,startsExpr:A}),_void:j("void",{beforeExpr:T,prefix:C,startsExpr:A}),_delete:j("delete",{beforeExpr:T,prefix:C,startsExpr:A}),_do:j("do",{isLoop:P,beforeExpr:T}),_for:j("for",{isLoop:P}),_while:j("while",{isLoop:P}),_as:V("as",{startsExpr:A}),_assert:V("assert",{startsExpr:A}),_async:V("async",{startsExpr:A}),_await:V("await",{startsExpr:A}),_defer:V("defer",{startsExpr:A}),_from:V("from",{startsExpr:A}),_get:V("get",{startsExpr:A}),_let:V("let",{startsExpr:A}),_meta:V("meta",{startsExpr:A}),_of:V("of",{startsExpr:A}),_sent:V("sent",{startsExpr:A}),_set:V("set",{startsExpr:A}),_source:V("source",{startsExpr:A}),_static:V("static",{startsExpr:A}),_using:V("using",{startsExpr:A}),_yield:V("yield",{startsExpr:A}),_asserts:V("asserts",{startsExpr:A}),_checks:V("checks",{startsExpr:A}),_exports:V("exports",{startsExpr:A}),_global:V("global",{startsExpr:A}),_implements:V("implements",{startsExpr:A}),_intrinsic:V("intrinsic",{startsExpr:A}),_infer:V("infer",{startsExpr:A}),_is:V("is",{startsExpr:A}),_mixins:V("mixins",{startsExpr:A}),_proto:V("proto",{startsExpr:A}),_require:V("require",{startsExpr:A}),_satisfies:V("satisfies",{startsExpr:A}),_keyof:V("keyof",{startsExpr:A}),_readonly:V("readonly",{startsExpr:A}),_unique:V("unique",{startsExpr:A}),_abstract:V("abstract",{startsExpr:A}),_declare:V("declare",{startsExpr:A}),_enum:V("enum",{startsExpr:A}),_module:V("module",{startsExpr:A}),_namespace:V("namespace",{startsExpr:A}),_interface:V("interface",{startsExpr:A}),_type:V("type",{startsExpr:A}),_opaque:V("opaque",{startsExpr:A}),name:U("name",{startsExpr:A}),string:U("string",{startsExpr:A}),num:U("num",{startsExpr:A}),bigint:U("bigint",{startsExpr:A}),decimal:U("decimal",{startsExpr:A}),regexp:U("regexp",{startsExpr:A}),privateName:U("#name",{startsExpr:A}),eof:U("eof"),jsxName:U("jsxName"),jsxText:U("jsxText",{beforeExpr:!0}),jsxTagStart:U("jsxTagStart",{startsExpr:!0}),jsxTagEnd:U("jsxTagEnd"),placeholder:U("%%",{startsExpr:!0})};function W(e){return e>=93&&e<=132}function K(e){return e>=58&&e<=132}function z(e){return e>=58&&e<=136}function H(e){return B[e]}function G(e){return e>=129&&e<=131}function Q(e){return e>=58&&e<=92}function X(e){return L[e]}function Y(e){return R[e]}function J(e){return e>=24&&e<=25}function Z(e){return M[e]}M[8].updateContext=e=>{e.pop()},M[5].updateContext=M[7].updateContext=M[23].updateContext=e=>{e.push(w.brace)},M[22].updateContext=e=>{e[e.length-1]===w.template?e.pop():e.push(w.template)},M[142].updateContext=e=>{e.push(w.j_expr,w.j_oTag)};let ee="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",te="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const ne=new RegExp("["+ee+"]"),re=new RegExp("["+ee+te+"]");ee=te=null;const ie=[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,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],oe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function se(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function ae(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ne.test(String.fromCharCode(e)):se(e,ie)))}function le(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&re.test(String.fromCharCode(e)):se(e,ie)||se(e,oe))))}const ce=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ue=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),pe=new Set(["eval","arguments"]);function fe(e,t){return t&&"await"===e||"enum"===e}function de(e,t){return fe(e,t)||ue.has(e)}function he(e){return pe.has(e)}function me(e,t){return de(e,t)||he(e)}const ye=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class ge{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class ve{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(128&t)return!0;if(451&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ge(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,n){let r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;16&t?i|=4:(r.firstLexicalName||(r.firstLexicalName=e),i|=2),r.names.set(e,i),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(387&r.flags));--i);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(b.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(1&n))return!1;if(8&n)return e.names.has(t);const r=e.names.get(t);return 16&n?(2&r)>0||!this.treatFunctionsAsVarInScope(e)&&(1&r)>0:(2&r)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&r)>0}checkLocalExport(e){const{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(387&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(451&t&&!(4&t))return t}}}class be extends ge{constructor(){super(...arguments),this.declareFunctions=new Set}}class _e extends ve{createScope(e){return new be(e)}declareName(e,t,n){const r=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),void r.declareFunctions.add(e);super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(2048&n&&!e.declareFunctions.has(t)){const n=e.names.get(t);return(4&n)>0||(2&n)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}class Ee{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t,n]=e;if(!this.hasPlugin(t))return!1;const r=this.plugins.get(t);for(const e of Object.keys(n))if((null==r?void 0:r[e])!==n[e])return!1;return!0}}getPluginOption(e,t){var n;return null==(n=this.plugins.get(e))?void 0:n[t]}}function xe(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Se(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function we(e,t,n){let r=null,i=t.length;for(;null===r&&i>0;)r=t[--i];null===r||r.start>n.start?Se(e,n.comments):xe(r,n.comments)}class Te extends Ee{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!=t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,n=t.length;if(0===n)return;let r=n-1;const i=t[r];i.start===e.end&&(i.leadingNode=e,r--);const{start:o}=e;for(;r>=0;r--){const n=t[r],i=n.end;if(!(i>o)){i===o&&(n.trailingNode=e);break}n.containingNode=e,this.finalizeComment(n),t.splice(r,1)}}finalizeComment(e){const{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&xe(e.leadingNode,t),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,t);else{const{containingNode:n,start:r}=e;if(44===this.input.charCodeAt(r-1))switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":we(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":we(n,n.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":we(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":we(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":we(n,n.specifiers,e);break;default:Se(n,t)}else Se(n,t)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,{length:n}=t;if(0===n)return;const r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){const{commentStack:t}=this.state,{length:n}=t;0!==n&&(t[n-1].trailingNode===e?t[n-1].trailingNode=null:n>=2&&t[n-2].trailingNode===e&&(t[n-2].trailingNode=null))}takeSurroundingComments(e,t,n){const{commentStack:r}=this.state,i=r.length;if(0===i)return;let o=i-1;for(;o>=0;o--){const i=r[o],s=i.end;if(i.start===n)i.leadingNode=e;else if(s===t)i.trailingNode=e;else if(s<t)break}}}const Ae=/\r\n?|[\n\u2028\u2029]/,Pe=new RegExp(Ae.source,"g");function Oe(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const Ce=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ke=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Ie=new RegExp("(?=("+ke.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function je(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class Ne{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[w.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init(e){let{strictMode:t,sourceType:n,startLine:r,startColumn:o}=e;this.strict=!1!==t&&(!0===t||"module"===n),this.curLine=r,this.lineStart=-o,this.startLoc=this.endLoc=new i(r,o,0)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}curPosition(){return new i(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const e=new Ne;return e.flags=this.flags,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var De=function(e){return e>=48&&e<=57};const Me={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Le={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Re(e,t,n,r,i,o){const s=n,a=r,l=i;let c="",u=null,p=n;const{length:f}=t;for(;;){if(n>=f){o.unterminated(s,a,l),c+=t.slice(p,n);break}const d=t.charCodeAt(n);if(qe(e,d,t,n)){c+=t.slice(p,n);break}if(92===d){c+=t.slice(p,n);const s=Be(t,n,r,i,"template"===e,o);null!==s.ch||u?c+=s.ch:u={pos:n,lineStart:r,curLine:i},({pos:n,lineStart:r,curLine:i}=s),p=n}else 8232===d||8233===d?(++i,r=++n):10===d||13===d?"template"===e?(c+=t.slice(p,n)+"\n",++n,13===d&&10===t.charCodeAt(n)&&++n,++i,p=r=n):o.unterminated(s,a,l):++n}return{pos:n,str:c,firstInvalidLoc:u,lineStart:r,curLine:i,containsInvalid:!!u}}function qe(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function Be(e,t,n,r,i,o){const s=!i;t++;const a=e=>({pos:t,ch:e,lineStart:n,curLine:r}),l=e.charCodeAt(t++);switch(l){case 110:return a("\n");case 114:return a("\r");case 120:{let i;return({code:i,pos:t}=Fe(e,t,n,r,2,!1,s,o)),a(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=Ve(e,t,n,r,s,o)),a(null===i?null:String.fromCodePoint(i))}case 116:return a("\t");case 98:return a("\b");case 118:return a("\v");case 102:return a("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++r;case 8232:case 8233:return a("");case 56:case 57:if(i)return a(null);o.strictNumericEscape(t-1,n,r);default:if(l>=48&&l<=55){const s=t-1;let l=e.slice(s,t+2).match(/^[0-7]+/)[0],c=parseInt(l,8);c>255&&(l=l.slice(0,-1),c=parseInt(l,8)),t+=l.length-1;const u=e.charCodeAt(t);if("0"!==l||56===u||57===u){if(i)return a(null);o.strictNumericEscape(s,n,r)}return a(String.fromCharCode(c))}return a(String.fromCharCode(l))}}function Fe(e,t,n,r,i,o,s,a){const l=t;let c;return({n:c,pos:t}=Ue(e,t,n,r,16,i,o,!1,a,!s)),null===c&&(s?a.invalidEscapeSequence(l,n,r):t=l-1),{code:c,pos:t}}function Ue(e,t,n,r,i,o,s,a,l,c){const u=t,p=16===i?Me.hex:Me.decBinOct,f=16===i?Le.hex:10===i?Le.dec:8===i?Le.oct:Le.bin;let d=!1,h=0;for(let u=0,m=null==o?1/0:o;u<m;++u){const o=e.charCodeAt(t);let u;if(95!==o||"bail"===a){if(u=o>=97?o-97+10:o>=65?o-65+10:De(o)?o-48:1/0,u>=i){if(u<=9&&c)return{n:null,pos:t};if(u<=9&&l.invalidDigit(t,n,r,i))u=0;else{if(!s)break;u=0,d=!0}}++t,h=h*i+u}else{const i=e.charCodeAt(t-1),o=e.charCodeAt(t+1);if(a){if(Number.isNaN(o)||!f(o)||p.has(i)||p.has(o)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,n,r)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,n,r)}++t}}return t===u||null!=o&&t-u!==o||d?{n:null,pos:t}:{n:h,pos:t}}function Ve(e,t,n,r,i,o){let s;if(123===e.charCodeAt(t)){if(++t,({code:s,pos:t}=Fe(e,t,n,r,e.indexOf("}",t)-t,!0,i,o)),++t,null!==s&&s>1114111){if(!i)return{code:null,pos:t};o.invalidCodePoint(t,n,r)}}else({code:s,pos:t}=Fe(e,t,n,r,4,!1,i,o));return{code:s,pos:t}}function $e(e,t,n){return new i(n,e-t,e)}const We=new Set([103,109,115,105,121,117,100,118]);class Ke{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new o(e.startLoc,e.endLoc)}}class ze extends Te{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,r)=>!!this.options.errorRecovery&&(this.raise(b.InvalidDigit,$e(e,t,n),{radix:r}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(b.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(b.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(b.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(b.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(b.StrictNumericEscape,$e(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(b.UnterminatedString,$e(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(b.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(b.UnterminatedTemplate,$e(e,t,n))}}),this.state=new Ne,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Ke(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Ce.lastIndex=e,Ce.test(this.input)?Ce.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return ke.lastIndex=e,ke.test(this.input)?ke.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){const n=this.input.charCodeAt(e);56320==(64512&n)&&(t=65536+((1023&t)<<10)+(1023&n))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((e=>{let[t,n]=e;return this.raise(t,n)})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());const n=this.state.pos,r=this.input.indexOf(e,n+2);if(-1===r)throw this.raise(b.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+e.length,Pe.lastIndex=n+2;Pe.test(this.input)&&Pe.lastIndex<=r;)++this.state.curLine,this.state.lineStart=Pe.lastIndex;if(this.isLookahead)return;const i={type:"CommentBlock",value:this.input.slice(n+2,r),start:n,end:r+e.length,loc:new o(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}skipLineComment(e){const t=this.state.pos;let n;this.isLookahead||(n=this.state.curPosition());let r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Oe(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const i=this.state.pos,s={type:"CommentLine",value:this.input.slice(t+e,i),start:t,end:i,loc:new o(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipSpace(){const e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){const n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(je(n))++this.state.pos;else if(45===n&&!this.inModule&&this.options.annexB){const n=this.state.pos;if(45!==this.input.charCodeAt(n+1)||62!==this.input.charCodeAt(n+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}else{if(60!==n||this.inModule||!this.options.annexB)break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}}}}if(t.length>0){const n={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(b.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?b.RecordExpressionHashIncorrectStartSyntaxType:b.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else ae(t)?(++this.state.pos,this.finishToken(138,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!Oe(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=42===e?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);42===e&&42===r&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),61!==r||this.state.inType||(n++,t=37===e?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){const t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(ae(e))return void this.readWord(e)}throw this.raise(b.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let n,r,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(b.UnterminatedRegExp,s(e,1));const t=this.input.charCodeAt(i);if(Oe(t))throw this.raise(b.UnterminatedRegExp,s(e,1));if(n)n=!1;else{if(91===t)r=!0;else if(93===t&&r)r=!1;else if(47===t&&!r)break;n=92===t}}const o=this.input.slice(t,i);++i;let a="";const l=()=>s(e,i+2-t);for(;i<this.length;){const e=this.codePointAtPos(i),t=String.fromCharCode(e);if(We.has(e))118===e?a.includes("u")&&this.raise(b.IncompatibleRegExpUVFlags,l()):117===e&&a.includes("v")&&this.raise(b.IncompatibleRegExpUVFlags,l()),a.includes(t)&&this.raise(b.DuplicateRegExpFlags,l());else{if(!le(e)&&92!==e)break;this.raise(b.MalformedRegExpFlags,l())}++i,a+=t}this.state.pos=i,this.finishToken(137,{pattern:o,flags:a})}readInt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{n:i,pos:o}=Ue(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=o,i}readRadixNumber(e){const t=this.state.curPosition();let n=!1;this.state.pos+=2;const r=this.readInt(e);null==r&&this.raise(b.InvalidDigit,s(t,2),{radix:e});const i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,n=!0;else if(109===i)throw this.raise(b.InvalidDecimal,t);if(ae(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());if(n){const e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,e)}else this.finishToken(134,r)}readNumber(e){const t=this.state.pos,n=this.state.curPosition();let r=!1,i=!1,o=!1,a=!1,l=!1;e||null!==this.readInt(10)||this.raise(b.InvalidNumber,this.state.curPosition());const c=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(c){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(b.StrictOctalLiteral,n),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(b.ZeroDigitNumericSeparator,s(n,t))}l=c&&!/[89]/.test(e)}let u=this.input.charCodeAt(this.state.pos);if(46!==u||l||(++this.state.pos,this.readInt(10),r=!0,u=this.input.charCodeAt(this.state.pos)),69!==u&&101!==u||l||(u=this.input.charCodeAt(++this.state.pos),43!==u&&45!==u||++this.state.pos,null===this.readInt(10)&&this.raise(b.InvalidOrMissingExponent,n),r=!0,a=!0,u=this.input.charCodeAt(this.state.pos)),110===u&&((r||c)&&this.raise(b.InvalidBigIntLiteral,n),++this.state.pos,i=!0),109===u&&(this.expectPlugin("decimal",this.state.curPosition()),(a||c)&&this.raise(b.InvalidDecimal,n),++this.state.pos,o=!0),ae(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());const p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(135,p);if(o)return void this.finishToken(136,p);const f=l?parseInt(p,8):parseFloat(p);this.finishToken(134,f)}readCodePoint(e){const{code:t,pos:n}=Ve(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){const{str:t,pos:n,curLine:r,lineStart:i}=Re(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(133,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:t,firstInvalidLoc:n,pos:r,curLine:o,lineStart:s}=Re("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=r+1,this.state.lineStart=s,this.state.curLine=o,n&&(this.state.firstInvalidTemplateEscapePos=new i(n.curLine,n.pos-n.lineStart,n.pos)),96===this.input.codePointAt(r)?this.finishToken(24,n?null:e+t+"`"):(this.state.pos++,this.finishToken(25,n?null:e+t+"${"))}recordStrictModeErrors(e,t){const n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const n=this.state.pos;let r=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(le(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);const e=this.state.curPosition(),i=this.state.pos===n?ae:le;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(b.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;const o=this.readCodePoint(!0);null!==o&&(i(o)||this.raise(b.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(o)),r=this.state.pos}}}return t+this.input.slice(r,this.state.pos)}readWord(e){const t=this.readWord1(e),n=I.get(t);void 0!==n?this.finishToken(n,X(n)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;Q(e)&&this.state.containsEsc&&this.raise(b.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:X(e)})}raise(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e(t instanceof i?t:t.loc.start,n);if(!this.options.errorRecovery)throw r;return this.isLookahead||this.state.errors.push(r),r}raiseOverwrite(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t instanceof i?t:t.loc.start,o=r.index,s=this.state.errors;for(let t=s.length-1;t>=0;t--){const i=s[t];if(i.loc.index===o)return s[t]=e(r,n);if(i.loc.index<o)break}return this.raise(e,t,n)}updateContext(e){}unexpected(e,t){throw this.raise(b.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?X(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(b.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(b.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,$e(t,n,r))}}}class He{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Ge{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new He)}exit(){const e=this.stack.pop(),t=this.current();for(const[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(b.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){const{privateNames:r,loneAccessors:i,undefinedPrivateNames:o}=this.current();let s=r.has(e);if(3&t){const n=s&&i.get(e);n?(s=(3&n)==(3&t)||(4&n)!=(4&t),s||i.delete(e)):s||i.set(e,t)}s&&this.parser.raise(b.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),o.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(b.InvalidPrivateFieldResolution,t,{identifierName:e})}}class Qe{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class Xe extends Qe{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class Ye{constructor(e){this.parser=void 0,this.stack=[new Qe],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const n=t.loc.start,{stack:r}=this;let i=r.length-1,o=r[i];for(;!o.isCertainlyParameterDeclaration();){if(!o.canBeArrowParameterDeclaration())return;o.recordDeclarationError(e,n),o=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){const{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(b.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t=>{let[n,r]=t;this.parser.raise(n,r);let i=e.length-2,o=e[i];for(;o.canBeArrowParameterDeclaration();)o.clearDeclarationError(r.index),o=e[--i]}))}}function Je(){return new Qe}class Ze{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function et(e,t){return(e?2:0)|(t?1:0)}class tt extends ze{addExtra(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!e)return;const i=e.extra=e.extra||{};r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const n=e+t.length;if(this.input.slice(e,n)===t){const e=this.input.charCodeAt(n);return!(le(e)||55296==(64512&e))}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ae.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Ie.lastIndex=this.state.end,Ie.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(){(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.eat(13):this.isLineTerminator())||this.raise(b.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone();const n={node:null};try{const r=e((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw n.node=e,n}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:o}=e;if(!t)return!!(n||r||o||i);null!=n&&this.raise(b.InvalidCoverInitializedName,n),null!=r&&this.raise(b.DuplicateProto,r),null!=i&&this.raise(b.UnexpectedPrivateField,i),null!=o&&this.unexpected(o)}isLiteralPropertyName(){return z(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType;const t=this.state.labels;this.state.labels=[];const n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const r=this.inModule;this.inModule=e;const i=this.scope,o=this.getScopeHandler();this.scope=new o(this,e);const s=this.prodParam;this.prodParam=new Ze;const a=this.classScope;this.classScope=new Ge(this);const l=this.expressionScope;return this.expressionScope=new Ye(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=s,this.classScope=a,this.expressionScope=l}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class nt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class rt{constructor(e,t,n){this.type="",this.start=t,this.end=0,this.loc=new o(n),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const it=rt.prototype;function ot(e){const{type:t,start:n,end:r,loc:i,range:o,extra:s,name:a}=e,l=Object.create(it);return l.type=t,l.start=n,l.end=r,l.loc=i,l.range=o,l.extra=s,l.name=a,"Placeholder"===t&&(l.expectedNode=e.expectedNode),l}it.__clone=function(){const e=new rt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,r=t.length;n<r;n++){const r=t[n];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(e[r]=this[r])}return e};class st extends tt{startNode(){const e=this.state.startLoc;return new rt(this,e.index,e)}startNodeAt(e){return new rt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.options.ranges&&(e.range[1]=n.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}}const at=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),lt=v`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:e=>{let{reservedType:t}=e;return`Cannot overwrite reserved type ${t}.`},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:e=>{let{memberName:t,enumName:n}=e;return`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${n}\`.`},EnumDuplicateMemberName:e=>{let{memberName:t,enumName:n}=e;return`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${n}\`.`},EnumInconsistentMemberValues:e=>{let{enumName:t}=e;return`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`},EnumInvalidExplicitType:e=>{let{invalidEnumType:t,enumName:n}=e;return`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${n}\`.`},EnumInvalidExplicitTypeUnknownSupplied:e=>{let{enumName:t}=e;return`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`},EnumInvalidMemberInitializerPrimaryType:e=>{let{enumName:t,memberName:n,explicitType:r}=e;return`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${n}\` needs to be a ${r} literal.`},EnumInvalidMemberInitializerSymbolType:e=>{let{enumName:t,memberName:n}=e;return`Symbol enum members cannot be initialized. Use \`${n},\` in enum \`${t}\`.`},EnumInvalidMemberInitializerUnknownType:e=>{let{enumName:t,memberName:n}=e;return`The enum member initializer for \`${n}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`},EnumInvalidMemberName:e=>{let{enumName:t,memberName:n,suggestion:r}=e;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${n}\`, consider using \`${r}\`, in enum \`${t}\`.`},EnumNumberMemberNotInitialized:e=>{let{enumName:t,memberName:n}=e;return`Number enum members need to be initialized, e.g. \`${n} = 1\` in enum \`${t}\`.`},EnumStringMemberInconsistentlyInitialized:e=>{let{enumName:t}=e;return`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:e=>{let{reservedType:t}=e;return`Unexpected reserved type ${t}.`},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:e=>{let{unsupportedExportKind:t,suggestion:n}=e;return`\`declare export ${t}\` is not supported. Use \`${n}\` instead.`},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ct(e){return"type"===e.importKind||"typeof"===e.importKind}const ut={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},pt=/\*?\s*@((?:no)?flow)\b/,ft={__proto__:null,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:"♦"},dt=v`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:e=>{let{openingTagName:t}=e;return`Expected corresponding JSX closing tag for <${t}>.`},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:e=>{let{unexpected:t,HTMLEntity:n}=e;return`Unexpected token \`${t}\`. Did you mean \`${n}\` or \`{'${t}'}\`?`},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function ht(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function mt(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return mt(e.object)+"."+mt(e.property);throw new Error("Node had unexpected type: "+e.type)}class yt extends ge{constructor(){super(...arguments),this.tsNames=new Map}}class gt extends ve{constructor(){super(...arguments),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new yt(e)}enter(e){256==e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 256==e&&this.importsStack.pop(),e}hasImport(e,t){const n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1)for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,n){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(b.VarRedeclaration,n,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const r=this.currentScope();let i=r.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(r,e),void r.tsNames.set(e,16|i);super.declareName(e,t,n),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){const r=e.tsNames.get(t);return(2&r)>0?!(256&n)||!!(512&n)!=(4&r)>0:128&n&&(8&r)>0?!!(2&e.names.get(t))&&!!(1&n):!!(2&n&&(1&r)>0)||super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){const n=this.scopeStack[e].tsNames.get(t);if((1&n)>0||(16&n)>0)return}super.checkLocalExport(e)}}}const vt=e=>"ParenthesizedExpression"===e.type?vt(e.expression):e;class bt extends st{toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n,r;let i;switch(("ParenthesizedExpression"===e.type||null!=(n=e.extra)&&n.parenthesized)&&(i=vt(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(b.InvalidParenthesizedAssignment,e):"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(b.InvalidParenthesizedAssignment,e):this.raise(b.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let n=0,r=e.properties.length,i=r-1;n<r;n++){var o;const r=e.properties[n],s=n===i;this.toAssignableObjectExpressionProp(r,s,t),s&&"RestElement"===r.type&&null!=(o=e.extra)&&o.trailingCommaLoc&&this.raise(b.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(b.MissingEqInAssignment,e.left.loc.end),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,n){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?b.PatternHasAccessor:b.PatternHasMethod,e.key);else if("SpreadElement"===e.type){e.type="RestElement";const r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(b.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){const r=e.length-1;for(let i=0;i<=r;i++){const o=e[i];if(o){if("SpreadElement"===o.type){o.type="RestElement";const e=o.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(o,n);"RestElement"===o.type&&(i<r?this.raise(b.RestTrailingComma,o):t&&this.raise(b.RestTrailingComma,t))}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,n)=>"ObjectMethod"!==e.type&&(n===t||"SpreadElement"!==e.type)&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,n){const r=1&n,i=[];let o=!0;for(;!this.eat(e);)if(o?o=!1:this.expect(12),r&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),n)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(b.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(n,e))}}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const e=this.startNode(),{type:t,startLoc:n}=this.state;return 21===t?this.parseBindingRestProperty(e):(138===t?(this.expectPlugin("destructuringPrivate",n),this.classScope.usePrivateName(this.state.value,n),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,n,!1,!1,!0,!1))}parseAssignableListItem(e,t){const n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n,e);const r=this.parseMaybeDefault(n.loc.start,n);return t.length&&(n.decorators=t),r}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var n;if(null!=e||(e=this.state.startLoc),t=null!=(n=t)?n:this.parseBindingAtom(),!this.eat(29))return t;const r=this.startNodeAt(e);return r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,n){return r={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},i=e,Object.hasOwnProperty.call(r,i)&&r[i];var r,i}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t){let{in:n,binding:r=64,checkClashes:i=!1,strictModeChanged:o=!1,hasParenthesizedAncestor:s=!1}=t;var a;const l=e.type;if(this.isObjectMethod(e))return;const c=this.isOptionalMemberExpression(e);if(c||"MemberExpression"===l)return c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==n.type&&this.raise(b.InvalidLhsOptionalChaining,e,{ancestor:n})),void(64!==r&&this.raise(b.InvalidPropertyBindingPattern,e));if("Identifier"===l){this.checkIdentifier(e,r,o);const{name:t}=e;return void(i&&(i.has(t)?this.raise(b.ParamDupe,e):i.add(t)))}const u=this.isValidLVal(l,!(s||null!=(a=e.extra)&&a.parenthesized)&&"AssignmentExpression"===n.type,r);if(!0===u)return;if(!1===u){const t=64===r?b.InvalidLhs:b.InvalidLhsBinding;return void this.raise(t,e,{ancestor:n})}const[p,f]=Array.isArray(u)?u:[u,"ParenthesizedExpression"===l],d="ArrayPattern"===l||"ObjectPattern"===l?{type:l}:n;for(const t of[].concat(e[p]))t&&this.checkLVal(t,{in:d,binding:r,checkClashes:i,strictModeChanged:o,hasParenthesizedAncestor:f})}checkIdentifier(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(n?me(e.name,this.inModule):he(e.name))&&(64===t?this.raise(b.StrictEvalArguments,e,{referenceName:e.name}):this.raise(b.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(b.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(b.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?b.RestTrailingComma:b.ElementAfterRest,this.state.startLoc),!0)}}function _t(e){if(!e)throw new Error("Assert fail")}const Et=v`typescript`({AbstractMethodHasImplementation:e=>{let{methodName:t}=e;return`Method '${t}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:e=>{let{propertyName:t}=e;return`Property '${t}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:e=>{let{kind:t}=e;return`'declare' is not allowed in ${t}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:e=>{let{modifier:t}=e;return"Accessibility modifier already seen."},DuplicateModifier:e=>{let{modifier:t}=e;return`Duplicate modifier: '${t}'.`},EmptyHeritageClauseType:e=>{let{token:t}=e;return`'${t}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:e=>{let{modifiers:t}=e;return`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:e=>{let{modifier:t}=e;return`Index signatures cannot have an accessibility modifier ('${t}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:e=>{let{modifier:t}=e;return`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:e=>{let{orderedModifiers:t}=e;return`'${t[0]}' modifier must precede '${t[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:e=>{let{modifier:t}=e;return`Private elements cannot have an accessibility modifier ('${t}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:e=>{let{typeParameterName:t}=e;return`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:e=>{let{type:t}=e;return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`}});function xt(e){return"private"===e||"public"===e||"protected"===e}function St(e){return"in"===e||"out"===e}function wt(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:n}=e;return(!t||"StringLiteral"===n.type||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&Pt(e.object)}function Tt(e,t){var n;const{type:r}=e;if(null!=(n=e.extra)&&n.parenthesized)return!1;if(t){if("Literal"===r){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!(!At(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:n,argument:r}=e;if("-"===n&&At(r,t))return!0}return!1}(e,t))||"TemplateLiteral"===r&&0===e.expressions.length||!!wt(e)}function At(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function Pt(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Pt(e.object)}const Ot=v`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function Ct(e,t){const[n,r]="string"==typeof t?[t,{}]:t,i=Object.keys(r),o=0===i.length;return e.some((e=>{if("string"==typeof e)return o&&e===n;{const[t,o]=e;if(t!==n)return!1;for(const e of i)if(o[e]!==r[e])return!1;return!0}}))}function kt(e,t,n){const r=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return r&&Array.isArray(r)&&r.length>1?r[1][n]:null}const It=["minimal","fsharp","hack","smart"],jt=["^^","@@","^","%","#"],Nt=["hash","bar"],Dt={estree:e=>class extends e{parse(){const e=x(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(x)),e}parseRegExpLiteral(e){let{pattern:t,flags:n}=e,r=null;try{r=new RegExp(t,n)}catch(e){}const i=this.estreeParseLiteral(r);return i.regex={pattern:t,flags:n},i}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){const t=e.value;delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue;const n=e;return n.type="ExpressionStatement",n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i);const o=e.directives.map((e=>this.directiveToStmt(e)));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,t,n,r,i,o){this.parseMethod(t,n,r,i,o,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,n),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,n,r,i,o){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=this.startNode();return a.kind=e.kind,a=super.parseMethod(a,t,n,r,i,o,s),a.type="FunctionExpression",delete a.kind,e.value=a,"ClassPrivateMethod"===o&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(){const e=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e):e}parseClassPrivateProperty(){const e=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e.computed=!1,e):e}parseObjectMethod(e,t,n,r,i){const o=super.parseObjectMethod(e,t,n,r,i);return o&&(o.type="Property","method"===o.kind&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,t,n,r){const i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind="init",i.type="Property"),i}isValidLVal(e,t,n){return"Property"===e?"value":super.isValidLVal(e,t,n)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){const{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){"get"===e.kind||"set"===e.kind?this.raise(b.PatternHasAccessor,e.key):e.method?this.raise(b.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){const n=super.finishCallExpression(e,t);var r,i;return"Import"===n.callee.type&&(n.type="ImportExpression",n.source=n.arguments[0],(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(n.options=null!=(r=n.arguments[1])?r:null,n.attributes=null!=(i=n.arguments[1])?i:null),delete n.arguments,delete n.callee),n}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var i;const{declaration:e}=r;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===r.start&&this.resetStartLocation(r,n)}}return r}parseSubscript(e,t,n,r){const i=super.parseSubscript(e,t,n,r);if(r.optionalChainMember){if("OptionalMemberExpression"!==i.type&&"OptionalCallExpression"!==i.type||(i.type=i.type.substring(8)),r.stop){const e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==i.type&&"CallExpression"!==i.type||(i.optional=!1);return i}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}finishNodeAt(e,t,n){return x(super.finishNodeAt(e,t,n))}resetStartLocation(e,t){super.resetStartLocation(e,t),x(e)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;super.resetEndLocation(e,t),x(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(dt.UnterminatedJsxContent,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?void(60===n&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(n)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(141,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Oe(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let n;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,n=e?"\n":"\r\n"):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(b.UnterminatedString,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):Oe(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(133,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(n){const t=this.input.slice(e,this.state.pos),n=ft[t];if(++this.state.pos,n)return n}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(le(e)||45===e);this.finishToken(140,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(140)?e.name=this.state.value:Q(this.state.type)?e.name=X(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;const n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(w.brace),this.next(),e=this.jsxParseExpressionContainer(e,w.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(dt.AttributeIsEmpty,e),e;case 142:case 133:return this.parseExprAtom();default:throw this.raise(dt.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(w.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(w.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(w.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(143);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(143),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(143),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e);let i=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 142:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}n.push(this.jsxParseElementAt(e));break;case 141:n.push(this.parseExprAtom());break;case 5:{const e=this.startNode();this.setContext(w.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,w.j_expr));break}default:this.unexpected()}ht(r)&&!ht(i)&&null!==i?this.raise(dt.MissingClosingTagFragment,i):!ht(r)&&ht(i)?this.raise(dt.MissingClosingTagElement,i,{openingTagName:mt(r.name)}):ht(r)||ht(i)||mt(i.name)!==mt(r.name)&&this.raise(dt.MissingClosingTagElement,i,{openingTagName:mt(r.name)})}if(ht(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(dt.UnwrappedAdjacentJSXElements,this.state.startLoc);return ht(r)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(141)?this.parseLiteral(this.state.value,"JSXText"):this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==w.j_expr){if(t===w.j_oTag||t===w.j_cTag){if(ae(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(143);if((34===e||39===e)&&t===w.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:n}=this.state;if(56===n&&142===e)t.splice(-2,2,w.j_cTag),this.state.canStartJSXElement=!1;else if(142===n)t.push(w.j_oTag);else if(143===n){const n=t[t.length-1];n===w.j_oTag&&56===e||n===w.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===w.j_expr):(this.setContext(w.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=q[n]}},flow:e=>class extends e{constructor(){super(...arguments),this.flowPragma=void 0}getScopeHandler(){return _e}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){133!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=pt.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(lt.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(lt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(133)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(lt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,lt.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),n.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let r=null,i=!1;return n.forEach((e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&this.raise(lt.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(lt.AmbiguousDeclareModuleKind,e),r="CommonJS",i=!0):("CommonJS"===r&&this.raise(lt.AmbiguousDeclareModuleKind,e),r="ES")})),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(lt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:ut[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(lt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){at.has(e)&&this.raise(n?lt.AssignReservedType:lt.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(lt.MissingTypeParamDefault,t),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let n=!1;do{const e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);const n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=n,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType(e){let{allowStatic:t,allowExact:n,allowSpread:r,allowProto:i,allowInexact:o}=e;const s=this.state.inType;this.state.inType=!0;const a=this.startNode();let l,c;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let u=!1;for(n&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),a.exact=c;!this.match(l);){let e=!1,n=null,s=null;const l=this.startNode();if(i&&this.isContextual(118)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),n=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}const p=this.flowParseVariance();if(this.eat(0))null!=n&&this.unexpected(n),this.eat(0)?(p&&this.unexpected(p.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(l,e))):a.indexers.push(this.flowParseObjectTypeIndexer(l,e,p));else if(this.match(10)||this.match(47))null!=n&&this.unexpected(n),p&&this.unexpected(p.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(l,e));else{let t="init";(this.isContextual(99)||this.isContextual(104))&&z(this.lookahead().type)&&(t=this.state.value,this.next());const i=this.flowParseObjectTypeProperty(l,e,n,p,t,r,null!=o?o:!c);null===i?(u=!0,s=this.state.lastTokStartLoc):a.properties.push(i)}this.flowObjectTypeSemicolon(),!s||this.match(8)||this.match(9)||this.raise(lt.UnexpectedExplicitInexactInObject,s)}this.expect(l),r&&(a.inexact=u);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,n,r,i,o,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?s||this.raise(lt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(lt.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(lt.InexactVariance,r),null):(o||this.raise(lt.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=n&&this.unexpected(n),r&&this.raise(lt.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=i;let s=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=n&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e),!o&&"constructor"===e.key.name&&e.value.this&&this.raise(lt.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(s=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=s,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?lt.GetterMayNotHaveThisParam:lt.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise("get"===e.kind?b.BadGetterArity:b.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(b.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,t){const n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,n=!1,r=null;const i=this.startNode(),o=this.lookahead(),s=78===this.state.type;return 14===o.type||17===o.type?(s&&!e&&this.raise(lt.ThisParamMustBeFirst,i),t=this.parseIdentifier(s),this.eat(17)&&(n=!0,s&&this.raise(lt.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let n,r,i=!1;const o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=o,r;case 47:return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),t.params=n.params,t.rest=n.rest,t.this=n._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(W(this.state.type)||this.match(78)){const e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),r;this.eat(12)}return n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),t.params=n.params,t.rest=n.rest,t.this=n._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(lt.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Q(this.state.type)){const e=X(this.state.type);return this.next(),super.createIdentifier(t,e)}if(W(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const r=this.startNodeAt(e),i=this.eat(18);n=n||i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,"OptionalIndexedAccessType")):t=this.finishNode(r,"IndexedAccessType"))}return t}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,n))):super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(K(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||W(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(W(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){const{type:e}=this.state;return G(e)||this.shouldParseEnums()&&126===e?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return G(e)||this.shouldParseEnums()&&126===e?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(n),e}this.expect(17);const r=this.state.clone(),i=this.state.noArrowAt,o=this.startNodeAt(t);let{consequent:s,failed:a}=this.tryParseConditionalConsequent(),[l,c]=this.getArrowLikeExpressions(s);if(a||c.length>0){const e=[...i];if(c.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<c.length;t++)e.push(c[t].start);({consequent:s,failed:a}=this.tryParseConditionalConsequent()),[l,c]=this.getArrowLikeExpressions(s)}a&&l.length>1&&this.raise(lt.AmbiguousConditionalArrow,r.startLoc),a&&1===l.length&&(this.state=r,e.push(l[0].start),this.state.noArrowAt=e,({consequent:s,failed:a}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(s,!0),this.state.noArrowAt=i,this.expect(14),o.test=e,o.consequent=s,o.alternate=this.forwardNoArrowParamsConversionAt(o,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const n=[e],r=[];for(;0!==n.length;){const e=n.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):"ConditionalExpression"===e.type&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach((e=>this.finishArrowValidation(e))),[r,[]]):function(e,t){const n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i])?n:r).push(e[i]);return[n,r]}(r,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&"type"===e.exportKind&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){const{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(lt.DeclareClassElement,r):t.value&&this.raise(lt.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(b.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):function(e,t,n){return 64===e&&64===t&&ae(n)}(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TypeCastExpression"===(null==n?void 0:n.type)&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;const i=e[r];!i||"TypeCastExpression"!==i.type||null!=(n=i.extra)&&n.parenthesized||!(e.length>1)&&t||this.raise(lt.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,n){return"TypeCastExpression"===e||super.isValidLVal(e,t,n)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,o){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,o),t.params&&i){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(lt.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&i&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(lt.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const n=t[0];this.isThisParam(n)&&"get"===e.kind?this.raise(lt.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(lt.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,o,s){let a;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!o&&(a=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,n,r,i,o,s);return a&&((l.value||l).typeParameters=a),l}parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(lt.PatternIsOptional,e),this.isThisParam(e)&&this.raise(lt.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(lt.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(lt.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(lt.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(lt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=ct(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind="type"===n?n:"value"}else"type"===n&&this.match(55)&&this.unexpected(),e.importKind="type"===n||"typeof"===n?n:"value"}parseImportSpecifier(e,t,n,r,i){const o=e.imported;let s=null;"Identifier"===o.type&&("type"===o.name?s="type":"typeof"===o.name&&(s="typeof"));let a=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===s||K(this.state.type)?(e.imported=o,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=s,e.local=ot(t))}else{if(null!==s&&K(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=s;else{if(t)throw this.raise(b.ImportBindingIsString,e,{importName:o.value});e.imported=o,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(a=!0,e.local=ot(e.imported))}const l=ct(e);return n&&l&&this.raise(lt.ImportTypeShorthandOnlyInPureImport,e),(n||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!a||n||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const n=e.kind;"get"!==n&&"set"!==n&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let r,i=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(i=this.state.clone(),r=this.tryParse((()=>super.parseMaybeAssign(e,t)),i),!r.error)return r.node;const{context:n}=this.state,o=n[n.length-1];o!==w.j_oTag&&o!==w.j_expr||n.pop()}if(null!=(n=r)&&n.error||this.match(47)){var o,s;let n;i=i||this.state.clone();const a=this.tryParse((r=>{var i;n=this.flowParseTypeParameterDeclaration();const o=this.forwardNoArrowParamsConversionAt(n,(()=>{const r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r}));null!=(i=o.extra)&&i.parenthesized&&r();const s=this.maybeUnwrapTypeCastExpression(o);return"ArrowFunctionExpression"!==s.type&&r(),s.typeParameters=n,this.resetStartLocationFromNode(s,n),o}),i);let l=null;if(a.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(a.node).type){if(!a.error&&!a.aborted)return a.node.async&&this.raise(lt.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),a.node;l=a.node}if(null!=(o=r)&&o.node)return this.state=r.failState,r.node;if(l)return this.state=a.failState,l;if(null!=(s=r)&&s.thrown)throw r.error;if(a.thrown)throw a.error;throw this.raise(lt.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!n||-1===this.state.noArrowParamsConversionAt.indexOf(e.start)){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(lt.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,n){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();const n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(n,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const r=this.state.clone(),i=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),r);if(!i.error&&!i.aborted)return i.node;const o=this.tryParse((()=>super.parseSubscripts(e,t,n)),r);if(o.node&&!o.error)return o.node;if(i.node)return this.state=i.failState,i.node;if(o.node)return this.state=o.failState,o.node;throw i.error||o.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();const i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!n&&this.shouldParseTypes()&&this.match(47)){const n=this.startNodeAt(t);n.callee=e;const i=this.tryParse((()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(lt.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(lt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===n&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===n&&58!==r&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(b.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,t){let{enumName:n,memberName:r}=t;this.raise(lt.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:n})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?lt.EnumInvalidMemberInitializerSymbolType:lt.EnumInvalidMemberInitializerPrimaryType:lt.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(lt.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(lt.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const n=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 133:{const n=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 85:case 86:{const n=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){const{explicitType:r}=t;null!==r&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers(e){let{enumName:t,explicitType:n}=e;const r=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let o=!1;for(;!this.match(8);){if(this.eat(21)){o=!0;break}const e=this.startNode(),{id:s,init:a}=this.flowEnumMemberRaw(),l=s.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(lt.EnumInvalidMemberName,s,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:t}),r.has(l)&&this.raise(lt.EnumDuplicateMemberName,s,{memberName:l,enumName:t}),r.add(l);const c={enumName:t,explicitType:n,memberName:l};switch(e.id=s,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"boolean"),e.init=a.value,i.booleanMembers.push(this.finishNode(e,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"number"),e.init=a.value,i.numberMembers.push(this.finishNode(e,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"string"),e.init=a.value,i.stringMembers.push(this.finishNode(e,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.loc,c);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.loc,c);break;default:i.defaultedMembers.push(this.finishNode(e,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:o}}flowEnumStringMembers(e,t,n){let{enumName:r}=n;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r});return e}flowEnumParseExplicitType(e){let{enumName:t}=e;if(!this.eatContextual(102))return null;if(!W(this.state.type))throw this.raise(lt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});const{value:n}=this.state;return this.next(),"boolean"!==n&&"number"!==n&&"string"!==n&&"symbol"!==n&&this.raise(lt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:n}),n}flowEnumBody(e,t){const n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:o,hasUnknownMembers:s}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=s,i){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=o.booleanMembers.length,s=o.numberMembers.length,a=o.stringMembers.length,l=o.defaultedMembers.length;if(i||s||a||l){if(i||s){if(!s&&!a&&i>=l){for(const e of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!a&&s>=l){for(const e of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(lt.EnumInconsistentMemberValues,r,{enumName:n}),t()}return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody")}return t()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(){super(...arguments),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Et.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Et.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Et.InvalidModifierOnTypeParameter})}getScopeHandler(){return gt}tsIsIdentifier(){return W(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!W(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const n=this.state.value;if(-1!==e.indexOf(n)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers(e,t){let{allowedModifiers:n,disallowedModifiers:r,stopOnStartOfClassStaticBlock:i,errorTemplate:o=Et.InvalidModifierOnTypeMember}=e;const s=(e,n,r,i)=>{n===r&&t[i]&&this.raise(Et.InvalidModifiersOrder,e,{orderedModifiers:[r,i]})},a=(e,n,r,i)=>{(t[r]&&n===i||t[i]&&n===r)&&this.raise(Et.IncompatibleModifiers,e,{modifiers:[r,i]})};for(;;){const{startLoc:e}=this.state,l=this.tsParseModifier(n.concat(null!=r?r:[]),i);if(!l)break;xt(l)?t.accessibility?this.raise(Et.DuplicateAccessibilityModifier,e,{modifier:l}):(s(e,l,l,"override"),s(e,l,l,"static"),s(e,l,l,"readonly"),t.accessibility=l):St(l)?(t[l]&&this.raise(Et.DuplicateModifier,e,{modifier:l}),t[l]=!0,s(e,l,"in","out")):(Object.hasOwnProperty.call(t,l)?this.raise(Et.DuplicateModifier,e,{modifier:l}):(s(e,l,"static","readonly"),s(e,l,"static","override"),s(e,l,"override","readonly"),s(e,l,"abstract","override"),a(e,l,"declare","override"),a(e,l,"static","abstract")),t[l]=!0),null!=r&&r.includes(l)&&this.raise(o,e,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){const i=[];let o=-1;for(;!this.tsIsListTerminator(e);){o=-1;const r=t();if(null==r)return;if(i.push(r),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(12))}o=this.state.lastTokStartLoc.index}return r&&(r.value=o),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));const o=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),o}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(Et.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.parseIdentifier(e);for(;this.eat(16);){const n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();const n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(Et.EmptyTypeParameters,t),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const n=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(Et.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!W(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);const n=e;if(this.match(10)||this.match(47)){t&&this.raise(Et.ReadonlyForMethodSignature,e);const r=n;r.kind&&this.match(47)&&this.raise(Et.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();const i="parameters",o="typeAnnotation";if("get"===r.kind)r[i].length>0&&(this.raise(b.BadGetterArity,this.state.curPosition()),this.isThisParam(r[i][0])&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[i].length)this.raise(b.BadSetterArity,this.state.curPosition());else{const e=r[i][0];this.isThisParam(e)&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(Et.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(Et.SetAccesorCannotHaveRestParameter,this.state.curPosition())}r[o]&&this.raise(Et.SetAccesorCannotHaveReturnType,r[o])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}{const e=n;t&&(e.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach((e=>{const{type:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(Et.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{startLoc:e}=this.state,t=this.eat(21);let n,r,i,o;const s=K(this.state.type)?this.lookaheadCharCode():null;if(58===s)n=!0,i=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(63===s){i=!0;const e=this.state.startLoc,t=this.state.value,s=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(n=!0,r=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),o=this.tsParseType()):(n=!1,o=s,this.expect(17))}else o=this.tsParseType(),i=this.eat(17),n=this.eat(14);if(n){let e;r?(e=this.startNodeAtNode(r),e.optional=i,e.label=r,e.elementType=o,this.eat(17)&&(e.optional=!0,this.raise(Et.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(o),e.optional=i,this.raise(Et.InvalidTupleMemberLabel,o),e.label=o,e.elementType=this.tsParseType()),o=this.finishNode(e,"TSNamedTupleMember")}else if(i){const e=this.startNodeAtNode(o);e.typeAnnotation=o,o=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=o,o=this.finishNode(t,"TSRestType")}return o}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,n))),this.finishNode(n,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();return 134!==t.type&&135!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(W(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Et.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,n){const r=this.startNode(),i=this.eat(n),o=[];do{o.push(t())}while(this.eat(n));return 1!==o.length||i?(r.types=o,this.finishNode(r,e)):o[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(W(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const o=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=o,n.asserts=r,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!W(this.state.type)&&!this.match(78)||(e&&this.raise(b.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){_t(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Et.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return n.length||this.raise(Et.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),W(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Et.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType((()=>(this.expect(e),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.global=!0,e.id=this.parseIdentifier()):this.match(133)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(Et.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),n=e();if(void 0!==n&&!1!==n)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,n=this.state.type;return this.isContextual(100)&&(n=74,t="let"),this.tsInAmbientContext((()=>{switch(n){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,t||this.state.value,!0));case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(W(n))return this.tsParseDeclaration(e,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,n){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,n)}}tsParseDeclaration(e,t,n,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(n)&&(this.match(80)||W(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(n)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(W(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(n)&&W(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(n)&&W(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const n=this.tsTryParseAndCatch((()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));return this.state.maybeInArrowParameters=t,n?super.parseArrowExpression(n,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length?this.raise(Et.EmptyTypeArguments,e):this.state.inType||this.curContext()!==w.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const n=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);const i=r.accessibility,o=r.override,s=r.readonly;4&e||!(i||s||o)||this.raise(Et.UnexpectedParameterModifier,n);const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,e);const l=this.parseMaybeDefault(a.loc.start,a);if(i||s||o){const e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),s&&(e.readonly=s),o&&(e.override=o),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(Et.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(Et.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const r="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(Et.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(Et.UnexpectedTypeAnnotation,e.typeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let o;const s=this.tsTryParseAndCatch((()=>{if(!n&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}const s=this.tsParseTypeArgumentsInExpression();if(!s)return;if(i&&!this.match(10))return void(o=this.state.curPosition());if(J(this.state.type)){const n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=s,n}if(!n&&this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=s,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}const a=this.state.type;if(48===a||52===a||10!==a&&H(a)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(t);return l.expression=e,l.typeParameters=s,this.finishNode(l,"TSInstantiationExpression")}));if(o&&this.unexpected(o,10),s)return"TSInstantiationExpression"===s.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(Et.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),s}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:n}=e;"TSInstantiationExpression"!==n.type||null!=(t=n.extra)&&t.parenthesized||(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(Y(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){const i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(r&&this.raise(b.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(i,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Et.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind="type"===n?"type":"value":e.importKind="type"===n||"typeof"===n?n:"value"}parseImport(e){if(this.match(133))return e.importKind="value",super.parseImport(e);let t;if(W(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const n=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(Et.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?t=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,t,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;for(const{id:e,init:n}of i.declarations)n&&("const"!==t||e.typeAnnotation?this.raise(Et.InitializerNotAllowedInAmbientContext,n):Tt(n,this.hasPlugin("estree"))||this.raise(Et.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>xt(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,n){const r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Et.InvalidModifierOnTypeParameterPositions},t);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(Et.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){const i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(Et.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(Et.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(Et.IndexSignatureHasDeclare,t),void(t.override&&this.raise(Et.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(Et.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(Et.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Et.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Et.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,n){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,n):void 0)||super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,n);const r=this.tryParse((()=>super.parseConditional(e,t)));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(n,r.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));const t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Et.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const r=W(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||n)&&(e.exportKind="type"),n&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(Et.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(Et.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Et.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Et.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Et.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,o){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&i&&this.raise(Et.ConstructorHasTypeParameters,s);const{declare:a=!1,kind:l}=t;!a||"get"!==l&&"set"!==l||this.raise(Et.DeclareAccessor,t,{kind:l}),s&&(t.typeParameters=s),super.pushClassMethod(e,t,n,r,i,o)}pushClassPrivateMethod(e,t,n,r){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"!==e.type||e.value.body)&&super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,n,r,i,o,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,n,r,i,o,s)}parseFunctionParams(e,t){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i,o,s;let a,l,c,u;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(a=this.state.clone(),l=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!l.error)return l.node;const{context:n}=this.state,r=n[n.length-1];r!==w.j_oTag&&r!==w.j_expr||n.pop()}if(!(null!=(n=l)&&n.error||this.match(47)))return super.parseMaybeAssign(e,t);a&&a!==this.state||(a=this.state.clone());const p=this.tryParse((n=>{var r,i;u=this.tsParseTypeParameters(this.tsParseConstModifier);const o=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==o.type||null!=(r=o.extra)&&r.parenthesized)&&n(),0!==(null==(i=u)?void 0:i.params.length)&&this.resetStartLocationFromNode(o,u),o.typeParameters=u,o}),a);if(!p.error&&!p.aborted)return u&&this.reportReservedArrowTypeParam(u),p.node;if(!l&&(_t(!this.hasPlugin("jsx")),c=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!c.error))return c.node;if(null!=(r=l)&&r.node)return this.state=l.failState,l.node;if(p.node)return this.state=p.failState,u&&this.reportReservedArrowTypeParam(u),p.node;if(null!=(i=c)&&i.node)return this.state=c.failState,c.node;throw(null==(o=l)?void 0:o.error)||p.error||(null==(s=c)?void 0:s.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(Et.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(Et.UnexpectedTypeCastInParameter,e):this.raise(Et.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n){return r={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==n||!t)&&["expression",!0],TSSatisfiesExpression:(64!==n||!t)&&["expression",!0],TSTypeAssertion:(64!==n||!t)&&["expression",!0]},i=e,Object.hasOwnProperty.call(r,i)&&r[i]||super.isValidLVal(e,t,n);var r,i}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){const t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const n=super.parseMaybeDecoratorArguments(e);return n.typeParameters=t,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Et.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TSTypeCastExpression"===(null==n?void 0:n.type)&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(e,!0))):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,t,n){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(Et.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,n,r,i,o,s){const a=super.parseMethod(e,t,n,r,i,o,s);if(a.abstract&&(this.hasPlugin("estree")?a.value.body:a.body)){const{key:e}=a;this.raise(Et.AbstractMethodHasImplementation,a,{methodName:"Identifier"!==e.type||a.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return a}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){const r=t?"imported":"local",i=t?"local":"exported";let o,s=e[r],a=!1,l=!0;const c=s.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const n=this.parseIdentifier();K(this.state.type)?(a=!0,s=e,o=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(o=n,l=!1)}else K(this.state.type)?(l=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(a=!0,s=e)}else K(this.state.type)&&(a=!0,t?(s=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(s.name,s.loc.start,!0,!0)):s=this.parseModuleExportName());a&&n&&this.raise(t?Et.TypeModifierIsUsedInTypeImports:Et.TypeModifierIsUsedInTypeExports,c),e[r]=s,e[i]=o,e[t?"importKind":"exportKind"]=a?"type":"value",l&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=ot(e[r])),t&&this.checkIdentifier(e[i],a?4098:4096)}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),W(this.state.type)){const e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(n.type="V8IntrinsicIdentifier",this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(144)){const t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){const n=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,n?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){void 0!==e&&super.checkReservedWord(e,t,n,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,n){return"Placeholder"===e||super.isValidLVal(e,t,n)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!!super.chStartsBindingIdentifier(e,t)||144===this.lookahead().type}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if("Placeholder"!==t.type||null!=(n=t.extra)&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const n=e;return n.label=this.finishPlaceholder(t,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,t,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,n){const r=t?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,o=this.parsePlaceholder("Identifier");if(o){if(!(this.match(81)||this.match(144)||this.match(5))){if(n||!t)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(Ot.ClassNameIsRequired,this.state.startLoc)}e.id=o}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){const n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(e,t);if(!this.isContextual(98)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const r=this.startNode();return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(X(144),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return!(null==(n=e.specifiers)||!n.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ot.UnexpectedSpace,this.state.lastTokEndLoc)}}},Mt=Object.keys(Dt),Lt={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};class Rt extends bt{checkProto(e,t,n,r){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;const i=e.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(t)return void this.raise(b.RecordNoProto,i);n.used&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=i.loc.start):this.raise(b.DuplicateProto,i)),n.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();const e=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){const r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var n;e.optionalParametersLoc=null!=(n=null==t?void 0:t.loc)?n:this.state.startLoc}parseMaybeAssign(e,t){const n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}let r;e?r=!1:(e=new nt,r=!0);const{type:i}=this.state;(10===i||W(i))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,n)),(s=this.state.type)>=29&&s<=33){const t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(o,!0),t.left=o;const r=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,{in:this.finishNode(t,"AssignmentExpression")}),t}var s;return r&&this.checkExpressionErrors(e,!0),o}parseMaybeConditional(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){const n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(n>=Y(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(b.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const r=this.state.type;if((i=r)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=Y(r);if(i>n){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const o=this.startNodeAt(t);o.left=e,o.operator=this.state.value;const s=41===r||42===r,a=40===r;if(a&&(i=Y(42)),this.next(),39===r&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(b.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);o.right=this.parseExprOpRightExpr(r,i);const l=this.finishNode(o,s||a?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(a&&(41===c||42===c)||s&&40===c)throw this.raise(b.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,n)}}var i;return e}parseExprOpRightExpr(e,t){const n=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(b.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,n=this.parseMaybeAssign();return!f.has(n.type)||null!=(e=n.extra)&&e.parenthesized||this.raise(b.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(b.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const n=this.state.startLoc,r=this.isContextual(96);if(r&&this.isAwaitAllowed()){this.next();const e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}const i=this.match(34),o=this.startNode();if(s=this.state.type,F[s]){o.operator=this.state.value,o.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const n=this.match(89);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){const e=o.argument;"Identifier"===e.type?this.raise(b.StrictDelete,o):this.hasPropertyAsPrivateName(e)&&this.raise(b.DeletePrivateField,o)}if(!i)return t||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}var s;const a=this.parseUpdate(o,i,e);if(r){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?H(e):H(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(b.AwaitNotInAsyncContext,n),this.parseAwait(n)}return a}parseUpdate(e,t,n){if(t){const t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}const r=this.state.startLoc;let i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,{in:i=this.finishNode(e,"UpdateExpression")})}return i}parseExprSubscripts(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){const r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1}while(!r.stop);return e}parseSubscript(e,t,n,r){const{type:i}=this.state;if(!n&&15===i)return this.parseBind(e,t,n,r);if(J(i))return this.parseTaggedTemplateExpression(e,t,r);let o=!1;if(18===i){if(n&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return r.stop=!0,e;r.optionalChainMember=o=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,o);{const n=this.eat(0);return n||o||this.eat(16)?this.parseMember(e,t,r,n,o):(r.stop=!0,e)}}parseMember(e,t,n,r,i){const o=this.startNodeAt(t);return o.object=e,o.computed=r,r?(o.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===e.type&&this.raise(b.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),o.property=this.parsePrivateName()):o.property=this.parseIdentifier(!0),n.optionalChainMember?(o.optional=i,this.finishNode(o,"OptionalMemberExpression")):this.finishNode(o,"MemberExpression")}parseBind(e,t,n,r){const i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){const i=this.state.maybeInArrowParameters;let o=null;this.state.maybeInArrowParameters=!0,this.next();const s=this.startNodeAt(t);s.callee=e;const{maybeAsyncArrow:a,optionalChainMember:l}=n;a&&(this.expressionScope.enter(new Xe(2)),o=new nt),l&&(s.optional=r),s.arguments=r?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,s,o);let c=this.finishCallExpression(s,l);return a&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(a&&(this.checkExpressionErrors(o,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=i,c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){const r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(b.OptionalChainingNoTemplate,t),this.finishNode(r,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===e.arguments.length||e.arguments.length>2)this.raise(b.ImportCallArity,e,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(b.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,n,r,i){const o=[];let s=!0;const a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){!t||this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(b.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),r&&this.addTrailingCommaExtraToNode(r),this.next();break}o.push(this.parseExprListItem(!1,i,n))}return this.state.inFSharpPipelineDirectBody=a,o}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var n;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(n=t.extra)?void 0:n.trailingCommaLoc),t.innerComments&&Se(e,t.innerComments),t.callee.trailingComments&&Se(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null;const{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.options.createImportExpressions?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(b.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(b.UnsupportedBind,e)}case 138:return this.raise(b.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());ae(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(W(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(W(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(90===e)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=s(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(e){const t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r)){const r="smart"===n?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===n?b.PrimaryTopicNotAllowed:b.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,r)}throw this.raise(b.PipeTopicUnconfiguredToken,t,{token:X(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:X(n)}]);case"smart":return 27===n;default:throw this.raise(b.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(et(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(b.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(b.UnexpectedSuper,e):this.raise(b.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(b.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(s(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;const r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(b.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(b.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);if(t||this.unexpected(),this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(b.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){const n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let n;this.next(),this.expressionScope.enter(new Xe(1));const r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const o=this.state.startLoc,s=[],a=new nt;let l,c,u=!0;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,null===a.optionalParametersLoc?null:a.optionalParametersLoc),this.match(11)){c=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(l=this.state.startLoc,s.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else s.push(this.parseMaybeAssignAllowIn(a,this.parseParenItem))}const p=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let f=this.startNodeAt(t);return e&&this.shouldParseArrow(s)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,s,!1),f):(this.expressionScope.exit(),s.length||this.unexpected(this.state.lastTokStartLoc),c&&this.unexpected(c),l&&this.unexpected(l),this.checkExpressionErrors(a,!0),this.toReferencedListDeep(s,!0),s.length>1?(n=this.startNodeAt(o),n.expressions=s,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,p)):n=s[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;const n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const n=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(b.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83),n=this.parseNoCallExpr();e.callee=n,!t||"Import"!==n.type&&"ImportExpression"!==n.type||this.raise(b.ImportCallNotNewExpression,n)}parseTemplateElement(e){const{start:t,startLoc:n,end:r,value:i}=this.state,o=t+1,a=this.startNodeAt(s(n,1));null===i&&(e||this.raise(b.InvalidEscapeSequenceTemplate,s(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),c=l?-1:-2,u=r+c;a.value={raw:this.input.slice(o,u).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,c)},a.tail=l,this.next();const p=this.finishNode(a,"TemplateElement");return this.resetEndLocation(p,s(this.state.lastTokEndLoc,c)),p}parseTemplate(e){const t=this.startNode();t.expressions=[];let n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(n=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const o=Object.create(null);let s=!0;const a=this.startNode();for(a.properties=[],this.next();!this.match(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(a);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),this.checkProto(i,n,o,r)),n&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(b.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),a.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";return t?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(a,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(b.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const n=this.startNode();let r,i=!1,o=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(r=this.state.startLoc);let s=this.eat(55);this.parsePropertyNamePrefixOperator(n);const a=this.state.containsEsc,l=this.parsePropertyName(n,e);if(!s&&!a&&this.maybeAsyncOrAccessorProp(n)){const e=l.name;"async"!==e||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(l),s=this.eat(55),this.parsePropertyName(n)),"get"!==e&&"set"!==e||(o=!0,this.resetPreviousNodeTrailingComments(l),n.kind=e,this.match(55)&&(s=!0,this.raise(b.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,r,s,i,!1,o,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const n=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==n&&this.raise("get"===e.kind?b.BadGetterArity:b.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=r[r.length-1])?void 0:t.type)&&this.raise(b.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){const n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,ot(e.key));else if(this.match(29)){const n=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=n):this.raise(b.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,ot(e.key))}else e.value=ot(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,n,r,i,o,s){const a=this.parseObjectMethod(e,n,r,i,o)||this.parseObjectProperty(e,t,i,s);return a||this.unexpected(),a}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:n,value:r}=this.state;let i;if(K(n))i=this.parseIdentifier(!0);else switch(n){case 134:i=this.parseNumericLiteral(r);break;case 133:i=this.parseStringLiteral(r);break;case 135:i=this.parseBigIntLiteral(r);break;case 136:i=this.parseDecimalLiteral(r);break;case 138:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(b.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:this.unexpected()}e.key=i,138!==n&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,o){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,n),e.generator=t,this.scope.enter(18|(s?64:0)|(i?32:0)),this.prodParam.enter(et(n,e.generator)),this.parseFunctionParams(e,r);const a=this.parseFunctionBodyAndFinish(e,o,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const o=this.startNode();return this.next(),o.elements=this.parseExprList(e,!n,r,o),this.state.inFSharpPipelineDirectBody=i,this.finishNode(o,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,n,r){this.scope.enter(6);let i=et(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);const o=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=o,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=t&&!this.match(5);if(this.expressionScope.enter(Je()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(i=>{const o=!this.isSimpleParamList(e.params);i&&o&&this.raise(b.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const s=!r&&this.state.strict;this.checkParams(e,!(this.state.strict||t||n||o),t,s),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,s)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=!t&&new Set,o={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,{in:o,binding:5,checkClashes:i,strictModeChanged:r})}parseExprList(e,t,n,r){const i=[];let o=!0;for(;!this.eat(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(t,n))}return i}parseExprListItem(e,t,n){let r;if(this.match(12))e||this.raise(b.UnexpectedToken,this.state.curPosition(),{unexpected:","}),r=null;else if(this.match(21)){const e=this.state.startLoc;r=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(b.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),r=this.finishNode(e,"ArgumentPlaceholder")}else r=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return r}parseIdentifier(e){const t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t;const{startLoc:n,type:r}=this.state;K(r)?t=this.state.value:this.unexpected();const i=r<=92;return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)&&function(e){return ye.has(e)}(e))if(n&&function(e){return ce.has(e)}(e))this.raise(b.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?r?me:de:fe)(e,this.inModule))this.raise(b.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(b.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(b.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(b.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(b.ArgumentsInClass,t)}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(b.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(b.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||J(e)||102===e&&!this.state.containsEsc||137===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(){const e=this.startNode();this.expressionScope.recordParameterInitializerError(b.YieldInParameter,e),this.next();let t=!1,n=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:n=this.parseMaybeAssign()}return e.delegate=t,e.argument=n,this.finishNode(e,"YieldExpression")}parseImportCall(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(b.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,"PipelineBareFunction")}{const n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(b.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipelineTopicUnused,e)}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{n()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const qt={kind:1},Bt={kind:2},Ft=/[\uD800-\uDFFF]/u,Ut=/in(?:stanceof)?/y;class Vt extends Rt{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=function(e,t){for(let n=0;n<e.length;n++){const r=e[n],{type:i}=r;if("number"==typeof i){if(138===i){const{loc:t,start:i,value:o,end:a}=r,l=i+1,c=s(t.start,1);e.splice(n,1,new Ke({type:Z(27),value:"#",start:i,end:l,startLoc:t.start,endLoc:c}),new Ke({type:Z(132),value:o,start:l,end:a,startLoc:c,endLoc:t.end})),n++;continue}if(J(i)){const{loc:o,start:a,value:l,end:c}=r,u=a+1,p=s(o.start,1);let f,d,h,m,y;f=96===t.charCodeAt(a)?new Ke({type:Z(22),value:"`",start:a,end:u,startLoc:o.start,endLoc:p}):new Ke({type:Z(8),value:"}",start:a,end:u,startLoc:o.start,endLoc:p}),24===i?(h=c-1,m=s(o.end,-1),d=null===l?null:l.slice(1,-1),y=new Ke({type:Z(22),value:"`",start:h,end:c,startLoc:m,endLoc:o.end})):(h=c-2,m=s(o.end,-2),d=null===l?null:l.slice(1,-2),y=new Ke({type:Z(23),value:"${",start:h,end:c,startLoc:m,endLoc:o.end})),e.splice(n,1,f,new Ke({type:Z(20),value:d,start:u,end:h,startLoc:p,endLoc:m}),y),n+=2;continue}r.type=Z(i)}}return e}(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:139,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,n),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(b.ModuleExportUndefined,t,{localName:e});return t=139===n?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",s(this.state.startLoc,-1)),t}stmtToDirective(e){const t=e;t.type="Directive",t.value=t.expression,delete t.expression;const n=t.value,r=n.value,i=this.input.slice(n.start,n.end),o=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",o),this.addExtra(n,"expressionValue",r),n.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(ae(e)){if(Ut.lastIndex=t,Ut.test(this.input)){const e=this.codePointAtPos(Ut.lastIndex);if(!le(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifier(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){const{type:e,containsEsc:t}=this.lookahead();return!(102===e&&!t)&&(W(e)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const n=this.state.type,r=this.startNode(),i=!!(2&e),o=!!(4&e),s=1&e;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(46===this.lookaheadCharCode())break;return o||this.raise(this.state.strict?b.StrictFunction:this.options.annexB?b.SloppyFunctionAnnexB:b.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&o);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?i||this.raise(b.UnexpectedLexicalDeclaration,r):this.raise(b.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(b.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:i||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return this.options.allowImportExportEverywhere||s||this.raise(b.UnexpectedImportExport,this.state.startLoc),this.next(),83===n?(e=this.parseImport(r),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(r,t),("ExportNamedDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(b.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&o)}const a=this.state.value,l=this.parseExpression();return W(n)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(r,a,l,e):this.parseExpressionStatement(r,l,t)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(b.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,n){return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(b.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(b.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let n;if(this.match(10)){const t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);const r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==n&&this.raise(b.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=n,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(n)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){const r=this.state.labels[n];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(t||1===r.kind))break;if(e.label&&t)break}}if(n===this.state.labels.length){const n=t?"BreakStatement":"ContinueStatement";this.raise(b.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(qt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(qt);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);const n=this.isContextual(100);{const r=this.isContextual(96)&&this.startsAwaitUsing(),i=r||this.isContextual(107)&&this.startsUsingForOf(),o=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||o){const n=this.startNode();let o;r?(o="await using",this.isAwaitAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):o=this.state.value,this.next(),this.parseVar(n,!0,o);const s=this.finishNode(n,"VariableDeclaration"),a=this.match(58);return a&&i&&this.raise(b.ForInUsing,s),(a||this.isContextual(102))&&1===s.declarations.length?this.parseForIn(e,s,t):(null!==t&&this.unexpected(t),this.parseFor(e,s))}}const r=this.isContextual(95),i=new nt,o=this.parseExpression(!0,i),s=this.isContextual(102);if(s&&(n&&this.raise(b.ForOfLet,o),null===t&&r&&"Identifier"===o.type&&this.raise(b.ForOfAsync,o)),s||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(o,!0);const n=s?"ForOfStatement":"ForInStatement";return this.checkLVal(o,{in:{type:n}}),this.parseForIn(e,o,t)}return this.checkExpressionErrors(i,!0),null!==t&&this.unexpected(t),this.parseFor(e,o)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(b.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let n;this.expect(5),this.state.labels.push(Bt),this.scope.enter(0);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const r=this.match(61);n&&this.finishNode(n,"SwitchCase"),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(b.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(b.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:9}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(b.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(qt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(b.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,n,r){for(const e of this.state.labels)e.name===t&&this.raise(b.LabelRedeclaration,n,{labelName:t});const i=(o=this.state.type)>=90&&o<=92?1:this.match(71)?2:null;var o;for(let t=this.state.labels.length-1;t>=0;t--){const n=this.state.labels[t];if(n.statementStart!==e.start)break;n.statementStart=this.state.start,n.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;const r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){const o=e.body=[],s=e.directives=[];this.parseBlockOrModuleBlockBody(o,t?s:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){const o=this.state.strict;let s=!1,a=!1;for(;!this.match(r);){const r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!a){if(this.isValidDirective(r)){const e=this.stmtToDirective(r);t.push(e),s||"use strict"!==e.value.value||(s=!0,this.setStrict(!0));continue}a=!0,this.state.strictErrors.clear()}e.push(r)}null==i||i.call(this,s),o||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,n){const r=this.match(58);return this.next(),r?null!==n&&this.unexpected(n):e.await=null!==n,"VariableDeclaration"!==t.type||null==t.declarations[0].init||r&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(b.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(b.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")}parseVar(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=e.declarations=[];for(e.kind=n;;){const e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||r||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==n||this.match(58)||this.isContextual(102)||this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"const"}):this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const n=this.parseBindingAtom();this.checkLVal(n,{in:{type:"VariableDeclarator"},binding:"var"===t?5:8201}),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=2&t,r=!!(1&t),i=r&&!(4&t),o=!!(8&t);this.initFunction(e,o),this.match(55)&&(n&&this.raise(b.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));const s=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(et(o,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,r?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=s,e}parseFunctionId(e){return e||W(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new Qe(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();const r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();const n={hadConstructor:!1,hadSuperClass:e};let r=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(b.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}const e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(b.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),r.length)throw this.raise(b.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const r=t;return r.kind="method",r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){const r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){const i=t,o=t,s=t,a=t,l=t,c=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";const t=this.match(138);return this.parseClassElementName(c),t?void this.pushClassPrivateMethod(e,o,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}const p=W(this.state.type)&&!this.state.containsEsc,f=this.match(138),d=this.parseClassElementName(t),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",f)return void this.pushClassPrivateMethod(e,o,!1,!1);const r=this.isNonstaticConstructor(i);let s=!1;r&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(b.DuplicateConstructor,d),r&&this.hasPlugin("typescript")&&t.override&&this.raise(b.OverrideOnConstructor,d),n.hadConstructor=!0,s=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,s)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s);else if(p&&"async"===d.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(d);const t=this.eat(55);u.optional&&this.unexpected(h),c.kind="method";const n=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),n?this.pushClassPrivateMethod(e,o,t,!0):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if(!p||"get"!==d.name&&"set"!==d.name||this.match(55)&&this.isLineTerminator())if(p&&"accessor"===d.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(d);const t=this.match(138);this.parseClassElementName(s),this.pushClassAccessorProperty(e,l,t)}else this.isLineTerminator()?f?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s):this.unexpected();else{this.resetPreviousNodeTrailingComments(d),c.kind=d.name;const t=this.match(138);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,o,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}}parseClassElementName(e){const{type:t,value:n}=this.state;if(132!==t&&133!==t||!e.static||"prototype"!==n||this.raise(b.StaticPrototype,this.state.startLoc),138===t){"constructor"===n&&this.raise(b.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var n;this.scope.enter(208);const r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),null!=(n=t.decorators)&&n.length&&this.raise(b.DecoratorStaticBlock,t)}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(b.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){if(!n&&!t.computed){const e=t.key;"constructor"!==e.name&&"constructor"!==e.value||this.raise(b.ConstructorClassField,e)}const r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,o){e.body.push(this.parseMethod(t,n,r,i,o,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,r){const i=this.parseMethod(t,n,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);const o="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,o)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Je()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8331;if(W(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else{if(!n&&t)throw this.raise(b.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),o=i&&this.eatExportStar(e),s=o&&this.maybeParseExportNamespaceSpecifier(e),a=i&&(!s||this.eat(12)),l=r||o;if(o&&!s){if(r&&this.unexpected(),t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(e);let u;if(r&&i&&!o&&!c&&this.unexpected(null,5),s&&a&&this.unexpected(null,98),l||c){if(u=!1,t)throw this.raise(b.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else u=this.maybeParseExportDeclaration(e);if(l||c||u){var p;const n=e;if(this.checkExport(n,!0,!1,!!n.source),"ClassDeclaration"===(null==(p=n.declaration)?void 0:p.type))this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.finishNode(n,"ExportNamedDeclaration")}if(this.eat(65)){const n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.finishNode(n,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);const n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);const t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(b.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(W(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const{type:e}=this.lookahead();if(W(e)&&98!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),n=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||W(this.state.type)&&n)return!0;if(this.match(65)&&n){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){var i;if(t)if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var o;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(o=t.extra)&&o.parenthesized||this.raise(b.ExportDefaultFromAsIdentifier,t)}}else if(null!=(i=e.specifiers)&&i.length)for(const t of e.specifiers){const{exported:e}=t,n="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(b.ExportBindingIsString,t,{localName:e.value,exportName:n}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){const t=e.declaration.id;if(!t)throw new Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if("VariableDeclaration"===e.declaration.type)for(const t of e.declaration.declarations)this.checkDeclaration(t.id)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(b.DuplicateDefaultExport,e):this.raise(b.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const r=this.isContextual(130),i=this.match(133),o=this.startNode();o.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(o,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=function(e){const{type:t,start:n,end:r,loc:i,range:o,extra:s}=e;if("Placeholder"===t)return function(e){return ot(e)}(e);const a=Object.create(it);return a.type=t,a.start=n,a.end=r,a.loc=i,a.range=o,void 0!==e.raw?a.raw=e.raw:a.extra=s,a.value=e.value,a}(e.local):e.exported||(e.exported=ot(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const e=this.parseStringLiteral(this.state.value),t=e.value.match(Ft);return t&&this.raise(b.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((e=>{let{key:t,value:n}=e;return"json"===n.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)}))}checkImportReflection(e){const{specifiers:t}=e,n=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==n&&this.raise(b.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==n&&this.raise(b.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;"ImportDefaultSpecifier"!==n&&this.raise(b.ImportReflectionNotBinding,t[0].loc.start),(null==(r=e.assertions)?void 0:r.length)>0&&this.raise(b.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find((e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==e&&this.raise(b.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,n,r){t||("module"===n?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===n?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===n?(this.expectPlugin("deferredImportEvaluation",r),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const n=this.parseIdentifier(!0),{type:r}=this.state;return(K(r)?98!==r||102===this.lookaheadCharCode():12!==r)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(e,t,n.name,n.loc.start),null):(this.applyImportPhase(e,t,null),n)}isPrecedingIdImportPhase(e){const{type:t}=this.state;return W(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8201;return this.checkLVal(e.local,{in:{type:t},binding:n}),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(b.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(133)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),"type"!==n.key.name&&this.raise(b.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(b.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t,n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?t=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),t=this.parseImportAttributes()),n=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(b.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),t=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))t=[];else{if(!this.hasPlugin("moduleAttributes"))return;t=[]}!n&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}return!!K(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(b.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const n=this.startNode(),r=this.match(133),i=this.isContextual(130);n.imported=this.parseModuleExportName();const o=this.parseImportSpecifier(n,r,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(o)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:n}=e;if(t)throw this.raise(b.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||(e.local=ot(n))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class $t extends Vt{constructor(e,t){super(e=function(e){if(null==e)return Object.assign({},Lt);if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");const t={};for(const r of Object.keys(Lt)){var n;t[r]=null!=(n=e[r])?n:Lt[r]}return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=function(e){const t=new Map;for(const n of e){const[e,r]=Array.isArray(n)?n:[n,{}];t.has(e)||t.set(e,r||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return ve}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}}const Wt=function(e){const t={};for(const n of Object.keys(e))t[n]=Z(e[n]);return t}($);function Kt(e,t){let n=$t;return null!=e&&e.plugins&&(function(e){if(Ct(e,"decorators")){if(Ct(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=kt(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=kt(e,"decorators","allowCallParenthesized");if(null!=n&&"boolean"!=typeof n)throw new Error("'allowCallParenthesized' must be a boolean.")}if(Ct(e,"flow")&&Ct(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Ct(e,"placeholders")&&Ct(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Ct(e,"pipelineOperator")){const t=kt(e,"pipelineOperator","proposal");if(!It.includes(t)){const e=It.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}const n=Ct(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(Ct(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Ct(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const t=kt(e,"pipelineOperator","topicToken");if(!jt.includes(t)){const e=jt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&n)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&n)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Ct(e,"moduleAttributes")){if(Ct(e,"importAssertions")||Ct(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==kt(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Ct(e,"importAssertions")&&Ct(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(Ct(e,"recordAndTuple")&&null!=kt(e,"recordAndTuple","syntaxType")&&!Nt.includes(kt(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Nt.map((e=>`'${e}'`)).join(", "));if(Ct(e,"asyncDoExpressions")&&!Ct(e,"doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(Ct(e,"optionalChainingAssign")&&"2023-07"!==kt(e,"optionalChainingAssign","version"))throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(e.plugins),n=function(e){const t=Mt.filter((t=>Ct(e,t))),n=t.join("/");let r=zt[n];if(!r){r=$t;for(const e of t)r=Dt[e](r);zt[n]=r}return r}(e.plugins)),new n(e,t)}const zt={};t.parse=function(e,t){var n;if("unambiguous"!==(null==(n=t)?void 0:n.sourceType))return Kt(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const n=Kt(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",Kt(t,e).parse()}catch(e){}else r.program.sourceType="script";return r}catch(n){try{return t.sourceType="script",Kt(t,e).parse()}catch(e){}throw n}},t.parseExpression=function(e,t){const n=Kt(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()},t.tokTypes=Wt},(e,t,n)=>{var r;n(12);var i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new s},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,p=n(230)(),f=n(231)(),d=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),h={},m="undefined"!=typeof Uint8Array&&d?d(Uint8Array):r,y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p&&d?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&d?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&d?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&d?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&d?d(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(d)try{null.error}catch(e){var g=d(d(e));y["%Error.prototype%"]=g}var v=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&d&&(n=d(i.prototype))}return y[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=n(71),E=n(233),x=_.call(Function.call,Array.prototype.concat),S=_.call(Function.apply,Array.prototype.splice),w=_.call(Function.call,String.prototype.replace),T=_.call(Function.call,String.prototype.slice),A=_.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,C=function(e,t){var n,r=e;if(E(b,r)&&(r="%"+(n=b[r])[0]+"%"),E(y,r)){var o=y[r];if(o===h&&(o=v(r)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=T(e,0,1),n=T(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return w(e,P,(function(e,t,n,i){r[r.length]=n?w(i,O,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=C("%"+r+"%",t),a=o.name,c=o.value,u=!1,p=o.alias;p&&(r=p[0],S(n,x([0,1],p)));for(var f=1,d=!0;f<n.length;f+=1){var h=n[f],m=T(h,0,1),g=T(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&d||(u=!0),E(y,a="%"+(r+="."+h)+"%"))c=y[a];else if(null!=c){if(!(h in c)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&f+1>=n.length){var v=l(c,h);c=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[h]}else d=E(c,h),c=c[h];d&&!u&&(y[a]=c)}}return c}},(e,t,n)=>{const r=n(34),i=n(47),o=n(3),s=n(128),a=n(30),l=n(253),c=n(254),u=n(255),p=n(256),f=n(257),d=n(258),h=n(259),m=n(260),y=n(7),g=n(261),v=n(262),b=n(76),_=n(263),E=n(264),x=n(49),S=n(77),w=n(129),T=n(130),A=n(78),P=n(79),O=n(131),C=n(265),k=n(50),I=n(8),j=n(51),N=n(268),D=n(269),M=n(270),L=n(271),R=n(272),q=n(80),B=n(273),F=n(274),U=n(275),V=n(276),$=n(277);e.exports={parse:a,valid:l,clean:c,inc:u,diff:p,major:f,minor:d,patch:h,prerelease:m,compare:y,rcompare:g,compareLoose:v,compareBuild:b,sort:_,rsort:E,gt:x,lt:S,eq:w,neq:T,gte:A,lte:P,cmp:O,coerce:C,Comparator:k,Range:I,satisfies:j,toComparators:N,maxSatisfying:D,minSatisfying:M,minVersion:L,validRange:R,outside:q,gtr:B,ltr:F,intersects:U,simplifyRange:V,subset:$,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},(e,t,n)=>{let r,i,o,s,{isClean:a,my:l}=n(145),c=n(52),u=n(56),p=n(53);function f(e){return e.map((e=>(e.nodes&&(e.nodes=f(e.nodes)),delete e.source,e)))}function d(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)d(t)}class h extends p{append(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e[t](...r.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)))}:"every"===t||"some"===t?n=>e[t]((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return n(e.toProxy(),...r)})):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=f(r(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new c(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new u(e)]}return e.map((e=>(e[l]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&d(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}h.registerParse=e=>{r=e},h.registerRule=e=>{i=e},h.registerAtRule=e=>{o=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},(e,t,n)=>{var r=n(17);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o,s,a=n(227).codes,l=a.ERR_AMBIGUOUS_ARGUMENT,c=a.ERR_INVALID_ARG_TYPE,u=a.ERR_INVALID_ARG_VALUE,p=a.ERR_INVALID_RETURN_VALUE,f=a.ERR_MISSING_ARGS,d=n(241),h=n(32).inspect,m=n(32).types,y=m.isPromise,g=m.isRegExp,v=n(242)(),b=n(74)(),_=n(38)("RegExp.prototype.test");function E(){var e=n(245);o=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var x=!1,S=e.exports=P,w={};function T(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function A(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new d({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[P,t.length].concat(t))}S.fail=function e(t,n,i,o,s){var a,l=arguments.length;if(0===l?a="Failed":1===l?(i=t,t=void 0):(!1===x&&(x=!0,(r.emitWarning?r.emitWarning:void 0)("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===l&&(o="!=")),i instanceof Error)throw i;var c={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==i&&(c.message=i);var u=new d(c);throw a&&(u.message=a,u.generatedMessage=!0),u},S.AssertionError=d,S.ok=P,S.equal=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");t!=n&&T({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},S.notEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");t==n&&T({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},S.deepEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===o&&E(),o(t,n)||T({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},S.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===o&&E(),o(t,n)&&T({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},S.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===o&&E(),s(t,n)||T({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},S.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===o&&E(),s(t,n)&&T({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},S.strictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");b(t,n)||T({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},S.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");b(t,n)&&T({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var O=function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&g(t[e])&&_(t[e],r[e])?i[e]=r[e]:i[e]=t[e])}))}));function C(e,t,n,r){if("function"!=typeof t){if(g(t))return _(t,e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var a=new d({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw a.operator=r.name,a}var l=Object.keys(t);if(t instanceof Error)l.push("name","message");else if(0===l.length)throw new u("error",t,"may not be an empty object");return void 0===o&&E(),l.forEach((function(i){"string"==typeof e[i]&&g(t[i])&&_(t[i],e[i])||function(e,t,n,r,i,o){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new O(e,i),l=new O(t,i,e),c=new d({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}T({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}(e,t,i,n,l,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function k(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return w}function I(e){return y(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function j(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!I(t=e()))throw new p("instance of Promise","promiseFn",t)}else{if(!I(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return w})).catch((function(e){return e}))}))}function N(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(t===w){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var s="rejects"===e.name?"rejection":"exception";T({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(s).concat(o),stackStartFn:e})}if(n&&!C(t,n,r,e))throw t}function D(e,t,n,r){if(t!==w){if("string"==typeof n&&(r=n,n=void 0),!n||C(t,n)){var i=r?": ".concat(r):".",o="doesNotReject"===e.name?"rejection":"exception";T({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function M(e,t,n,r,o){if(!g(t))throw new c("regexp","RegExp",t);var s="match"===o;if("string"!=typeof e||_(t,e)!==s){if(n instanceof Error)throw n;var a=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(h(e),")"):(s?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(h(t),". Input:\n\n").concat(h(e),"\n"));var l=new d({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw l.generatedMessage=a,l}}function L(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[L,t.length].concat(t))}S.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];N.apply(void 0,[e,k(t)].concat(r))},S.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return j(t).then((function(t){return N.apply(void 0,[e,t].concat(r))}))},S.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];D.apply(void 0,[e,k(t)].concat(r))},S.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return j(t).then((function(t){return D.apply(void 0,[e,t].concat(r))}))},S.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=h(t);var r=new d({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"==typeof o){var s=o.split("\n");s.shift();for(var a=r.stack.split("\n"),l=0;l<s.length;l++){var c=a.indexOf(s[l]);if(-1!==c){a=a.slice(0,c);break}}r.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw r}},S.match=function e(t,n,r){M(t,n,r,e,"match")},S.doesNotMatch=function e(t,n,r){M(t,n,r,e,"doesNotMatch")},S.strict=v(L,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.NOT_LOCAL_BINDING=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BLOCK_SCOPED_SYMBOL=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const n=t.LOGICAL_OPERATORS=["||","&&","??"],r=(t.UPDATE_OPERATORS=["++","--"],t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="]),i=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],o=t.COMPARISON_BINARY_OPERATORS=[...i,"in","instanceof"],s=t.BOOLEAN_BINARY_OPERATORS=[...o,...r],a=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...a,...s,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...a.map((e=>e+"=")),...n.map((e=>e+"="))],t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),c=t.NUMBER_UNARY_OPERATORS=["+","-","~"],u=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...c,...u],t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return l(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],arguments.length>2&&void 0!==arguments[2]&&arguments[2],new Map)};var r=n(9),i=n(2);const o=Function.call.bind(Object.prototype.hasOwnProperty);function s(e,t,n,r){return e&&"string"==typeof e.type?l(e,t,n,r):e}function a(e,t,n,r){return Array.isArray(e)?e.map((e=>s(e,t,n,r))):s(e,t,n,r)}function l(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;if(!e)return e;const{type:l}=e,u={type:e.type};if((0,i.isIdentifier)(e))u.name=e.name,o(e,"optional")&&"boolean"==typeof e.optional&&(u.optional=e.optional),o(e,"typeAnnotation")&&(u.typeAnnotation=t?a(e.typeAnnotation,!0,n,s):e.typeAnnotation);else{if(!o(r.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const p of Object.keys(r.NODE_FIELDS[l]))o(e,p)&&(u[p]=t?(0,i.isFile)(e)&&"comments"===p?c(e.comments,t,n,s):a(e[p],!0,n,s):e[p])}return o(e,"loc")&&(u.loc=n?null:e.loc),o(e,"leadingComments")&&(u.leadingComments=c(e.leadingComments,t,n,s)),o(e,"innerComments")&&(u.innerComments=c(e.innerComments,t,n,s)),o(e,"trailingComments")&&(u.trailingComments=c(e.trailingComments,t,n,s)),o(e,"extra")&&(u.extra=Object.assign({},e.extra)),u}function c(e,t,n,r){return e&&t?e.map((e=>{const t=r.get(e);if(t)return t;const{type:i,value:o,loc:s}=e,a={type:i,value:o,loc:s};return n&&(a.loc=null),r.set(e,a),a})):e}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var r=n(162),i=n(61),o=n(14),s=n(183),a=n(0),l=a,c=n(35),u=n(101),p=n(423),f=n(424),d=n(427),h=n(430),m=n(431),y=n(436),g=n(437),v=n(438),b=n(440),_=n(442),E=n(443),x=n(163);const{validate:S}=a,w=i("babel"),T=t.REMOVED=1,A=t.SHOULD_STOP=2,P=t.SHOULD_SKIP=4;class O{constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}static get(e){let{hub:t,parentPath:n,parent:r,container:i,listKey:o,key:s}=e;if(!t&&n&&(t=n.hub),!r)throw new Error("To get a node path the parent needs to exist");const a=i[s],l=c.getOrCreateCachedPaths(t,r);let u=l.get(a);return u||(u=new O(t,r),a&&l.set(a,u)),u.setup(n,i,o,s),u}getScope(e){return this.isScope()?new s.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let n=this.data[e];return void 0===n&&void 0!==t&&(n=this.data[e]=t),n}hasNode(){return null!=this.node}buildCodeFrameError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:SyntaxError;return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,o.default)(this.node,e,this.scope,t,this)}set(e,t){S(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`${t.listKey}[${n}]`),e.unshift(n)}while(t=t.parentPath);return e.join(".")}debug(e){w.enabled&&w(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,u.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(this._traverseFlags&P)}set shouldSkip(e){e?this._traverseFlags|=P:this._traverseFlags&=~P}get shouldStop(){return!!(this._traverseFlags&A)}set shouldStop(e){e?this._traverseFlags|=A:this._traverseFlags&=~A}get removed(){return!!(this._traverseFlags&T)}set removed(e){e?this._traverseFlags|=T:this._traverseFlags&=~T}}Object.assign(O.prototype,p,f,d,h,m,y,g,v,b,_,E),O.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo;for(const e of l.TYPES){const t=`is${e}`,n=l[t];O.prototype[t]=function(e){return n(this.node,e)},O.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(O.prototype,x);for(const e of Object.keys(r))"_"!==e[0]&&(l.TYPES.includes(e)||l.TYPES.push(e));t.default=O},(e,t,n)=>{var r=n(19),i=n(63),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},(e,t,n)=>{const r=n(3);e.exports=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},(e,t,n)=>{n(12);const r=n(417),i=n(418),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.a=l,t.b=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=a(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?a(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return u(e),a(e<0?0:0|h(e))}function f(e){const t=e.length<0?0:0|h(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function h(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return r?-1:z(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(c(e,o+r)!==c(t,r)){n=!1;break}if(n)return o}return-1}function _(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(X(r))return s;e[n+s]=r}return s}function E(e,t,n,r){return G(z(t,e.length-n),e,n,r)}function x(e,t,n,r){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return G(H(t),e,n,r)}function w(e,t,n,r){return G(function(e,t){let n,r,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!l.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},l.allocUnsafe=function(e){return p(e)},l.allocUnsafeSlow=function(e){return p(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Q(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):y.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.b;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),c=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<a;++e)if(c[e]!==u[e]){o=c[e],s=u[e];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function C(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function k(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=Y[e[r]];return i}function I(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r,i){V(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function M(e,t,n,r,i){V(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=J((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=J((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=J((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=J((function(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=J((function(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};const B={};function F(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function U(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function V(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,i,o)}function $(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw $(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function z(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const Y=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},(e,t,n)=>{var r=n(17),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<i;a=r[++n])y(a)||!E(a)?s+=" "+a:s+=" "+l(a);return s},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation,i=!0}return e.apply(this,arguments)}};var s={},a=/^$/;function l(e,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),p(r,e,r.depth)}function c(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function u(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&w(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=p(e,i,r)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),S(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(w(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return f(n)}var c,u="",E=!1,T=["{","}"];return h(n)&&(E=!0,T=["[","]"]),w(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(u=" "+RegExp.prototype.toString.call(n)),x(n)&&(u=" "+Date.prototype.toUTCString.call(n)),S(n)&&(u=" "+f(n)),0!==s.length||E&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=E?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)A(t,String(s))?o.push(d(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,n,r,i,!0))})),o}(e,n,r,a,s):s.map((function(t){return d(e,n,r,a,t,E)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,T)):T[0]+u+T[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),A(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function _(e){return E(e)&&"[object RegExp]"===T(e)}function E(e){return"object"==typeof e&&null!==e}function x(e){return E(e)&&"[object Date]"===T(e)}function S(e){return E(e)&&("[object Error]"===T(e)||e instanceof Error)}function w(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.debuglog=function(e){return e=e.toUpperCase(),s[e]||(a.test(e)?(r.pid,s[e]=function(){t.format.apply(t,arguments)}):s[e]=function(){}),s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(228),t.isArray=h,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=x,t.types.isDate=x,t.isError=S,t.types.isNativeError=S,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(240),t.log=function(){},t.inherits=n(158),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function O(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),P&&Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=P,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){r.nextTick(s.bind(null,null,e))}),(function(e){r.nextTick(O.bind(null,e,s))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},(e,t)=>{function n(e){const{context:t,node:n}=e;if(n.computed&&t.maybeQueue(e.get("key")),n.decorators)for(const n of e.get("decorators"))t.maybeQueue(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.requeueComputedKeyAndDecorators=n,t.skipAllButComputedKey=function(e){e.skip(),e.node.computed&&e.context.maybeQueue(e.get("key"))};var r={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&n(e))},Property(e){e.isObjectProperty()||(e.skip(),n(e))}};t.default=r},(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(47),s=n(48),a=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.t={};let p=0;const f="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",o],[f,i]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of d)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=p++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,n?"g":void 0),l[i]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),h("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${f}+`),h("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h("FULL",`^${c[u.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h("LOOSE",`^${c[u.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),h("COERCERTL",c[u.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){i(),o()},t.clearPath=i,t.clearScope=o,t.getCachedPaths=function(e,t){var r;return null==(r=n.get(s))?void 0:r.get(t)},t.getOrCreateCachedPaths=function(e,t){let r=n.get(s);r||n.set(s,r=new WeakMap);let i=r.get(t);return i||r.set(t,i=new Map),i},t.scope=t.path=void 0;let n=t.path=new WeakMap,r=t.scope=new WeakMap;function i(){t.path=n=new WeakMap}function o(){t.scope=r=new WeakMap}const s=Object.freeze({})},(e,t,n)=>{var r=n(17);Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=u,t.default=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!l){l=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";r.emitWarning?r.emitWarning(e,"DeprecationWarning"):new Error(e).name="DeprecationWarning"}return u(e,{start:{column:n=Math.max(n,0),line:t}},i)};var i=n(428),o=function(e){if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s(!0);if(t&&t.has(e))return t.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(224));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}let a,l=!1;const c=/\r\n|[\n\r\u2028\u2029]/;function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(n.highlightCode||n.forceColor)&&(0,i.shouldHighlight)(n),s=n.forceColor?(null!=a||(a=new o.default.constructor({enabled:!0,level:1})),a):o.default,l=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),u=(e,t)=>r?e(t):t,p=e.split(c),{start:f,end:d,markerLines:h}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},a=r.line,l=r.column,c=i.line,u=i.column;let p=Math.max(a-(o+1),0),f=Math.min(t.length,c+s);-1===a&&(p=0),-1===c&&(f=t.length);const d=c-a,h={};if(d)for(let e=0;e<=d;e++){const n=e+a;if(l)if(0===e){const e=t[n-1].length;h[n]=[l,e-l+1]}else if(e===d)h[n]=[0,u];else{const r=t[n-e].length;h[n]=[0,r]}else h[n]=!0}else h[a]=l===u?!l||[l,0]:[l,u-l];return{start:p,end:f,markerLines:h}}(t,p,n),m=t.start&&"number"==typeof t.start.column,y=String(d).length;let g=(r?(0,i.default)(e,n):e).split(c,d).slice(f,d).map(((e,t)=>{const r=f+1+t,i=` ${` ${r}`.slice(-y)} |`,o=h[r],s=!h[r+1];if(o){let t="";if(Array.isArray(o)){const r=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),a=o[1]||1;t=["\n ",u(l.gutter,i.replace(/\d/g," "))," ",r,u(l.marker,"^").repeat(a)].join(""),s&&n.message&&(t+=" "+u(l.message,n.message))}return[u(l.marker,">"),u(l.gutter,i),e.length>0?` ${e}`:"",t].join("")}return` ${u(l.gutter,i)}${e.length>0?` ${e}`:""}`})).join("\n");return n.message&&!m&&(g=`${" ".repeat(y+1)}${n.message}\n${g}`),r?s.reset(g):g}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var r=n(432),i=n(433);const o=(0,i.default)(r.smart);t.smart=o;const s=(0,i.default)(r.statement);t.statement=s;const a=(0,i.default)(r.statements);t.statements=a;const l=(0,i.default)(r.expression);t.expression=l;const c=(0,i.default)(r.program);t.program=c;var u=Object.assign(o.bind(void 0),{smart:o,statement:s,statements:a,expression:l,program:c,ast:o.ast});t.default=u},(e,t,n)=>{var r=n(22),i=n(41),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.beginHiddenCallStack=function(e){return i?Object.defineProperty((function(){return c(),e(...arguments)}),"name",{value:s}):e},t.endHiddenCallStack=function(e){return i?Object.defineProperty((function(){return e(...arguments)}),"name",{value:o}):e},t.expectedError=function(e){if(i)return a.add(e),e},t.injectVirtualStackFrame=function(e,t){if(!i)return;let n=l.get(e);return n||l.set(e,n=[]),n.push(function(e){return Object.create({isNative:()=>!1,isConstructor:()=>!1,isToplevel:()=>!0,getFileName:()=>e,getLineNumber:()=>{},getColumnNumber:()=>{},getFunctionName:()=>{},getMethodName:()=>{},getTypeName:()=>{},toString:()=>e})}(t)),e};const r=Function.call.bind(Error.prototype.toString),i=!!Error.captureStackTrace&&!0===(null==(n=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))?void 0:n.writable),o="startHiding - secret - don't use this - v1",s="stopHiding - secret - don't use this - v1",a=new WeakSet,l=new WeakMap;function c(){c=()=>{};const{prepareStackTrace:e=u}=Error;Error.stackTraceLimit&&(Error.stackTraceLimit=Math.max(Error.stackTraceLimit,50)),Error.prepareStackTrace=function(t,n){let r=[],i=a.has(t)?"hiding":"unknown";for(let e=0;e<n.length;e++){const a=n[e].getFunctionName();if(a===o)i="hiding";else if(a===s){if("hiding"===i)i="showing",l.has(t)&&r.unshift(...l.get(t));else if("unknown"===i){r=n;break}}else"hiding"!==i&&r.push(n[e])}return e(t,r)}}function u(e,t){return 0===t.length?r(e):`${r(e)}\n at ${t.join("\n at ")}`}},(e,t,n)=>{let r,i,o=n(24);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s,o.registerRoot(s)},(e,t,n)=>{var r=n(71),i=n(22),o=n(234),s=i("%TypeError%"),a=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(l,a),u=i("%Object.defineProperty%",!0),p=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(r,l,arguments);return o(t,1+p(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(r,a,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return!!t&&((0,i.default)(t.type,e)?void 0===n||(0,r.default)(t,n):!n&&"Placeholder"===t.type&&e in s.FLIPPED_ALIAS_KEYS&&(0,o.default)(t.expectedNode,e))};var r=n(96),i=n(98),o=n(168),s=n(9)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!(0,r.isKeyword)(e)&&!(0,r.isStrictReservedWord)(e,!0))&&(0,r.isIdentifierName)(e)};var r=n(59)},(e,t,n)=>{var r=n(5),i=n(15),o=n(102),s=n(204),a=n(11),l=r.RegExp,c=l.prototype;i&&a((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(o.hasIndices="d"),o)i(s,o[s]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==r||n!==r}))&&o(c,"flags",{configurable:!0,get:s})},(e,t,n)=>{var r=n(5),i=n(116),o=n(29),s=n(67),a=n(113),l=n(112),c=r.Symbol,u=i("wks"),p=l?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return o(u,e)||(u[e]=a&&o(c,e)?c[e]:p("Symbol."+e)),u[e]}},(e,t,n)=>{var r=n(123),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=n(121),l=n(72)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?a(e,t,n,!0):a(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var a=0;a<o.length;a+=1)c(e,o[a],t[o[a]],n[o[a]])};u.supportsDescriptors=!!l,e.exports=u},e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},(e,t,n)=>{var r=n(17);const i=("object"==typeof r&&r.env,()=>{});e.exports=i},(e,t,n)=>{const r=n(7);e.exports=(e,t,n)=>r(e,t,n)>0},(e,t,n)=>{const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=i;const o=n(75),{safeRe:s,t:a}=n(34),l=n(131),c=n(48),u=n(3),p=n(8)},(e,t,n)=>{const r=n(8);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},(e,t,n)=>{let r=n(53);class i extends r{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},(e,t,n)=>{let{isClean:r,my:i}=n(145),o=n(87),s=n(146),a=n(54);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>l(e,n))):("object"===o&&null!==i&&(i=l(i)),n[r]=i)}return n}class c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.raws={},this[r]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=l(this);for(let n in e)t[n]=e[n];return t}cloneAfter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new o(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new s).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){let r=this,i=!1;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t)e===this?i=!0:i?(this.parent.insertAfter(r,e),r=e):this.parent.insertBefore(r,e);i||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}e.exports=c,c.default=c},(e,t,n)=>{let r=n(146);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},(e,t,n)=>{let{SourceMapConsumer:r,SourceMapGenerator:i}=n(149),{fileURLToPath:o,pathToFileURL:s}=n(318),{isAbsolute:a,resolve:l}=n(150),{nanoid:c}=n(319),u=n(317),p=n(87),f=n(151),d=Symbol("fromOffsetCache"),h=Boolean(r&&i),m=Boolean(l&&a);class y{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||a(t.from)?this.file=t.from:this.file=l(t.from)),m&&h){let e=new f(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n){let r,i,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);i=e.line,o=e.col}else i=r.line,o=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,i,o);return r=l?new p(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,a.plugin):new p(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:o,line:i},this.css,this.file,a.plugin),r.input={column:n,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(s&&(r.input.url=s(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,n;if(this[d])n=this[d];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[d]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(i=c.originalPositionFor({column:r,line:n})),l=a(u.source)?s(u.source):new URL(u.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let p={column:u.column,endColumn:i&&i.column,endLine:i&&i.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");p.file=o(l)}let f=c.sourceContentFor(u.source);return f&&(p.source=f),p}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=y,y.default=y,u&&u.registerInput&&u.registerInput(y)},(e,t,n)=>{let r=n(53);class i extends r{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.explode=f,t.isExplodedVisitor=p,t.merge=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const r={};for(let i=0;i<e.length;i++){const o=f(e[i]),s=t[i];let a=o;(s||n)&&(a=m(a,s,n)),b(r,a);for(const e of Object.keys(o)){if(v(e))continue;let t=o[e];(s||n)&&(t=m(t,s,n)),b(r[e]||(r[e]={}),t)}}return r},t.verify=d;var r=n(162),i=n(163),o=n(0);const{DEPRECATED_KEYS:s,DEPRECATED_ALIASES:a,FLIPPED_ALIAS_KEYS:l,TYPES:c,__internal__deprecationWarning:u}=o;function p(e){return null==e?void 0:e._exploded}function f(e){if(p(e))return e;e._exploded=!0;for(const t of Object.keys(e)){if(v(t))continue;const n=t.split("|");if(1===n.length)continue;const r=e[t];delete e[t];for(const t of n)e[t]=r}d(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(v(t))continue;const n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),y(e);for(const t of Object.keys(e)){if(v(t))continue;if(!(t in r))continue;const n=e[t];for(const e of Object.keys(n))n[e]=g(t,n[e]);delete e[t];const i=r[t];if(null!==i)for(const t of i)e[t]?b(e[t],n):e[t]=n;else b(e,n)}for(const t of Object.keys(e)){if(v(t))continue;let n=l[t];if(t in s){const e=s[t];u(t,e,"Visitor "),n=[e]}else if(t in a){const e=a[t];u(t,e,"Visitor "),n=l[e]}if(!n)continue;const r=e[t];delete e[t];for(const t of n){const n=e[t];n?b(n,r):e[t]=Object.assign({},r)}}for(const t of Object.keys(e))v(t)||y(e[t]);return e}function d(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const t of Object.keys(e)){if("enter"!==t&&"exit"!==t||h(t,e[t]),v(t))continue;if(c.indexOf(t)<0)throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type`);const n=e[t];if("object"==typeof n)for(const e of Object.keys(n)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`);h(`${t}.${e}`,n[e])}}e._verified=!0}}function h(e,t){const n=[].concat(t);for(const t of n)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function m(e,t,n){const r={};for(const i of["enter","exit"]){let o=e[i];Array.isArray(o)&&(o=o.map((function(e){let r=e;return t&&(r=function(n){e.call(t,n,t)}),n&&(r=n(null==t?void 0:t.key,i,r)),r!==e&&(r.toString=()=>e.toString()),r})),r[i]=o)}return r}function y(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function g(e,t){const n=i[`is${e}`],r=function(e){if(n.call(e))return t.apply(this,arguments)};return r.toString=()=>t.toString(),r}function v(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e}function b(e,t){for(const n of["enter","exit"])t[n]&&(e[n]=[].concat(e[n]||[],t[n]))}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(n.has(e))return;n.add(e);const{internal:r,trace:i}=function(){const{stackTraceLimit:e,prepareStackTrace:t}=Error;let n;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){n=t},(new Error).stack,Error.stackTraceLimit=e,Error.prepareStackTrace=t,!n)return{internal:!1,trace:""};const r=n.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(r[1].getFileName()),trace:r.map((e=>` at ${e}`)).join("\n")}}()};const n=new Set},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var r=n(353),i=n(354)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(2);function i(e,t,n,o){const s=[].concat(e),a=Object.create(null);for(;s.length;){const e=s.shift();if(!e)continue;if(o&&((0,r.isAssignmentExpression)(e)||(0,r.isUnaryExpression)(e)))continue;const l=i.keys[e.type];if((0,r.isIdentifier)(e))t?(a[e.name]=a[e.name]||[]).push(e):a[e.name]=e;else if(!(0,r.isExportDeclaration)(e)||(0,r.isExportAllDeclaration)(e)){if(n){if((0,r.isFunctionDeclaration)(e)){s.push(e.id);continue}if((0,r.isFunctionExpression)(e))continue}if(l)for(let t=0;t<l.length;t++){const n=e[l[t]];n&&(Array.isArray(n)?s.push(...n):s.push(n))}}else(0,r.isDeclaration)(e.declaration)&&s.push(e.declaration)}return a}i.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},e=>{e.exports=function(){return function(){}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(e.isExportDefaultDeclaration()){const t=e.get("declaration"),n=t.isFunctionDeclaration()||t.isClassDeclaration(),r=t.isFunctionExpression()||t.isClassExpression(),u=t.isScope()?t.scope.parent:t.scope;let p=t.node.id,f=!1;p?r&&u.hasBinding(p.name)&&(f=!0,p=u.generateUidIdentifier(p.name)):(f=!0,p=u.generateUidIdentifier("default"),(n||r)&&(t.node.id=i(p)));const d=n?t.node:l("var",[c(i(p),t.node)]),h=o(null,[s(i(p),a("default"))]);return e.insertAfter(h),e.replaceWith(d),f&&u.registerDeclaration(e),e}if(e.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.get("declaration"),n=t.getOuterBindingIdentifiers(),r=Object.keys(n).map((e=>s(a(e),a(e)))),u=o(null,r);return e.insertAfter(u),e.replaceWith(t.node),e};var r=n(0);const{cloneNode:i,exportNamedDeclaration:o,exportSpecifier:s,identifier:a,variableDeclaration:l,variableDeclarator:c}=r},(e,t,n)=>{var r=n(187),i=Object;e.exports=function(e){return i(r(e))}},(e,t,n)=>{var r=n(5),i=n(106),o="__core-js_shared__",s=r[o]||i(o,{});e.exports=s},(e,t,n)=>{var r=n(20),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},(e,t,n)=>{var r=n(104),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},(e,t,n)=>{var r=n(19),i=0,o=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildDynamicImport",{enumerable:!0,get:function(){return u.buildDynamicImport}}),t.buildNamespaceInitStatements=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.wrapReference;var o;const s=[],a=v(t.name);for(const e of t.importsNamespace)e!==t.name&&s.push(i.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:h(a)}));const l=null!=(o=r(a,t.wrap))?o:a;n&&s.push(...A(e,t,!0,r));for(const n of t.reexportNamespace)s.push((i.types.isIdentifier(l)?i.template.statement`EXPORTS.NAME = NAMESPACE;`:i.template.statement`
|
|
2
|
+
import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__ from"element-plus/es/utils/index.mjs";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_constants_index_mjs_c9f35684__ from"element-plus/es/constants/index.mjs";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_components_icon_index_mjs_cc6cca25__ from"element-plus/es/components/icon/index.mjs";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_hooks_index_mjs_8115c98f__ from"element-plus/es/hooks/index.mjs";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_locale_lang_zh_cn_0728a483__ from"element-plus/es/locale/lang/zh-cn";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_es_locale_lang_en_79630139__ from"element-plus/es/locale/lang/en";import*as __WEBPACK_EXTERNAL_MODULE__element_plus_icons_vue_349f2d5d__ from"@element-plus/icons-vue";import*as __WEBPACK_EXTERNAL_MODULE_element_plus_be66d3b8__ from"element-plus";import*as __WEBPACK_EXTERNAL_MODULE_vue__ from"vue";import*as __WEBPACK_EXTERNAL_MODULE_vue_router_6389ad97__ from"vue-router";var __webpack_modules__={89932:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(53474),_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(53811),vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(75286),core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(76918),core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(23288),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(26099),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(38781),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(86226),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(56255),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(11393),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(73363),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(64007),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9__),_utils_index_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(17427),_hooks_index_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(90722),_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(44413),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(19022),vue_router__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(11292),_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(44026),_components_loadingComponent_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(30604);function _isSlot(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,vue__WEBPACK_IMPORTED_MODULE_0__.isVNode)(e)}const __WEBPACK_DEFAULT_EXPORT__={name:"AnalysisComponent",inheritAttrs:!1,props:{config:{type:Object,default:function(){return{}}},modelValue:{default:null},component:{type:[Function,Object,String],default:null},rowScope:{type:[Object],default:function(){return null}},mode:{type:String,default:"operate"},additionConfigs:{type:Array,default:function(){return[]}}},emits:["update:modelValue"],setup:function setup(props,_ref){var _context4,emit=_ref.emit,attrs=_ref.attrs,currentAttrs=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){var e=(0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.A)({},attrs);return delete e.onClick,e})),ruleExecuter=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_ruleExecuter"),dialogReq=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_dialogReq",{}),requestTraceId=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("requestTraceId"),polyfillConfigs=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_polyfillConfigs",{}),buttonActions=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("buttonActions",{}),router=(0,vue_router__WEBPACK_IMPORTED_MODULE_14__.useRouter)(),route=(0,vue_router__WEBPACK_IMPORTED_MODULE_14__.useRoute)(),routeQuery=null==route?void 0:route.query,hireRelatMapRules=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("hireRelatMapRules"),components=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("components"),dataLoad=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("dataLoad"),rootForm=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("rootForm"),_axiosInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_axiosInstance"),confirmInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_confirmInstance"),openChildDialogInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_openChildDialogInstance"),messageCb=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_messageCb"),messageInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_messageInstance"),builtPolyfillReq=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_builtPolyfillReq"),rootValue=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("rootValue"),validate=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_validate"),lang=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("lang"),selects=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("selects"),_parentRootValue=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_parentRootValue"),_parentDynamicMapComp=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_parentDynamicMapComp");(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_lang",lang),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_rootValue",rootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"router",router),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"route",route),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_validate",validate),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_rowScope",props.rowScope),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_selects",selects),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_parentRootValue",_parentRootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"_parentDynamicMapComp",_parentDynamicMapComp);var instance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)(),appContext=null==instance?void 0:instance.appContext;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"wrapVm",instance);var refFn=function(e){(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"vm",e)},onVnodeMounted=function onVnodeMounted(e){var _props$config,_penddingRules$hireRe,_ruleExecuter$penddin,_props$config2;if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"vmIsBind",!0),props.config.onVnodeMounted&&"function"==typeof props.config.onVnodeMounted){var context={dataLoad};try{props.config.onVnodeMounted.call(context,props,e,selects)}catch(e){console.error("onVnodeMounted error,",e,props.config)}}if(props.config.onMounted){var onMounted=props.config.onMounted;if("string"==typeof onMounted)try{onMounted=eval("(function({props, e, selects}) {\n try {\n ".concat(props.config.onMounted,"\n } catch (error) {\n console.error('onMounted error===:', props, error)\n }\n })"))}catch(e){console.error("parse onMounted error===:",props,e)}"function"==typeof onMounted&&onMounted({props,e,selects})}var hireRelat=null===(_props$config=props.config)||void 0===_props$config?void 0:_props$config.hireRelat,_context,_context2;if(null!==(_penddingRules$hireRe=_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_13__.Vr[hireRelat])&&void 0!==_penddingRules$hireRe&&_penddingRules$hireRe.length&&(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5___default()(_context=_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_13__.Vr[hireRelat]).call(_context,(function(e){var t=e.rules;delete e.rules,_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6___default()((function(){_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_12__.Ay.call(e,t)}),0)})),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_13__.Vr[hireRelat]=null),null!=ruleExecuter&&null!==(_ruleExecuter$penddin=ruleExecuter.penddingRules)&&void 0!==_ruleExecuter$penddin&&null!==(_ruleExecuter$penddin=_ruleExecuter$penddin[hireRelat])&&void 0!==_ruleExecuter$penddin&&_ruleExecuter$penddin.length&&(null==ruleExecuter||_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5___default()(_context2=ruleExecuter.penddingRules[hireRelat]).call(_context2,(function(e){var t=e.rules;delete e.rules,_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6___default()((function(){null==ruleExecuter||ruleExecuter.run(e,t)}),0)})),ruleExecuter.penddingRules[hireRelat]=null),null!==(_props$config2=props.config)&&void 0!==_props$config2&&_props$config2.immediateClickEvent)var unWatch=(0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)(dataLoad,(function(e){e&&_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_6___default()((function(){executeClickEvents(),unWatch&&unWatch()}),0)}),{immediate:!0})},onVnodeUnmounted=function(){if(props.config.vmIsBind=!1,props.config.onVnodeUnmounted&&"function"==typeof props.config.onVnodeUnmounted)try{props.config.onVnodeUnmounted(props)}catch(e){console.error("onVnodeUnmounted error,",e,props.config)}},_useVmodels=(0,_hooks_index_js__WEBPACK_IMPORTED_MODULE_11__.K)(props,emit),vModelObjs=_useVmodels.vModelObjs,initVmodels=_useVmodels.initVmodels,modelValue=_useVmodels.modelValue;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(props.config,"refValue",modelValue);var fnComponentkeys=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([]),_props$component,_props$component2,_props$component3;function getFncomponentProps(){var e,t={};return _babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_5___default()(e=fnComponentkeys.value).call(e,(function(e){(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.$3)(props.config,e)&&(t[e]=props.config[e])})),t}"function"==typeof props.component?null===(_props$component=props.component())||void 0===_props$component||_props$component.then((function(e){var t,n;null!=e&&null!==(t=e.default)&&void 0!==t&&t.emits&&initVmodels(null==e||null===(n=e.default)||void 0===n?void 0:n.emits),fnComponentkeys.value=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.SK)((null==e?void 0:e.default)||e)})):null!==(_props$component2=props.component)&&void 0!==_props$component2&&_props$component2.emits&&initVmodels(null===(_props$component3=props.component)||void 0===_props$component3?void 0:_props$component3.emits);var currentComponent=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return"function"==typeof props.component?(0,vue__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent)({loader:props.component,loadingComponent:_components_loadingComponent_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_16__.A}):props.component})),parent=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("parent",null),dynamicMapComp=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("dynamicMapComp"),configLinks=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_context4=[parent]).call(_context4,(0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_18__.A)(props.additionConfigs),[props.config]);_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_8___default()(configLinks).call(configLinks,(function(e,t){var n,r;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"parent",e),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"dynamicMapComp",dynamicMapComp);var i=null!=e&&e.dynamicHireRelat?_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(n=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(r="".concat(null==e?void 0:e.dynamicHireRelat)).call(r,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.$3)(t,"rowIndex")?"[".concat(t.rowIndex,"]"):"","->")).call(n,t.metaCode||""):t.metaCode;return(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Ts)(t,"dynamicHireRelat",i),t.dynamicHireRelat&&(dynamicMapComp[t.dynamicHireRelat]=t),t})),(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)("parent",props.config);var _isH5=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_isH5"),_onClick=function(e,t){var n,r,i,o={props,dynamicMapComp,hireRelatMapRules,components,selects,rootValue:null==rootValue?void 0:rootValue.value,dataLoad,rootForm,routeQuery,appContext};null==attrs||null===(n=attrs.onClick)||void 0===n||n.call(o,e),-1!==(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Tn)(_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.UP,(null===(r=props.config)||void 0===r?void 0:r.renderby)||(null===(i=props.config)||void 0===i?void 0:i.metaType))&&executeClickEvents(t)};function executeClickEvents(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.Qd)(e)||(e={}),(0,_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_15__.bt)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.A)({},e),{},{builtPolyfillReq,components,props,requestTraceId:null==requestTraceId?void 0:requestTraceId.value,axiosInstance:null==_axiosInstance?void 0:_axiosInstance.value,polyfillConfigs,rootValue:null==rootValue?void 0:rootValue.value,confirmInstance:null==confirmInstance?void 0:confirmInstance.value,dynamicMapComp,openChildDialog:null==openChildDialogInstance?void 0:openChildDialogInstance.value,messageInstance:null==messageInstance?void 0:messageInstance.value,messageCb,buttonActions,lang:null==lang?void 0:lang.value,dialogReq,appContext}))}return(0,vue__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured)((function(e,t,n){var r,i,o,s;console.error("component render failer",(null==lang||null===(r=lang.value)||void 0===r?void 0:_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_9___default()(r).call(r,"zh"))>-1?null===(i=props.config)||void 0===i?void 0:i.metaNameZh:null===(o=props.config)||void 0===o?void 0:o.metaNameEn,null===(s=props.config)||void 0===s?void 0:s.metaCode,e,t,n)})),function(){var e,t=getFncomponentProps(),n=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.qg)({config:props.config,props,component:props.component,modelValue,selects,lang:lang.value}),r=null==n?void 0:n.onClick;return delete n.onClick,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.M9)(props.config,lang.value,n,null==_isH5?void 0:_isH5.value,{lang,rootValue,dynamicMapComp,props,messageInstance:null==messageInstance?void 0:messageInstance.value})((0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(currentComponent.value,(0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ref:refFn,onVnodeMounted,onVnodeUnmounted},currentAttrs.value,{onClick:function(e,t){_onClick(e,t),null==r||r(e)}},t,n,vModelObjs),_isSlot(e=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_10__.yo)({config:props.config}))?e:{default:function(){return[e]}}))}}}},76693:(e,t,n)=>{n.d(t,{FR:()=>u,Tl:()=>l,UU:()=>o,Wb:()=>i,_Q:()=>p,aZ:()=>s,dF:()=>c,dL:()=>a,xx:()=>r});var r="/sa-lcp/api/v1/pageConfig/queryPageConfigData",i="/sa-lcp/login",o="/sa-lcp/api/v1/sysparam/getSysParamCache",s="/sa-lcp/changePwd/refreshToken",a="/sa-lcp/api/v1/validate/dataValidRuleExecute",l="/sa-lcp/api/v1/fileopertate/findFileAndContentById",c="/gcweb/External_Mail",u="/gcweb/External_Import",p="/gcweb/External_Export"},71143:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(64007),i=n.n(r),o=(n(2892),n(75286)),s=["labelWidth"],a={slot:"label",class:"custom-label--formItem"},l={class:"custom-label-content"},c={key:0,class:"label-required"},u={class:"label-text"};const p={__name:"index",props:{messageInstance:{type:[Object,Function],default:function(){return null}},config:{type:Object,default:function(){return{}}},lang:{type:String,default:"zh"},labelWidth:[String,Number]},setup:function(e){var t=e,n=(0,o.useAttrs)(),r=(0,o.computed)((function(){var e;return"1"==t.config.labelHidden||0==t.config.labelWidth||"0"==t.config.labelWidth?"":(i()(e=t.lang).call(e,"zh")>-1?t.config.metaNameZh:t.config.metaNameEn)||""})),p=(0,o.computed)((function(){return t.config.labelPosition?t.config.labelPosition:"left"}));function f(){var e,n;null===(e=messageInstance)||void 0===e||e.text(i()(n=t.lang).call(n,"zh")>-1?t.config.hintContentZh:t.config.hintContentEn)}return function(e,i){return(0,o.openBlock)(),(0,o.createElementBlock)("cmi-form-item",(0,o.mergeProps)((0,o.unref)(n),{class:["custom-form-item-h5",[{"--required":"1"==t.config.requiredFlag,"--label-hide":!p.value,"--label-text-left":"left"===e.labelPosition,"--label-text-right":"right"===e.labelPosition},e.customClass]],labelWidth:t.labelWidth}),[(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("div",l,["1"==t.config.requiredFlag?((0,o.openBlock)(),(0,o.createElementBlock)("span",c,"*")):(0,o.createCommentVNode)("v-if",!0),(0,o.createElementVNode)("span",u,(0,o.toDisplayString)(r.value),1),"1"==t.config.hintFlag?((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:1,class:"label-tip",onClick:f},i[0]||(i[0]=[(0,o.createElementVNode)("cmi-icon-question-circle",{size:"14"},null,-1)]))):(0,o.createCommentVNode)("v-if",!0)])]),(0,o.renderSlot)(e.$slots,"default")],16,s)}}};n(38709);const f=(0,n(66262).A)(p,[["__scopeId","data-v-d2c369a2"]])},85845:(e,t,n)=>{n.d(t,{D:()=>o});var r=n(75286),i=n(24691);function o(e){var t=e.showTooltip,n=e.offset,o=e.displayValue,s=e.calcFn,a=(e.config,(0,r.ref)(!1)),l=(0,r.ref)(!1),c=(0,r.ref)(null),u=(0,r.ref)(!1),p=(0,r.ref)(null),f=(0,r.ref)(null);function d(e){return s?s(e):(0,i.fW)(e,0)}var h,m,y=(h=null,m=null,{clear:function(){h&&h(),m&&window.removeEventListener("resize",m)},calc:function(){this.clear();var e=d(p.value),t=(0,i.fW)(f.value,0-n.value);u.value=e<t,h=(0,r.watch)((function(){return o.value}),(function(o){(0,r.nextTick)((function(){t=(0,i.fW)(f.value,0-n.value),u.value=e<t}))})),m=function(){e=d(p.value),u.value=e<t},window.addEventListener("resize",m)}}),g=(0,r.computed)((function(){var e={};return t.value&&(e.onMouseenter=function(e){l.value=!0,c.value=null==e?void 0:e.target},e.onMouseleave=function(){l.value=!1,a.value||(c.value=null)}),e})),v=(0,r.computed)((function(){var e={onFocus:function(){if(a.value=!0,t.value){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];c.value=null==r||null===(e=r[0])||void 0===e?void 0:e.target}},onBlur:function(){a.value=!1,t.value&&(l.value||(c.value=null))}};return e}));return(0,r.onMounted)((function(){(0,r.watch)(t,(function(e){e&&(null==y||y.calc())}),{immediate:!0})})),(0,r.onUnmounted)((function(){null==y||y.clear()})),{isFocus:a,isEnter:l,generateTooltipWrap:function(e,n){var i=(n||{}).maintain,s=void 0!==i&&i,a=(0,r.defineComponent)(e);return s&&!t.value?(0,r.createVNode)(a,null,null):(0,r.createVNode)("div",{class:"resolver-calc-contrainer custom-error-tip-block"},[(0,r.createVNode)("span",{ref:function(e){return f.value=e},class:"resolver-calc-span"},[o.value]),u.value?(0,r.createVNode)((0,r.resolveComponent)("el-tooltip"),{placement:"top",visible:u.value&&!!c.value,content:o.value,virtualTriggering:!0,virtualRef:c.value},null):null,(0,r.createVNode)("div",(0,r.mergeProps)({class:"resolver-calc-wrap"},g.value,{ref:function(e){return p.value=e}}),[(0,r.createVNode)(a,v.value,null)])])}}}},44026:(e,t,n)=>{n.d(t,{bt:()=>$,fs:()=>q,nK:()=>D});var r=n(37891),i=n(53811),o=n(34963),s=(n(48598),n(44114),n(27495),n(71761),n(73363)),a=n.n(s),l=n(86226),c=n.n(l),u=n(64007),p=n.n(u),f=n(48079),d=n.n(f),h=n(14166),m=n.n(h),y=n(50697),g=n.n(y),v=n(71426),b=n.n(v),_=n(61240),E=n.n(_),x=n(36586),S=n.n(x),w=n(12935),T=n(76693),A=n(19022),P=n(157),O=n(17427),C=n(52644);function k(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=n;return"string"==typeof n&&(r=n.split(".")),null!==(e=a()(r).call(r,(function(e,t){return e?e[t]:null}),t))&&void 0!==e?e:""}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=t;"string"==typeof t&&(r=t.split("."));var i=e;c()(r).call(r,(function(e,t){t+1===r.length?i[e]=null!=n?n:"":(i[e]||(i[e]={}),i=i[e])}))}function j(e){return N.apply(this,arguments)}function N(){return(N=(0,o.A)((0,r.A)().mark((function e(t){var n,i,o,s,a,l,c,u,p,f,d,h,m,y,v,_,E;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=t.serviceList,i=void 0===n?[]:n,o=t.requestTraceId,s=t.axiosInstance,a=t.dialogReq,l=t.dynamicMapComp,c=t.rootValue,u=t.dynamicHireRelat,p=t.messageCb,f=t.compConfig,d=t.messageInstance,h=t.lang,m=t.beforeRequestService,y=t.afterRequestService,v=g()(l),_=b()(i).call(i,(function(e){return"1"==e.serviceType})),E=0;E<i.length;E++)D(i[E],{dynamicMapComp:l,requestTraceId:o,dialogReq:a,mixinServiceConfig:_,rootValue:c,dynamicMapCompKeys:v,dynamicHireRelat:u,axiosInstance:s,messageCb:p,compConfig:f,messageInstance:d,lang:h,beforeRequestService:m,afterRequestService:y});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e,t){return M.apply(this,arguments)}function M(){return M=(0,o.A)((0,r.A)().mark((function e(t,n){var s,a,l,c,u,p,f,d,h,m,y,g,v,b,_,x,T,A,C,j,N,D,M,B,F,U,V,$,W,K,z,H,G,Q,X,Y,J,Z,ee,te,ne,re;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.dynamicMapComp,l=n.requestTraceId,n.dialogReq,c=n.mixinServiceConfig,u=n.rootValue,p=n.dynamicMapCompKeys,f=n.dynamicHireRelat,d=n.axiosInstance,h=n.messageCb,m=n.compConfig,y=n.messageInstance,g=n.lang,v=n.beforeRequestService,b=n.afterRequestService,_=u||{},x=null,T=(0,O.Ho)({extendAttr:t.extendAttr}),A=null,C=null,((j=null==m?void 0:m.beforeRequestService)||v)&&(A=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return v&&(t=null==v?void 0:v.apply(void 0,i)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!j){e.next=12;break}return e.abrupt("return",null==j?void 0:j.apply(void 0,i));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((N=null==m?void 0:m.afterRequestService)||b)&&(C=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),i=0;i<t;i++)n[i]=o[i];return e.next=3,null==b?void 0:b.apply(void 0,n);case 3:return e.next=5,null==N?void 0:N.apply(void 0,n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),"1"==t.transactionType&&(_=L(t.inParamMappingList||[],{emptyUpdate:!0,dynamicMapComp:a,dynamicMapCompKeys:p,dynamicHireRelat:f}),x=q(t.outParamMappingList,{dynamicMapComp:a,dynamicMapCompKeys:p,dynamicHireRelat:f}),null!==(D=x)&&void 0!==D&&D.vm&&((0,w.b0)(null===(M=x.vm.page)||void 0===M?void 0:M.pageNum)||(0,w.kZ)(null===(B=x.vm.page)||void 0===B?void 0:B.pageNum)||I(_,t.pageNum||"pageNum",null===(V=x.vm.page)||void 0===V?void 0:V.pageNum),(0,w.b0)(null===(F=x.vm.page)||void 0===F?void 0:F.pageSize)||(0,w.kZ)(null===(U=x.vm.page)||void 0===U?void 0:U.pageSize)||I(_,t.pageSize||"pageSize",null===($=x.vm.page)||void 0===$?void 0:$.pageSize)),_=(0,i.A)({},_)),W=t.serviceCode,K=t.httpMethod||"post",z={aid_language:g,requestTraceId:l,pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==c?void 0:c.mainServiceCode}},(null==T?void 0:T.notDefaultParmas)&&(z={}),z=(0,i.A)((0,i.A)({},z),_),H=!0,A&&(H=A({dynamicMapComp:a,requestTraceId:l,mixinServiceConfig:c,rootValue:u,dynamicHireRelat:f,compConfig:m,service:t,reqData:z})),e.next=21,H;case 21:if(!1!==e.sent){e.next=24;break}return e.abrupt("return");case 24:return G={url:W,method:K,data:z},"get"===K.toLocaleLowerCase()&&(G.params=z,delete G.data),e.next=28,d&&d(G);case 28:if(Q=e.sent,!C){e.next=32;break}return e.next=32,C(Q,{dynamicMapComp:a,requestTraceId:l,mixinServiceConfig:c,rootValue:u,dynamicHireRelat:f,compConfig:m,service:t,reqData:z});case 32:if(X="get"===K.toLocaleLowerCase()||"1"==t.transactionType||(null==T?void 0:T.noSuccessIip),(0,P.N)(null==Q?void 0:Q.data,y,{messageCb:h,service:t,compConfig:m,noSuccessIip:X})){e.next=37;break}return e.next=36,E().reject();case 36:return e.abrupt("return");case 37:R(t.outParamMappingList,{dynamicMapComp:a,dynamicMapCompKeys:p,dynamicHireRelat:f,outResult:Q.data}),null!==(s=x)&&void 0!==s&&s.vm&&(Z=null===(Y=Q.data)||void 0===Y?void 0:Y.result,ee=t.pageTotalCount,te=/^_deep:(.+)$/,(ne=null===(J=t.pageTotalCount)||void 0===J?void 0:J.match(te))&&(Z=Q.data,ee=ne[1]),re=S()(k(Z||{},ee||"pageCount")),x.vm.page.total=re);case 39:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.emptyUpdate,r=t.dynamicMapComp,i=t.dynamicMapCompKeys,o=t.dynamicHireRelat;return a()(e).call(e,(function(e,t){var s,a=t.orignParam,l=void 0===a?"":a,c=t.destParam,u=void 0===c?"":c,f=(0,A.qK)(i,l,o);f.length>1&&console.error("search arg muti",t,f);var d=f[0],h=null==r||null===(s=r[d])||void 0===s?void 0:s.refValue;return(((0,w.b0)(h)||(0,w.kZ)(h))&&n||!(0,w.b0)(h)&&!(0,w.kZ)(h))&&I(e,-1!==(null==u?void 0:p()(u).call(u,"->"))?(null==u?void 0:u.split("->"))||[]:(null==u?void 0:u.split("."))||[],(0,w.b0)(h)||(0,w.kZ)(h)?"":h),e}),{})}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.dynamicMapComp,r=t.dynamicMapCompKeys,i=t.dynamicHireRelat,o=t.outResult,s=void 0===o?{}:o;c()(e).call(e,(function(e){var t=e.orignParam,o=void 0===t?"":t,l=e.destParam,c=void 0===l?"":l,u=e.isList,p=void 0!==u&&u,f=e.primaryKeys,h=void 0===f?[]:f,y=(0,A.qK)(r,c,i);y.length>1&&console.error("search arg muti",e,y);var g=y[0],v=n[g];if(v){var b=o?null==o?void 0:o.split("."):[],_=a()(b).call(b,(function(e,t){if(e)return e[t]}),s);p&&((0,w.cy)(_)?(0,w.cy)(v.refValue)&&(0,w.cy)(_)&&(_=(0,O.q2)(v.refValue,_,(function(e,t){var n;return!(!h||!h.length)&&(null===(n=d()(h).call(h,(function(n){return((0,w.sw)(e[n])||(0,w.sw)(t[n]))&&e[n]==t[n]})))||void 0===n?void 0:m()(n).call(n,(function(e){return e})))}))):_=(0,w.cy)(v.refValue)?v.refValue:[]),v.refValue=_}}))}function q(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.dynamicMapComp,r=t.dynamicMapCompKeys,i=t.dynamicHireRelat,o=0;o<e.length;o++){var s=e[o],a=s.destParam,l=void 0===a?"":a,c=(0,A.qK)(r,l,i);c.length>1&&console.error("search arg muti",s,c);var u=c[0];if(u){var p=n[u];if("CustomComponentTable"===p.metaType)return p}}}function B(e){var t,n=e.beforeOpenDialog,s=e.afterOpenDialog,l=e.middleOpenDialog,u=e.components,p=e.rootValue,f=e.polyfillConfigs,h=e.pagePopupMap,m=e.axiosInstance,y=e.dynamicMapComp,v=e.dynamicHireRelat,b=e.lang,_=e.buttonActions,E=e.openChildDialog,x=e.appContext,S=e.compConfig,w=(0,O.Ho)({extendAttr:h.extendAttr}),T=h.popupBusiIdentityId,A=g()(y),P=L(h.inParamMappingList||[],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v}),C="1"==(null==h?void 0:h.objOrList),k=(null==h||null===(t=h.outParamMappingList)||void 0===t?void 0:d()(t).call(t,(function(e){var t=e.orignParam?e.orignParam.split("->"):[],n=e.orignParam?"1"!=(null==w?void 0:w.bindFormData)||C?t[t.length-1]:t.join("."):"";return(0,i.A)((0,i.A)({},e),{},{orignParam:n})})))||[],I={},j={};if(C){var N,D=[];I=null===(N=k)||void 0===N?void 0:a()(N).call(N,(function(e,t){var n=t.orignParam,r=t.destParam,i=t.primaryKeyFlag,o=void 0===i?"":i,s=r?r.split("->"):[];return e[r?s[s.length-1]:""]=n,"1"==o&&D.push(n),e}),{});var M=q(k=[{orignParam:"",destParam:h.parentTable||"",primaryKeys:D,isList:!0}],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v});j.selections=(null==M?void 0:M.refValue)||[],j.primaryKeys=D}var B={},F={},U=null,V={};h.outDisplayTrigger&&(V[h.outDisplayTrigger]=function(e){return{onClick:function(){var e,t=B.tableSelectedInfo;C&&(t=null===(e=B.tableSelectedInfo)||void 0===e?void 0:d()(e).call(e,(function(e){var t,n=(0,i.A)({},e);return c()(t=g()(I)).call(t,(function(t){I[t]&&(n[t]=e[I[t]])})),n}))),"1"!=(null==w?void 0:w.bindFormData)||C||(t=F);var n=null==S?void 0:S.middleOpenDialog,s=l;(n||s)&&(l=function(){var e=(0,o.A)((0,r.A)().mark((function e(t){var o,a;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null,s&&(o=null==s?void 0:s(t)),!o){e.next=7;break}return e.next=5,o;case 5:return a=e.sent,e.abrupt("return",null==n?void 0:n((0,i.A)((0,i.A)({},t),{},{outputParams:a})));case 7:return e.abrupt("return",null==n?void 0:n(t));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());var a=t;function u(e){var t;R(k,{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v,outResult:e}),null===(t=U)||void 0===t||t(),z(e)}l&&(a=l({dynamicMapComp:y,rootValue:p,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:P,outputParams:t})||a),(0,O.yL)(a)?a.then((function(e){u(e)})):u(a)}}}),h.closedTrigger&&(V[h.closedTrigger]=function(e){return{onClick:function(){var e;null===(e=U)||void 0===e||e(),z()}}});var $=null==S?void 0:S.beforeOpenDialog,W=n;($||W)&&(n=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return W&&(t=null==W?void 0:W.apply(void 0,i)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!$){e.next=12;break}return e.abrupt("return",null==$?void 0:$.apply(void 0,i));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());var K=!0;function z(e){var t=null==S?void 0:S.afterOpenDialog,n=s;(t||n)&&(s=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var i,o,s,a=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(i=a.length,o=new Array(i),s=0;s<i;s++)o[s]=a[s];null==n||n.apply(void 0,o),null==t||t.apply(void 0,o);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),s&&s({dynamicMapComp:y,rootValue:p,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:P,outputParams:e})}function H(){U=E({buttonActions:_,dialogProps:(0,i.A)((0,i.A)({},w||{}),{},{beforeClose:function(){z()}}),parentRootValue:p,parentDynamicMapComp:y,selectionsObj:j,busiIdentityId:T,axiosInstance:m,lang:b,loadEvnetsReq:P,initData:P,components:u,parentSelects:null==S?void 0:S._selects,polyfillConfigs:(0,i.A)((0,i.A)({},V),f||{}),rootStoreChange:function(e){B=e},rootDataChange:function(e){F=e}},x)}n&&(K=n({dynamicMapComp:y,rootValue:p,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:P})),null!=K?(0,O.yL)(K)?K.then((function(e){!1!==e&&H()})):K&&H():H()}function F(e,t){return U.apply(this,arguments)}function U(){return U=(0,o.A)((0,r.A)().mark((function e(t,n){var s,a,l,c,u,f,d,h,m,y,g,v,b,_,x,S,w,A,O,k,I,j,N,D,M,L;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=n.beforeDataValidRequestService,c=n.afterDataValidRequestService,u=n.confirmInstance,f=n.dynamicMapComp,d=n.requestTraceId,h=n.compConfig,m=n.mixinServiceConfig,y=n.rootValue,g=n.builtPolyfillReq,n.axiosInstance,v=n.lang,b=y||{},_=T.dL,((w=null==h?void 0:h.beforeDataValidRequestService)||l)&&(x=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return l&&(t=null==l?void 0:l.apply(void 0,i)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!w){e.next=12;break}return e.abrupt("return",null==w?void 0:w.apply(void 0,i));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((A=null==h?void 0:h.afterDataValidRequestService)||c)&&(S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==c||c.apply(void 0,t),null==A||A.apply(void 0,t)}),O=!0,x&&(O=x({dynamicMapComp:f,requestTraceId:d,mixinServiceConfig:m,rootValue:y,compConfig:h,service:t,reqData:b})),e.next=11,O;case 11:if(!1!==e.sent){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,(0,C.ZW)(_,(0,i.A)((0,i.A)((0,i.A)({aid_language:v,requestTraceId:d},b),g||{}),{},{pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==m?void 0:m.mainServiceCode}}),{method:"post"});case 16:if(k=e.sent,I=k.data||{},null!==(s=k.data)&&void 0!==s&&s.baseResponse&&(I=null===(j=k.data)||void 0===j?void 0:j.baseResponse),N=I.resultCode,D=(null===(a=I)||void 0===a?void 0:a.resultMessage)||"",M="",L=!1,P.O.SUCCESS===N){e.next=40;break}e.t0=N,e.next=e.t0===P.O.WARNING?27:e.t0===P.O.ERROR?30:e.t0===P.O.INFO?33:e.t0===P.O.OTHER?35:37;break;case 27:return M="warning",L=!0,e.abrupt("break",39);case 30:return M="error",L=!1,e.abrupt("break",39);case 33:return M="info",e.abrupt("break",39);case 35:case 37:return M="error",e.abrupt("break",39);case 39:return e.abrupt("return",new(E())((function(e,t){u(D,(null==v?void 0:p()(v).call(v,"zh"))>-1?"提示":"Hint",{type:M,showCancelButton:L}).then((function(){L?(S&&S(k,{valid:!0}),e(!0)):(S&&S(k,{valid:!1}),e(!1))})).catch((function(){S&&S(k,{valid:!1}),t(!1)}))})));case 40:return S&&S(k,{valid:!0}),e.abrupt("return",!0);case 42:case"end":return e.stop()}}),e)}))),U.apply(this,arguments)}function V(e){if("1"==(null==e?void 0:e.closedType)){var t=window.top;null==t||t.close()}else{var n;null===(n=window)||void 0===n||null===(n=n.history)||void 0===n||n.back()}}function $(){return W.apply(this,arguments)}function W(){return W=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s,a,l,c,u,p,f,d,h,m,y,g,v,_,E,x,S,w,T,A,P,O,C,k,I,N,D,M,L,R,q,U=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(n=U.length>0&&void 0!==U[0]?U[0]:{}).beforeDataValidRequestService,o=n.afterDataValidRequestService,s=n.beforeRequestService,a=n.afterRequestService,l=n.beforeOpenDialog,c=n.afterOpenDialog,u=n.middleOpenDialog,p=n.components,f=n.props,d=n.requestTraceId,h=n.axiosInstance,m=n.polyfillConfigs,y=n.buttonActions,g=n.rootValue,v=n.confirmInstance,_=n.dialogReq,E=n.dynamicMapComp,x=n.messageInstance,S=n.openChildDialog,w=n.messageCb,T=n.lang,A=n.builtPolyfillReq,P=n.appContext,O=f.config.lcpPageServiceMapVOList||[],C=b()(O).call(O,(function(e){return"1"==e.serviceType})),null==(k=(null===(t=f.config)||void 0===t?void 0:t.lcpPageRuleVOList)||[])||!k.length){e.next=11;break}return I=k[0],e.next=8,F(I,{dynamicMapComp:E,requestTraceId:d,rootValue:g,axiosInstance:h,mixinServiceConfig:C,compConfig:f.config,confirmInstance:v,builtPolyfillReq:A,beforeDataValidRequestService:i,afterDataValidRequestService:o,lang:T});case 8:if(e.sent){e.next=11;break}return e.abrupt("return");case 11:null!=O&&O.length&&(D=null===(N=f.config)||void 0===N?void 0:N.dynamicHireRelat,j({serviceList:O,axiosInstance:h,requestTraceId:d,rootValue:g,dynamicMapComp:E,dynamicHireRelat:D,messageInstance:x,messageCb:w,compConfig:f.config,dialogReq:_,lang:T,beforeRequestService:s,afterRequestService:a})),(M=f.config.lcpPagePopupMapVO)&&(R=null===(L=f.config)||void 0===L?void 0:L.dynamicHireRelat,B({beforeOpenDialog:l,afterOpenDialog:c,middleOpenDialog:u,components:p,rootValue:g,polyfillConfigs:m,pagePopupMap:M,axiosInstance:h,dynamicMapComp:E,dynamicHireRelat:R,appContext:P,lang:T,messageCb:w,buttonActions:y,openChildDialog:S,compConfig:f.config})),(q=f.config.lcpPageClosedMapVO)&&V(q);case 16:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}},7365:(e,t,n)=>{n.d(t,{Mn:()=>v,QT:()=>_,o7:()=>E});var r=n(37891),i=n(53811),o=n(34963),s=n(71426),a=n.n(s),l=n(86226),c=n.n(l),u=n(50697),p=n.n(u),f=(n(11393),n(56255),n(96319)),d=n.n(f),h=n(61240),m=n.n(h),y=(n(44413),n(19022),n(17427)),g=n(157);function v(){return b.apply(this,arguments)}function b(){return b=(0,o.A)((0,r.A)().mark((function e(){var t,n,o,s,l,c,u,p,f,h,v,b,_,E,x,S,w,T,A,P,O,C,k,I,j,N=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=N.length>0&&void 0!==N[0]?N[0]:[],o=(n=N.length>1?N[1]:void 0).alongLoad,s=n.requestTraceId,l=n.businessIdentityReqData,c=void 0===l?{}:l,u=n.axiosInstance,p=n.messageInstance,f=n.reqData,h=n.respCb,v=n.loadEventsBefore,b=n.notLoadCb,o||null==f||!f.notLoad){e.next=5;break}return b&&b(),e.abrupt("return");case 5:if(delete(0,i.A)({},f||{}).notLoad,_=d()(t).call(t,(function(e){return"1"==e.eventType})),E=a()(t).call(t,(function(e){return"1"==e.serviceType})),_&&_.length){e.next=12;break}return b&&b(),e.abrupt("return");case 12:x=0;case 13:if(!(x<_.length)){e.next=49;break}if(T=_[x],A=T.serviceCode,P=T.httpMethod||"post",O=(0,i.A)({requestTraceId:s,pmHandleBusinessIdentity:(0,i.A)({busiIdentityId:T.busiIdentityId,pageMetaId:T.pageMetaId,tenantId:T.tenantId,mainServiceCode:null==E?void 0:E.mainServiceCode},c)},f||{}),C={url:A,method:P,data:O},"get"===P.toLocaleLowerCase()&&(C.params=O,delete C.data),!v||"function"!=typeof v){e.next=36;break}if(k=!0,v&&(k=v({reqConfig:C})),null==k){e.next=36;break}if(!(0,y.yL)(k)){e.next=33;break}return e.next=27,k;case 27:if(!1!==(k=e.sent)){e.next=30;break}return e.abrupt("return");case 30:(0,y.Qd)(k)&&(C=k),e.next=36;break;case 33:if(!1!==k){e.next=36;break}return console.warn("请求中断"),e.abrupt("return");case 36:return e.next=38,u.value&&u.value(C);case 38:if(I=e.sent,!(0,g.N)(I.data,p,{noSuccessIip:!0})){e.next=42;break}return h&&h(null==I||null===(j=I.data)||void 0===j?void 0:j.result),e.abrupt("return");case 42:return h&&h({}),null==p||null===(S=p.value)||void 0===S||S.error((null==I||null===(w=I.data)||void 0===w?void 0:w.resultMessage)||""),e.next=46,m().reject();case 46:x++,e.next=13;break;case 49:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function _(e){var t,n=null==e||null===(t=e.pmPageMetaList)||void 0===t?void 0:a()(t).call(t,(function(e){return"PC-root-panel"===e.metaCode||"H5-root-panel"===e.metaCode}));return n&&(e.pmPageMetaList=n.pmPageMetaList,delete n.pmPageMetaList,e.rootOptionComp=n),e}function E(e){var t;c()(t=p()(e)).call(t,(function(t){(0,y.$3)(e[t],"eventInit")&&(e[t].eventInit=!1)}))}},75905:(e,t,n)=>{n.r(t),n.d(t,{default:()=>V});var r=n(49859),i=n(53474),o=n(53811),s=n(75286),a=(n(76918),n(23288),n(2892),n(26099),n(27495),n(38781),n(25440),n(73363)),l=n.n(a),c=n(50697),u=n.n(c),p=n(66615),f=n.n(p),d=n(48079),h=n.n(d),m=n(36586),y=n.n(m),g=n(18979),v=n.n(g),b=n(129),_=n.n(b),E=n(96319),x=n.n(E),S=n(71426),w=n.n(S),T=n(31721),A=n.n(T),P=n(14166),O=n.n(P),C=n(8628),k=n.n(C),I=n(74707),j=n.n(I),N=n(86226),D=n.n(N),M=n(64007),L=n.n(M),R=n(11393),q=n.n(R),B=n(84061),F=n(50510),U=n(17427);n(58843),n(7365);const V={inheritAttrs:!1,name:"CustomComponentTable",props:(0,o.A)((0,o.A)((0,o.A)({},U.yz),B.ElTable.props),B.ElPagination.props),setup:function(e,t){var n,a=t.expose,c=t.attrs,p=t.emit,d=(0,s.computed)({get:function(){return e.modelValue},set:function(e){p("update:modelValue",e)}}),m=(0,s.computed)((function(){var t,n=l()(t=u()(B.ElTable.props)).call(t,(function(t,n){return void 0!==e[n]&&null!==e[n]&&(t[n]=e[n]),t}),{});return n.border||(n.border=!0),n.stripe||(n.stripe=!0),n})),g=function(e){var t=e.emits;return f()(t)||(t=u()(t)),l()(t).call(t,(function(e,t){var n="on".concat((0,U.ZH)((0,U.PT)(t)));return(0,U.$3)(c,n)&&(e[n]=c[n]),e}),{})},b=(0,s.computed)((function(){return g(B.ElTable)})),E=(0,s.computed)((function(){var e=(0,o.A)({},b.value||{});return delete e.onSortChange,e})),S=(0,s.computed)((function(){return g(B.ElPagination)})),T=((0,s.inject)("_ruleExecuter"),(0,s.inject)("dynamicMapComp"),(0,s.inject)("_parentRootValue",{})),P=(0,s.inject)("_parentDynamicMapComp",{}),C=(0,s.inject)("_selectionsObj",{}),I=(0,s.inject)("_rootStore",{}),N=(0,s.inject)("lang"),M=(0,s.inject)("rootValue"),R=(0,s.inject)("selects"),V=(0,s.ref)(""),$=(0,s.computed)((function(){var t=e.config.pmPageMetaList||[];return h()(t).call(t,(function(t){return t.displayType===U.Op||0==e.width||"0px"==e.width||"1"==t.hidden||V.value||(V.value=t.metaCode),Z(t)}))})),W=5;null!==(n=e.config)&&void 0!==n&&n.pageSize&&(W=y()(e.config.pageSize)||5);var K=(0,s.reactive)({pageNum:1,pageSize:W,total:0}),z=(0,s.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.frontPageFlag)})),H=(0,s.computed)((function(){var e;return z.value?(null===(e=d.value||[])||void 0===e?void 0:e.length)||0:K.total})),G=(0,s.computed)((function(){var e;return z.value?v()(e=d.value||[]).call(e,(K.pageNum-1)*K.pageSize,K.pageNum*K.pageSize):d.value||[]})),Q=(0,s.ref)(null),X=function(e){var t,n,r=e.prop,i=e.order;null===(t=b.value)||void 0===t||null===(n=t.onSortChange)||void 0===n||n.call(t,{prop:r,order:i}),Q.value=null,i&&(Q.value={prop:r,order:i})},Y=(0,s.computed)((function(){if(!Q.value)return[];var e=[Q.value];return l()(e).call(e,(function(e,t){return _()(e).call(e,(function(e,n){return""===e[t.prop]||void 0===e[t.prop]||null===e[t.prop]?"descending"===t.order?1:-1:""===n[t.prop]||void 0===n[t.prop]||null===n[t.prop]||e[t.prop]>n[t.prop]?"descending"===t.order?-1:1:e[t.prop]===n[t.prop]?0:"descending"===t.order?1:-1}))}),(0,i.A)(G.value||[]))})),J=(0,s.computed)((function(){return Q.value?Y.value:G.value})),Z=function(e){return(0,o.A)((0,o.A)({},e),{},{labelHidden:"1"})},ee=(0,s.computed)((function(){return e.config.multiPmPageMetaList||[]})),te=new(j());(0,s.watch)((function(){var e;return null==J||null===(e=J.value)||void 0===e?void 0:e.length}),(function(t){var n=[];if(t){var r,i=J.value;n=null==i||null===(r=h()(i))||void 0===r?void 0:r.call(i,(function(t,n){var r=te.get(t);if(r)return D()(r).call(r,(function(e){e.rowIndex=n})),r;var i,o=h()(i=$.value).call(i,(function(t,r){var i,o=(0,U.mg)(t);return o.width&&!o.columnWidth&&(o.columnWidth=o.width,delete o.width),o.columnId=(0,U.Ij)(),o.rowIndex=n,o.isColumn=!0,o.refConfig=null==e||null===(i=e.config)||void 0===i||null===(i=i.pmPageMetaList)||void 0===i?void 0:i[r],o.parent=null==e?void 0:e.config,o}));return te.set(t,o),o}))}(0,U.Ts)(e.config,"multiPmPageMetaList",n)}),{immediate:!0,deep:!0});var ne=(0,s.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.totalMetaCodes)||[]})),re=(0,s.computed)((function(){var e,t;return x()(e=h()(t=ne.value).call(t,(function(e){return"string"==typeof e?{code:e,totalFn:oe}:(0,U.Qd)(e)&&(0,U.$3)(e,"code")?(e.totalFn="function"==typeof e.totalFn?e.totalFn:oe,e):null}))).call(e,(function(e){return!!e}))})),ie=(0,s.computed)((function(){var e,t=(0,r.A)({},V.value,(function(){var e;return(0,s.createVNode)("div",null,[L()(e=N.value).call(e,"zh")>-1?"总计":"Total"])}));return l()(e=re.value).call(e,(function(e,t){var n=t.code,r=t.render;return r&&"function"==typeof r&&(e[n]=r),e}),t)})),oe=function(e,t,n){t=null==t?isNaN(Number(t))?"":0:t.toString().replace(/[^\d\.]/g,"");var r=!isNaN(Number(t));return null==e&&(e=r?0:""),e+(r?Number(t):t)},se=(0,s.computed)((function(){var e,t;return null!==(e=J.value)&&void 0!==e&&e.length&&ne.value.length&&re.value.length?[l()(t=J.value||[]).call(t,(function(e,t){var n;return D()(n=re.value).call(n,(function(n){var r=n.code,i=n.totalFn;e[r]=i(e[r],t[r],t)})),e}),{totalFlag:!0})]:[]})),ae=(0,s.computed)((function(){var t,n;return"1"==(null===(t=e.config)||void 0===t?void 0:t.selectable)||(null===(n=e.config)||void 0===n?void 0:n.canSelect)})),le=(0,s.ref)(null),ce=function(e){var t;le.value=e,null==b||null===(t=b.onCurrentChange)||void 0===t||t.call(b,e),I.tableSelectedInfo=e},ue=(0,s.ref)([]),pe=function(e){ue.value=e,I.tableSelectedInfo=e},fe=(0,s.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pageable)})),de=(0,s.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.pageAlign})),he="right",me=(0,r.A)((0,r.A)((0,r.A)({},"left","flex-start"),he,"flex-end"),"center","center"),ye=(0,s.computed)((function(){var t,n=l()(t=u()(B.ElPagination.props)).call(t,(function(t,n){return(0,U.$3)(e.config,n)&&(t[n]=e.config[n]),t}),{});return(0,U.$3)(n,"background")||(n.background=!0),(0,U.$3)(n,"layout")||(n.layout="prev, pager, next, jumper, sizes, total"),(0,U.$3)(n,"page-sizes")||(0,U.$3)(n,"pageSizes")||(n.pageSizes=[5,10,20,40]),n}));(0,s.watch)((function(){return K.pageNum}),(function(t){var n,r=null===(n=e.config)||void 0===n?void 0:n.currentChange,i=r&&r(t,e,K);i&&((0,U.yL)(i)?i.then((function(e){e&&(d.value=e)})):d.value=i)})),(0,s.watch)((function(){return K.pageSize}),(function(t){var n,r=null===(n=e.config)||void 0===n?void 0:n.sizeChange,i=r&&r(t,e,K);i&&((0,U.yL)(i)?i.then((function(e){e&&(d.value=e)})):d.value=i)}));var ge=["clearSelection","getSelectionRows","toggleRowSelection","toggleAllSelection","toggleRowExpansion","setCurrentRow","clearSort","clearFilter","doLayout","sort","scrollTo","setScrollTop","setScrollLeft","columns"],ve=(0,s.ref)(null),be=l()(ge).call(ge,(function(e,t){return e[t]=function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(e=ve.value)||void 0===e||e[t].apply(e,r)},e}),{});a((0,o.A)({multipleSelection:ue,selectedRow:le,page:K,changePage:function(e,t){K[t||"pageNum"]=e}},be));var _e=(0,s.computed)((function(){var e,t;return null!==(e=se.value)&&void 0!==e&&e.length?q()(t=[]).call(t,(0,i.A)(J.value),(0,i.A)(se.value)):J.value}));return function(){var t,n,r,i,a;return(0,s.createVNode)("div",{class:"custom-component-table"},[(0,s.createVNode)(B.ElTable,(0,s.mergeProps)(m.value,E.value,{ref:function(e){ve.value=e},"highlight-current-row":!!(ae.value||null!==(n=m.value)&&void 0!==n&&n.highlightCurrentRow),onCurrentChange:ae.value||null!==(r=m.value)&&void 0!==r&&r.highlightCurrentRow?ce:function(){},data:_e.value,onSelectionChange:pe,onSortChange:X}),(a=t=h()(i=$.value).call(i,(function(t,n){return t.displayType==U.Op?null:(0,s.createVNode)(B.ElTableColumn,(0,s.mergeProps)({key:t.requiredFlag+t.metaCode},function(e,t){var n,r,i,s=v()(n=$.value).call(n,t+1),a=!(null!=s&&null!==(r=x()(s).call(s,(function(e){return e.displayType!=U.Op&&!(0==e.width||"0px"==e.width||"1"==e.hidden)})))&&void 0!==r&&r.length),c=w()(s).call(s,(function(e){return e.displayType!=U.Op})),p=l()(i=u()(B.ElTableColumn.props)).call(i,(function(t,n){return(0,U.$3)(e,n)&&(t[n]=e[n]),t}),{});if("1"==e.showOverflowTooltip||"1"==e["show-overflow-tooltip"]?(p["show-overflow-tooltip"]=!0,p.showOverflowTooltip=!0):(p["show-overflow-tooltip"]=!1,p.showOverflowTooltip=!1),p.prop||(p.prop=e.metaCode),e.columnWidth&&(p.width=e.columnWidth),p.width||(p.minWidth="160px"),0!=p.width&&"0px"!=p.width&&"1"!=e.hidden||(p.className="hidden-column",p.width="1px"),!c||0!=c.width&&"0px"!=c.width&&"1"!=c.hidden||(p.className="".concat(p.className||""," next-hidden-column")),a&&(p.className="".concat(p.className||""," end-show-column")),"CustomComponentSelectEmployees"==e.metaType&&(p.className="".concat(p.className||""," clear-index")),(0,U.rn)((0,o.A)((0,o.A)({},e),{},{isColumn:!0}),(0,U.AP)(e,p.mode))&&"0"!=e.showOverflowTooltip&&"0"!=e["show-overflow-tooltip"]&&(p["show-overflow-tooltip"]=!0,p.showOverflowTooltip=!0),"selection"===e.type){var f=p.selectable;p.selectable=function(e,t){var n=!0;f&&"function"==typeof f&&(n=f(e,t,{tableConfig:p.config,rootValue:M,parentRootValue:T,parentDynamicMapComp:P}));var r,i=!0;return C.selections&&C.selections.length&&C.primaryKeys&&C.primaryKeys.length&&(i=!(null===(r=C.selections)||void 0===r?void 0:A()(r).call(r,(function(t){var n,r;return O()(n=h()(r=C.primaryKeys).call(r,(function(n){return n&&t[n]==e[n]}))).call(n,(function(e){return e}))})))),n&&i}}return p}(t,n)),{header:function(){var n,r,i;return(0,s.createVNode)("span",{className:"head-span",title:L()(n=N.value).call(n,"zh")>-1?t.metaNameZh:t.metaNameEn},["1"==t.requiredFlag?(0,s.createVNode)("span",{style:"color: rgb(245, 34, 45); margin-right: 3px;"},[(0,s.createTextVNode)("*")]):"",t.headerRender?t.headerRender(s.h,{props:e,config:t,lang:N,rootValue:M,selects:R}):L()(r=N.value).call(r,"zh")>-1?t.metaNameZh:t.metaNameEn,"1"==t.hintFlag?(0,s.createVNode)((0,s.resolveComponent)("ElTooltip"),{effect:"dark",content:L()(i=N.value).call(i,"zh")>-1?t.hintContentZh:t.hintContentEn,placement:"top"},{default:function(){return[(0,s.createVNode)((0,s.resolveComponent)("elIcon"),{style:"fontSize: 16px; verticalAlign: sub; margin-left: 3px;"},{default:function(){return[(0,s.createVNode)((0,s.resolveComponent)("QuestionFilled"),null,null)]}})]}}):null])},default:function(e){var r,i,o=e.row,a=(e.column,e.$index);if(o.totalFlag)return ie.value[t.metaCode]?ie.value[t.metaCode]({val:o[t.metaCode],row:o,h:s.h}):null;var l,c,u=null===(r=ee.value)||void 0===r||null===(r=r[a])||void 0===r?void 0:r[n];return function(e){var t;if(!e)return!0;if(k()(t=["selection","index"]).call(t,e.type))return!0;var n=A()(U.Bs).call(U.Bs,(function(t){return(0,U.ro)(t,e.metaType)}))||!e.metaType;return!e.renderby&&n}(u)?null:(0,s.createVNode)(F.A,{key:q()(i="".concat(u.columnId,"-")).call(i,u.rowIndex),class:"error-tip-block",rowScope:{row:o,$index:a},modelValue:(l=a,null===(c=J.value)||void 0===c?void 0:c[l]),"onUpdate:modelValue":function(e){!function(e,t){d.value||(d.value=[]),d.value[t]=e}(e,a)},config:u},null)}})})),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!(0,s.isVNode)(a)?t:{default:function(){return[t]}})),fe.value?(0,s.createVNode)("div",{class:"pagination-wrap",style:{"justify-content":me[de.value||he]}},[(0,s.createVNode)(B.ElPagination,(0,s.mergeProps)(ye.value,S,{"current-page":K.pageNum,"onUpdate:current-page":function(e){return K.pageNum=e},"page-size":K.pageSize,"onUpdate:page-size":function(e){return K.pageSize=e},total:H.value}),null)]):null])}}}},27243:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var r=n(53811),i=n(75286),o=n(8628),s=n.n(o),a=n(73363),l=n.n(a),c=n(50697),u=n.n(c),p=n(36586),f=n.n(p),d=n(43981),h=n.n(d),m=n(11393),y=n.n(m),g=(n(76918),n(48598),n(23288),n(2892),n(9868),n(26099),n(27495),n(38781),n(25440),n(84061)),v=n(17427),b=n(24691);const _={inheritAttrs:!1,props:(0,r.A)((0,r.A)((0,r.A)({},v.yz),g.ElInput.props),{},{textAreaCnt:{type:[Number,String],default:2},showTooltip:{type:[String,Number],default:""},showMoney:{type:[String,Number],default:""},moneySeg:{type:[String],default:","},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},decimal:{type:Number,default:2},decimalSuffix:{type:[Number,String],default:"0"},canShowFlag:{type:Array,default:["na","-"]},showSymbol:{type:String,default:""},symbol:{type:String,default:"¥"},symbolPosition:{type:String,default:"before",validator:function(e){var t;return s()(t=["before","after"]).call(t,e)}}}),emits:["update:modelValue"],setup:function(e,t){var n,o,a=t.emit,c=t.attrs,p=t.expose,d=t.slots,m=(0,i.ref)(!1),_=(0,i.ref)(!1),E=(0,i.ref)(null),x=(0,i.ref)(!1),S=(0,i.ref)(null),w=(0,i.ref)(null),T=(0,i.computed)((function(){var t,n,r,i,o=l()(t=u()(g.ElInput.props)).call(t,(function(t,n){return t[n]=e[n],t}),{});return null!==(n=e.config)&&void 0!==n&&n.icon&&(o.suffixIcon=null===(i=e.config)||void 0===i?void 0:i.icon),null!==(r=e.config)&&void 0!==r&&r.maxLength&&(o.maxlength=f()(e.config.maxLength)),e.textAreaCnt&&(o.rows=f()(e.textAreaCnt)),o})),A=(0,i.computed)((function(){var e=(0,r.A)({},T.value);return delete e.modelValue,delete e.suffixIcon,delete e.prefixIcon,e})),P=(0,i.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),O=(0,i.computed)({get:function(){return e.modelValue},set:function(e){a("update:modelValue",e)}}),C=(0,i.ref)(""),k=(0,i.computed)((function(){return"1"==e.showMoney?m.value?C.value:B(O.value):O.value})),I=(0,i.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==T.value.suffixIcon})),j=(0,i.computed)((function(){var t;return!(0,v.$3)(e.config,"onlyIconClickFlag")||"1"==(null===(t=e.config)||void 0===t?void 0:t.onlyIconClickFlag)})),N=(0,i.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pagePopupEditFlag)})),D=(0,i.computed)((function(){var t={modelValue:k.value};return!I.value||N.value?(t["onUpdate:modelValue"]=function(t){"1"==e.showMoney?C.value=t:O.value=t},"1"==e.showMoney&&(t.onFocus=function(){C.value=O.value},t.onBlur=function(){O.value=function(t){var n;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t||""===t)return"";var r=0,i="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=r;return r++,t?"":e})),o=Number(i);return isNaN(o)?"":o}(B(C.value))})):t.onClear=function(){var e;null==c||null===(e=c.onClear)||void 0===e||e.call(c),O.value=""},t})),M=(0,i.computed)((function(){return{class:null==c?void 0:c.class,style:null==c?void 0:c.style}})),L=(0,i.computed)((function(){var e=(0,r.A)({},c);delete e.class;var t=e.onFocus;e.onFocus=function(){m.value=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i;P.value&&(E.value=null==n||null===(i=n[0])||void 0===i?void 0:i.target),null==t||t.apply(void 0,n)};var n=e.onBlur;if(e.onBlur=function(){m.value=!1,P.value&&(_.value||(E.value=null));for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];null==n||n.apply(void 0,t)},I.value&&j.value&&delete e.onClick,e.onWrapClick)if(e.onClick){var i=e.onClick;e.onClick=function(){i.apply(void 0,arguments),e.onWrapClick.apply(e,arguments)}}else e.onClick=e.onWrapClick;return e})),R=(n=null,o=null,{clear:function(){n&&n(),o&&window.removeEventListener("resize",o)},calc:function(){this.clear();var t=20;!e.disabled&&e.clearable&&(t=50);var r=(0,b.fW)(S.value,0),s=(0,b.fW)(w.value,0-t);x.value=r<s,n=(0,i.watch)((function(){return k.value}),(function(e){(0,i.nextTick)((function(){s=(0,b.fW)(w.value,0-t),x.value=r<s}))})),o=function(){r=(0,b.fW)(S.value,0),x.value=r<s},window.addEventListener("resize",o)}});(0,i.onMounted)((function(){(0,i.watch)(P,(function(e){e&&(null==R||R.calc())}),{immediate:!0})})),(0,i.onUnmounted)((function(){null==R||R.clear()}));var q=function(){var t,n,o=(0,r.A)({},d);if(null!==(t=T.value)&&void 0!==t&&t.suffixIcon){var s=(0,i.resolveComponent)(T.value.suffixIcon);o.suffix=function(){var t={};return I.value&&(e.disabled||(t.onClick=c.onClick,t.style={cursor:"pointer"})),(0,i.createVNode)((0,i.resolveComponent)("el-icon"),t,{default:function(){return[(0,i.createVNode)(s,null,null)]}})}}if(null!==(n=T.value)&&void 0!==n&&n.prefixIcon){var a=(0,i.resolveComponent)(T.value.prefixIcon);o.prefix=function(){return(0,i.createVNode)((0,i.resolveComponent)("el-icon"),null,{default:function(){return[(0,i.createVNode)(a,null,null)]}})}}return o};function B(t){var n,r,i;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t)return"";var o="".concat(t).replace(e.moneySeg,"");if(o=h()(o),isNaN(o))return"";o=Math.max(e.min,Math.min(e.max,o)),"-1"!=e.decimal&&(o=o.toFixed(e.decimal)),"1"!=e.decimalSuffix&&(o=h()(o));var a="".concat(o).split(".");a[0]=a[0].replace(/\B(?=(\d{3})+(?!\d))/g,e.moneySeg);var l=a.join(".");return"1"==e.showSymbol?"before"===e.symbolPosition?y()(r="".concat(e.symbol," ")).call(r,l):y()(i="".concat(l," ")).call(i,e.symbol):l}var F=(0,i.computed)((function(){var e={};return P.value&&(e.onMouseenter=function(e){_.value=!0,E.value=null==e?void 0:e.target},e.onMouseleave=function(){_.value=!1,m.value||(E.value=null)}),e}));return p({click:function(e){var t;null==c||null===(t=c.onClick)||void 0===t||t.call(c,null,e)}}),function(){var e,t;return(0,i.createVNode)("div",(0,i.mergeProps)({class:"input-contrainer"},M.value),[(0,i.createVNode)("span",{ref:function(e){return w.value=e},class:"calc-span"},[k.value]),x.value?(0,i.createVNode)((0,i.resolveComponent)("el-tooltip"),{placement:"top",visible:x.value&&!!E.value,content:k.value,virtualTriggering:!0,virtualRef:E.value},null):null,(0,i.createVNode)("div",(0,i.mergeProps)({class:"input-wrap"},F.value,{ref:function(e){return S.value=e}}),[(0,i.createVNode)(g.ElInput,(0,i.mergeProps)(D.value,(0,r.A)((0,r.A)({},L.value),A.value)),(t=e=q(),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!(0,i.isVNode)(t)?e:{default:function(){return[e]}}))])])}}}},31810:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var r=n(53811),i=n(75286),o=n(8628),s=n.n(o),a=n(73363),l=n.n(a),c=n(50697),u=n.n(c),p=n(36586),f=n.n(p),d=n(43981),h=n.n(d),m=n(11393),y=n.n(m),g=(n(76918),n(48598),n(23288),n(2892),n(9868),n(26099),n(27495),n(38781),n(25440),n(84061)),v=n(17427),b=(n(24691),n(85845));const _={inheritAttrs:!1,props:(0,r.A)((0,r.A)((0,r.A)({},v.yz),g.ElInput.props),{},{textAreaCnt:{type:[Number,String],default:2},showTooltip:{type:[String,Number],default:""},showMoney:{type:[String,Number],default:""},moneySeg:{type:[String],default:","},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},decimal:{type:Number,default:2},decimalSuffix:{type:[Number,String],default:"0"},canShowFlag:{type:Array,default:["na","-"]},showSymbol:{type:String,default:""},symbol:{type:String,default:"¥"},symbolPosition:{type:String,default:"before",validator:function(e){var t;return s()(t=["before","after"]).call(t,e)}}}),emits:["update:modelValue"],setup:function(e,t){var n=t.emit,o=t.attrs,a=t.expose,c=t.slots,p=(0,i.computed)((function(){var t,n,r,i,o=l()(t=u()(g.ElInput.props)).call(t,(function(t,n){return t[n]=e[n],t}),{});return null!==(n=e.config)&&void 0!==n&&n.icon&&(o.suffixIcon=null===(i=e.config)||void 0===i?void 0:i.icon),null!==(r=e.config)&&void 0!==r&&r.maxLength&&(o.maxlength=f()(e.config.maxLength)),e.textAreaCnt&&(o.rows=f()(e.textAreaCnt)),o})),d=(0,i.computed)((function(){var e=(0,r.A)({},p.value);return delete e.modelValue,delete e.suffixIcon,delete e.prefixIcon,e})),m=(0,i.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),_=(0,i.computed)({get:function(){return e.modelValue},set:function(e){n("update:modelValue",e)}}),E=(0,i.ref)(""),x=(0,i.ref)(!1),S=(0,i.computed)((function(){return"1"==e.showMoney?x.value?E.value:k(_.value):_.value})),w=(0,b.D)({showTooltip:m,offset:(0,i.computed)((function(){var t=20;return!e.disabled&&e.clearable&&(t=50),t})),displayValue:S}).generateTooltipWrap,T=(0,i.computed)((function(){var t;return(null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO)&&"Search"==p.value.suffixIcon})),A=(0,i.computed)((function(){var t;return!(0,v.$3)(e.config,"onlyIconClickFlag")||"1"==(null===(t=e.config)||void 0===t?void 0:t.onlyIconClickFlag)})),P=(0,i.computed)((function(){var t;return"1"==(null===(t=e.config)||void 0===t?void 0:t.pagePopupEditFlag)})),O=(0,i.computed)((function(){var t={modelValue:S.value};return!T.value||P.value?(t["onUpdate:modelValue"]=function(t){"1"==e.showMoney?E.value=t:_.value=t},"1"==e.showMoney&&(t.onFocus=function(){x.value=!0,E.value=_.value},t.onBlur=function(){x.value=!1,_.value=function(t){var n;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t||""===t)return"";var r=0,i="".concat(t).replace(/[^\d.-]/g,"").replace(/(\.\d*)/g,(function(e){var t=r;return r++,t?"":e})),o=Number(i);return isNaN(o)?"":o}(k(E.value))})):t.onClear=function(){var e;null==o||null===(e=o.onClear)||void 0===e||e.call(o),_.value=""},t})),C=(0,i.computed)((function(){var e=(0,r.A)({},o);if(delete e.class,T.value&&A.value&&delete e.onClick,e.onWrapClick)if(e.onClick){var t=e.onClick;e.onClick=function(){t.apply(void 0,arguments),e.onWrapClick.apply(e,arguments)}}else e.onClick=e.onWrapClick;return e}));function k(t){var n,r,i;if(null!==(n=e.canShowFlag)&&void 0!==n&&s()(n).call(n,String(t).toLowerCase()))return t;if(null==t)return"";var o="".concat(t).replace(e.moneySeg,"");if(o=h()(o),isNaN(o))return"";o=Math.max(e.min,Math.min(e.max,o)),"-1"!=e.decimal&&(o=o.toFixed(e.decimal)),"1"!=e.decimalSuffix&&(o=h()(o));var a="".concat(o).split(".");a[0]=a[0].replace(/\B(?=(\d{3})+(?!\d))/g,e.moneySeg);var l=a.join(".");return"1"==e.showSymbol?"before"===e.symbolPosition?y()(r="".concat(e.symbol," ")).call(r,l):y()(i="".concat(l," ")).call(i,e.symbol):l}return a({click:function(e){var t;null==o||null===(t=o.onClick)||void 0===t||t.call(o,null,e)}}),function(){var t,n;return w((0,i.createVNode)(g.ElInput,(0,i.mergeProps)(O.value,(0,r.A)((0,r.A)({},C.value),d.value)),"function"==typeof(n=t=function(){var t,n,s=(0,r.A)({},c);if(null!==(t=p.value)&&void 0!==t&&t.suffixIcon){var a=(0,i.resolveComponent)(p.value.suffixIcon);s.suffix=function(){var t={};return T.value&&(e.disabled||(t.onClick=o.onClick,t.style={cursor:"pointer"})),(0,i.createVNode)((0,i.resolveComponent)("el-icon"),t,{default:function(){return[(0,i.createVNode)(a,null,null)]}})}}if(null!==(n=p.value)&&void 0!==n&&n.prefixIcon){var l=(0,i.resolveComponent)(p.value.prefixIcon);s.prefix=function(){return(0,i.createVNode)((0,i.resolveComponent)("el-icon"),null,{default:function(){return[(0,i.createVNode)(l,null,null)]}})}}return s}())||"[object Object]"===Object.prototype.toString.call(n)&&!(0,i.isVNode)(n)?t:{default:function(){return[t]}}))}}}},80316:(e,t,n)=>{n.r(t),n.d(t,{default:()=>S});var r=n(53811),i=n(75286),o=n(57119),s=n.n(o),a=n(73363),l=n.n(a),c=n(96319),u=n.n(c),p=n(31721),f=n.n(p),d=n(50697),h=n.n(d),m=n(36586),y=n.n(m),g=n(48079),v=n.n(g),b=n(64007),_=n.n(b),E=(n(76918),n(48598),n(23288),n(2892),n(26099),n(27495),n(38781),n(90744),n(84061)),x=n(17427);const S={inheritAttrs:!1,props:(0,r.A)((0,r.A)((0,r.A)({},E.ElSelect.props),x.yz),{},{multiple:[String,Boolean],filterable:[String,Boolean],multipleLimit:[String,Number],rangeOptions:Array,excludeOptions:Array,separator:{type:[String],default:","}}),emits:["update:modelValue"],setup:function(e,t){var n=t.emit,o=t.attrs,a=(t.expose,t.slots),c="object",p=(0,i.computed)({get:function(){var t=e.modelValue;if(!e.hidden)if(g.value){if((0,x.Qd)(t)||(0,x.cy)(t))try{t=s()(t).join(e.separator),n("update:modelValue",t)}catch(e){}}else if(t&&(0,x.Kg)(t)||(0,x.Et)(t)){var r,i;t=null===(r="".concat(t))||void 0===r?void 0:r.split(e.separator),b.value&&(t=null===(i=t)||void 0===i?void 0:l()(i).call(i,(function(e,t,n){return e[n]=t,e}),{})),n("update:modelValue",t)}return t},set:function(e){n("update:modelValue",e)}}),d=(0,i.computed)((function(){return e.separator})),m=(0,i.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.valueType})),g=(0,i.computed)((function(){return"list"!==m.value&&m.value!==c})),b=(0,i.computed)((function(){return m.value===c})),S=(0,i.computed)((function(){return"1"==e.multiple})),w=(0,i.computed)((function(){var t,n,r,i,o=e.options;return e.rangeOptions&&e.rangeOptions.length&&(o=null===(t=o)||void 0===t||null===(n=u()(t))||void 0===n?void 0:n.call(t,(function(t){var n;return null===(n=e.rangeOptions)||void 0===n?void 0:f()(n).call(n,(function(e){return e==t.columnValue}))}))),e.excludeOptions&&e.excludeOptions.length&&(o=null===(r=o)||void 0===r||null===(i=u()(r))||void 0===i?void 0:i.call(r,(function(t){var n;return!(null!==(n=e.excludeOptions)&&void 0!==n&&f()(n).call(n,(function(e){return e==t.columnValue})))}))),o})),T=(0,i.computed)({get:function(){if(S.value){var t=p.value||"";return t?g.value?t.split(d.value):b.value?s()(t||{}):t:[]}var n;return null!==p.value&&void 0!==p.value?null!==(n=w.value)&&void 0!==n&&f()(n).call(n,(function(e){return e.columnValue==p.value}))?(e.config.isMatch=!0,"".concat(p.value)):(e.config.isMatch=!1,""):""},set:function(e){S.value?p.value=g.value?e.join(d.value):b.value?null==e?void 0:l()(e).call(e,(function(e,t,n){return e[n]=t,e}),{}):e:p.value=e}}),A=(0,i.computed)((function(){var t,n=l()(t=h()(E.ElSelect.props)).call(t,(function(t,n){return t[n]=e[n],t}),{});return null!==n.placeholder&&void 0!==n.placeholder||(n.placeholder=""),"string"==typeof n.filterable&&(n.filterable="1"==n.filterable),"string"==typeof n.multiple&&(n.multiple="1"==n.multiple),n["suffix-icon"]||n.suffixIcon||(delete n.suffixIcon,delete n["suffix-icon"]),n.multipleLimit=Number(y()(n.multipleLimit||0)),n})),P=(0,i.inject)("lang"),O=function(){p.value=""};return function(){var e,t;return(0,i.createVNode)(E.ElSelect,(0,i.mergeProps)({class:"custom-self-select"},(0,r.A)((0,r.A)({},o),A.value),{modelValue:T.value,"onUpdate:modelValue":function(e){return T.value=e},onClear:O}),"function"==typeof(t=e=(0,r.A)((0,r.A)({},a),{},{default:function(){var e;return null===(e=w.value)||void 0===e?void 0:v()(e).call(e,(function(e){var t;return(0,i.createVNode)(E.ElOption,{key:e.columnValue,label:(null==P||null===(t=P.value)||void 0===t?void 0:_()(t).call(t,"zh"))>-1?e.columnDesc_zh:e.columnDesc,value:e.columnValue,disabled:"0"==e.columnStatus||"2"==e.columnStatus},null)}))}}))||"[object Object]"===Object.prototype.toString.call(t)&&!(0,i.isVNode)(t)?e:{default:function(){return[e]}})}}}},91413:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(22204),i=n(53811),o=n(75286),s=n(85569),a=n.n(s),l=n(71426),c=n.n(l),u=n(64007),p=n.n(u),f=n(73363),d=n.n(f),h=n(50697),m=n.n(h),y=(n(76918),n(23288),n(2892),n(26099),n(38781),n(84061)),g=n(17427),v=(n(28880),n(85845));const b={inheritAttrs:!1,props:(0,i.A)((0,i.A)((0,i.A)({},g.yz),y.ElText.props),{},{fontSize:[String,Number],needWrap:{type:[String,Number],default:"0"},suffixIcon:{type:[String,Object],default:""},isPointer:{type:[String,Number]},showTooltip:{type:[String,Number],default:"0"},truncated:{type:[String,Number,Boolean],default:"0"}}),emits:["update:modelValue"],setup:function(e,t){var n,s=t.emit,l=t.attrs,u=(t.expose,t.slots),f=(0,o.computed)({get:function(){return e.modelValue},set:function(e){s("update:modelValue",e)}}),h=(0,o.inject)("lang"),g=null===(n=(0,o.getCurrentInstance)())||void 0===n?void 0:n.appContext,b=(0,o.computed)((function(){var t;return null===(t=e.config)||void 0===t?void 0:t.lcpPagePopupMapVO})),_=(0,o.computed)((function(){var t,n=null!==f.value&&void 0!==f.value?f.value:"";if("object"===(0,r.A)(n))try{n=a()(n)}catch(e){n=""}else"function"==typeof n&&(n="");var i,o=null==e||null===(t=e.options)||void 0===t?void 0:c()(t).call(t,(function(e){return e.columnValue==n}));return o?(null==h||null===(i=h.value)||void 0===i?void 0:p()(i).call(i,"zh"))>-1?o.columnDesc_zh:o.columnDesc:n})),E=(0,o.computed)((function(){var t,n=d()(t=m()(y.ElText.props)).call(t,(function(t,n){return t[n]=e[n],t}),{});return"boolean"!=typeof n.truncated&&(n.truncated="1"==n.truncated),n})),x=(0,o.inject)("buttonActions",{}),S=(0,o.computed)((function(){return _.value})),w=(0,o.computed)((function(){return"1"==(null==e?void 0:e.showTooltip)})),T=(0,v.D)({showTooltip:w,offset:(0,o.computed)((function(){var t=0;return"1"==e.needWrap&&(t=22,e.suffixIcon&&(t=36)),t})),displayValue:S,config:e.config,calcFn:function(e){var t;return null==e||null===(t=e.getBoundingClientRect)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t.width}}).generateTooltipWrap,A=(0,o.inject)("dynamicMapComp"),P=(0,o.inject)("hireRelatMapRules"),O=(0,o.inject)("components"),C=(0,o.inject)("selects"),k=(0,o.inject)("rootValue"),I=(0,o.inject)("dataLoad"),j=(0,o.inject)("rootForm");function N(){if(e.suffixIcon&&!e.disabled){var t={color:"#a8abb2",size:14},n=e.suffixIcon;return"string"==typeof n&&(b.value&&"Search"==n&&(t.onClick=(0,o.withModifiers)(l.onClick,["stop"]),t.style={cursor:"pointer"}),n=(0,o.resolveComponent)(n)),(0,o.createVNode)(y.ElIcon,t,{default:function(){return[(0,o.createVNode)(n,null,null)]}})}return null}return function(){var t,n,r;return T((n=(0,o.createVNode)(y.ElText,(0,o.mergeProps)((0,i.A)((0,i.A)({},l),E.value),{onClickCapture:(0,o.withModifiers)((function(t){var n,r,i,o,s;o=(null===(n=e.config)||void 0===n?void 0:n.clickActionKey)||(null===(r=e.config)||void 0===r?void 0:r.buttonActionKey)||(null===(i=e.config)||void 0===i?void 0:i.hireRelat),(s=x[o])&&s(e,{dynamicMapComp:A,hireRelatMapRules:P,components:O,selects:C,rootValue:k,dataLoad:I,rootForm:j},g)}),["stop","self"]),class:{cursor:"1"==e.isPointer}}),"function"==typeof(r=t=(0,i.A)({default:function(){return S.value}},u))||"[object Object]"===Object.prototype.toString.call(r)&&!(0,o.isVNode)(r)?t:{default:function(){return[t]}}),"1"==e.needWrap?(0,o.createVNode)("div",{class:{"resolver-custom-cust-input-wrap":!0,"resolver-custom-is-disabled":e.disabled}},[n,N()]):n),{maintain:!0})}}}},801:(e,t,n)=>{n.d(t,{m:()=>Pe,A:()=>Oe});var r=n(53474),i=n(37891),o=n(34963),s=n(49859),a=n(75286),l=n(8628),c=n.n(l);n(62010),n(2892);const u=(p={buildProps:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.buildProps,capitalize:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.capitalize,definePropType:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.definePropType,isNumber:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.isNumber,isString:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.isString,isUndefined:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.isUndefined,mutable:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.mutable,throwError:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_utils_index_mjs_0bb4f88e__.throwError},f={},n.d(f,p),f);var p,f;const d=(e=>{var t={};return n.d(t,e),t})({EVENT_CODE:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_constants_index_mjs_c9f35684__.EVENT_CODE,UPDATE_MODEL_EVENT:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_constants_index_mjs_c9f35684__.UPDATE_MODEL_EVENT}),h=(e=>{var t={};return n.d(t,e),t})({ElIcon:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_components_icon_index_mjs_cc6cca25__.ElIcon,default:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_components_icon_index_mjs_cc6cca25__.default});var m=n(27077);const y=(e=>{var t={};return n.d(t,e),t})({useNamespace:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_hooks_index_mjs_8115c98f__.useNamespace,useOrderedChildren:()=>__WEBPACK_EXTERNAL_MODULE_element_plus_es_hooks_index_mjs_8115c98f__.useOrderedChildren});var g,v=n(16781),b=n.n(v)()("tabsRootContextKey"),_=n(11393),E=n.n(_),x=n(49763),S=n.n(x),w=n(64007),T=n.n(w),A=n(56255),P=n.n(A),O=n(48079),C=n.n(O),k=Object.defineProperty,I=Object.defineProperties,j=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,L=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function R(e,t){var n;const r=(0,a.shallowRef)();var i,o;return(0,a.watchEffect)((()=>{r.value=e()}),(i=((e,t)=>{for(var n in t||(t={}))D.call(t,n)&&L(e,n,t[n]);if(N)for(var n of N(t))M.call(t,n)&&L(e,n,t[n]);return e})({},t),o={flush:null!=(n=null==t?void 0:t.flush)?n:"sync"},I(i,j(o)))),(0,a.readonly)(r)}const q="undefined"!=typeof window,B=(Object.prototype.toString,e=>"string"==typeof e),F=()=>{};function U(e){return!!(0,a.getCurrentScope)()&&((0,a.onScopeDispose)(e),!0)}function V(e){var t;const n="function"==typeof(r=e)?r():(0,a.unref)(r);var r;return null!=(t=null==n?void 0:n.$el)?t:n}q&&(null==(g=null==window?void 0:window.navigator)?void 0:g.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent),Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const $=q?window:void 0,W=q?window.document:void 0;function K(...e){let t,n,r,i;if(B(e[0])?([n,r,i]=e,t=$):[t,n,r,i]=e,!t)return F;let o=F;const s=(0,a.watch)((()=>V(t)),(e=>{o(),e&&(e.addEventListener(n,r,i),o=()=>{e.removeEventListener(n,r,i),o=F})}),{immediate:!0,flush:"post"}),l=()=>{s(),o()};return U(l),l}q&&window.navigator,q&&window.location,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},H="__vueuse_ssr_handlers__";z[H]=z[H]||{},z[H],Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var G,Q,X=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;function Z(e,t,n={}){const r=n,{window:i=$}=r,o=((e,t)=>{var n={};for(var r in e)Y.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&X)for(var r of X(e))t.indexOf(r)<0&&J.call(e,r)&&(n[r]=e[r]);return n})(r,["window"]);let s;const l=function(e,t=!1){const n=(0,a.ref)(),r=()=>n.value=Boolean(e());return r(),function(e,t=!0){(0,a.getCurrentInstance)()?(0,a.onMounted)(e):t?e():(0,a.nextTick)(e)}(r,t),n}((()=>i&&"ResizeObserver"in i)),c=()=>{s&&(s.disconnect(),s=void 0)},u=(0,a.watch)((()=>V(e)),(e=>{c(),l.value&&i&&e&&(s=new ResizeObserver(t),s.observe(e,o))}),{immediate:!0,flush:"post"}),p=()=>{c(),u()};return U(p),{isSupported:l,stop:p}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,new Map,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,(Q=G||(G={})).UP="UP",Q.RIGHT="RIGHT",Q.DOWN="DOWN",Q.LEFT="LEFT",Q.NONE="NONE",Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var ee=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(e,t,n)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))ne.call(t,n)&&ie(e,n,t[n]);if(te)for(var n of te(t))re.call(t,n)&&ie(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});var oe=n(29544),se=n.n(oe),ae=n(14166),le=n.n(ae),ce=n(63579),ue=n.n(ce),pe=(0,u.buildProps)({tabs:{type:(0,u.definePropType)(Array),default:function(){return(0,u.mutable)([])}}}),fe="ElTabBar";const de=se()({name:fe},{__name:"tab-bar",props:pe,setup:function(e,t){var n=t.expose,r=e,l=(0,a.getCurrentInstance)(),p=(0,a.inject)(b);p||(0,u.throwError)(fe,"<el-tabs><el-tab-bar /></el-tabs>");var f=(0,y.useNamespace)("tabs"),d=(0,a.ref)(),h=(0,a.ref)(),m=function(){return h.value=function(){var e,t,n,i=0,o=0,a=c()(e=["top","bottom"]).call(e,p.props.tabPosition)?"width":"height",f="width"===a?"x":"y",d="x"===f?"left":"top";return le()(t=r.tabs).call(t,(function(e){var t,n=null===(t=l.parent)||void 0===t||null===(t=t.refs)||void 0===t?void 0:t["tab-".concat(e.uid)];if(!n)return!1;if(!e.active)return!0;i=n["offset".concat((0,u.capitalize)(d))],o=n["client".concat((0,u.capitalize)(a))];var s=window.getComputedStyle(n);return"width"===a&&(r.tabs.length>1&&(o-=ue()(s.paddingLeft)+ue()(s.paddingRight)),i+=ue()(s.paddingLeft)),!1})),(0,s.A)((0,s.A)({},a,"".concat(o,"px")),"transform",E()(n="translate".concat((0,u.capitalize)(f),"(")).call(n,i,"px)"))}()};return(0,a.watch)((function(){return r.tabs}),(0,o.A)((0,i.A)().mark((function e(){return(0,i.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.nextTick)();case 2:m();case 3:case"end":return e.stop()}}),e)}))),{immediate:!0}),Z(d,(function(){return m()})),n({ref:d,update:m}),function(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{ref_key:"barRef",ref:d,class:(0,a.normalizeClass)([(0,a.unref)(f).e("active-bar"),(0,a.unref)(f).is((0,a.unref)(p).props.tabPosition)]),style:(0,a.normalizeStyle)(h.value)},null,6)}}}),he=de;var me=(0,u.buildProps)({panes:{type:(0,u.definePropType)(Array),default:function(){return(0,u.mutable)([])}},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),ye={tabClick:function(e,t,n){return n instanceof Event},tabRemove:function(e,t){return t instanceof Event}},ge="ElTabNav",ve=(0,a.defineComponent)({name:ge,props:me,emits:ye,setup:function(e,t){var n=t.expose,s=t.emit,l=(0,a.getCurrentInstance)(),p=(0,a.inject)(b);p||(0,u.throwError)(ge,"<el-tabs><tab-nav /></el-tabs>");var f=(0,y.useNamespace)("tabs"),g=function({document:e=W}={}){if(!e)return(0,a.ref)("visible");const t=(0,a.ref)(e.visibilityState);return K(e,"visibilitychange",(()=>{t.value=e.visibilityState})),t}(),v=function({window:e=$}={}){if(!e)return(0,a.ref)(!1);const t=(0,a.ref)(e.document.hasFocus());return K(e,"blur",(()=>{t.value=!1})),K(e,"focus",(()=>{t.value=!0})),t}(),_=(0,a.ref)(),x=(0,a.ref)(),w=(0,a.ref)(),A=(0,a.ref)(),O=(0,a.ref)(!1),k=(0,a.ref)(0),I=(0,a.ref)(!1),j=(0,a.ref)(!0),N=(0,a.computed)((function(){var e;return c()(e=["top","bottom"]).call(e,p.props.tabPosition)?"width":"height"})),D=(0,a.computed)((function(){var e,t="width"===N.value?"X":"Y";return{transform:E()(e="translate".concat(t,"(-")).call(e,k.value,"px)")}})),M=function(){if(_.value){var e=_.value["offset".concat((0,u.capitalize)(N.value))],t=k.value;if(t){var n=t>e?t-e:0;k.value=n}}},L=function(){if(_.value&&x.value){var e=x.value["offset".concat((0,u.capitalize)(N.value))],t=_.value["offset".concat((0,u.capitalize)(N.value))],n=k.value;if(!(e-n<=t)){var r=e-n>2*t?n+t:e-t;k.value=r}}},R=function(){var e=(0,o.A)((0,i.A)().mark((function e(){var t,n,r,o,s,l,u,f,d,h;return(0,i.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=x.value,O.value&&w.value&&_.value&&n){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,a.nextTick)();case 5:if(r=w.value.querySelector(".is-active")){e.next=8;break}return e.abrupt("return");case 8:o=_.value,s=c()(t=["top","bottom"]).call(t,p.props.tabPosition),l=r.getBoundingClientRect(),u=o.getBoundingClientRect(),f=s?n.offsetWidth-u.width:n.offsetHeight-u.height,d=k.value,h=d,s?(l.left<u.left&&(h=d-(u.left-l.left)),l.right>u.right&&(h=d+l.right-u.right)):(l.top<u.top&&(h=d-(u.top-l.top)),l.bottom>u.bottom&&(h=d+(l.bottom-u.bottom))),h=Math.max(h,0),k.value=Math.min(h,f);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){var t;if(x.value&&_.value){e.stretch&&(null===(t=A.value)||void 0===t||t.update());var n=x.value["offset".concat((0,u.capitalize)(N.value))],r=_.value["offset".concat((0,u.capitalize)(N.value))],i=k.value;r<n?(O.value=O.value||{},O.value.prev=i,O.value.next=i+r<n,n-i<r&&(k.value=n-r)):(O.value=!1,i>0&&(k.value=0))}},B=function(e){var t,n=e.code,r=d.EVENT_CODE.up,i=d.EVENT_CODE.down,o=d.EVENT_CODE.left,s=d.EVENT_CODE.right;if(c()(t=[r,i,o,s]).call(t,n)){var a,l=S()(e.currentTarget.querySelectorAll<HTMLDivElement>"[role=tab]:not(.is-disabled)"),u=T()(l).call(l,e.target);l[a=n===o||n===r?0===u?l.length-1:u-1:u<l.length-1?u+1:0].focus({preventScroll:!0}),l[a].click(),F()}},F=function(){j.value&&(I.value=!0)},U=function(){return I.value=!1};return(0,a.watch)(g,(function(e){"hidden"===e?j.value=!1:"visible"===e&&P()((function(){return j.value=!0}),50)})),(0,a.watch)(v,(function(e){e?P()((function(){return j.value=!0}),50):j.value=!1})),Z(w,q),(0,a.onMounted)((function(){return P()((function(){return R()}),0)})),(0,a.onUpdated)((function(){return q()})),n({scrollToActiveTab:R,removeFocus:U}),(0,a.watch)((function(){return e.panes}),(function(){return l.update()}),{flush:"post",deep:!0}),function(){var t,n,i,o=O.value?[(0,a.createVNode)("span",{class:[f.e("nav-prev"),f.is("disabled",!O.value.prev)],onClick:M},[(0,a.createVNode)(h.ElIcon,null,{default:function(){return[(0,a.createVNode)(m.ArrowLeft,null,null)]}})]),(0,a.createVNode)("span",{class:[f.e("nav-next"),f.is("disabled",!O.value.next)],onClick:L},[(0,a.createVNode)(h.ElIcon,null,{default:function(){return[(0,a.createVNode)(m.ArrowRight,null,null)]}})])]:null,l=C()(t=e.panes).call(t,(function(t,n){var r,i,o,l,c,u=t.uid,y=t.props.disabled,g=null!==(r=null!==(i=t.props.name)&&void 0!==i?i:t.index)&&void 0!==r?r:"".concat(n),v=!y&&(t.isClosable||e.editable),b=t.props.hidden;t.index="".concat(n);var _=v?(0,a.createVNode)(h.ElIcon,{class:"is-icon-close",onClick:function(e){return s("tabRemove",t,e)}},{default:function(){return[(0,a.createVNode)(m.Close,null,null)]}}):null,x=(null===(o=(l=t.slots).label)||void 0===o?void 0:o.call(l))||t.props.label,S=!y&&t.active?0:-1;return b?null:(0,a.createVNode)("div",{ref:"tab-".concat(u),class:[f.e("item"),f.is(p.props.tabPosition),f.is("active",t.active),f.is("disabled",y),f.is("closable",v),f.is("focus",I.value)],style:b?{display:"none"}:{},id:"tab-".concat(g),key:"tab-".concat(u),"aria-controls":"pane-".concat(g),role:"tab","aria-selected":t.active,tabindex:S,onFocus:function(){return F()},onBlur:function(){return U()},onClick:function(e){U(),s("tabClick",t,g,e)},onKeydown:function(e){!v||e.code!==d.EVENT_CODE.delete&&e.code!==d.EVENT_CODE.backspace||s("tabRemove",t,e)}},[(0,a.createVNode)("div",{title:x,class:"tabs__item-wrap"},E()(c=[x,_]).call(c))])}));return(0,a.createVNode)("div",{ref:w,class:[f.e("nav-wrap"),f.is("scrollable",!!O.value),f.is(p.props.tabPosition)]},[o,(0,a.createVNode)("div",{class:f.e("nav-scroll"),ref:_},[(0,a.createVNode)("div",{class:[f.e("nav"),f.is(p.props.tabPosition),f.is("stretch",e.stretch&&c()(n=["top","bottom"]).call(n,p.props.tabPosition))],ref:x,style:D.value,role:"tablist",onKeydown:B},E()(i=[e.type?null:(0,a.createVNode)(he,{ref:A,tabs:(0,r.A)(e.panes)},null),l]).call(i))])])}}});const be=ve;var _e=(0,u.buildProps)({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Function,default:function(){return!0}},stretch:Boolean}),Ee=function(e){return(0,u.isString)(e)||(0,u.isNumber)(e)},xe=(0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)((0,s.A)({},d.UPDATE_MODEL_EVENT,(function(e){return Ee(e)})),"tabClick",(function(e,t){return t instanceof Event})),"tabChange",(function(e){return Ee(e)})),"edit",(function(e,t){var n;return c()(n=["remove","add"]).call(n,t)})),"tabRemove",(function(e){return Ee(e)})),"tabAdd",(function(){return!0}));const Se=(0,a.defineComponent)({name:"ElTabs",props:_e,emits:xe,setup:function(e,t){var n,l=t.emit,c=t.slots,p=t.expose,f=(0,y.useNamespace)("tabs"),g=(0,y.useOrderedChildren)((0,a.getCurrentInstance)(),"ElTabPane"),v=g.children,_=g.addChild,E=g.removeChild,x=(0,a.ref)({}),S=(0,a.ref)(null!==(n=e.modelValue)&&void 0!==n?n:"0"),w=function(){var t=(0,o.A)((0,i.A)().mark((function t(n){var r,o,s,a,c=arguments;return(0,i.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=c.length>1&&void 0!==c[1]&&c[1],S.value!==n&&!(0,u.isUndefined)(n)){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,t.next=6,null===(o=e.beforeLeave)||void 0===o?void 0:o.call(e,n,S.value);case 6:!1!==t.sent&&(S.value=n,r&&(l(d.UPDATE_MODEL_EVENT,n),l("tabChange",n)),null===(s=x.value)||void 0===s||null===(a=s.removeFocus)||void 0===a||a.call(s)),t.next=12;break;case 10:t.prev=10,t.t0=t.catch(3);case 12:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),T=function(e,t,n){e.props.disabled||(w(t,!0),l("tabClick",e,n))},A=function(e,t){e.props.disabled||(0,u.isUndefined)(e.props.name)||(t.stopPropagation(),l("edit",e.props.name,"remove"),l("tabRemove",e.props.name))},P=function(){l("edit",void 0,"add"),l("tabAdd")};return(0,a.watch)((function(){return e.modelValue}),(function(e){return w(e)})),(0,a.watch)(S,(0,o.A)((0,i.A)().mark((function e(){var t;return(0,i.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.nextTick)();case 2:null===(t=x.value)||void 0===t||t.scrollToActiveTab();case 3:case"end":return e.stop()}}),e)})))),(0,a.provide)(b,{props:e,currentName:S,registerPane:_,unregisterPane:E}),p({currentName:S}),function(){var t=c["add-icon"],n=e.editable||e.addable?(0,a.createVNode)("span",{class:f.e("new-tab"),tabindex:"0",onClick:P,onKeydown:function(e){e.code===d.EVENT_CODE.enter&&P()}},[t?(0,a.renderSlot)(c,"add-icon"):(0,a.createVNode)(h.default,{class:f.is("icon-plus")},{default:function(){return[(0,a.createVNode)(m.Plus,null,null)]}})]):null,i=(0,a.createVNode)("div",{class:[f.e("header"),f.is(e.tabPosition)]},[n,(0,a.createVNode)(be,{ref:x,currentName:S.value,editable:e.editable,type:e.type,panes:v.value,stretch:e.stretch,onTabClick:T,onTabRemove:A},null)]),o=(0,a.createVNode)("div",{class:f.e("content")},[(0,a.renderSlot)(c,"default")]);return(0,a.createVNode)("div",{class:["resolver-tabs",f.b(),f.m(e.tabPosition),(0,s.A)((0,s.A)({},f.m("card"),"card"===e.type),f.m("border-card"),"border-card"===e.type)]},(0,r.A)("bottom"!==e.tabPosition?[i,o]:[o,i]))}}});var we=(0,u.buildProps)({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean,hidden:Boolean}),Te=["id","aria-hidden","aria-labelledby"],Ae="ElTabPane";const Pe=se()({name:Ae},{__name:"tab-pane",props:we,setup:function(e){var t=e,n=(0,a.getCurrentInstance)(),r=(0,a.useSlots)(),i=(0,a.inject)(b);i||(0,u.throwError)(Ae,"usage: <el-tabs><el-tab-pane /></el-tabs/>");var o=(0,y.useNamespace)("tab-pane"),s=(0,a.ref)(),l=(0,a.computed)((function(){return t.closable||i.props.closable})),c=R((function(){var e;return i.currentName.value===(null!==(e=t.name)&&void 0!==e?e:s.value)})),p=(0,a.ref)(c.value),f=(0,a.computed)((function(){var e;return null!==(e=t.name)&&void 0!==e?e:s.value})),d=R((function(){return!t.lazy||p.value||c.value}));(0,a.watch)(c,(function(e){e&&(p.value=!0)}));var h=(0,a.reactive)({uid:n.uid,slots:r,props:t,paneName:f,active:c,index:s,isClosable:l});return(0,a.onMounted)((function(){i.registerPane(h)})),(0,a.onUnmounted)((function(){i.unregisterPane(h.uid)})),function(e,t){return(0,a.unref)(d)?(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:0,id:"pane-".concat(f.value),class:(0,a.normalizeClass)((0,a.unref)(o).b()),role:"tabpanel","aria-hidden":!(0,a.unref)(c),"aria-labelledby":"tab-".concat(f.value)},[(0,a.renderSlot)(e.$slots,"default")],10,Te)),[[a.vShow,(0,a.unref)(c)]]):(0,a.createCommentVNode)("v-if",!0)}}}),Oe=Se},32820:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(53811),i=n(86226),o=n.n(i),s=n(50697),a=n.n(s),l=n(64007),c=n.n(l),u=n(75286),p=n(84061),f={key:0,class:"header"},d=["src"],h={class:"footer"},m={class:"dialog-footer"};const y={__name:"ThirdPartyFrame",props:{src:{type:String,default:""},awalyCloseCb:{type:Function,default:null},closeCb:{type:Function,default:null},title:{type:String,default:""},showClose:{type:Boolean,default:!0},lang:String},setup:function(e,t){var n=t.expose,r=(0,u.ref)(null),i=e,o=(0,u.computed)((function(){return i.lang})),s=null,a=(0,u.ref)(!1);n({dialogVisible:a}),(0,u.watch)(a,(function(e,t){var n;!e&&t&&(s&&s(),null===(n=i.awalyCloseCb)||void 0===n||n.call(i),r.value=null,s=null)}));var l=function(e){switch(console.log("event===:",e),e.data.submitType){case"CCM_CLOSE":case"PROCUREMENT_CONTRACT_SUBMIT":console.log("props===:",i),s=i.closeCb,a.value=!1}};return(0,u.onMounted)((function(){(0,u.watch)(r,(function(e){e&&window&&window.addEventListener("message",l)}),{immediate:!0})})),(0,u.onUnmounted)((function(){window&&window.removeEventListener("message",l)})),function(t,n){return(0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(p.ElDialog),{class:"third-party-frame custom-component-dialog",width:"90%",modelValue:a.value,"onUpdate:modelValue":n[1]||(n[1]=function(e){return a.value=e}),"close-on-click-modal":!1},{default:(0,u.withCtx)((function(){return[i.title?((0,u.openBlock)(),(0,u.createElementBlock)("div",f,[(0,u.createElementVNode)("span",null,(0,u.toDisplayString)(i.title),1)])):(0,u.createCommentVNode)("v-if",!0),(0,u.createCommentVNode)(" :style=\"{marginTop: !!props.title ? 0 : '16px'}\" "),(0,u.createElementVNode)("iframe",{ref_key:"iframeRef",ref:r,class:"iframe-box",src:a.value?i.src:""},null,8,d),(0,u.createElementVNode)("div",h,[(0,u.createElementVNode)("div",m,[e.showClose?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(p.ElButton),{key:0,onClick:n[0]||(n[0]=function(e){return a.value=!1})},{default:(0,u.withCtx)((function(){var e;return[(0,u.createTextVNode)((0,u.toDisplayString)(c()(e=o.value).call(e,"zh")>-1?"关闭":"Close"),1)]})),_:1})):(0,u.createCommentVNode)("v-if",!0)])])]})),_:1},8,["modelValue"])}}};n(65190),n(85304);const g=(0,n(66262).A)(y,[["__scopeId","data-v-60756844"]]);var v=null;function b(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v)return o()(t=a()(n)).call(t,(function(e){v.props[e]=n[e],v.vm.exposed.dialogVisible.value=!0})),v.close;var i=document.createElement("div"),s=(0,u.createVNode)(g,(0,r.A)({},n));return(0,u.render)(s,i),document.body.appendChild(i.firstElementChild),v={vnode:s,vm:s.component,props:null===(e=s.component)||void 0===e?void 0:e.props,close:function(){s.component.exposed.dialogVisible.value=!1}},s.component.exposed.dialogVisible.value=!0,v.close}},90722:(e,t,n)=>{n.d(t,{K:()=>T});var r=n(22204),i=n(49859),o=n(56255),s=n.n(o),a=n(66615),l=n.n(a),c=n(50697),u=n.n(c),p=n(96319),f=n.n(p),d=n(86226),h=n.n(d),m=(n(27495),n(71761),n(25440),n(75286)),y=n(44413),g=n(8628),v=n.n(g),b=n(11393),_=n.n(b),E=(n(23288),n(79432),n(90906),n(48618)),x=n(85352),S=n(17427);function w(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"update:modelValue",a=this.hireRelatMapRules,l=this.messageInstance,c=this.rootValue,u=this.ruleExecuter,p=this.dataLoad,f=this.dynamicMapComp,d=this.lang,h=this._mapComp,g=a.value[e.hireRelat],b=e.metaCode;if("update:modelValue"!==o){var w=o.match(/^update:(\w+)$/);if(!w)return;b=w[1];var T=e.dynamicHireRelat.replace(/->\w+$/,"->".concat(b));e=f[T]}var A=(0,m.computed)({get:function(){var n,r;if(e){var i=null!==(n=b?null===(r=t.modelValue)||void 0===r?void 0:r[b]:t.modelValue)&&void 0!==n?n:null;return"update:modelValue"!==o||i||s()((function(){!function(e){if((e.defaultVal||e.defaultValue)&&!e.bindValue&&0!==e.bindValue){var t=e.defaultVal||e.defaultValue,n=null;try{var r,i;if("string"==typeof t){var o=null;if("string"==typeof t&&(o=t.match(/^_route:(.*)$/))){var s,a=o[1],l=null==e||null===(s=e.route)||void 0===s?void 0:s.query;n=null==l?void 0:l[a]}else if("string"==typeof t&&/^_lang$/.test(t))n=null==e?void 0:e._lang;else if(/^{[\w\W]*}$/.test(t)||/^\[[\w\W]*\]$/.test(t))n=JSON.parse(t);else{var c;n=t===x.DE.CURRENT_DATE||"currentDate"===t?(0,E.Yq)(new Date,"yyyy-MM-dd"):v()(c=["true","false"]).call(c,t)?"true"==t:t}}else n=(0,m.toRaw)(t);console.log(_()(r=_()(i="".concat(e.dynamicHireRelat,",")).call(i,e.hireRelat," to set defaultValue, ")).call(r,n)),e.refValue=n}catch(t){console.log("set default val fail, config",e,t)}}}(e)}),0),e&&(e.bindValue=i),e&&(!p.value||e.eventInit||e.notInit||s()((function(){null==u||u.run({rootValue:c,rules:g,config:e,dynamicMapComp:f,lang:d,messageInstance:l,_mapComp:h,isInit:!0}),y.Ay.call({config:e,dynamicMapComp:f,lang:d,_mapComp:h,messageInstance:l},g,!0),(0,S.Ts)(e,"eventInit",!0)}),0)),i}},set:function(o){if(e){var a=t.modelValue,p=b;if(p){if(a){var v;if(null!==(v=e)&&void 0!==v&&v.frameSet&&null!=a&&a[p]&&("object"!==(0,r.A)(a[p])&&"object"!==(0,r.A)(o)||(o=(0,S.Vv)(a[p],o))),(0,S.vr)(a[p])&&(0,S.vr)(o)&&a[p]===o)return;try{t.modelValue[p]=o}catch(t){console.log("config",e,p)}}else e.parent&&(e.parent.frameSet=!0),(0,m.nextTick)((function(){e.parent&&(e.parent.frameSet=!1)})),n("update:modelValue",(0,i.A)({},p,o));e&&s()((function(){null==u||u.run({rootValue:c,rules:g,config:e,dynamicMapComp:f,lang:d,messageInstance:l,_mapComp:h}),y.Ay.call({config:e,dynamicMapComp:f,lang:d,_mapComp:h,messageInstance:l},g)}),0)}}}});return A}function T(e,t){var n=(0,m.inject)("hireRelatMapRules"),r=(0,m.inject)("dataLoad"),i=(0,m.inject)("dynamicMapComp"),o=(0,m.inject)("lang"),s=(0,m.inject)("_mapComp"),a=(0,m.inject)("rootValue"),c=(0,m.inject)("_ruleExecuter"),p=(0,m.inject)("_messageInstance"),d={hireRelatMapRules:n,dataLoad:r,dynamicMapComp:i,lang:o,rootValue:a,_mapComp:s,ruleExecuter:c,messageInstance:null==p?void 0:p.value},y=(0,m.reactive)({}),g=w.call(d,e.config,e,t);return y["onUpdate:modelValue"]=function(e){g.value=e},y.modelValue=g,{modelValue:g,vModelObjs:y,initVmodels:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l()(n)||(n=u()(n)),n=f()(n).call(n,(function(e){return e.match(/^update:(\w+)$/)})),h()(n).call(n,(function(n){if("string"==typeof n){var r=w.call(d,e.config,e,t,n);if(r){var i=n.match(/^update:(\w+)$/);y["onUpdate:".concat(i[1])]=function(e){r.value=e},y[i[1]]=r}}})),y["onUpdate:modelValue"]=function(e){g.value=e},y.modelValue=g}}}},50510:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(75286),i=n(66615),o=n.n(i),s=n(48079),a=n.n(s),l=n(11393),c=n.n(l),u=n(17427),p=n(89932);const f={name:"Renderer",inheritAttrs:!1,props:{config:{type:[Object,Array],default:function(){return null}},modelValue:{default:null},rowScope:{type:[Object],default:function(){return null}},mode:{type:String,default:""},additionConfigs:{type:Array,default:function(){return[]}}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit,i=t.attrs,s=(0,r.computed)({get:function(){return e.modelValue},set:function(e){n("update:modelValue",e)}}),l=(0,r.inject)("_getNativeComps"),f=(0,r.inject)("_loadModuleCache"),d=(0,r.inject)("_isH5"),h=(0,r.inject)("injectMode",""),m=e.mode||h;return(0,r.provide)("injectMode",m),function(){var t=o()(e.config)?e.config:[e.config];return t&&t.length?a()(t).call(t,(function(t){if((null==t?void 0:t.displayType)==u.Op)return null;var n,o=(0,u.AP)(t,m),a=(0,u.fw)({config:t,disabled:o,getNativeComps:l,isH5:null==d?void 0:d.value,loadModuleCache:f});return a?(0,u.ZB)(t,o,null==d?void 0:d.value)((0,r.createVNode)(p.A,(0,r.mergeProps)({additionConfigs:e.additionConfigs,key:c()(n="".concat(t.metaId,"-")).call(n,t.rowIndex),component:a,config:t},i,{mode:m,rowScope:e.rowScope,modelValue:s.value,"onUpdate:modelValue":function(e){return s.value=e}}),null)):void 0})):null}}}},19022:(e,t,n)=>{n.d(t,{Ct:()=>k,MM:()=>N,NR:()=>R,Vf:()=>L,Vr:()=>C,Xe:()=>D,cv:()=>I,qK:()=>q});var r=n(53474),i=n(53811),o=(n(48598),n(44114),n(2892),n(84864),n(57465),n(27495),n(87745),n(90906),n(38781),n(71761),n(25440),n(86226)),s=n.n(o),a=n(31721),l=n.n(a),c=n(48079),u=n.n(c),p=n(36586),f=n.n(p),d=n(18979),h=n.n(d),m=n(11393),y=n.n(m),g=n(71426),v=n.n(g),b=n(8628),_=n.n(b),E=n(96319),x=n.n(E),S=(n(66615),n(385)),w=n.n(S),T=n(73363),A=n.n(T),P=n(17427),O=["setShow","setHidden"],C={};function k(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;if(!n)return"";var i=this.config,o=(this.dynamicMapComp,i.hireRelat),s=void 0===o?"":o;if(i.dynamicHireRelat,s===n)return i.bindValue;var a=j.call(this,n,i);return 1!==a.length?null:r?null===(e=a[0])||void 0===e?void 0:e.refValue:null===(t=a[0])||void 0===t?void 0:t.bindValue}function I(e,t){var n=this;if(e)if((0,P.Qd)(e))(0,P.$3)(e,"refValue")&&(e.refValue=t);else{var r=this.config,i=j.call(this,e,r);s()(i).call(i,(function(e){if((0,P.$3)(e,"refValue"))e.refValue=t;else{var r,i,o=n._mapComp;null!=o&&null!==(r=o.value)&&void 0!==r&&r[e.hireRelat]&&(C[e.hireRelat]||(C[e.hireRelat]=[]),l()(i=C[e.hireRelat]).call(i,(function(e){return(null==e?void 0:e.rules)===(null==n?void 0:n.rules)&&(null==e?void 0:e.config)===(null==n?void 0:n.config)}))||C[e.hireRelat].push(n))}}))}}function j(e,t,n){for(var r,i,o,a=this,c=t.dynamicHireRelat,p=void 0===c?"":c,d=u()(r=p.split("->")).call(r,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?{idx:f()(t[2]),code:t[1]}:{idx:-1,code:e}})),m=-1,g=e.split("->"),b=0;b<g.length;b++){var E=g[b];if(d[b].code!==E){m=b;break}}var x=h()(g).call(g,m),S=u()(i=h()(d).call(d,0,m)).call(i,(function(e){var t,n=e.idx,r=e.code;return-1!==n?y()(t="".concat(r,"[")).call(t,n,"]"):r})).join("->"),w=S,T=null,A=S.match(/^([\w\W]*)\[(\d*)\]$/);A&&(w=A[1],T=A[2]);var P=this.dynamicMapComp,k=this._mapComp,I=[];if(w)I=[P[w]];else{var j=x.shift();I=[P[j]]}for(var N,D=function(){var e=x.shift(),t=[];s()(I).call(I,(function(r){if(r.multiPmPageMetaList)if(null!==T){var i=r.multiPmPageMetaList[T],o=i&&v()(i).call(i,(function(t){return t.metaCode===e}));if(!o)return;t.push(o),T=null}else{var a;if(_()(O).call(O,n)){var l,c=null==r||null===(l=r.pmPageMetaList)||void 0===l?void 0:v()(l).call(l,(function(t){return t.metaCode===e}));if(!c)return;t.push(c)}s()(a=r.multiPmPageMetaList).call(a,(function(n){var r=v()(n).call(n,(function(t){return t.metaCode===e}));r&&t.push(r)}))}else{var u,p=null==r||null===(u=r.pmPageMetaList)||void 0===u?void 0:v()(u).call(u,(function(t){return t.metaCode===e}));if(!p)return;t.push(p)}})),I=t};x.length;)D();return null!=k&&null!==(o=k.value)&&void 0!==o&&o[e]&&!I.length&&(C[e]||(C[e]=[]),l()(N=C[e]).call(N,(function(e){return(null==e?void 0:e.rules)===(null==a?void 0:a.rules)&&(null==e?void 0:e.config)===(null==a?void 0:a.config)}))||C[e].push(this)),I}function N(e,t){var n=M(e),r=M(t);return n&&r?Number(e)>Number(t):e+"">t+""}function D(e,t){var n=M(e),r=M(t);return n&&r?Number(e)<Number(t):e+""<t+""}function M(e){return!isNaN(Number(e))}function L(e,t){if(!e)return null;var n=this.config;return j.call(this,e,n,t)}function R(e){if(!e)return[];var t=[],n=e.pmRuleDefVoList,o=e.pmRuleDefVOList,a=n||(null==o?void 0:x()(o).call(o,(function(e){return"1"==(null==e?void 0:e.ruleType)})))||[];return s()(a).call(a,(function(e){var n=e.pmRuleEventRelVOList||e.pmRuleEventRelVoList||[],o=u()(n).call(n,(function(t){return(0,i.A)((0,i.A)({},t),{},{ruleType:e.ruleType})}));t.push.apply(t,(0,r.A)(o))})),t}function q(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=t?t.split("->"):[],i=n?n.split("->"):[],o=-1,s=0;-1===o&&s<r.length&&s<i.length;){var a=r[s],l=new RegExp("^".concat(a,"(\\[\\d+\\])?$")),c=i[s];l.test(c)?(w()(r).call(r,s,1,c),s++):o=s}var u=A()(r).call(r,(function(e,t){var n=t.replace(/([\[\]]{1})/g,(function(e,t){return"\\".concat(t)}));return e+(e?"->".concat(n,"(\\[\\d+\\])?"):"".concat(n,"(\\[\\d+\\])?"))}),""),p=new RegExp("^".concat(u,"$"));return x()(e).call(e,(function(e){return p.test(e)}))}},44413:(e,t,n)=>{n.d(t,{Ay:()=>ee,Zt:()=>R});var r=n(31564),i=n(32321),o=n(99029),s=n(63520),a=n(42984);n(44114),n(27495),n(71761);var l=n(86226),c=n.n(l),u=n(11393),p=n.n(u),f=n(56255),d=n.n(f),h=n(50697),m=n.n(h),y=n(96319),g=n.n(y),v=n(48079),b=n.n(v),_=n(36586),E=n.n(_),x=n(22204),S=n(49859),w=(n(23288),n(2892),n(79432),n(84864),n(57465),n(87745),n(90906),n(38781),n(66615)),T=n.n(w),A=n(64007),P=n.n(A),O=n(8628),C=n.n(O),k=n(31721),I=n.n(k),j=n(19022),N=n(17427),D={COMPONENT:1,SYSTEM:2,SELF:3,COMPONENT_ENMU:4,NULL:5},M=(0,S.A)((0,S.A)((0,S.A)((0,S.A)((0,S.A)({},D.COMPONENT,(function(e){var t,n=e.tabpanelCode,r=e.value;return j.Ct.call(this,p()(t="".concat(n?n+"->":"")).call(t,r))})),D.SYSTEM,(function(e){return function(e){var t=new Date;switch(e){case q.currentDate:return(0,N.Yq)(new Date,"yyyy-MM-dd");case q.currentTimestamp:return(new Date).getTime();case q.CurrentYear:return(0,N.Yq)(new Date,"yyyy");case q.CurrentMonth:return(0,N.Yq)(new Date,"MM");case q.CurrentDay:return(0,N.Yq)(new Date,"dd");case q.CurrentAfter30Day:return t.setDate(t.getDate()+30),(0,N.Yq)(t,"yyyy-MM-dd");case q.CurrentBefore30Day:return t.setDate(t.getDate()-30),(0,N.Yq)(t,"yyyy-MM-dd");default:return e}}(e.value)})),D.SELF,(function(e){return e.value})),D.COMPONENT_ENMU,(function(e){return e.value})),D.NULL,(function(){return null}));function L(e){var t=this,n=e||{},r=n.eventExpress,i=(n.pmRuleTargetEventVoList,n.ruleType,n.tabpanelCode);if(!r)return!1;var o=JSON.parse(r),s=o.relation,a=o.conditions;return b()(a).call(a,(function(e){var n,r=e.refType,o=e.refValue,s=e.targetType,a=e.targetValue;if(D.COMPONENT==r){var l,c=j.Vf.call(t,p()(l="".concat(i?i+"->":"")).call(l,o));if(!c||1!==c.length)return!1}if(!M[r])return!1;var u=M[r].call(t,{tabpanelCode:i,value:o});if(D.COMPONENT==s){var f,d=j.Vf.call(t,p()(f="".concat(i?i+"->":"")).call(f,a));if(!d||1!==d.length)return!1}if(!M[s])return!1;var h=M[s].call(t,{tabpanelCode:i,value:a}),m=u=null==u?"":u,y=h=null==h?"":h;switch(u==Number(u)&&h==Number(h)&&(m=Number(u),y=Number(h)),e.symbol){case 1:return m>y;case 2:return m>=y;case 3:return m<y;case 4:return m<=y;case 5:return u==h||!h&&(0,N.cy)(u)&&!u.length;case 6:return u!=h;case 7:return"number"==typeof u&&(u="".concat(u)),!(!T()(u)&&"string"!=typeof u)&&P()(u).call(u,h)>-1;case 8:return!!C()(n=["string","number"]).call(n,(0,x.A)(h))&&new RegExp(h).test(u);default:return!1}}))[1==s?"every":"some"]((function(e){return e}))}function R(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return c()(e).call(e,(function(e){var n=function(e){var t=[],n=e||{},r=n.eventExpress,i=(n.pmRuleTargetEventVoList,n.tabpanelCode);if(!r)return!1;var o=JSON.parse(r).conditions,s=void 0===o?[]:o;return c()(s).call(s,(function(n){var r,o;n.refType!=D.COMPONENT&&n.targetType!=D.COMPONENT||(n.refType==D.COMPONENT&&t.push({key:i?p()(r="".concat(i,"->")).call(r,n.refCode||n.refValue):n.refCode||n.refValue,rules:[e]}),n.targetType==D.COMPONENT&&t.push({key:i?p()(o="".concat(i,"->")).call(o,n.targetValue):n.targetValue,rules:[e]}))})),t}(e);n&&n.length&&c()(n).call(n,(function(e){var n=e.key,r=void 0===n?"":n,i=e.rules,o=void 0===i?[]:i;t[r]?c()(o).call(o,(function(e){var n;null!==(n=t[r])&&void 0!==n&&I()(n).call(n,(function(t){return(null==t?void 0:t.relId)===(null==e?void 0:e.relId)}))||t[r].push(e)})):t[r]=o}))})),t}((0,j.NR)(e))}var q={currentDate:"1",currentTimestamp:"2",CurrentYear:"3",CurrentMonth:"4",CurrentDay:"5",CurrentAfter30Day:"6",CurrentBefore30Day:"7"};var B=n(53474),F=n(85569),U=n.n(F),V=n(38048),$=n.n(V),W=n(9665),K=n.n(W),z=(n(25440),n(85352)),H=(0,B.A)(z.Lu),G=[],Q={0:"setHidden",1:"setRequired",2:"setDisable",3:"setClear",4:"setDefaultValue",5:"limitDataRange",6:"setPopup",7:"openThePage",8:"setShow",9:"setNoRequired",10:"setNoDisable",11:"setDisableNotEffect",12:"setRequiredNotEffect",13:"setNoRequiredNotEffect",14:"setNoDisableNotEffect",16:"setProps"},X={setDefaultValue:function(e,t,n){var r,i=e.targetObj,o=e.targetObjVal;if(i){var s,a=this.config,l=this.dynamicMapComp,c=p()(r="".concat(n?n+"->":"")).call(r,i),u=/^_replace:/.test(o);u&&(o=function(e,t){var n=t.config,r=t.dynamicMapComp;return null==e?void 0:e.replace(/\$\{([^}]+)\}/g,(function(e,t,i){var o,s,a,l=null,c=null===(o=t)||void 0===o||null===(s=o.match)||void 0===s?void 0:s.call(o,/^_absoluteTarget:(.+)$/);if(t===z.DE.REF_VAL)t=null!==(a=null==n?void 0:n.bindValue)&&void 0!==a?a:"";else if(t===z.DE.CURRENT_DATE)t=(0,N.Yq)(new Date,"yyyy-MM-dd");else if(l=t.match(/^_route:(.*)$/)){var u,p=l[1],f=null==n||null===(u=n.route)||void 0===u?void 0:u.query;t=null==f?void 0:f[p]}else if("string"==typeof t&&/^_lang$/.test(t))t=null==n?void 0:n._lang;else if(null!=c&&c[1]){var d=null==r?void 0:r[c[1]];t=(null==d?void 0:d.bindValue)||""}else{var h,m,y=null===(h=t)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_assgin:(.*)$/);t=y?null==y?void 0:y[1]:""}return t}))}(null===(s=o)||void 0===s?void 0:s.replace(/^_replace:/,""),{config:a,dynamicMapComp:l}));var f="";try{f=JSON.parse(o)}catch(e){f=o||""}if("number"==typeof f&&(f="".concat(f)),u);else if(f===z.DE.REF_VAL){var d;f=null!==(d=null==a?void 0:a.bindValue)&&void 0!==d?d:""}else if(f===z.DE.CURRENT_DATE)f=(0,N.Yq)(new Date,"yyyy-MM-dd");else{var h,m,y=null,g=null===(h=f)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_absoluteTarget:(.+)$/);if("string"==typeof f&&(y=f.match(/^_route:(.*)$/))){var v,b=y[1],_=null==a||null===(v=a.route)||void 0===v?void 0:v.query;f=null==_?void 0:_[b]}else if("string"==typeof f&&/^_lang$/.test(f))f=null==a?void 0:a._lang;else if("string"==typeof f&&null!=g&&g[1]){var E=null==l?void 0:l[g[1]];f=(null==E?void 0:E.bindValue)||""}else{var x,S,w=null===(x=f)||void 0===x||null===(S=x.match)||void 0===S?void 0:S.call(x,/^_assgin:(.*)$/);if(w)f=null==w?void 0:w[1];else{var T=j.Ct.call(this,c,!0);(T||"0"==T)&&(f=T)}}}j.cv.call(this,c,f)}},setClear:function(e,t,n){var r;if(!t){var i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o);c()(s).call(s,(function(e){if(e){var t="";C()(H).call(H,e.metaType||e.labelType)&&(t=[]),C()(G).call(G,e.metaType||e.labelType)&&(t=!1),(0,N.$3)(e,"refValue")&&(e.refValue=t)}}))}}},setDisable:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o);return c()(s).call(s,(function(e){e&&(e.editFlag="0")})),function(){c()(s).call(s,(function(e){e&&(e.editFlag="1")}))}}},setDisableNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o),a=[];return c()(s).call(s,(function(e){var t=e&&e.editFlag;a.push(t),e&&(e.editFlag="0")})),function(){c()(s).call(s,(function(e,t){var n=a[t];e&&(e.editFlag=n)}))}}},setRequired:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o);return c()(s).call(s,(function(e){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){c()(s).call(s,(function(e){e&&(e.requiredFlag="0"),e&&e.refConfig&&(e.refConfig.requiredFlag="0")}))}}},setRequiredNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o),a=[];return c()(s).call(s,(function(e){var t=e&&e.requiredFlag;a.push(t),e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){c()(s).call(s,(function(e,t){var n=a[t];e&&(e.requiredFlag=n),e&&e.refConfig&&(e.refConfig.requiredFlag=n)}))}}},setHidden:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o,"setHidden");return d()((function(){c()(s).call(s,(function(e){e&&/^\d+$/.test(e.displayType)&&(e.displayType="0"),e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}),0),function(){c()(s).call(s,(function(e,t){e&&/^\d+$/.test(e.displayType)&&(e.displayType="1"),e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.displayType="1"),e&&e.refConfig&&(e.refConfig.hidden="0")}))}}},setShow:function(e,t,n,r){var i,o=e.targetObj;if(o){var s=p()(i="".concat(n?n+"->":"")).call(i,o),a=j.Vf.call(this,s,"setShow");return c()(a).call(a,(function(e){e&&/^\d+$/.test(e.displayType)&&(e.displayType="1"),e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.displayType="1"),e&&e.refConfig&&(e.refConfig.hidden="0")})),function(){return d()((function(){c()(a).call(a,(function(e,t){e&&/^\d+$/.test(e.displayType)&&(e.displayType="0"),e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}),0)}}},setNoRequired:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o),a=[];return c()(s).call(s,(function(e){e&&"0"!=e.requiredFlag&&(e&&(e.requiredFlag="0"),a.push((function(){e&&(e.requiredFlag="1")})))})),function(){c()(a).call(a,(function(e){return e()}))}}},setNoRequiredNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o),a=[];return c()(s).call(s,(function(e){var t=e&&e.requiredFlag;a.push(t),e&&(e.requiredFlag="0")})),function(){c()(s).call(s,(function(e,t){var n=a[t];e&&(e.requiredFlag=n)}))}}},setNoDisable:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o);return c()(s).call(s,(function(e){e&&(e.editFlag="1")})),function(){c()(s).call(s,(function(e){e&&(e.editFlag="0")}))}}},setNoDisableNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var o=p()(r="".concat(n?n+"->":"")).call(r,i),s=j.Vf.call(this,o),a=[];return c()(s).call(s,(function(e){var t=e&&e.editFlag;a.push(t),e&&(e.editFlag="1")})),function(){c()(s).call(s,(function(e,t){var n=a[t];e&&(e.editFlag=n)}))}}},limitDataRange:function(e,t,n){var r,i=this,o=e.targetObj,s=e.targetObjVal,a=void 0===s?"":s;if(o){var l,u=p()(r="".concat(n?n+"->":"")).call(r,o);if((l=(null==a?void 0:P()(a).call(a,"~"))>-1?a.split("~"):a.split(","))&&l.length){var f=[],d=j.Vf.call(this,u);return c()(d).call(d,(function(t){var n=!1,r={};if(f.push(r),t){var o=i.config,s="";if(-1!==(0,N.Tn)(["ElDatePicker"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var a=l[0],p=l[1];try{s=(0,N.Ho)({extendAttr:U()({min:a,max:p}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==o?void 0:o.bindValue)}catch(e){s=""}}else{if(-1===(0,N.Tn)(["ElSelect"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var d=j.Ct.call(i,u,!0);return min&&(0,j.Xe)(d,min)&&j.cv.call(i,t,min),void(max&&(0,j.MM)(d,max)&&j.cv.call(i,t,max))}try{console.log("event==:",e),s=(0,N.Ho)({extendAttr:U()({rangeOptions:l}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==o?void 0:o.bindValue)}catch(e){s=""}}if(delete s.metaCode,(0,N.Qd)(s)){var h,y,g=m()(s);c()(g).call(g,(function(e){if(r[e]=t[e],(0,N.$3)(t,e)||(n=!0),"string"==typeof s[e]){var o=i.config,a=null==o?void 0:o.bindValue;t[e]=s[e].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return $()(n=K()(t).call(t)).call(n)===z.DE.REF_VAL?a:$()(r=K()(t).call(t)).call(r)===z.DE.CURRENT_DATE?(0,N.Yq)(new Date,"yyyy-MM-dd"):e}))}else t[e]=s[e]})),n&&(null==t||null===(h=t.wrapVm)||void 0===h||null===(h=h.proxy)||void 0===h||null===(y=h.$forceUpdate)||void 0===y||y.call(h))}}})),function(){c()(d).call(d,(function(e,t){var n=f[t];if(e){var r=m()(n);c()(r).call(r,(function(t){e[t]=n[t]}))}}))}}}},setPopup:function(e,t,n){var r,i=e.targetMsg,o=e.targetMsgEn,s=P()(r=this.lang.value).call(r,"zh")>-1?i:o;this.messageInstance.warning(s,"",{showCancelButton:!1})},openThePage:function(e,t,n){var r=e.targetObjVal;r&&window.open(r,"_blank")},setProps:function(e,t,n,r){var i,o=this,s=e.targetObj,a=e.targetObjVal;if(s){var l=p()(i="".concat(n?n+"->":"")).call(i,s),u=this.config,f="";try{f=(0,N.Ho)({extendAttr:a,metaCode:"event setPorps code:".concat(u.metaCode)},null==u?void 0:u.bindValue)}catch(e){f=""}if(delete f.metaCode,(0,N.Qd)(f)){var d=j.Vf.call(this,l),h=[],y=m()(f);return c()(d).call(d,(function(e){var t,n,r=!1,i={};e&&(c()(y).call(y,(function(t){if(i[t]=e[t],(0,N.$3)(e,t)||(r=!0),"string"==typeof f[t]){var n=o.config,s=null==n?void 0:n.bindValue;e[t]=f[t].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return $()(n=K()(t).call(t)).call(n)===z.DE.REF_VAL?s:$()(r=K()(t).call(t)).call(r)===z.DE.CURRENT_DATE?(0,N.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=f[t]})),h.push(i),r&&(null==e||null===(t=e.wrapVm)||void 0===t||null===(t=t.proxy)||void 0===t||null===(n=t.$forceUpdate)||void 0===n||n.call(t)))})),function(){c()(d).call(d,(function(e,t){var n=h[t];e&&c()(y).call(y,(function(t){e[t]=n[t]}))}))}}}}};function Y(e,t,n,r){var i=this;return e=e||[],b()(e).call(e,(function(e){var o=e.eventId,s=Q[o];return X[s]&&X[s].call(i,e,t,n,r)}))}var J={},Z={};function ee(e,t){var n=this;e=e||[],this.rules=e;var l=this.config,u=l.dynamicHireRelat;l.metaCode,e&&e.length&&c()(e).call(e,(function(e){var l;if(e){var f=e.pmRuleTargetEventVoList,h=e.pmRuleTargetEventVOList,y=e.relId,v=e.tabpanelCode,b=p()(l="".concat(y,"__")).call(l,u);if(L.call(n,e))d()((function(){var r,i;J[b]&&c()(r=J[b]).call(r,(function(e){if(e){var t=null==e?void 0:e();t&&(Z[b]||(Z[b]=[]),Z[b].push(t))}})),Z[b]&&(null===(i=Z[b])||void 0===i||c()(i).call(i,(function(e){return e&&clearTimeout(e)})));var o=Y.call(n,f||h,t,v,e);J[b]=o}),0);else{var _=m()(J),E=g()(_).call(_,(function(e){var t,n,l=(t=e.split("__"),n=2,function(e){if(r(e))return e}(t)||function(e,t){var n=null==e?null:void 0!==i&&o(e)||e["@@iterator"];if(null!=n){var r,a,l,c,u=[],p=!0,f=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;p=!1}else for(;!(p=(r=l.call(n)).done)&&(s(u).call(u,r.value),u.length!==t);p=!0);}catch(e){f=!0,a=e}finally{try{if(!p&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}(t,n)||(0,a.A)(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],p=l[1];if(c==y){if(p===u)return!0;for(var f=te(p).codes,d=te(u).codes,h=0;h<d.length;h++){var m=d[h],g=f[h];if(!g||m.code!==g.code)return!0;if(m.idx!==g.idx)return!1}return!0}return!1}));c()(E).call(E,(function(e){var t;J[e]&&c()(t=J[e]).call(t,(function(t){if(t){var n=t();n&&(Z[e]||(Z[e]=[]),Z[e].push(n))}})),delete J[e]}))}}}))}function te(e){var t,n="",r=b()(t=e.split("->")).call(t,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?(n+=n?"->".concat(t[1]):t[1],{idx:E()(t[2]),code:t[1]}):(n+=n?"->".concat(e):e,{idx:-1,code:e})}));return{nativeRelat:n,codes:r}}},48618:(e,t,n)=>{n.d(t,{$3:()=>ne,$N:()=>oe,Dg:()=>de,E1:()=>Y,Ij:()=>ue,M6:()=>K,Oe:()=>ae,PT:()=>G,Qd:()=>re,Tn:()=>X,Ts:()=>fe,Vv:()=>se,Yq:()=>ie,ZH:()=>Q,bO:()=>Z,fN:()=>pe,fz:()=>J,mg:()=>R.A,pp:()=>ce,q2:()=>q.A,ro:()=>ee,vr:()=>z,yL:()=>le});var r=n(53811),i=n(7252),o=n(53474),s=n(22204),a=(n(16280),n(76918),n(48598),n(44114),n(54743),n(11745),n(38309),n(16573),n(78100),n(77936),n(23288),n(2892),n(9868),n(79432),n(26099),n(84864),n(57465),n(27495),n(87745),n(90906),n(38781),n(71761),n(25440),n(50375),n(21489),n(48140),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(21903),n(91134),n(33206),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(86614),n(41405),n(37467),n(44732),n(33684),n(79577),n(27681)),l=n.n(a),c=n(71426),u=n.n(c),p=n(27124),f=n.n(p),d=n(36586),h=n.n(d),m=n(18979),y=n.n(m),g=n(73363),v=n.n(g),b=n(86226),_=n.n(b),E=n(50697),x=n.n(E),S=(n(43981),n(11393)),w=n.n(S),T=n(66615),A=n.n(T),P=(n(11265),n(48079)),O=n.n(P),C=n(53930),k=n.n(C),I=n(87842),j=n.n(I),N=n(59261),D=n.n(N),M=n(74707),L=n.n(M),R=n(88592),q=n(11779),B=n(96032),F=n(92049),U=n(25010),V=n(54870),$=n(12935);function W(e){var t=l()(null);return function(n){return t[n]||(t[n]=e(n))}}function K(e){if(!e)return null;var t=Number(e);if(isNaN(t)){var n=["px","%","vh","vw","rem","em"],r=u()(n).call(n,(function(t){return null==e?void 0:f()(e).call(e,t)}));return r?h()(e)+r:null}return t+"px"}function z(e){var t=(0,s.A)(e);return"undefined"===t||"boolean"===t||"number"===t||"string"===t||"symbol"===t||"bigint"===t}n(75286);var H=/-(\w)/g,G=W((function(e){return e.replace(H,(function(e,t){return t?t.toUpperCase():""}))})),Q=W((function(e){return e.charAt(0).toUpperCase()+y()(e).call(e,1)}));function X(e,t){var n=J(v()(e).call(e,(function(e,t,n){return e[t]=n,e}),{}),t);return null==n?-1:n}function Y(e,t){return-1!==X(e,null==t?void 0:t.renderby)||-1!==X(e,null==t?void 0:t.metaType)}function J(e,t){if("string"!=typeof t)return null;var n=e;if(void 0!==n[t]&&null!==n[t])return n[t];var r=G(t);if(void 0!==n[r]&&null!==n[r])return n[r];var i=Q(r);return void 0!==n[i]&&null!==n[i]?n[i]:null}function Z(e){return"string"!=typeof e?e:Q(G(e))}function ee(e,t){return"string"==typeof e&&"string"==typeof t&&Q(G(e))===Q(G(t))}var te=Object.prototype.hasOwnProperty;function ne(e,t){return te.call(e,t)}function re(e){return"[object Object]"===Object.prototype.toString.call(e)&&null!=e}function ie(e,t){var n;if(!e)return"";(0,$.$P)(e)||(e=new Date(e)),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,"".concat(e.getFullYear()).substr(4-RegExp.$1.length)));var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};return _()(n=x()(r)).call(n,(function(e){var n="".concat(r[e]);new RegExp("(".concat(e,")")).test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n:function(e){return"00".concat(e).substr(e.length)}(n)))})),t}function oe(e,t,n){if(!t)return e;if(!e)return t;var r=(0,B.A)(e,t,(function(e,t){if(!t)return e;if(!e)return t;if((0,F.A)(t)&&(0,F.A)(e))switch(n){case"union":return(0,q.A)(e,t,U.A);case"intersection":return(0,V.A)(e,t,U.A);case"concat":return w()(e).call(e,t);case"replace":return t;default:throw new Error("Unknown merge array strategy: ".concat(n))}return re(t)&&re(e)?oe(e,t,n):t}));if(A()(e)&&r&&!A()(r)){var i,o=[];_()(i=x()(r)).call(i,(function(e){o[e]=r[e]})),r=o}return r}function se(e,t){var n=t;if("object"===(0,s.A)(e)&&"object"===(0,s.A)(t)&&(n=(0,B.A)(e,t,(function(e,t){if((0,F.A)(e)&&(0,F.A)(t)){for(var n=[],r=0;r<e.length&&r<t.length;r++)n.push(se(e[r],t[r]));return r<e.length?n.push.apply(n,(0,o.A)(y()(e).call(e,r))):n.push.apply(n,(0,o.A)(y()(t).call(t,r))),n}return re(t)&&re(e)?se(e,t):t}))),A()(e)&&n&&!A()(n)){var r,i=[];_()(r=x()(n)).call(r,(function(e){i[e]=n[e]})),n=i}return n}function ae(e){return/^\s*(?:function\s*(?:\w+\s*)?\([^()]*\)\s*\{[\s\S]*?\})\s*$/.test(e)||/^\s*\((?:\s*\w+(?:\s*=\s*\w+)?\s*(?:,\s*)?)*\)\s*=>\s*(?:\{[\s\S]*?\}|[\s\S]+?)\s*$/.test(e)}function le(e){return e&&"function"==typeof e.then}function ce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.A)(Date,t)}function ue(){var e;return w()(e="".concat(ie(new Date,"yyyy-MM-dd hh:mm:ss"),"-")).call(e,function(){if("object"===("undefined"==typeof crypto?"undefined":(0,s.A)(crypto))){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();if("function"==typeof crypto.getRandomValues&&"function"==typeof Uint8Array)return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){var t=Number(e);return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}var e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}())}function pe(e,t){var n,r,i,o=e.referenceOptions,s=e.selectKey,a=[];try{var l;a=O()(l=JSON.parse((null==e?void 0:e.optionItems)||"[]")).call(l,(function(e){return{columnValue:e.value,columnDesc_zh:e.label,columnDesc:e.label_en||e.label,columnStatus:e.columnStatus}}))}catch(e){a=[]}var c=(null==t?void 0:t.value)&&(null==t||null===(n=t.value)||void 0===n?void 0:n[s])||(null==t?void 0:t.value)&&(null==t||null===(r=t.value)||void 0===r?void 0:r["".concat(e.metaCode,"ListValue")])||(null==t?void 0:t.value)&&(null==t||null===(i=t.value)||void 0===i?void 0:i[o])||a||[];return(null==e?void 0:e.priOptions)||c}function fe(e,t,n,i){e[t]=n;var o=i||{};k()(e,t,(0,r.A)({value:n,writable:!0,enumerable:!1,configurable:!0},o))}function de(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(j());if(null===e||"object"!==(0,s.A)(e))switch((0,s.A)(e)){case"string":case"number":return"";default:return null}if(r.has(e))return r.get(e);if(A()(e))t=[],r.set(e,t),(n=t).push.apply(n,(0,o.A)(O()(e).call(e,(function(e){return de(e,r)}))));else if(e instanceof Date)t=null;else if(e instanceof D())t=new(D());else if(e instanceof L())t=new(L());else{t={},r.set(e,t);for(var i=0,a=x()(e);i<a.length;i++){var l=a[i],c=de(e[l],r);null!=c&&(t[l]=c)}}return t}},85352:(e,t,n)=>{n.d(t,{AP:()=>k,Bs:()=>b,DE:()=>c,LX:()=>y,Lu:()=>g,MD:()=>_,Op:()=>w,R_:()=>d,UP:()=>h,V6:()=>v,Xj:()=>P,aX:()=>x,dK:()=>C,fH:()=>S,g:()=>l,jf:()=>m,of:()=>f,pL:()=>E,s1:()=>I,ue:()=>A,un:()=>p,yD:()=>T,yz:()=>O});var r=n(64007),i=n.n(r),o=n(11393),s=n.n(o),a=(n(2892),n(48618)),l={OPERATE:"operate",DETAIL:"detail",LOG:"log"},c={CURRENT_DATE:"_currentDate",REF_VAL:"_refVal"},u=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentTabPaneH5"],p="CustomComponentFormLayout",f="CustomComponentFormLayoutH5",d=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentDialog","ElButton","CustomComponentTable","CustomComponentRow","CustomComponentCol","CustomComponentCycle","CustomComponentCardH5","CustomComponentCollapseH5","CustomComponentTabsH5","CustomComponentTabPaneH5","CustomComponentTableH5","cmi-cell","cmi-button","cmi-link","cmi-dropdown-menu","cmi-divider"],h=["ElInput","ElButton","CmiInput","CmiButton","ElText"],m=["CmiInput","CmiSelect","CmiPicker"],y=["CustomComponentTabPane","CustomComponentDialog","CustomComponentCol","CustomComponentTabPaneH5"],g=["CustomComponentTable"],v=["el-select","el-date-picker","el-time-picker","el-time-select","el-cascader","el-input-number","CustomComponentTree","CustomComponentSteps"],b=["el-span"],_="el-",E="t-",x="cmi-",S="H5-",w="0",T=["ElText"],A=["ElInput","ElDatePicker","ElInputNumber"],P=["ElSelect"],O={compInfo:{type:Object,getValue:function(e,t,n){return e}},modelValue:{type:[String,Number,Object,Array,Boolean,void 0,null],getValue:function(e,t,n){return n.value}},config:{type:Object,getValue:function(e,t,n){return e}},refValue:{type:[Object,Number,String],default:"",getValue:function(e,t,n){return n}},disabled:{type:Boolean,default:!1,getValue:function(e,t,n){return k(e,t.mode)}},clearable:{type:Boolean,default:!1,getValue:function(e,t,n){return"1"==e.clearableFlag}},required:{type:Boolean,default:!1,getValue:function(e,t,n){return"1"==e.requiredFlag}},hidden:{type:Boolean,default:!1,getValue:function(e,t,n){return C({config:e})}},onlyRequiredFlag:{type:[Boolean,String,Number],default:!1,getValue:function(e,t,n){return e.onlyRequiredFlag}},tableData:{type:Array,default:function(){return[]},getValue:function(e,t,n){return t.tableData}},rowScope:{type:Object,getValue:function(e,t,n){return t.rowScope}},width:{type:[String,Number],default:"",getValue:function(e,t,n){return e.width?(0,a.M6)(e.width):null}},mode:{type:[String],default:"",getValue:function(e,t){return t.mode}},options:{type:Array,default:function(){return[]},getValue:function(e,t,n,r){return(0,a.fN)(e,r)}},placeholder:{type:String,default:function(){return""},getValue:function(e,t,n,r,o){return((null==o?void 0:i()(o).call(o,"zh"))>-1?e.defPlacehold:e.defPlaceholdEn)||""}},placeholderEn:{type:String,default:function(){return""},getValue:function(e,t,n,r,i){return e.defPlaceholdEn}}};function C(e){var t=e.config;return"boolean"==typeof t.hidden&&t.hidden||"1"==t.hidden||"1"==t.collapseHidden}function k(e,t){var n,r;return!(0,a.E1)(["CustomComponentTabs"],e)&&(t===l.LOG?!e.logAlong&&!(0,a.E1)(s()(n=[p]).call(n,u),e)||"0"==e.editFlag:t===l.DETAIL&&!e.detailAlong&&!(0,a.E1)(s()(r=[p]).call(r,u),e)||"0"==e.editFlag)}var I={row:"CustomComponentRow",grid:"CustomComponentRow","grid-col":"CustomComponentCol",table:"CustomComponentTable","checkbox-table":"CustomComponentTable",tab:"CustomComponentTabs","tab-pane":"CustomComponentTabPane",collapse:"CustomComponentCollapse",card:"CustomComponentCollapse",cycle:"CustomComponentCycle",input:"ElInput",textarea:"ElInput",button:"ElButton","static-text":"ElText",number:"ElInputNumber",radio:"ElRadio",checkbox:"ElCheckbox",select:"ElSelect",time:"ElTimePicker","time-range":"ElTimePicker",date:"ElDatePicker","date-range":"ElDatePicker",cascader:"ElCascader","select-employees":"CustomComponentSelectEmployees","rich-editor":"CustomComponentEditor",pagination:"ElPagination",tree:"CustomComponentTree",steps:"CustomComponentSteps","mail-send":"CustomComponentSendMail","file-import":"CustomComponentFileImport","file-export":"CustomComponentFileExport","cmi-card":"CustomComponentCardH5","cmi-collapse":"CustomComponentCollapseH5","cmi-tab":"CustomComponentTabsH5","cmi-tab-pane":"CustomComponentTabPaneH5","cmi-table":"CustomComponentTableH5","cmi-datetime":"CmiDatetimePicker"};window&&(!window["resolver-egretimp-plus"]&&(window["resolver-egretimp-plus"]={}),window["resolver-egretimp-plus"].componentPropsType=O)},24691:(e,t,n)=>{function r(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=document.createRange();return i.setStart(e,0),i.setEnd(e,null==e||null===(t=e.childNodes)||void 0===t?void 0:t.length),(null===(n=i.getBoundingClientRect())||void 0===n?void 0:n.width)-r}n.d(t,{fW:()=>r}),n(9868),n(80668),n(63579)},17427:(e,t,n)=>{n.d(t,{$3:()=>r.$3,$N:()=>r.$N,$P:()=>s.$P,AP:()=>o.AP,Bs:()=>o.Bs,Dg:()=>r.Dg,Et:()=>s.Et,Ho:()=>i.Ho,Ij:()=>r.Ij,KK:()=>i.KK,Kg:()=>s.Kg,M9:()=>i.M9,Op:()=>o.Op,PT:()=>r.PT,Qd:()=>r.Qd,SK:()=>i.SK,Tn:()=>r.Tn,Ts:()=>r.Ts,UP:()=>o.UP,Vv:()=>r.Vv,Yq:()=>r.Yq,ZB:()=>i.ZB,ZH:()=>r.ZH,cy:()=>s.cy,fw:()=>i.fw,mg:()=>r.mg,q2:()=>r.q2,qg:()=>i.qg,rn:()=>i.rn,ro:()=>r.ro,vr:()=>r.vr,yL:()=>r.yL,yo:()=>i.yo,yz:()=>o.yz});var r=n(48618),i=n(8069),o=n(85352),s=n(12935)},12935:(e,t,n)=>{n.d(t,{$P:()=>o.A,Et:()=>a.A,Kg:()=>c.A,Tn:()=>s.A,b0:()=>u.A,cy:()=>p,kZ:()=>l.A,sw:()=>f});var r=n(66615),i=n.n(r),o=(n(76918),n(23288),n(26099),n(27495),n(90906),n(38781),n(22922)),s=n(89610),a=n(21879),l=n(21395),c=n(32084),u=n(69592);function p(e){return e&&i()(e)}function f(e){return null!=e}Object.prototype.toString},20807:(e,t,n)=>{n.d(t,{A:()=>x});var r=n(37891),i=n(34963),o=(n(79432),n(29544)),s=n.n(o),a=n(86226),l=n.n(a),c=n(50697),u=n.n(c),p=n(75286),f=[(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return U.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return R.default}});var i=n(348),o=n(349),s=n(350),a=n(362),l=n(363);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(364),u=n(365),p=n(366),f=n(4);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var d=n(368);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=n(369);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=n(27),y=n(370),g=n(371),v=n(372),b=n(373),_=n(374),E=n(172),x=n(173),S=n(174),w=n(175),T=n(176),A=n(375),P=n(376);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var O=n(26);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var C=n(377),k=n(378),I=n(177),j=n(379),N=n(380),D=n(178),M=n(381),L=n(382),R=n(383),q=n(9);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return q[e]}}))}));var B=n(384),F=n(385),U=n(386),V=n(181),$=n(179),W=n(171),K=n(60),z=n(387),H=n(388);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}}))}));var G=n(180),Q=n(96),X=n(42),Y=n(389),J=n(390),Z=n(391),ee=n(182),te=n(170),ne=n(392),re=n(168),ie=n(393),oe=n(394),se=n(395),ae=n(98),le=n(396),ce=n(43),ue=n(397),pe=n(165),fe=n(97),de=n(164),he=n(2);Object.keys(he).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===he[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}}))}));var me=n(58);t.react={isReactComponent:i.default,isCompatTag:o.default,buildChildren:s.default},t.toSequenceExpression=n(398).default},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_EXTENSIONS=void 0,Object.defineProperty(t,"File",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"buildExternalHelpers",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"createConfigItem",{enumerable:!0,get:function(){return p.createConfigItem}}),Object.defineProperty(t,"createConfigItemAsync",{enumerable:!0,get:function(){return p.createConfigItemAsync}}),Object.defineProperty(t,"createConfigItemSync",{enumerable:!0,get:function(){return p.createConfigItemSync}}),Object.defineProperty(t,"getEnv",{enumerable:!0,get:function(){return s.getEnv}}),Object.defineProperty(t,"loadOptions",{enumerable:!0,get:function(){return p.loadOptions}}),Object.defineProperty(t,"loadOptionsAsync",{enumerable:!0,get:function(){return p.loadOptionsAsync}}),Object.defineProperty(t,"loadOptionsSync",{enumerable:!0,get:function(){return p.loadOptionsSync}}),Object.defineProperty(t,"loadPartialConfig",{enumerable:!0,get:function(){return p.loadPartialConfig}}),Object.defineProperty(t,"loadPartialConfigAsync",{enumerable:!0,get:function(){return p.loadPartialConfigAsync}}),Object.defineProperty(t,"loadPartialConfigSync",{enumerable:!0,get:function(){return p.loadPartialConfigSync}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return m.parse}}),Object.defineProperty(t,"parseAsync",{enumerable:!0,get:function(){return m.parseAsync}}),Object.defineProperty(t,"parseSync",{enumerable:!0,get:function(){return m.parseSync}}),Object.defineProperty(t,"resolvePlugin",{enumerable:!0,get:function(){return o.resolvePlugin}}),Object.defineProperty(t,"resolvePreset",{enumerable:!0,get:function(){return o.resolvePreset}}),Object.defineProperty(t,"template",{enumerable:!0,get:function(){return u().default}}),Object.defineProperty(t,"tokTypes",{enumerable:!0,get:function(){return l().tokTypes}}),Object.defineProperty(t,"transform",{enumerable:!0,get:function(){return f.transform}}),Object.defineProperty(t,"transformAsync",{enumerable:!0,get:function(){return f.transformAsync}}),Object.defineProperty(t,"transformFile",{enumerable:!0,get:function(){return d.transformFile}}),Object.defineProperty(t,"transformFileAsync",{enumerable:!0,get:function(){return d.transformFileAsync}}),Object.defineProperty(t,"transformFileSync",{enumerable:!0,get:function(){return d.transformFileSync}}),Object.defineProperty(t,"transformFromAst",{enumerable:!0,get:function(){return h.transformFromAst}}),Object.defineProperty(t,"transformFromAstAsync",{enumerable:!0,get:function(){return h.transformFromAstAsync}}),Object.defineProperty(t,"transformFromAstSync",{enumerable:!0,get:function(){return h.transformFromAstSync}}),Object.defineProperty(t,"transformSync",{enumerable:!0,get:function(){return f.transformSync}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return c().default}}),t.version=t.types=void 0;var r=n(95),i=n(453),o=n(81),s=n(278);function a(){const e=n(0);return a=function(){return e},e}function l(){const e=n(21);return l=function(){return e},e}function c(){const e=n(14);return c=function(){return e},e}function u(){const e=n(37);return u=function(){return e},e}Object.defineProperty(t,"types",{enumerable:!0,get:function(){return a()}});var p=n(82),f=n(475),d=n(488),h=n(489),m=n(490);n(1),t.version="7.23.9",t.DEFAULT_EXTENSIONS=Object.freeze([".js",".jsx",".es6",".es",".mjs",".cjs"]),t.OptionManager=class{init(e){return(0,p.loadOptionsSync)(e)}},t.Plugin=function(e){throw new Error(`The (${e}) Babel 5 plugin is being run with an unsupported Babel version.`)}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBinary=function(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBlock=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockParent=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,r.default)(e,t))},t.isClass=function(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isCompletionStatement=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditional=function(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBody=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumMember=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpression=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpressionWrapper=function(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,r.default)(e,t))},t.isFlow=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowPredicate=function(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowType=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFor=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForXStatement=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunction=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionParent=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,r.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isImmutable=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportOrExportDeclaration=o,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,r.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSX=function(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,r.default)(e,t))},t.isLVal=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isLiteral=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isLoop=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isMethod=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMiscellaneous=function(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleDeclaration=function(e,t){return(0,i.default)("isModuleDeclaration","isImportOrExportDeclaration"),o(e,t)},t.isModuleExpression=function(e,t){return!!e&&"ModuleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleSpecifier=function(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,i.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectMember=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPattern=function(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPatternLike=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isPrivate=function(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,r.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,r.default)(e,t))},t.isProperty=function(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPureish=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,i.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestProperty=function(e,t){return(0,i.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isScopable=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,i.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isStandardized=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStatement=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBaseType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEntityName=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeElement=function(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTerminatorless=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeScript=function(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryLike=function(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUserWhitespacable=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,r.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isWhile=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,r.default)(e,t))};var r=n(96),i=n(58);function o(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)}},(e,t,n)=>{const r=n(48),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(47),{safeRe:s,t:a}=n(34),l=n(75),{compareIdentifiers:c}=n(128);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.default)({type:"ArrayExpression",elements:e})},t.arrayPattern=function(e){return(0,r.default)({type:"ArrayPattern",elements:e})},t.arrayTypeAnnotation=function(e){return(0,r.default)({type:"ArrayTypeAnnotation",elementType:e})},t.arrowFunctionExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"ArrowFunctionExpression",params:e,body:t,async:n,expression:null})},t.assignmentExpression=function(e,t,n){return(0,r.default)({type:"AssignmentExpression",operator:e,left:t,right:n})},t.assignmentPattern=function(e,t){return(0,r.default)({type:"AssignmentPattern",left:e,right:t})},t.awaitExpression=function(e){return(0,r.default)({type:"AwaitExpression",argument:e})},t.bigIntLiteral=function(e){return(0,r.default)({type:"BigIntLiteral",value:e})},t.binaryExpression=function(e,t,n){return(0,r.default)({type:"BinaryExpression",operator:e,left:t,right:n})},t.bindExpression=function(e,t){return(0,r.default)({type:"BindExpression",object:e,callee:t})},t.blockStatement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,r.default)({type:"BlockStatement",body:e,directives:t})},t.booleanLiteral=function(e){return(0,r.default)({type:"BooleanLiteral",value:e})},t.booleanLiteralTypeAnnotation=function(e){return(0,r.default)({type:"BooleanLiteralTypeAnnotation",value:e})},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"BreakStatement",label:e})},t.callExpression=function(e,t){return(0,r.default)({type:"CallExpression",callee:e,arguments:t})},t.catchClause=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"CatchClause",param:e,body:t})},t.classAccessorProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return(0,r.default)({type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:n,decorators:i,computed:o,static:s})},t.classBody=function(e){return(0,r.default)({type:"ClassBody",body:e})},t.classDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:i})},t.classExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassExpression",id:e,superClass:t,body:n,decorators:i})},t.classImplements=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"ClassImplements",id:e,typeParameters:t})},t.classMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return(0,r.default)({type:"ClassMethod",kind:e,key:t,params:n,body:i,computed:o,static:s,generator:a,async:l})},t.classPrivateMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ClassPrivateMethod",kind:e,key:t,params:n,body:i,static:o})},t.classPrivateProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:i})},t.classProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return(0,r.default)({type:"ClassProperty",key:e,value:t,typeAnnotation:n,decorators:i,computed:o,static:s})},t.conditionalExpression=function(e,t,n){return(0,r.default)({type:"ConditionalExpression",test:e,consequent:t,alternate:n})},t.continueStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"ContinueStatement",label:e})},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){return(0,r.default)({type:"DecimalLiteral",value:e})},t.declareClass=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareClass",id:e,typeParameters:t,extends:n,body:i})},t.declareExportAllDeclaration=function(e){return(0,r.default)({type:"DeclareExportAllDeclaration",source:e})},t.declareExportDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:n})},t.declareFunction=function(e){return(0,r.default)({type:"DeclareFunction",id:e})},t.declareInterface=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:i})},t.declareModule=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareModule",id:e,body:t,kind:n})},t.declareModuleExports=function(e){return(0,r.default)({type:"DeclareModuleExports",typeAnnotation:e})},t.declareOpaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:n})},t.declareTypeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"DeclareTypeAlias",id:e,typeParameters:t,right:n})},t.declareVariable=function(e){return(0,r.default)({type:"DeclareVariable",id:e})},t.declaredPredicate=function(e){return(0,r.default)({type:"DeclaredPredicate",value:e})},t.decorator=function(e){return(0,r.default)({type:"Decorator",expression:e})},t.directive=function(e){return(0,r.default)({type:"Directive",value:e})},t.directiveLiteral=function(e){return(0,r.default)({type:"DirectiveLiteral",value:e})},t.doExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"DoExpression",body:e,async:t})},t.doWhileStatement=function(e,t){return(0,r.default)({type:"DoWhileStatement",test:e,body:t})},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){return(0,r.default)({type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumBooleanMember=function(e){return(0,r.default)({type:"EnumBooleanMember",id:e,init:null})},t.enumDeclaration=function(e,t){return(0,r.default)({type:"EnumDeclaration",id:e,body:t})},t.enumDefaultedMember=function(e){return(0,r.default)({type:"EnumDefaultedMember",id:e})},t.enumNumberBody=function(e){return(0,r.default)({type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumNumberMember=function(e,t){return(0,r.default)({type:"EnumNumberMember",id:e,init:t})},t.enumStringBody=function(e){return(0,r.default)({type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumStringMember=function(e,t){return(0,r.default)({type:"EnumStringMember",id:e,init:t})},t.enumSymbolBody=function(e){return(0,r.default)({type:"EnumSymbolBody",members:e,hasUnknownMembers:null})},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){return(0,r.default)({type:"ExportAllDeclaration",source:e})},t.exportDefaultDeclaration=function(e){return(0,r.default)({type:"ExportDefaultDeclaration",declaration:e})},t.exportDefaultSpecifier=function(e){return(0,r.default)({type:"ExportDefaultSpecifier",exported:e})},t.exportNamedDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:n})},t.exportNamespaceSpecifier=function(e){return(0,r.default)({type:"ExportNamespaceSpecifier",exported:e})},t.exportSpecifier=function(e,t){return(0,r.default)({type:"ExportSpecifier",local:e,exported:t})},t.expressionStatement=function(e){return(0,r.default)({type:"ExpressionStatement",expression:e})},t.file=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"File",program:e,comments:t,tokens:n})},t.forInStatement=function(e,t,n){return(0,r.default)({type:"ForInStatement",left:e,right:t,body:n})},t.forOfStatement=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ForOfStatement",left:e,right:t,body:n,await:i})},t.forStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"ForStatement",init:e,test:t,update:n,body:i})},t.functionDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionDeclaration",id:e,params:t,body:n,generator:i,async:o})},t.functionExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionExpression",id:e,params:t,body:n,generator:i,async:o})},t.functionTypeAnnotation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:i})},t.functionTypeParam=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"FunctionTypeParam",name:e,typeAnnotation:t})},t.genericTypeAnnotation=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"GenericTypeAnnotation",id:e,typeParameters:t})},t.identifier=function(e){return(0,r.default)({type:"Identifier",name:e})},t.ifStatement=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"IfStatement",test:e,consequent:t,alternate:n})},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){return(0,r.default)({type:"ImportAttribute",key:e,value:t})},t.importDeclaration=function(e,t){return(0,r.default)({type:"ImportDeclaration",specifiers:e,source:t})},t.importDefaultSpecifier=function(e){return(0,r.default)({type:"ImportDefaultSpecifier",local:e})},t.importExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"ImportExpression",source:e,options:t})},t.importNamespaceSpecifier=function(e){return(0,r.default)({type:"ImportNamespaceSpecifier",local:e})},t.importSpecifier=function(e,t){return(0,r.default)({type:"ImportSpecifier",local:e,imported:t})},t.indexedAccessType=function(e,t){return(0,r.default)({type:"IndexedAccessType",objectType:e,indexType:t})},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:i})},t.interfaceExtends=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"InterfaceExtends",id:e,typeParameters:t})},t.interfaceTypeAnnotation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"InterfaceTypeAnnotation",extends:e,body:t})},t.interpreterDirective=function(e){return(0,r.default)({type:"InterpreterDirective",value:e})},t.intersectionTypeAnnotation=function(e){return(0,r.default)({type:"IntersectionTypeAnnotation",types:e})},t.jSXAttribute=t.jsxAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"JSXAttribute",name:e,value:t})},t.jSXClosingElement=t.jsxClosingElement=function(e){return(0,r.default)({type:"JSXClosingElement",name:e})},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"JSXElement",openingElement:e,closingElement:t,children:n,selfClosing:i})},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){return(0,r.default)({type:"JSXExpressionContainer",expression:e})},t.jSXFragment=t.jsxFragment=function(e,t,n){return(0,r.default)({type:"JSXFragment",openingFragment:e,closingFragment:t,children:n})},t.jSXIdentifier=t.jsxIdentifier=function(e){return(0,r.default)({type:"JSXIdentifier",name:e})},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){return(0,r.default)({type:"JSXMemberExpression",object:e,property:t})},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){return(0,r.default)({type:"JSXNamespacedName",namespace:e,name:t})},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"JSXOpeningElement",name:e,attributes:t,selfClosing:n})},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){return(0,r.default)({type:"JSXSpreadAttribute",argument:e})},t.jSXSpreadChild=t.jsxSpreadChild=function(e){return(0,r.default)({type:"JSXSpreadChild",expression:e})},t.jSXText=t.jsxText=function(e){return(0,r.default)({type:"JSXText",value:e})},t.labeledStatement=function(e,t){return(0,r.default)({type:"LabeledStatement",label:e,body:t})},t.logicalExpression=function(e,t,n){return(0,r.default)({type:"LogicalExpression",operator:e,left:t,right:n})},t.memberExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"MemberExpression",object:e,property:t,computed:n,optional:i})},t.metaProperty=function(e,t){return(0,r.default)({type:"MetaProperty",meta:e,property:t})},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){return(0,r.default)({type:"ModuleExpression",body:e})},t.newExpression=function(e,t){return(0,r.default)({type:"NewExpression",callee:e,arguments:t})},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){return(0,r.default)({type:"NullableTypeAnnotation",typeAnnotation:e})},t.numberLiteral=function(e){return(0,i.default)("NumberLiteral","NumericLiteral","The node type "),o(e)},t.numberLiteralTypeAnnotation=function(e){return(0,r.default)({type:"NumberLiteralTypeAnnotation",value:e})},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=o,t.objectExpression=function(e){return(0,r.default)({type:"ObjectExpression",properties:e})},t.objectMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,r.default)({type:"ObjectMethod",kind:e,key:t,params:n,body:i,computed:o,generator:s,async:a})},t.objectPattern=function(e){return(0,r.default)({type:"ObjectPattern",properties:e})},t.objectProperty=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"ObjectProperty",key:e,value:t,computed:n,shorthand:i,decorators:o})},t.objectTypeAnnotation=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:i,exact:o})},t.objectTypeCallProperty=function(e){return(0,r.default)({type:"ObjectTypeCallProperty",value:e,static:null})},t.objectTypeIndexer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:i,static:null})},t.objectTypeInternalSlot=function(e,t,n,i,o){return(0,r.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:i,method:o})},t.objectTypeProperty=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"ObjectTypeProperty",key:e,value:t,variance:n,kind:null,method:null,optional:null,proto:null,static:null})},t.objectTypeSpreadProperty=function(e){return(0,r.default)({type:"ObjectTypeSpreadProperty",argument:e})},t.opaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:i})},t.optionalCallExpression=function(e,t,n){return(0,r.default)({type:"OptionalCallExpression",callee:e,arguments:t,optional:n})},t.optionalIndexedAccessType=function(e,t){return(0,r.default)({type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null})},t.optionalMemberExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:i})},t.parenthesizedExpression=function(e){return(0,r.default)({type:"ParenthesizedExpression",expression:e})},t.pipelineBareFunction=function(e){return(0,r.default)({type:"PipelineBareFunction",callee:e})},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){return(0,r.default)({type:"PipelineTopicExpression",expression:e})},t.placeholder=function(e,t){return(0,r.default)({type:"Placeholder",expectedNode:e,name:t})},t.privateName=function(e){return(0,r.default)({type:"PrivateName",id:e})},t.program=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"script",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"Program",body:e,directives:t,sourceType:n,interpreter:i,sourceFile:null})},t.qualifiedTypeIdentifier=function(e,t){return(0,r.default)({type:"QualifiedTypeIdentifier",id:e,qualification:t})},t.recordExpression=function(e){return(0,r.default)({type:"RecordExpression",properties:e})},t.regExpLiteral=s,t.regexLiteral=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,i.default)("RegexLiteral","RegExpLiteral","The node type "),s(e,t)},t.restElement=a,t.restProperty=function(e){return(0,i.default)("RestProperty","RestElement","The node type "),a(e)},t.returnStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"ReturnStatement",argument:e})},t.sequenceExpression=function(e){return(0,r.default)({type:"SequenceExpression",expressions:e})},t.spreadElement=l,t.spreadProperty=function(e){return(0,i.default)("SpreadProperty","SpreadElement","The node type "),l(e)},t.staticBlock=function(e){return(0,r.default)({type:"StaticBlock",body:e})},t.stringLiteral=function(e){return(0,r.default)({type:"StringLiteral",value:e})},t.stringLiteralTypeAnnotation=function(e){return(0,r.default)({type:"StringLiteralTypeAnnotation",value:e})},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"SwitchCase",test:e,consequent:t})},t.switchStatement=function(e,t){return(0,r.default)({type:"SwitchStatement",discriminant:e,cases:t})},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){return(0,r.default)({type:"TaggedTemplateExpression",tag:e,quasi:t})},t.templateElement=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"TemplateElement",value:e,tail:t})},t.templateLiteral=function(e,t){return(0,r.default)({type:"TemplateLiteral",quasis:e,expressions:t})},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){return(0,r.default)({type:"ThrowStatement",argument:e})},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TryStatement",block:e,handler:t,finalizer:n})},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){return(0,r.default)({type:"TSArrayType",elementType:e})},t.tSAsExpression=t.tsAsExpression=function(e,t){return(0,r.default)({type:"TSAsExpression",expression:e,typeAnnotation:t})},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSConditionalType=t.tsConditionalType=function(e,t,n,i){return(0,r.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:i})},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSConstructorType=t.tsConstructorType=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSDeclareFunction=t.tsDeclareFunction=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:i})},t.tSDeclareMethod=t.tsDeclareMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:n,params:i,returnType:o})},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){return(0,r.default)({type:"TSEnumDeclaration",id:e,members:t})},t.tSEnumMember=t.tsEnumMember=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSEnumMember",id:e,initializer:t})},t.tSExportAssignment=t.tsExportAssignment=function(e){return(0,r.default)({type:"TSExportAssignment",expression:e})},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t})},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){return(0,r.default)({type:"TSExternalModuleReference",expression:e})},t.tSFunctionType=t.tsFunctionType=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){return(0,r.default)({type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null})},t.tSImportType=t.tsImportType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSImportType",argument:e,qualifier:t,typeParameters:n})},t.tSIndexSignature=t.tsIndexSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSIndexSignature",parameters:e,typeAnnotation:t})},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){return(0,r.default)({type:"TSIndexedAccessType",objectType:e,indexType:t})},t.tSInferType=t.tsInferType=function(e){return(0,r.default)({type:"TSInferType",typeParameter:e})},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSInstantiationExpression",expression:e,typeParameters:t})},t.tSInterfaceBody=t.tsInterfaceBody=function(e){return(0,r.default)({type:"TSInterfaceBody",body:e})},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:i})},t.tSIntersectionType=t.tsIntersectionType=function(e){return(0,r.default)({type:"TSIntersectionType",types:e})},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){return(0,r.default)({type:"TSLiteralType",literal:e})},t.tSMappedType=t.tsMappedType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:n})},t.tSMethodSignature=t.tsMethodSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:n,typeAnnotation:i,kind:null})},t.tSModuleBlock=t.tsModuleBlock=function(e){return(0,r.default)({type:"TSModuleBlock",body:e})},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){return(0,r.default)({type:"TSModuleDeclaration",id:e,body:t})},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"TSNamedTupleMember",label:e,elementType:t,optional:n})},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){return(0,r.default)({type:"TSNamespaceExportDeclaration",id:e})},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){return(0,r.default)({type:"TSNonNullExpression",expression:e})},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){return(0,r.default)({type:"TSOptionalType",typeAnnotation:e})},t.tSParameterProperty=t.tsParameterProperty=function(e){return(0,r.default)({type:"TSParameterProperty",parameter:e})},t.tSParenthesizedType=t.tsParenthesizedType=function(e){return(0,r.default)({type:"TSParenthesizedType",typeAnnotation:e})},t.tSPropertySignature=t.tsPropertySignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null})},t.tSQualifiedName=t.tsQualifiedName=function(e,t){return(0,r.default)({type:"TSQualifiedName",left:e,right:t})},t.tSRestType=t.tsRestType=function(e){return(0,r.default)({type:"TSRestType",typeAnnotation:e})},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){return(0,r.default)({type:"TSSatisfiesExpression",expression:e,typeAnnotation:t})},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){return(0,r.default)({type:"TSTupleType",elementTypes:e})},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:n})},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){return(0,r.default)({type:"TSTypeAnnotation",typeAnnotation:e})},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){return(0,r.default)({type:"TSTypeAssertion",typeAnnotation:e,expression:t})},t.tSTypeLiteral=t.tsTypeLiteral=function(e){return(0,r.default)({type:"TSTypeLiteral",members:e})},t.tSTypeOperator=t.tsTypeOperator=function(e){return(0,r.default)({type:"TSTypeOperator",typeAnnotation:e,operator:null})},t.tSTypeParameter=t.tsTypeParameter=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TSTypeParameter",constraint:e,default:t,name:n})},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){return(0,r.default)({type:"TSTypeParameterDeclaration",params:e})},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){return(0,r.default)({type:"TSTypeParameterInstantiation",params:e})},t.tSTypePredicate=t.tsTypePredicate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:n})},t.tSTypeQuery=t.tsTypeQuery=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSTypeQuery",exprName:e,typeParameters:t})},t.tSTypeReference=t.tsTypeReference=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSTypeReference",typeName:e,typeParameters:t})},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){return(0,r.default)({type:"TSUnionType",types:e})},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.default)({type:"TupleExpression",elements:e})},t.tupleTypeAnnotation=function(e){return(0,r.default)({type:"TupleTypeAnnotation",types:e})},t.typeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TypeAlias",id:e,typeParameters:t,right:n})},t.typeAnnotation=function(e){return(0,r.default)({type:"TypeAnnotation",typeAnnotation:e})},t.typeCastExpression=function(e,t){return(0,r.default)({type:"TypeCastExpression",expression:e,typeAnnotation:t})},t.typeParameter=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TypeParameter",bound:e,default:t,variance:n,name:null})},t.typeParameterDeclaration=function(e){return(0,r.default)({type:"TypeParameterDeclaration",params:e})},t.typeParameterInstantiation=function(e){return(0,r.default)({type:"TypeParameterInstantiation",params:e})},t.typeofTypeAnnotation=function(e){return(0,r.default)({type:"TypeofTypeAnnotation",argument:e})},t.unaryExpression=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,r.default)({type:"UnaryExpression",operator:e,argument:t,prefix:n})},t.unionTypeAnnotation=function(e){return(0,r.default)({type:"UnionTypeAnnotation",types:e})},t.updateExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"UpdateExpression",operator:e,argument:t,prefix:n})},t.v8IntrinsicIdentifier=function(e){return(0,r.default)({type:"V8IntrinsicIdentifier",name:e})},t.variableDeclaration=function(e,t){return(0,r.default)({type:"VariableDeclaration",kind:e,declarations:t})},t.variableDeclarator=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"VariableDeclarator",id:e,init:t})},t.variance=function(e){return(0,r.default)({type:"Variance",kind:e})},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){return(0,r.default)({type:"WhileStatement",test:e,body:t})},t.withStatement=function(e,t){return(0,r.default)({type:"WithStatement",object:e,body:t})},t.yieldExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"YieldExpression",argument:e,delegate:t})};var r=n(352),i=n(58);function o(e){return(0,r.default)({type:"NumericLiteral",value:e})}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,r.default)({type:"RegExpLiteral",pattern:e,flags:t})}function a(e){return(0,r.default)({type:"RestElement",argument:e})}function l(e){return(0,r.default)({type:"SpreadElement",argument:e})}},function(e,t,n){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},e=>{var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},(e,t,n)=>{const r=n(3);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},(e,t,n)=>{class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!y(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+e,n=i.get(t);if(n)return n;const r=this.options.loose,o=r?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(o,C(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(c[u.COMPARATORTRIM],p),a("comparator trim",e),e=e.replace(c[u.TILDETRIM],f),a("tilde trim",e),e=e.replace(c[u.CARETTRIM],d),a("caret trim",e);let l=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>O(e,this.options)));r&&(l=l.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE]))))),a("range list",l);const g=new Map,v=l.map((e=>new s(e,this.options)));for(const e of v){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");const _=[...g.values()];return i.set(t,_),_}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>v(n,t)&&e.set.some((e=>v(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(k(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const i=new(n(132))({max:1e3}),o=n(75),s=n(50),a=n(48),l=n(3),{safeRe:c,t:u,comparatorTrimReplace:p,tildeTrimReplace:f,caretTrimReplace:d}=n(34),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=n(47),y=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,v=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},b=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=E(e,t),a("tildes",e),e=T(e,t),a("xrange",e),e=P(e,t),a("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,((t,n,r,i,o)=>{let s;return a("tilde",e,t,n,r,i,o),_(n)?s="":_(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:_(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,a("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{a("caret",e,t);const n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,s)=>{let l;return a("caret",e,t,n,i,o,s),_(n)?l="":_(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:_(o)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${o}-${s} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${s} <${+n+1}.0.0-0`):(a("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),a("caret return",l),l}))},T=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>A(e,t))).join(" ")),A=(e,t)=>{e=e.trim();const n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,((n,r,i,o,s,l)=>{a("xRange",e,n,r,i,o,s,l);const c=_(i),u=c||_(o),p=u||_(s),f=p;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(l="-0"),n=`${r+i}.${o}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",n),n}))},P=(e,t)=>(a("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),O=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),C=e=>(t,n,r,i,o,s,a,l,c,u,p,f,d)=>`${n=_(r)?"":_(i)?`>=${r}.0.0${e?"-0":""}`:_(o)?`>=${r}.${i}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=_(c)?"":_(u)?`<${+c+1}.0.0-0`:_(p)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${p}-${f}`:e?`<${c}.${u}.${+p+1}-0`:`<=${l}`}`.trim(),k=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(a(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return i.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return i.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return s.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return i.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return i.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return i.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return i.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return o.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return o.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return o.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return i.VISITOR_KEYS}});var r=n(166);n(167),n(356),n(357),n(358),n(359),n(360);var i=n(18),o=n(169),s=n(361);Object.keys(s.DEPRECATED_ALIASES).forEach((e=>{i.FLIPPED_ALIAS_KEYS[e]=i.FLIPPED_ALIAS_KEYS[s.DEPRECATED_ALIASES[e]]})),r(i.VISITOR_KEYS),r(i.ALIAS_KEYS),r(i.FLIPPED_ALIAS_KEYS),r(i.NODE_FIELDS),r(i.BUILDER_KEYS),r(i.DEPRECATED_KEYS),r(o.PLACEHOLDERS_ALIAS),r(o.PLACEHOLDERS_FLIPPED_ALIAS),t.TYPES=[].concat(Object.keys(i.VISITOR_KEYS),Object.keys(i.FLIPPED_ALIAS_KEYS),Object.keys(i.DEPRECATED_KEYS))},(e,t,n)=>{var r=n(17);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var n,r="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(o===a-1||1===s);else if(o!==a-1&&2===s){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var s={resolve:function(){for(var e,t="",n=!1,s=arguments.length-1;s>=-1&&!n;s--){var a;s>=0?a=arguments[s]:(void 0===e&&(e=r.cwd()),a=e),i(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=o(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];i(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":s.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=s.resolve(e))===(t=s.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,o=r-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var l=t.length-a,c=o<l?o:l,u=-1,p=0;p<=c;++p){if(p===c){if(l>c){if(47===t.charCodeAt(a+p))return t.slice(a+p+1);if(0===p)return t.slice(a+p)}else o>c&&(47===e.charCodeAt(n+p)?u=p:0===p&&(u=0));break}var f=e.charCodeAt(n+p);if(f!==t.charCodeAt(a+p))break;47===f&&(u=p)}var d="";for(p=n+u+1;p<=r;++p)p!==r&&47!==e.charCodeAt(p)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(a+u):(a+=u,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!o){r=s;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var n,r=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!s){r=n+1;break}}else-1===l&&(s=!1,l=n+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(o=n):(a=-1,o=l))}return r===o?o=l:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){r=n+1;break}}else-1===o&&(s=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname:function(e){i(e);for(var t=-1,n=0,r=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(o=!1,r=a+1),46===l?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),o=47===r;o?(t.root="/",n=1):n=0;for(var s=-1,a=0,l=-1,c=!0,u=e.length-1,p=0;u>=n;--u)if(47!==(r=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===r?-1===s?s=u:1!==p&&(p=1):-1!==s&&(p=-1);else if(!c){a=u+1;break}return-1===s||-1===l||0===p||1===p&&s===l-1&&s===a+1?-1!==l&&(t.base=t.name=0===a&&o?e.slice(1,l):e.slice(a,l)):(0===a&&o?(t.name=e.slice(1,s),t.base=e.slice(1,l)):(t.name=e.slice(a,s),t.base=e.slice(a,l)),t.ext=e.slice(s,l)),a>0?t.dir=e.slice(0,a-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,e.exports=s},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,n)=>{var r=n(5),i=n(66),o=n(206),s=n(218),a=n(221),l=n(63),c=n(11),u=r.RangeError,p=r.Int8Array,f=p&&p.prototype,d=f&&f.set,h=o.aTypedArray,m=o.exportTypedArrayMethod,y=!c((function(){var e=new Uint8ClampedArray(2);return i(d,e,{length:1,0:3},1),3!==e[1]})),g=y&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new p(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){h(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(y)return i(d,this,n,t);var r=this.length,o=s(n),c=0;if(o+t>r)throw new u("Wrong length");for(;c<o;)this[t+c]=n[c++]}),!y||g)},e=>{const t=Symbol.for("gensync:v1:start"),n=Symbol.for("gensync:v1:suspend"),r="GENSYNC_EXPECTED_START",i="GENSYNC_EXPECTED_SUSPEND",o="GENSYNC_OPTIONS_ERROR",s="GENSYNC_RACE_NONEMPTY";function a(e,t,n,r){if(typeof n===e||r&&void 0===n)return;let i;throw i=r?`Expected opts.${t} to be either a ${e}, or undefined.`:`Expected opts.${t} to be a ${e}.`,l(i,o)}function l(e,t){return Object.assign(new Error(e),{code:t})}function c(e){let{name:r,arity:i,sync:o,async:s}=e;return m(r,i,(function*(){const e=yield t;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];if(!e)return o.call(this,i);let l;try{s.call(this,i,(t=>{l||(l={value:t},e())}),(t=>{l||(l={err:t},e())}))}catch(t){l={err:t},e()}if(yield n,l.hasOwnProperty("err"))throw l.err;return l.value}))}function u(e){let t;for(;!({value:t}=e.next()).done;)f(t,e);return t}function p(e,t,n){!function r(){try{let n;for(;!({value:n}=e.next()).done;){f(n,e);let t=!0,i=!1;const o=e.next((()=>{t?i=!0:r()}));if(t=!1,d(o,e),!i)return}return t(n)}catch(e){return n(e)}}()}function f(e,n){e!==t&&h(n,l(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,r))}function d(e,t){let{value:r,done:o}=e;(o||r!==n)&&h(t,l(o?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(r)}. If you get this, it is probably a gensync bug.`,i))}function h(e,t){throw e.throw&&e.throw(t),t}function m(e,t,n){if("string"==typeof e){const t=Object.getOwnPropertyDescriptor(n,"name");t&&!t.configurable||Object.defineProperty(n,"name",Object.assign(t||{},{configurable:!0,value:e}))}if("number"==typeof t){const e=Object.getOwnPropertyDescriptor(n,"length");e&&!e.configurable||Object.defineProperty(n,"length",Object.assign(e||{},{configurable:!0,value:t}))}return n}e.exports=Object.assign((function(e){let t=e;return t="function"!=typeof e?function(e){let{name:t,arity:n,sync:r,async:i,errback:s}=e;if(a("string","name",t,!0),a("number","arity",n,!0),a("function","sync",r),a("function","async",i,!0),a("function","errback",s,!0),i&&s)throw l("Expected one of either opts.async or opts.errback, but got _both_.",o);if("string"!=typeof t){let e;s&&s.name&&"errback"!==s.name&&(e=s.name),i&&i.name&&"async"!==i.name&&(e=i.name.replace(/Async$/,"")),r&&r.name&&"sync"!==r.name&&(e=r.name.replace(/Sync$/,"")),"string"==typeof e&&(t=e)}return"number"!=typeof n&&(n=r.length),c({name:t,arity:n,sync:function(e){return r.apply(this,e)},async:function(e,t,n){i?i.apply(this,e).then(t,n):s?s.call(this,...e,((e,r)=>{null==e?t(r):n(e)})):t(r.apply(this,e))}})}(e):function(e){return m(e.name,e.length,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}))}(e),Object.assign(t,function(e){const t={sync:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(e.apply(this,n))},async:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Promise(((t,r)=>{p(e.apply(this,n),t,r)}))},errback:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.pop();if("function"!=typeof i)throw l("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let o;try{o=e.apply(this,n)}catch(e){return void i(e)}p(o,(e=>i(void 0,e)),(e=>i(e)))}};return t}(t))}),{all:c({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map((e=>u(e)))},async:function(e,t,n){const r=Array.from(e[0]);if(0===r.length)return void Promise.resolve().then((()=>t([])));let i=0;const o=r.map((()=>{}));r.forEach(((e,r)=>{p(e,(e=>{o[r]=e,i+=1,i===o.length&&t(o)}),n)}))}}),race:c({name:"race",arity:1,sync:function(e){const t=Array.from(e[0]);if(0===t.length)throw l("Must race at least 1 item",s);return u(t[0])},async:function(e,t,n){const r=Array.from(e[0]);if(0===r.length)throw l("Must race at least 1 item",s);for(const e of r)p(e,t,n)}})})},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),t.visitors=t.default=void 0;var r=n(57);t.visitors=r;var i=n(0),o=n(35),s=n(100),a=n(28),l=n(183),c=n(444);const{VISITOR_KEYS:u,removeProperties:p,traverseFast:f}=i;function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!o&&a)throw new Error("visitSelf can only be used when providing a NodePath.");u[e.type]&&(r.explode(t),(0,s.traverseNode)(e,t,n,i,o,null,a))}}function h(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}t.default=d,d.visitors=r,d.verify=r.verify,d.explode=r.explode,d.cheap=function(e,t){f(e,t)},d.node=function(e,t,n,r,i,o){(0,s.traverseNode)(e,t,n,r,i,o)},d.clearNode=function(e,t){p(e,t)},d.removeProperties=function(e,t){return f(e,d.clearNode,t),e},d.hasType=function(e,t,n){if(null!=n&&n.includes(e.type))return!1;if(e.type===t)return!0;const r={has:!1,type:t};return d(e,{noScope:!0,denylist:n,enter:h},null,r),r.has},d.cache=o},(e,t,n)=>{var r=n(11);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.declare=r,t.declarePreset=void 0;const n={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const n=Error.stackTraceLimit;let r;throw"number"==typeof n&&n<25&&(Error.stackTraceLimit=25),r="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`),"number"==typeof n&&(Error.stackTraceLimit=n),Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)}};function r(e){return(t,r,i)=>{var s;let a;for(const e of Object.keys(n))t[e]||(null!=a||(a=o(t)),a[e]=n[e](a));return e(null!=(s=a)?s:t,r||{},i)}}Object.assign(n,{targets:()=>()=>({}),assumption:()=>()=>{}});const i=r;function o(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||s(t,"version")&&s(t,"transform")&&s(t,"template")&&s(t,"types")||(t=null)),Object.assign({},t,e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.declarePreset=i},e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,l=[],c=!1,u=-1;function p(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=s(p);c=!0;for(var t=l.length;t;){for(a=l,l=[];++u<t;)a&&a[u].run();u=-1,t=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new d(e,t)),1!==l.length||c||s(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VISITOR_KEYS=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0,t.arrayOf=m,t.arrayOfType=y,t.assertEach=g,t.assertNodeOrValueType=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function o(e,n,o){for(const s of t)if(f(o)===s||(0,r.default)(s,o))return void(0,i.validateChild)(e,n,o);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==o?void 0:o.type)}`)}return o.oneOfNodeOrValueTypes=t,o},t.assertNodeType=v,t.assertOneOf=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(e,n,r){if(t.indexOf(r)<0)throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(t)} but got ${JSON.stringify(r)}`)}return r.oneOf=t,r},t.assertOptionalChainStart=function(){return function(e){var t;let n=e;for(;e;){const{type:e}=n;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(n.optional)return;n=n.object}else{if(n.optional)return;n=n.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=n)?void 0:t.type}`)}},t.assertShape=function(e){function t(t,n,r){const o=[];for(const n of Object.keys(e))try{(0,i.validateField)(t,n,r[n],e[n])}catch(e){if(e instanceof TypeError){o.push(e.message);continue}throw e}if(o.length)throw new TypeError(`Property ${n} of ${t.type} expected to have the following:\n${o.join("\n")}`)}return t.shapeOf=e,t},t.assertValueType=b,t.chain=_,t.default=w,t.defineAliasedType=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.aliases;var i;r||(n.inherits&&(r=null==(i=S[n.inherits].aliases)?void 0:i.slice()),null!=r||(r=[]),n.aliases=r);const o=t.filter((e=>!r.includes(e)));r.unshift(...o),w(e,n)}},t.typeIs=h,t.validate=d,t.validateArrayOfType=function(e){return d(y(e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(e){return{validate:h(e),optional:!0}},t.validateType=function(e){return d(h(e))};var r=n(42),i=n(97);const o=t.VISITOR_KEYS={},s=t.ALIAS_KEYS={},a=t.FLIPPED_ALIAS_KEYS={},l=t.NODE_FIELDS={},c=t.BUILDER_KEYS={},u=t.DEPRECATED_KEYS={},p=t.NODE_PARENT_VALIDATIONS={};function f(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function d(e){return{validate:e}}function h(e){return"string"==typeof e?v(e):v(...e)}function m(e){return _(b("array"),g(e))}function y(e){return m(h(e))}function g(e){function t(t,n,r){if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=`${n}[${i}]`,s=r[i];e(t,o,s)}}return t.each=e,t}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function o(e,n,o){for(const s of t)if((0,r.default)(s,o))return void(0,i.validateChild)(e,n,o);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==o?void 0:o.type)}`)}return o.oneOfNodeTypes=t,o}function b(e){function t(t,n,r){if(f(r)!==e)throw new TypeError(`Property ${n} expected type of ${e} but got ${f(r)}`)}return t.type=e,t}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(){for(const e of t)e(...arguments)}if(r.chainOf=t,t.length>=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return r}const E=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],x=["default","optional","deprecated","validate"],S={};function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.inherits&&S[t.inherits]||{};let r=t.fields;if(!r&&(r={},n.fields)){const e=Object.getOwnPropertyNames(n.fields);for(const t of e){const e=n.fields[t],i=e.default;if(Array.isArray(i)?i.length>0:i&&"object"==typeof i)throw new Error("field defaults can only be primitives or empty arrays currently");r[t]={default:Array.isArray(i)?[]:i,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const i=t.visitor||n.visitor||[],d=t.aliases||n.aliases||[],h=t.builder||n.builder||t.visitor||[];for(const n of Object.keys(t))if(-1===E.indexOf(n))throw new Error(`Unknown type option "${n}" on ${e}`);t.deprecatedAlias&&(u[t.deprecatedAlias]=e);for(const e of i.concat(h))r[e]=r[e]||{};for(const t of Object.keys(r)){const n=r[t];void 0!==n.default&&-1===h.indexOf(t)&&(n.optional=!0),void 0===n.default?n.default=null:n.validate||null==n.default||(n.validate=b(f(n.default)));for(const r of Object.keys(n))if(-1===x.indexOf(r))throw new Error(`Unknown field key "${r}" on ${e}.${t}`)}o[e]=t.visitor=i,c[e]=t.builder=h,l[e]=t.fields=r,s[e]=t.aliases=d,d.forEach((t=>{a[t]=a[t]||[],a[t].push(e)})),t.validate&&(p[e]=t.validate),S[e]=t}},(e,t,n)=>{var r=n(104),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);e.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},(e,t,n)=>{var r=n(6);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n(44),Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}}class o{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function s(e,t){const{line:n,column:r,index:o}=e;return new i(n,r+t,o+t)}const a="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var l={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:a},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:a}};const c={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},u=e=>{let{type:t,prefix:n}=e;return"UpdateExpression"===t?c.UpdateExpression[String(n)]:c[t]};var p={AccessorIsGenerator:e=>{let{kind:t}=e;return`A ${t}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:e=>{let{kind:t}=e;return`Missing initializer in ${t} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:e=>{let{exportName:t}=e;return`\`${t}\` has already been exported. Exported identifiers must be unique.`},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:e=>{let{phase:t}=e;return`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:e=>{let{localName:t,exportName:n}=e;return`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${n}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:e=>{let{type:t}=e;return`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:e=>{let{type:t}=e;return`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:e=>{let{importName:t}=e;return`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:e=>{let{maxArgumentCount:t}=e;return`\`import()\` requires exactly ${1===t?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:e=>{let{radix:t}=e;return`Expected number in radix ${t}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:e=>{let{reservedWord:t}=e;return`Escape sequence in keyword ${t}.`},InvalidIdentifier:e=>{let{identifierName:t}=e;return`Invalid identifier ${t}.`},InvalidLhs:e=>{let{ancestor:t}=e;return`Invalid left-hand side in ${u(t)}.`},InvalidLhsBinding:e=>{let{ancestor:t}=e;return`Binding invalid left-hand side in ${u(t)}.`},InvalidLhsOptionalChaining:e=>{let{ancestor:t}=e;return`Invalid optional chaining in the left-hand side of ${u(t)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:e=>{let{unexpected:t}=e;return`Unexpected character '${t}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:e=>{let{identifierName:t}=e;return`Private name #${t} is not defined.`},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:e=>{let{labelName:t}=e;return`Label '${t}' is already declared.`},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling the parser plugin: ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingOneOfPlugins:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:e=>{let{key:t}=e;return`Duplicate key "${t}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:e=>{let{surrogateCharCode:t}=e;return`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`},ModuleExportUndefined:e=>{let{localName:t}=e;return`Export '${t}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:e=>{let{identifierName:t}=e;return`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`},PrivateNameRedeclaration:e=>{let{identifierName:t}=e;return`Duplicate private name #${t}.`},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:e=>{let{keyword:t}=e;return`Unexpected keyword '${t}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:e=>{let{reservedWord:t}=e;return`Unexpected reserved word '${t}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:e=>{let{expected:t,unexpected:n}=e;return`Unexpected token${n?` '${n}'.`:""}${t?`, expected "${t}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:e=>{let{target:t,onlyValidPropertyName:n}=e;return`The only valid meta property for ${t} is ${t}.${n}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:e=>{let{identifierName:t}=e;return`Identifier '${t}' has already been declared.`},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};const f=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var d={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:e=>{let{token:t}=e;return`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:e=>{let{type:t}=e;return`Hack-style pipe body cannot be an unparenthesized ${u({type:t})}; please wrap it in parentheses.`},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const h=["toMessage"],m=["message"];function y(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function g(e){let{toMessage:t}=e,n=r(e,h);return function e(r,o){const s=new SyntaxError;return Object.assign(s,n,{loc:r,pos:r.index}),"missingPlugin"in o&&Object.assign(s,{missingPlugin:o.missingPlugin}),y(s,"clone",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n;const{line:s,column:a,index:l}=null!=(n=t.loc)?n:r;return e(new i(s,a,l),Object.assign({},o,t.details))})),y(s,"details",o),Object.defineProperty(s,"message",{configurable:!0,get(){const e=`${t(o)} (${r.line}:${r.column})`;return this.message=e,e},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),s}}function v(e,t){if(Array.isArray(e))return t=>v(t,e[0]);const n={};for(const i of Object.keys(e)){const o=e[i],s="string"==typeof o?{message:()=>o}:"function"==typeof o?{message:o}:o,{message:a}=s,l=r(s,m),c="string"==typeof a?()=>a:a;n[i]=g(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:c},t?{syntaxPlugin:t}:{},l))}return n}const b=Object.assign({},v(l),v(p),v({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:e=>{let{referenceName:t}=e;return`Assigning to '${t}' in strict mode.`},StrictEvalArgumentsBinding:e=>{let{bindingName:t}=e;return`Binding '${t}' in strict mode.`},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),v`pipelineOperator`(d)),{defineProperty:_}=Object,E=(e,t)=>_(e,t,{enumerable:!1,value:e[t]});function x(e){return e.loc.start&&E(e.loc.start,"index"),e.loc.end&&E(e.loc.end,"index"),e}class S{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const w={brace:new S("{"),j_oTag:new S("<tag"),j_cTag:new S("</tag"),j_expr:new S("<tag>...</tag>",!0)};w.template=new S("`",!0);const T=!0,A=!0,P=!0,O=!0,C=!0;class k{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}const I=new Map;function j(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;const n=U(e,t);return I.set(e,n),n}function N(e,t){return U(e,{beforeExpr:T,binop:t})}let D=-1;const M=[],L=[],R=[],q=[],B=[],F=[];function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,i,o;return++D,L.push(e),R.push(null!=(n=t.binop)?n:-1),q.push(null!=(r=t.beforeExpr)&&r),B.push(null!=(i=t.startsExpr)&&i),F.push(null!=(o=t.prefix)&&o),M.push(new k(e,t)),D}function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,i,o;return++D,I.set(e,D),L.push(e),R.push(null!=(n=t.binop)?n:-1),q.push(null!=(r=t.beforeExpr)&&r),B.push(null!=(i=t.startsExpr)&&i),F.push(null!=(o=t.prefix)&&o),M.push(new k("name",t)),D}const $={bracketL:U("[",{beforeExpr:T,startsExpr:A}),bracketHashL:U("#[",{beforeExpr:T,startsExpr:A}),bracketBarL:U("[|",{beforeExpr:T,startsExpr:A}),bracketR:U("]"),bracketBarR:U("|]"),braceL:U("{",{beforeExpr:T,startsExpr:A}),braceBarL:U("{|",{beforeExpr:T,startsExpr:A}),braceHashL:U("#{",{beforeExpr:T,startsExpr:A}),braceR:U("}"),braceBarR:U("|}"),parenL:U("(",{beforeExpr:T,startsExpr:A}),parenR:U(")"),comma:U(",",{beforeExpr:T}),semi:U(";",{beforeExpr:T}),colon:U(":",{beforeExpr:T}),doubleColon:U("::",{beforeExpr:T}),dot:U("."),question:U("?",{beforeExpr:T}),questionDot:U("?."),arrow:U("=>",{beforeExpr:T}),template:U("template"),ellipsis:U("...",{beforeExpr:T}),backQuote:U("`",{startsExpr:A}),dollarBraceL:U("${",{beforeExpr:T,startsExpr:A}),templateTail:U("...`",{startsExpr:A}),templateNonTail:U("...${",{beforeExpr:T,startsExpr:A}),at:U("@"),hash:U("#",{startsExpr:A}),interpreterDirective:U("#!..."),eq:U("=",{beforeExpr:T,isAssign:O}),assign:U("_=",{beforeExpr:T,isAssign:O}),slashAssign:U("_=",{beforeExpr:T,isAssign:O}),xorAssign:U("_=",{beforeExpr:T,isAssign:O}),moduloAssign:U("_=",{beforeExpr:T,isAssign:O}),incDec:U("++/--",{prefix:C,postfix:!0,startsExpr:A}),bang:U("!",{beforeExpr:T,prefix:C,startsExpr:A}),tilde:U("~",{beforeExpr:T,prefix:C,startsExpr:A}),doubleCaret:U("^^",{startsExpr:A}),doubleAt:U("@@",{startsExpr:A}),pipeline:N("|>",0),nullishCoalescing:N("??",1),logicalOR:N("||",1),logicalAND:N("&&",2),bitwiseOR:N("|",3),bitwiseXOR:N("^",4),bitwiseAND:N("&",5),equality:N("==/!=/===/!==",6),lt:N("</>/<=/>=",7),gt:N("</>/<=/>=",7),relational:N("</>/<=/>=",7),bitShift:N("<</>>/>>>",8),bitShiftL:N("<</>>/>>>",8),bitShiftR:N("<</>>/>>>",8),plusMin:U("+/-",{beforeExpr:T,binop:9,prefix:C,startsExpr:A}),modulo:U("%",{binop:10,startsExpr:A}),star:U("*",{binop:10}),slash:N("/",10),exponent:U("**",{beforeExpr:T,binop:11,rightAssociative:!0}),_in:j("in",{beforeExpr:T,binop:7}),_instanceof:j("instanceof",{beforeExpr:T,binop:7}),_break:j("break"),_case:j("case",{beforeExpr:T}),_catch:j("catch"),_continue:j("continue"),_debugger:j("debugger"),_default:j("default",{beforeExpr:T}),_else:j("else",{beforeExpr:T}),_finally:j("finally"),_function:j("function",{startsExpr:A}),_if:j("if"),_return:j("return",{beforeExpr:T}),_switch:j("switch"),_throw:j("throw",{beforeExpr:T,prefix:C,startsExpr:A}),_try:j("try"),_var:j("var"),_const:j("const"),_with:j("with"),_new:j("new",{beforeExpr:T,startsExpr:A}),_this:j("this",{startsExpr:A}),_super:j("super",{startsExpr:A}),_class:j("class",{startsExpr:A}),_extends:j("extends",{beforeExpr:T}),_export:j("export"),_import:j("import",{startsExpr:A}),_null:j("null",{startsExpr:A}),_true:j("true",{startsExpr:A}),_false:j("false",{startsExpr:A}),_typeof:j("typeof",{beforeExpr:T,prefix:C,startsExpr:A}),_void:j("void",{beforeExpr:T,prefix:C,startsExpr:A}),_delete:j("delete",{beforeExpr:T,prefix:C,startsExpr:A}),_do:j("do",{isLoop:P,beforeExpr:T}),_for:j("for",{isLoop:P}),_while:j("while",{isLoop:P}),_as:V("as",{startsExpr:A}),_assert:V("assert",{startsExpr:A}),_async:V("async",{startsExpr:A}),_await:V("await",{startsExpr:A}),_defer:V("defer",{startsExpr:A}),_from:V("from",{startsExpr:A}),_get:V("get",{startsExpr:A}),_let:V("let",{startsExpr:A}),_meta:V("meta",{startsExpr:A}),_of:V("of",{startsExpr:A}),_sent:V("sent",{startsExpr:A}),_set:V("set",{startsExpr:A}),_source:V("source",{startsExpr:A}),_static:V("static",{startsExpr:A}),_using:V("using",{startsExpr:A}),_yield:V("yield",{startsExpr:A}),_asserts:V("asserts",{startsExpr:A}),_checks:V("checks",{startsExpr:A}),_exports:V("exports",{startsExpr:A}),_global:V("global",{startsExpr:A}),_implements:V("implements",{startsExpr:A}),_intrinsic:V("intrinsic",{startsExpr:A}),_infer:V("infer",{startsExpr:A}),_is:V("is",{startsExpr:A}),_mixins:V("mixins",{startsExpr:A}),_proto:V("proto",{startsExpr:A}),_require:V("require",{startsExpr:A}),_satisfies:V("satisfies",{startsExpr:A}),_keyof:V("keyof",{startsExpr:A}),_readonly:V("readonly",{startsExpr:A}),_unique:V("unique",{startsExpr:A}),_abstract:V("abstract",{startsExpr:A}),_declare:V("declare",{startsExpr:A}),_enum:V("enum",{startsExpr:A}),_module:V("module",{startsExpr:A}),_namespace:V("namespace",{startsExpr:A}),_interface:V("interface",{startsExpr:A}),_type:V("type",{startsExpr:A}),_opaque:V("opaque",{startsExpr:A}),name:U("name",{startsExpr:A}),string:U("string",{startsExpr:A}),num:U("num",{startsExpr:A}),bigint:U("bigint",{startsExpr:A}),decimal:U("decimal",{startsExpr:A}),regexp:U("regexp",{startsExpr:A}),privateName:U("#name",{startsExpr:A}),eof:U("eof"),jsxName:U("jsxName"),jsxText:U("jsxText",{beforeExpr:!0}),jsxTagStart:U("jsxTagStart",{startsExpr:!0}),jsxTagEnd:U("jsxTagEnd"),placeholder:U("%%",{startsExpr:!0})};function W(e){return e>=93&&e<=132}function K(e){return e>=58&&e<=132}function z(e){return e>=58&&e<=136}function H(e){return B[e]}function G(e){return e>=129&&e<=131}function Q(e){return e>=58&&e<=92}function X(e){return L[e]}function Y(e){return R[e]}function J(e){return e>=24&&e<=25}function Z(e){return M[e]}M[8].updateContext=e=>{e.pop()},M[5].updateContext=M[7].updateContext=M[23].updateContext=e=>{e.push(w.brace)},M[22].updateContext=e=>{e[e.length-1]===w.template?e.pop():e.push(w.template)},M[142].updateContext=e=>{e.push(w.j_expr,w.j_oTag)};let ee="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",te="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const ne=new RegExp("["+ee+"]"),re=new RegExp("["+ee+te+"]");ee=te=null;const ie=[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,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],oe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function se(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function ae(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ne.test(String.fromCharCode(e)):se(e,ie)))}function le(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&re.test(String.fromCharCode(e)):se(e,ie)||se(e,oe))))}const ce=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ue=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),pe=new Set(["eval","arguments"]);function fe(e,t){return t&&"await"===e||"enum"===e}function de(e,t){return fe(e,t)||ue.has(e)}function he(e){return pe.has(e)}function me(e,t){return de(e,t)||he(e)}const ye=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class ge{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class ve{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(128&t)return!0;if(451&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ge(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,n){let r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;16&t?i|=4:(r.firstLexicalName||(r.firstLexicalName=e),i|=2),r.names.set(e,i),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(387&r.flags));--i);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(b.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(1&n))return!1;if(8&n)return e.names.has(t);const r=e.names.get(t);return 16&n?(2&r)>0||!this.treatFunctionsAsVarInScope(e)&&(1&r)>0:(2&r)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&r)>0}checkLocalExport(e){const{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(387&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(451&t&&!(4&t))return t}}}class be extends ge{constructor(){super(...arguments),this.declareFunctions=new Set}}class _e extends ve{createScope(e){return new be(e)}declareName(e,t,n){const r=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),void r.declareFunctions.add(e);super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(2048&n&&!e.declareFunctions.has(t)){const n=e.names.get(t);return(4&n)>0||(2&n)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}class Ee{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t,n]=e;if(!this.hasPlugin(t))return!1;const r=this.plugins.get(t);for(const e of Object.keys(n))if((null==r?void 0:r[e])!==n[e])return!1;return!0}}getPluginOption(e,t){var n;return null==(n=this.plugins.get(e))?void 0:n[t]}}function xe(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Se(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function we(e,t,n){let r=null,i=t.length;for(;null===r&&i>0;)r=t[--i];null===r||r.start>n.start?Se(e,n.comments):xe(r,n.comments)}class Te extends Ee{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!=t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,n=t.length;if(0===n)return;let r=n-1;const i=t[r];i.start===e.end&&(i.leadingNode=e,r--);const{start:o}=e;for(;r>=0;r--){const n=t[r],i=n.end;if(!(i>o)){i===o&&(n.trailingNode=e);break}n.containingNode=e,this.finalizeComment(n),t.splice(r,1)}}finalizeComment(e){const{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&xe(e.leadingNode,t),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,t);else{const{containingNode:n,start:r}=e;if(44===this.input.charCodeAt(r-1))switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":we(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":we(n,n.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":we(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":we(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":we(n,n.specifiers,e);break;default:Se(n,t)}else Se(n,t)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,{length:n}=t;if(0===n)return;const r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){const{commentStack:t}=this.state,{length:n}=t;0!==n&&(t[n-1].trailingNode===e?t[n-1].trailingNode=null:n>=2&&t[n-2].trailingNode===e&&(t[n-2].trailingNode=null))}takeSurroundingComments(e,t,n){const{commentStack:r}=this.state,i=r.length;if(0===i)return;let o=i-1;for(;o>=0;o--){const i=r[o],s=i.end;if(i.start===n)i.leadingNode=e;else if(s===t)i.trailingNode=e;else if(s<t)break}}}const Ae=/\r\n?|[\n\u2028\u2029]/,Pe=new RegExp(Ae.source,"g");function Oe(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const Ce=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ke=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Ie=new RegExp("(?=("+ke.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function je(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class Ne{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[w.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init(e){let{strictMode:t,sourceType:n,startLine:r,startColumn:o}=e;this.strict=!1!==t&&(!0===t||"module"===n),this.curLine=r,this.lineStart=-o,this.startLoc=this.endLoc=new i(r,o,0)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}curPosition(){return new i(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const e=new Ne;return e.flags=this.flags,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var De=function(e){return e>=48&&e<=57};const Me={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Le={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Re(e,t,n,r,i,o){const s=n,a=r,l=i;let c="",u=null,p=n;const{length:f}=t;for(;;){if(n>=f){o.unterminated(s,a,l),c+=t.slice(p,n);break}const d=t.charCodeAt(n);if(qe(e,d,t,n)){c+=t.slice(p,n);break}if(92===d){c+=t.slice(p,n);const s=Be(t,n,r,i,"template"===e,o);null!==s.ch||u?c+=s.ch:u={pos:n,lineStart:r,curLine:i},({pos:n,lineStart:r,curLine:i}=s),p=n}else 8232===d||8233===d?(++i,r=++n):10===d||13===d?"template"===e?(c+=t.slice(p,n)+"\n",++n,13===d&&10===t.charCodeAt(n)&&++n,++i,p=r=n):o.unterminated(s,a,l):++n}return{pos:n,str:c,firstInvalidLoc:u,lineStart:r,curLine:i,containsInvalid:!!u}}function qe(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function Be(e,t,n,r,i,o){const s=!i;t++;const a=e=>({pos:t,ch:e,lineStart:n,curLine:r}),l=e.charCodeAt(t++);switch(l){case 110:return a("\n");case 114:return a("\r");case 120:{let i;return({code:i,pos:t}=Fe(e,t,n,r,2,!1,s,o)),a(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=Ve(e,t,n,r,s,o)),a(null===i?null:String.fromCodePoint(i))}case 116:return a("\t");case 98:return a("\b");case 118:return a("\v");case 102:return a("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++r;case 8232:case 8233:return a("");case 56:case 57:if(i)return a(null);o.strictNumericEscape(t-1,n,r);default:if(l>=48&&l<=55){const s=t-1;let l=e.slice(s,t+2).match(/^[0-7]+/)[0],c=parseInt(l,8);c>255&&(l=l.slice(0,-1),c=parseInt(l,8)),t+=l.length-1;const u=e.charCodeAt(t);if("0"!==l||56===u||57===u){if(i)return a(null);o.strictNumericEscape(s,n,r)}return a(String.fromCharCode(c))}return a(String.fromCharCode(l))}}function Fe(e,t,n,r,i,o,s,a){const l=t;let c;return({n:c,pos:t}=Ue(e,t,n,r,16,i,o,!1,a,!s)),null===c&&(s?a.invalidEscapeSequence(l,n,r):t=l-1),{code:c,pos:t}}function Ue(e,t,n,r,i,o,s,a,l,c){const u=t,p=16===i?Me.hex:Me.decBinOct,f=16===i?Le.hex:10===i?Le.dec:8===i?Le.oct:Le.bin;let d=!1,h=0;for(let u=0,m=null==o?1/0:o;u<m;++u){const o=e.charCodeAt(t);let u;if(95!==o||"bail"===a){if(u=o>=97?o-97+10:o>=65?o-65+10:De(o)?o-48:1/0,u>=i){if(u<=9&&c)return{n:null,pos:t};if(u<=9&&l.invalidDigit(t,n,r,i))u=0;else{if(!s)break;u=0,d=!0}}++t,h=h*i+u}else{const i=e.charCodeAt(t-1),o=e.charCodeAt(t+1);if(a){if(Number.isNaN(o)||!f(o)||p.has(i)||p.has(o)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,n,r)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,n,r)}++t}}return t===u||null!=o&&t-u!==o||d?{n:null,pos:t}:{n:h,pos:t}}function Ve(e,t,n,r,i,o){let s;if(123===e.charCodeAt(t)){if(++t,({code:s,pos:t}=Fe(e,t,n,r,e.indexOf("}",t)-t,!0,i,o)),++t,null!==s&&s>1114111){if(!i)return{code:null,pos:t};o.invalidCodePoint(t,n,r)}}else({code:s,pos:t}=Fe(e,t,n,r,4,!1,i,o));return{code:s,pos:t}}function $e(e,t,n){return new i(n,e-t,e)}const We=new Set([103,109,115,105,121,117,100,118]);class Ke{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new o(e.startLoc,e.endLoc)}}class ze extends Te{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,r)=>!!this.options.errorRecovery&&(this.raise(b.InvalidDigit,$e(e,t,n),{radix:r}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(b.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(b.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(b.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(b.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(b.StrictNumericEscape,$e(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(b.UnterminatedString,$e(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(b.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(b.UnterminatedTemplate,$e(e,t,n))}}),this.state=new Ne,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Ke(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Ce.lastIndex=e,Ce.test(this.input)?Ce.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return ke.lastIndex=e,ke.test(this.input)?ke.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){const n=this.input.charCodeAt(e);56320==(64512&n)&&(t=65536+((1023&t)<<10)+(1023&n))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((e=>{let[t,n]=e;return this.raise(t,n)})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());const n=this.state.pos,r=this.input.indexOf(e,n+2);if(-1===r)throw this.raise(b.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+e.length,Pe.lastIndex=n+2;Pe.test(this.input)&&Pe.lastIndex<=r;)++this.state.curLine,this.state.lineStart=Pe.lastIndex;if(this.isLookahead)return;const i={type:"CommentBlock",value:this.input.slice(n+2,r),start:n,end:r+e.length,loc:new o(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}skipLineComment(e){const t=this.state.pos;let n;this.isLookahead||(n=this.state.curPosition());let r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Oe(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const i=this.state.pos,s={type:"CommentLine",value:this.input.slice(t+e,i),start:t,end:i,loc:new o(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipSpace(){const e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){const n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(je(n))++this.state.pos;else if(45===n&&!this.inModule&&this.options.annexB){const n=this.state.pos;if(45!==this.input.charCodeAt(n+1)||62!==this.input.charCodeAt(n+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}else{if(60!==n||this.inModule||!this.options.annexB)break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}}}}if(t.length>0){const n={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(b.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?b.RecordExpressionHashIncorrectStartSyntaxType:b.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else ae(t)?(++this.state.pos,this.finishToken(138,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!Oe(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=42===e?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);42===e&&42===r&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),61!==r||this.state.inType||(n++,t=37===e?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){const t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(ae(e))return void this.readWord(e)}throw this.raise(b.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let n,r,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(b.UnterminatedRegExp,s(e,1));const t=this.input.charCodeAt(i);if(Oe(t))throw this.raise(b.UnterminatedRegExp,s(e,1));if(n)n=!1;else{if(91===t)r=!0;else if(93===t&&r)r=!1;else if(47===t&&!r)break;n=92===t}}const o=this.input.slice(t,i);++i;let a="";const l=()=>s(e,i+2-t);for(;i<this.length;){const e=this.codePointAtPos(i),t=String.fromCharCode(e);if(We.has(e))118===e?a.includes("u")&&this.raise(b.IncompatibleRegExpUVFlags,l()):117===e&&a.includes("v")&&this.raise(b.IncompatibleRegExpUVFlags,l()),a.includes(t)&&this.raise(b.DuplicateRegExpFlags,l());else{if(!le(e)&&92!==e)break;this.raise(b.MalformedRegExpFlags,l())}++i,a+=t}this.state.pos=i,this.finishToken(137,{pattern:o,flags:a})}readInt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{n:i,pos:o}=Ue(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=o,i}readRadixNumber(e){const t=this.state.curPosition();let n=!1;this.state.pos+=2;const r=this.readInt(e);null==r&&this.raise(b.InvalidDigit,s(t,2),{radix:e});const i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,n=!0;else if(109===i)throw this.raise(b.InvalidDecimal,t);if(ae(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());if(n){const e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,e)}else this.finishToken(134,r)}readNumber(e){const t=this.state.pos,n=this.state.curPosition();let r=!1,i=!1,o=!1,a=!1,l=!1;e||null!==this.readInt(10)||this.raise(b.InvalidNumber,this.state.curPosition());const c=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(c){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(b.StrictOctalLiteral,n),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(b.ZeroDigitNumericSeparator,s(n,t))}l=c&&!/[89]/.test(e)}let u=this.input.charCodeAt(this.state.pos);if(46!==u||l||(++this.state.pos,this.readInt(10),r=!0,u=this.input.charCodeAt(this.state.pos)),69!==u&&101!==u||l||(u=this.input.charCodeAt(++this.state.pos),43!==u&&45!==u||++this.state.pos,null===this.readInt(10)&&this.raise(b.InvalidOrMissingExponent,n),r=!0,a=!0,u=this.input.charCodeAt(this.state.pos)),110===u&&((r||c)&&this.raise(b.InvalidBigIntLiteral,n),++this.state.pos,i=!0),109===u&&(this.expectPlugin("decimal",this.state.curPosition()),(a||c)&&this.raise(b.InvalidDecimal,n),++this.state.pos,o=!0),ae(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());const p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(135,p);if(o)return void this.finishToken(136,p);const f=l?parseInt(p,8):parseFloat(p);this.finishToken(134,f)}readCodePoint(e){const{code:t,pos:n}=Ve(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){const{str:t,pos:n,curLine:r,lineStart:i}=Re(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(133,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:t,firstInvalidLoc:n,pos:r,curLine:o,lineStart:s}=Re("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=r+1,this.state.lineStart=s,this.state.curLine=o,n&&(this.state.firstInvalidTemplateEscapePos=new i(n.curLine,n.pos-n.lineStart,n.pos)),96===this.input.codePointAt(r)?this.finishToken(24,n?null:e+t+"`"):(this.state.pos++,this.finishToken(25,n?null:e+t+"${"))}recordStrictModeErrors(e,t){const n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const n=this.state.pos;let r=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(le(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);const e=this.state.curPosition(),i=this.state.pos===n?ae:le;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(b.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;const o=this.readCodePoint(!0);null!==o&&(i(o)||this.raise(b.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(o)),r=this.state.pos}}}return t+this.input.slice(r,this.state.pos)}readWord(e){const t=this.readWord1(e),n=I.get(t);void 0!==n?this.finishToken(n,X(n)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;Q(e)&&this.state.containsEsc&&this.raise(b.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:X(e)})}raise(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e(t instanceof i?t:t.loc.start,n);if(!this.options.errorRecovery)throw r;return this.isLookahead||this.state.errors.push(r),r}raiseOverwrite(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t instanceof i?t:t.loc.start,o=r.index,s=this.state.errors;for(let t=s.length-1;t>=0;t--){const i=s[t];if(i.loc.index===o)return s[t]=e(r,n);if(i.loc.index<o)break}return this.raise(e,t,n)}updateContext(e){}unexpected(e,t){throw this.raise(b.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?X(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(b.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(b.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,$e(t,n,r))}}}class He{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Ge{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new He)}exit(){const e=this.stack.pop(),t=this.current();for(const[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(b.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){const{privateNames:r,loneAccessors:i,undefinedPrivateNames:o}=this.current();let s=r.has(e);if(3&t){const n=s&&i.get(e);n?(s=(3&n)==(3&t)||(4&n)!=(4&t),s||i.delete(e)):s||i.set(e,t)}s&&this.parser.raise(b.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),o.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(b.InvalidPrivateFieldResolution,t,{identifierName:e})}}class Qe{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class Xe extends Qe{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class Ye{constructor(e){this.parser=void 0,this.stack=[new Qe],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const n=t.loc.start,{stack:r}=this;let i=r.length-1,o=r[i];for(;!o.isCertainlyParameterDeclaration();){if(!o.canBeArrowParameterDeclaration())return;o.recordDeclarationError(e,n),o=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){const{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(b.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t=>{let[n,r]=t;this.parser.raise(n,r);let i=e.length-2,o=e[i];for(;o.canBeArrowParameterDeclaration();)o.clearDeclarationError(r.index),o=e[--i]}))}}function Je(){return new Qe}class Ze{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function et(e,t){return(e?2:0)|(t?1:0)}class tt extends ze{addExtra(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!e)return;const i=e.extra=e.extra||{};r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const n=e+t.length;if(this.input.slice(e,n)===t){const e=this.input.charCodeAt(n);return!(le(e)||55296==(64512&e))}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ae.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Ie.lastIndex=this.state.end,Ie.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(){(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.eat(13):this.isLineTerminator())||this.raise(b.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone();const n={node:null};try{const r=e((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw n.node=e,n}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:o}=e;if(!t)return!!(n||r||o||i);null!=n&&this.raise(b.InvalidCoverInitializedName,n),null!=r&&this.raise(b.DuplicateProto,r),null!=i&&this.raise(b.UnexpectedPrivateField,i),null!=o&&this.unexpected(o)}isLiteralPropertyName(){return z(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType;const t=this.state.labels;this.state.labels=[];const n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const r=this.inModule;this.inModule=e;const i=this.scope,o=this.getScopeHandler();this.scope=new o(this,e);const s=this.prodParam;this.prodParam=new Ze;const a=this.classScope;this.classScope=new Ge(this);const l=this.expressionScope;return this.expressionScope=new Ye(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=s,this.classScope=a,this.expressionScope=l}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class nt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class rt{constructor(e,t,n){this.type="",this.start=t,this.end=0,this.loc=new o(n),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const it=rt.prototype;function ot(e){const{type:t,start:n,end:r,loc:i,range:o,extra:s,name:a}=e,l=Object.create(it);return l.type=t,l.start=n,l.end=r,l.loc=i,l.range=o,l.extra=s,l.name=a,"Placeholder"===t&&(l.expectedNode=e.expectedNode),l}it.__clone=function(){const e=new rt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,r=t.length;n<r;n++){const r=t[n];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(e[r]=this[r])}return e};class st extends tt{startNode(){const e=this.state.startLoc;return new rt(this,e.index,e)}startNodeAt(e){return new rt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.options.ranges&&(e.range[1]=n.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}}const at=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),lt=v`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:e=>{let{reservedType:t}=e;return`Cannot overwrite reserved type ${t}.`},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:e=>{let{memberName:t,enumName:n}=e;return`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${n}\`.`},EnumDuplicateMemberName:e=>{let{memberName:t,enumName:n}=e;return`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${n}\`.`},EnumInconsistentMemberValues:e=>{let{enumName:t}=e;return`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`},EnumInvalidExplicitType:e=>{let{invalidEnumType:t,enumName:n}=e;return`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${n}\`.`},EnumInvalidExplicitTypeUnknownSupplied:e=>{let{enumName:t}=e;return`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`},EnumInvalidMemberInitializerPrimaryType:e=>{let{enumName:t,memberName:n,explicitType:r}=e;return`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${n}\` needs to be a ${r} literal.`},EnumInvalidMemberInitializerSymbolType:e=>{let{enumName:t,memberName:n}=e;return`Symbol enum members cannot be initialized. Use \`${n},\` in enum \`${t}\`.`},EnumInvalidMemberInitializerUnknownType:e=>{let{enumName:t,memberName:n}=e;return`The enum member initializer for \`${n}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`},EnumInvalidMemberName:e=>{let{enumName:t,memberName:n,suggestion:r}=e;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${n}\`, consider using \`${r}\`, in enum \`${t}\`.`},EnumNumberMemberNotInitialized:e=>{let{enumName:t,memberName:n}=e;return`Number enum members need to be initialized, e.g. \`${n} = 1\` in enum \`${t}\`.`},EnumStringMemberInconsistentlyInitialized:e=>{let{enumName:t}=e;return`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:e=>{let{reservedType:t}=e;return`Unexpected reserved type ${t}.`},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:e=>{let{unsupportedExportKind:t,suggestion:n}=e;return`\`declare export ${t}\` is not supported. Use \`${n}\` instead.`},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ct(e){return"type"===e.importKind||"typeof"===e.importKind}const ut={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},pt=/\*?\s*@((?:no)?flow)\b/,ft={__proto__:null,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:"♦"},dt=v`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:e=>{let{openingTagName:t}=e;return`Expected corresponding JSX closing tag for <${t}>.`},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:e=>{let{unexpected:t,HTMLEntity:n}=e;return`Unexpected token \`${t}\`. Did you mean \`${n}\` or \`{'${t}'}\`?`},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function ht(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function mt(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return mt(e.object)+"."+mt(e.property);throw new Error("Node had unexpected type: "+e.type)}class yt extends ge{constructor(){super(...arguments),this.tsNames=new Map}}class gt extends ve{constructor(){super(...arguments),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new yt(e)}enter(e){256==e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 256==e&&this.importsStack.pop(),e}hasImport(e,t){const n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1)for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,n){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(b.VarRedeclaration,n,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const r=this.currentScope();let i=r.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(r,e),void r.tsNames.set(e,16|i);super.declareName(e,t,n),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){const r=e.tsNames.get(t);return(2&r)>0?!(256&n)||!!(512&n)!=(4&r)>0:128&n&&(8&r)>0?!!(2&e.names.get(t))&&!!(1&n):!!(2&n&&(1&r)>0)||super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){const n=this.scopeStack[e].tsNames.get(t);if((1&n)>0||(16&n)>0)return}super.checkLocalExport(e)}}}const vt=e=>"ParenthesizedExpression"===e.type?vt(e.expression):e;class bt extends st{toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n,r;let i;switch(("ParenthesizedExpression"===e.type||null!=(n=e.extra)&&n.parenthesized)&&(i=vt(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(b.InvalidParenthesizedAssignment,e):"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(b.InvalidParenthesizedAssignment,e):this.raise(b.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let n=0,r=e.properties.length,i=r-1;n<r;n++){var o;const r=e.properties[n],s=n===i;this.toAssignableObjectExpressionProp(r,s,t),s&&"RestElement"===r.type&&null!=(o=e.extra)&&o.trailingCommaLoc&&this.raise(b.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(b.MissingEqInAssignment,e.left.loc.end),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,n){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?b.PatternHasAccessor:b.PatternHasMethod,e.key);else if("SpreadElement"===e.type){e.type="RestElement";const r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(b.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){const r=e.length-1;for(let i=0;i<=r;i++){const o=e[i];if(o){if("SpreadElement"===o.type){o.type="RestElement";const e=o.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(o,n);"RestElement"===o.type&&(i<r?this.raise(b.RestTrailingComma,o):t&&this.raise(b.RestTrailingComma,t))}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,n)=>"ObjectMethod"!==e.type&&(n===t||"SpreadElement"!==e.type)&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,n){const r=1&n,i=[];let o=!0;for(;!this.eat(e);)if(o?o=!1:this.expect(12),r&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),n)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(b.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(n,e))}}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const e=this.startNode(),{type:t,startLoc:n}=this.state;return 21===t?this.parseBindingRestProperty(e):(138===t?(this.expectPlugin("destructuringPrivate",n),this.classScope.usePrivateName(this.state.value,n),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,n,!1,!1,!0,!1))}parseAssignableListItem(e,t){const n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n,e);const r=this.parseMaybeDefault(n.loc.start,n);return t.length&&(n.decorators=t),r}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var n;if(null!=e||(e=this.state.startLoc),t=null!=(n=t)?n:this.parseBindingAtom(),!this.eat(29))return t;const r=this.startNodeAt(e);return r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,n){return r={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},i=e,Object.hasOwnProperty.call(r,i)&&r[i];var r,i}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t){let{in:n,binding:r=64,checkClashes:i=!1,strictModeChanged:o=!1,hasParenthesizedAncestor:s=!1}=t;var a;const l=e.type;if(this.isObjectMethod(e))return;const c=this.isOptionalMemberExpression(e);if(c||"MemberExpression"===l)return c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==n.type&&this.raise(b.InvalidLhsOptionalChaining,e,{ancestor:n})),void(64!==r&&this.raise(b.InvalidPropertyBindingPattern,e));if("Identifier"===l){this.checkIdentifier(e,r,o);const{name:t}=e;return void(i&&(i.has(t)?this.raise(b.ParamDupe,e):i.add(t)))}const u=this.isValidLVal(l,!(s||null!=(a=e.extra)&&a.parenthesized)&&"AssignmentExpression"===n.type,r);if(!0===u)return;if(!1===u){const t=64===r?b.InvalidLhs:b.InvalidLhsBinding;return void this.raise(t,e,{ancestor:n})}const[p,f]=Array.isArray(u)?u:[u,"ParenthesizedExpression"===l],d="ArrayPattern"===l||"ObjectPattern"===l?{type:l}:n;for(const t of[].concat(e[p]))t&&this.checkLVal(t,{in:d,binding:r,checkClashes:i,strictModeChanged:o,hasParenthesizedAncestor:f})}checkIdentifier(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(n?me(e.name,this.inModule):he(e.name))&&(64===t?this.raise(b.StrictEvalArguments,e,{referenceName:e.name}):this.raise(b.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(b.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(b.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?b.RestTrailingComma:b.ElementAfterRest,this.state.startLoc),!0)}}function _t(e){if(!e)throw new Error("Assert fail")}const Et=v`typescript`({AbstractMethodHasImplementation:e=>{let{methodName:t}=e;return`Method '${t}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:e=>{let{propertyName:t}=e;return`Property '${t}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:e=>{let{kind:t}=e;return`'declare' is not allowed in ${t}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:e=>{let{modifier:t}=e;return"Accessibility modifier already seen."},DuplicateModifier:e=>{let{modifier:t}=e;return`Duplicate modifier: '${t}'.`},EmptyHeritageClauseType:e=>{let{token:t}=e;return`'${t}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:e=>{let{modifiers:t}=e;return`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:e=>{let{modifier:t}=e;return`Index signatures cannot have an accessibility modifier ('${t}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:e=>{let{modifier:t}=e;return`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:e=>{let{orderedModifiers:t}=e;return`'${t[0]}' modifier must precede '${t[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:e=>{let{modifier:t}=e;return`Private elements cannot have an accessibility modifier ('${t}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:e=>{let{typeParameterName:t}=e;return`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:e=>{let{type:t}=e;return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`}});function xt(e){return"private"===e||"public"===e||"protected"===e}function St(e){return"in"===e||"out"===e}function wt(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:n}=e;return(!t||"StringLiteral"===n.type||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&Pt(e.object)}function Tt(e,t){var n;const{type:r}=e;if(null!=(n=e.extra)&&n.parenthesized)return!1;if(t){if("Literal"===r){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!(!At(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:n,argument:r}=e;if("-"===n&&At(r,t))return!0}return!1}(e,t))||"TemplateLiteral"===r&&0===e.expressions.length||!!wt(e)}function At(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function Pt(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Pt(e.object)}const Ot=v`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function Ct(e,t){const[n,r]="string"==typeof t?[t,{}]:t,i=Object.keys(r),o=0===i.length;return e.some((e=>{if("string"==typeof e)return o&&e===n;{const[t,o]=e;if(t!==n)return!1;for(const e of i)if(o[e]!==r[e])return!1;return!0}}))}function kt(e,t,n){const r=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return r&&Array.isArray(r)&&r.length>1?r[1][n]:null}const It=["minimal","fsharp","hack","smart"],jt=["^^","@@","^","%","#"],Nt=["hash","bar"],Dt={estree:e=>class extends e{parse(){const e=x(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(x)),e}parseRegExpLiteral(e){let{pattern:t,flags:n}=e,r=null;try{r=new RegExp(t,n)}catch(e){}const i=this.estreeParseLiteral(r);return i.regex={pattern:t,flags:n},i}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){const t=e.value;delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue;const n=e;return n.type="ExpressionStatement",n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i);const o=e.directives.map((e=>this.directiveToStmt(e)));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,t,n,r,i,o){this.parseMethod(t,n,r,i,o,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,n),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,n,r,i,o){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=this.startNode();return a.kind=e.kind,a=super.parseMethod(a,t,n,r,i,o,s),a.type="FunctionExpression",delete a.kind,e.value=a,"ClassPrivateMethod"===o&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(){const e=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e):e}parseClassPrivateProperty(){const e=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e.computed=!1,e):e}parseObjectMethod(e,t,n,r,i){const o=super.parseObjectMethod(e,t,n,r,i);return o&&(o.type="Property","method"===o.kind&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,t,n,r){const i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind="init",i.type="Property"),i}isValidLVal(e,t,n){return"Property"===e?"value":super.isValidLVal(e,t,n)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){const{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){"get"===e.kind||"set"===e.kind?this.raise(b.PatternHasAccessor,e.key):e.method?this.raise(b.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){const n=super.finishCallExpression(e,t);var r,i;return"Import"===n.callee.type&&(n.type="ImportExpression",n.source=n.arguments[0],(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(n.options=null!=(r=n.arguments[1])?r:null,n.attributes=null!=(i=n.arguments[1])?i:null),delete n.arguments,delete n.callee),n}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var i;const{declaration:e}=r;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===r.start&&this.resetStartLocation(r,n)}}return r}parseSubscript(e,t,n,r){const i=super.parseSubscript(e,t,n,r);if(r.optionalChainMember){if("OptionalMemberExpression"!==i.type&&"OptionalCallExpression"!==i.type||(i.type=i.type.substring(8)),r.stop){const e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==i.type&&"CallExpression"!==i.type||(i.optional=!1);return i}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}finishNodeAt(e,t,n){return x(super.finishNodeAt(e,t,n))}resetStartLocation(e,t){super.resetStartLocation(e,t),x(e)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;super.resetEndLocation(e,t),x(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(dt.UnterminatedJsxContent,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?void(60===n&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(n)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(141,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Oe(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let n;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,n=e?"\n":"\r\n"):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(b.UnterminatedString,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):Oe(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(133,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(n){const t=this.input.slice(e,this.state.pos),n=ft[t];if(++this.state.pos,n)return n}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(le(e)||45===e);this.finishToken(140,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(140)?e.name=this.state.value:Q(this.state.type)?e.name=X(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;const n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(w.brace),this.next(),e=this.jsxParseExpressionContainer(e,w.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(dt.AttributeIsEmpty,e),e;case 142:case 133:return this.parseExprAtom();default:throw this.raise(dt.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(w.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(w.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(w.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(143);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(143),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(143),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e);let i=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 142:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}n.push(this.jsxParseElementAt(e));break;case 141:n.push(this.parseExprAtom());break;case 5:{const e=this.startNode();this.setContext(w.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,w.j_expr));break}default:this.unexpected()}ht(r)&&!ht(i)&&null!==i?this.raise(dt.MissingClosingTagFragment,i):!ht(r)&&ht(i)?this.raise(dt.MissingClosingTagElement,i,{openingTagName:mt(r.name)}):ht(r)||ht(i)||mt(i.name)!==mt(r.name)&&this.raise(dt.MissingClosingTagElement,i,{openingTagName:mt(r.name)})}if(ht(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(dt.UnwrappedAdjacentJSXElements,this.state.startLoc);return ht(r)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(141)?this.parseLiteral(this.state.value,"JSXText"):this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==w.j_expr){if(t===w.j_oTag||t===w.j_cTag){if(ae(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(143);if((34===e||39===e)&&t===w.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:n}=this.state;if(56===n&&142===e)t.splice(-2,2,w.j_cTag),this.state.canStartJSXElement=!1;else if(142===n)t.push(w.j_oTag);else if(143===n){const n=t[t.length-1];n===w.j_oTag&&56===e||n===w.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===w.j_expr):(this.setContext(w.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=q[n]}},flow:e=>class extends e{constructor(){super(...arguments),this.flowPragma=void 0}getScopeHandler(){return _e}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){133!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=pt.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(lt.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(lt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(133)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(lt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,lt.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),n.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let r=null,i=!1;return n.forEach((e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&this.raise(lt.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(lt.AmbiguousDeclareModuleKind,e),r="CommonJS",i=!0):("CommonJS"===r&&this.raise(lt.AmbiguousDeclareModuleKind,e),r="ES")})),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(lt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:ut[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(lt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){at.has(e)&&this.raise(n?lt.AssignReservedType:lt.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(lt.MissingTypeParamDefault,t),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let n=!1;do{const e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);const n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=n,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType(e){let{allowStatic:t,allowExact:n,allowSpread:r,allowProto:i,allowInexact:o}=e;const s=this.state.inType;this.state.inType=!0;const a=this.startNode();let l,c;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let u=!1;for(n&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),a.exact=c;!this.match(l);){let e=!1,n=null,s=null;const l=this.startNode();if(i&&this.isContextual(118)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),n=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}const p=this.flowParseVariance();if(this.eat(0))null!=n&&this.unexpected(n),this.eat(0)?(p&&this.unexpected(p.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(l,e))):a.indexers.push(this.flowParseObjectTypeIndexer(l,e,p));else if(this.match(10)||this.match(47))null!=n&&this.unexpected(n),p&&this.unexpected(p.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(l,e));else{let t="init";(this.isContextual(99)||this.isContextual(104))&&z(this.lookahead().type)&&(t=this.state.value,this.next());const i=this.flowParseObjectTypeProperty(l,e,n,p,t,r,null!=o?o:!c);null===i?(u=!0,s=this.state.lastTokStartLoc):a.properties.push(i)}this.flowObjectTypeSemicolon(),!s||this.match(8)||this.match(9)||this.raise(lt.UnexpectedExplicitInexactInObject,s)}this.expect(l),r&&(a.inexact=u);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,n,r,i,o,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?s||this.raise(lt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(lt.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(lt.InexactVariance,r),null):(o||this.raise(lt.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=n&&this.unexpected(n),r&&this.raise(lt.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=i;let s=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=n&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e),!o&&"constructor"===e.key.name&&e.value.this&&this.raise(lt.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(s=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=s,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?lt.GetterMayNotHaveThisParam:lt.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise("get"===e.kind?b.BadGetterArity:b.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(b.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,t){const n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,n=!1,r=null;const i=this.startNode(),o=this.lookahead(),s=78===this.state.type;return 14===o.type||17===o.type?(s&&!e&&this.raise(lt.ThisParamMustBeFirst,i),t=this.parseIdentifier(s),this.eat(17)&&(n=!0,s&&this.raise(lt.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let n,r,i=!1;const o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=o,r;case 47:return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),t.params=n.params,t.rest=n.rest,t.this=n._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(W(this.state.type)||this.match(78)){const e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),r;this.eat(12)}return n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),t.params=n.params,t.rest=n.rest,t.this=n._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(lt.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Q(this.state.type)){const e=X(this.state.type);return this.next(),super.createIdentifier(t,e)}if(W(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const r=this.startNodeAt(e),i=this.eat(18);n=n||i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,"OptionalIndexedAccessType")):t=this.finishNode(r,"IndexedAccessType"))}return t}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,n))):super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(K(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||W(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(W(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){const{type:e}=this.state;return G(e)||this.shouldParseEnums()&&126===e?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return G(e)||this.shouldParseEnums()&&126===e?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(n),e}this.expect(17);const r=this.state.clone(),i=this.state.noArrowAt,o=this.startNodeAt(t);let{consequent:s,failed:a}=this.tryParseConditionalConsequent(),[l,c]=this.getArrowLikeExpressions(s);if(a||c.length>0){const e=[...i];if(c.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<c.length;t++)e.push(c[t].start);({consequent:s,failed:a}=this.tryParseConditionalConsequent()),[l,c]=this.getArrowLikeExpressions(s)}a&&l.length>1&&this.raise(lt.AmbiguousConditionalArrow,r.startLoc),a&&1===l.length&&(this.state=r,e.push(l[0].start),this.state.noArrowAt=e,({consequent:s,failed:a}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(s,!0),this.state.noArrowAt=i,this.expect(14),o.test=e,o.consequent=s,o.alternate=this.forwardNoArrowParamsConversionAt(o,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const n=[e],r=[];for(;0!==n.length;){const e=n.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):"ConditionalExpression"===e.type&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach((e=>this.finishArrowValidation(e))),[r,[]]):function(e,t){const n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i])?n:r).push(e[i]);return[n,r]}(r,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&"type"===e.exportKind&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){const{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(lt.DeclareClassElement,r):t.value&&this.raise(lt.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(b.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):function(e,t,n){return 64===e&&64===t&&ae(n)}(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TypeCastExpression"===(null==n?void 0:n.type)&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;const i=e[r];!i||"TypeCastExpression"!==i.type||null!=(n=i.extra)&&n.parenthesized||!(e.length>1)&&t||this.raise(lt.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,n){return"TypeCastExpression"===e||super.isValidLVal(e,t,n)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,o){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,o),t.params&&i){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(lt.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&i&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(lt.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const n=t[0];this.isThisParam(n)&&"get"===e.kind?this.raise(lt.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(lt.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,o,s){let a;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!o&&(a=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,n,r,i,o,s);return a&&((l.value||l).typeParameters=a),l}parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(lt.PatternIsOptional,e),this.isThisParam(e)&&this.raise(lt.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(lt.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(lt.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(lt.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(lt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=ct(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind="type"===n?n:"value"}else"type"===n&&this.match(55)&&this.unexpected(),e.importKind="type"===n||"typeof"===n?n:"value"}parseImportSpecifier(e,t,n,r,i){const o=e.imported;let s=null;"Identifier"===o.type&&("type"===o.name?s="type":"typeof"===o.name&&(s="typeof"));let a=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===s||K(this.state.type)?(e.imported=o,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=s,e.local=ot(t))}else{if(null!==s&&K(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=s;else{if(t)throw this.raise(b.ImportBindingIsString,e,{importName:o.value});e.imported=o,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(a=!0,e.local=ot(e.imported))}const l=ct(e);return n&&l&&this.raise(lt.ImportTypeShorthandOnlyInPureImport,e),(n||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!a||n||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const n=e.kind;"get"!==n&&"set"!==n&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let r,i=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(i=this.state.clone(),r=this.tryParse((()=>super.parseMaybeAssign(e,t)),i),!r.error)return r.node;const{context:n}=this.state,o=n[n.length-1];o!==w.j_oTag&&o!==w.j_expr||n.pop()}if(null!=(n=r)&&n.error||this.match(47)){var o,s;let n;i=i||this.state.clone();const a=this.tryParse((r=>{var i;n=this.flowParseTypeParameterDeclaration();const o=this.forwardNoArrowParamsConversionAt(n,(()=>{const r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r}));null!=(i=o.extra)&&i.parenthesized&&r();const s=this.maybeUnwrapTypeCastExpression(o);return"ArrowFunctionExpression"!==s.type&&r(),s.typeParameters=n,this.resetStartLocationFromNode(s,n),o}),i);let l=null;if(a.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(a.node).type){if(!a.error&&!a.aborted)return a.node.async&&this.raise(lt.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),a.node;l=a.node}if(null!=(o=r)&&o.node)return this.state=r.failState,r.node;if(l)return this.state=a.failState,l;if(null!=(s=r)&&s.thrown)throw r.error;if(a.thrown)throw a.error;throw this.raise(lt.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!n||-1===this.state.noArrowParamsConversionAt.indexOf(e.start)){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(lt.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,n){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();const n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(n,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const r=this.state.clone(),i=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),r);if(!i.error&&!i.aborted)return i.node;const o=this.tryParse((()=>super.parseSubscripts(e,t,n)),r);if(o.node&&!o.error)return o.node;if(i.node)return this.state=i.failState,i.node;if(o.node)return this.state=o.failState,o.node;throw i.error||o.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();const i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!n&&this.shouldParseTypes()&&this.match(47)){const n=this.startNodeAt(t);n.callee=e;const i=this.tryParse((()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(lt.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(lt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===n&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===n&&58!==r&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(b.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,t){let{enumName:n,memberName:r}=t;this.raise(lt.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:n})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?lt.EnumInvalidMemberInitializerSymbolType:lt.EnumInvalidMemberInitializerPrimaryType:lt.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(lt.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(lt.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const n=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 133:{const n=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 85:case 86:{const n=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){const{explicitType:r}=t;null!==r&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers(e){let{enumName:t,explicitType:n}=e;const r=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let o=!1;for(;!this.match(8);){if(this.eat(21)){o=!0;break}const e=this.startNode(),{id:s,init:a}=this.flowEnumMemberRaw(),l=s.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(lt.EnumInvalidMemberName,s,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:t}),r.has(l)&&this.raise(lt.EnumDuplicateMemberName,s,{memberName:l,enumName:t}),r.add(l);const c={enumName:t,explicitType:n,memberName:l};switch(e.id=s,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"boolean"),e.init=a.value,i.booleanMembers.push(this.finishNode(e,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"number"),e.init=a.value,i.numberMembers.push(this.finishNode(e,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.loc,c,"string"),e.init=a.value,i.stringMembers.push(this.finishNode(e,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.loc,c);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.loc,c);break;default:i.defaultedMembers.push(this.finishNode(e,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:o}}flowEnumStringMembers(e,t,n){let{enumName:r}=n;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r});return e}flowEnumParseExplicitType(e){let{enumName:t}=e;if(!this.eatContextual(102))return null;if(!W(this.state.type))throw this.raise(lt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});const{value:n}=this.state;return this.next(),"boolean"!==n&&"number"!==n&&"string"!==n&&"symbol"!==n&&this.raise(lt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:n}),n}flowEnumBody(e,t){const n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:o,hasUnknownMembers:s}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=s,i){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=o.booleanMembers.length,s=o.numberMembers.length,a=o.stringMembers.length,l=o.defaultedMembers.length;if(i||s||a||l){if(i||s){if(!s&&!a&&i>=l){for(const e of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!a&&s>=l){for(const e of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(lt.EnumInconsistentMemberValues,r,{enumName:n}),t()}return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody")}return t()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(){super(...arguments),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Et.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Et.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Et.InvalidModifierOnTypeParameter})}getScopeHandler(){return gt}tsIsIdentifier(){return W(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!W(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const n=this.state.value;if(-1!==e.indexOf(n)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers(e,t){let{allowedModifiers:n,disallowedModifiers:r,stopOnStartOfClassStaticBlock:i,errorTemplate:o=Et.InvalidModifierOnTypeMember}=e;const s=(e,n,r,i)=>{n===r&&t[i]&&this.raise(Et.InvalidModifiersOrder,e,{orderedModifiers:[r,i]})},a=(e,n,r,i)=>{(t[r]&&n===i||t[i]&&n===r)&&this.raise(Et.IncompatibleModifiers,e,{modifiers:[r,i]})};for(;;){const{startLoc:e}=this.state,l=this.tsParseModifier(n.concat(null!=r?r:[]),i);if(!l)break;xt(l)?t.accessibility?this.raise(Et.DuplicateAccessibilityModifier,e,{modifier:l}):(s(e,l,l,"override"),s(e,l,l,"static"),s(e,l,l,"readonly"),t.accessibility=l):St(l)?(t[l]&&this.raise(Et.DuplicateModifier,e,{modifier:l}),t[l]=!0,s(e,l,"in","out")):(Object.hasOwnProperty.call(t,l)?this.raise(Et.DuplicateModifier,e,{modifier:l}):(s(e,l,"static","readonly"),s(e,l,"static","override"),s(e,l,"override","readonly"),s(e,l,"abstract","override"),a(e,l,"declare","override"),a(e,l,"static","abstract")),t[l]=!0),null!=r&&r.includes(l)&&this.raise(o,e,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){const i=[];let o=-1;for(;!this.tsIsListTerminator(e);){o=-1;const r=t();if(null==r)return;if(i.push(r),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(12))}o=this.state.lastTokStartLoc.index}return r&&(r.value=o),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));const o=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),o}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(Et.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.parseIdentifier(e);for(;this.eat(16);){const n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();const n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(Et.EmptyTypeParameters,t),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const n=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(Et.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!W(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);const n=e;if(this.match(10)||this.match(47)){t&&this.raise(Et.ReadonlyForMethodSignature,e);const r=n;r.kind&&this.match(47)&&this.raise(Et.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();const i="parameters",o="typeAnnotation";if("get"===r.kind)r[i].length>0&&(this.raise(b.BadGetterArity,this.state.curPosition()),this.isThisParam(r[i][0])&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[i].length)this.raise(b.BadSetterArity,this.state.curPosition());else{const e=r[i][0];this.isThisParam(e)&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(Et.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(Et.SetAccesorCannotHaveRestParameter,this.state.curPosition())}r[o]&&this.raise(Et.SetAccesorCannotHaveReturnType,r[o])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}{const e=n;t&&(e.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach((e=>{const{type:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(Et.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{startLoc:e}=this.state,t=this.eat(21);let n,r,i,o;const s=K(this.state.type)?this.lookaheadCharCode():null;if(58===s)n=!0,i=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(63===s){i=!0;const e=this.state.startLoc,t=this.state.value,s=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(n=!0,r=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),o=this.tsParseType()):(n=!1,o=s,this.expect(17))}else o=this.tsParseType(),i=this.eat(17),n=this.eat(14);if(n){let e;r?(e=this.startNodeAtNode(r),e.optional=i,e.label=r,e.elementType=o,this.eat(17)&&(e.optional=!0,this.raise(Et.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(o),e.optional=i,this.raise(Et.InvalidTupleMemberLabel,o),e.label=o,e.elementType=this.tsParseType()),o=this.finishNode(e,"TSNamedTupleMember")}else if(i){const e=this.startNodeAtNode(o);e.typeAnnotation=o,o=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=o,o=this.finishNode(t,"TSRestType")}return o}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,n))),this.finishNode(n,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();return 134!==t.type&&135!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(W(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Et.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,n){const r=this.startNode(),i=this.eat(n),o=[];do{o.push(t())}while(this.eat(n));return 1!==o.length||i?(r.types=o,this.finishNode(r,e)):o[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(W(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const o=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=o,n.asserts=r,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!W(this.state.type)&&!this.match(78)||(e&&this.raise(b.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){_t(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Et.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return n.length||this.raise(Et.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),W(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Et.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType((()=>(this.expect(e),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.global=!0,e.id=this.parseIdentifier()):this.match(133)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(Et.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),n=e();if(void 0!==n&&!1!==n)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,n=this.state.type;return this.isContextual(100)&&(n=74,t="let"),this.tsInAmbientContext((()=>{switch(n){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,t||this.state.value,!0));case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(W(n))return this.tsParseDeclaration(e,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,n){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,n)}}tsParseDeclaration(e,t,n,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(n)&&(this.match(80)||W(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(n)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(W(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(n)&&W(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(n)&&W(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const n=this.tsTryParseAndCatch((()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));return this.state.maybeInArrowParameters=t,n?super.parseArrowExpression(n,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length?this.raise(Et.EmptyTypeArguments,e):this.state.inType||this.curContext()!==w.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const n=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);const i=r.accessibility,o=r.override,s=r.readonly;4&e||!(i||s||o)||this.raise(Et.UnexpectedParameterModifier,n);const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,e);const l=this.parseMaybeDefault(a.loc.start,a);if(i||s||o){const e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),s&&(e.readonly=s),o&&(e.override=o),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(Et.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(Et.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const r="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(Et.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(Et.UnexpectedTypeAnnotation,e.typeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let o;const s=this.tsTryParseAndCatch((()=>{if(!n&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}const s=this.tsParseTypeArgumentsInExpression();if(!s)return;if(i&&!this.match(10))return void(o=this.state.curPosition());if(J(this.state.type)){const n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=s,n}if(!n&&this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=s,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}const a=this.state.type;if(48===a||52===a||10!==a&&H(a)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(t);return l.expression=e,l.typeParameters=s,this.finishNode(l,"TSInstantiationExpression")}));if(o&&this.unexpected(o,10),s)return"TSInstantiationExpression"===s.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(Et.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),s}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:n}=e;"TSInstantiationExpression"!==n.type||null!=(t=n.extra)&&t.parenthesized||(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(Y(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){const i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(r&&this.raise(b.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(i,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Et.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind="type"===n?"type":"value":e.importKind="type"===n||"typeof"===n?n:"value"}parseImport(e){if(this.match(133))return e.importKind="value",super.parseImport(e);let t;if(W(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const n=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(Et.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?t=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,t,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;for(const{id:e,init:n}of i.declarations)n&&("const"!==t||e.typeAnnotation?this.raise(Et.InitializerNotAllowedInAmbientContext,n):Tt(n,this.hasPlugin("estree"))||this.raise(Et.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>xt(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,n){const r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Et.InvalidModifierOnTypeParameterPositions},t);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(Et.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){const i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(Et.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(Et.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(Et.IndexSignatureHasDeclare,t),void(t.override&&this.raise(Et.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(Et.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(Et.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Et.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Et.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,n){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,n):void 0)||super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,n);const r=this.tryParse((()=>super.parseConditional(e,t)));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(n,r.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));const t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Et.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const r=W(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||n)&&(e.exportKind="type"),n&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(Et.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(Et.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Et.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Et.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Et.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,o){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&i&&this.raise(Et.ConstructorHasTypeParameters,s);const{declare:a=!1,kind:l}=t;!a||"get"!==l&&"set"!==l||this.raise(Et.DeclareAccessor,t,{kind:l}),s&&(t.typeParameters=s),super.pushClassMethod(e,t,n,r,i,o)}pushClassPrivateMethod(e,t,n,r){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"!==e.type||e.value.body)&&super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,n,r,i,o,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,n,r,i,o,s)}parseFunctionParams(e,t){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i,o,s;let a,l,c,u;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(a=this.state.clone(),l=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!l.error)return l.node;const{context:n}=this.state,r=n[n.length-1];r!==w.j_oTag&&r!==w.j_expr||n.pop()}if(!(null!=(n=l)&&n.error||this.match(47)))return super.parseMaybeAssign(e,t);a&&a!==this.state||(a=this.state.clone());const p=this.tryParse((n=>{var r,i;u=this.tsParseTypeParameters(this.tsParseConstModifier);const o=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==o.type||null!=(r=o.extra)&&r.parenthesized)&&n(),0!==(null==(i=u)?void 0:i.params.length)&&this.resetStartLocationFromNode(o,u),o.typeParameters=u,o}),a);if(!p.error&&!p.aborted)return u&&this.reportReservedArrowTypeParam(u),p.node;if(!l&&(_t(!this.hasPlugin("jsx")),c=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!c.error))return c.node;if(null!=(r=l)&&r.node)return this.state=l.failState,l.node;if(p.node)return this.state=p.failState,u&&this.reportReservedArrowTypeParam(u),p.node;if(null!=(i=c)&&i.node)return this.state=c.failState,c.node;throw(null==(o=l)?void 0:o.error)||p.error||(null==(s=c)?void 0:s.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(Et.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(Et.UnexpectedTypeCastInParameter,e):this.raise(Et.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n){return r={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==n||!t)&&["expression",!0],TSSatisfiesExpression:(64!==n||!t)&&["expression",!0],TSTypeAssertion:(64!==n||!t)&&["expression",!0]},i=e,Object.hasOwnProperty.call(r,i)&&r[i]||super.isValidLVal(e,t,n);var r,i}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){const t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const n=super.parseMaybeDecoratorArguments(e);return n.typeParameters=t,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Et.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TSTypeCastExpression"===(null==n?void 0:n.type)&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(e,!0))):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,t,n){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(Et.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,n,r,i,o,s){const a=super.parseMethod(e,t,n,r,i,o,s);if(a.abstract&&(this.hasPlugin("estree")?a.value.body:a.body)){const{key:e}=a;this.raise(Et.AbstractMethodHasImplementation,a,{methodName:"Identifier"!==e.type||a.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return a}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){const r=t?"imported":"local",i=t?"local":"exported";let o,s=e[r],a=!1,l=!0;const c=s.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const n=this.parseIdentifier();K(this.state.type)?(a=!0,s=e,o=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(o=n,l=!1)}else K(this.state.type)?(l=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(a=!0,s=e)}else K(this.state.type)&&(a=!0,t?(s=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(s.name,s.loc.start,!0,!0)):s=this.parseModuleExportName());a&&n&&this.raise(t?Et.TypeModifierIsUsedInTypeImports:Et.TypeModifierIsUsedInTypeExports,c),e[r]=s,e[i]=o,e[t?"importKind":"exportKind"]=a?"type":"value",l&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=ot(e[r])),t&&this.checkIdentifier(e[i],a?4098:4096)}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),W(this.state.type)){const e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(n.type="V8IntrinsicIdentifier",this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(144)){const t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){const n=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,n?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){void 0!==e&&super.checkReservedWord(e,t,n,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,n){return"Placeholder"===e||super.isValidLVal(e,t,n)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!!super.chStartsBindingIdentifier(e,t)||144===this.lookahead().type}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if("Placeholder"!==t.type||null!=(n=t.extra)&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const n=e;return n.label=this.finishPlaceholder(t,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,t,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,n){const r=t?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,o=this.parsePlaceholder("Identifier");if(o){if(!(this.match(81)||this.match(144)||this.match(5))){if(n||!t)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(Ot.ClassNameIsRequired,this.state.startLoc)}e.id=o}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){const n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(e,t);if(!this.isContextual(98)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const r=this.startNode();return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(X(144),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return!(null==(n=e.specifiers)||!n.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ot.UnexpectedSpace,this.state.lastTokEndLoc)}}},Mt=Object.keys(Dt),Lt={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};class Rt extends bt{checkProto(e,t,n,r){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;const i=e.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(t)return void this.raise(b.RecordNoProto,i);n.used&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=i.loc.start):this.raise(b.DuplicateProto,i)),n.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();const e=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){const r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var n;e.optionalParametersLoc=null!=(n=null==t?void 0:t.loc)?n:this.state.startLoc}parseMaybeAssign(e,t){const n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}let r;e?r=!1:(e=new nt,r=!0);const{type:i}=this.state;(10===i||W(i))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,n)),(s=this.state.type)>=29&&s<=33){const t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(o,!0),t.left=o;const r=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,{in:this.finishNode(t,"AssignmentExpression")}),t}var s;return r&&this.checkExpressionErrors(e,!0),o}parseMaybeConditional(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){const n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(n>=Y(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(b.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const r=this.state.type;if((i=r)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=Y(r);if(i>n){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const o=this.startNodeAt(t);o.left=e,o.operator=this.state.value;const s=41===r||42===r,a=40===r;if(a&&(i=Y(42)),this.next(),39===r&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(b.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);o.right=this.parseExprOpRightExpr(r,i);const l=this.finishNode(o,s||a?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(a&&(41===c||42===c)||s&&40===c)throw this.raise(b.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,n)}}var i;return e}parseExprOpRightExpr(e,t){const n=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(b.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,n=this.parseMaybeAssign();return!f.has(n.type)||null!=(e=n.extra)&&e.parenthesized||this.raise(b.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(b.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const n=this.state.startLoc,r=this.isContextual(96);if(r&&this.isAwaitAllowed()){this.next();const e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}const i=this.match(34),o=this.startNode();if(s=this.state.type,F[s]){o.operator=this.state.value,o.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const n=this.match(89);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){const e=o.argument;"Identifier"===e.type?this.raise(b.StrictDelete,o):this.hasPropertyAsPrivateName(e)&&this.raise(b.DeletePrivateField,o)}if(!i)return t||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}var s;const a=this.parseUpdate(o,i,e);if(r){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?H(e):H(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(b.AwaitNotInAsyncContext,n),this.parseAwait(n)}return a}parseUpdate(e,t,n){if(t){const t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}const r=this.state.startLoc;let i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,{in:i=this.finishNode(e,"UpdateExpression")})}return i}parseExprSubscripts(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){const r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1}while(!r.stop);return e}parseSubscript(e,t,n,r){const{type:i}=this.state;if(!n&&15===i)return this.parseBind(e,t,n,r);if(J(i))return this.parseTaggedTemplateExpression(e,t,r);let o=!1;if(18===i){if(n&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return r.stop=!0,e;r.optionalChainMember=o=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,o);{const n=this.eat(0);return n||o||this.eat(16)?this.parseMember(e,t,r,n,o):(r.stop=!0,e)}}parseMember(e,t,n,r,i){const o=this.startNodeAt(t);return o.object=e,o.computed=r,r?(o.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===e.type&&this.raise(b.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),o.property=this.parsePrivateName()):o.property=this.parseIdentifier(!0),n.optionalChainMember?(o.optional=i,this.finishNode(o,"OptionalMemberExpression")):this.finishNode(o,"MemberExpression")}parseBind(e,t,n,r){const i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){const i=this.state.maybeInArrowParameters;let o=null;this.state.maybeInArrowParameters=!0,this.next();const s=this.startNodeAt(t);s.callee=e;const{maybeAsyncArrow:a,optionalChainMember:l}=n;a&&(this.expressionScope.enter(new Xe(2)),o=new nt),l&&(s.optional=r),s.arguments=r?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,s,o);let c=this.finishCallExpression(s,l);return a&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(a&&(this.checkExpressionErrors(o,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=i,c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){const r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(b.OptionalChainingNoTemplate,t),this.finishNode(r,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===e.arguments.length||e.arguments.length>2)this.raise(b.ImportCallArity,e,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(b.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,n,r,i){const o=[];let s=!0;const a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){!t||this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(b.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),r&&this.addTrailingCommaExtraToNode(r),this.next();break}o.push(this.parseExprListItem(!1,i,n))}return this.state.inFSharpPipelineDirectBody=a,o}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var n;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(n=t.extra)?void 0:n.trailingCommaLoc),t.innerComments&&Se(e,t.innerComments),t.callee.trailingComments&&Se(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null;const{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.options.createImportExpressions?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(b.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(b.UnsupportedBind,e)}case 138:return this.raise(b.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());ae(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(W(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(W(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(90===e)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=s(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(e){const t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r)){const r="smart"===n?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===n?b.PrimaryTopicNotAllowed:b.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,r)}throw this.raise(b.PipeTopicUnconfiguredToken,t,{token:X(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:X(n)}]);case"smart":return 27===n;default:throw this.raise(b.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(et(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(b.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(b.UnexpectedSuper,e):this.raise(b.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(b.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(s(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;const r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(b.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(b.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);if(t||this.unexpected(),this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(b.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){const n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let n;this.next(),this.expressionScope.enter(new Xe(1));const r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const o=this.state.startLoc,s=[],a=new nt;let l,c,u=!0;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,null===a.optionalParametersLoc?null:a.optionalParametersLoc),this.match(11)){c=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(l=this.state.startLoc,s.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else s.push(this.parseMaybeAssignAllowIn(a,this.parseParenItem))}const p=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let f=this.startNodeAt(t);return e&&this.shouldParseArrow(s)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,s,!1),f):(this.expressionScope.exit(),s.length||this.unexpected(this.state.lastTokStartLoc),c&&this.unexpected(c),l&&this.unexpected(l),this.checkExpressionErrors(a,!0),this.toReferencedListDeep(s,!0),s.length>1?(n=this.startNodeAt(o),n.expressions=s,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,p)):n=s[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;const n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const n=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(b.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83),n=this.parseNoCallExpr();e.callee=n,!t||"Import"!==n.type&&"ImportExpression"!==n.type||this.raise(b.ImportCallNotNewExpression,n)}parseTemplateElement(e){const{start:t,startLoc:n,end:r,value:i}=this.state,o=t+1,a=this.startNodeAt(s(n,1));null===i&&(e||this.raise(b.InvalidEscapeSequenceTemplate,s(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),c=l?-1:-2,u=r+c;a.value={raw:this.input.slice(o,u).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,c)},a.tail=l,this.next();const p=this.finishNode(a,"TemplateElement");return this.resetEndLocation(p,s(this.state.lastTokEndLoc,c)),p}parseTemplate(e){const t=this.startNode();t.expressions=[];let n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(n=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const o=Object.create(null);let s=!0;const a=this.startNode();for(a.properties=[],this.next();!this.match(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(a);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),this.checkProto(i,n,o,r)),n&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(b.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),a.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";return t?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(a,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(b.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const n=this.startNode();let r,i=!1,o=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(r=this.state.startLoc);let s=this.eat(55);this.parsePropertyNamePrefixOperator(n);const a=this.state.containsEsc,l=this.parsePropertyName(n,e);if(!s&&!a&&this.maybeAsyncOrAccessorProp(n)){const e=l.name;"async"!==e||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(l),s=this.eat(55),this.parsePropertyName(n)),"get"!==e&&"set"!==e||(o=!0,this.resetPreviousNodeTrailingComments(l),n.kind=e,this.match(55)&&(s=!0,this.raise(b.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,r,s,i,!1,o,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const n=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==n&&this.raise("get"===e.kind?b.BadGetterArity:b.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=r[r.length-1])?void 0:t.type)&&this.raise(b.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){const n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,ot(e.key));else if(this.match(29)){const n=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=n):this.raise(b.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,ot(e.key))}else e.value=ot(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,n,r,i,o,s){const a=this.parseObjectMethod(e,n,r,i,o)||this.parseObjectProperty(e,t,i,s);return a||this.unexpected(),a}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:n,value:r}=this.state;let i;if(K(n))i=this.parseIdentifier(!0);else switch(n){case 134:i=this.parseNumericLiteral(r);break;case 133:i=this.parseStringLiteral(r);break;case 135:i=this.parseBigIntLiteral(r);break;case 136:i=this.parseDecimalLiteral(r);break;case 138:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(b.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:this.unexpected()}e.key=i,138!==n&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,o){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,n),e.generator=t,this.scope.enter(18|(s?64:0)|(i?32:0)),this.prodParam.enter(et(n,e.generator)),this.parseFunctionParams(e,r);const a=this.parseFunctionBodyAndFinish(e,o,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const o=this.startNode();return this.next(),o.elements=this.parseExprList(e,!n,r,o),this.state.inFSharpPipelineDirectBody=i,this.finishNode(o,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,n,r){this.scope.enter(6);let i=et(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);const o=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=o,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=t&&!this.match(5);if(this.expressionScope.enter(Je()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(i=>{const o=!this.isSimpleParamList(e.params);i&&o&&this.raise(b.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const s=!r&&this.state.strict;this.checkParams(e,!(this.state.strict||t||n||o),t,s),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,s)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=!t&&new Set,o={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,{in:o,binding:5,checkClashes:i,strictModeChanged:r})}parseExprList(e,t,n,r){const i=[];let o=!0;for(;!this.eat(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(t,n))}return i}parseExprListItem(e,t,n){let r;if(this.match(12))e||this.raise(b.UnexpectedToken,this.state.curPosition(),{unexpected:","}),r=null;else if(this.match(21)){const e=this.state.startLoc;r=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(b.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),r=this.finishNode(e,"ArgumentPlaceholder")}else r=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return r}parseIdentifier(e){const t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t;const{startLoc:n,type:r}=this.state;K(r)?t=this.state.value:this.unexpected();const i=r<=92;return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)&&function(e){return ye.has(e)}(e))if(n&&function(e){return ce.has(e)}(e))this.raise(b.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?r?me:de:fe)(e,this.inModule))this.raise(b.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(b.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(b.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(b.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(b.ArgumentsInClass,t)}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(b.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(b.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||J(e)||102===e&&!this.state.containsEsc||137===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(){const e=this.startNode();this.expressionScope.recordParameterInitializerError(b.YieldInParameter,e),this.next();let t=!1,n=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:n=this.parseMaybeAssign()}return e.delegate=t,e.argument=n,this.finishNode(e,"YieldExpression")}parseImportCall(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(b.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,"PipelineBareFunction")}{const n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(b.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipelineTopicUnused,e)}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{n()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const qt={kind:1},Bt={kind:2},Ft=/[\uD800-\uDFFF]/u,Ut=/in(?:stanceof)?/y;class Vt extends Rt{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=function(e,t){for(let n=0;n<e.length;n++){const r=e[n],{type:i}=r;if("number"==typeof i){if(138===i){const{loc:t,start:i,value:o,end:a}=r,l=i+1,c=s(t.start,1);e.splice(n,1,new Ke({type:Z(27),value:"#",start:i,end:l,startLoc:t.start,endLoc:c}),new Ke({type:Z(132),value:o,start:l,end:a,startLoc:c,endLoc:t.end})),n++;continue}if(J(i)){const{loc:o,start:a,value:l,end:c}=r,u=a+1,p=s(o.start,1);let f,d,h,m,y;f=96===t.charCodeAt(a)?new Ke({type:Z(22),value:"`",start:a,end:u,startLoc:o.start,endLoc:p}):new Ke({type:Z(8),value:"}",start:a,end:u,startLoc:o.start,endLoc:p}),24===i?(h=c-1,m=s(o.end,-1),d=null===l?null:l.slice(1,-1),y=new Ke({type:Z(22),value:"`",start:h,end:c,startLoc:m,endLoc:o.end})):(h=c-2,m=s(o.end,-2),d=null===l?null:l.slice(1,-2),y=new Ke({type:Z(23),value:"${",start:h,end:c,startLoc:m,endLoc:o.end})),e.splice(n,1,f,new Ke({type:Z(20),value:d,start:u,end:h,startLoc:p,endLoc:m}),y),n+=2;continue}r.type=Z(i)}}return e}(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:139,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,n),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(b.ModuleExportUndefined,t,{localName:e});return t=139===n?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",s(this.state.startLoc,-1)),t}stmtToDirective(e){const t=e;t.type="Directive",t.value=t.expression,delete t.expression;const n=t.value,r=n.value,i=this.input.slice(n.start,n.end),o=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",o),this.addExtra(n,"expressionValue",r),n.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(ae(e)){if(Ut.lastIndex=t,Ut.test(this.input)){const e=this.codePointAtPos(Ut.lastIndex);if(!le(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifier(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){const{type:e,containsEsc:t}=this.lookahead();return!(102===e&&!t)&&(W(e)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const n=this.state.type,r=this.startNode(),i=!!(2&e),o=!!(4&e),s=1&e;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(46===this.lookaheadCharCode())break;return o||this.raise(this.state.strict?b.StrictFunction:this.options.annexB?b.SloppyFunctionAnnexB:b.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&o);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?i||this.raise(b.UnexpectedLexicalDeclaration,r):this.raise(b.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(b.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:i||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return this.options.allowImportExportEverywhere||s||this.raise(b.UnexpectedImportExport,this.state.startLoc),this.next(),83===n?(e=this.parseImport(r),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(r,t),("ExportNamedDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(b.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&o)}const a=this.state.value,l=this.parseExpression();return W(n)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(r,a,l,e):this.parseExpressionStatement(r,l,t)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(b.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,n){return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(b.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(b.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let n;if(this.match(10)){const t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);const r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==n&&this.raise(b.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=n,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(n)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){const r=this.state.labels[n];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(t||1===r.kind))break;if(e.label&&t)break}}if(n===this.state.labels.length){const n=t?"BreakStatement":"ContinueStatement";this.raise(b.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(qt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(qt);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);const n=this.isContextual(100);{const r=this.isContextual(96)&&this.startsAwaitUsing(),i=r||this.isContextual(107)&&this.startsUsingForOf(),o=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||o){const n=this.startNode();let o;r?(o="await using",this.isAwaitAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):o=this.state.value,this.next(),this.parseVar(n,!0,o);const s=this.finishNode(n,"VariableDeclaration"),a=this.match(58);return a&&i&&this.raise(b.ForInUsing,s),(a||this.isContextual(102))&&1===s.declarations.length?this.parseForIn(e,s,t):(null!==t&&this.unexpected(t),this.parseFor(e,s))}}const r=this.isContextual(95),i=new nt,o=this.parseExpression(!0,i),s=this.isContextual(102);if(s&&(n&&this.raise(b.ForOfLet,o),null===t&&r&&"Identifier"===o.type&&this.raise(b.ForOfAsync,o)),s||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(o,!0);const n=s?"ForOfStatement":"ForInStatement";return this.checkLVal(o,{in:{type:n}}),this.parseForIn(e,o,t)}return this.checkExpressionErrors(i,!0),null!==t&&this.unexpected(t),this.parseFor(e,o)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(b.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let n;this.expect(5),this.state.labels.push(Bt),this.scope.enter(0);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const r=this.match(61);n&&this.finishNode(n,"SwitchCase"),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(b.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(b.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:9}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(b.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(qt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(b.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,n,r){for(const e of this.state.labels)e.name===t&&this.raise(b.LabelRedeclaration,n,{labelName:t});const i=(o=this.state.type)>=90&&o<=92?1:this.match(71)?2:null;var o;for(let t=this.state.labels.length-1;t>=0;t--){const n=this.state.labels[t];if(n.statementStart!==e.start)break;n.statementStart=this.state.start,n.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;const r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){const o=e.body=[],s=e.directives=[];this.parseBlockOrModuleBlockBody(o,t?s:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){const o=this.state.strict;let s=!1,a=!1;for(;!this.match(r);){const r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!a){if(this.isValidDirective(r)){const e=this.stmtToDirective(r);t.push(e),s||"use strict"!==e.value.value||(s=!0,this.setStrict(!0));continue}a=!0,this.state.strictErrors.clear()}e.push(r)}null==i||i.call(this,s),o||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,n){const r=this.match(58);return this.next(),r?null!==n&&this.unexpected(n):e.await=null!==n,"VariableDeclaration"!==t.type||null==t.declarations[0].init||r&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(b.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(b.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")}parseVar(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=e.declarations=[];for(e.kind=n;;){const e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||r||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==n||this.match(58)||this.isContextual(102)||this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"const"}):this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const n=this.parseBindingAtom();this.checkLVal(n,{in:{type:"VariableDeclarator"},binding:"var"===t?5:8201}),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=2&t,r=!!(1&t),i=r&&!(4&t),o=!!(8&t);this.initFunction(e,o),this.match(55)&&(n&&this.raise(b.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));const s=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(et(o,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,r?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=s,e}parseFunctionId(e){return e||W(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new Qe(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();const r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();const n={hadConstructor:!1,hadSuperClass:e};let r=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(b.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}const e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(b.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),r.length)throw this.raise(b.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const r=t;return r.kind="method",r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){const r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){const i=t,o=t,s=t,a=t,l=t,c=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";const t=this.match(138);return this.parseClassElementName(c),t?void this.pushClassPrivateMethod(e,o,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}const p=W(this.state.type)&&!this.state.containsEsc,f=this.match(138),d=this.parseClassElementName(t),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",f)return void this.pushClassPrivateMethod(e,o,!1,!1);const r=this.isNonstaticConstructor(i);let s=!1;r&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(b.DuplicateConstructor,d),r&&this.hasPlugin("typescript")&&t.override&&this.raise(b.OverrideOnConstructor,d),n.hadConstructor=!0,s=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,s)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s);else if(p&&"async"===d.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(d);const t=this.eat(55);u.optional&&this.unexpected(h),c.kind="method";const n=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),n?this.pushClassPrivateMethod(e,o,t,!0):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if(!p||"get"!==d.name&&"set"!==d.name||this.match(55)&&this.isLineTerminator())if(p&&"accessor"===d.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(d);const t=this.match(138);this.parseClassElementName(s),this.pushClassAccessorProperty(e,l,t)}else this.isLineTerminator()?f?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s):this.unexpected();else{this.resetPreviousNodeTrailingComments(d),c.kind=d.name;const t=this.match(138);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,o,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}}parseClassElementName(e){const{type:t,value:n}=this.state;if(132!==t&&133!==t||!e.static||"prototype"!==n||this.raise(b.StaticPrototype,this.state.startLoc),138===t){"constructor"===n&&this.raise(b.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var n;this.scope.enter(208);const r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),null!=(n=t.decorators)&&n.length&&this.raise(b.DecoratorStaticBlock,t)}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(b.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){if(!n&&!t.computed){const e=t.key;"constructor"!==e.name&&"constructor"!==e.value||this.raise(b.ConstructorClassField,e)}const r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,o){e.body.push(this.parseMethod(t,n,r,i,o,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,r){const i=this.parseMethod(t,n,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);const o="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,o)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Je()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8331;if(W(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else{if(!n&&t)throw this.raise(b.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),o=i&&this.eatExportStar(e),s=o&&this.maybeParseExportNamespaceSpecifier(e),a=i&&(!s||this.eat(12)),l=r||o;if(o&&!s){if(r&&this.unexpected(),t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(e);let u;if(r&&i&&!o&&!c&&this.unexpected(null,5),s&&a&&this.unexpected(null,98),l||c){if(u=!1,t)throw this.raise(b.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else u=this.maybeParseExportDeclaration(e);if(l||c||u){var p;const n=e;if(this.checkExport(n,!0,!1,!!n.source),"ClassDeclaration"===(null==(p=n.declaration)?void 0:p.type))this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.finishNode(n,"ExportNamedDeclaration")}if(this.eat(65)){const n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.finishNode(n,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);const n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);const t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(b.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(W(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const{type:e}=this.lookahead();if(W(e)&&98!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),n=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||W(this.state.type)&&n)return!0;if(this.match(65)&&n){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){var i;if(t)if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var o;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(o=t.extra)&&o.parenthesized||this.raise(b.ExportDefaultFromAsIdentifier,t)}}else if(null!=(i=e.specifiers)&&i.length)for(const t of e.specifiers){const{exported:e}=t,n="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(b.ExportBindingIsString,t,{localName:e.value,exportName:n}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){const t=e.declaration.id;if(!t)throw new Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if("VariableDeclaration"===e.declaration.type)for(const t of e.declaration.declarations)this.checkDeclaration(t.id)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(b.DuplicateDefaultExport,e):this.raise(b.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const r=this.isContextual(130),i=this.match(133),o=this.startNode();o.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(o,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=function(e){const{type:t,start:n,end:r,loc:i,range:o,extra:s}=e;if("Placeholder"===t)return function(e){return ot(e)}(e);const a=Object.create(it);return a.type=t,a.start=n,a.end=r,a.loc=i,a.range=o,void 0!==e.raw?a.raw=e.raw:a.extra=s,a.value=e.value,a}(e.local):e.exported||(e.exported=ot(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const e=this.parseStringLiteral(this.state.value),t=e.value.match(Ft);return t&&this.raise(b.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((e=>{let{key:t,value:n}=e;return"json"===n.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)}))}checkImportReflection(e){const{specifiers:t}=e,n=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==n&&this.raise(b.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==n&&this.raise(b.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;"ImportDefaultSpecifier"!==n&&this.raise(b.ImportReflectionNotBinding,t[0].loc.start),(null==(r=e.assertions)?void 0:r.length)>0&&this.raise(b.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find((e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==e&&this.raise(b.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,n,r){t||("module"===n?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===n?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===n?(this.expectPlugin("deferredImportEvaluation",r),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const n=this.parseIdentifier(!0),{type:r}=this.state;return(K(r)?98!==r||102===this.lookaheadCharCode():12!==r)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(e,t,n.name,n.loc.start),null):(this.applyImportPhase(e,t,null),n)}isPrecedingIdImportPhase(e){const{type:t}=this.state;return W(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8201;return this.checkLVal(e.local,{in:{type:t},binding:n}),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(b.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(133)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),"type"!==n.key.name&&this.raise(b.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(b.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t,n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?t=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),t=this.parseImportAttributes()),n=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(b.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),t=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))t=[];else{if(!this.hasPlugin("moduleAttributes"))return;t=[]}!n&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}return!!K(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(b.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const n=this.startNode(),r=this.match(133),i=this.isContextual(130);n.imported=this.parseModuleExportName();const o=this.parseImportSpecifier(n,r,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(o)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:n}=e;if(t)throw this.raise(b.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||(e.local=ot(n))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class $t extends Vt{constructor(e,t){super(e=function(e){if(null==e)return Object.assign({},Lt);if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");const t={};for(const r of Object.keys(Lt)){var n;t[r]=null!=(n=e[r])?n:Lt[r]}return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=function(e){const t=new Map;for(const n of e){const[e,r]=Array.isArray(n)?n:[n,{}];t.has(e)||t.set(e,r||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return ve}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}}const Wt=function(e){const t={};for(const n of Object.keys(e))t[n]=Z(e[n]);return t}($);function Kt(e,t){let n=$t;return null!=e&&e.plugins&&(function(e){if(Ct(e,"decorators")){if(Ct(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=kt(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=kt(e,"decorators","allowCallParenthesized");if(null!=n&&"boolean"!=typeof n)throw new Error("'allowCallParenthesized' must be a boolean.")}if(Ct(e,"flow")&&Ct(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Ct(e,"placeholders")&&Ct(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Ct(e,"pipelineOperator")){const t=kt(e,"pipelineOperator","proposal");if(!It.includes(t)){const e=It.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}const n=Ct(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(Ct(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Ct(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const t=kt(e,"pipelineOperator","topicToken");if(!jt.includes(t)){const e=jt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&n)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&n)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Ct(e,"moduleAttributes")){if(Ct(e,"importAssertions")||Ct(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==kt(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Ct(e,"importAssertions")&&Ct(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(Ct(e,"recordAndTuple")&&null!=kt(e,"recordAndTuple","syntaxType")&&!Nt.includes(kt(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Nt.map((e=>`'${e}'`)).join(", "));if(Ct(e,"asyncDoExpressions")&&!Ct(e,"doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(Ct(e,"optionalChainingAssign")&&"2023-07"!==kt(e,"optionalChainingAssign","version"))throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(e.plugins),n=function(e){const t=Mt.filter((t=>Ct(e,t))),n=t.join("/");let r=zt[n];if(!r){r=$t;for(const e of t)r=Dt[e](r);zt[n]=r}return r}(e.plugins)),new n(e,t)}const zt={};t.parse=function(e,t){var n;if("unambiguous"!==(null==(n=t)?void 0:n.sourceType))return Kt(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const n=Kt(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",Kt(t,e).parse()}catch(e){}else r.program.sourceType="script";return r}catch(n){try{return t.sourceType="script",Kt(t,e).parse()}catch(e){}throw n}},t.parseExpression=function(e,t){const n=Kt(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()},t.tokTypes=Wt},(e,t,n)=>{var r;n(12);var i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new s},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,p=n(230)(),f=n(231)(),d=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),h={},m="undefined"!=typeof Uint8Array&&d?d(Uint8Array):r,y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p&&d?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&d?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&d?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&d?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&d?d(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(d)try{null.error}catch(e){var g=d(d(e));y["%Error.prototype%"]=g}var v=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&d&&(n=d(i.prototype))}return y[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=n(71),E=n(233),x=_.call(Function.call,Array.prototype.concat),S=_.call(Function.apply,Array.prototype.splice),w=_.call(Function.call,String.prototype.replace),T=_.call(Function.call,String.prototype.slice),A=_.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,C=function(e,t){var n,r=e;if(E(b,r)&&(r="%"+(n=b[r])[0]+"%"),E(y,r)){var o=y[r];if(o===h&&(o=v(r)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=T(e,0,1),n=T(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return w(e,P,(function(e,t,n,i){r[r.length]=n?w(i,O,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=C("%"+r+"%",t),a=o.name,c=o.value,u=!1,p=o.alias;p&&(r=p[0],S(n,x([0,1],p)));for(var f=1,d=!0;f<n.length;f+=1){var h=n[f],m=T(h,0,1),g=T(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&d||(u=!0),E(y,a="%"+(r+="."+h)+"%"))c=y[a];else if(null!=c){if(!(h in c)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&f+1>=n.length){var v=l(c,h);c=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[h]}else d=E(c,h),c=c[h];d&&!u&&(y[a]=c)}}return c}},(e,t,n)=>{const r=n(34),i=n(47),o=n(3),s=n(128),a=n(30),l=n(253),c=n(254),u=n(255),p=n(256),f=n(257),d=n(258),h=n(259),m=n(260),y=n(7),g=n(261),v=n(262),b=n(76),_=n(263),E=n(264),x=n(49),S=n(77),w=n(129),T=n(130),A=n(78),P=n(79),O=n(131),C=n(265),k=n(50),I=n(8),j=n(51),N=n(268),D=n(269),M=n(270),L=n(271),R=n(272),q=n(80),B=n(273),F=n(274),U=n(275),V=n(276),$=n(277);e.exports={parse:a,valid:l,clean:c,inc:u,diff:p,major:f,minor:d,patch:h,prerelease:m,compare:y,rcompare:g,compareLoose:v,compareBuild:b,sort:_,rsort:E,gt:x,lt:S,eq:w,neq:T,gte:A,lte:P,cmp:O,coerce:C,Comparator:k,Range:I,satisfies:j,toComparators:N,maxSatisfying:D,minSatisfying:M,minVersion:L,validRange:R,outside:q,gtr:B,ltr:F,intersects:U,simplifyRange:V,subset:$,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},(e,t,n)=>{let r,i,o,s,{isClean:a,my:l}=n(145),c=n(52),u=n(56),p=n(53);function f(e){return e.map((e=>(e.nodes&&(e.nodes=f(e.nodes)),delete e.source,e)))}function d(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)d(t)}class h extends p{append(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e[t](...r.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)))}:"every"===t||"some"===t?n=>e[t]((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return n(e.toProxy(),...r)})):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=f(r(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new c(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new u(e)]}return e.map((e=>(e[l]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&d(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}h.registerParse=e=>{r=e},h.registerRule=e=>{i=e},h.registerAtRule=e=>{o=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},(e,t,n)=>{var r=n(17);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o,s,a=n(227).codes,l=a.ERR_AMBIGUOUS_ARGUMENT,c=a.ERR_INVALID_ARG_TYPE,u=a.ERR_INVALID_ARG_VALUE,p=a.ERR_INVALID_RETURN_VALUE,f=a.ERR_MISSING_ARGS,d=n(241),h=n(32).inspect,m=n(32).types,y=m.isPromise,g=m.isRegExp,v=n(242)(),b=n(74)(),_=n(38)("RegExp.prototype.test");function E(){var e=n(245);o=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var x=!1,S=e.exports=P,w={};function T(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function A(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new d({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[P,t.length].concat(t))}S.fail=function e(t,n,i,o,s){var a,l=arguments.length;if(0===l?a="Failed":1===l?(i=t,t=void 0):(!1===x&&(x=!0,(r.emitWarning?r.emitWarning:void 0)("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===l&&(o="!=")),i instanceof Error)throw i;var c={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==i&&(c.message=i);var u=new d(c);throw a&&(u.message=a,u.generatedMessage=!0),u},S.AssertionError=d,S.ok=P,S.equal=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");t!=n&&T({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},S.notEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");t==n&&T({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},S.deepEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===o&&E(),o(t,n)||T({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},S.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===o&&E(),o(t,n)&&T({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},S.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===o&&E(),s(t,n)||T({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},S.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");void 0===o&&E(),s(t,n)&&T({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},S.strictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");b(t,n)||T({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},S.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new f("actual","expected");b(t,n)&&T({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var O=function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&g(t[e])&&_(t[e],r[e])?i[e]=r[e]:i[e]=t[e])}))}));function C(e,t,n,r){if("function"!=typeof t){if(g(t))return _(t,e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var a=new d({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw a.operator=r.name,a}var l=Object.keys(t);if(t instanceof Error)l.push("name","message");else if(0===l.length)throw new u("error",t,"may not be an empty object");return void 0===o&&E(),l.forEach((function(i){"string"==typeof e[i]&&g(t[i])&&_(t[i],e[i])||function(e,t,n,r,i,o){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new O(e,i),l=new O(t,i,e),c=new d({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}T({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}(e,t,i,n,l,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function k(e){if("function"!=typeof e)throw new c("fn","Function",e);try{e()}catch(e){return e}return w}function I(e){return y(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function j(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!I(t=e()))throw new p("instance of Promise","promiseFn",t)}else{if(!I(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return w})).catch((function(e){return e}))}))}function N(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(t===w){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var s="rejects"===e.name?"rejection":"exception";T({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(s).concat(o),stackStartFn:e})}if(n&&!C(t,n,r,e))throw t}function D(e,t,n,r){if(t!==w){if("string"==typeof n&&(r=n,n=void 0),!n||C(t,n)){var i=r?": ".concat(r):".",o="doesNotReject"===e.name?"rejection":"exception";T({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function M(e,t,n,r,o){if(!g(t))throw new c("regexp","RegExp",t);var s="match"===o;if("string"!=typeof e||_(t,e)!==s){if(n instanceof Error)throw n;var a=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(h(e),")"):(s?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(h(t),". Input:\n\n").concat(h(e),"\n"));var l=new d({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw l.generatedMessage=a,l}}function L(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[L,t.length].concat(t))}S.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];N.apply(void 0,[e,k(t)].concat(r))},S.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return j(t).then((function(t){return N.apply(void 0,[e,t].concat(r))}))},S.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];D.apply(void 0,[e,k(t)].concat(r))},S.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return j(t).then((function(t){return D.apply(void 0,[e,t].concat(r))}))},S.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=h(t);var r=new d({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"==typeof o){var s=o.split("\n");s.shift();for(var a=r.stack.split("\n"),l=0;l<s.length;l++){var c=a.indexOf(s[l]);if(-1!==c){a=a.slice(0,c);break}}r.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw r}},S.match=function e(t,n,r){M(t,n,r,e,"match")},S.doesNotMatch=function e(t,n,r){M(t,n,r,e,"doesNotMatch")},S.strict=v(L,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.NOT_LOCAL_BINDING=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BLOCK_SCOPED_SYMBOL=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const n=t.LOGICAL_OPERATORS=["||","&&","??"],r=(t.UPDATE_OPERATORS=["++","--"],t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="]),i=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],o=t.COMPARISON_BINARY_OPERATORS=[...i,"in","instanceof"],s=t.BOOLEAN_BINARY_OPERATORS=[...o,...r],a=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...a,...s,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...a.map((e=>e+"=")),...n.map((e=>e+"="))],t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),c=t.NUMBER_UNARY_OPERATORS=["+","-","~"],u=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...c,...u],t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return l(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],arguments.length>2&&void 0!==arguments[2]&&arguments[2],new Map)};var r=n(9),i=n(2);const o=Function.call.bind(Object.prototype.hasOwnProperty);function s(e,t,n,r){return e&&"string"==typeof e.type?l(e,t,n,r):e}function a(e,t,n,r){return Array.isArray(e)?e.map((e=>s(e,t,n,r))):s(e,t,n,r)}function l(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;if(!e)return e;const{type:l}=e,u={type:e.type};if((0,i.isIdentifier)(e))u.name=e.name,o(e,"optional")&&"boolean"==typeof e.optional&&(u.optional=e.optional),o(e,"typeAnnotation")&&(u.typeAnnotation=t?a(e.typeAnnotation,!0,n,s):e.typeAnnotation);else{if(!o(r.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const p of Object.keys(r.NODE_FIELDS[l]))o(e,p)&&(u[p]=t?(0,i.isFile)(e)&&"comments"===p?c(e.comments,t,n,s):a(e[p],!0,n,s):e[p])}return o(e,"loc")&&(u.loc=n?null:e.loc),o(e,"leadingComments")&&(u.leadingComments=c(e.leadingComments,t,n,s)),o(e,"innerComments")&&(u.innerComments=c(e.innerComments,t,n,s)),o(e,"trailingComments")&&(u.trailingComments=c(e.trailingComments,t,n,s)),o(e,"extra")&&(u.extra=Object.assign({},e.extra)),u}function c(e,t,n,r){return e&&t?e.map((e=>{const t=r.get(e);if(t)return t;const{type:i,value:o,loc:s}=e,a={type:i,value:o,loc:s};return n&&(a.loc=null),r.set(e,a),a})):e}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var r=n(162),i=n(61),o=n(14),s=n(183),a=n(0),l=a,c=n(35),u=n(101),p=n(423),f=n(424),d=n(427),h=n(430),m=n(431),y=n(436),g=n(437),v=n(438),b=n(440),_=n(442),E=n(443),x=n(163);const{validate:S}=a,w=i("babel"),T=t.REMOVED=1,A=t.SHOULD_STOP=2,P=t.SHOULD_SKIP=4;class O{constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}static get(e){let{hub:t,parentPath:n,parent:r,container:i,listKey:o,key:s}=e;if(!t&&n&&(t=n.hub),!r)throw new Error("To get a node path the parent needs to exist");const a=i[s],l=c.getOrCreateCachedPaths(t,r);let u=l.get(a);return u||(u=new O(t,r),a&&l.set(a,u)),u.setup(n,i,o,s),u}getScope(e){return this.isScope()?new s.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let n=this.data[e];return void 0===n&&void 0!==t&&(n=this.data[e]=t),n}hasNode(){return null!=this.node}buildCodeFrameError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:SyntaxError;return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,o.default)(this.node,e,this.scope,t,this)}set(e,t){S(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`${t.listKey}[${n}]`),e.unshift(n)}while(t=t.parentPath);return e.join(".")}debug(e){w.enabled&&w(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,u.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(this._traverseFlags&P)}set shouldSkip(e){e?this._traverseFlags|=P:this._traverseFlags&=~P}get shouldStop(){return!!(this._traverseFlags&A)}set shouldStop(e){e?this._traverseFlags|=A:this._traverseFlags&=~A}get removed(){return!!(this._traverseFlags&T)}set removed(e){e?this._traverseFlags|=T:this._traverseFlags&=~T}}Object.assign(O.prototype,p,f,d,h,m,y,g,v,b,_,E),O.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo;for(const e of l.TYPES){const t=`is${e}`,n=l[t];O.prototype[t]=function(e){return n(this.node,e)},O.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(O.prototype,x);for(const e of Object.keys(r))"_"!==e[0]&&(l.TYPES.includes(e)||l.TYPES.push(e));t.default=O},(e,t,n)=>{var r=n(19),i=n(63),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},(e,t,n)=>{const r=n(3);e.exports=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},(e,t,n)=>{n(12);const r=n(417),i=n(418),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.a=l,t.b=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=a(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?a(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return u(e),a(e<0?0:0|h(e))}function f(e){const t=e.length<0?0:0|h(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function h(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return r?-1:z(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(c(e,o+r)!==c(t,r)){n=!1;break}if(n)return o}return-1}function _(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(X(r))return s;e[n+s]=r}return s}function E(e,t,n,r){return G(z(t,e.length-n),e,n,r)}function x(e,t,n,r){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return G(H(t),e,n,r)}function w(e,t,n,r){return G(function(e,t){let n,r,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!l.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},l.allocUnsafe=function(e){return p(e)},l.allocUnsafeSlow=function(e){return p(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Q(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):y.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.b;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),c=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<a;++e)if(c[e]!==u[e]){o=c[e],s=u[e];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function C(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function k(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=Y[e[r]];return i}function I(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r,i){V(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function M(e,t,n,r,i){V(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=J((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=J((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=J((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=J((function(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=J((function(e){return D(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};const B={};function F(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function U(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function V(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,i,o)}function $(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw $(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function z(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const Y=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},(e,t,n)=>{var r=n(17),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<i;a=r[++n])y(a)||!E(a)?s+=" "+a:s+=" "+l(a);return s},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation,i=!0}return e.apply(this,arguments)}};var s={},a=/^$/;function l(e,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),p(r,e,r.depth)}function c(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function u(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&w(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=p(e,i,r)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),S(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(w(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return f(n)}var c,u="",E=!1,T=["{","}"];return h(n)&&(E=!0,T=["[","]"]),w(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(u=" "+RegExp.prototype.toString.call(n)),x(n)&&(u=" "+Date.prototype.toUTCString.call(n)),S(n)&&(u=" "+f(n)),0!==s.length||E&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=E?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)A(t,String(s))?o.push(d(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,n,r,i,!0))})),o}(e,n,r,a,s):s.map((function(t){return d(e,n,r,a,t,E)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,T)):T[0]+u+T[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),A(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function _(e){return E(e)&&"[object RegExp]"===T(e)}function E(e){return"object"==typeof e&&null!==e}function x(e){return E(e)&&"[object Date]"===T(e)}function S(e){return E(e)&&("[object Error]"===T(e)||e instanceof Error)}function w(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.debuglog=function(e){return e=e.toUpperCase(),s[e]||(a.test(e)?(r.pid,s[e]=function(){t.format.apply(t,arguments)}):s[e]=function(){}),s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(228),t.isArray=h,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=x,t.types.isDate=x,t.isError=S,t.types.isNativeError=S,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(240),t.log=function(){},t.inherits=n(158),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function O(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),P&&Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=P,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){r.nextTick(s.bind(null,null,e))}),(function(e){r.nextTick(O.bind(null,e,s))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},(e,t)=>{function n(e){const{context:t,node:n}=e;if(n.computed&&t.maybeQueue(e.get("key")),n.decorators)for(const n of e.get("decorators"))t.maybeQueue(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.requeueComputedKeyAndDecorators=n,t.skipAllButComputedKey=function(e){e.skip(),e.node.computed&&e.context.maybeQueue(e.get("key"))};var r={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&n(e))},Property(e){e.isObjectProperty()||(e.skip(),n(e))}};t.default=r},(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(47),s=n(48),a=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.t={};let p=0;const f="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",o],[f,i]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of d)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=p++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,n?"g":void 0),l[i]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),h("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${f}+`),h("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h("FULL",`^${c[u.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h("LOOSE",`^${c[u.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),h("COERCERTL",c[u.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){i(),o()},t.clearPath=i,t.clearScope=o,t.getCachedPaths=function(e,t){var r;return null==(r=n.get(s))?void 0:r.get(t)},t.getOrCreateCachedPaths=function(e,t){let r=n.get(s);r||n.set(s,r=new WeakMap);let i=r.get(t);return i||r.set(t,i=new Map),i},t.scope=t.path=void 0;let n=t.path=new WeakMap,r=t.scope=new WeakMap;function i(){t.path=n=new WeakMap}function o(){t.scope=r=new WeakMap}const s=Object.freeze({})},(e,t,n)=>{var r=n(17);Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=u,t.default=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!l){l=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";r.emitWarning?r.emitWarning(e,"DeprecationWarning"):new Error(e).name="DeprecationWarning"}return u(e,{start:{column:n=Math.max(n,0),line:t}},i)};var i=n(428),o=function(e){if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s(!0);if(t&&t.has(e))return t.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(224));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}let a,l=!1;const c=/\r\n|[\n\r\u2028\u2029]/;function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(n.highlightCode||n.forceColor)&&(0,i.shouldHighlight)(n),s=n.forceColor?(null!=a||(a=new o.default.constructor({enabled:!0,level:1})),a):o.default,l=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),u=(e,t)=>r?e(t):t,p=e.split(c),{start:f,end:d,markerLines:h}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},a=r.line,l=r.column,c=i.line,u=i.column;let p=Math.max(a-(o+1),0),f=Math.min(t.length,c+s);-1===a&&(p=0),-1===c&&(f=t.length);const d=c-a,h={};if(d)for(let e=0;e<=d;e++){const n=e+a;if(l)if(0===e){const e=t[n-1].length;h[n]=[l,e-l+1]}else if(e===d)h[n]=[0,u];else{const r=t[n-e].length;h[n]=[0,r]}else h[n]=!0}else h[a]=l===u?!l||[l,0]:[l,u-l];return{start:p,end:f,markerLines:h}}(t,p,n),m=t.start&&"number"==typeof t.start.column,y=String(d).length;let g=(r?(0,i.default)(e,n):e).split(c,d).slice(f,d).map(((e,t)=>{const r=f+1+t,i=` ${` ${r}`.slice(-y)} |`,o=h[r],s=!h[r+1];if(o){let t="";if(Array.isArray(o)){const r=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),a=o[1]||1;t=["\n ",u(l.gutter,i.replace(/\d/g," "))," ",r,u(l.marker,"^").repeat(a)].join(""),s&&n.message&&(t+=" "+u(l.message,n.message))}return[u(l.marker,">"),u(l.gutter,i),e.length>0?` ${e}`:"",t].join("")}return` ${u(l.gutter,i)}${e.length>0?` ${e}`:""}`})).join("\n");return n.message&&!m&&(g=`${" ".repeat(y+1)}${n.message}\n${g}`),r?s.reset(g):g}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var r=n(432),i=n(433);const o=(0,i.default)(r.smart);t.smart=o;const s=(0,i.default)(r.statement);t.statement=s;const a=(0,i.default)(r.statements);t.statements=a;const l=(0,i.default)(r.expression);t.expression=l;const c=(0,i.default)(r.program);t.program=c;var u=Object.assign(o.bind(void 0),{smart:o,statement:s,statements:a,expression:l,program:c,ast:o.ast});t.default=u},(e,t,n)=>{var r=n(22),i=n(41),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.beginHiddenCallStack=function(e){return i?Object.defineProperty((function(){return c(),e(...arguments)}),"name",{value:s}):e},t.endHiddenCallStack=function(e){return i?Object.defineProperty((function(){return e(...arguments)}),"name",{value:o}):e},t.expectedError=function(e){if(i)return a.add(e),e},t.injectVirtualStackFrame=function(e,t){if(!i)return;let n=l.get(e);return n||l.set(e,n=[]),n.push(function(e){return Object.create({isNative:()=>!1,isConstructor:()=>!1,isToplevel:()=>!0,getFileName:()=>e,getLineNumber:()=>{},getColumnNumber:()=>{},getFunctionName:()=>{},getMethodName:()=>{},getTypeName:()=>{},toString:()=>e})}(t)),e};const r=Function.call.bind(Error.prototype.toString),i=!!Error.captureStackTrace&&!0===(null==(n=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))?void 0:n.writable),o="startHiding - secret - don't use this - v1",s="stopHiding - secret - don't use this - v1",a=new WeakSet,l=new WeakMap;function c(){c=()=>{};const{prepareStackTrace:e=u}=Error;Error.stackTraceLimit&&(Error.stackTraceLimit=Math.max(Error.stackTraceLimit,50)),Error.prepareStackTrace=function(t,n){let r=[],i=a.has(t)?"hiding":"unknown";for(let e=0;e<n.length;e++){const a=n[e].getFunctionName();if(a===o)i="hiding";else if(a===s){if("hiding"===i)i="showing",l.has(t)&&r.unshift(...l.get(t));else if("unknown"===i){r=n;break}}else"hiding"!==i&&r.push(n[e])}return e(t,r)}}function u(e,t){return 0===t.length?r(e):`${r(e)}\n at ${t.join("\n at ")}`}},(e,t,n)=>{let r,i,o=n(24);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s,o.registerRoot(s)},(e,t,n)=>{var r=n(71),i=n(22),o=n(234),s=i("%TypeError%"),a=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(l,a),u=i("%Object.defineProperty%",!0),p=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(r,l,arguments);return o(t,1+p(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(r,a,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return!!t&&((0,i.default)(t.type,e)?void 0===n||(0,r.default)(t,n):!n&&"Placeholder"===t.type&&e in s.FLIPPED_ALIAS_KEYS&&(0,o.default)(t.expectedNode,e))};var r=n(96),i=n(98),o=n(168),s=n(9)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!(0,r.isKeyword)(e)&&!(0,r.isStrictReservedWord)(e,!0))&&(0,r.isIdentifierName)(e)};var r=n(59)},(e,t,n)=>{var r=n(5),i=n(15),o=n(102),s=n(204),a=n(11),l=r.RegExp,c=l.prototype;i&&a((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(o.hasIndices="d"),o)i(s,o[s]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==r||n!==r}))&&o(c,"flags",{configurable:!0,get:s})},(e,t,n)=>{var r=n(5),i=n(116),o=n(29),s=n(67),a=n(113),l=n(112),c=r.Symbol,u=i("wks"),p=l?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return o(u,e)||(u[e]=a&&o(c,e)?c[e]:p("Symbol."+e)),u[e]}},(e,t,n)=>{var r=n(123),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=n(121),l=n(72)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?a(e,t,n,!0):a(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var a=0;a<o.length;a+=1)c(e,o[a],t[o[a]],n[o[a]])};u.supportsDescriptors=!!l,e.exports=u},e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},(e,t,n)=>{var r=n(17);const i=("object"==typeof r&&r.env,()=>{});e.exports=i},(e,t,n)=>{const r=n(7);e.exports=(e,t,n)=>r(e,t,n)>0},(e,t,n)=>{const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=i;const o=n(75),{safeRe:s,t:a}=n(34),l=n(131),c=n(48),u=n(3),p=n(8)},(e,t,n)=>{const r=n(8);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},(e,t,n)=>{let r=n(53);class i extends r{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},(e,t,n)=>{let{isClean:r,my:i}=n(145),o=n(87),s=n(146),a=n(54);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>l(e,n))):("object"===o&&null!==i&&(i=l(i)),n[r]=i)}return n}class c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.raws={},this[r]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=l(this);for(let n in e)t[n]=e[n];return t}cloneAfter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new o(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new s).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){let r=this,i=!1;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t)e===this?i=!0:i?(this.parent.insertAfter(r,e),r=e):this.parent.insertBefore(r,e);i||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}e.exports=c,c.default=c},(e,t,n)=>{let r=n(146);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},(e,t,n)=>{let{SourceMapConsumer:r,SourceMapGenerator:i}=n(149),{fileURLToPath:o,pathToFileURL:s}=n(318),{isAbsolute:a,resolve:l}=n(150),{nanoid:c}=n(319),u=n(317),p=n(87),f=n(151),d=Symbol("fromOffsetCache"),h=Boolean(r&&i),m=Boolean(l&&a);class y{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||a(t.from)?this.file=t.from:this.file=l(t.from)),m&&h){let e=new f(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n){let r,i,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);i=e.line,o=e.col}else i=r.line,o=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,i,o);return r=l?new p(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,a.plugin):new p(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:o,line:i},this.css,this.file,a.plugin),r.input={column:n,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(s&&(r.input.url=s(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,n;if(this[d])n=this[d];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[d]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(i=c.originalPositionFor({column:r,line:n})),l=a(u.source)?s(u.source):new URL(u.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let p={column:u.column,endColumn:i&&i.column,endLine:i&&i.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");p.file=o(l)}let f=c.sourceContentFor(u.source);return f&&(p.source=f),p}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=y,y.default=y,u&&u.registerInput&&u.registerInput(y)},(e,t,n)=>{let r=n(53);class i extends r{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.explode=f,t.isExplodedVisitor=p,t.merge=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const r={};for(let i=0;i<e.length;i++){const o=f(e[i]),s=t[i];let a=o;(s||n)&&(a=m(a,s,n)),b(r,a);for(const e of Object.keys(o)){if(v(e))continue;let t=o[e];(s||n)&&(t=m(t,s,n)),b(r[e]||(r[e]={}),t)}}return r},t.verify=d;var r=n(162),i=n(163),o=n(0);const{DEPRECATED_KEYS:s,DEPRECATED_ALIASES:a,FLIPPED_ALIAS_KEYS:l,TYPES:c,__internal__deprecationWarning:u}=o;function p(e){return null==e?void 0:e._exploded}function f(e){if(p(e))return e;e._exploded=!0;for(const t of Object.keys(e)){if(v(t))continue;const n=t.split("|");if(1===n.length)continue;const r=e[t];delete e[t];for(const t of n)e[t]=r}d(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(v(t))continue;const n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),y(e);for(const t of Object.keys(e)){if(v(t))continue;if(!(t in r))continue;const n=e[t];for(const e of Object.keys(n))n[e]=g(t,n[e]);delete e[t];const i=r[t];if(null!==i)for(const t of i)e[t]?b(e[t],n):e[t]=n;else b(e,n)}for(const t of Object.keys(e)){if(v(t))continue;let n=l[t];if(t in s){const e=s[t];u(t,e,"Visitor "),n=[e]}else if(t in a){const e=a[t];u(t,e,"Visitor "),n=l[e]}if(!n)continue;const r=e[t];delete e[t];for(const t of n){const n=e[t];n?b(n,r):e[t]=Object.assign({},r)}}for(const t of Object.keys(e))v(t)||y(e[t]);return e}function d(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const t of Object.keys(e)){if("enter"!==t&&"exit"!==t||h(t,e[t]),v(t))continue;if(c.indexOf(t)<0)throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type`);const n=e[t];if("object"==typeof n)for(const e of Object.keys(n)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`);h(`${t}.${e}`,n[e])}}e._verified=!0}}function h(e,t){const n=[].concat(t);for(const t of n)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function m(e,t,n){const r={};for(const i of["enter","exit"]){let o=e[i];Array.isArray(o)&&(o=o.map((function(e){let r=e;return t&&(r=function(n){e.call(t,n,t)}),n&&(r=n(null==t?void 0:t.key,i,r)),r!==e&&(r.toString=()=>e.toString()),r})),r[i]=o)}return r}function y(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function g(e,t){const n=i[`is${e}`],r=function(e){if(n.call(e))return t.apply(this,arguments)};return r.toString=()=>t.toString(),r}function v(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e}function b(e,t){for(const n of["enter","exit"])t[n]&&(e[n]=[].concat(e[n]||[],t[n]))}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(n.has(e))return;n.add(e);const{internal:r,trace:i}=function(){const{stackTraceLimit:e,prepareStackTrace:t}=Error;let n;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){n=t},(new Error).stack,Error.stackTraceLimit=e,Error.prepareStackTrace=t,!n)return{internal:!1,trace:""};const r=n.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(r[1].getFileName()),trace:r.map((e=>` at ${e}`)).join("\n")}}()};const n=new Set},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var r=n(353),i=n(354)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(2);function i(e,t,n,o){const s=[].concat(e),a=Object.create(null);for(;s.length;){const e=s.shift();if(!e)continue;if(o&&((0,r.isAssignmentExpression)(e)||(0,r.isUnaryExpression)(e)))continue;const l=i.keys[e.type];if((0,r.isIdentifier)(e))t?(a[e.name]=a[e.name]||[]).push(e):a[e.name]=e;else if(!(0,r.isExportDeclaration)(e)||(0,r.isExportAllDeclaration)(e)){if(n){if((0,r.isFunctionDeclaration)(e)){s.push(e.id);continue}if((0,r.isFunctionExpression)(e))continue}if(l)for(let t=0;t<l.length;t++){const n=e[l[t]];n&&(Array.isArray(n)?s.push(...n):s.push(n))}}else(0,r.isDeclaration)(e.declaration)&&s.push(e.declaration)}return a}i.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},e=>{e.exports=function(){return function(){}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(e.isExportDefaultDeclaration()){const t=e.get("declaration"),n=t.isFunctionDeclaration()||t.isClassDeclaration(),r=t.isFunctionExpression()||t.isClassExpression(),u=t.isScope()?t.scope.parent:t.scope;let p=t.node.id,f=!1;p?r&&u.hasBinding(p.name)&&(f=!0,p=u.generateUidIdentifier(p.name)):(f=!0,p=u.generateUidIdentifier("default"),(n||r)&&(t.node.id=i(p)));const d=n?t.node:l("var",[c(i(p),t.node)]),h=o(null,[s(i(p),a("default"))]);return e.insertAfter(h),e.replaceWith(d),f&&u.registerDeclaration(e),e}if(e.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.get("declaration"),n=t.getOuterBindingIdentifiers(),r=Object.keys(n).map((e=>s(a(e),a(e)))),u=o(null,r);return e.insertAfter(u),e.replaceWith(t.node),e};var r=n(0);const{cloneNode:i,exportNamedDeclaration:o,exportSpecifier:s,identifier:a,variableDeclaration:l,variableDeclarator:c}=r},(e,t,n)=>{var r=n(187),i=Object;e.exports=function(e){return i(r(e))}},(e,t,n)=>{var r=n(5),i=n(106),o="__core-js_shared__",s=r[o]||i(o,{});e.exports=s},(e,t,n)=>{var r=n(20),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},(e,t,n)=>{var r=n(104),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},(e,t,n)=>{var r=n(19),i=0,o=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildDynamicImport",{enumerable:!0,get:function(){return u.buildDynamicImport}}),t.buildNamespaceInitStatements=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.wrapReference;var o;const s=[],a=v(t.name);for(const e of t.importsNamespace)e!==t.name&&s.push(i.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:h(a)}));const l=null!=(o=r(a,t.wrap))?o:a;n&&s.push(...A(e,t,!0,r));for(const n of t.reexportNamespace)s.push((i.types.isIdentifier(l)?i.template.statement`EXPORTS.NAME = NAMESPACE;`:i.template.statement`
|
|
3
3
|
Object.defineProperty(EXPORTS, "NAME", {
|
|
4
4
|
enumerable: true,
|
|
5
5
|
get: function() {
|